1(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([typeof document === "object" ? document.currentScript : undefined, 2"[project]/node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { 3"use strict"; 4 5/** 6 * @license React 7 * react-dom.development.js 8 * 9 * Copyright (c) Meta Platforms, Inc. and affiliates. 10 * 11 * This source code is licensed under the MIT license found in the 12 * LICENSE file in the root directory of this source tree. 13 */ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)"); 14"use strict"; 15"production" !== ("TURBOPACK compile-time value", "development") && function() { 16 function noop() {} 17 function testStringCoercion(value) { 18 return "" + value; 19 } 20 function createPortal$1(children, containerInfo, implementation) { 21 var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; 22 try { 23 testStringCoercion(key); 24 var JSCompiler_inline_result = !1; 25 } catch (e) { 26 JSCompiler_inline_result = !0; 27 } 28 JSCompiler_inline_result && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"), testStringCoercion(key)); 29 return { 30 $$typeof: REACT_PORTAL_TYPE, 31 key: null == key ? null : "" + key, 32 children: children, 33 containerInfo: containerInfo, 34 implementation: implementation 35 }; 36 } 37 function getCrossOriginStringAs(as, input) { 38 if ("font" === as) return ""; 39 if ("string" === typeof input) return "use-credentials" === input ? input : ""; 40 } 41 function getValueDescriptorExpectingObjectForWarning(thing) { 42 return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"'; 43 } 44 function getValueDescriptorExpectingEnumForWarning(thing) { 45 return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"'; 46 } 47 function resolveDispatcher() { 48 var dispatcher = ReactSharedInternals.H; 49 null === dispatcher && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."); 50 return dispatcher; 51 } 52 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 53 var React = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"), Internals = { 54 d: { 55 f: noop, 56 r: function() { 57 throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React."); 58 }, 59 D: noop, 60 C: noop, 61 L: noop, 62 m: noop, 63 X: noop, 64 S: noop, 65 M: noop 66 }, 67 p: 0, 68 findDOMNode: null 69 }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; 70 "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"); 71 exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals; 72 exports.createPortal = function(children, container) { 73 var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; 74 if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType) throw Error("Target container is not a DOM element."); 75 return createPortal$1(children, container, null, key); 76 }; 77 exports.flushSync = function(fn) { 78 var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p; 79 try { 80 if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn(); 81 } finally{ 82 ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."); 83 } 84 }; 85 exports.preconnect = function(href, options) { 86 "string" === typeof href && href ? null != options && "object" !== typeof options ? console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", getValueDescriptorExpectingEnumForWarning(options)) : null != options && "string" !== typeof options.crossOrigin && console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", getValueDescriptorExpectingObjectForWarning(options.crossOrigin)) : console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href)); 87 "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options)); 88 }; 89 exports.prefetchDNS = function(href) { 90 if ("string" !== typeof href || !href) console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href)); 91 else if (1 < arguments.length) { 92 var options = arguments[1]; 93 "object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single str
93ing argument, `href`.", getValueDescriptorExpectingEnumForWarning(options)) : console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", getValueDescriptorExpectingEnumForWarning(options)); 94 } 95 "string" === typeof href && Internals.d.D(href); 96 }; 97 exports.preinit = function(href, options) { 98 "string" === typeof href && href ? null == options || "object" !== typeof options ? console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", getValueDescriptorExpectingEnumForWarning(options)) : "style" !== options.as && "script" !== options.as && console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".', getValueDescriptorExpectingEnumForWarning(options.as)) : console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href)); 99 if ("string" === typeof href && options && "string" === typeof options.as) { 100 var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0; 101 "style" === as ? Internals.d.S(href, "string" === typeof options.precedence ? options.precedence : void 0, { 102 crossOrigin: crossOrigin, 103 integrity: integrity, 104 fetchPriority: fetchPriority 105 }) : "script" === as && Internals.d.X(href, { 106 crossOrigin: crossOrigin, 107 integrity: integrity, 108 fetchPriority: fetchPriority, 109 nonce: "string" === typeof options.nonce ? options.nonce : void 0 110 }); 111 } 112 }; 113 exports.preinitModule = function(href, options) { 114 var encountered = ""; 115 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 116 void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + "."); 117 if (encountered) console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", encountered); 118 else switch(encountered = options && "string" === typeof options.as ? options.as : "script", encountered){ 119 case "script": 120 break; 121 default: 122 encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)', encountered, href); 123 } 124 if ("string" === typeof href) if ("object" === typeof options && null !== options) { 125 if (null == options.as || "script" === options.as) encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.M(href, { 126 crossOrigin: encountered, 127 integrity: "string" === typeof options.integrity ? options.integrity : void 0, 128 nonce: "string" === typeof options.nonce ? options.nonce : void 0 129 }); 130 } else null == options && Internals.d.M(href); 131 }; 132 exports.preload = function(href, options) { 133 var encountered = ""; 134 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 135 null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + "."); 136 encountered && console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s', encountered); 137 if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) { 138 encountered = options.as; 139 var crossOrigin = getCrossOriginStringAs(encountered, options.crossOrigin); 140 Internals.d.L(href, encountered, { 141 crossOrigin: crossOrigin, 142 integrity: "string" === typeof options.integrity ? options.integrity : void 0, 143 nonce: "string" === typeof options.nonce ? options.nonce : void 0, 144 type: "string" === typeof options.type ? options.type : void 0, 145 fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0, 146 referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0, 147 imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0, 148 imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0, 149 media: "string" === typeof options.media ? options.media : void 0 150 }); 151 } 152 }; 153 exports.preloadModule = function(href, options) { 154 var encountered = ""; 155 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 156 void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + "."); 157 encountered && console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s', encountered); 158 "string" === typeof href && (options ? (encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.m(href, {
159 as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0, 160 crossOrigin: encountered, 161 integrity: "string" === typeof options.integrity ? options.integrity : void 0 162 })) : Internals.d.m(href)); 163 }; 164 exports.requestFormReset = function(form) { 165 Internals.d.r(form); 166 }; 167 exports.unstable_batchedUpdates = function(fn, a) { 168 return fn(a); 169 }; 170 exports.useFormState = function(action, initialState, permalink) { 171 return resolveDispatcher().useFormState(action, initialState, permalink); 172 }; 173 exports.useFormStatus = function() { 174 return resolveDispatcher().useHostTransitionStatus(); 175 }; 176 exports.version = "19.2.0-canary-0bdb9206-20250818"; 177 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 178}(); 179}), 180"[project]/node_modules/next/dist/compiled/react-dom/index.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { 181"use strict"; 182 183var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)"); 184'use strict'; 185function checkDCE() { 186 /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') { 187 return; 188 } 189 if ("TURBOPACK compile-time truthy", 1) { 190 // This branch is unreachable because this function is only called 191 // in production, but the condition is true only in development. 192 // Therefore if the branch is still here, dead code elimination wasn't 193 // properly applied. 194 // Don't change the message. React DevTools relies on it. Also make sure 195 // this message doesn't occur elsewhere in this function, or it will cause 196 // a false positive. 197 throw new Error('^_^'); 198 } 199 try { 200 // Verify that the code above has been dead code eliminated (DCE'd). 201 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 202 } catch (err) { 203 // DevTools shouldn't crash React, no matter what. 204 // We should still report in case we break this code. 205 console.error(err); 206 } 207} 208if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable 209; 210else { 211 module.exports = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js [app-client] (ecmascript)"); 212} 213}), 214"[project]/node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { 215"use strict"; 216 217/** 218 * @license React 219 * react-dom-client.development.js 220 * 221 * Copyright (c) Meta Platforms, Inc. and affiliates. 222 * 223 * This source code is licensed under the MIT license found in the 224 * LICENSE file in the root directory of this source tree. 225 */ /* 226 Modernizr 3.0.0pre (Custom Build) | MIT 227*/ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)"); 228"use strict"; 229"production" !== ("TURBOPACK compile-time value", "development") && function() { 230 function findHook(fiber, id) { 231 for(fiber = fiber.memoizedState; null !== fiber && 0 < id;)fiber = fiber.next, id--; 232 return fiber; 233 } 234 function copyWithSetImpl(obj, path, index, value) { 235 if (index >= path.length) return value; 236 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 237 updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); 238 return updated; 239 } 240 function copyWithRename(obj, oldPath, newPath) { 241 if (oldPath.length !== newPath.length) console.warn("copyWithRename() expects paths of the same length"); 242 else { 243 for(var i = 0; i < newPath.length - 1; i++)if (oldPath[i] !== newPath[i]) { 244 console.warn("copyWithRename() expects paths to be the same except for the deepest key"); 245 return; 246 } 247 return copyWithRenameImpl(obj, oldPath, newPath, 0); 248 } 249 } 250 function copyWithRenameImpl(obj, oldPath, newPath, index) { 251 var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 252 index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1); 253 return updated; 254 } 255 function copyWithDeleteImpl(obj, path, index) { 256 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 257 if (index + 1 === path.length) return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated; 258 updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); 259 return updated; 260 } 261 function shouldSuspendImpl() { 262 return !1; 263 } 264 function shouldErrorImpl() { 265 return null; 266 }
vendor: 7,079 bytes, lines 267-421
267 function warnInvalidHookAccess() { 268 console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"); 269 } 270 function warnInvalidContextAccess() { 271 console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 272 } 273 function noop() {} 274 function warnForMissingKey() {} 275 function setToSortedString(set) { 276 var array = []; 277 set.forEach(function(value) { 278 array.push(value); 279 }); 280 return array.sort().join(", "); 281 } 282 function createFiber(tag, pendingProps, key, mode) { 283 return new FiberNode(tag, pendingProps, key, mode); 284 } 285 function scheduleRoot(root, element) { 286 root.context === emptyContextObject && (updateContainerImpl(root.current, 2, element, root, null, null), flushSyncWork$1()); 287 } 288 function scheduleRefresh(root, update) { 289 if (null !== resolveFamily) { 290 var staleFamilies = update.staleFamilies; 291 update = update.updatedFamilies; 292 flushPendingEffects(); 293 scheduleFibersWithFamiliesRecursively(root.current, update, staleFamilies); 294 flushSyncWork$1(); 295 } 296 } 297 function setRefreshHandler(handler) { 298 resolveFamily = handler; 299 } 300 function isValidContainer(node) { 301 return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType); 302 } 303 function getNearestMountedFiber(fiber) { 304 var node = fiber, nearestMounted = fiber; 305 if (fiber.alternate) for(; node.return;)node = node.return; 306 else { 307 fiber = node; 308 do node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; 309 while (fiber) 310 } 311 return 3 === node.tag ? nearestMounted : null; 312 } 313 function getSuspenseInstanceFromFiber(fiber) { 314 if (13 === fiber.tag) { 315 var suspenseState = fiber.memoizedState; 316 null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState)); 317 if (null !== suspenseState) return suspenseState.dehydrated; 318 } 319 return null; 320 } 321 function getActivityInstanceFromFiber(fiber) { 322 if (31 === fiber.tag) { 323 var activityState = fiber.memoizedState; 324 null === activityState && (fiber = fiber.alternate, null !== fiber && (activityState = fiber.memoizedState)); 325 if (null !== activityState) return activityState.dehydrated; 326 } 327 return null; 328 } 329 function assertIsMounted(fiber) { 330 if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); 331 } 332 function findCurrentFiberUsingSlowPath(fiber) { 333 var alternate = fiber.alternate; 334 if (!alternate) { 335 alternate = getNearestMountedFiber(fiber); 336 if (null === alternate) throw Error("Unable to find node on an unmounted component."); 337 return alternate !== fiber ? null : fiber; 338 } 339 for(var a = fiber, b = alternate;;){ 340 var parentA = a.return; 341 if (null === parentA) break; 342 var parentB = parentA.alternate; 343 if (null === parentB) { 344 b = parentA.return; 345 if (null !== b) { 346 a = b; 347 continue; 348 } 349 break; 350 } 351 if (parentA.child === parentB.child) { 352 for(parentB = parentA.child; parentB;){ 353 if (parentB === a) return assertIsMounted(parentA), fiber; 354 if (parentB === b) return assertIsMounted(parentA), alternate; 355 parentB = parentB.sibling; 356 } 357 throw Error("Unable to find node on an unmounted component."); 358 } 359 if (a.return !== b.return) a = parentA, b = parentB; 360 else { 361 for(var didFindChild = !1, _child = parentA.child; _child;){ 362 if (_child === a) { 363 didFindChild = !0; 364 a = parentA; 365 b = parentB; 366 break; 367 } 368 if (_child === b) { 369 didFindChild = !0; 370 b = parentA; 371 a = parentB; 372 break; 373 } 374 _child = _child.sibling; 375 } 376 if (!didFindChild) { 377 for(_child = parentB.child; _child;){ 378 if (_child === a) { 379 didFindChild = !0; 380 a = parentB; 381 b = parentA; 382 break; 383 } 384 if (_child === b) { 385 didFindChild = !0; 386 b = parentB; 387 a = parentA; 388 break; 389 } 390 _child = _child.sibling; 391 } 392 if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); 393 } 394 } 395 if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); 396 } 397 if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); 398 return a.stateNode.current === a ? fiber : alternate; 399 } 400 function findCurrentHostFiberImpl(node) { 401 var tag = node.tag; 402 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; 403 for(node = node.child; null !== node;){ 404 tag = findCurrentHostFiberImpl(node); 405 if (null !== tag) return tag; 406 node = node.sibling; 407 } 408 return null; 409 } 410 function getIteratorFn(maybeIterable) { 411 if (null === maybeIterable || "object" !== typeof maybeIterable) return null; 412 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; 413 return "function" === typeof maybeIterable ? maybeIterable : null; 414 } 415 function getComponentNameFromType(type) { 416 if (null == type) return null; 417 if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 418 if ("string" === typeof type) return type; 419 switch(type){ 420 case REACT_FRAGMENT_TYPE: 421 return "Fragment";
422 case REACT_PROFILER_TYPE: 423 return "Profiler"; 424 case REACT_STRICT_MODE_TYPE: 425 return "StrictMode"; 426 case REACT_SUSPENSE_TYPE: 427 return "Suspense"; 428 case REACT_SUSPENSE_LIST_TYPE: 429 return "SuspenseList"; 430 case REACT_ACTIVITY_TYPE: 431 return "Activity"; 432 } 433 if ("object" === typeof type) switch("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof){ 434 case REACT_PORTAL_TYPE: 435 return "Portal"; 436 case REACT_CONTEXT_TYPE: 437 return type.displayName || "Context"; 438 case REACT_CONSUMER_TYPE: 439 return (type._context.displayName || "Context") + ".Consumer"; 440 case REACT_FORWARD_REF_TYPE: 441 var innerType = type.render; 442 type = type.displayName; 443 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 444 return type; 445 case REACT_MEMO_TYPE: 446 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 447 case REACT_LAZY_TYPE: 448 innerType = type._payload; 449 type = type._init; 450 try { 451 return getComponentNameFromType(type(innerType)); 452 } catch (x) {} 453 } 454 return null; 455 } 456 function getComponentNameFromOwner(owner) { 457 return "number" === typeof owner.tag ? getComponentNameFromFiber(owner) : "string" === typeof owner.name ? owner.name : null; 458 } 459 function getComponentNameFromFiber(fiber) { 460 var type = fiber.type; 461 switch(fiber.tag){ 462 case 31: 463 return "Activity"; 464 case 24: 465 return "Cache"; 466 case 9: 467 return (type._context.displayName || "Context") + ".Consumer"; 468 case 10: 469 return type.displayName || "Context"; 470 case 18: 471 return "DehydratedFragment"; 472 case 11: 473 return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); 474 case 7: 475 return "Fragment"; 476 case 26: 477 case 27: 478 case 5: 479 return type; 480 case 4: 481 return "Portal"; 482 case 3: 483 return "Root"; 484 case 6: 485 return "Text"; 486 case 16: 487 return getComponentNameFromType(type); 488 case 8: 489 return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; 490 case 22: 491 return "Offscreen"; 492 case 12: 493 return "Profiler"; 494 case 21: 495 return "Scope"; 496 case 13: 497 return "Suspense"; 498 case 19: 499 return "SuspenseList"; 500 case 25: 501 return "TracingMarker"; 502 case 1: 503 case 0: 504 case 14: 505 case 15: 506 if ("function" === typeof type) return type.displayName || type.name || null; 507 if ("string" === typeof type) return type; 508 break; 509 case 29: 510 type = fiber._debugInfo; 511 if (null != type) { 512 for(var i = type.length - 1; 0 <= i; i--)if ("string" === typeof type[i].name) return type[i].name; 513 } 514 if (null !== fiber.return) return getComponentNameFromFiber(fiber.return); 515 } 516 return null; 517 } 518 function createCursor(defaultValue) { 519 return { 520 current: defaultValue 521 }; 522 } 523 function pop(cursor, fiber) { 524 0 > index$jscomp$0 ? console.error("Unexpected pop.") : (fiber !== fiberStack[index$jscomp$0] && console.error("Unexpected Fiber popped."), cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, fiberStack[index$jscomp$0] = null, index$jscomp$0--); 525 } 526 function push(cursor, value, fiber) { 527 index$jscomp$0++; 528 valueStack[index$jscomp$0] = cursor.current; 529 fiberStack[index$jscomp$0] = fiber; 530 cursor.current = value; 531 } 532 function requiredContext(c) { 533 null === c && console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); 534 return c; 535 } 536 function pushHostContainer(fiber, nextRootInstance) { 537 push(rootInstanceStackCursor, nextRootInstance, fiber); 538 push(contextFiberStackCursor, fiber, fiber); 539 push(contextStackCursor, null, fiber); 540 var nextRootContext = nextRootInstance.nodeType; 541 switch(nextRootContext){ 542 case 9: 543 case 11: 544 nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
vendor: 7,973 bytes, lines 545-727
545 nextRootInstance = (nextRootInstance = nextRootInstance.documentElement) ? (nextRootInstance = nextRootInstance.namespaceURI) ? getOwnHostContext(nextRootInstance) : HostContextNamespaceNone : HostContextNamespaceNone; 546 break; 547 default: 548 if (nextRootContext = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI) nextRootInstance = getOwnHostContext(nextRootInstance), nextRootInstance = getChildHostContextProd(nextRootInstance, nextRootContext); 549 else switch(nextRootContext){ 550 case "svg": 551 nextRootInstance = HostContextNamespaceSvg; 552 break; 553 case "math": 554 nextRootInstance = HostContextNamespaceMath; 555 break; 556 default: 557 nextRootInstance = HostContextNamespaceNone; 558 } 559 } 560 nextRootContext = nextRootContext.toLowerCase(); 561 nextRootContext = updatedAncestorInfoDev(null, nextRootContext); 562 nextRootContext = { 563 context: nextRootInstance, 564 ancestorInfo: nextRootContext 565 }; 566 pop(contextStackCursor, fiber); 567 push(contextStackCursor, nextRootContext, fiber); 568 } 569 function popHostContainer(fiber) { 570 pop(contextStackCursor, fiber); 571 pop(contextFiberStackCursor, fiber); 572 pop(rootInstanceStackCursor, fiber); 573 } 574 function getHostContext() { 575 return requiredContext(contextStackCursor.current); 576 } 577 function pushHostContext(fiber) { 578 null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber, fiber); 579 var context = requiredContext(contextStackCursor.current); 580 var type = fiber.type; 581 var nextContext = getChildHostContextProd(context.context, type); 582 type = updatedAncestorInfoDev(context.ancestorInfo, type); 583 nextContext = { 584 context: nextContext, 585 ancestorInfo: type 586 }; 587 context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor, nextContext, fiber)); 588 } 589 function popHostContext(fiber) { 590 contextFiberStackCursor.current === fiber && (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); 591 hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor, fiber), HostTransitionContext._currentValue = NotPendingTransition); 592 } 593 function disabledLog() {} 594 function disableLogs() { 595 if (0 === disabledDepth) { 596 prevLog = console.log; 597 prevInfo = console.info; 598 prevWarn = console.warn; 599 prevError = console.error; 600 prevGroup = console.group; 601 prevGroupCollapsed = console.groupCollapsed; 602 prevGroupEnd = console.groupEnd; 603 var props = { 604 configurable: !0, 605 enumerable: !0, 606 value: disabledLog, 607 writable: !0 608 }; 609 Object.defineProperties(console, { 610 info: props, 611 log: props, 612 warn: props, 613 error: props, 614 group: props, 615 groupCollapsed: props, 616 groupEnd: props 617 }); 618 } 619 disabledDepth++; 620 } 621 function reenableLogs() { 622 disabledDepth--; 623 if (0 === disabledDepth) { 624 var props = { 625 configurable: !0, 626 enumerable: !0, 627 writable: !0 628 }; 629 Object.defineProperties(console, { 630 log: assign({}, props, { 631 value: prevLog 632 }), 633 info: assign({}, props, { 634 value: prevInfo 635 }), 636 warn: assign({}, props, { 637 value: prevWarn 638 }), 639 error: assign({}, props, { 640 value: prevError 641 }), 642 group: assign({}, props, { 643 value: prevGroup 644 }), 645 groupCollapsed: assign({}, props, { 646 value: prevGroupCollapsed 647 }), 648 groupEnd: assign({}, props, { 649 value: prevGroupEnd 650 }) 651 }); 652 } 653 0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); 654 } 655 function formatOwnerStack(error) { 656 var prevPrepareStackTrace = Error.prepareStackTrace; 657 Error.prepareStackTrace = void 0; 658 error = error.stack; 659 Error.prepareStackTrace = prevPrepareStackTrace; 660 error.startsWith("Error: react-stack-top-frame\n") && (error = error.slice(29)); 661 prevPrepareStackTrace = error.indexOf("\n"); 662 -1 !== prevPrepareStackTrace && (error = error.slice(prevPrepareStackTrace + 1)); 663 prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame"); 664 -1 !== prevPrepareStackTrace && (prevPrepareStackTrace = error.lastIndexOf("\n", prevPrepareStackTrace)); 665 if (-1 !== prevPrepareStackTrace) error = error.slice(0, prevPrepareStackTrace); 666 else return ""; 667 return error; 668 } 669 function describeBuiltInComponentFrame(name) { 670 if (void 0 === prefix) try { 671 throw Error(); 672 } catch (x) { 673 var match = x.stack.trim().match(/\n( *(at )?)/); 674 prefix = match && match[1] || ""; 675 suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; 676 } 677 return "\n" + prefix + name + suffix; 678 } 679 function describeNativeComponentFrame(fn, construct) { 680 if (!fn || reentry) return ""; 681 var frame = componentFrameCache.get(fn); 682 if (void 0 !== frame) return frame; 683 reentry = !0; 684 frame = Error.prepareStackTrace; 685 Error.prepareStackTrace = void 0; 686 var previousDispatcher = null; 687 previousDispatcher = ReactSharedInternals.H; 688 ReactSharedInternals.H = null; 689 disableLogs(); 690 try { 691 var RunInRootFrame = { 692 DetermineComponentFrameRoot: function() { 693 try { 694 if (construct) { 695 var Fake = function() { 696 throw Error(); 697 }; 698 Object.defineProperty(Fake.prototype, "props", { 699 set: function() { 700 throw Error(); 701 } 702 }); 703 if ("object" === typeof Reflect && Reflect.construct) { 704 try { 705 Reflect.construct(Fake, []); 706 } catch (x) { 707 var control = x; 708 } 709 Reflect.construct(fn, [], Fake); 710 } else { 711 try { 712 Fake.call(); 713 } catch (x$0) { 714 control = x$0; 715 } 716 fn.call(Fake.prototype); 717 } 718 } else { 719 try { 720 throw Error(); 721 } catch (x$1) { 722 control = x$1; 723 } 724 (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {}); 725 } 726 } catch (sample) { 727 if (sample && control && "string" === typeof sample.
vendor: 4,232 bytes, lines 727-793
727stack) return [ 728 sample.stack, 729 control.stack 730 ]; 731 } 732 return [ 733 null, 734 null 735 ]; 736 } 737 }; 738 RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; 739 var namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, "name"); 740 namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", { 741 value: "DetermineComponentFrameRoot" 742 }); 743 var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1]; 744 if (sampleStack && controlStack) { 745 var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n"); 746 for(_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes("DetermineComponentFrameRoot");)namePropDescriptor++; 747 for(; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes("DetermineComponentFrameRoot");)_RunInRootFrame$Deter++; 748 if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length) for(namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter];)_RunInRootFrame$Deter--; 749 for(; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--)if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 750 if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { 751 do if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 752 var _frame = "\n" + sampleLines[namePropDescriptor].replace(" at new ", " at "); 753 fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)); 754 "function" === typeof fn && componentFrameCache.set(fn, _frame); 755 return _frame; 756 } 757 while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter) 758 } 759 break; 760 } 761 } 762 } finally{ 763 reentry = !1, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame; 764 } 765 sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : ""; 766 "function" === typeof fn && componentFrameCache.set(fn, sampleLines); 767 return sampleLines; 768 } 769 function describeFiber(fiber, childFiber) { 770 switch(fiber.tag){ 771 case 26: 772 case 27: 773 case 5: 774 return describeBuiltInComponentFrame(fiber.type); 775 case 16: 776 return describeBuiltInComponentFrame("Lazy"); 777 case 13: 778 return fiber.child !== childFiber && null !== childFiber ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense"); 779 case 19: 780 return describeBuiltInComponentFrame("SuspenseList"); 781 case 0: 782 case 15: 783 return describeNativeComponentFrame(fiber.type, !1); 784 case 11: 785 return describeNativeComponentFrame(fiber.type.render, !1); 786 case 1: 787 return describeNativeComponentFrame(fiber.type, !0); 788 case 31: 789 return describeBuiltInComponentFrame("Activity"); 790 default: 791 return ""; 792 } 793 }
794 function getStackByFiberInDevAndProd(workInProgress) { 795 try { 796 var info = "", previous = null; 797 do { 798 info += describeFiber(workInProgress, previous); 799 var debugInfo = workInProgress._debugInfo; 800 if (debugInfo) for(var i = debugInfo.length - 1; 0 <= i; i--){ 801 var entry = debugInfo[i]; 802 if ("string" === typeof entry.name) { 803 var JSCompiler_temp_const = info; 804 a: { 805 var name = entry.name, env = entry.env, location = entry.debugLocation; 806 if (null != location) { 807 var childStack = formatOwnerStack(location), idx = childStack.lastIndexOf("\n"), lastLine = -1 === idx ? childStack : childStack.slice(idx + 1); 808 if (-1 !== lastLine.indexOf(name)) { 809 var JSCompiler_inline_result = "\n" + lastLine; 810 break a; 811 } 812 } 813 JSCompiler_inline_result = describeBuiltInComponentFrame(name + (env ? " [" + env + "]" : "")); 814 } 815 info = JSCompiler_temp_const + JSCompiler_inline_result; 816 } 817 } 818 previous = workInProgress; 819 workInProgress = workInProgress.return; 820 }while (workInProgress) 821 return info; 822 } catch (x) { 823 return "\nError generating stack: " + x.message + "\n" + x.stack; 824 } 825 } 826 function describeFunctionComponentFrameWithoutLineNumber(fn) { 827 return (fn = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(fn) : ""; 828 } 829 function getCurrentFiberOwnerNameInDevOrNull() { 830 if (null === current) return null; 831 var owner = current._debugOwner; 832 return null != owner ? getComponentNameFromOwner(owner) : null; 833 } 834 function getCurrentFiberStackInDev() { 835 if (null === current) return ""; 836 var workInProgress = current; 837 try { 838 var info = ""; 839 6 === workInProgress.tag && (workInProgress = workInProgress.return); 840 switch(workInProgress.tag){ 841 case 26: 842 case 27: 843 case 5: 844 info += describeBuiltInComponentFrame(workInProgress.type); 845 break; 846 case 13: 847 info += describeBuiltInComponentFrame("Suspense"); 848 break; 849 case 19: 850 info += describeBuiltInComponentFrame("SuspenseList"); 851 break; 852 case 31: 853 info += describeBuiltInComponentFrame("Activity"); 854 break; 855 case 30: 856 case 0: 857 case 15: 858 case 1: 859 workInProgress._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber(workInProgress.type)); 860 break; 861 case 11: 862 workInProgress._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber(workInProgress.type.render)); 863 } 864 for(; workInProgress;)if ("number" === typeof workInProgress.tag) { 865 var fiber = workInProgress; 866 workInProgress = fiber._debugOwner; 867 var debugStack = fiber._debugStack; 868 if (workInProgress && debugStack) { 869 var formattedStack = formatOwnerStack(debugStack); 870 "" !== formattedStack && (info += "\n" + formattedStack); 871 } 872 } else if (null != workInProgress.debugStack) { 873 var ownerStack = workInProgress.debugStack; 874 (workInProgress = workInProgress.owner) && ownerStack && (info += "\n" + formatOwnerStack(ownerStack)); 875 } else break; 876 var JSCompiler_inline_result = info; 877 } catch (x) { 878 JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; 879 } 880 return JSCompiler_inline_result; 881 } 882 function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { 883 var previousFiber = current; 884 setCurrentFiber(fiber); 885 try { 886 return null !== fiber && fiber._debugTask ? fiber._debugTask.run(callback.bind(null, arg0, arg1, arg2, arg3, arg4)) : callback(arg0, arg1, arg2, arg3, arg4); 887 } finally{ 888 setCurrentFiber(previousFiber); 889 } 890 throw Error("runWithFiberInDEV should never be called in production. This is a bug in React."); 891 } 892 function setCurrentFiber(fiber) { 893 ReactSharedInternals.getCurrentStack = null === fiber ? null : getCurrentFiberStackInDev; 894 isRendering = !1; 895 current = fiber; 896 } 897 function typeName(value) { 898 return "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 899 } 900 function willCoercionThrow(value) { 901 try { 902 return testStringCoercion(value), !1; 903 } catch (e) { 904 return !0; 905 } 906 } 907 function testStringCoercion(value) { 908 return "" + value; 909 } 910 function checkAttributeStringCoercion(value, attributeName) { 911 if (willCoercionThrow(value)) return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", attributeName, typeName(value)), testStringCoercion(value); 912 } 913 function checkCSSPropertyStringCoercion(value, propName) { 914 if (willCoercionThrow(value)) return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", propName, typeName(value)), testStringCoercion(value); 915 } 916 function checkFormFieldValueStringCoercion(value) { 917 if (willCoercionThrow(value)) return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", typeName(value)), testStringCoercion(value); 918 } 919 function injectInternals(internals) { 920 if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 921 var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; 922 if (hook.isDisabled) return !0; 923 if (!hook.supportsFiber) return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"), !0; 924 try { 925 rendererID = hook.inject(internals), injectedHook = hook; 926 } catch (err) { 927 console.error("React instrumentation encountered an error: %o.", err); 928 } 929 return hook.checkDCE ? !0 : !1; 930 } 931 function setIsStrictModeForDevtools(newIsStrictMode) { 932 "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); 933 if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { 934 injectedHook.setStrictMode(rendererID, newIsStrictMode); 935 } catch (err) { 936 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 937 } 938 } 939 function injectProfilingHooks(profilingHooks) { 940 injectedProfilingHooks = profilingHooks; 941 } 942 function markCommitStopped() { 943 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markCommitStopped && injectedProfilingHooks.markCommitStopped(); 944 } 945 function markComponentRenderStarted(fiber) { 946 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStarted && injectedProfilingHooks.markComponentRenderStarted(fiber); 947 } 948 function markComponentRenderStopped() { 949 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStopped && injectedProfilingHooks.markComponentRenderStopped(); 950 } 951 function markRenderStarted(lanes) { 952 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStarted && injectedProfilingHooks.markRenderStarted(lanes); 953 } 954 function markRenderStopped() { 955 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStopped && injectedProfilingHooks.markRenderStopped(); 956 } 957 function markStateUpdateScheduled(fiber, lane) { 958 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); 959 } 960 function clz32Fallback(x) { 961 x >>>= 0; 962 return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; 963 } 964 function getLabelForLane(lane) {
vendor: 13,707 bytes, lines 965-1280
965 if (lane & 1) return "SyncHydrationLane"; 966 if (lane & 2) return "Sync"; 967 if (lane & 4) return "InputContinuousHydration"; 968 if (lane & 8) return "InputContinuous"; 969 if (lane & 16) return "DefaultHydration"; 970 if (lane & 32) return "Default"; 971 if (lane & 128) return "TransitionHydration"; 972 if (lane & 4194048) return "Transition"; 973 if (lane & 62914560) return "Retry"; 974 if (lane & 67108864) return "SelectiveHydration"; 975 if (lane & 134217728) return "IdleHydration"; 976 if (lane & 268435456) return "Idle"; 977 if (lane & 536870912) return "Offscreen"; 978 if (lane & 1073741824) return "Deferred"; 979 } 980 function getHighestPriorityLanes(lanes) { 981 var pendingSyncLanes = lanes & 42; 982 if (0 !== pendingSyncLanes) return pendingSyncLanes; 983 switch(lanes & -lanes){ 984 case 1: 985 return 1; 986 case 2: 987 return 2; 988 case 4: 989 return 4; 990 case 8: 991 return 8; 992 case 16: 993 return 16; 994 case 32: 995 return 32; 996 case 64: 997 return 64; 998 case 128: 999 return 128; 1000 case 256: 1001 case 512: 1002 case 1024: 1003 case 2048: 1004 case 4096: 1005 case 8192: 1006 case 16384: 1007 case 32768: 1008 case 65536: 1009 case 131072: 1010 case 262144: 1011 case 524288: 1012 case 1048576: 1013 case 2097152: 1014 return lanes & 4194048; 1015 case 4194304: 1016 case 8388608: 1017 case 16777216: 1018 case 33554432: 1019 return lanes & 62914560; 1020 case 67108864: 1021 return 67108864; 1022 case 134217728: 1023 return 134217728; 1024 case 268435456: 1025 return 268435456; 1026 case 536870912: 1027 return 536870912; 1028 case 1073741824: 1029 return 0; 1030 default: 1031 return console.error("Should have found matching lanes. This is a bug in React."), lanes; 1032 } 1033 } 1034 function getNextLanes(root, wipLanes, rootHasPendingCommit) { 1035 var pendingLanes = root.pendingLanes; 1036 if (0 === pendingLanes) return 0; 1037 var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes; 1038 root = root.warmLanes; 1039 var nonIdlePendingLanes = pendingLanes & 134217727; 1040 0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pendingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); 1041 return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || 32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)) ? wipLanes : nextLanes; 1042 } 1043 function checkIfRootIsPrerendering(root, renderLanes) { 1044 return 0 === (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes); 1045 } 1046 function computeExpirationTime(lane, currentTime) { 1047 switch(lane){ 1048 case 1: 1049 case 2: 1050 case 4: 1051 case 8: 1052 case 64: 1053 return currentTime + 250; 1054 case 16: 1055 case 32: 1056 case 128: 1057 case 256: 1058 case 512: 1059 case 1024: 1060 case 2048: 1061 case 4096: 1062 case 8192: 1063 case 16384: 1064 case 32768: 1065 case 65536: 1066 case 131072: 1067 case 262144: 1068 case 524288: 1069 case 1048576: 1070 case 2097152: 1071 return currentTime + 5e3; 1072 case 4194304: 1073 case 8388608: 1074 case 16777216: 1075 case 33554432: 1076 return -1; 1077 case 67108864: 1078 case 134217728: 1079 case 268435456: 1080 case 536870912: 1081 case 1073741824: 1082 return -1; 1083 default: 1084 return console.error("Should have found matching lanes. This is a bug in React."), -1; 1085 } 1086 } 1087 function claimNextTransitionLane() { 1088 var lane = nextTransitionLane; 1089 nextTransitionLane <<= 1; 1090 0 === (nextTransitionLane & 4194048) && (nextTransitionLane = 256); 1091 return lane; 1092 } 1093 function claimNextRetryLane() { 1094 var lane = nextRetryLane; 1095 nextRetryLane <<= 1; 1096 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); 1097 return lane; 1098 } 1099 function createLaneMap(initial) { 1100 for(var laneMap = [], i = 0; 31 > i; i++)laneMap.push(initial); 1101 return laneMap; 1102 } 1103 function markRootUpdated$1(root, updateLane) { 1104 root.pendingLanes |= updateLane; 1105 268435456 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0); 1106 } 1107 function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) { 1108 var previouslyPendingLanes = root.pendingLanes; 1109 root.pendingLanes = remainingLanes; 1110 root.suspendedLanes = 0; 1111 root.pingedLanes = 0; 1112 root.warmLanes = 0; 1113 root.expiredLanes &= remainingLanes; 1114 root.entangledLanes &= remainingLanes; 1115 root.errorRecoveryDisabledLanes &= remainingLanes; 1116 root.shellSuspendCounter = 0; 1117 var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; 1118 for(remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes;){ 1119 var index = 31 - clz32(remainingLanes), lane = 1 << index; 1120 entanglements[index] = 0; 1121 expirationTimes[index] = -1; 1122 var hiddenUpdatesForLane = hiddenUpdates[index]; 1123 if (null !== hiddenUpdatesForLane) for(hiddenUpdates[index] = null, index = 0; index < hiddenUpdatesForLane.length; index++){ 1124 var update = hiddenUpdatesForLane[index]; 1125 null !== update && (update.lane &= -536870913); 1126 } 1127 remainingLanes &= ~lane; 1128 } 1129 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); 1130 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root.tag && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); 1131 } 1132 function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { 1133 root.pendingLanes |= spawnedLane; 1134 root.suspendedLanes &= ~spawnedLane; 1135 var spawnedLaneIndex = 31 - clz32(spawnedLane); 1136 root.entangledLanes |= spawnedLane; 1137 root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 4194090; 1138 } 1139 function markRootEntangled(root, entangledLanes) { 1140 var rootEntangledLanes = root.entangledLanes |= entangledLanes; 1141 for(root = root.entanglements; rootEntangledLanes;){ 1142 var index = 31 - clz32(rootEntangledLanes), lane = 1 << index; 1143 lane & entangledLanes | root[index] & entangledLanes && (root[index] |= entangledLanes); 1144 rootEntangledLanes &= ~lane; 1145 } 1146 } 1147 function getBumpedLaneForHydration(root, renderLanes) { 1148 var renderLane = renderLanes & -renderLanes; 1149 renderLane = 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane); 1150 return 0 !== (renderLane & (root.suspendedLanes | renderLanes)) ? 0 : renderLane; 1151 } 1152 function getBumpedLaneForHydrationByLane(lane) { 1153 switch(lane){ 1154 case 2: 1155 lane = 1; 1156 break; 1157 case 8: 1158 lane = 4; 1159 break; 1160 case 32: 1161 lane = 16; 1162 break; 1163 case 256: 1164 case 512: 1165 case 1024: 1166 case 2048: 1167 case 4096: 1168 case 8192: 1169 case 16384: 1170 case 32768: 1171 case 65536: 1172 case 131072: 1173 case 262144: 1174 case 524288: 1175 case 1048576: 1176 case 2097152: 1177 case 4194304: 1178 case 8388608: 1179 case 16777216: 1180 case 33554432: 1181 lane = 128; 1182 break; 1183 case 268435456: 1184 lane = 134217728; 1185 break; 1186 default: 1187 lane = 0; 1188 } 1189 return lane; 1190 } 1191 function addFiberToLanesMap(root, fiber, lanes) { 1192 if (isDevToolsPresent) for(root = root.pendingUpdatersLaneMap; 0 < lanes;){ 1193 var index = 31 - clz32(lanes), lane = 1 << index; 1194 root[index].add(fiber); 1195 lanes &= ~lane; 1196 } 1197 } 1198 function movePendingFibersToMemoized(root, lanes) { 1199 if (isDevToolsPresent) for(var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, memoizedUpdaters = root.memoizedUpdaters; 0 < lanes;){ 1200 var index = 31 - clz32(lanes); 1201 root = 1 << index; 1202 index = pendingUpdatersLaneMap[index]; 1203 0 < index.size && (index.forEach(function(fiber) { 1204 var alternate = fiber.alternate; 1205 null !== alternate && memoizedUpdaters.has(alternate) || memoizedUpdaters.add(fiber); 1206 }), index.clear()); 1207 lanes &= ~root; 1208 } 1209 } 1210 function lanesToEventPriority(lanes) { 1211 lanes &= -lanes; 1212 return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes ? 0 !== (lanes & 134217727) ? DefaultEventPriority : IdleEventPriority : ContinuousEventPriority : DiscreteEventPriority; 1213 } 1214 function resolveUpdatePriority() { 1215 var updatePriority = ReactDOMSharedInternals.p; 1216 if (0 !== updatePriority) return updatePriority; 1217 updatePriority = window.event; 1218 return void 0 === updatePriority ? DefaultEventPriority : getEventPriority(updatePriority.type); 1219 } 1220 function runWithPriority(priority, fn) { 1221 var previousPriority = ReactDOMSharedInternals.p; 1222 try { 1223 return ReactDOMSharedInternals.p = priority, fn(); 1224 } finally{ 1225 ReactDOMSharedInternals.p = previousPriority; 1226 } 1227 } 1228 function detachDeletedInstance(node) { 1229 delete node[internalInstanceKey]; 1230 delete node[internalPropsKey]; 1231 delete node[internalEventHandlersKey]; 1232 delete node[internalEventHandlerListenersKey]; 1233 delete node[internalEventHandlesSetKey]; 1234 } 1235 function getClosestInstanceFromNode(targetNode) { 1236 var targetInst = targetNode[internalInstanceKey]; 1237 if (targetInst) return targetInst; 1238 for(var parentNode = targetNode.parentNode; parentNode;){ 1239 if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) { 1240 parentNode = targetInst.alternate; 1241 if (null !== targetInst.child || null !== parentNode && null !== parentNode.child) for(targetNode = getParentHydrationBoundary(targetNode); null !== targetNode;){ 1242 if (parentNode = targetNode[internalInstanceKey]) return parentNode; 1243 targetNode = getParentHydrationBoundary(targetNode); 1244 } 1245 return targetInst; 1246 } 1247 targetNode = parentNode; 1248 parentNode = targetNode.parentNode; 1249 } 1250 return null; 1251 } 1252 function getInstanceFromNode(node) { 1253 if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) { 1254 var tag = node.tag; 1255 if (5 === tag || 6 === tag || 13 === tag || 31 === tag || 26 === tag || 27 === tag || 3 === tag) return node; 1256 } 1257 return null; 1258 } 1259 function getNodeFromInstance(inst) { 1260 var tag = inst.tag; 1261 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode; 1262 throw Error("getNodeFromInstance: Invalid argument."); 1263 } 1264 function getResourcesFromRoot(root) { 1265 var resources = root[internalRootNodeResourcesKey]; 1266 resources || (resources = root[internalRootNodeResourcesKey] = { 1267 hoistableStyles: new Map(), 1268 hoistableScripts: new Map() 1269 }); 1270 return resources; 1271 } 1272 function markNodeAsHoistable(node) { 1273 node[internalHoistableMarker] = !0; 1274 } 1275 function registerTwoPhaseEvent(registrationName, dependencies) { 1276 registerDirectEvent(registrationName, dependencies); 1277 registerDirectEvent(registrationName + "Capture", dependencies); 1278 } 1279 function registerDirectEvent(registrationName, dependencies) { 1280 registrationNameDependencies[registrationName] && console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName);
vendor: 7,644 bytes, lines 1281-1446
1281 registrationNameDependencies[registrationName] = dependencies; 1282 var lowerCasedName = registrationName.toLowerCase(); 1283 possibleRegistrationNames[lowerCasedName] = registrationName; 1284 "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); 1285 for(registrationName = 0; registrationName < dependencies.length; registrationName++)allNativeEvents.add(dependencies[registrationName]); 1286 } 1287 function checkControlledValueProps(tagName, props) { 1288 hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || null == props.value || ("select" === tagName ? console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.") : console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")); 1289 props.onChange || props.readOnly || props.disabled || null == props.checked || console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); 1290 } 1291 function isAttributeNameSafe(attributeName) { 1292 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0; 1293 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; 1294 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return validatedAttributeNameCache[attributeName] = !0; 1295 illegalAttributeNameCache[attributeName] = !0; 1296 console.error("Invalid attribute name: `%s`", attributeName); 1297 return !1; 1298 } 1299 function getValueForAttributeOnCustomComponent(node, name, expected) { 1300 if (isAttributeNameSafe(name)) { 1301 if (!node.hasAttribute(name)) { 1302 switch(typeof expected){ 1303 case "symbol": 1304 case "object": 1305 return expected; 1306 case "function": 1307 return expected; 1308 case "boolean": 1309 if (!1 === expected) return expected; 1310 } 1311 return void 0 === expected ? void 0 : null; 1312 } 1313 node = node.getAttribute(name); 1314 if ("" === node && !0 === expected) return !0; 1315 checkAttributeStringCoercion(expected, name); 1316 return node === "" + expected ? expected : node; 1317 } 1318 } 1319 function setValueForAttribute(node, name, value) { 1320 if (isAttributeNameSafe(name)) if (null === value) node.removeAttribute(name); 1321 else { 1322 switch(typeof value){ 1323 case "undefined": 1324 case "function": 1325 case "symbol": 1326 node.removeAttribute(name); 1327 return; 1328 case "boolean": 1329 var prefix = name.toLowerCase().slice(0, 5); 1330 if ("data-" !== prefix && "aria-" !== prefix) { 1331 node.removeAttribute(name); 1332 return; 1333 } 1334 } 1335 checkAttributeStringCoercion(value, name); 1336 node.setAttribute(name, "" + value); 1337 } 1338 } 1339 function setValueForKnownAttribute(node, name, value) { 1340 if (null === value) node.removeAttribute(name); 1341 else { 1342 switch(typeof value){ 1343 case "undefined": 1344 case "function": 1345 case "symbol": 1346 case "boolean": 1347 node.removeAttribute(name); 1348 return; 1349 } 1350 checkAttributeStringCoercion(value, name); 1351 node.setAttribute(name, "" + value); 1352 } 1353 } 1354 function setValueForNamespacedAttribute(node, namespace, name, value) { 1355 if (null === value) node.removeAttribute(name); 1356 else { 1357 switch(typeof value){ 1358 case "undefined": 1359 case "function": 1360 case "symbol": 1361 case "boolean": 1362 node.removeAttribute(name); 1363 return; 1364 } 1365 checkAttributeStringCoercion(value, name); 1366 node.setAttributeNS(namespace, name, "" + value); 1367 } 1368 } 1369 function getToStringValue(value) { 1370 switch(typeof value){ 1371 case "bigint": 1372 case "boolean": 1373 case "number": 1374 case "string": 1375 case "undefined": 1376 return value; 1377 case "object": 1378 return checkFormFieldValueStringCoercion(value), value; 1379 default: 1380 return ""; 1381 } 1382 } 1383 function isCheckable(elem) { 1384 var type = elem.type; 1385 return (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type); 1386 } 1387 function trackValueOnNode(node, valueField, currentValue) { 1388 var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); 1389 if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) { 1390 var get = descriptor.get, set = descriptor.set; 1391 Object.defineProperty(node, valueField, { 1392 configurable: !0, 1393 get: function() { 1394 return get.call(this); 1395 }, 1396 set: function(value) { 1397 checkFormFieldValueStringCoercion(value); 1398 currentValue = "" + value; 1399 set.call(this, value); 1400 } 1401 }); 1402 Object.defineProperty(node, valueField, { 1403 enumerable: descriptor.enumerable 1404 }); 1405 return { 1406 getValue: function() { 1407 return currentValue; 1408 }, 1409 setValue: function(value) { 1410 checkFormFieldValueStringCoercion(value); 1411 currentValue = "" + value; 1412 }, 1413 stopTracking: function() { 1414 node._valueTracker = null; 1415 delete node[valueField]; 1416 } 1417 }; 1418 } 1419 } 1420 function track(node) { 1421 if (!node._valueTracker) { 1422 var valueField = isCheckable(node) ? "checked" : "value"; 1423 node._valueTracker = trackValueOnNode(node, valueField, "" + node[valueField]); 1424 } 1425 } 1426 function updateValueIfChanged(node) { 1427 if (!node) return !1; 1428 var tracker = node._valueTracker; 1429 if (!tracker) return !0; 1430 var lastValue = tracker.getValue(); 1431 var value = ""; 1432 node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value); 1433 node = value; 1434 return node !== lastValue ? (tracker.setValue(node), !0) : !1; 1435 } 1436 function getActiveElement(doc) { 1437 doc = doc || ("undefined" !== typeof document ? document : void 0); 1438 if ("undefined" === typeof doc) return null; 1439 try { 1440 return doc.activeElement || doc.body; 1441 } catch (e) { 1442 return doc.body; 1443 } 1444 } 1445 function escapeSelectorAttributeValueInsideDoubleQuotes(value) { 1446 return value.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex, function(ch) {
1447 return "\\" + ch.charCodeAt(0).toString(16) + " "; 1448 }); 1449 } 1450 function validateInputProps(element, props) { 1451 void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || (console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnCheckedDefaultChecked = !0); 1452 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue$1 || (console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnValueDefaultValue$1 = !0); 1453 } 1454 function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) { 1455 element.name = ""; 1456 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? (checkAttributeStringCoercion(type, "type"), element.type = type) : element.removeAttribute("type"); 1457 if (null != value) if ("number" === type) { 1458 if (0 === value && "" === element.value || element.value != value) element.value = "" + getToStringValue(value); 1459 } else element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value)); 1460 else "submit" !== type && "reset" !== type || element.removeAttribute("value"); 1461 null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); 1462 null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); 1463 null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); 1464 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? (checkAttributeStringCoercion(name, "name"), element.name = "" + getToStringValue(name)) : element.removeAttribute("name"); 1465 } 1466 function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating) { 1467 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (checkAttributeStringCoercion(type, "type"), element.type = type); 1468 if (null != value || null != defaultValue) { 1469 if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) { 1470 track(element); 1471 return; 1472 } 1473 defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1474 value = null != value ? "" + getToStringValue(value) : defaultValue; 1475 isHydrating || value === element.value || (element.value = value); 1476 element.defaultValue = value; 1477 } 1478 checked = null != checked ? checked : defaultChecked; 1479 checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; 1480 element.checked = isHydrating ? element.checked : !!checked; 1481 element.defaultChecked = !!checked; 1482 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (checkAttributeStringCoercion(name, "name"), element.name = name); 1483 track(element); 1484 } 1485 function setDefaultValue(node, type, value) { 1486 "number" === type && getActiveElement(node.ownerDocument) === no
vendor: 14,234 bytes, lines 1486-1683
1486de || node.defaultValue === "" + value || (node.defaultValue = "" + value); 1487 } 1488 function validateOptionProps(element, props) { 1489 null == props.value && ("object" === typeof props.children && null !== props.children ? React.Children.forEach(props.children, function(child) { 1490 null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = !0, console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")); 1491 }) : null == props.dangerouslySetInnerHTML || didWarnInvalidInnerHTML || (didWarnInvalidInnerHTML = !0, console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))); 1492 null == props.selected || didWarnSelectedSetOnOption || (console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), didWarnSelectedSetOnOption = !0); 1493 } 1494 function getDeclarationErrorAddendum() { 1495 var ownerName = getCurrentFiberOwnerNameInDevOrNull(); 1496 return ownerName ? "\n\nCheck the render method of `" + ownerName + "`." : ""; 1497 } 1498 function updateOptions(node, multiple, propValue, setDefaultSelected) { 1499 node = node.options; 1500 if (multiple) { 1501 multiple = {}; 1502 for(var i = 0; i < propValue.length; i++)multiple["$" + propValue[i]] = !0; 1503 for(propValue = 0; propValue < node.length; propValue++)i = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = !0); 1504 } else { 1505 propValue = "" + getToStringValue(propValue); 1506 multiple = null; 1507 for(i = 0; i < node.length; i++){ 1508 if (node[i].value === propValue) { 1509 node[i].selected = !0; 1510 setDefaultSelected && (node[i].defaultSelected = !0); 1511 return; 1512 } 1513 null !== multiple || node[i].disabled || (multiple = node[i]); 1514 } 1515 null !== multiple && (multiple.selected = !0); 1516 } 1517 } 1518 function validateSelectProps(element, props) { 1519 for(element = 0; element < valuePropNames.length; element++){ 1520 var propName = valuePropNames[element]; 1521 if (null != props[propName]) { 1522 var propNameIsArray = isArrayImpl(props[propName]); 1523 props.multiple && !propNameIsArray ? console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", propName, getDeclarationErrorAddendum()) : !props.multiple && propNameIsArray && console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", propName, getDeclarationErrorAddendum()); 1524 } 1525 } 1526 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || (console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"), didWarnValueDefaultValue = !0); 1527 } 1528 function validateTextareaProps(element, props) { 1529 void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || (console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component"), didWarnValDefaultVal = !0); 1530 null != props.children && null == props.value && console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."); 1531 } 1532 function updateTextarea(element, value, defaultValue) { 1533 if (null != value && (value = "" + getToStringValue(value), value !== element.value && (element.value = value), null == defaultValue)) { 1534 element.defaultValue !== value && (element.defaultValue = value); 1535 return; 1536 } 1537 element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1538 } 1539 function initTextarea(element, value, defaultValue, children) { 1540 if (null == value) { 1541 if (null != children) { 1542 if (null != defaultValue) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children."); 1543 if (isArrayImpl(children)) { 1544 if (1 < children.length) throw Error("<textarea> can only have at most one child."); 1545 children = children[0]; 1546 } 1547 defaultValue = children; 1548 } 1549 null == defaultValue && (defaultValue = ""); 1550 value = defaultValue; 1551 } 1552 defaultValue = getToStringValue(value); 1553 element.defaultValue = defaultValue; 1554 children = element.textContent; 1555 children === defaultValue && "" !== children && null !== children && (element.value = children); 1556 track(element); 1557 } 1558 function findNotableNode(node, indent) { 1559 return void 0 === node.serverProps && 0 === node.serverTail.length && 1 === node.children.length && 3 < node.distanceFromLeaf && node.distanceFromLeaf > 15 - indent ? findNotableNode(node.children[0], indent) : node; 1560 } 1561 function indentation(indent) { 1562 return " " + " ".repeat(indent); 1563 } 1564 function added(indent) { 1565 return "+ " + " ".repeat(indent); 1566 } 1567 function removed(indent) { 1568 return "- " + " ".repeat(indent); 1569 } 1570 function describeFiberType(fiber) { 1571 switch(fiber.tag){ 1572 case 26: 1573 case 27: 1574 case 5: 1575 return fiber.type; 1576 case 16: 1577 return "Lazy"; 1578 case 31: 1579 return "Activity"; 1580 case 13: 1581 return "Suspense"; 1582 case 19: 1583 return "SuspenseList"; 1584 case 0: 1585 case 15: 1586 return fiber = fiber.type, fiber.displayName || fiber.name || null; 1587 case 11: 1588 return fiber = fiber.type.render, fiber.displayName || fiber.name || null; 1589 case 1: 1590 return fiber = fiber.type, fiber.displayName || fiber.name || null; 1591 default: 1592 return null; 1593 } 1594 } 1595 function describeTextNode(content, maxLength) { 1596 return needsEscaping.test(content) ? (content = JSON.stringify(content), content.length > maxLength - 2 ? 8 > maxLength ? '{"..."}' : "{" + content.slice(0, maxLength - 7) + '..."}' : "{" + content + "}") : content.length > maxLength ? 5 > maxLength ? '{"..."}' : content.slice(0, maxLength - 3) + "..." : content; 1597 } 1598 function describeTextDiff(clientText, serverProps, indent) { 1599 var maxLength = 120 - 2 * indent; 1600 if (null === serverProps) return added(indent) + describeTextNode(clientText, maxLength) + "\n"; 1601 if ("string" === typeof serverProps) { 1602 for(var firstDiff = 0; firstDiff < serverProps.length && firstDiff < clientText.length && serverProps.charCodeAt(firstDiff) === clientText.charCodeAt(firstDiff); firstDiff++); 1603 firstDiff > maxLength - 8 && 10 < firstDiff && (clientText = "..." + clientText.slice(firstDiff - 8), serverProps = "..." + serverProps.slice(firstDiff - 8)); 1604 return added(indent) + describeTextNode(clientText, maxLength) + "\n" + removed(indent) + describeTextNode(serverProps, maxLength) + "\n"; 1605 } 1606 return indentation(indent) + describeTextNode(clientText, maxLength) + "\n"; 1607 } 1608 function objectName(object) { 1609 return Object.prototype.toString.call(object).replace(/^\[object (.*)\]$/, function(m, p0) { 1610 return p0; 1611 }); 1612 } 1613 function describeValue(value, maxLength) { 1614 switch(typeof value){ 1615 case "string": 1616 return value = JSON.stringify(value), value.length > maxLength ? 5 > maxLength ? '"..."' : value.slice(0, maxLength - 4) + '..."' : value; 1617 case "object": 1618 if (null === value) return "null"; 1619 if (isArrayImpl(value)) return "[...]"; 1620 if (value.$$typeof === REACT_ELEMENT_TYPE) return (maxLength = getComponentNameFromType(value.type)) ? "<" + maxLength + ">" : "<...>"; 1621 var name = objectName(value); 1622 if ("Object" === name) { 1623 name = ""; 1624 maxLength -= 2; 1625 for(var propName in value)if (value.hasOwnProperty(propName)) { 1626 var jsonPropName = JSON.stringify(propName); 1627 jsonPropName !== '"' + propName + '"' && (propName = jsonPropName); 1628 maxLength -= propName.length - 2; 1629 jsonPropName = describeValue(value[propName], 15 > maxLength ? maxLength : 15); 1630 maxLength -= jsonPropName.length; 1631 if (0 > maxLength) { 1632 name += "" === name ? "..." : ", ..."; 1633 break; 1634 } 1635 name += ("" === name ? "" : ",") + propName + ":" + jsonPropName; 1636 } 1637 return "{" + name + "}"; 1638 } 1639 return name; 1640 case "function": 1641 return (maxLength = value.displayName || value.name) ? "function " + maxLength : "function"; 1642 default: 1643 return String(value); 1644 } 1645 } 1646 function describePropValue(value, maxLength) { 1647 return "string" !== typeof value || needsEscaping.test(value) ? "{" + describeValue(value, maxLength - 2) + "}" : value.length > maxLength - 2 ? 5 > maxLength ? '"..."' : '"' + value.slice(0, maxLength - 5) + '..."' : '"' + value + '"'; 1648 } 1649 function describeExpandedElement(type, props, rowPrefix) { 1650 var remainingRowLength = 120 - rowPrefix.length - type.length, properties = [], propName; 1651 for(propName in props)if (props.hasOwnProperty(propName) && "children" !== propName) { 1652 var propValue = describePropValue(props[propName], 120 - rowPrefix.length - propName.length - 1); 1653 remainingRowLength -= propName.length + propValue.length + 2; 1654 properties.push(propName + "=" + propValue); 1655 } 1656 return 0 === properties.length ? rowPrefix + "<" + type + ">\n" : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties.join(" ") + ">\n" : rowPrefix + "<" + type + "\n" + rowPrefix + " " + properties.join("\n" + rowPrefix + " ") + "\n" + rowPrefix + ">\n"; 1657 } 1658 function describePropertiesDiff(clientObject, serverObject, indent) { 1659 var properties = "", remainingServerProperties = assign({}, serverObject), propName; 1660 for(propName in clientObject)if (clientObject.hasOwnProperty(propName)) { 1661 delete remainingServerProperties[propName]; 1662 var maxLength = 120 - 2 * indent - propName.length - 2, clientPropValue = describeValue(clientObject[propName], maxLength); 1663 serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties += added(indent) + propName + ": " + clientPropValue + "\n", properties += removed(indent) + propName + ": " + maxLength + "\n") : properties += added(indent) + propName + ": " + clientPropValue + "\n"; 1664 } 1665 for(var _propName in remainingServerProperties)remainingServerProperties.hasOwnProperty(_propName) && (clientObject = describeValue(remainingServerProperties[_propName], 120 - 2 * indent - _propName.length - 2), properties += removed(indent) + _propName + ": " + clientObject + "\n"); 1666 return properties; 1667 } 1668 function describeElementDiff(type, clientProps, serverProps, indent) { 1669 var content = "", serverPropNames = new Map(); 1670 for(propName$jscomp$0 in serverProps)serverProps.hasOwnProperty(propName$jscomp$0) && serverPropNames.set(propName$jscomp$0.toLowerCase(), propName$jscomp$0); 1671 if (1 === serverPropNames.size && serverPropNames.has("children")) content += describeExpandedElement(type, clientProps, indentation(indent)); 1672 else { 1673 for(var _propName2 in clientProps)if (clientProps.hasOwnProperty(_propName2) && "children" !== _propName2) { 1674 var maxLength$jscomp$0 = 120 - 2 * (indent + 1) - _propName2.length - 1, serverPropName = serverPropNames.get(_propName2.toLowerCase()); 1675 if (void 0 !== serverPropName) { 1676 serverPropNames.delete(_propName2.toLowerCase()); 1677 var propName$jscomp$0 = clientProps[_propName2]; 1678 serverPropName = serverProps[serverPropName]; 1679 var clientPropValue = describePropValue(propName$jscomp$0, maxLength$jscomp$0); 1680 maxLength$jscomp$0 = describePropValue(serverPropName, maxLength$jscomp$0); 1681 "object" === typeof propName$jscomp$0 && null !== propName$jscomp$0 && "object" === typeof serverPropName && null !== serverPropName && "Object" === objectName(propName$jscomp$0) && "Object" === objectName(serverPropName) && (2 < Object.keys(propName$jscomp$0).length || 2 < Object.keys(serverPropName).length || -1 < clientPropValue.indexOf("...") || -1 < maxLength$jscomp$0.indexOf("...")) ? content += indentation(indent + 1) + _propName2 + "={{\n" + describePropertiesDiff(propName$jscomp$0, serverPropName, indent + 2) + indentation(indent + 1) + "}}\n" : (content += added(indent + 1) + _propName2 + "=" + clientPropValue + "\n", content += removed(indent + 1) + _propName2 + "=" + maxLength$jscomp$0 + "\n"); 1682 } else content += indentation(indent + 1) + _propName2 + "=" + describePropValue(clientProps[_propName2], maxLength$jscomp$0) + "\n"; 1683 }
1684 serverPropNames.forEach(function(propName) { 1685 if ("children" !== propName) { 1686 var maxLength = 120 - 2 * (indent + 1) - propName.length - 1; 1687 content += removed(indent + 1) + propName + "=" + describePropValue(serverProps[propName], maxLength) + "\n"; 1688 } 1689 }); 1690 content = "" === content ? indentation(indent) + "<" + type + ">\n" : indentation(indent) + "<" + type + "\n" + content + indentation(indent) + ">\n"; 1691 } 1692 type = serverProps.children; 1693 clientProps = clientProps.children; 1694 if ("string" === typeof type || "number" === typeof type || "bigint" === typeof type) { 1695 serverPropNames = ""; 1696 if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) serverPropNames = "" + clientProps; 1697 content += describeTextDiff(serverPropNames, "" + type, indent + 1); 1698 } else if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) content = null == type ? content + describeTextDiff("" + clientProps, null, indent + 1) : content + describeTextDiff("" + clientProps, void 0, indent + 1); 1699 return content; 1700 } 1701 function describeSiblingFiber(fiber, indent) { 1702 var type = describeFiberType(fiber); 1703 if (null === type) { 1704 type = ""; 1705 for(fiber = fiber.child; fiber;)type += describeSiblingFiber(fiber, indent), fiber = fiber.sibling; 1706 return type; 1707 } 1708 return indentation(indent) + "<" + type + ">\n"; 1709 } 1710 function describeNode(node, indent) { 1711 var skipToNode = findNotableNode(node, indent); 1712 if (skipToNode !== node && (1 !== node.children.length || node.children[0] !== skipToNode)) return indentation(indent) + "...\n" + describeNode(skipToNode, indent + 1); 1713 skipToNode = ""; 1714 var debugInfo = node.fiber._debugInfo; 1715 if (debugInfo) for(var i = 0; i < debugInfo.length; i++){ 1716 var serverComponentName = debugInfo[i].name; 1717 "string" === typeof serverComponentName && (skipToNode += indentation(indent) + "<" + serverComponentName + ">\n", indent++); 1718 } 1719 debugInfo = ""; 1720 i = node.fiber.pendingProps; 1721 if (6 === node.fiber.tag) debugInfo = describeTextDiff(i, node.serverProps, indent), indent++; 1722 else if (serverComponentName = describeFiberType(node.fiber), null !== serverComponentName) if (void 0 === node.serverProps) { 1723 debugInfo = indent; 1724 var maxLength = 120 - 2 * debugInfo - serverComponentName.length - 2, content = ""; 1725 for(propName in i)if (i.hasOwnProperty(propName) && "children" !== propName) { 1726 var propValue = describePropValue(i[propName], 15); 1727 maxLength -= propName.length + propValue.length + 2; 1728 if (0 > maxLength) { 1729 content += " ..."; 1730 break; 1731 } 1732 content += " " + propName + "=" + propValue; 1733 } 1734 debugInfo = indentation(debugInfo) + "<" + serverComponentName + content + ">\n"; 1735 indent++; 1736 } else null === node.serverProps ? (debugInfo = describeExpandedElement(serverComponentName, i, added(indent)), indent++) : "string" === typeof node.serverProps ? console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React.") : (debugInfo = describeElementDiff(serverComponentName, i, node.serverProps, indent), indent++); 1737 var propName = ""; 1738 i = node.fiber.child; 1739 for(serverComponentName = 0; i && serverComponentName < node.children.length;)maxLength = node.children[serverComponentName], maxLength.fiber === i ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i, indent), i = i.sibling; 1740 i && 0 < node.children.length && (propName += indentation(indent) + "...\n"); 1741 i = node.serverTail; 1742 null === node.serverProps && indent--; 1743 for(node = 0; node < i.length; node++)serverComponentName = i[node], propName = "string" === typeof serverComponentName ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + "\n") : propName + describeExpandedElement(serverComponentName.type, serverComponentName.props, removed(indent)); 1744 return skipToNode + debugInfo + propName; 1745 } 1746 function describeDiff(rootNode) { 1747 try { 1748 return "\n\n" + describeNode(rootNode, 0); 1749 } catch (x) { 1750 return ""; 1751 } 1752 } 1753 function describeAncestors(ancestor, child, props) { 1754 for(var fiber = child, node = null, distanceFromLeaf = 0; fiber;)fiber === ancestor && (distanceFromLeaf = 0), node = { 1755 fiber: fiber, 1756 children: null !== node ? [ 1757 node 1758 ] : [], 1759 serverProps: fiber === child ? props : fiber === ancestor ? null : void 0, 1760 serverTail: [], 1761 distanceFromLeaf: distanceFromLeaf 1762 }, distanceFromLeaf++, fiber = fiber.return; 1763 return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; 1764 } 1765 function updatedAncestorInfoDev(oldInfo, tag) { 1766 var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), info = { 1767 tag: tag 1768 }; 1769 -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, ancestorInfo.nobrTagInScope = null); 1770 -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null); 1771 -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, ancestorInfo.dlItemTagAutoclosing = null); 1772 ancestorInfo.current = info; 1773 "form" === tag && (ancestorInfo.formTag = info); 1774 "a" === tag && (ancestorInfo.aTagInScope = info); 1775 "button" === tag && (ancestorInfo.buttonTagInScope = info); 1776 "nobr" === tag && (ancestorInfo.nobrTagInScope = info); 1777 "p" === tag && (ancestorInfo.pTagInButtonScope = info); 1778 "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); 1779 if ("dd" === tag || "dt" === tag) ancestorInfo.dlItemTagAutoclosing = info; 1780 "#document" === tag || "html" === tag ? ancestorInfo.containerTagInScope = null : ancestorInfo.containerTagInScope || (ancestorInfo.containerTagInScope = info); 1781 null !== oldInfo || "#document" !== tag && "html" !== tag && "body" !== tag ? !0 === ancestorInfo.implicitRootScope && (ancestorInfo.implicitRootScope = !1) : ancestorInfo.implicitRootScope = !0; 1782 return ancestorInfo; 1783 } 1784 function isTagValidWithParent(tag, parentTag, implicitRootScope) { 1785 switch(parentTag){ 1786 case "select": 1787 return "hr" === tag || "option" === tag || "optgroup" === tag || "script" === tag || "template" === tag || "#text" === tag; 1788 case "optgroup": 1789 return "option" === tag || "#text" === tag; 1790 case "option": 1791 return "#text" === tag; 1792 case "tr": 1793 return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; 1794 case "tbody": 1795 case "thead": 1796 case "tfoot": 1797 return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; 1798 case "colgroup": 1799 return "col" === tag || "template" === tag; 1800 case "table": 1801 return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; 1802 case "head": 1803 return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; 1804 case "html": 1805 if (implicitRootScope) break; 1806 return "head" === tag || "body" === tag || "frameset" === tag; 1807 case "frameset": 1808 return "frame" === tag; 1809 case "#document": 1810 if (!implicitRootScope) return "html" === tag; 1811 } 1812 switch(tag){ 1813 case "h1": 1814 case "h2": 1815 case "h3": 1816 case "h4": 1817 case "h5": 1818 case "h6": 1819 return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag; 1820 case "rp": 1821 case "rt": 1822 return -1 === impliedEndTags.indexOf(parentTag); 1823 case "caption": 1824 case "col": 1825 case "colgroup": 1826 case "frameset": 1827 case "frame": 1828 case "tbody": 1829 case "td": 1830 case "tfoot": 1831 case "th": 1832 case "thead": 1833 case "tr": 1834 return null == parentTag; 1835 case "head": 1836 return implicitRootScope || null === parentTag; 1837 case "html": 1838 return implicitRootScope && "#document" === parentTag || null === parentTag; 1839 case "body": 1840 return implicitRootScope && ("#document" === parentTag || "html" === parentTag) || null === parentTag; 1841 } 1842 return !0; 1843 }
1844 function findInvalidAncestorForTag(tag, ancestorInfo) { 1845 switch(tag){ 1846 case "address": 1847 case "article": 1848 case "aside": 1849 case "blockquote": 1850 case "center": 1851 case "details": 1852 case "dialog": 1853 case "dir": 1854 case "div": 1855 case "dl": 1856 case "fieldset": 1857 case "figcaption": 1858 case "figure": 1859 case "footer": 1860 case "header": 1861 case "hgroup": 1862 case "main": 1863 case "menu": 1864 case "nav": 1865 case "ol": 1866 case "p": 1867 case "section": 1868 case "summary": 1869 case "ul": 1870 case "pre": 1871 case "listing": 1872 case "table": 1873 case "hr": 1874 case "xmp": 1875 case "h1": 1876 case "h2": 1877 case "h3": 1878 case "h4": 1879 case "h5": 1880 case "h6": 1881 return ancestorInfo.pTagInButtonScope; 1882 case "form": 1883 return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 1884 case "li": 1885 return ancestorInfo.listItemTagAutoclosing; 1886 case "dd": 1887 case "dt": 1888 return ancestorInfo.dlItemTagAutoclosing; 1889 case "button": 1890 return ancestorInfo.buttonTagInScope; 1891 case "a": 1892 return ancestorInfo.aTagInScope; 1893 case "nobr": 1894 return ancestorInfo.nobrTagInScope; 1895 } 1896 return null; 1897 } 1898 function findAncestor(parent, tagName) { 1899 for(; parent;){ 1900 switch(parent.tag){ 1901 case 5: 1902 case 26: 1903 case 27: 1904 if (parent.type === tagName) return parent; 1905 } 1906 parent = parent.return; 1907 } 1908 return null; 1909 } 1910 function validateDOMNesting(childTag, ancestorInfo) { 1911 ancestorInfo = ancestorInfo || emptyAncestorInfoDev; 1912 var parentInfo = ancestorInfo.current; 1913 ancestorInfo = (parentInfo = isTagValidWithParent(childTag, parentInfo && parentInfo.tag, ancestorInfo.implicitRootScope) ? null : parentInfo) ? null : findInvalidAncestorForTag(childTag, ancestorInfo); 1914 ancestorInfo = parentInfo || ancestorInfo; 1915 if (!ancestorInfo) return !0; 1916 var ancestorTag = ancestorInfo.tag; 1917 ancestorInfo = String(!!parentInfo) + "|" + childTag + "|" + ancestorTag; 1918 if (didWarn[ancestorInfo]) return !1; 1919 didWarn[ancestorInfo] = !0; 1920 var ancestor = (ancestorInfo = current) ? findAncestor(ancestorInfo.return, ancestorTag) : null, ancestorDescription = null !== ancestorInfo && null !== ancestor ? describeAncestors(ancestor, ancestorInfo, null) : "", tagDisplayName = "<" + childTag + ">"; 1921 parentInfo ? (parentInfo = "", "table" === ancestorTag && "tr" === childTag && (parentInfo += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s", tagDisplayName, ancestorTag, parentInfo, ancestorDescription)) : console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s", tagDisplayName, ancestorTag, ancestorDescription); 1922 ancestorInfo && (childTag = ancestorInfo.return, null === ancestor || null === childTag || ancestor === childTag && childTag._debugOwner === ancestorInfo._debugOwner || runWithFiberInDEV(ancestor, function() { 1923 console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.", ancestorTag, tagDisplayName); 1924 })); 1925 return !1; 1926 } 1927 function validateTextNesting(childText, parentTag, implicitRootScope) { 1928 if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) return !0; 1929 implicitRootScope = "#text|" + parentTag; 1930 if (didWarn[implicitRootScope]) return !1; 1931 didWarn[implicitRootScope] = !0;
1932 var ancestor = (implicitRootScope = current) ? findAncestor(implicitRootScope, parentTag) : null; 1933 implicitRootScope = null !== implicitRootScope && null !== ancestor ? describeAncestors(ancestor, implicitRootScope, 6 !== implicitRootScope.tag ? { 1934 children: null 1935 } : null) : ""; 1936 /\S/.test(childText) ? console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, implicitRootScope) : console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, implicitRootScope); 1937 return !1; 1938 } 1939 function setTextContent(node, text) { 1940 if (text) { 1941 var firstChild = node.firstChild; 1942 if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) { 1943 firstChild.nodeValue = text; 1944 return; 1945 } 1946 } 1947 node.textContent = text; 1948 } 1949 function camelize(string) { 1950 return string.replace(hyphenPattern, function(_, character) { 1951 return character.toUpperCase(); 1952 }); 1953 } 1954 function setValueForStyle(style, styleName, value) { 1955 var isCustomProperty = 0 === styleName.indexOf("--"); 1956 isCustomProperty || (-1 < styleName.indexOf("-") ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = !0, console.error("Unsupported style property %s. Did you mean %s?", styleName, camelize(styleName.replace(msPattern, "ms-")))) : badVendoredStyleNamePattern.test(styleName) ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = !0, console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?", styleName, styleName.charAt(0).toUpperCase() + styleName.slice(1))) : !badStyleValueWithSemicolonPattern.test(value) || warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0, console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.', styleName, value.replace(badStyleValueWithSemicolonPattern, ""))), "number" === typeof value && (isNaN(value) ? warnedForNaNValue || (warnedForNaNValue = !0, console.error("`NaN` is an invalid value for the `%s` css style property.", styleName)) : isFinite(value) || warnedForInfinityValue || (warnedForInfinityValue = !0, console.error("`Infinity` is an invalid value for the `%s` css style property.", styleName)))); 1957 null == value || "boolean" === typeof value || "" === value ? isCustomProperty ? style.setProperty(styleName, "") : "float" === styleName ? style.cssFloat = "" : style[styleName] = "" : isCustomProperty ? style.setProperty(styleName, value) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? "float" === styleName ? style.cssFloat = value : (checkCSSPropertyStringCoercion(value, styleName), style[styleName] = ("" + value).trim()) : style[styleName] = value + "px"; 1958 } 1959 function setValueForStyles(node, styles, prevStyles) { 1960 if (null != styles && "object" !== typeof styles) throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); 1961 styles && Object.freeze(styles); 1962 node = node.style; 1963 if (null != prevStyles) { 1964 if (styles) { 1965 var expandedUpdates = {}; 1966 if (prevStyles) { 1967 for(var key in prevStyles)if (prevStyles.hasOwnProperty(key) && !styles.hasOwnProperty(key)) for(var longhands = shorthandToLonghand[key] || [ 1968 key 1969 ], i = 0; i < longhands.length; i++)expandedUpdates[longhands[i]] = key; 1970 } 1971 for(var _key in styles)if (styles.hasOwnProperty(_key) && (!prevStyles || prevStyles[_key] !== styles[_key])) for(key = shorthandToLonghand[_key] || [ 1972 _key 1973 ], longhands = 0; longhands < key.length;
1973 longhands++)expandedUpdates[key[longhands]] = _key; 1974 _key = {}; 1975 for(var key$jscomp$0 in styles)for(key = shorthandToLonghand[key$jscomp$0] || [ 1976 key$jscomp$0 1977 ], longhands = 0; longhands < key.length; longhands++)_key[key[longhands]] = key$jscomp$0; 1978 key$jscomp$0 = {}; 1979 for(var _key2 in expandedUpdates)if (key = expandedUpdates[_key2], (longhands = _key[_key2]) && key !== longhands && (i = key + "," + longhands, !key$jscomp$0[i])) { 1980 key$jscomp$0[i] = !0; 1981 i = console; 1982 var value = styles[key]; 1983 i.error.call(i, "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", null == value || "boolean" === typeof value || "" === value ? "Removing" : "Updating", key, longhands); 1984 } 1985 } 1986 for(var styleName in prevStyles)!prevStyles.hasOwnProperty(styleName) || null != styles && styles.hasOwnProperty(styleName) || (0 === styleName.indexOf("--") ? node.setProperty(styleName, "") : "float" === styleName ? node.cssFloat = "" : node[styleName] = ""); 1987 for(var _styleName in styles)_key2 = styles[_styleName], styles.hasOwnProperty(_styleName) && prevStyles[_styleName] !== _key2 && setValueForStyle(node, _styleName, _key2); 1988 } else for(expandedUpdates in styles)styles.hasOwnProperty(expandedUpdates) && setValueForStyle(node, expandedUp
1988dates, styles[expandedUpdates]); 1989 } 1990 function isCustomElement(tagName) { 1991 if (-1 === tagName.indexOf("-")) return !1; 1992 switch(tagName){ 1993 case "annotation-xml": 1994 case "color-profile": 1995 case "font-face": 1996 case "font-face-src": 1997 case "font-face-uri": 1998 case "font-face-format": 1999 case "font-face-name": 2000 case "missing-glyph": 2001 return !1; 2002 default: 2003 return !0; 2004 } 2005 } 2006 function getAttributeAlias(name) { 2007 return aliases.get(name) || name; 2008 } 2009 function validateProperty$1(tagName, name) { 2010 if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0; 2011 if (rARIACamel$1.test(name)) { 2012 tagName = "aria-" + name.slice(4).toLowerCase(); 2013 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 2014 if (null == tagName) return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", name), warnedProperties$1[name] = !0; 2015 if (name !== tagName) return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, tagName), warnedProperties$1[name] = !0; 2016 } 2017 if (rARIA$1.test(name)) { 2018 tagName = name.toLowerCase(); 2019 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 2020 if (null == tagName) return warnedProperties$1[name] = !0, !1; 2021 name !== tagName && (console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, tagName), warnedProperties$1[name] = !0); 2022 } 2023 return !0; 2024 } 2025 function validateProperties$2(type, props) { 2026 var invalidProps = [], key; 2027 for(key in props)validateProperty$1(type, key) || invalidProps.push(key); 2028 props = invalidProps.map(function(prop) { 2029 return "`" + prop + "`"; 2030 }).join(", "); 2031 1 === invalidProps.length ? console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", props, type) : 1 < invalidProps.length && console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", props, type); 2032 } 2033 function validateProperty(tagName, name, value, eventRegistry) { 2034 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) return !0; 2035 var lowerCasedName = name.toLowerCase(); 2036 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."), warnedProperties[name] = !0; 2037 if ("function" === typeof value && ("form" === tagName && "action" === name || "input" === tagName && "formAction" === name || "button" === tagName && "formAction" === name)) return !0; 2038 if (null != eventRegistry) { 2039 tagName = eventRegistry.possibleRegistrationNames; 2040 if (eventRegistry.registrationNameDependencies.hasOwnProperty(name)) return !0; 2041 eventRegistry = tagName.hasOwnProperty(lowerCasedName) ? tagName[lowerCasedName] : null; 2042 if (null != eventRegistry) return console.error("Invalid event handler property `%s`. Did you mean `%s`?", name, eventRegistry), warnedProperties[name] = !0; 2043 if (EVENT_NAME_REGEX.test(name)) return console.error("Unknown event handler property `%s`. It will be ignored.", name), warnedProperties[name] = !0; 2044 } else if (EVENT_NAME_REGEX.test(name)) return INVALID_EVENT_NAME_REGEX.test(name) && console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", name), warnedProperties[name] = !0; 2045 if (rARIA.test(name) || rARIACamel.test(name)) return !0; 2046 if ("innerhtml" === lowerCasedName) return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."), warnedProperties[name] = !0; 2047 if ("aria" === lowerCasedName) return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."), warnedProperties[name] = !0; 2048 if ("is" === lowerCasedName && null !== value && void 0 !== value && "string" !== typeof value) return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof value), warnedProperties[name] = !0; 2049 if ("number" === typeof value && isNaN(value)) return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", name), warnedProperties[name] = !0; 2050 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { 2051 if (lowerCasedName = possibleStandardNames[lowerCasedName], lowerCasedName !== name) return console.error("Invalid DOM property `%s`. Did you mean `%s`?", name, lowerCasedName), warnedProperties[name] = !0; 2052 } else if (name !== lowerCasedName) return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", name, lowerCasedName), warnedProperties[name] = !0; 2053 switch(name){ 2054 case "dangerouslySetInnerHTML": 2055 case "children": 2056 case "style": 2057 case "suppressContentEditableWarning": 2058 case "suppressHydrationWarning": 2059 case "defaultValue": 2060 case "defaultChecked": 2061 case "innerHTML": 2062 case "ref": 2063 return !0; 2064 case "innerText": 2065 case "textContent": 2066 return !0; 2067 } 2068 switch(typeof value){ 2069 case "boolean": 2070 switch(name){ 2071 case "autoFocus": 2072 case "checked": 2073 case "multiple": 2074 case "muted": 2075 case "selected": 2076 case "contentEditable": 2077 case "spellCheck": 2078 case "draggable": 2079 case "value": 2080 case "autoReverse": 2081 case "externalResourcesRequired": 2082 case "focusable": 2083 case "preserveAlpha": 2084 case "allowFullScreen": 2085 case "async": 2086 case "autoPlay": 2087 case "controls": 2088 case "default": 2089 case "defer": 2090 case "disabled": 2091 case "disablePictureInPicture": 2092 case "disableRemotePlayback": 2093 case "formNoValidate": 2094 case "hidden": 2095 case "loop": 2096 case "noModule": 2097 case "noValidate": 2098 case "open":
2099 case "playsInline": 2100 case "readOnly": 2101 case "required": 2102 case "reversed": 2103 case "scoped": 2104 case "seamless": 2105 case "itemScope": 2106 case "capture": 2107 case "download": 2108 case "inert": 2109 return !0; 2110 default: 2111 lowerCasedName = name.toLowerCase().slice(0, 5); 2112 if ("data-" === lowerCasedName || "aria-" === lowerCasedName) return !0; 2113 value ? console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', value, name, name, value, name) : console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name); 2114 return warnedProperties[name] = !0; 2115 } 2116 case "function": 2117 case "symbol": 2118 return warnedProperties[name] = !0, !1; 2119 case "string": 2120 if ("false" === value || "true" === value) { 2121 switch(name){ 2122 case "checked": 2123 case "selected": 2124 case "multiple": 2125 case "muted": 2126 case "allowFullScreen": 2127 case "async": 2128 case "autoPlay": 2129 case "controls": 2130 case "default": 2131 case "defer": 2132 case "disabled": 2133 case "disablePictureInPicture": 2134 case "disableRemotePlayback": 2135 case "formNoValidate": 2136 case "hidden": 2137 case "loop": 2138 case "noModule": 2139 case "noValidate": 2140 case "open": 2141 case "playsInline": 2142 case "readOnly": 2143 case "required": 2144 case "reversed": 2145 case "scoped": 2146 case "seamless": 2147 case "itemScope": 2148 case "inert": 2149 break; 2150 default: 2151 return !0; 2152 } 2153 console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", value, name, "false" === value ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', name, value); 2154 warnedProperties[name] = !0; 2155 } 2156 } 2157 return !0; 2158 } 2159 function warnUnknownProperties(type, props, eventRegistry) { 2160 var unknownProps = [], key; 2161 for(key in props)validateProperty(type, key, props[key], eventRegistry) || unknownProps.push(key); 2162 props = unknownProps.map(function(prop) { 2163 return "`" + prop + "`"; 2164 }).join(", "); 2165 1 === unknownProps.length ? console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", props, type) : 1 < unknownProps.length && console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", props, type); 2166 } 2167 function sanitizeURL(url) { 2168 return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; 2169 } 2170 function noop$1() {} 2171 function getEventTarget(nativeEvent) { 2172 nativeEvent = nativeEvent.target || nativeEvent.srcElement || window; 2173 nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement); 2174 return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent; 2175 } 2176 function restoreStateOfTarget(target) { 2177 var internalInstance = getInstanceFromNode(target); 2178 if (internalInstance && (target = internalInstance.stateNode)) { 2179 var props = target[internalPropsKey] || null; 2180 a: switch(target = internalInstance.stateNode, internalInstance.type){ 2181 case "input": 2182 updateInput(target, props.value, props.defaultValue, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name); 2183 internalInstance = props.name; 2184 if ("radio" === props.type && null != internalInstance) { 2185 for(props = target; props.parentNode;)props = props.parentNode; 2186 checkAttributeStringCoercion(internalInstance, "name"); 2187 props = props.querySelectorAll('input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes("" + internalInstance) + '"][type="radio"]'); 2188 for(internalInstance = 0; internalInstance < props.length; internalInstance++){ 2189 var otherNode = props[internalInstance];
vendor: 6,055 bytes, lines 2190-2297
2190 if (otherNode !== target && otherNode.form === target.form) { 2191 var otherProps = otherNode[internalPropsKey] || null; 2192 if (!otherProps) throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); 2193 updateInput(otherNode, otherProps.value, otherProps.defaultValue, otherProps.defaultValue, otherProps.checked, otherProps.defaultChecked, otherProps.type, otherProps.name); 2194 } 2195 } 2196 for(internalInstance = 0; internalInstance < props.length; internalInstance++)otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode); 2197 } 2198 break a; 2199 case "textarea": 2200 updateTextarea(target, props.value, props.defaultValue); 2201 break a; 2202 case "select": 2203 internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, !1); 2204 } 2205 } 2206 } 2207 function batchedUpdates$1(fn, a, b) { 2208 if (isInsideEventHandler) return fn(a, b); 2209 isInsideEventHandler = !0; 2210 try { 2211 var JSCompiler_inline_result = fn(a); 2212 return JSCompiler_inline_result; 2213 } finally{ 2214 if (isInsideEventHandler = !1, null !== restoreTarget || null !== restoreQueue) { 2215 if (flushSyncWork$1(), restoreTarget && (a = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a), fn)) for(a = 0; a < fn.length; a++)restoreStateOfTarget(fn[a]); 2216 } 2217 } 2218 } 2219 function getListener(inst, registrationName) { 2220 var stateNode = inst.stateNode; 2221 if (null === stateNode) return null; 2222 var props = stateNode[internalPropsKey] || null; 2223 if (null === props) return null; 2224 stateNode = props[registrationName]; 2225 a: switch(registrationName){ 2226 case "onClick": 2227 case "onClickCapture": 2228 case "onDoubleClick": 2229 case "onDoubleClickCapture": 2230 case "onMouseDown": 2231 case "onMouseDownCapture": 2232 case "onMouseMove": 2233 case "onMouseMoveCapture": 2234 case "onMouseUp": 2235 case "onMouseUpCapture": 2236 case "onMouseEnter": 2237 (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); 2238 inst = !props; 2239 break a; 2240 default: 2241 inst = !1; 2242 } 2243 if (inst) return null; 2244 if (stateNode && "function" !== typeof stateNode) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof stateNode + "` type."); 2245 return stateNode; 2246 } 2247 function getData() { 2248 if (fallbackText) return fallbackText; 2249 var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length; 2250 for(start = 0; start < startLength && startValue[start] === endValue[start]; start++); 2251 var minEnd = startLength - start; 2252 for(end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++); 2253 return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0); 2254 } 2255 function getEventCharCode(nativeEvent) { 2256 var keyCode = nativeEvent.keyCode; 2257 "charCode" in nativeEvent ? (nativeEvent = nativeEvent.charCode, 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : nativeEvent = keyCode; 2258 10 === nativeEvent && (nativeEvent = 13); 2259 return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0; 2260 } 2261 function functionThatReturnsTrue() { 2262 return !0; 2263 } 2264 function functionThatReturnsFalse() { 2265 return !1; 2266 } 2267 function createSyntheticEvent(Interface) { 2268 function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { 2269 this._reactName = reactName; 2270 this._targetInst = targetInst; 2271 this.type = reactEventType; 2272 this.nativeEvent = nativeEvent; 2273 this.target = nativeEventTarget; 2274 this.currentTarget = null; 2275 for(var propName in Interface)Interface.hasOwnProperty(propName) && (reactName = Interface[propName], this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName]); 2276 this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; 2277 this.isPropagationStopped = functionThatReturnsFalse; 2278 return this; 2279 } 2280 assign(SyntheticBaseEvent.prototype, { 2281 preventDefault: function() { 2282 this.defaultPrevented = !0; 2283 var event = this.nativeEvent; 2284 event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); 2285 }, 2286 stopPropagation: function() { 2287 var event = this.nativeEvent; 2288 event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); 2289 }, 2290 persist: function() {}, 2291 isPersistent: functionThatReturnsTrue 2292 }); 2293 return SyntheticBaseEvent; 2294 } 2295 function modifierStateGetter(keyArg) { 2296 var nativeEvent = this.nativeEvent; 2297 return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[ke
2297yArg] : !1; 2298 } 2299 function getEventModifierState() { 2300 return modifierStateGetter; 2301 } 2302 function isFallbackCompositionEnd(domEventName, nativeEvent) { 2303 switch(domEventName){ 2304 case "keyup": 2305 return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 2306 case "keydown": 2307 return nativeEvent.keyCode !== START_KEYCODE; 2308 case "keypress": 2309 case "mousedown": 2310 case "focusout": 2311 return !0; 2312 default: 2313 return !1; 2314 } 2315 } 2316 function getDataFromCustomEvent(nativeEvent) { 2317 nativeEvent = nativeEvent.detail; 2318 return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null; 2319 } 2320 function getNativeBeforeInputChars(domEventName, nativeEvent) { 2321 switch(domEventName){ 2322 case "compositionend": 2323 return getDataFromCustomEvent(nativeEvent); 2324 case "keypress": 2325 if (nativeEvent.which !== SPACEBAR_CODE) return null; 2326 hasSpaceKeypress = !0; 2327 return SPACEBAR_CHAR; 2328 case "textInput": 2329 return domEventName = nativeEvent.data, domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName; 2330 default: 2331 return null; 2332 } 2333 } 2334 function getFallbackBeforeInputChars(domEventName, nativeEvent) { 2335 if (isComposing) return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (domEventName = getData(), fallbackText = startText = root = null, isComposing = !1, domEventName) : null; 2336 switch(domEventName){ 2337 case "paste": 2338 return null; 2339 case "keypress": 2340 if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) { 2341 if (nativeEvent.char && 1 < nativeEvent.char.length) return nativeEvent.char; 2342 if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); 2343 } 2344 return null; 2345 case "compositionend": 2346 return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data; 2347 default: 2348 return null; 2349 } 2350 } 2351 function isTextInputElement(elem) { 2352 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 2353 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? !0 : !1; 2354 } 2355 function isEventSupported(eventNameSuffix) { 2356 if (!canUseDOM) return !1; 2357 eventNameSuffix = "on" + eventNameSuffix; 2358 var isSupported = eventNameSuffix in document; 2359 isSupported || (isSupported = document.createElement("div"), isSupported.setAttribute(eventNameSuffix, "return;"), isSupported = "function" === typeof isSupported[eventNameSuffix]); 2360 return isSupported; 2361 } 2362 function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { 2363 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [ 2364 target 2365 ] : restoreTarget = target; 2366 inst = accumulateTwoPhaseListeners(inst, "onChange"); 2367 0 < inst.length && (nativeEvent = new SyntheticEvent("onChange", "change", null, nativeEvent, target), dispatchQueue.push({ 2368 event: nativeEvent, 2369 listeners: inst 2370 })); 2371 } 2372 function runEventInBatch(dispatchQueue) {
vendor: 9,876 bytes, lines 2373-2549
2373 processDispatchQueue(dispatchQueue, 0); 2374 } 2375 function getInstIfValueChanged(targetInst) { 2376 var targetNode = getNodeFromInstance(targetInst); 2377 if (updateValueIfChanged(targetNode)) return targetInst; 2378 } 2379 function getTargetInstForChangeEvent(domEventName, targetInst) { 2380 if ("change" === domEventName) return targetInst; 2381 } 2382 function stopWatchingForValueChange() { 2383 activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), activeElementInst$1 = activeElement$1 = null); 2384 } 2385 function handlePropertyChange(nativeEvent) { 2386 if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1)) { 2387 var dispatchQueue = []; 2388 createAndAccumulateChangeEvent(dispatchQueue, activeElementInst$1, nativeEvent, getEventTarget(nativeEvent)); 2389 batchedUpdates$1(runEventInBatch, dispatchQueue); 2390 } 2391 } 2392 function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { 2393 "focusin" === domEventName ? (stopWatchingForValueChange(), activeElement$1 = target, activeElementInst$1 = targetInst, activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); 2394 } 2395 function getTargetInstForInputEventPolyfill(domEventName) { 2396 if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName) return getInstIfValueChanged(activeElementInst$1); 2397 } 2398 function getTargetInstForClickEvent(domEventName, targetInst) { 2399 if ("click" === domEventName) return getInstIfValueChanged(targetInst); 2400 } 2401 function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { 2402 if ("input" === domEventName || "change" === domEventName) return getInstIfValueChanged(targetInst); 2403 } 2404 function is(x, y) { 2405 return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; 2406 } 2407 function shallowEqual(objA, objB) { 2408 if (objectIs(objA, objB)) return !0; 2409 if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; 2410 var keysA = Object.keys(objA), keysB = Object.keys(objB); 2411 if (keysA.length !== keysB.length) return !1; 2412 for(keysB = 0; keysB < keysA.length; keysB++){ 2413 var currentKey = keysA[keysB]; 2414 if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; 2415 } 2416 return !0; 2417 } 2418 function getLeafNode(node) { 2419 for(; node && node.firstChild;)node = node.firstChild; 2420 return node; 2421 } 2422 function getNodeForCharacterOffset(root, offset) { 2423 var node = getLeafNode(root); 2424 root = 0; 2425 for(var nodeEnd; node;){ 2426 if (3 === node.nodeType) { 2427 nodeEnd = root + node.textContent.length; 2428 if (root <= offset && nodeEnd >= offset) return { 2429 node: node, 2430 offset: offset - root 2431 }; 2432 root = nodeEnd; 2433 } 2434 a: { 2435 for(; node;){ 2436 if (node.nextSibling) { 2437 node = node.nextSibling; 2438 break a; 2439 } 2440 node = node.parentNode; 2441 } 2442 node = void 0; 2443 } 2444 node = getLeafNode(node); 2445 } 2446 } 2447 function containsNode(outerNode, innerNode) { 2448 return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition ? !!(outerNode.compareDocumentPosition(innerNode) & 16) : !1 : !1; 2449 } 2450 function getActiveElementDeep(containerInfo) { 2451 containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window; 2452 for(var element = getActiveElement(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement;){ 2453 try { 2454 var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href; 2455 } catch (err) { 2456 JSCompiler_inline_result = !1; 2457 } 2458 if (JSCompiler_inline_result) containerInfo = element.contentWindow; 2459 else break; 2460 element = getActiveElement(containerInfo.document); 2461 } 2462 return element; 2463 } 2464 function hasSelectionCapabilities(elem) { 2465 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 2466 return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable); 2467 } 2468 function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { 2469 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument; 2470 mouseDown || null == activeElement || activeElement !== getActiveElement(doc) || (doc = activeElement, "selectionStart" in doc && hasSelectionCapabilities(doc) ? doc = { 2471 start: doc.selectionStart, 2472 end: doc.selectionEnd 2473 } : (doc = (doc.ownerDocument && doc.ownerDocument.defaultView || window).getSelection(), doc = { 2474 anchorNode: doc.anchorNode, 2475 anchorOffset: doc.anchorOffset, 2476 focusNode: doc.focusNode, 2477 focusOffset: doc.focusOffset 2478 }), lastSelection && shallowEqual(lastSelection, doc) || (lastSelection = doc, doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect"), 0 < doc.length && (nativeEvent = new SyntheticEvent("onSelect", "select", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 2479 event: nativeEvent, 2480 listeners: doc 2481 }), nativeEvent.target = activeElement))); 2482 } 2483 function makePrefixMap(styleProp, eventName) { 2484 var prefixes = {}; 2485 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); 2486 prefixes["Webkit" + styleProp] = "webkit" + eventName; 2487 prefixes["Moz" + styleProp] = "moz" + eventName; 2488 return prefixes; 2489 } 2490 function getVendorPrefixedEventName(eventName) { 2491 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 2492 if (!vendorPrefixes[eventName]) return eventName; 2493 var prefixMap = vendorPrefixes[eventName], styleProp; 2494 for(styleProp in prefixMap)if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp]; 2495 return eventName; 2496 } 2497 function registerSimpleEvent(domEventName, reactName) { 2498 topLevelEventsToReactNames.set(domEventName, reactName); 2499 registerTwoPhaseEvent(reactName, [ 2500 domEventName 2501 ]); 2502 } 2503 function finishQueueingConcurrentUpdates() { 2504 for(var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex;){ 2505 var fiber = concurrentQueues[i]; 2506 concurrentQueues[i++] = null; 2507 var queue = concurrentQueues[i]; 2508 concurrentQueues[i++] = null; 2509 var update = concurrentQueues[i]; 2510 concurrentQueues[i++] = null; 2511 var lane = concurrentQueues[i]; 2512 concurrentQueues[i++] = null; 2513 if (null !== queue && null !== update) { 2514 var pending = queue.pending; 2515 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 2516 queue.pending = update; 2517 } 2518 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); 2519 } 2520 } 2521 function enqueueUpdate$1(fiber, queue, update, lane) { 2522 concurrentQueues[concurrentQueuesIndex++] = fiber; 2523 concurrentQueues[concurrentQueuesIndex++] = queue; 2524 concurrentQueues[concurrentQueuesIndex++] = update; 2525 concurrentQueues[concurrentQueuesIndex++] = lane; 2526 concurrentlyUpdatedLanes |= lane; 2527 fiber.lanes |= lane; 2528 fiber = fiber.alternate; 2529 null !== fiber && (fiber.lanes |= lane); 2530 } 2531 function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { 2532 enqueueUpdate$1(fiber, queue, update, lane); 2533 return getRootForUpdatedFiber(fiber); 2534 } 2535 function enqueueConcurrentRenderForLane(fiber, lane) { 2536 enqueueUpdate$1(fiber, null, null, lane); 2537 return getRootForUpdatedFiber(fiber); 2538 } 2539 function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { 2540 sourceFiber.lanes |= lane; 2541 var alternate = sourceFiber.alternate; 2542 null !== alternate && (alternate.lanes |= lane); 2543 for(var isHidden = !1, parent = sourceFiber.return; null !== parent;)parent.childLanes |= lane, alternate = parent.alternate, null !== alternate && (alternate.childLanes |= lane), 22 === parent.tag && (sourceFiber = parent.stateNode, null === sourceFiber || sourceFiber._visibility & OffscreenVisible || (isHidden = !0)), sourceFiber = parent, parent = parent.return; 2544 return 3 === sourceFiber.tag ? (parent = sourceFiber.stateNode, isHidden && null !== update && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], null === alternate ? sourceFiber[isHidden] = [ 2545 update 2546 ] : alternate.push(update), update.lane = lane | 536870912), parent) : null; 2547 } 2548 function getRootForUpdatedFiber(sourceFiber) { 2549 if (nestedUpdateCount >
2549 NESTED_UPDATE_LIMIT) throw nestedPassiveUpdateCount = nestedUpdateCount = 0, rootWithPassiveNestedUpdates = rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); 2550 nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT && (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")); 2551 null === sourceFiber.alternate && 0 !== (sourceFiber.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); 2552 for(var node = sourceFiber, parent = node.return; null !== parent;)null === node.alternate && 0 !== (node.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return; 2553 return 3 === node.tag ? node.stateNode : null; 2554 } 2555 function resolveFunctionForHotReloading(type) { 2556 if (null === resolveFamily) return type; 2557 var family = resolveFamily(type); 2558 return void 0 === family ? type : family.current; 2559 } 2560 function resolveForwardRefForHotReloading(type) { 2561 if (null === resolveFamily) return type; 2562 var family = resolveFamily(type); 2563 return void 0 === family ? null !== type && void 0 !== type && "function" === typeof type.render && (family = resolveFunctionForHotReloading(type.render), type.render !== family) ? (family = { 2564 $$typeof: REACT_FORWARD_REF_TYPE, 2565 render: family 2566 }, void 0 !== type.displayName && (family.displayName = type.displayName), family) : type : family.current; 2567 } 2568 function isCompatibleFamilyForHotReloading(fiber, element) { 2569 if (null === resolveFamily) return !1; 2570 var prevType = fiber.elementType; 2571 element = element.type; 2572 var needsCompareFamilies = !1, $$typeofNextType = "object" === typeof element && null !== element ? element.$$typeof : null; 2573 switch(fiber.tag){ 2574 case 1: 2575 "function" === typeof element && (needsCompareFamilies = !0); 2576 break; 2577 case 0: 2578 "function" === typeof element ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2579 break; 2580 case 11: 2581 $$typeofNextType === REACT_FORWARD_REF_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2582 break; 2583 case 14: 2584 case 15: 2585 $$typeofNextType === REACT_MEMO_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2586 break; 2587 default: 2588 return !1; 2589 } 2590 return needsCompareFamilies && (fiber = resolveFamily(prevType), void 0 !== fiber && fiber === resolveFamily(element)) ? !0 : !1; 2591 } 2592 function markFailedErrorBoundaryForHotReloading(fiber) { 2593 null !== resolveFamily && "function" === typeof WeakSet && (null === failedBoundaries && (failedBoundaries = new WeakSet()), failedBoundaries.add(fiber)); 2594 } 2595 function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { 2596 do { 2597 var _fiber = fiber, alternate = _fiber.alternate, child = _fiber.child, sibling = _fiber.sibling, tag = _fiber.tag; 2598 _fiber = _fiber.type; 2599 var candidateType = null; 2600 switch(tag){ 2601 case 0: 2602 case 15: 2603 case 1: 2604 candidateType = _fiber; 2605 break; 2606 case 11: 2607 candidateType = _fiber.render; 2608 } 2609 if (null === resolveFamily) throw Error("Expected resolveFamily to be set during hot reload."); 2610 var needsRender = !1; 2611 _fiber = !1; 2612 null !== candidateType && (candidateType = resolveFamily(candidateType), void 0 !== candidateType && (staleFamilies.has(candidateType) ? _fiber = !0 : updatedFamilies.has(candidateType) && (1 === tag ? _fiber = !0 : needsRender = !0))); 2613 null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (_fiber = !0); 2614 _fiber && (fiber._debugNeedsRemount = !0); 2615 if (_fiber || needsRender) alternate = enqueueConcurrentRenderForLane(fiber, 2), null !== alternate && scheduleUpdateOnFiber(alternate, fiber, 2); 2616 null === child || _fiber || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); 2617 if (null === sibling) break; 2618 fiber = sibling; 2619 }while (1) 2620 } 2621 function FiberNode(tag, pendingProps, key, mode) { 2622 this.tag = tag; 2623 this.key = key; 2624 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; 2625 this.index = 0; 2626 this.refCleanup = this.ref = null; 2627 this.pendingProps = pendingProps; 2628 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; 2629 this.mode = mode; 2630 this.subtreeFlags = this.flags = 0; 2631 this.deletions = null; 2632 this.childLanes = this.lanes = 0; 2633 this.alternate = null; 2634 this.actualDuration = -0; 2635 this.actualStartTime = -1.1; 2636 this.treeBaseDuration = this.selfBaseDuration = -0; 2637 this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null; 2638 this._debugNeedsRemount = !1; 2639 this._debugHookTypes = null; 2640 hasBadMapPolyfill || "function" !== typeof Object.preventExtensions || Object.preventExtensions(this); 2641 } 2642 function shouldConstruct(Component) { 2643 Component = Component.prototype; 2644 return !(!Component || !Component.isReactComponent); 2645 } 2646 function createWorkInProgress(current, pendingProps) { 2647 var workInProgress = current.alternate; 2648 null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress._debugOwner = current._debugOwner, workInProgress._debugStack = current._debugStack, workInProgress._debugTask = current._debugTask, workInProgress._debugHookTypes = current._debugHookTypes, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null, workInProgress.actualDuration = -0, workInProgress.actualStartTime = -1.1); 2649 workInProgress.flags = current.flags & 65011712; 2650 workInProgress.childLanes = current.childLanes; 2651 workInProgress.lanes = current.lanes; 2652 workInProgress.child = current.child; 2653 workInProgress.memoizedProps = current.memoizedProps; 2654 workInProgress.memoizedState = current.memoizedState; 2655 workInProgress.updateQueue = current.updateQueue; 2656 pendingProps = current.dependencies;
2657 workInProgress.dependencies = null === pendingProps ? null : { 2658 lanes: pendingProps.lanes, 2659 firstContext: pendingProps.firstContext, 2660 _debugThenableState: pendingProps._debugThenableState 2661 }; 2662 workInProgress.sibling = current.sibling; 2663 workInProgress.index = current.index; 2664 workInProgress.ref = current.ref; 2665 workInProgress.refCleanup = current.refCleanup; 2666 workInProgress.selfBaseDuration = current.selfBaseDuration; 2667 workInProgress.treeBaseDuration = current.treeBaseDuration; 2668 workInProgress._debugInfo = current._debugInfo; 2669 workInProgress._debugNeedsRemount = current._debugNeedsRemount; 2670 switch(workInProgress.tag){ 2671 case 0: 2672 case 15: 2673 workInProgress.type = resolveFunctionForHotReloading(current.type); 2674 break; 2675 case 1: 2676 workInProgress.type = resolveFunctionForHotReloading(current.type); 2677 break; 2678 case 11: 2679 workInProgress.type = resolveForwardRefForHotReloading(current.type); 2680 } 2681 return workInProgress; 2682 } 2683 function resetWorkInProgress(workInProgress, renderLanes) { 2684 workInProgress.flags &= 65011714; 2685 var current = workInProgress.alternate; 2686 null === current ? (workInProgress.childLanes = 0, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.subtreeFlags = 0, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null, workInProgress.selfBaseDuration = 0, workInProgress.treeBaseDuration = 0) : (workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.subtreeFlags = 0, workInProgress.deletions = null, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, workInProgress.type = current.type, renderLanes = current.dependencies, workInProgress.dependencies = null === renderLanes ? null : { 2687 lanes: renderLanes.lanes, 2688 firstContext: renderLanes.firstContext, 2689 _debugThenableState: renderLanes._debugThenableState 2690 }, workInProgress.selfBaseDuration = current.selfBaseDuration, workInProgress.treeBaseDuration = current.treeBaseDuration); 2691 return workInProgress; 2692 } 2693 function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { 2694 var fiberTag = 0, resolvedType = type; 2695 if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1), resolvedType = resolveFunctionForHotReloading(resolvedType); 2696 else if ("string" === typeof type) fiberTag = getHostContext(), fiberTag = isHostHoistableType(type, pendingProps, fiberTag) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5; 2697 else a: switch(type){ 2698 case REACT_ACTIVITY_TYPE: 2699 return key = createFiber(31, pendingProps, key, mode), key.elementType = REACT_ACTIVITY_TYPE, key.lanes = lanes, key; 2700 case REACT_FRAGMENT_TYPE: 2701 return createFiberFromFragment(pendingProps.children, mode, lanes, key); 2702 case REACT_STRICT_MODE_TYPE: 2703 fiberTag = 8; 2704 mode |= StrictLegacyMode; 2705 mode |= StrictEffectsMode; 2706 break; 2707 case REACT_PROFILER_TYPE: 2708 return type = pendingProps, owner = mode, "string" !== typeof type.id && console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof type.id), key = createFiber(12, type, key, owner | ProfileMode), key.elementType = REACT_PROFILER_TYPE, key.lanes = lanes, key.stateNode = { 2709 effectDuration: 0, 2710 passiveEffectDuration: 0 2711 }, key; 2712 case REACT_SUSPENSE_TYPE: 2713 return key = createFiber(13, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key; 2714 case REACT_SUSPENSE_LIST_TYPE: 2715 return key = createFiber(19, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key; 2716 default: 2717 if ("object" === typeof type && null !== type) switch(type.$$typeof){ 2718 case REACT_CONTEXT_TYPE: 2719 fiberTag = 10; 2720 break a; 2721 case REACT_CONSUMER_TYPE: 2722 fiberTag = 9; 2723 break a; 2724 case REACT_FORWARD_REF_TYPE: 2725 fiberTag = 11; 2726 resolvedType = resolveForwardRefForHotReloading(resolvedType); 2727 break a; 2728 case REACT_MEMO_TYPE: 2729 fiberTag = 14; 2730 break a; 2731 case REACT_LAZY_TYPE: 2732 fiberTag = 16; 2733 resolvedType = null; 2734 break a; 2735 } 2736 resolvedType = ""; 2737 if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length) resolvedType += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; 2738 null === type ? pendingProps = "null" : isArrayImpl(type) ? pendingProps = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (pendingProps = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", resolvedType = " Did you accidentally export a JSX literal instead of a component?") : pendingProps = typeof type; 2739 (fiberTag = owner ? getComponentNameFromOwner(owner) : null) && (resolvedType += "\n\nCheck the render method of `" + fiberTag + "`."); 2740 fiberTag = 29;
vendor: 4,692 bytes, lines 2741-2839
2741 pendingProps = Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (pendingProps + "." + resolvedType)); 2742 resolvedType = null; 2743 } 2744 key = createFiber(fiberTag, pendingProps, key, mode); 2745 key.elementType = type; 2746 key.type = resolvedType; 2747 key.lanes = lanes; 2748 key._debugOwner = owner; 2749 return key; 2750 } 2751 function createFiberFromElement(element, mode, lanes) { 2752 mode = createFiberFromTypeAndProps(element.type, element.key, element.props, element._owner, mode, lanes); 2753 mode._debugOwner = element._owner; 2754 mode._debugStack = element._debugStack; 2755 mode._debugTask = element._debugTask; 2756 return mode; 2757 } 2758 function createFiberFromFragment(elements, mode, lanes, key) { 2759 elements = createFiber(7, elements, key, mode); 2760 elements.lanes = lanes; 2761 return elements; 2762 } 2763 function createFiberFromText(content, mode, lanes) { 2764 content = createFiber(6, content, null, mode); 2765 content.lanes = lanes; 2766 return content; 2767 } 2768 function createFiberFromDehydratedFragment(dehydratedNode) { 2769 var fiber = createFiber(18, null, null, NoMode); 2770 fiber.stateNode = dehydratedNode; 2771 return fiber; 2772 } 2773 function createFiberFromPortal(portal, mode, lanes) { 2774 mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); 2775 mode.lanes = lanes; 2776 mode.stateNode = { 2777 containerInfo: portal.containerInfo, 2778 pendingChildren: null, 2779 implementation: portal.implementation 2780 }; 2781 return mode; 2782 } 2783 function createCapturedValueAtFiber(value, source) { 2784 if ("object" === typeof value && null !== value) { 2785 var existing = CapturedStacks.get(value); 2786 if (void 0 !== existing) return existing; 2787 source = { 2788 value: value, 2789 source: source, 2790 stack: getStackByFiberInDevAndProd(source) 2791 }; 2792 CapturedStacks.set(value, source); 2793 return source; 2794 } 2795 return { 2796 value: value, 2797 source: source, 2798 stack: getStackByFiberInDevAndProd(source) 2799 }; 2800 } 2801 function pushTreeFork(workInProgress, totalChildren) { 2802 warnIfNotHydrating(); 2803 forkStack[forkStackIndex++] = treeForkCount; 2804 forkStack[forkStackIndex++] = treeForkProvider; 2805 treeForkProvider = workInProgress; 2806 treeForkCount = totalChildren; 2807 } 2808 function pushTreeId(workInProgress, totalChildren, index) { 2809 warnIfNotHydrating(); 2810 idStack[idStackIndex++] = treeContextId; 2811 idStack[idStackIndex++] = treeContextOverflow; 2812 idStack[idStackIndex++] = treeContextProvider; 2813 treeContextProvider = workInProgress; 2814 var baseIdWithLeadingBit = treeContextId; 2815 workInProgress = treeContextOverflow; 2816 var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; 2817 baseIdWithLeadingBit &= ~(1 << baseLength); 2818 index += 1; 2819 var length = 32 - clz32(totalChildren) + baseLength; 2820 if (30 < length) { 2821 var numberOfOverflowBits = baseLength - baseLength % 5; 2822 length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32); 2823 baseIdWithLeadingBit >>= numberOfOverflowBits; 2824 baseLength -= numberOfOverflowBits; 2825 treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit; 2826 treeContextOverflow = length + workInProgress; 2827 } else treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress; 2828 } 2829 function pushMaterializedTreeId(workInProgress) { 2830 warnIfNotHydrating(); 2831 null !== workInProgress.return && (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0)); 2832 } 2833 function popTreeContext(workInProgress) { 2834 for(; workInProgress === treeForkProvider;)treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null; 2835 for(; workInProgress === treeContextProvider;)treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null; 2836 } 2837 function getSuspendedTreeContext() { 2838 warnIfNotHydrating(); 2839 return null !== treeContextProvider ? {
2840 id: treeContextId, 2841 overflow: treeContextOverflow 2842 } : null; 2843 } 2844 function restoreSuspendedTreeContext(workInProgress, suspendedContext) { 2845 warnIfNotHydrating(); 2846 idStack[idStackIndex++] = treeContextId; 2847 idStack[idStackIndex++] = treeContextOverflow; 2848 idStack[idStackIndex++] = treeContextProvider; 2849 treeContextId = suspendedContext.id; 2850 treeContextOverflow = suspendedContext.overflow; 2851 treeContextProvider = workInProgress; 2852 } 2853 function warnIfNotHydrating() { 2854 isHydrating || console.error("Expected to be hydrating. This is a bug in React. Please file an issue."); 2855 } 2856 function buildHydrationDiffNode(fiber, distanceFromLeaf) { 2857 if (null === fiber.return) { 2858 if (null === hydrationDiffRootDEV) hydrationDiffRootDEV = { 2859 fiber: fiber, 2860 children: [], 2861 serverProps: void 0, 2862 serverTail: [], 2863 distanceFromLeaf: distanceFromLeaf 2864 }; 2865 else { 2866 if (hydrationDiffRootDEV.fiber !== fiber) throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React."); 2867 hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf && (hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf); 2868 } 2869 return hydrationDiffRootDEV; 2870 } 2871 var siblings = buildHydrationDiffNode(fiber.return, distanceFromLeaf + 1).children; 2872 if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber) return siblings = siblings[siblings.length - 1], siblings.distanceFromLeaf > distanceFromLeaf && (siblings.distanceFromLeaf = distanceFromLeaf), siblings; 2873 distanceFromLeaf = { 2874 fiber: fiber, 2875 children: [], 2876 serverProps: void 0, 2877 serverTail: [], 2878 distanceFromLeaf: distanceFromLeaf 2879 }; 2880 siblings.push(distanceFromLeaf); 2881 return distanceFromLeaf; 2882 } 2883 function warnIfHydrating() { 2884 isHydrating && console.error("We should not be hydrating here. This is a bug in React. Please file a bug."); 2885 } 2886 function warnNonHydratedInstance(fiber, rejectedCandidate) { 2887 didSuspendOrErrorDEV || (fiber = buildHydrationDiffNode(fiber, 0), fiber.serverProps = null, null !== rejectedCandidate && (rejectedCandidate = describeHydratableInstanceForDevWarnings(rejectedCandidate), fiber.serverTail.push(rejectedCandidate))); 2888 } 2889 function throwOnHydrationMismatch(fiber) { 2890 var fromText = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : !1, diff = "", diffRoot = hydrationDiffRootDEV; 2891 null !== diffRoot && (hydrationDiffRootDEV = null, diff = describeDiff(diffRoot)); 2892 queueHydrationError(createCapturedValueAtFiber(Error("Hydration failed because the server rendered " + (fromText ? "text" : "HTML") + " didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + diff), fiber)); 2893 throw HydrationMismatchException; 2894 } 2895 function prepareToHydrateHostInstance(fiber) { 2896 var didHydrate = fiber.stateNode; 2897 var type = fiber.type, props = fiber.memoizedProps; 2898 didHydrate[internalInstanceKey] = fiber; 2899 didHydrate[internalPropsKey] = props; 2900 validatePropertiesInDevelopment(type, props); 2901 switch(type){ 2902 case "dialog": 2903 listenToNonDelegatedEvent("cancel", didHydrate); 2904 listenToNonDelegatedEvent("close", didHydrate); 2905 break; 2906 case "iframe": 2907 case "object": 2908 case "embed": 2909 listenToNonDelegatedEvent("load", didHydrate); 2910 break; 2911 case "video": 2912 case "audio": 2913 for(type = 0; type < mediaEventTypes.length; type++)listenToNonDelegatedEvent(mediaEventTypes[type], didHydrate); 2914 break; 2915 case "source": 2916 listenToNonDelegatedEvent("error", didHydrate); 2917 break; 2918 case "img": 2919 case "image": 2920 case "link": 2921 listenToNonDelegatedEvent("error", didHydrate); 2922 listenToNonDelegatedEvent("load", didHydrate); 2923 break; 2924 case "details": 2925 listenToNonDelegatedEvent("toggle", didHydrate); 2926 break; 2927 case "input": 2928 checkControlledValueProps("input", props); 2929 listenToNonDelegatedEvent("invalid", didHydrate); 2930 validateInputProps(didHydrate, props); 2931 initInput(didHydrate, props.value, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name, !0); 2932 break; 2933 case "option": 2934 validateOptionProps(didHydrate, props); 2935 break; 2936 case "select": 2937 checkControlledValueProps("select", props); 2938 listenToNonDelegatedEvent("invalid", didHydrate); 2939 validateSelectProps(didHydrate, props); 2940 break; 2941 case "textarea": 2942 checkControlledValueProps("textarea", props), listenToNonDelegatedEvent("invalid", didHydrate), val
2942idateTextareaProps(didHydrate, props), initTextarea(didHydrate, props.value, props.defaultValue, props.children); 2943 } 2944 type = props.children; 2945 "string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type || didHydrate.textContent === "" + type || !0 === props.suppressHydrationWarning || checkForUnmatchedText(didHydrate.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", didHydrate), listenToNonDelegatedEvent("toggle", didHydrate)), null != props.onScroll && listenToNonDelegatedEvent("scroll", didHydrate), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", didHydrate), null != props.onClick && (didHydrate.onclick = noop$1), didHydrate = !0) : didHydrate = !1; 2946 didHydrate || throwOnHydrationMismatch(fiber, !0); 2947 } 2948 function popToNextHostParent(fiber) { 2949 for(hydrationParentFiber = fiber.return; hydrationParentFiber;)switch(hydrationParentFiber.tag){ 2950 case 5: 2951 case 31: 2952 case 13: 2953 rootOrSingletonContext = !1; 2954 return; 2955 case 27: 2956 case 3: 2957 rootOrSingletonContext = !0; 2958 return; 2959 default: 2960 hydrationParentFiber = hydrationParentFiber.return; 2961 } 2962 } 2963 function popHydrationState(fiber) { 2964 if (fiber !== hydrationParentFiber) return !1; 2965 if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1; 2966 var tag = fiber.tag, JSCompiler_temp; 2967 if (JSCompiler_temp = 3 !== tag && 27 !== tag) { 2968 if (JSCompiler_temp = 5 === tag) JSCompiler_temp = fiber.type, JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps); 2969 JSCompiler_temp = !JSCompiler_temp; 2970 } 2971 if (JSCompiler_temp && nextHydratableInstance) { 2972 for(JSCompiler_temp = nextHydratableInstance; JSCompiler_temp;){ 2973 var diffNode = buildHydrationDiffNode(fiber, 0), description = describeHydratableInstanceForDevWarnings(JSCompiler_temp); 2974 diffNode.serverTail.push(description); 2975 JSCompiler_temp = "Suspense" === description.type ? getNextHydratableInstanceAfterHydrationBoundary(JSCompiler_temp) : getNextHydratable(JSCompiler_temp.nextSibling); 2976 } 2977 throwOnHydrationMismatch(fiber); 2978 } 2979 popToNextHostParent(fiber); 2980 if (13 === tag) { 2981 fiber = fiber.memoizedState; 2982 fiber = null !== fiber ? fiber.dehydrated : null; 2983 if (!fiber) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 2984 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 2985 } else if (31 === tag) { 2986 fiber = fiber.memoizedState; 2987 fiber = null !== fiber ? fiber.dehydrated : null; 2988 if (!fiber) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 2989 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 2990 } else 27 === tag ? (tag = nextHydratableInstance, isSingletonScope(fiber.type) ? (fiber = previousHydratableOnEnteringScopedSingleton, previousHydratableOnEnteringScopedSingleton = null, nextHydratableInstance = fiber) : nextHydratableInstance = tag) : nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null; 2991 return !0; 2992 } 2993 function resetHydrationState() { 2994 nextHydratableInstance = hydrationParentFiber = null; 2995 didSuspendOrErrorDEV = isHydrating = !1; 2996 } 2997 function upgradeHydrationErrorsToRecoverable() { 2998 var queuedErrors = hydrationErrors; 2999 null !== queuedErrors && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, queuedErrors), hydrationErrors = null); 3000 return queuedErrors; 3001 } 3002 function queueHydrationError(error) { 3003 null === hydrationErrors ? hydrationErrors = [ 3004 error 3005 ] : hydrationErrors.push(error); 3006 } 3007 function emitPendingHydrationWarnings() { 3008 var diffRoot = hydrationDiffRootDEV; 3009 if (null !== diffRoot) { 3010 hydrationDiffRootDEV = null; 3011 for(var diff = describeDiff(diffRoot); 0 < diffRoot.children.length;)diffRoot = diffRoot.children[0]; 3012 runWithFiberInDEV(diffRoot.fiber, function() { 3013 console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s", "https://react.dev/link/hydration-mismatch", diff); 3014 }); 3015 } 3016 } 3017 function resetContextDependencies() { 3018 lastContextDependency = currentlyRenderingFiber$1 = null; 3019 isDisallowedContextReadInDEV = !1; 3020 } 3021 function pushProvider(providerFiber, context, nextValue) { 3022 push(valueCursor, context._currentValue, providerFiber); 3023 context._currentValue = nextValue;
vendor: 1,433 bytes, lines 3024-3043
3024 push(rendererCursorDEV, context._currentRenderer, providerFiber); 3025 void 0 !== context._currentRenderer && null !== context._currentRenderer && context._currentRenderer !== rendererSigil && console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."); 3026 context._currentRenderer = rendererSigil; 3027 } 3028 function popProvider(context, providerFiber) { 3029 context._currentValue = valueCursor.current; 3030 var currentRenderer = rendererCursorDEV.current; 3031 pop(rendererCursorDEV, providerFiber); 3032 context._currentRenderer = currentRenderer; 3033 pop(valueCursor, providerFiber); 3034 } 3035 function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { 3036 for(; null !== parent;){ 3037 var alternate = parent.alternate; 3038 (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); 3039 if (parent === propagationRoot) break; 3040 parent = parent.return; 3041 } 3042 parent !== propagationRoot && console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."); 3043 }
vendor: 3,753 bytes, lines 3044-3116
3044 function propagateContextChanges(workInProgress, contexts, renderLanes, forcePropagateEntireTree) { 3045 var fiber = workInProgress.child; 3046 null !== fiber && (fiber.return = workInProgress); 3047 for(; null !== fiber;){ 3048 var list = fiber.dependencies; 3049 if (null !== list) { 3050 var nextFiber = fiber.child; 3051 list = list.firstContext; 3052 a: for(; null !== list;){ 3053 var dependency = list; 3054 list = fiber; 3055 for(var i = 0; i < contexts.length; i++)if (dependency.context === contexts[i]) { 3056 list.lanes |= renderLanes; 3057 dependency = list.alternate; 3058 null !== dependency && (dependency.lanes |= renderLanes); 3059 scheduleContextWorkOnParentPath(list.return, renderLanes, workInProgress); 3060 forcePropagateEntireTree || (nextFiber = null); 3061 break a; 3062 } 3063 list = dependency.next; 3064 } 3065 } else if (18 === fiber.tag) { 3066 nextFiber = fiber.return; 3067 if (null === nextFiber) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); 3068 nextFiber.lanes |= renderLanes; 3069 list = nextFiber.alternate; 3070 null !== list && (list.lanes |= renderLanes); 3071 scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); 3072 nextFiber = null; 3073 } else nextFiber = fiber.child; 3074 if (null !== nextFiber) nextFiber.return = fiber; 3075 else for(nextFiber = fiber; null !== nextFiber;){ 3076 if (nextFiber === workInProgress) { 3077 nextFiber = null; 3078 break; 3079 } 3080 fiber = nextFiber.sibling; 3081 if (null !== fiber) { 3082 fiber.return = nextFiber.return; 3083 nextFiber = fiber; 3084 break; 3085 } 3086 nextFiber = nextFiber.return; 3087 } 3088 fiber = nextFiber; 3089 } 3090 } 3091 function propagateParentContextChanges(current, workInProgress, renderLanes, forcePropagateEntireTree) { 3092 current = null; 3093 for(var parent = workInProgress, isInsidePropagationBailout = !1; null !== parent;){ 3094 if (!isInsidePropagationBailout) { 3095 if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; 3096 else if (0 !== (parent.flags & 262144)) break; 3097 } 3098 if (10 === parent.tag) { 3099 var currentParent = parent.alternate; 3100 if (null === currentParent) throw Error("Should have a current fiber. This is a bug in React."); 3101 currentParent = currentParent.memoizedProps; 3102 if (null !== currentParent) { 3103 var context = parent.type; 3104 objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : current = [ 3105 context 3106 ]); 3107 } 3108 } else if (parent === hostTransitionProviderCursor.current) { 3109 currentParent = parent.alternate; 3110 if (null === currentParent) throw Error("Should have a current fiber. This is a bug in React."); 3111 currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [ 3112 HostTransitionContext 3113 ]); 3114 } 3115 parent = parent.return; 3116 }
vendor: 4,999 bytes, lines 3117-3227
3117 null !== current && propagateContextChanges(workInProgress, current, renderLanes, forcePropagateEntireTree); 3118 workInProgress.flags |= 262144; 3119 } 3120 function checkIfContextChanged(currentDependencies) { 3121 for(currentDependencies = currentDependencies.firstContext; null !== currentDependencies;){ 3122 if (!objectIs(currentDependencies.context._currentValue, currentDependencies.memoizedValue)) return !0; 3123 currentDependencies = currentDependencies.next; 3124 } 3125 return !1; 3126 } 3127 function prepareToReadContext(workInProgress) { 3128 currentlyRenderingFiber$1 = workInProgress; 3129 lastContextDependency = null; 3130 workInProgress = workInProgress.dependencies; 3131 null !== workInProgress && (workInProgress.firstContext = null); 3132 } 3133 function readContext(context) { 3134 isDisallowedContextReadInDEV && console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 3135 return readContextForConsumer(currentlyRenderingFiber$1, context); 3136 } 3137 function readContextDuringReconciliation(consumer, context) { 3138 null === currentlyRenderingFiber$1 && prepareToReadContext(consumer); 3139 return readContextForConsumer(consumer, context); 3140 } 3141 function readContextForConsumer(consumer, context) { 3142 var value = context._currentValue; 3143 context = { 3144 context: context, 3145 memoizedValue: value, 3146 next: null 3147 }; 3148 if (null === lastContextDependency) { 3149 if (null === consumer) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 3150 lastContextDependency = context; 3151 consumer.dependencies = { 3152 lanes: 0, 3153 firstContext: context, 3154 _debugThenableState: null 3155 }; 3156 consumer.flags |= 524288; 3157 } else lastContextDependency = lastContextDependency.next = context; 3158 return value; 3159 } 3160 function createCache() { 3161 return { 3162 controller: new AbortControllerLocal(), 3163 data: new Map(), 3164 refCount: 0 3165 }; 3166 } 3167 function retainCache(cache) { 3168 cache.controller.signal.aborted && console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."); 3169 cache.refCount++; 3170 } 3171 function releaseCache(cache) { 3172 cache.refCount--; 3173 0 > cache.refCount && console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."); 3174 0 === cache.refCount && scheduleCallback$2(NormalPriority, function() { 3175 cache.controller.abort(); 3176 }); 3177 } 3178 function pushNestedEffectDurations() { 3179 var prevEffectDuration = profilerEffectDuration; 3180 profilerEffectDuration = 0; 3181 return prevEffectDuration; 3182 } 3183 function popNestedEffectDurations(prevEffectDuration) { 3184 var elapsedTime = profilerEffectDuration; 3185 profilerEffectDuration = prevEffectDuration; 3186 return elapsedTime; 3187 } 3188 function bubbleNestedEffectDurations(prevEffectDuration) { 3189 var elapsedTime = profilerEffectDuration; 3190 profilerEffectDuration += prevEffectDuration; 3191 return elapsedTime; 3192 } 3193 function pushComponentEffectStart() { 3194 var prevEffectStart = componentEffectStartTime; 3195 componentEffectStartTime = -1.1; 3196 return prevEffectStart; 3197 } 3198 function popComponentEffectStart(prevEffectStart) { 3199 0 <= prevEffectStart && (componentEffectStartTime = prevEffectStart); 3200 } 3201 function startProfilerTimer(fiber) { 3202 profilerStartTime = now(); 3203 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime); 3204 } 3205 function stopProfilerTimerIfRunningAndRecordDuration(fiber) { 3206 if (0 <= profilerStartTime) { 3207 var elapsedTime = now() - profilerStartTime; 3208 fiber.actualDuration += elapsedTime; 3209 fiber.selfBaseDuration = elapsedTime; 3210 profilerStartTime = -1; 3211 } 3212 } 3213 function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) { 3214 if (0 <= profilerStartTime) { 3215 var elapsedTime = now() - profilerStartTime; 3216 fiber.actualDuration += elapsedTime; 3217 profilerStartTime = -1; 3218 } 3219 } 3220 function recordEffectDuration() { 3221 if (0 <= profilerStartTime) { 3222 var elapsedTime = now() - profilerStartTime; 3223 profilerStartTime = -1; 3224 profilerEffectDuration += elapsedTime; 3225 } 3226 } 3227 function startEffectTimer() {
3228 profilerStartTime = now(); 3229 0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime); 3230 } 3231 function transferActualDuration(fiber) { 3232 for(var child = fiber.child; child;)fiber.actualDuration += child.actualDuration, child = child.sibling; 3233 } 3234 function entangleAsyncAction(transition, thenable) { 3235 if (null === currentEntangledListeners) { 3236 var entangledListeners = currentEntangledListeners = []; 3237 currentEntangledPendingCount = 0; 3238 currentEntangledLane = requestTransitionLane(); 3239 currentEntangledActionThenable = { 3240 status: "pending", 3241 value: void 0, 3242 then: function(resolve) { 3243 entangledListeners.push(resolve); 3244 } 3245 }; 3246 } 3247 currentEntangledPendingCount++; 3248 thenable.then(pingEngtangledActionScope, pingEngtangledActionScope); 3249 return thenable; 3250 } 3251 function pingEngtangledActionScope() { 3252 if (0 === --currentEntangledPendingCount && null !== currentEntangledListeners) { 3253 null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled"); 3254 var listeners = currentEntangledListeners; 3255 currentEntangledListeners = null; 3256 currentEntangledLane = 0; 3257 currentEntangledActionThenable = null; 3258 for(var i = 0; i < listeners.length; i++)(0, listeners[i])(); 3259 } 3260 } 3261 function chainThenableValue(thenable, result) { 3262 var listeners = [], thenableWithOverride = { 3263 status: "pending", 3264 value: null, 3265 reason: null, 3266 then: function(resolve) { 3267 listeners.push(resolve); 3268 } 3269 }; 3270 thenable.then(function() { 3271 thenableWithOverride.status = "fulfilled"; 3272 thenableWithOverride.value = result; 3273 for(var i = 0; i < listeners.length; i++)(0, listeners[i])(result); 3274 }, function(error) { 3275 thenableWithOverride.status = "rejected"; 3276 thenableWithOverride.reason = error; 3277 for(error = 0; error < listeners.length; error++)(0, listeners[error])(void 0); 3278 }); 3279 return thenableWithOverride; 3280 } 3281 function peekCacheFromPool() { 3282 var cacheResumedFromPreviousRender = resumedCache.current; 3283 return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache; 3284 } 3285 function pushTransition(offscreenWorkInProgress, prevCachePool) { 3286 null === prevCachePool ? push(resumedCache, resumedCache.current, offscreenWorkInProgress) : push(resumedCache, prevCachePool.pool, offscreenWorkInProgress); 3287 } 3288 function getSuspendedCache() { 3289 var cacheFromPool = peekCacheFromPool(); 3290 return null === cacheFromPool ? null : { 3291 parent: CacheContext._currentValue, 3292 pool: cacheFromPool 3293 }; 3294 } 3295 function createThenableState() { 3296 return { 3297 didWarnAboutUncachedPromise: !1, 3298 thenables: [] 3299 }; 3300 } 3301 function isThenableResolved(thenable) { 3302 thenable = thenable.status; 3303 return "fulfilled" === thenable || "rejected" === thenable; 3304 } 3305 function trackUsedThenable(thenableState, thenable, index) { 3306 null !== ReactSharedInternals.actQueue && (ReactSharedInternals.didUsePromise = !0); 3307 var trackedThenables = thenableState.thenables; 3308 index = trackedThenables[index]; 3309 void 0 === index ? trackedThenables.push(thenable) : index !== thenable && (thenableState.didWarnAboutUncachedPromise || (thenableState.didWarnAboutUncachedPromise = !0, console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")), thenable.then(noop$1, noop$1), thenable = index); 3310 if (void 0 === thenable._debugInfo) { 3311 thenableState = performance.now(); 3312 trackedThenables = thenable.displayName; 3313 var ioInfo = { 3314 name: "string" === typeof trackedThenables ? trackedThenables : "Promise", 3315 start: thenableState, 3316 end: thenableState, 3317 value: thenable 3318 }; 3319 thenable._debugInfo = [ 3320 { 3321 awaited: ioInfo 3322 } 3323 ]; 3324 "fulfilled" !== thenable.status && "rejected" !== thenable.status && (thenableState = function() { 3325 ioInfo.end = performance.now(); 3326 }, thenable.then(thenableState, thenableState)); 3327 } 3328 switch(thenable.status){ 3329 case "fulfilled": 3330 return thenable.value; 3331 case "rejected": 3332 throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(the
3332nableState), thenableState; 3333 default: 3334 if ("string" === typeof thenable.status) thenable.then(noop$1, noop$1); 3335 else { 3336 thenableState = workInProgressRoot; 3337 if (null !== thenableState && 100 < thenableState.shellSuspendCounter) throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."); 3338 thenableState = thenable; 3339 thenableState.status = "pending"; 3340 thenableState.then(function(fulfilledValue) { 3341 if ("pending" === thenable.status) { 3342 var fulfilledThenable = thenable; 3343 fulfilledThenable.status = "fulfilled"; 3344 fulfilledThenable.value = fulfilledValue; 3345 } 3346 }, function(error) { 3347 if ("pending" === thenable.status) { 3348 var rejectedThenable = thenable; 3349 rejectedThenable.status = "rejected"; 3350 rejectedThenable.reason = error; 3351 } 3352 }); 3353 } 3354 switch(thenable.status){ 3355 case "fulfilled": 3356 return thenable.value; 3357 case "rejected": 3358 throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState; 3359 } 3360 suspendedThenable = thenable; 3361 needsToResetSuspendedThenableDEV = !0; 3362 throw SuspenseException; 3363 } 3364 } 3365 function resolveLazy(lazyType) { 3366 try { 3367 return callLazyInitInDEV(lazyType); 3368 } catch (x) { 3369 if (null !== x && "object" === typeof x && "function" === typeof x.then) throw suspendedThenable = x, needsToResetSuspendedThenableDEV = !0, SuspenseException; 3370 throw x; 3371 } 3372 } 3373 function getSuspendedThenable() { 3374 if (null === suspendedThenable) throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue."); 3375 var thenable = suspendedThenable; 3376 suspendedThenable = null; 3377 needsToResetSuspendedThenableDEV = !1; 3378 return thenable; 3379 } 3380 function checkIfUseWrappedInAsyncCatch(rejectedReason) { 3381 if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException) throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."); 3382 } 3383 function pushDebugInfo(debugInfo) { 3384 var previousDebugInfo = currentDebugInfo; 3385 null != debugInfo && (currentDebugInfo = null === previousDebugInfo ? debugInfo : previousDebugInfo.concat(debugInfo)); 3386 return previousDebugInfo; 3387 } 3388 function validateFragmentProps(element, fiber, returnFiber) { 3389 for(var keys = Object.keys(element.props), i = 0; i < keys.length; i++){ 3390 var key = keys[i]; 3391 if ("children" !== key && "key" !== key) { 3392 null === fiber && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber); 3393 runWithFiberInDEV(fiber, function(erroredKey) { 3394 console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", erroredKey); 3395 }, key); 3396 break; 3397 } 3398 } 3399 } 3400 function unwrapThenable(thenable) { 3401 var index = thenableIndexCounter$1; 3402 thenableIndexCounter$1 += 1; 3403 null === thenableState$1 && (thenableState$1 = createThenableState()); 3404 return trackUsedThenable(thenableState$1, thenable, index); 3405 } 3406 function coerceRef(workInProgress, element) { 3407 element = element.props.ref; 3408 workInProgress.ref = void 0 !== element ? element : null; 3409 }
3410 function throwOnInvalidObjectType(returnFiber, newChild) { 3411 if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.'); 3412 returnFiber = Object.prototype.toString.call(newChild); 3413 throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); 3414 } 3415 function warnOnFunctionType(returnFiber, invalidChild) { 3416 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 3417 ownerHasFunctionTypeWarning[parentName] || (ownerHasFunctionTypeWarning[parentName] = !0, invalidChild = invalidChild.displayName || invalidChild.name || "Component", 3 === returnFiber.tag ? console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)", invalidChild, invalidChild, invalidChild) : console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>", invalidChild, invalidChild, parentName, invalidChild, parentName)); 3418 } 3419 function warnOnSymbolType(returnFiber, invalidChild) { 3420 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 3421 ownerHasSymbolTypeWarning[parentName] || (ownerHasSymbolTypeWarning[parentName] = !0, invalidChild = String(invalidChild), 3 === returnFiber.tag ? console.error("Symbols are not valid as a React child.\n root.render(%s)", invalidChild) : console.error("Symbols are not valid as a React child.\n <%s>%s</%s>", parentName, invalidChild, parentName)); 3422 } 3423 function createChildReconciler(shouldTrackSideEffects) { 3424 function deleteChild(returnFiber, childToDelete) { 3425 if (shouldTrackSideEffects) { 3426 var deletions = returnFiber.deletions; 3427 null === deletions ? (returnFiber.deletions = [ 3428 childToDelete 3429 ], returnFiber.flags |= 16) : deletions.push(childToDelete); 3430 } 3431 } 3432 function deleteRemainingChildren(returnFiber, currentFirstChild) { 3433 if (!shouldTrackSideEffects) return null; 3434 for(; null !== currentFirstChild;)deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 3435 return null; 3436 } 3437 function mapRemainingChildren(currentFirstChild) { 3438 for(var existingChildren = new Map(); null !== currentFirstChild;)null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 3439 return existingChildren; 3440 } 3441 function useFiber(fiber, pendingProps) { 3442 fiber = createWorkInProgress(fiber, pendingProps); 3443 fiber.index = 0; 3444 fiber.sibling = null; 3445 return fiber; 3446 } 3447 function placeChild(newFiber, lastPlacedIndex, newIndex) { 3448 newFiber.index = newIndex; 3449 if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; 3450 newIndex = newFiber.alternate; 3451 if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex; 3452 newFiber.flags |= 67108866; 3453 return lastPlacedIndex; 3454 } 3455 function placeSingleChild(newFiber) { 3456 shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 67108866); 3457 return newFiber; 3458 } 3459 function updateTextNode(returnFiber, current, textContent, lanes) { 3460 if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current._debugOwner = returnFiber, current._debugTask = returnFiber._debugTask, current._debugInfo = currentDebugInfo, current; 3461 current = useFiber(current, textContent); 3462 current.return = returnFiber; 3463 current._debugInfo = currentDebugInfo; 3464 return current; 3465 } 3466 function updateElement(returnFiber, current, element, lanes) { 3467 var elementType = element.type; 3468 if (elementType === REACT_FRAGMENT_TYPE) return current = updateFragment(returnFiber, current, element.props.children, lanes, element.key), validateFragmentProps(element, current, returnFiber), current; 3469 if (null !== current && (current.elementType === elementType || isCompatibleFamilyForHotReloading(current, element) || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return current = useFiber(current, element.props), coerceRef(current, element), current.return = returnFiber, current._debugOwner = element._owner, current._debugInfo = currentDebugInfo, current; 3470 current = createFiberFromElement(element, returnFiber.mode, lanes); 3471 coerceRef(current, element); 3472 current.return = returnFiber; 3473 current._debugInfo = currentDebugInfo; 3474 return current; 3475 } 3476 function updatePortal(returnFiber, current, portal, lanes) { 3477 if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current._debugInfo = currentDebugInfo, current; 3478 current = useFiber(current, portal.children || []); 3479 current.return = returnFiber; 3480 current._debugInfo = currentDebugInfo; 3481 return current; 3482 } 3483 function updateFragment(returnFiber, current, fragment, lanes, key) { 3484 if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current._debugOwner = returnFiber, current._debugTask = returnFiber._debugTask, current._debugInfo = currentDebugInfo, current; 3485 current = useFiber(current, fragment); 3486 current.return = returnFiber; 3487 current._debugInfo = currentDebugInfo; 3488 return current; 3489 } 3490 function createChild(returnFiber, newChild, lanes) { 3491 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild._debugOwner = returnFiber, newChild._debugTask = returnFiber._debugTask, newChild._debugInfo = currentDebugInfo, newChild; 3492 if ("object" === typeof newChild && null !== newChild) { 3493 switch(newChild.$$typeof){ 3494 case REACT_ELEMENT_TYPE: 3495 return lanes = createFiberFromElement(newChild, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 3496 case REACT_PORTAL_TYPE: 3497 return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild._debugInfo = currentDebugInfo, newChild; 3498 case REACT_LAZY_TYPE: 3499 var _prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3500 newChild = resolveLazy(newChild); 3501 returnFiber = createChild(returnFiber, newChild, lanes); 3502 currentDebugInfo = _prevDebugInfo; 3503 return returnFiber; 3504 } 3505 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return lanes = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 3506 if ("function" === typeof newChild.then) return _prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = createChild(returnFiber, unwrapThenable(newChild), lanes), currentDebugInfo = _prevDebugInfo, returnFiber; 3507 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return createChild(returnFiber, readContextDuringReconciliation(returnFiber, newChild), lanes);
3508 throwOnInvalidObjectType(returnFiber, newChild); 3509 } 3510 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3511 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3512 return null; 3513 } 3514 function updateSlot(returnFiber, oldFiber, newChild, lanes) { 3515 var key = null !== oldFiber ? oldFiber.key : null; 3516 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); 3517 if ("object" === typeof newChild && null !== newChild) { 3518 switch(newChild.$$typeof){ 3519 case REACT_ELEMENT_TYPE: 3520 return newChild.key === key ? (key = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(returnFiber, oldFiber, newChild, lanes), currentDebugInfo = key, returnFiber) : null; 3521 case REACT_PORTAL_TYPE: 3522 return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; 3523 case REACT_LAZY_TYPE: 3524 return key = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = updateSlot(returnFiber, oldFiber, newChild, lanes), currentDebugInfo = key, returnFiber; 3525 } 3526 if (isArrayImpl(newChild) || getIteratorFn(newChild)) { 3527 if (null !== key) return null; 3528 key = pushDebugInfo(newChild._debugInfo); 3529 returnFiber = updateFragment(returnFiber, oldFiber, newChild, lanes, null); 3530 currentDebugInfo = key; 3531 return returnFiber; 3532 } 3533 if ("function" === typeof newChild.then) return key = pushDebugInfo(newChild._debugInfo), returnFiber = updateSlot(returnFiber, oldFiber, unwrapThenable(newChild), lanes), currentDebugInfo = key, returnFiber; 3534 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateSlot(returnFiber, oldFiber, readContextDuringReconciliation(returnFiber, newChild), lanes); 3535 throwOnInvalidObjectType(returnFiber, newChild); 3536 } 3537 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3538 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3539 return null; 3540 } 3541 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { 3542 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); 3543 if ("object" === typeof newChild && null !== newChild) { 3544 switch(newChild.$$typeof){ 3545 case REACT_ELEMENT_TYPE: 3546 return newIdx = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(returnFiber, newIdx, newChild, lanes), currentDebugInfo = existingChildren, returnFiber; 3547 case REACT_PORTAL_TYPE: 3548 return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); 3549 case REACT_LAZY_TYPE: 3550 var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo); 3551 newChild = resolveLazy(newChild); 3552 returnFiber = updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes); 3553 currentDebugInfo = _prevDebugInfo7; 3554 return returnFiber; 3555 } 3556 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newIdx = existingChildren.get(newIdx) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateFragment(returnFiber, newIdx, newChild, lanes, null), currentDebugInfo = existingChildren, returnFiber; 3557 if ("function" === typeof newChild.then) return _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo), returnFiber = updateFromMap(existingChildren, returnFiber, newIdx, unwrapThenable(newChild), lanes), currentDebugInfo = _prevDebugInfo7, returnFiber; 3558 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateFromMap(existingChildren, returnFiber, newIdx, readContextDuringReconciliation(returnFiber, newChild), lanes);
vendor: 1,366 bytes, lines 3559-3583
3559 throwOnInvalidObjectType(returnFiber, newChild); 3560 } 3561 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3562 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3563 return null; 3564 } 3565 function warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys) { 3566 if ("object" !== typeof child || null === child) return knownKeys; 3567 switch(child.$$typeof){ 3568 case REACT_ELEMENT_TYPE: 3569 case REACT_PORTAL_TYPE: 3570 warnForMissingKey(returnFiber, workInProgress, child); 3571 var key = child.key; 3572 if ("string" !== typeof key) break; 3573 if (null === knownKeys) { 3574 knownKeys = new Set(); 3575 knownKeys.add(key); 3576 break; 3577 } 3578 if (!knownKeys.has(key)) { 3579 knownKeys.add(key); 3580 break; 3581 } 3582 runWithFiberInDEV(workInProgress, function() { 3583 console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/
3583or omitted \u2014 the behavior is unsupported and could change in a future version.", key); 3584 }); 3585 break; 3586 case REACT_LAZY_TYPE: 3587 child = resolveLazy(child), warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys); 3588 } 3589 return knownKeys; 3590 } 3591 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { 3592 for(var knownKeys = null, resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++){ 3593 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 3594 var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); 3595 if (null === newFiber) { 3596 null === oldFiber && (oldFiber = nextOldFiber); 3597 break; 3598 }
vendor: 1,520 bytes, lines 3599-3612
3599 knownKeys = warnOnInvalidKey(returnFiber, newFiber, newChildren[newIdx], knownKeys); 3600 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 3601 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 3602 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 3603 previousNewFiber = newFiber; 3604 oldFiber = nextOldFiber; 3605 } 3606 if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 3607 if (null === oldFiber) { 3608 for(; newIdx < newChildren.length; newIdx++)oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (knownKeys = warnOnInvalidKey(returnFiber, oldFiber, newChildren[newIdx], knownKeys), currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 3609 isHydrating && pushTreeFork(returnFiber, newIdx); 3610 return resultingFirstChild; 3611 } 3612 for(oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++)nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (knownKeys = warnOnInvali
vendor: 1,490 bytes, lines 3612-3627
3612dKey(returnFiber, nextOldFiber, newChildren[newIdx], knownKeys), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 3613 shouldTrackSideEffects && oldFiber.forEach(function(child) { 3614 return deleteChild(returnFiber, child); 3615 }); 3616 isHydrating && pushTreeFork(returnFiber, newIdx); 3617 return resultingFirstChild; 3618 } 3619 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) { 3620 if (null == newChildren) throw Error("An iterable object provided no iterator."); 3621 for(var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, knownKeys = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()){ 3622 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 3623 var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); 3624 if (null === newFiber) { 3625 null === oldFiber && (oldFiber = nextOldFiber); 3626 break; 3627 }
vendor: 1,484 bytes, lines 3628-3641
3628 knownKeys = warnOnInvalidKey(returnFiber, newFiber, step.value, knownKeys); 3629 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 3630 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 3631 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 3632 previousNewFiber = newFiber; 3633 oldFiber = nextOldFiber; 3634 } 3635 if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 3636 if (null === oldFiber) { 3637 for(; !step.done; newIdx++, step = newChildren.next())oldFiber = createChild(returnFiber, step.value, lanes), null !== oldFiber && (knownKeys = warnOnInvalidKey(returnFiber, oldFiber, step.value, knownKeys), currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 3638 isHydrating && pushTreeFork(returnFiber, newIdx); 3639 return resultingFirstChild; 3640 } 3641 for(oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next())nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== nextOldFiber && (knownKeys = warnOnInvali
3641dKey(returnFiber, nextOldFiber, step.value, knownKeys), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 3642 shouldTrackSideEffects && oldFiber.forEach(function(child) { 3643 return deleteChild(returnFiber, child); 3644 }); 3645 isHydrating && pushTreeFork(returnFiber, newIdx); 3646 return resultingFirstChild; 3647 } 3648 function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) { 3649 "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (validateFragmentProps(newChild, null, returnFiber), newChild = newChild.props.children); 3650 if ("object" === typeof newChild && null !== newChild) { 3651 switch(newChild.$$typeof){ 3652 case REACT_ELEMENT_TYPE: 3653 var prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3654 a: { 3655 for(var key = newChild.key; null !== currentFirstChild;){ 3656 if (currentFirstChild.key === key) { 3657 key = newChild.type; 3658 if (key === REACT_FRAGMENT_TYPE) { 3659 if (7 === currentFirstChild.tag) { 3660 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3661 lanes = useFiber(currentFirstChild, newChild.props.children); 3662 lanes.return = returnFiber; 3663 lanes._debugOwner = newChild._owner; 3664 lanes._debugInfo = currentDebugInfo; 3665 validateFragmentProps(newChild, lanes, returnFiber); 3666 returnFiber = lanes; 3667 break a; 3668 } 3669 } else if (currentFirstChild.elementType === key || isCompatibleFamilyForHotReloading(currentFirstChild, newChild) || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) { 3670 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3671 lanes = useFiber(currentFirstChild, newChild.props); 3672 coerceRef(lanes, newChild); 3673 lanes.return = returnFiber; 3674 lanes._debugOwner = newChild._owner; 3675 lanes._debugInfo = currentDebugInfo; 3676 returnFiber = lanes; 3677 break a; 3678 } 3679 deleteRemainingChildren(returnFiber, currentFirstChild); 3680 break; 3681 } else deleteChild(returnFiber, currentFirstChild); 3682 currentFirstChild = currentFirstChild.sibling; 3683 } 3684 newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, validateFragmentProps(newChild, lanes, returnFiber), returnFiber = lanes) : (lanes = createFiberFromElement(newChild, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes._debugInfo = currentDebugInfo, returnFiber = lanes); 3685 } 3686 returnFiber = placeSingleChild(returnFiber); 3687 currentDebugInfo = prevDebugInfo; 3688 return returnFiber; 3689 case REACT_PORTAL_TYPE: 3690 a: { 3691 prevDebugInfo = newChild; 3692 for(newChild = prevDebugInfo.key; null !== currentFirstChild;){ 3693 if (currentFirstChild.key === newChild) if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === prevDebugInfo.containerInfo && currentFirstChild.stateNode.implementation === prevDebugInfo.implementation) { 3694 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3695 lanes = useFiber(currentFirstChild, prevDebugInfo.children || []); 3696 lanes.return = returnFiber; 3697 returnFiber = lanes; 3698 break a; 3699 } else { 3700 deleteRemainingChildren(returnFiber, currentFirstChild); 3701 break; 3702 } 3703 else deleteChild(returnFiber, currentFirstChild); 3704 currentFirstChild = currentFirstChild.sibling; 3705 } 3706 lanes = createFiberFromPortal(prevDebugInfo, returnFiber.mode, lanes); 3707 lanes.return = returnFiber; 3708 returnFiber = lanes; 3709 } 3710 return placeSingleChild(returnFiber); 3711 case REACT_LAZY_TYPE: 3712 return prevDebugInfo = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3713 } 3714 if (isArrayImpl(newChild)) return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3715 if (getIteratorFn(newChild)) { 3716 prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3717 key = getIteratorFn(newChild); 3718 if ("function" !== typeof key) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); 3719 var newChildren = key.call(newChild); 3720 if (newChildren === newChild) { 3721 if (0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || "[object Generator]" !== Object.prototype.toString.call(newChildren)) didWarnAboutGenerators || console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."), didWarnAboutGenerators = !0; 3722 } else newChild.entries !== key || didWarnAboutMaps || (console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0); 3723 returnFiber = reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes); 3724 currentDebugInfo = prevDebugInfo; 3725 return returnFiber; 3726 } 3727 if ("function" === typeof newChild.then) return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, unwrapThenable(newChild), lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3728 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return reconcileChildFibersImpl(returnFiber, currentFirstChild, readContextDuringReconciliation(returnFiber, newChild), lanes);
3729 throwOnInvalidObjectType(returnFiber, newChild); 3730 } 3731 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return prevDebugInfo = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), lanes = useFiber(currentFirstChild, prevDebugInfo), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(prevDebugInfo, returnFiber.mode, lanes), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, returnFiber = lanes), placeSingleChild(returnFiber); 3732 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3733 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3734 return deleteRemainingChildren(returnFiber, currentFirstChild); 3735 } 3736 return function(returnFiber, currentFirstChild, newChild, lanes) { 3737 var prevDebugInfo = currentDebugInfo; 3738 currentDebugInfo = null; 3739 try { 3740 thenableIndexCounter$1 = 0; 3741 var firstChildFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes); 3742 thenableState$1 = null; 3743 return firstChildFiber; 3744 } catch (x) { 3745 if (x === SuspenseException || x === SuspenseActionException) throw x; 3746 var fiber = createFiber(29, x, null, returnFiber.mode); 3747 fiber.lanes = lanes; 3748 fiber.return = returnFiber; 3749 var debugInfo = fiber._debugInfo = currentDebugInfo; 3750 fiber._debugOwner = returnFiber._debugOwner; 3751 fiber._debugTask = returnFiber._debugTask; 3752 if (null != debugInfo) { 3753 for(var i = debugInfo.length - 1; 0 <= i; i--)if ("string" === typeof debugInfo[i].stack) { 3754 fiber._debugOwner = debugInfo[i]; 3755 fiber._debugTask = debugInfo[i].debugTask; 3756 break; 3757 } 3758 } 3759 return fiber; 3760 } finally{ 3761 currentDebugInfo = prevDebugInfo; 3762 } 3763 }; 3764 } 3765 function validateSuspenseListNestedChild(childSlot, index) { 3766 var isAnArray = isArrayImpl(childSlot); 3767 childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot); 3768 return isAnArray || childSlot ? (isAnArray = isAnArray ? "array" : "iterable", console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", isAnArray, index, isAnArray), !1) : !0; 3769 } 3770 function initializeUpdateQueue(fiber) { 3771 fiber.updateQueue = { 3772 baseState: fiber.memoizedState, 3773 firstBaseUpdate: null, 3774 lastBaseUpdate: null, 3775 shared: { 3776 pending: null, 3777 lanes: 0, 3778 hiddenCallbacks: null 3779 }, 3780 callbacks: null 3781 }; 3782 } 3783 function cloneUpdateQueue(current, workInProgress) { 3784 current = current.updateQueue; 3785 workInProgress.updateQueue === current && (workInProgress.updateQueue = { 3786 baseState: current.baseState, 3787 firstBaseUpdate: current.firstBaseUpdate, 3788 lastBaseUpdate: current.lastBaseUpdate, 3789 shared: current.shared, 3790 callbacks: null 3791 }); 3792 } 3793 function createUpdate(lane) { 3794 return { 3795 lane: lane, 3796 tag: UpdateState, 3797 payload: null, 3798 callback: null, 3799 next: null 3800 }; 3801 } 3802 function enqueueUpdate(fiber, update, lane) { 3803 var updateQueue = fiber.updateQueue; 3804 if (null === updateQueue) return null; 3805 updateQueue = updateQueue.shared; 3806 if (currentlyProcessingQueue === updateQueue && !didWarnUpdateInsideUpd
3806ate) { 3807 var componentName = getComponentNameFromFiber(fiber); 3808 console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", componentName); 3809 didWarnUpdateInsideUpdate = !0; 3810 } 3811 if ((executionContext & RenderContext) !== NoContext) return componentName = updateQueue.pending, null === componentName ? update.next = update : (update.next = componentName.next, componentName.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update; 3812 enqueueUpdate$1(fiber, updateQueue, update, lane); 3813 return getRootForUpdatedFiber(fiber); 3814 } 3815 function entangleTransitions(root, fiber, lane) { 3816 fiber = fiber.updateQueue; 3817 if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) { 3818 var queueLanes = fiber.lanes; 3819 queueLanes &= root.pendingLanes; 3820 lane |= queueLanes; 3821 fiber.lanes = lane; 3822 markRootEntangled(root, lane); 3823 } 3824 } 3825 function enqueueCapturedUpdate(workInProgress, capturedUpdate) { 3826 var queue = workInProgress.updateQueue, current = workInProgress.alternate; 3827 if (null !== current && (current = current.updateQueue, queue === current)) { 3828 var newFirst = null, newLast = null; 3829 queue = queue.firstBaseUpdate; 3830 if (null !== queue) { 3831 do { 3832 var clone = { 3833 lane: queue.lane, 3834 tag: queue.tag, 3835 payload: queue.payload, 3836 callback: null, 3837 next: null 3838 }; 3839 null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; 3840 queue = queue.next; 3841 }while (null !== queue) 3842 null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; 3843 } else newFirst = newLast = capturedUpdate; 3844 queue = { 3845 baseState: current.baseState, 3846 firstBaseUpdate: newFirst, 3847 lastBaseUpdate: newLast, 3848 shared: current.shared, 3849 callbacks: current.callbacks 3850 }; 3851 workInProgress.updateQueue = queue; 3852 return; 3853 } 3854 workInProgress = queue.lastBaseUpdate; 3855 null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; 3856 queue.lastBaseUpdate = capturedUpdate; 3857 } 3858 function suspendIfUpdateReadFromEntangledAsyncAction() { 3859 if (didReadFromEntangledAsyncAction) { 3860 var entangledActionThenable = currentEntangledActionThenable; 3861 if (null !== entangledActionThenable) throw entangledActionThenable; 3862 } 3863 } 3864 function processUpdateQueue(workInProgress, props, instance$jscomp$0, renderLanes) { 3865 didReadFromEntangledAsyncAction = !1; 3866 var queue = workInProgress.updateQueue; 3867 hasForceUpdate = !1; 3868 currentlyProcessingQueue = queue.shared; 3869 var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending; 3870 if (null !== pendingQueue) { 3871 queue.shared.pending = null; 3872 var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next; 3873 lastPendingUpdate.next = null; 3874 null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; 3875 lastBaseUpdate = lastPendingUpdate; 3876 var current = workInProgress.alternate; 3877 null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); 3878 } 3879 if (null !== firstBaseUpdate) { 3880 var newState = queue.baseState; 3881 lastBaseUpdate = 0; 3882 current = firstPendingUpdate = lastPendingUpdate = null; 3883 pendingQueue = firstBaseUpdate; 3884 do { 3885 var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane; 3886 if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 3887 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 3888 null !== current && (current = current.next = { 3889 lane: 0, 3890 tag: pendingQueue.tag, 3891 payload: pendingQueue.payload, 3892 callback: null, 3893 next: null 3894 }); 3895 a: { 3896 updateLane = workInProgress; 3897 var partialState = pendingQueue; 3898 var nextProps = props, instance = instance$jscomp$0; 3899 switch(partialState.tag){ 3900 case ReplaceState: 3901 partialState = partialState.payload; 3902 if ("function" === typeof partialState) { 3903 isDisallowedContextReadInDEV = !0; 3904 var nextState = partialState.call(instance, newState, nextProps); 3905 if (updateLane.mode & StrictLegacyMode) { 3906 setIsStrictModeForDevtools(!0); 3907 try { 3908 partialState.call(instance, newState, nextProps); 3909 } finally{ 3910 setIsStrictModeForDevtools(!1); 3911 } 3912 } 3913 isDisallowedContextReadInDEV = !1; 3914 newState = nextState; 3915 break a; 3916 } 3917 newState = partialState; 3918 break a; 3919 case CaptureUpdate: 3920 updateLane.flags = updateLane.flags & -65537 | 128; 3921 case UpdateState: 3922 nextState = partialState.payload; 3923 if ("function" === typeof nextState) { 3924 isDisallowedContextReadInDEV = !0; 3925 partialState = nextState.call(instance, newState, nextProps); 3926 if (updateLane.mode & StrictLegacyMode) { 3927 setIsStrictModeForDevtools(!0); 3928 try { 3929 nextState.call(instance, newState, nextProps); 3930 } finally{ 3931 setIsStrictModeForDevtools(!1); 3932 } 3933 } 3934 isDisallowedContextReadInDEV = !1; 3935 } else partialState = nextState; 3936 if (null === partialState || void 0 === partialState) break a; 3937 newState = assign({}, newState, partialState); 3938 break a; 3939 case ForceUpdate: 3940 hasForceUpdate = !0; 3941 } 3942 } 3943 updateLane = pendingQueue.callback; 3944 null !== updateLane && (workInProgress.flags |= 64, isHiddenUpdate && (workInProgress.flags |= 8192), isHiddenUpdate = queue.callbacks, null === isHiddenUpdate ? queue.callbacks = [ 3945 updateLane 3946 ] : isHiddenUpdate.push(updateLane)); 3947 } else isHiddenUpdate = { 3948 lane: updateLane, 3949 tag: pendingQueue.tag, 3950 payload: pendingQueue.payload,
vendor: 6,269 bytes, lines 3951-4054
3951 callback: pendingQueue.callback, 3952 next: null 3953 }, null === current ? (firstPendingUpdate = current = isHiddenUpdate, lastPendingUpdate = newState) : current = current.next = isHiddenUpdate, lastBaseUpdate |= updateLane; 3954 pendingQueue = pendingQueue.next; 3955 if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break; 3956 else isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null; 3957 }while (1) 3958 null === current && (lastPendingUpdate = newState); 3959 queue.baseState = lastPendingUpdate; 3960 queue.firstBaseUpdate = firstPendingUpdate; 3961 queue.lastBaseUpdate = current; 3962 null === firstBaseUpdate && (queue.shared.lanes = 0); 3963 workInProgressRootSkippedLanes |= lastBaseUpdate; 3964 workInProgress.lanes = lastBaseUpdate; 3965 workInProgress.memoizedState = newState; 3966 } 3967 currentlyProcessingQueue = null; 3968 } 3969 function callCallback(callback, context) { 3970 if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback); 3971 callback.call(context); 3972 } 3973 function commitHiddenCallbacks(updateQueue, context) { 3974 var hiddenCallbacks = updateQueue.shared.hiddenCallbacks; 3975 if (null !== hiddenCallbacks) for(updateQueue.shared.hiddenCallbacks = null, updateQueue = 0; updateQueue < hiddenCallbacks.length; updateQueue++)callCallback(hiddenCallbacks[updateQueue], context); 3976 } 3977 function commitCallbacks(updateQueue, context) { 3978 var callbacks = updateQueue.callbacks; 3979 if (null !== callbacks) for(updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++)callCallback(callbacks[updateQueue], context); 3980 } 3981 function pushHiddenContext(fiber, context) { 3982 var prevEntangledRenderLanes = entangledRenderLanes; 3983 push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber); 3984 push(currentTreeHiddenStackCursor, context, fiber); 3985 entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes; 3986 } 3987 function reuseHiddenContextOnStack(fiber) { 3988 push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber); 3989 push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current, fiber); 3990 } 3991 function popHiddenContext(fiber) { 3992 entangledRenderLanes = prevEntangledRenderLanesCursor.current; 3993 pop(currentTreeHiddenStackCursor, fiber); 3994 pop(prevEntangledRenderLanesCursor, fiber); 3995 } 3996 function pushPrimaryTreeSuspenseHandler(handler) { 3997 var current = handler.alternate; 3998 push(suspenseStackCursor, suspenseStackCursor.current & SubtreeSuspenseContextMask, handler); 3999 push(suspenseHandlerStackCursor, handler, handler); 4000 null === shellBoundary && (null === current || null !== currentTreeHiddenStackCursor.current ? shellBoundary = handler : null !== current.memoizedState && (shellBoundary = handler)); 4001 } 4002 function pushDehydratedActivitySuspenseHandler(fiber) { 4003 push(suspenseStackCursor, suspenseStackCursor.current, fiber); 4004 push(suspenseHandlerStackCursor, fiber, fiber); 4005 null === shellBoundary && (shellBoundary = fiber); 4006 } 4007 function pushOffscreenSuspenseHandler(fiber) { 4008 22 === fiber.tag ? (push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(suspenseHandlerStackCursor, fiber, fiber), null === shellBoundary && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber); 4009 } 4010 function reuseSuspenseHandlerOnStack(fiber) { 4011 push(suspenseStackCursor, suspenseStackCursor.current, fiber); 4012 push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current, fiber); 4013 } 4014 function popSuspenseHandler(fiber) { 4015 pop(suspenseHandlerStackCursor, fiber); 4016 shellBoundary === fiber && (shellBoundary = null); 4017 pop(suspenseStackCursor, fiber); 4018 } 4019 function findFirstSuspended(row) { 4020 for(var node = row; null !== node;){ 4021 if (13 === node.tag) { 4022 var state = node.memoizedState; 4023 if (null !== state && (state = state.dehydrated, null === state || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state))) return node; 4024 } else if (19 === node.tag && ("forwards" === node.memoizedProps.revealOrder || "backwards" === node.memoizedProps.revealOrder || "unstable_legacy-backwards" === node.memoizedProps.revealOrder || "together" === node.memoizedProps.revealOrder)) { 4025 if (0 !== (node.flags & 128)) return node; 4026 } else if (null !== node.child) { 4027 node.child.return = node; 4028 node = node.child; 4029 continue; 4030 } 4031 if (node === row) break; 4032 for(; null === node.sibling;){ 4033 if (null === node.return || node.return === row) return null; 4034 node = node.return; 4035 } 4036 node.sibling.return = node.return; 4037 node = node.sibling; 4038 } 4039 return null; 4040 } 4041 function mountHookTypesDev() { 4042 var hookName = currentHookNameInDev; 4043 null === hookTypesDev ? hookTypesDev = [ 4044 hookName 4045 ] : hookTypesDev.push(hookName); 4046 } 4047 function updateHookTypesDev() { 4048 var hookName = currentHookNameInDev; 4049 if (null !== hookTypesDev && (hookTypesUpdateIndexDev++, hookTypesDev[hookTypesUpdateIndexDev] !== hookName)) { 4050 var componentName = getComponentNameFromFiber(currentlyRenderingFiber); 4051 if (!didWarnAboutMismatchedHooksForComponent.has(componentName) && (didWarnAboutMismatchedHooksForComponent.add(componentName), null !== hookTypesDev)) { 4052 for(var table = "", i = 0; i <= hookTypesUpdateIndexDev; i++){ 4053 var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? hookName : oldHookName; 4054 for(oldHookName = i + 1 + ". " + oldHookName; 30 > oldHookName.length;)oldHookName += " ";
4055 oldHookName += newHookName + "\n"; 4056 table += oldHookName; 4057 } 4058 console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); 4059 } 4060 } 4061 } 4062 function checkDepsAreArrayDev(deps) { 4063 void 0 === deps || null === deps || isArrayImpl(deps) || console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", currentHookNameInDev, typeof deps); 4064 } 4065 function warnOnUseFormStateInDev() { 4066 var componentName = getComponentNameFromFiber(currentlyRenderingFiber); 4067 didWarnAboutUseFormState.has(componentName) || (didWarnAboutUseFormState.add(componentName), console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.", componentName)); 4068 } 4069 function throwInvalidHookError() { 4070 throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."); 4071 } 4072 function areHookInputsEqual(nextDeps, prevDeps) { 4073 if (ignorePreviousDependencies) return !1; 4074 if (null === prevDeps) return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev), !1; 4075 nextDeps.length !== prevDeps.length && console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); 4076 for(var i = 0; i < prevDeps.length && i < nextDeps.length; i++)if (!objectIs(nextDeps[i], prevDeps[i])) return !1; 4077 return !0; 4078 } 4079 function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { 4080 renderLanes = nextRenderLanes; 4081 currentlyRenderingFiber = workInProgress; 4082 hookTypesDev = null !== current ? current._debugHookTypes : null; 4083 hookTypesUpdateIndexDev = -1; 4084 ignorePreviousDependencies = null !== current && current.type !== workInProgress.type; 4085 if ("[object AsyncFunction]" === Object.prototype.toString.call(Component) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component)) nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">")); 4086 workInProgress.memoizedState = null; 4087 workInProgress.updateQueue = null; 4088 workInProgress.lanes = 0; 4089 ReactSharedInternals.H = null !== current && null !== current.memoizedState ? HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV; 4090 shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress.mode & StrictLegacyMode) !== NoMode; 4091 var children = callComponentInDEV(Component, props, secondArg); 4092 shouldDoubleInvokeUserFnsInHooksDEV = !1; 4093 didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(workInProgress, Component, props, secondArg)); 4094 if (nextRenderLanes) { 4095 setIsStrictModeForDevtools(!0); 4096 try { 4097 children = renderWithHooksAgain(workInProgress, Component, props, secondArg); 4098 } finally{ 4099 setIsStrictModeForDevtools(!1); 4100 } 4101 } 4102 finishRenderingHooks(current, workInProgress); 4103 return children; 4104 } 4105 function finishRenderingHooks(current, workInProgress) { 4106 workInProgress._debugHookTypes = hookTypesDev; 4107 null === workInProgress.dependencies ? null !== thenableState && (workInProgress.dependencies = { 4108 lanes: 0, 4109 firstContext: null, 4110 _debugThenableState: thenableState 4111 }) : workInProgress.dependencies._debugThenableState = thenableState;
vendor: 13,779 bytes, lines 4112-4359
4112 ReactSharedInternals.H = ContextOnlyDispatcher; 4113 var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; 4114 renderLanes = 0; 4115 hookTypesDev = currentHookNameInDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 4116 hookTypesUpdateIndexDev = -1; 4117 null !== current && (current.flags & 65011712) !== (workInProgress.flags & 65011712) && console.error("Internal React error: Expected static flag was missing. Please notify the React team."); 4118 didScheduleRenderPhaseUpdate = !1; 4119 thenableIndexCounter = 0; 4120 thenableState = null; 4121 if (didRenderTooFewHooks) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); 4122 null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = !0)); 4123 needsToResetSuspendedThenableDEV ? (needsToResetSuspendedThenableDEV = !1, current = !0) : current = !1; 4124 current && (workInProgress = getComponentNameFromFiber(workInProgress) || "Unknown", didWarnAboutUseWrappedInTryCatch.has(workInProgress) || didWarnAboutAsyncClientComponent.has(workInProgress) || (didWarnAboutUseWrappedInTryCatch.add(workInProgress), console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."))); 4125 } 4126 function renderWithHooksAgain(workInProgress, Component, props, secondArg) { 4127 currentlyRenderingFiber = workInProgress; 4128 var numberOfReRenders = 0; 4129 do { 4130 didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null); 4131 thenableIndexCounter = 0; 4132 didScheduleRenderPhaseUpdateDuringThisPass = !1; 4133 if (numberOfReRenders >= RE_RENDER_LIMIT) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); 4134 numberOfReRenders += 1; 4135 ignorePreviousDependencies = !1; 4136 workInProgressHook = currentHook = null; 4137 if (null != workInProgress.updateQueue) { 4138 var children = workInProgress.updateQueue; 4139 children.lastEffect = null; 4140 children.events = null; 4141 children.stores = null; 4142 null != children.memoCache && (children.memoCache.index = 0); 4143 } 4144 hookTypesUpdateIndexDev = -1; 4145 ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV; 4146 children = callComponentInDEV(Component, props, secondArg); 4147 }while (didScheduleRenderPhaseUpdateDuringThisPass) 4148 return children; 4149 } 4150 function TransitionAwareHostComponent() { 4151 var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0]; 4152 maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable; 4153 dispatcher = dispatcher.useState()[0]; 4154 (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024); 4155 return maybeThenable; 4156 } 4157 function checkDidRenderIdHook() { 4158 var didRenderIdHook = 0 !== localIdCounter; 4159 localIdCounter = 0; 4160 return didRenderIdHook; 4161 } 4162 function bailoutHooks(current, workInProgress, lanes) { 4163 workInProgress.updateQueue = current.updateQueue; 4164 workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; 4165 current.lanes &= ~lanes; 4166 } 4167 function resetHooksOnUnwind(workInProgress) { 4168 if (didScheduleRenderPhaseUpdate) { 4169 for(workInProgress = workInProgress.memoizedState; null !== workInProgress;){ 4170 var queue = workInProgress.queue; 4171 null !== queue && (queue.pending = null); 4172 workInProgress = workInProgress.next; 4173 } 4174 didScheduleRenderPhaseUpdate = !1; 4175 } 4176 renderLanes = 0; 4177 hookTypesDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 4178 hookTypesUpdateIndexDev = -1; 4179 currentHookNameInDev = null; 4180 didScheduleRenderPhaseUpdateDuringThisPass = !1; 4181 thenableIndexCounter = localIdCounter = 0; 4182 thenableState = null; 4183 } 4184 function mountWorkInProgressHook() { 4185 var hook = { 4186 memoizedState: null, 4187 baseState: null, 4188 baseQueue: null, 4189 queue: null, 4190 next: null 4191 }; 4192 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; 4193 return workInProgressHook; 4194 } 4195 function updateWorkInProgressHook() { 4196 if (null === currentHook) { 4197 var nextCurrentHook = currentlyRenderingFiber.alternate; 4198 nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; 4199 } else nextCurrentHook = currentHook.next; 4200 var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next; 4201 if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook; 4202 else { 4203 if (null === nextCurrentHook) { 4204 if (null === currentlyRenderingFiber.alternate) throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."); 4205 throw Error("Rendered more hooks than during the previous render."); 4206 } 4207 currentHook = nextCurrentHook; 4208 nextCurrentHook = { 4209 memoizedState: currentHook.memoizedState, 4210 baseState: currentHook.baseState, 4211 baseQueue: currentHook.baseQueue, 4212 queue: currentHook.queue, 4213 next: null 4214 }; 4215 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; 4216 } 4217 return workInProgressHook; 4218 } 4219 function createFunctionComponentUpdateQueue() { 4220 return { 4221 lastEffect: null, 4222 events: null, 4223 stores: null, 4224 memoCache: null 4225 }; 4226 } 4227 function useThenable(thenable) { 4228 var index = thenableIndexCounter; 4229 thenableIndexCounter += 1; 4230 null === thenableState && (thenableState = createThenableState()); 4231 thenable = trackUsedThenable(thenableState, thenable, index); 4232 index = currentlyRenderingFiber; 4233 null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && (index = index.alternate, ReactSharedInternals.H = null !== index && null !== index.memoizedState ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV); 4234 return thenable; 4235 } 4236 function use(usable) { 4237 if (null !== usable && "object" === typeof usable) { 4238 if ("function" === typeof usable.then) return useThenable(usable); 4239 if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable); 4240 } 4241 throw Error("An unsupported type was passed to use(): " + String(usable)); 4242 } 4243 function useMemoCache(size) { 4244 var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue; 4245 null !== updateQueue && (memoCache = updateQueue.memoCache); 4246 if (null == memoCache) { 4247 var current = currentlyRenderingFiber.alternate; 4248 null !== current && (current = current.updateQueue, null !== current && (current = current.memoCache, null != current && (memoCache = { 4249 data: current.data.map(function(array) { 4250 return array.slice(); 4251 }), 4252 index: 0 4253 }))); 4254 } 4255 null == memoCache && (memoCache = { 4256 data: [], 4257 index: 0 4258 }); 4259 null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue); 4260 updateQueue.memoCache = memoCache; 4261 updateQueue = memoCache.data[memoCache.index]; 4262 if (void 0 === updateQueue || ignorePreviousDependencies) for(updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; current < size; current++)updateQueue[current] = REACT_MEMO_CACHE_SENTINEL; 4263 else updateQueue.length !== size && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size); 4264 memoCache.index++; 4265 return updateQueue; 4266 } 4267 function basicStateReducer(state, action) { 4268 return "function" === typeof action ? action(state) : action; 4269 } 4270 function mountReducer(reducer, initialArg, init) { 4271 var hook = mountWorkInProgressHook(); 4272 if (void 0 !== init) { 4273 var initialState = init(initialArg); 4274 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4275 setIsStrictModeForDevtools(!0); 4276 try { 4277 init(initialArg); 4278 } finally{ 4279 setIsStrictModeForDevtools(!1); 4280 } 4281 } 4282 } else initialState = initialArg; 4283 hook.memoizedState = hook.baseState = initialState; 4284 reducer = { 4285 pending: null, 4286 lanes: 0, 4287 dispatch: null, 4288 lastRenderedReducer: reducer, 4289 lastRenderedState: initialState 4290 }; 4291 hook.queue = reducer; 4292 reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber, reducer); 4293 return [ 4294 hook.memoizedState, 4295 reducer 4296 ]; 4297 } 4298 function updateReducer(reducer) { 4299 var hook = updateWorkInProgressHook(); 4300 return updateReducerImpl(hook, currentHook, reducer); 4301 } 4302 function updateReducerImpl(hook, current, reducer) { 4303 var queue = hook.queue; 4304 if (null === queue) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"); 4305 queue.lastRenderedReducer = reducer; 4306 var baseQueue = hook.baseQueue, pendingQueue = queue.pending; 4307 if (null !== pendingQueue) { 4308 if (null !== baseQueue) { 4309 var baseFirst = baseQueue.next; 4310 baseQueue.next = pendingQueue.next; 4311 pendingQueue.next = baseFirst; 4312 } 4313 current.baseQueue !== baseQueue && console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."); 4314 current.baseQueue = baseQueue = pendingQueue; 4315 queue.pending = null; 4316 } 4317 pendingQueue = hook.baseState; 4318 if (null === baseQueue) hook.memoizedState = pendingQueue; 4319 else { 4320 current = baseQueue.next; 4321 var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction = !1; 4322 do { 4323 var updateLane = update.lane & -536870913; 4324 if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 4325 var revertLane = update.revertLane; 4326 if (0 === revertLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { 4327 lane: 0, 4328 revertLane: 0, 4329 gesture: null, 4330 action: update.action, 4331 hasEagerState: update.hasEagerState, 4332 eagerState: update.eagerState, 4333 next: null 4334 }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 4335 else if ((renderLanes & revertLane) === revertLane) { 4336 update = update.next; 4337 revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 4338 continue; 4339 } else updateLane = { 4340 lane: 0, 4341 revertLane: update.revertLane, 4342 gesture: null, 4343 action: update.action, 4344 hasEagerState: update.hasEagerState, 4345 eagerState: update.eagerState, 4346 next: null 4347 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane; 4348 updateLane = update.action; 4349 shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane); 4350 pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane); 4351 } else revertLane = { 4352 lane: updateLane, 4353 revertLane: update.revertLane, 4354 gesture: update.gesture, 4355 action: update.action, 4356 hasEagerState: update.hasEagerState, 4357 eagerState: update.eagerState, 4358 next: null 4359 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane,
4359currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane; 4360 update = update.next; 4361 }while (null !== update && update !== current) 4362 null === newBaseQueueLast ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst; 4363 if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = !0, didReadFromEntangledAsyncAction && (reducer = currentEntangledActionThenable, null !== reducer))) throw reducer; 4364 hook.memoizedState = pendingQueue; 4365 hook.baseState = baseFirst; 4366 hook.baseQueue = newBaseQueueLast; 4367 queue.lastRenderedState = pendingQueue; 4368 } 4369 null === baseQueue && (queue.lanes = 0); 4370 return [ 4371 hook.memoizedState, 4372 queue.dispatch 4373 ]; 4374 } 4375 function rerenderReducer(reducer) { 4376 var hook = updateWorkInProgressHook(), queue = hook.queue; 4377 if (null === queue) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"); 4378 queue.lastRenderedReducer = reducer; 4379 var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; 4380 if (null !== lastRenderPhaseUpdate) { 4381 queue.pending = null; 4382 var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; 4383 do newState = reducer(newState, update.action), update = update.next; 4384 while (update !== lastRenderPhaseUpdate) 4385 objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); 4386 hook.memoizedState = newState; 4387 null === hook.baseQueue && (hook.baseState = newState); 4388 queue.lastRenderedState = newState; 4389 } 4390 return [ 4391 newState, 4392 dispatch 4393 ]; 4394 } 4395 function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 4396 var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook(); 4397 if (isHydrating) { 4398 if (void 0 === getServerSnapshot) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."); 4399 var nextSnapshot = getServerSnapshot(); 4400 didWarnUncachedGetSnapshot || nextSnapshot === getServerSnapshot() || (console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0); 4401 } else { 4402 nextSnapshot = getSnapshot(); 4403 didWarnUncachedGetSnapshot || (getServerSnapshot = getSnapshot(), objectIs(nextSnapshot, getServerSnapshot) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0)); 4404 if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 4405 0 !== (workInProgressRootRenderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); 4406 } 4407 hook.memoizedState = nextSnapshot; 4408 getServerSnapshot = { 4409 value: nextSnapshot, 4410 getSnapshot: getSnapshot 4411 }; 4412 hook.queue = getServerSnapshot; 4413 mountEffect(subscribeToStore.bind(null, fiber, getServerSnapshot, subscribe), [ 4414 subscribe 4415 ]); 4416 fiber.flags |= 2048; 4417 pushSimpleEffect(HasEffect | Passive, { 4418 destroy: void 0 4419 }, updateStoreInstance.bind(null, fiber, getServerSnapshot, nextSnapshot, getSnapshot), null); 4420 return nextSnapshot; 4421 } 4422 function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 4423 var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating; 4424 if (isHydrating$jscomp$0) { 4425 if (void 0 === getServerSnapshot) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."); 4426 getServerSnapshot = getServerSnapshot(); 4427 } else if (getServerSnapshot = getSnapshot(), !didWarnUncachedGetSnapshot) { 4428 var cachedSnapshot = getSnapshot(); 4429 objectIs(getServerSnapshot, cachedSnapshot) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0); 4430 } 4431 if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot)) hook.memoizedState = getServerSnapshot, didReceiveUpdate = !0; 4432 hook = hook.queue; 4433 var create = subscribeToStore.bind(null, fiber, hook, subscribe); 4434 updateEffectImpl(2048, Passive, create, [ 4435 subscribe 4436 ]); 4437 if (hook.getSnapshot !== getSnapshot || cachedSnapshot || null !== workInProgressHook && workInProgressHook.memoizedState.tag & HasEffect) { 4438 fiber.flags |= 2048; 4439 pushSimpleEffect(HasEffect | Passive, { 4440 destroy: void 0 4441 }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null); 4442 if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 4443 isHydrating$jscomp$0 || 0 !== (renderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); 4444 } 4445 return getServerSnapshot; 4446 } 4447 function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { 4448 fiber.flags |= 16384; 4449 fiber = { 4450 getSnapshot: getSnapshot, 4451 value: renderedSnapshot 4452 }; 4453 getSnapshot = currentlyRenderingFiber.updateQueue; 4454 null === getSnapshot ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [ 4455 fiber 4456 ]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [ 4457 fiber 4458 ] : renderedSnapshot.push(fiber)); 4459 } 4460 function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { 4461 inst.value = nextSnapshot; 4462 inst.getSnapshot = getSnapshot; 4463 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 4464 } 4465 function subscribeToStore(fiber, inst, subscribe) { 4466 return subscribe(function() { 4467 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 4468 }); 4469 } 4470 function checkIfSnapshotChanged(inst) { 4471 var latestGetSnapshot = inst.getSnapshot; 4472 inst = inst.value; 4473 try { 4474 var nextValue = latestGetSnapshot(); 4475 return !objectIs(inst, nextValue); 4476 } catch (error) { 4477 return !0; 4478 } 4479 } 4480 function forceStoreRerender(fiber) { 4481 var root = enqueueConcurrentRenderForLane(fiber, 2); 4482 null !== root && scheduleUpdateOnFiber(root, fiber, 2); 4483 } 4484 function mountStateImpl(initialState) { 4485 var hook = mountWorkInProgressHook(); 4486 if ("function" === typeof initialState) { 4487 var initialStateInitializer = initialState; 4488 initialState = initialStateInitializer(); 4489 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4490 setIsStrictModeForDevtools(!0); 4491 try { 4492 initialStateInitializer(); 4493 } finally{ 4494 setIsStrictModeForDevtools(!1); 4495 } 4496 } 4497 } 4498 hook.memoizedState = hook.baseState = initialState; 4499 hook.queue = { 4500 pending: null, 4501 lanes: 0, 4502 dispatch: null, 4503 lastRenderedReducer: basicStateReducer, 4504 lastRenderedState: initialState 4505 }; 4506 return hook; 4507 } 4508 function mountState(initialState) { 4509 initialState = mountStateImpl(initialState); 4510 var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue); 4511 queue.dispatch = dispatch; 4512 return [ 4513 initialState.memoizedState, 4514 dispatch 4515 ]; 4516 } 4517 function mountOptimistic(passthrough) { 4518 var hook = mountWorkInProgressHook(); 4519 hook.memoizedState = hook.baseState = passthrough; 4520 var queue = { 4521 pending: null, 4522 lanes: 0, 4523 dispatch: null, 4524 lastRenderedReducer: null, 4525 lastRenderedState: null 4526 }; 4527 hook.queue = queue; 4528 hook = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !0, queue); 4529 queue.dispatch = hook; 4530 return [ 4531 passthrough, 4532 hook 4533 ]; 4534 } 4535 function updateOptimistic(passthrough, reducer) { 4536 var hook = updateWorkInProgressHook(); 4537 return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 4538 } 4539 function updateOptimisticImpl(hook, current, passthrough, reducer) { 4540 hook.baseState = passthrough; 4541 return updateReducerImpl(hook, currentHook, "function" === typeof reducer ? reducer : basicStateReducer); 4542 } 4543 function rerenderOptimistic(passthrough, reducer) { 4544 var hook = updateWorkInProgressHook(); 4545 if (null !== currentHook) return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 4546 hook.baseState = passthrough; 4547 return [ 4548 passthrough, 4549 hook.queue.dispatch 4550 ]; 4551 } 4552 function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) { 4553 if (isRenderPhaseUpdate(fiber)) throw Error("Cannot update form state while rendering."); 4554 fiber = actionQueue.action; 4555 if (null !== fiber) { 4556 var actionNode = { 4557 payload: payload, 4558 action: fiber, 4559 next: null, 4560 isTransition: !0, 4561 status: "pending", 4562 value: null, 4563 reason: null, 4564 listeners: [], 4565 then: function(listener) { 4566 actionNode.listeners.push(listener); 4567 } 4568 }; 4569 null !== ReactSharedInternals.T ? setPendingState(!0) : actionNode.isTransition = !1; 4570 setState(actionNode); 4571 setPendingState = actionQueue.pending; 4572 null === setPendingState ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(action
4572Queue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode); 4573 } 4574 } 4575 function runActionStateAction(actionQueue, node) { 4576 var action = node.action, payload = node.payload, prevState = actionQueue.state; 4577 if (node.isTransition) { 4578 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 4579 currentTransition._updatedFibers = new Set(); 4580 ReactSharedInternals.T = currentTransition; 4581 try { 4582 var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S; 4583 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 4584 handleActionReturnValue(actionQueue, node, returnValue); 4585 } catch (error) { 4586 onActionError(actionQueue, node, error); 4587 } finally{ 4588 null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (actionQueue = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < actionQueue && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")); 4589 } 4590 } else try { 4591 currentTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, currentTransition); 4592 } catch (error$4) { 4593 onActionError(actionQueue, node, error$4); 4594 } 4595 } 4596 function handleActionReturnValue(actionQueue, node, returnValue) { 4597 null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(function(nextState) {
vendor: 12,950 bytes, lines 4598-4873
4598 onActionSuccess(actionQueue, node, nextState); 4599 }, function(error) { 4600 return onActionError(actionQueue, node, error); 4601 }), node.isTransition || console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")) : onActionSuccess(actionQueue, node, returnValue); 4602 } 4603 function onActionSuccess(actionQueue, actionNode, nextState) { 4604 actionNode.status = "fulfilled"; 4605 actionNode.value = nextState; 4606 notifyActionListeners(actionNode); 4607 actionQueue.state = nextState; 4608 actionNode = actionQueue.pending; 4609 null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState))); 4610 } 4611 function onActionError(actionQueue, actionNode, error) { 4612 var last = actionQueue.pending; 4613 actionQueue.pending = null; 4614 if (null !== last) { 4615 last = last.next; 4616 do actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next; 4617 while (actionNode !== last) 4618 } 4619 actionQueue.action = null; 4620 } 4621 function notifyActionListeners(actionNode) { 4622 actionNode = actionNode.listeners; 4623 for(var i = 0; i < actionNode.length; i++)(0, actionNode[i])(); 4624 } 4625 function actionStateReducer(oldState, newState) { 4626 return newState; 4627 } 4628 function mountActionState(action, initialStateProp) { 4629 if (isHydrating) { 4630 var ssrFormState = workInProgressRoot.formState; 4631 if (null !== ssrFormState) { 4632 a: { 4633 var isMatching = currentlyRenderingFiber; 4634 if (isHydrating) { 4635 if (nextHydratableInstance) { 4636 b: { 4637 var markerInstance = nextHydratableInstance; 4638 for(var inRootOrSingleton = rootOrSingletonContext; 8 !== markerInstance.nodeType;){ 4639 if (!inRootOrSingleton) { 4640 markerInstance = null; 4641 break b; 4642 } 4643 markerInstance = getNextHydratable(markerInstance.nextSibling); 4644 if (null === markerInstance) { 4645 markerInstance = null; 4646 break b; 4647 } 4648 } 4649 inRootOrSingleton = markerInstance.data; 4650 markerInstance = inRootOrSingleton === FORM_STATE_IS_MATCHING || inRootOrSingleton === FORM_STATE_IS_NOT_MATCHING ? markerInstance : null; 4651 } 4652 if (markerInstance) { 4653 nextHydratableInstance = getNextHydratable(markerInstance.nextSibling); 4654 isMatching = markerInstance.data === FORM_STATE_IS_MATCHING; 4655 break a; 4656 } 4657 } 4658 throwOnHydrationMismatch(isMatching); 4659 } 4660 isMatching = !1; 4661 } 4662 isMatching && (initialStateProp = ssrFormState[0]); 4663 } 4664 } 4665 ssrFormState = mountWorkInProgressHook(); 4666 ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp; 4667 isMatching = { 4668 pending: null, 4669 lanes: 0, 4670 dispatch: null, 4671 lastRenderedReducer: actionStateReducer, 4672 lastRenderedState: initialStateProp 4673 }; 4674 ssrFormState.queue = isMatching; 4675 ssrFormState = dispatchSetState.bind(null, currentlyRenderingFiber, isMatching); 4676 isMatching.dispatch = ssrFormState; 4677 isMatching = mountStateImpl(!1); 4678 inRootOrSingleton = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !1, isMatching.queue); 4679 isMatching = mountWorkInProgressHook(); 4680 markerInstance = { 4681 state: initialStateProp, 4682 dispatch: null, 4683 action: action, 4684 pending: null 4685 }; 4686 isMatching.queue = markerInstance; 4687 ssrFormState = dispatchActionState.bind(null, currentlyRenderingFiber, markerInstance, inRootOrSingleton, ssrFormState); 4688 markerInstance.dispatch = ssrFormState; 4689 isMatching.memoizedState = action; 4690 return [ 4691 initialStateProp, 4692 ssrFormState, 4693 !1 4694 ]; 4695 } 4696 function updateActionState(action) { 4697 var stateHook = updateWorkInProgressHook(); 4698 return updateActionStateImpl(stateHook, currentHook, action); 4699 } 4700 function updateActionStateImpl(stateHook, currentStateHook, action) { 4701 currentStateHook = updateReducerImpl(stateHook, currentStateHook, actionStateReducer)[0]; 4702 stateHook = updateReducer(basicStateReducer)[0]; 4703 if ("object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then) try { 4704 var state = useThenable(currentStateHook); 4705 } catch (x) { 4706 if (x === SuspenseException) throw SuspenseActionException; 4707 throw x; 4708 } 4709 else state = currentStateHook; 4710 currentStateHook = updateWorkInProgressHook(); 4711 var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch; 4712 action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(HasEffect | Passive, { 4713 destroy: void 0 4714 }, actionStateActionEffect.bind(null, actionQueue, action), null)); 4715 return [ 4716 state, 4717 dispatch, 4718 stateHook 4719 ]; 4720 } 4721 function actionStateActionEffect(actionQueue, action) { 4722 actionQueue.action = action; 4723 } 4724 function rerenderActionState(action) { 4725 var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook; 4726 if (null !== currentStateHook) return updateActionStateImpl(stateHook, currentStateHook, action); 4727 updateWorkInProgressHook(); 4728 stateHook = stateHook.memoizedState; 4729 currentStateHook = updateWorkInProgressHook(); 4730 var dispatch = currentStateHook.queue.dispatch; 4731 currentStateHook.memoizedState = action; 4732 return [ 4733 stateHook, 4734 dispatch, 4735 !1 4736 ]; 4737 } 4738 function pushSimpleEffect(tag, inst, create, deps) { 4739 tag = { 4740 tag: tag, 4741 create: create, 4742 deps: deps, 4743 inst: inst, 4744 next: null 4745 }; 4746 inst = currentlyRenderingFiber.updateQueue; 4747 null === inst && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst); 4748 create = inst.lastEffect; 4749 null === create ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag); 4750 return tag; 4751 } 4752 function mountRef(initialValue) { 4753 var hook = mountWorkInProgressHook(); 4754 initialValue = { 4755 current: initialValue 4756 }; 4757 return hook.memoizedState = initialValue; 4758 } 4759 function mountEffectImpl(fiberFlags, hookFlags, create, deps) { 4760 var hook = mountWorkInProgressHook(); 4761 currentlyRenderingFiber.flags |= fiberFlags; 4762 hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { 4763 destroy: void 0 4764 }, create, void 0 === deps ? null : deps); 4765 } 4766 function updateEffectImpl(fiberFlags, hookFlags, create, deps) { 4767 var hook = updateWorkInProgressHook(); 4768 deps = void 0 === deps ? null : deps; 4769 var inst = hook.memoizedState.inst; 4770 null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create, deps)); 4771 } 4772 function mountEffect(create, deps) { 4773 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); 4774 } 4775 function mountLayoutEffect(create, deps) { 4776 var fiberFlags = 4194308; 4777 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728); 4778 return mountEffectImpl(fiberFlags, Layout, create, deps); 4779 } 4780 function imperativeHandleEffect(create, ref) { 4781 if ("function" === typeof ref) { 4782 create = create(); 4783 var refCleanup = ref(create); 4784 return function() { 4785 "function" === typeof refCleanup ? refCleanup() : ref(null); 4786 }; 4787 } 4788 if (null !== ref && void 0 !== ref) return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create = create(), ref.current = create, function() { 4789 ref.current = null; 4790 }; 4791 } 4792 function mountImperativeHandle(ref, create, deps) { 4793 "function" !== typeof create && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null"); 4794 deps = null !== deps && void 0 !== deps ? deps.concat([ 4795 ref 4796 ]) : null; 4797 var fiberFlags = 4194308; 4798 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728); 4799 mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), deps); 4800 } 4801 function updateImperativeHandle(ref, create, deps) { 4802 "function" !== typeof create && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null"); 4803 deps = null !== deps && void 0 !== deps ? deps.concat([ 4804 ref 4805 ]) : null; 4806 updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create, ref), deps); 4807 } 4808 function mountCallback(callback, deps) { 4809 mountWorkInProgressHook().memoizedState = [ 4810 callback, 4811 void 0 === deps ? null : deps 4812 ]; 4813 return callback; 4814 } 4815 function updateCallback(callback, deps) { 4816 var hook = updateWorkInProgressHook(); 4817 deps = void 0 === deps ? null : deps; 4818 var prevState = hook.memoizedState; 4819 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 4820 hook.memoizedState = [ 4821 callback, 4822 deps 4823 ]; 4824 return callback; 4825 } 4826 function mountMemo(nextCreate, deps) { 4827 var hook = mountWorkInProgressHook(); 4828 deps = void 0 === deps ? null : deps; 4829 var nextValue = nextCreate(); 4830 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4831 setIsStrictModeForDevtools(!0); 4832 try { 4833 nextCreate(); 4834 } finally{ 4835 setIsStrictModeForDevtools(!1); 4836 } 4837 } 4838 hook.memoizedState = [ 4839 nextValue, 4840 deps 4841 ]; 4842 return nextValue; 4843 } 4844 function updateMemo(nextCreate, deps) { 4845 var hook = updateWorkInProgressHook(); 4846 deps = void 0 === deps ? null : deps; 4847 var prevState = hook.memoizedState; 4848 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 4849 prevState = nextCreate(); 4850 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4851 setIsStrictModeForDevtools(!0); 4852 try { 4853 nextCreate(); 4854 } finally{ 4855 setIsStrictModeForDevtools(!1); 4856 } 4857 } 4858 hook.memoizedState = [ 4859 prevState, 4860 deps 4861 ]; 4862 return prevState; 4863 } 4864 function mountDeferredValue(value, initialValue) { 4865 var hook = mountWorkInProgressHook(); 4866 return mountDeferredValueImpl(hook, value, initialValue); 4867 } 4868 function updateDeferredValue(value, initialValue) { 4869 var hook = updateWorkInProgressHook(); 4870 return updateDeferredValueImpl(hook, currentHook.memoizedState, value, initialValue); 4871 } 4872 function rerenderDeferredValue(value, initialValue) { 4873 var hook = updateWorkInProgressHook();
4874 return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(hook, currentHook.memoizedState, value, initialValue); 4875 } 4876 function mountDeferredValueImpl(hook, value, initialValue) { 4877 if (void 0 === initialValue || 0 !== (renderLanes & 1073741824)) return hook.memoizedState = value; 4878 hook.memoizedState = initialValue; 4879 hook = requestDeferredLane(); 4880 currentlyRenderingFiber.lanes |= hook; 4881 workInProgressRootSkippedLanes |= hook; 4882 return initialValue; 4883 } 4884 function updateDeferredValueImpl(hook, prevValue, value, initialValue) { 4885 if (objectIs(value, prevValue)) return value; 4886 if (null !== currentTreeHiddenStackCursor.current) return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook; 4887 if (0 === (renderLanes & 42) || 0 !== (renderLanes & 1073741824)) return didReceiveUpdate = !0, hook.memoizedState = value; 4888 hook = requestDeferredLane(); 4889 currentlyRenderingFiber.lanes |= hook; 4890 workInProgressRootSkippedLanes |= hook; 4891 return prevValue; 4892 } 4893 function releaseAsyncTransition() { 4894 ReactSharedInternals.asyncTransitions--; 4895 } 4896 function startTransition(fiber, queue, pendingState, finishedState, callback) { 4897 var previousPriority = ReactDOMSharedInternals.p; 4898 ReactDOMSharedInternals.p = 0 !== previousPriority && previousPriority < ContinuousEventPriority ? previousPriority : ContinuousEventPriority; 4899 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 4900 currentTransition._updatedFibers = new Set(); 4901 ReactSharedInternals.T = currentTransition; 4902 dispatchOptimisticSetState(fiber, !1, queue, pendingState); 4903 try { 4904 var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S; 4905 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 4906 if (null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then) { 4907 ReactSharedInternals.asyncTransitions++; 4908 returnValue.then(releaseAsyncTransition, releaseAsyncTransition); 4909 var thenableForFinishedState = chainThenableValue(returnValue, finishedState); 4910 dispatchSetStateInternal(fiber, queue, thenableForFinishedState, requestUpdateLane(fiber)); 4911 } else dispatchSetStateInternal(fiber, queue, finishedState, requestUpdateLane(fiber)); 4912 } catch (error) { 4913 dispatchSetStateInternal(fiber, queue, { 4914 then: function() {}, 4915 status: "rejected", 4916 reason: error 4917 }, requestUpdateLane(fiber)); 4918 } finally{ 4919 ReactDOMSharedInternals.p = previousPriority, null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (fiber = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < fiber && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")); 4920 } 4921 } 4922 function startHostTransition(formFiber, pendingState, action, formData) { 4923 if (5 !== formFiber.tag) throw Error("Expected the form instance to be a HostComponent. This is a bug in React."); 4924 var queue = ensureFormComponentIsStateful(formFiber).queue; 4925 startTransition(formFiber, queue, pendingState, NotPendingTransition, null === action ? noop : function() { 4926 requestFormReset$1(formFiber); 4927 return action(formData); 4928 }); 4929 } 4930 function ensureFormComponentIsStateful(formFiber) { 4931 var existingStateHook = formFiber.memoizedState; 4932 if (null !== existingStateHook) return existingStateHook; 4933 existingStateHook = { 4934 memoizedState: NotPendingTransition, 4935 baseState: NotPendingTransition, 4936 baseQueue: null, 4937 queue: { 4938 pending: null, 4939 lanes: 0, 4940 dispatch: null, 4941 lastRenderedReducer: basicStateReducer, 4942 lastRenderedState: NotPendingTransition 4943 }, 4944 next: null 4945 }; 4946 var initialResetState = {}; 4947 existingStateHook.next = { 4948 memoizedState: initialResetState, 4949 baseState: initialResetState, 4950 baseQueue: null, 4951 queue: { 4952 pending: null, 4953 lanes: 0, 4954 dispatch: null, 4955 lastRenderedReducer: basicStateReducer, 4956 lastRenderedState: initialResetState 4957 }, 4958 next: null 4959 }; 4960 formFiber.memoizedState = existingStateHook; 4961 formFiber = formFiber.alternate; 4962 null !== formFiber && (formFiber.memoizedState = existingStateHook); 4963 return existingStateHook; 4964 } 4965 function requestFormReset$1(formFiber) { 4966 null === ReactSharedInternals.T && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."); 4967 var stateHook = ensureFormComponentIsStateful(formFiber); 4968 null === stateHook.next && (stateHook = formFiber.alternate.memoizedState); 4969 dispatchSetStateInternal(formFiber, stateHook.next.queue, {}, requestUpdateLane(formFiber)); 4970 } 4971 function mountTransition() { 4972 var stateHook = mountStateImpl(!1); 4973 stateHook = startTransition.bind(null, currentlyRenderingFiber, stateHook.queue, !0, !1); 4974 mountWorkInProgressHook().memoizedState = stateHook; 4975 return [ 4976 !1, 4977 stateHook 4978 ]; 4979 } 4980 function updateTransition() { 4981 var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 4982 return [ 4983 "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), 4984 start 4985 ]; 4986 } 4987 function rerenderTransition() { 4988 var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 4989 return [ 4990 "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), 4991 start 4992 ]; 4993 } 4994 function useHostTransitionStatus() { 4995 return readContext(HostTransitionContext); 4996 } 4997 function mountId() { 4998 var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix; 4999 if (isHydrating) { 5000 var treeId = treeContextOverflow; 5001 var idWithLeadingBit = treeContextId; 5002 treeId = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + treeId; 5003 identifierPrefix = "_" + identifierPrefix + "R_" + treeId; 5004 treeId = localIdCounter++; 5005 0 < treeId && (identifierPrefix += "H" + treeId.toString(32)); 5006 identifierPrefix += "_"; 5007 } else treeId = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + treeId.toString(32) + "_"; 5008 return hook.memoizedState = identifierPrefix; 5009 } 5010 function mountRefresh() { 5011 return mountWorkInProgressHook().memoizedState = refreshCache.bind(null, currentlyRenderingFiber); 5012 } 5013 function refreshCache(fiber, seedKey) { 5014 for(var provider = fiber.return; null !== provider;){ 5015 switch(provider.tag){ 5016 case 24: 5017 case 3: 5018 var lane = requestUpdateLane(provider); 5019 fiber = createUpdate(lane); 5020 var root = enqueueUpdate(provider, fiber, lane); 5021 null !== root && (scheduleUpdateOnFiber(root, provider, lane), entangleTransitions(root, provider, lane)); 5022 provider = createCache(); 5023 null !== seedKey && void 0 !== seedKey && null !== root && console.error("The seed argument is not enabled outside experimental channels."); 5024 fiber.payload = { 5025 cache: provider 5026 }; 5027 return; 5028 } 5029 provider = provider.return; 5030 } 5031 } 5032 function dispatchReducerAction(fiber, queue, action) { 5033 var args = arguments; 5034 "function" === typeof args[3] && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); 5035 args = requestUpdateLane(fiber); 5036 var update = { 5037 lane: args, 5038 revertLane: 0, 5039 gesture: null, 5040 action: action, 5041 hasEagerState: !1, 5042 eagerState: null, 5043 next: null 5044 }; 5045 isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUp
5045date(fiber, queue, update, args), null !== update && (scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args))); 5046 markStateUpdateScheduled(fiber, args); 5047 } 5048 function dispatchSetState(fiber, queue, action) { 5049 var args = arguments; 5050 "function" === typeof args[3] && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); 5051 args = requestUpdateLane(fiber); 5052 dispatchSetStateInternal(fiber, queue, action, args); 5053 markStateUpdateScheduled(fiber, args); 5054 } 5055 function dispatchSetStateInternal(fiber, queue, action, lane) { 5056 var update = { 5057 lane: lane, 5058 revertLane: 0, 5059 gesture: null, 5060 action: action, 5061 hasEagerState: !1, 5062 eagerState: null, 5063 next: null 5064 }; 5065 if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); 5066 else { 5067 var alternate = fiber.alternate; 5068 if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) { 5069 var prevDispatcher = ReactSharedInternals.H; 5070 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 5071 try { 5072 var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action); 5073 update.hasEagerState = !0; 5074 update.eagerState = eagerState; 5075 if (objectIs(eagerState, currentState)) return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), !1; 5076 } catch (error) {} finally{ 5077 ReactSharedInternals.H = prevDispatcher; 5078 } 5079 } 5080 action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); 5081 if (null !== action) return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0; 5082 } 5083 return !1; 5084 } 5085 function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) { 5086 null === ReactSharedInternals.T && 0 === currentEntangledLane && console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."); 5087 action = { 5088 lane: 2, 5089 revertLane: requestTransitionLane(), 5090 gesture: null, 5091 action: action, 5092 hasEagerState: !1, 5093 eagerState: null, 5094 next: null 5095 }; 5096 if (isRenderPhaseUpdate(fiber)) { 5097 if (throwIfDuringRender) throw Error("Cannot update optimistic state while rendering."); 5098 console.error("Cannot call startTransition while rendering."); 5099 } else throwIfDuringRender = enqueueConcurrentHookUpdate(fiber, queue, action, 2), null !== throwIfDuringRender && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2); 5100 markStateUpdateScheduled(fiber, 2); 5101 } 5102 function isRenderPhaseUpdate(fiber) { 5103 var alternate = fiber.alternate; 5104 return fiber === currentlyRenderingFiber || null !== alternate && alternate === currentlyRenderingFiber; 5105 } 5106 function enqueueRenderPhaseUpdate(queue, update) { 5107 didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; 5108 var pending = queue.pending; 5109 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 5110 queue.pending = update; 5111 } 5112 function entangleTransitionUpdate(root, queue, lane) { 5113 if (0 !== (lane & 4194048)) { 5114 var queueLanes = queue.lanes; 5115 queueLanes &= root.pendingLanes; 5116 lane |= queueLanes; 5117 queue.lanes = lane; 5118 markRootEntangled(root, lane); 5119 } 5120 }
vendor: 6,798 bytes, lines 5121-5224
5121 function warnOnInvalidCallback(callback) { 5122 if (null !== callback && "function" !== typeof callback) { 5123 var key = String(callback); 5124 didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", callback)); 5125 } 5126 } 5127 function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { 5128 var prevState = workInProgress.memoizedState, partialState = getDerivedStateFromProps(nextProps, prevState); 5129 if (workInProgress.mode & StrictLegacyMode) { 5130 setIsStrictModeForDevtools(!0); 5131 try { 5132 partialState = getDerivedStateFromProps(nextProps, prevState); 5133 } finally{ 5134 setIsStrictModeForDevtools(!1); 5135 } 5136 } 5137 void 0 === partialState && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor))); 5138 prevState = null === partialState || void 0 === partialState ? prevState : assign({}, prevState, partialState); 5139 workInProgress.memoizedState = prevState; 5140 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = prevState); 5141 } 5142 function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { 5143 var instance = workInProgress.stateNode; 5144 if ("function" === typeof instance.shouldComponentUpdate) { 5145 oldProps = instance.shouldComponentUpdate(newProps, newState, nextContext); 5146 if (workInProgress.mode & StrictLegacyMode) { 5147 setIsStrictModeForDevtools(!0); 5148 try { 5149 oldProps = instance.shouldComponentUpdate(newProps, newState, nextContext); 5150 } finally{ 5151 setIsStrictModeForDevtools(!1); 5152 } 5153 } 5154 void 0 === oldProps && console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); 5155 return oldProps; 5156 } 5157 return ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; 5158 } 5159 function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { 5160 var oldState = instance.state; 5161 "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); 5162 "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); 5163 instance.state !== oldState && (workInProgress = getComponentNameFromFiber(workInProgress) || "Component", didWarnAboutStateAssignmentForComponent.has(workInProgress) || (didWarnAboutStateAssignmentForComponent.add(workInProgress), console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", workInProgress)), classComponentUpdater.enqueueReplaceState(instance, instance.state, null)); 5164 } 5165 function resolveClassComponentProps(Component, baseProps) { 5166 var newProps = baseProps; 5167 if ("ref" in baseProps) { 5168 newProps = {}; 5169 for(var propName in baseProps)"ref" !== propName && (newProps[propName] = baseProps[propName]); 5170 } 5171 if (Component = Component.defaultProps) { 5172 newProps === baseProps && (newProps = assign({}, newProps)); 5173 for(var _propName in Component)void 0 === newProps[_propName] && (newProps[_propName] = Component[_propName]); 5174 } 5175 return newProps; 5176 } 5177 function defaultOnUncaughtError(error) { 5178 reportGlobalError(error); 5179 console.warn("%s\n\n%s\n", componentName ? "An error occurred in the <" + componentName + "> component." : "An error occurred in one of your React components.", "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries."); 5180 } 5181 function defaultOnCaughtError(error) { 5182 var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component." : "The above error occurred in one of your React components.", recreateMessage = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((errorBoundaryName || "Anonymous") + "."); 5183 if ("object" === typeof error && null !== error && "string" === typeof error.environmentName) { 5184 var JSCompiler_inline_result = error.environmentName; 5185 error = [ 5186 "%o\n\n%s\n\n%s\n", 5187 error, 5188 componentNameMessage, 5189 recreateMessage 5190 ].slice(0); 5191 "string" === typeof error[0] ? error.splice(0, 1, badgeFormat + " " + error[0], badgeStyle, pad + JSCompiler_inline_result + pad, resetStyle) : error.splice(0, 0, badgeFormat, badgeStyle, pad + JSCompiler_inline_result + pad, resetStyle); 5192 error.unshift(console); 5193 JSCompiler_inline_result = bind.apply(console.error, error); 5194 JSCompiler_inline_result(); 5195 } else console.error("%o\n\n%s\n\n%s\n", error, componentNameMessage, recreateMessage); 5196 } 5197 function defaultOnRecoverableError(error) { 5198 reportGlobalError(error); 5199 } 5200 function logUncaughtError(root, errorInfo) { 5201 try { 5202 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 5203 errorBoundaryName = null; 5204 var error = errorInfo.value; 5205 if (null !== ReactSharedInternals.actQueue) ReactSharedInternals.thrownErrors.push(error); 5206 else { 5207 var onUncaughtError = root.onUncaughtError; 5208 onUncaughtError(error, { 5209 componentStack: errorInfo.stack 5210 }); 5211 } 5212 } catch (e$5) { 5213 setTimeout(function() { 5214 throw e$5; 5215 }); 5216 } 5217 } 5218 function logCaughtError(root, boundary, errorInfo) { 5219 try { 5220 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 5221 errorBoundaryName = getComponentNameFromFiber(boundary); 5222 var onCaughtError = root.onCaughtError; 5223 onCaughtError(errorInfo.value, { 5224 componentStack: errorInfo.stack,
5225 errorBoundary: 1 === boundary.tag ? boundary.stateNode : null 5226 }); 5227 } catch (e$6) { 5228 setTimeout(function() { 5229 throw e$6; 5230 }); 5231 } 5232 } 5233 function createRootErrorUpdate(root, errorInfo, lane) { 5234 lane = createUpdate(lane); 5235 lane.tag = CaptureUpdate; 5236 lane.payload = { 5237 element: null 5238 }; 5239 lane.callback = function() { 5240 runWithFiberInDEV(errorInfo.source, logUncaughtError, root, errorInfo); 5241 }; 5242 return lane; 5243 } 5244 function createClassErrorUpdate(lane) { 5245 lane = createUpdate(lane); 5246 lane.tag = CaptureUpdate; 5247 return lane; 5248 } 5249 function initializeClassErrorUpdate(update, root, fiber, errorInfo) { 5250 var getDerivedStateFromError = fiber.type.getDerivedStateFromError; 5251 if ("function" === typeof getDerivedStateFromError) { 5252 var error = errorInfo.value; 5253 update.payload = function() { 5254 return getDerivedStateFromError(error); 5255 }; 5256 update.callback = function() { 5257 markFailedErrorBoundaryForHotReloading(fiber); 5258 runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo); 5259 }; 5260 } 5261 var inst = fiber.stateNode; 5262 null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() { 5263 markFailedErrorBoundaryForHotReloading(fiber); 5264 runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo); 5265 "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([ 5266 this 5267 ]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); 5268 callComponentDidCatchInDEV(this, errorInfo); 5269 "function" === typeof getDerivedStateFromError || 0 === (fiber.lanes & 2) && console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); 5270 }); 5271 } 5272 function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { 5273 sourceFiber.flags |= 32768; 5274 isDevToolsPresent && restorePendingUpdaters(root, rootRenderLanes); 5275 if (null !== value && "object" === typeof value && "function" === typeof value.then) { 5276 returnFiber = sourceFiber.alternate; 5277 null !== returnFiber && propagateParentContextChanges(returnFiber, sourceFiber, rootRenderLanes, !0); 5278 isHydrating && (didSuspendOrErrorDEV = !0); 5279 sourceFiber = suspenseHandlerStackCursor.current; 5280 if (null !== sourceFiber) { 5281 switch(sourceFiber.tag){ 5282 case 31: 5283 case 13: 5284 return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootSuspended), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = new Set([ 5285 value 5286 ]) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), !1; 5287 case 22: 5288 return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = { 5289 transitions: null, 5290 markerInstances: null, 5291 retryQueue: new Set([ 5292 value 5293 ]) 5294 }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = new Set([ 5295 value 5296 ]) : sourceFiber.add(value)), attachPingListener(root, value, rootRen
5296derLanes)), !1; 5297 } 5298 throw Error("Unexpected Suspense handler tag (" + sourceFiber.tag + "). This is a bug in React."); 5299 } 5300 attachPingListener(root, value, rootRenderLanes); 5301 renderDidSuspendDelayIfPossible(); 5302 return !1; 5303 } 5304 if (isHydrating) return didSuspendOrErrorDEV = !0, returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.", { 5305 cause: value 5306 }), sourceFiber))) : (value !== HydrationMismatchException && queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.", { 5307 cause: value 5308 }), sourceFiber)), root = root.current.alternate, root.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(root.stateNode, value, rootRenderLanes), enqueueCapturedUpdate(root, rootRenderLanes), workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored)), !1; 5309 var error = createCapturedValueAtFiber(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.", { 5310 cause: value 5311 }), sourceFiber); 5312 null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [ 5313 error 5314 ] : workInProgressRootConcurrentErrors.push(error); 5315 workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored); 5316 if (null === returnFiber) return !0; 5317 value = createCapturedValueAtFiber(value, sourceFiber); 5318 sourceFiber = returnFiber; 5319 do { 5320 switch(sourceFiber.tag){ 5321 case 3: 5322 return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(sourceFiber.stateNode, value, root), enqueueCapturedUpdate(sourceFiber, root), !1; 5323 case 1: 5324 if (returnFiber = sourceFiber.type, error = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== error && "function" === typeof error.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(error)))) return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(rootRenderLanes, root, sourceFiber, value), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1; 5325 } 5326 sourceFiber = sourceFiber.return; 5327 }while (null !== sourceFiber) 5328 return !1; 5329 } 5330 function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { 5331 workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); 5332 } 5333 function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { 5334 Component = Component.render; 5335 var ref = workInProgress.ref; 5336 if ("ref" in nextProps) { 5337 var propsWithoutRef = {}; 5338 for(var key in nextProps)"ref" !== key && (propsWithoutRef[key] = nextProps[key]); 5339 } else propsWithoutRef = nextProps; 5340 prepareToReadContext(workInProgress); 5341 markComponentRenderStarted(workInProgress); 5342 nextProps = renderWithHooks(current, workInProgress, Component, propsWithoutRef, ref, renderLanes); 5343 key = checkDidRenderIdHook(); 5344 markComponentRenderStopped(); 5345 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5346 isHydrating && key && pushMaterializedTreeId(workInProgress); 5347 workInProgress.flags |= 1; 5348 reconcileChildren(current, workInProgress, nextProps, renderLanes); 5349 return workInProgress.child; 5350 } 5351 function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 5352 if (null === current) { 5353 var type = Component.type; 5354 if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) return Component = resolveFunctionForHotReloading(type), workInProgress.tag = 15, workInProgress.type = Component, validateFunctionComponentInDev(workInProgress, type), updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes); 5355 current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); 5356 current.ref = workInProgress.ref;
5357 current.return = workInProgress; 5358 return workInProgress.child = current; 5359 } 5360 type = current.child; 5361 if (!checkScheduledUpdateOrContext(current, renderLanes)) { 5362 var prevProps = type.memoizedProps; 5363 Component = Component.compare; 5364 Component = null !== Component ? Component : shallowEqual; 5365 if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5366 } 5367 workInProgress.flags |= 1; 5368 current = createWorkInProgress(type, nextProps); 5369 current.ref = workInProgress.ref; 5370 current.return = workInProgress; 5371 return workInProgress.child = current; 5372 } 5373 function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 5374 if (null !== current) { 5375 var prevProps = current.memoizedProps; 5376 if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && workInProgress.type === current.type) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0); 5377 else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5378 } 5379 return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); 5380 } 5381 function updateOffscreenComponent(current, workInProgress, renderLanes, nextProps) { 5382 var nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null; 5383 null === current && null === workInProgress.stateNode && (workInProgress.stateNode = { 5384 _visibility: OffscreenVisible, 5385 _pendingMarkers: null, 5386 _retryCache: null, 5387 _transitions: null 5388 }); 5389 if ("hidden" === nextProps.mode) { 5390 if (0 !== (workInProgress.flags & 128)) { 5391 nextProps = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes; 5392 if (null !== current) { 5393 nextChildren = workInProgress.child = current.child; 5394 for(prevState = 0; null !== nextChildren;)prevState = prevState | nextChildren.lanes | nextChildren.childLanes, nextChildren = nextChildren.sibling; 5395 workInProgress.childLanes = prevState & ~nextProps; 5396 } else workInProgress.childLanes = 0, workInProgress.child = null; 5397 return deferHiddenOffscreenComponent(current, workInProgress, nextProps, renderLanes); 5398 } 5399 if (0 !== (renderLanes & 536870912)) workInProgress.memoizedState = { 5400 baseLanes: 0, 5401 cachePool: null 5402 }, null !== current && pushTransition(workInProgress, null !== prevState ? prevState.cachePool : null), null !== prevState ? pushHiddenContext(workInProgress, prevState) : reuseHiddenContextOnStack(workInProgress), pushOffscreenSuspenseHandler(workInProgress); 5403 else return workInProgress.lanes = workInProgress.childLanes = 536870912, deferHiddenOffscreenComponent(current, workInProgress, null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, renderLanes); 5404 } else null !== prevState ? (pushTransition(workInProgress, prevState.cachePool), pushHiddenContext(workInProgress, prevState), reuseSuspenseHandlerOnStack(workInProgress), workInProgress.memoizedState = null) : (null !== current && pushTransition(workInProgress, null), reuseHiddenContextOnStack(workInProgress), reuseSuspenseHandlerOnStack(workInProgress)); 5405 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 5406 return workInProgress.child; 5407 } 5408 function bailoutOffscreenComponent(current, workInProgress) { 5409 null !== current && 22 === current.tag || null !== workInProgress.stateNode || (workInProgress.stateNode = { 5410 _visibility: OffscreenVisible, 5411 _pendingMarkers: null, 5412 _retryCache: null, 5413 _transitions: null 5414 }); 5415 return workInProgress.sibling; 5416 } 5417 function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes, renderLanes) { 5418 var JSCompiler_inline_result = peekCacheFromPool(); 5419 JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { 5420 parent: CacheContext._currentValue, 5421 pool: JSCompiler_inline_result 5422 }; 5423 workInProgress.memoizedState = { 5424 baseLanes: nextBaseLanes, 5425 cachePool: JSCompiler_inline_result 5426 }; 5427 null !== current && pushTransition(workInProgress, null); 5428 reuseHiddenContextOnStack(workInProgress); 5429 pushOffscreenSuspenseHandler(workInProgress); 5430 null !== current && propagateParentContextChanges(current, workInProgress, renderLanes, !0); 5431 return null; 5432 } 5433 function mountActivityChildren(workInProgress, nextProps) { 5434 var hiddenProp = nextProps.hidden; 5435 void 0 !== hiddenProp && console.error('<Activity> doesn\'t accept a hidden prop. Use mode="hidden" instead.\n- <Activity %s>\n+ <Activity %s>', !0 === hiddenProp ? "hidden" : !1 === hiddenProp ? "hidden={false}" : "hidden={...}", hiddenProp ? 'mode="hidden"' : 'mode="visible"'); 5436 nextProps = mountWorkInProgressOffscreenFiber({ 5437 mode: nextProps.mode, 5438 children: nextProps.children 5439 }, workInProgress.mode); 5440 nextProps.ref = workInProgress.ref; 5441 workInProgress.child = nextProps;
5442 nextProps.return = workInProgress; 5443 return nextProps; 5444 } 5445 function retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes) { 5446 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 5447 current = mountActivityChildren(workInProgress, workInProgress.pendingProps); 5448 current.flags |= 2; 5449 popSuspenseHandler(workInProgress); 5450 workInProgress.memoizedState = null; 5451 return current; 5452 } 5453 function updateActivityComponent(current, workInProgress, renderLanes) { 5454 var nextProps = workInProgress.pendingProps, didSuspend = 0 !== (workInProgress.flags & 128); 5455 workInProgress.flags &= -129; 5456 if (null === current) { 5457 if (isHydrating) { 5458 if ("hidden" === nextProps.mode) return current = mountActivityChildren(workInProgress, nextProps), workInProgress.lanes = 536870912, bailoutOffscreenComponent(null, current); 5459 pushDehydratedActivitySuspenseHandler(workInProgress); 5460 if (current = nextHydratableInstance) { 5461 if (renderLanes = canHydrateHydrationBoundary(current, rootOrSingletonContext), renderLanes = null !== renderLanes && renderLanes.data === ACTIVITY_START_DATA ? renderLanes : null, null !== renderLanes) { 5462 var activityState = { 5463 dehydrated: renderLanes, 5464 treeContext: getSuspendedTreeContext(), 5465 retryLane: 536870912, 5466 hydrationErrors: null 5467 }; 5468 workInProgress.memoizedState = activityState; 5469 activityState = createFiberFromDehydratedFragment(renderLanes); 5470 activityState.return = workInProgress; 5471 workInProgress.child = activityState; 5472 hydrationParentFiber = workInProgress; 5473 nextHydratableInstance = null; 5474 } 5475 } else renderLanes = null; 5476 if (null === renderLanes) throw warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress); 5477 workInProgress.lanes = 536870912; 5478 return null; 5479 } 5480 return mountActivityChildren(workInProgress, nextProps); 5481 } 5482 activityState = current.memoizedState; 5483 if (null !== activityState) { 5484 var activityInstance = activityState.dehydrated; 5485 pushDehydratedActivitySuspenseHandler(workInProgress); 5486 if (didSuspend) if (workInProgress.flags & 256) workInProgress.flags &= -257, workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 5487 else if (null !== workInProgress.memoizedState) workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null; 5488 else throw Error("Client rendering an Activity suspended it again. This is a bug in React."); 5489 else if (warnIfHydrating(), didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), didSuspend = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || didSuspend) { 5490 nextProps = workInProgressRoot; 5491 if (null !== nextProps && (activityInstance = getBumpedLaneForHydration(nextProps, renderLanes), 0 !== activityInstance && activityInstance !== activityState.retryLane)) throw activityState.retryLane = activityInstance, enqueueConcurrentRenderForLane(current, activityInstance), scheduleUpdateOnFiber(nextProps, current, activityInstance), SelectiveHydrationException; 5492 renderDidSuspendDelayIfPossible(); 5493 workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 5494 } else current = activityState.treeContext, nextHydratableInstance = getNextHydratable(activityInstance.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountActivityChildren(workInProgress, nextProps), workInProgress.flags |= 4096; 5495 return workInProgress; 5496 } 5497 current = createWorkInProgress(current.child, { 5498 mode: nextProps.mode, 5499 children: nextProps.children 5500 }); 5501 current.ref = workInProgress.ref; 5502 workInProgress.child = current;
5503 current.return = workInProgress; 5504 return current; 5505 } 5506 function markRef(current, workInProgress) { 5507 var ref = workInProgress.ref; 5508 if (null === ref) null !== current && null !== current.ref && (workInProgress.flags |= 4194816); 5509 else { 5510 if ("function" !== typeof ref && "object" !== typeof ref) throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null."); 5511 if (null === current || current.ref !== ref) workInProgress.flags |= 4194816; 5512 } 5513 } 5514 function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { 5515 if (Component.prototype && "function" === typeof Component.prototype.render) { 5516 var componentName = getComponentNameFromType(Component) || "Unknown"; 5517 didWarnAboutBadClass[componentName] || (console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName), didWarnAboutBadClass[componentName] = !0); 5518 } 5519 workInProgress.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); 5520 null === current && (validateFunctionComponentInDev(workInProgress, workInProgress.type), Component.contextTypes && (componentName = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypes[componentName] || (didWarnAboutContextTypes[componentName] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", componentName)))); 5521 prepareToReadContext(workInProgress); 5522 markComponentRenderStarted(workInProgress); 5523 Component = renderWithHooks(current, workInProgress, Component, nextProps, void 0, renderLanes); 5524 nextProps = checkDidRenderIdHook(); 5525 markComponentRenderStopped(); 5526 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5527 isHydrating && nextProps && pushMaterializedTreeId(workInProgress); 5528 workInProgress.flags |= 1; 5529 reconcileChildren(current, workInProgress, Component, renderLanes); 5530 return workInProgress.child; 5531 } 5532 function replayFunctionComponent(current, workInProgress, nextProps, Component, secondArg, renderLanes) { 5533 prepareToReadContext(workInProgress); 5534 markComponentRenderStarted(workInProgress); 5535 hookTypesUpdateIndexDev = -1; 5536 ignorePreviousDependencies = null !== current && current.type !== workInProgress.type; 5537 workInProgress.updateQueue = null; 5538 nextProps = renderWithHooksAgain(workInProgress, Component, nextProps, secondArg); 5539 finishRenderingHooks(current, workInProgress); 5540 Component = checkDidRenderIdHook(); 5541 markComponentRenderStopped(); 5542 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5543 isHydrating && Component && pushMaterializedTreeId(workInProgress); 5544 workInProgress.flags |= 1; 5545 reconcileChildren(current, workInProgress, nextProps, renderLanes); 5546 return workInProgress.child; 5547 } 5548 function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { 5549 switch(shouldErrorImpl(workInProgress)){ 5550 case !1: 5551 var _instance = workInProgress.stateNode, state = new workInProgress.type(workInProgress.memoizedProps, _instance.context).state; 5552 _instance.updater.enqueueSetState(_instance, state, null); 5553 break; 5554 case !0: 5555 workInProgress.flags |= 128; 5556 workInProgress.flags |= 65536; 5557 _instance = Error("Simulated error coming from DevTools"); 5558 var lane = renderLanes & -renderLanes; 5559 workInProgress.lanes |= lane; 5560 state = workInProgressRoot; 5561 if (null === state) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 5562 lane = createClassErrorUpdate(lane); 5563 initializeClassErrorUpdate(lane, state, workInProgress, createCapturedValueAtFiber(_instance, workInProgress)); 5564 enqueueCapturedUpdate(workInProgress, lane); 5565 } 5566 prepareToReadContext(workInProgress); 5567 if (null === workInProgress.stateNode) { 5568 state = emptyContextObject; 5569 _instance = Component.contextType; 5570 "contextType" in Component && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component) && (didWarnAboutInvalidateContextType.add(Component), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}
5570.", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(Component) || "Component", lane)); 5571 "object" === typeof _instance && null !== _instance && (state = readContext(_instance)); 5572 _instance = new Component(nextProps, state); 5573 if (workInProgress.mode & StrictLegacyMode) { 5574 setIsStrictModeForDevtools(!0); 5575 try { 5576 _instance = new Component(nextProps, state); 5577 } finally{ 5578 setIsStrictModeForDevtools(!1); 5579 } 5580 } 5581 state = workInProgress.memoizedState = null !== _instance.state && void 0 !== _instance.state ? _instance.state : null; 5582 _instance.updater = classComponentUpdater; 5583 workInProgress.stateNode = _instance; 5584 _instance._reactInternals = workInProgress; 5585 _instance._reactInternalInstance = fakeInternalInstance; 5586 "function" === typeof Component.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", state, null === _instance.state ? "null" : "undefined", state))); 5587 if ("function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) { 5588 var foundWillUpdateName = lane = state = null; 5589 "function" === typeof _instance.componentWillMount && !0 !== _instance.componentWillMount.__suppressDeprecationWarning ? state = "componentWillMount" : "function" === typeof _instance.UNSAFE_componentWillMount && (state = "UNSAFE_componentWillMount"); 5590 "function" === typeof _instance.componentWillReceiveProps && !0 !== _instance.componentWillReceiveProps.__suppressDeprecationWarning ? lane = "componentWillReceiveProps" : "function" === typeof _instance.UNSAFE_componentWillReceiveProps && (lane = "UNSAFE_componentWillReceiveProps"); 5591 "function" === typeof _instance.componentWillUpdate && !0 !== _instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" === typeof _instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"); 5592 if (null !== state || null !== lane || null !== foundWillUpdateName) { 5593 _instance = getComponentNameFromType(Component) || "Component"; 5594 var newApiName = "function" === typeof Component.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; 5595 didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", _instance, newApiName, null !== state ? "\n " + state : "", null !== lane ? "\n " + lane : "", null !== foundWillUpdateName ? "\n " + foundWillUpdateName : "")); 5596 } 5597 } 5598 _instance = workInProgress.stateNode; 5599 state = getComponentNameFromType(Component) || "Component"; 5600 _instance.render || (Component.prototype && "function" === typeof Component.prototype.render ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", state) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", state)); 5601 !_instance.getInitialState || _instance.getInitialState.isReactClassApproved || _instance.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", state); 5602 _instance.getDefaultProps && !_instance.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", state); 5603 _instance.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", state); 5604 Component.childContextTypes && !didWarnAboutChildContextTypes.has(Component) && (didWarnAboutChildContextTypes.add(Component), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", state)); 5605 Component.contextTypes && !didWarnAboutContextTypes$1.has(Component) && (didWarnAboutContextTypes$1.add(Component), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", state)); 5606 "function" === typeof _instance.componentShouldUpdate && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", state); 5607 Component.prototype && Component.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(Component) || "A pure component"); 5608 "function" === typeof _instance.componentDidUnmount && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", state); 5609 "function" === typeof _instance.componentDidReceiveProps && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", state); 5610 "function" === typeof _instance.componentWillRecieveProps && console.error("%s has a method called componentWillRecieveProps(). Did
5610you mean componentWillReceiveProps()?", state); 5611 "function" === typeof _instance.UNSAFE_componentWillRecieveProps && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", state); 5612 lane = _instance.props !== nextProps; 5613 void 0 !== _instance.props && lane && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", state); 5614 _instance.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", state, state); 5615 "function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(Component))); 5616 "function" === typeof _instance.getDerivedStateFromProps && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state); 5617 "function" === typeof _instance.getDerivedStateFromError && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state); 5618 "function" === typeof Component.getSnapshotBeforeUpdate && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", state); 5619 (lane = _instance.state) && ("object" !== typeof lane || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state); 5620 "function" === typeof _instance.getChildContext && "object" !== typeof Component.childContextTypes && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", state); 5621 _instance = workInProgress.stateNode; 5622 _instance.props = nextProps; 5623 _instance.state = workInProgress.memoizedState; 5624 _instance.refs = {}; 5625 initializeUpdateQueue(workInProgress); 5626 state = Component.contextType; 5627 _instance.context = "object" === typeof state && null !== state ? readContext(state) : emptyContextObject; 5628 _instance.state === nextProps && (state = getComponentNameFromType(Component) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", state))); 5629 workInProgress.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, _instance); 5630 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, _instance); 5631 _instance.state = workInProgress.memoizedState; 5632 state = Component.getDerivedStateFromProps; 5633 "function" === typeof state && (applyDerivedStateFromProps(workInProgress, Component, state, nextProps), _instance.state = workInProgress.memoizedState); 5634 "function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"), classComponentUpdater.enqueueReplaceState(_instance, _instance.state, null)), processUpdateQueue(workInProgress, nextProps, _instance, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress.memoizedState); 5635 "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); 5636 (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728); 5637 _instance = !0; 5638 } else if (null === current) { 5639 _instance = workInProgress.stateNode; 5640 var unresolvedOldProps = workInProgress.memoizedProps;
vendor: 7,517 bytes, lines 5641-5703
5641 lane = resolveClassComponentProps(Component, unresolvedOldProps); 5642 _instance.props = lane; 5643 var oldContext = _instance.context; 5644 foundWillUpdateName = Component.contextType; 5645 state = emptyContextObject; 5646 "object" === typeof foundWillUpdateName && null !== foundWillUpdateName && (state = readContext(foundWillUpdateName)); 5647 newApiName = Component.getDerivedStateFromProps; 5648 foundWillUpdateName = "function" === typeof newApiName || "function" === typeof _instance.getSnapshotBeforeUpdate; 5649 unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps; 5650 foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps(workInProgress, _instance, nextProps, state); 5651 hasForceUpdate = !1; 5652 var oldState = workInProgress.memoizedState; 5653 _instance.state = oldState; 5654 processUpdateQueue(workInProgress, nextProps, _instance, renderLanes); 5655 suspendIfUpdateReadFromEntangledAsyncAction(); 5656 oldContext = workInProgress.memoizedState; 5657 unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps(workInProgress, Component, newApiName, nextProps), oldContext = workInProgress.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, lane, nextProps, oldState, oldContext, state)) ? (foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || ("function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount()), "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728), _instance = !1); 5658 } else { 5659 _instance = workInProgress.stateNode; 5660 cloneUpdateQueue(current, workInProgress); 5661 state = workInProgress.memoizedProps; 5662 foundWillUpdateName = resolveClassComponentProps(Component, state); 5663 _instance.props = foundWillUpdateName; 5664 newApiName = workInProgress.pendingProps; 5665 oldState = _instance.context; 5666 oldContext = Component.contextType; 5667 lane = emptyContextObject; 5668 "object" === typeof oldContext && null !== oldContext && (lane = readContext(oldContext)); 5669 unresolvedOldProps = Component.getDerivedStateFromProps; 5670 (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof _instance.getSnapshotBeforeUpdate) || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps(workInProgress, _instance, nextProps, lane); 5671 hasForceUpdate = !1; 5672 oldState = workInProgress.memoizedState; 5673 _instance.state = oldState; 5674 processUpdateQueue(workInProgress, nextProps, _instance, renderLanes); 5675 suspendIfUpdateReadFromEntangledAsyncAction(); 5676 var newState = workInProgress.memoizedState; 5677 state !== newApiName || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress, Component, unresolvedOldProps, nextProps), newState = workInProgress.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, foundWillUpdateName, nextProps, oldState, newState, lane) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof _instance.UNSAFE_componentWillUpdate && "function" !== typeof _instance.componentWillUpdate || ("function" === typeof _instance.componentWillUpdate && _instance.componentWillUpdate(nextProps, newState, lane), "function" === typeof _instance.UNSAFE_componentWillUpdate && _instance.UNSAFE_componentWillUpdate(nextProps, newState, lane)), "function" === typeof _instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof _instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof _instance.componentDidUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : ("function" !== typeof _instance.componentDidUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), _instance = !1); 5678 } 5679 lane = _instance; 5680 markRef(current, workInProgress); 5681 state = 0 !== (workInProgress.flags & 128); 5682 if (lane || state) { 5683 lane = workInProgress.stateNode; 5684 setCurrentFiber(workInProgress); 5685 if (state && "function" !== typeof Component.getDerivedStateFromError) Component = null, profilerStartTime = -1; 5686 else { 5687 markComponentRenderStarted(workInProgress); 5688 Component = callRenderInDEV(lane); 5689 if (workInProgress.mode & StrictLegacyMode) { 5690 setIsStrictModeForDevtools(!0); 5691 try { 5692 callRenderInDEV(lane); 5693 } finally{ 5694 setIsStrictModeForDevtools(!1); 5695 } 5696 } 5697 markComponentRenderStopped(); 5698 } 5699 workInProgress.flags |= 1; 5700 null !== current && state ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes)) : reconcileChildren(current, workInProgress, Component, renderLanes); 5701 workInProgress.memoizedState = lane.state; 5702 current = workInProgress.child; 5703 } else current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
5704 renderLanes = workInProgress.stateNode; 5705 _instance && renderLanes.props !== nextProps && (didWarnAboutReassigningProps || console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"), didWarnAboutReassigningProps = !0); 5706 return current; 5707 } 5708 function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes) { 5709 resetHydrationState(); 5710 workInProgress.flags |= 256; 5711 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 5712 return workInProgress.child; 5713 } 5714 function validateFunctionComponentInDev(workInProgress, Component) { 5715 Component && Component.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", Component.displayName || Component.name || "Component"); 5716 "function" === typeof Component.getDerivedStateFromProps && (workInProgress = getComponentNameFromType(Component) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress] || (console.error("%s: Function components do not support getDerivedStateFromProps.", workInProgress), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress] = !0)); 5717 "object" === typeof Component.contextType && null !== Component.contextType && (Component = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component] || (console.error("%s: Function components do not support contextType.", Component), didWarnAboutContextTypeOnFunctionComponent[Component] = !0)); 5718 } 5719 function mountSuspenseOffscreenState(renderLanes) { 5720 return { 5721 baseLanes: renderLanes, 5722 cachePool: getSuspendedCache() 5723 }; 5724 } 5725 function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes) { 5726 current = null !== current ? current.childLanes & ~renderLanes : 0; 5727 primaryTreeDidDefer && (current |= workInProgressDeferredLane); 5728 return current; 5729 } 5730 function updateSuspenseComponent(current, workInProgress, renderLanes) { 5731 var JSCompiler_object_inline_digest_2532; 5732 var JSCompiler_object_inline_stack_2533 = workInProgress.pendingProps; 5733 shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); 5734 var JSCompiler_object_inline_message_2531 = !1; 5735 var didSuspend = 0 !== (workInProgress.flags & 128); 5736 (JSCompiler_object_inline_digest_2532 = didSuspend) || (JSCompiler_object_inline_digest_2532 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); 5737 JSCompiler_object_inline_digest_2532 && (JSCompiler_object_inline_message_2531 = !0, workInProgress.flags &= -129); 5738 JSCompiler_object_inline_digest_2532 = 0 !== (workInProgress.flags & 32); 5739 workInProgress.flags &= -33; 5740 if (null === current) { 5741 if (isHydrating) { 5742 JSCompiler_object_inline_message_2531 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); 5743 (current = nextHydratableInstance) ? (renderLanes = canHydrateHydrationBoundary(current, rootOrSingletonContext), renderLanes = null !== renderLanes && renderLanes.data !== ACTIVITY_START_DATA ? renderLanes : null, null !== renderLanes && (JSCompiler_object_inline_digest_2532 = { 5744 dehydrated: renderLanes, 5745 treeContext: getSuspendedTreeContext(), 5746 retryLane: 536870912, 5747 hydrationErrors: null 5748 }, workInProgress.memoizedState = JSCompiler_object_inline_digest_2532, JSCompiler_object_inline_digest_2532 = createFiberFromDehydratedFragment(renderLanes), JSCompiler_object_inline_digest_2532.return = workInProgress, workInProgress.child = JSCompiler_object_inline_digest_2532, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : renderLanes = null; 5749 if (null === renderLanes) throw warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress); 5750 isSuspenseInstanceFallback(renderLanes) ? workInProgress.lanes = 32 : workInProgress.lanes = 536870912; 5751 return null; 5752 } 5753 var nextPrimaryChildren = JSCompiler_object_inline_stack_2533.children; 5754 JSCompiler_object_inline_stack_2533 = JSCompiler_object_inline_stack_2533.fallback; 5755 if (JSCompiler_object_inline_message_2531) { 5756 reuseSuspenseHandlerOnStack(workInProgress); 5757 var mode = workInProgress.mode; 5758 nextPrimaryChildren = mountWorkInProgressOffscreenFiber({ 5759 mode: "hidden", 5760 children: nextPrimaryChildren 5761 }, mode); 5762 JSCompiler_object_inline_stack_2533 = createFiberFromFragment(JSCompiler_object_inline_stack_2533, mode, renderLanes, null);
5763 nextPrimaryChildren.return = workInProgress; 5764 JSCompiler_object_inline_stack_2533.return = workInProgress; 5765 nextPrimaryChildren.sibling = JSCompiler_object_inline_stack_2533; 5766 workInProgress.child = nextPrimaryChildren; 5767 JSCompiler_object_inline_stack_2533 = workInProgress.child; 5768 JSCompiler_object_inline_stack_2533.memoizedState = mountSuspenseOffscreenState(renderLanes); 5769 JSCompiler_object_inline_stack_2533.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2532, renderLanes); 5770 workInProgress.memoizedState = SUSPENDED_MARKER; 5771 return bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2533); 5772 } 5773 pushPrimaryTreeSuspenseHandler(workInProgress); 5774 return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); 5775 } 5776 var prevState = current.memoizedState; 5777 if (null !== prevState) { 5778 var JSCompiler_object_inline_componentStack_2534 = prevState.dehydrated; 5779 if (null !== JSCompiler_object_inline_componentStack_2534) { 5780 if (didSuspend) workInProgress.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags &= -257, workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes)) : null !== workInProgress.memoizedState ? (reuseSuspenseHandlerOnStack(workInProgress), workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null) : (reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = JSCompiler_object_inline_stack_2533.fallback, mode = workInProgress.mode, JSCompiler_object_inline_stack_2533 = mountWorkInProgressOffscreenFiber({ 5781 mode: "visible", 5782 children: JSCompiler_object_inline_stack_2533.children 5783 }, mode), nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, mode, renderLanes, null), nextPrimaryChildren.flags |= 2, JSCompiler_object_inline_stack_2533.return = workInProgress, nextPrimaryChildren.return = workInProgress, JSCompiler_object_inline_stack_2533.sibling = nextPrimaryChildren, workInProgress.child = JSCompiler_object_inline_stack_2533, reconcileChildFibers(workInProgress, current.child, null, renderLanes), JSCompiler_object_inline_stack_2533 = workInProgress.child, JSCompiler_object_inline_stack_2533.memoizedState = mountSuspenseOffscreenState(renderLanes), JSCompiler_object_inline_stack_2533.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2532, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, workInProgress = bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2533)); 5784 else if (pushPrimaryTreeSuspenseHandler(workInProgress), warnIfHydrating(), isSuspenseInstanceFallback(JSCompiler_object_inline_componentStack_2534)) { 5785 JSCompiler_object_inline_digest_2532 = JSCompiler_object_inline_componentStack_2534.nextSibling && JSCompiler_object_inline_componentStack_2534.nextSibling.dataset; 5786 if (JSCompiler_object_inline_digest_2532) { 5787 nextPrimaryChildren = JSCompiler_object_inline_digest_2532.dgst; 5788 var message = JSCompiler_object_inline_digest_2532.msg; 5789 mode = JSCompiler_object_inline_digest_2532.stck; 5790 var componentStack = JSCompiler_object_inline_digest_2532.cstck; 5791 } 5792 JSCompiler_object_inline_message_2531 = message; 5793 JSCompiler_object_inline_digest_2532 = nextPrimaryChildren; 5794 JSCompiler_object_inline_stack_2533 = mode; 5795 JSCompiler_object_inline_componentStack_2534 = componentStack; 5796 nextPrimaryChildren = JSCompiler_object_inline_message_2531; 5797 mode = JSCompiler_object_inline_componentStack_2534; 5798 nextPrimaryChildren = nextPrimaryChildren ? Error(nextPrimaryChildren) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."); 5799 nextPrimaryChildren.stack = JSCompiler_object_inline_stack_2533 || ""; 5800 nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2532; 5801 JSCompiler_object_inline_digest_2532 = void 0 === mode ? null : mode; 5802 JSCompiler_object_inline_stack_2533 = { 5803 value: nextPrimaryChildren, 5804 source: null, 5805 stack: JSCompiler_object_inline_digest_2532 5806 }; 5807 "string" === typeof JSCompiler_object_inline_digest_2532 && CapturedStacks.set(nextPrimaryChildren, JSCompiler_object_inline_stack_2533); 5808 queueHydrationError(JSCompiler_object_inline_stack_2533); 5809 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 5810 } else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), JSCompiler_object_inline_digest_2532 = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || JSCompiler_object_inline_digest_2532) { 5811 JSCompiler_object_inline_digest_2532 = workInProgressRoot; 5812 if (null !== JSCompiler_object_inline_digest_2532 && (JSCompiler_object_inline_stack_2533 = getBumpedLaneForHydration(JSCompiler_object_inline_digest_2532, renderLanes), 0 !== JSCompiler_object_inline_stack_2533 && JSCompiler_object_inline_stack_2533 !== prevState.retryLane)) throw prevState.retryLane = JSCompiler_object_inline_stack_2533, enqueueConcurrentRenderForLane(current, JSCompiler_object_inline_stack_2533), scheduleUpdateOnFiber(JSCompiler_object_inline_digest_2532, current, JSCompiler_object_inline_stack_2533), SelectiveHydrationException; 5813 isSuspenseInstancePending(JSCompiler_object_inline_componentStack_2534) || renderDidSuspendDelayIfPossible(); 5814 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 5815 } else isSuspenseInstancePending(JSCompiler_object_inline_componentStack_2534) ? (workInProgress.flags |= 192, workInProgress.child = current.child, workInProgress = null) : (current = prevState.treeContext, nextHydratableInstance = getNextHydratable(JSCompiler_object_inline_componentStack_2534.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountSuspensePrimaryChildren(workInProgress, JSCompiler_object_inline_stack_2533.children), workInProgress.flags |= 4096); 5816 return workInProgress; 5817 } 5818 } 5819 if (JSCompiler_object_inline_message_2531) return reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = JSCompiler_object_inline_stack_2533.fallback, mode = workInProgress.mode, componentStack = current.child, JSCompiler_object_inline_componentStack_2534 = componentStack.sibling, JSCompiler_object_inline_stack_2533 = createWorkInProgress(componentStack, { 5820 mode: "hidden", 5821 children: JSCompiler_object_inline_stack_2533.children 5822 }), JSCompiler_object_inline_stack_2533.subtreeFlags = componentStack.subtreeFlags & 65011712, null !== JSCompiler_object_inline_componentStack_2534 ? nextPrimaryChildren = createWorkInProgress(JSCompiler_object_inline_componentStack_2534, nextPrimaryChildren) : (nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, mode, renderLanes, null), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = w
vendor: 4,945 bytes, lines 5822-5888
5822orkInProgress, JSCompiler_object_inline_stack_2533.return = workInProgress, JSCompiler_object_inline_stack_2533.sibling = nextPrimaryChildren, workInProgress.child = JSCompiler_object_inline_stack_2533, bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2533), JSCompiler_object_inline_stack_2533 = workInProgress.child, nextPrimaryChildren = current.child.memoizedState, null === nextPrimaryChildren ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes) : (mode = nextPrimaryChildren.cachePool, null !== mode ? (componentStack = CacheContext._currentValue, mode = mode.parent !== componentStack ? { 5823 parent: componentStack, 5824 pool: componentStack 5825 } : mode) : mode = getSuspendedCache(), nextPrimaryChildren = { 5826 baseLanes: nextPrimaryChildren.baseLanes | renderLanes, 5827 cachePool: mode 5828 }), JSCompiler_object_inline_stack_2533.memoizedState = nextPrimaryChildren, JSCompiler_object_inline_stack_2533.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2532, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, JSCompiler_object_inline_stack_2533); 5829 pushPrimaryTreeSuspenseHandler(workInProgress); 5830 renderLanes = current.child; 5831 current = renderLanes.sibling; 5832 renderLanes = createWorkInProgress(renderLanes, { 5833 mode: "visible", 5834 children: JSCompiler_object_inline_stack_2533.children 5835 }); 5836 renderLanes.return = workInProgress; 5837 renderLanes.sibling = null; 5838 null !== current && (JSCompiler_object_inline_digest_2532 = workInProgress.deletions, null === JSCompiler_object_inline_digest_2532 ? (workInProgress.deletions = [ 5839 current 5840 ], workInProgress.flags |= 16) : JSCompiler_object_inline_digest_2532.push(current)); 5841 workInProgress.child = renderLanes; 5842 workInProgress.memoizedState = null; 5843 return renderLanes; 5844 } 5845 function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { 5846 primaryChildren = mountWorkInProgressOffscreenFiber({ 5847 mode: "visible", 5848 children: primaryChildren 5849 }, workInProgress.mode); 5850 primaryChildren.return = workInProgress; 5851 return workInProgress.child = primaryChildren; 5852 } 5853 function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { 5854 offscreenProps = createFiber(22, offscreenProps, null, mode); 5855 offscreenProps.lanes = 0; 5856 return offscreenProps; 5857 } 5858 function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes) { 5859 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 5860 current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); 5861 current.flags |= 2; 5862 workInProgress.memoizedState = null; 5863 return current; 5864 } 5865 function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { 5866 fiber.lanes |= renderLanes; 5867 var alternate = fiber.alternate; 5868 null !== alternate && (alternate.lanes |= renderLanes); 5869 scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); 5870 } 5871 function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, treeForkCount) { 5872 var renderState = workInProgress.memoizedState; 5873 null === renderState ? workInProgress.memoizedState = { 5874 isBackwards: isBackwards, 5875 rendering: null, 5876 renderingStartTime: 0, 5877 last: lastContentRow, 5878 tail: tail, 5879 tailMode: tailMode, 5880 treeForkCount: treeForkCount 5881 } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount); 5882 } 5883 function updateSuspenseListComponent(current, workInProgress, renderLanes) { 5884 var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current; 5885 (nextProps = 0 !== (suspenseContext & ForceSuspenseFallback)) ? (suspenseContext = suspenseContext & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress.flags |= 128) : suspenseContext &= SubtreeSuspenseContextMask; 5886 push(suspenseStackCursor, suspenseContext, workInProgress); 5887 suspenseContext = null == revealOrder ? "null" : revealOrder; 5888 if ("forwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder && "together" !== revealOrder && "independent" !== revealOrder && !didWarnAboutRevealOrder[suspenseContext]) if (didWarnAboutRevealOrder[suspenseContext] = !0, null == revealOrder) console.error('The default for the <Su
5888spenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".'); 5889 else if ("backwards" === revealOrder) console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.'); 5890 else if ("string" === typeof revealOrder) switch(revealOrder.toLowerCase()){ 5891 case "together": 5892 case "forwards": 5893 case "backwards": 5894 case "independent": 5895 console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); 5896 break; 5897 case "forward": 5898 case "backward": 5899 console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); 5900 break; 5901 default: 5902 console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?', revealOrder); 5903 } 5904 else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?', revealOrder); 5905 suspenseContext = null == tailMode ? "null" : tailMode; 5906 if (!didWarnAboutTailOptions[suspenseContext]) if (null == tailMode) { 5907 if ("forwards" === revealOrder || "backwards" === revealOrder || "unstable_legacy-backwards" === revealOrder) didWarnAboutTailOptions[suspenseContext] = !0, console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".'); 5908 } else "visible" !== tailMode && "collapsed" !== tailMode && "hidden" !== tailMode ? (didWarnAboutTailOptions[suspenseContext] = !0, console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?', tailMode)) : "forwards" !== revealOrder && "backwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder && (didWarnAboutTailOptions[suspenseContext] = !0, console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', tailMode)); 5909 a: if (("forwards" === revealOrder || "backwards" === revealOrder || "unstable_legacy-backwards" === revealOrder) && void 0 !== newChildren && null !== newChildren && !1 !== newChildren) if (isArrayImpl(newChildren)) for(suspenseContext = 0; suspenseContext < newChildren.length; suspenseContext++){ 5910 if (!validateSuspenseListNestedChild(newChildren[suspenseContext], suspenseContext)) break a; 5911 } 5912 else if (suspenseContext = getIteratorFn(newChildren), "function" === typeof suspenseContext) { 5913 if (suspenseContext = suspenseContext.call(newChildren)) for(var step = suspenseContext.next(), _i = 0; !step.done; step = suspenseContext.next()){ 5914 if (!validateSuspenseListNestedChild(step.value, _i)) break a; 5915 _i++; 5916 } 5917 } else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', revealOrder); 5918 reconcileChildren(current, workInProgress, newChildren, renderLanes); 5919 isHydrating ? (warnIfNotHydrating(), newChildren = treeForkCount) : newChildren = 0; 5920 if (!nextProps && null !== current && 0 !== (current.flags & 128)) a: for(current = workInProgress.child; null !== current;){ 5921 if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 5922 else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 5923 else if (null !== current.child) { 5924 current.child.return = current; 5925 current = current.child; 5926 continue; 5927 } 5928 if (current === workInProgress) break a; 5929 for(; null === current.sibling;){ 5930 if (null === current.return || current.return === workInProgress) break a; 5931 current = current.return; 5932 } 5933 current.sibling.return = current.return; 5934 current = current.sibling; 5935 } 5936 switch(revealOrder){ 5937 case "forwards":
vendor: 7,342 bytes, lines 5938-6059
5938 renderLanes = workInProgress.child; 5939 for(revealOrder = null; null !== renderLanes;)current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; 5940 renderLanes = revealOrder; 5941 null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); 5942 initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode, newChildren); 5943 break; 5944 case "backwards": 5945 case "unstable_legacy-backwards": 5946 renderLanes = null; 5947 revealOrder = workInProgress.child; 5948 for(workInProgress.child = null; null !== revealOrder;){ 5949 current = revealOrder.alternate; 5950 if (null !== current && null === findFirstSuspended(current)) { 5951 workInProgress.child = revealOrder; 5952 break; 5953 } 5954 current = revealOrder.sibling; 5955 revealOrder.sibling = renderLanes; 5956 renderLanes = revealOrder; 5957 revealOrder = current; 5958 } 5959 initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode, newChildren); 5960 break; 5961 case "together": 5962 initSuspenseListRenderState(workInProgress, !1, null, null, void 0, newChildren); 5963 break; 5964 default: 5965 workInProgress.memoizedState = null; 5966 } 5967 return workInProgress.child; 5968 } 5969 function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { 5970 null !== current && (workInProgress.dependencies = current.dependencies); 5971 profilerStartTime = -1; 5972 workInProgressRootSkippedLanes |= workInProgress.lanes; 5973 if (0 === (renderLanes & workInProgress.childLanes)) if (null !== current) { 5974 if (propagateParentContextChanges(current, workInProgress, renderLanes, !1), 0 === (renderLanes & workInProgress.childLanes)) return null; 5975 } else return null; 5976 if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); 5977 if (null !== workInProgress.child) { 5978 current = workInProgress.child; 5979 renderLanes = createWorkInProgress(current, current.pendingProps); 5980 workInProgress.child = renderLanes; 5981 for(renderLanes.return = workInProgress; null !== current.sibling;)current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; 5982 renderLanes.sibling = null; 5983 } 5984 return workInProgress.child; 5985 } 5986 function checkScheduledUpdateOrContext(current, renderLanes) { 5987 if (0 !== (current.lanes & renderLanes)) return !0; 5988 current = current.dependencies; 5989 return null !== current && checkIfContextChanged(current) ? !0 : !1; 5990 } 5991 function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { 5992 switch(workInProgress.tag){ 5993 case 3: 5994 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 5995 pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 5996 resetHydrationState(); 5997 break; 5998 case 27: 5999 case 5: 6000 pushHostContext(workInProgress); 6001 break; 6002 case 4: 6003 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 6004 break; 6005 case 10: 6006 pushProvider(workInProgress, workInProgress.type, workInProgress.memoizedProps.value); 6007 break; 6008 case 12: 6009 0 !== (renderLanes & workInProgress.childLanes) && (workInProgress.flags |= 4); 6010 workInProgress.flags |= 2048; 6011 var stateNode = workInProgress.stateNode; 6012 stateNode.effectDuration = -0; 6013 stateNode.passiveEffectDuration = -0; 6014 break; 6015 case 31: 6016 if (null !== workInProgress.memoizedState) return workInProgress.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress), null; 6017 break; 6018 case 13: 6019 stateNode = workInProgress.memoizedState; 6020 if (null !== stateNode) { 6021 if (null !== stateNode.dehydrated) return pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags |= 128, null; 6022 if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); 6023 pushPrimaryTreeSuspenseHandler(workInProgress); 6024 current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6025 return null !== current ? current.sibling : null; 6026 } 6027 pushPrimaryTreeSuspenseHandler(workInProgress); 6028 break; 6029 case 19: 6030 var didSuspendBefore = 0 !== (current.flags & 128); 6031 stateNode = 0 !== (renderLanes & workInProgress.childLanes); 6032 stateNode || (propagateParentContextChanges(current, workInProgress, renderLanes, !1), stateNode = 0 !== (renderLanes & workInProgress.childLanes)); 6033 if (didSuspendBefore) { 6034 if (stateNode) return updateSuspenseListComponent(current, workInProgress, renderLanes); 6035 workInProgress.flags |= 128; 6036 } 6037 didSuspendBefore = workInProgress.memoizedState; 6038 null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null); 6039 push(suspenseStackCursor, suspenseStackCursor.current, workInProgress); 6040 if (stateNode) break; 6041 else return null; 6042 case 22: 6043 return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps); 6044 case 24: 6045 pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 6046 } 6047 return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6048 } 6049 function beginWork(current, workInProgress, renderLanes) { 6050 if (workInProgress._debugNeedsRemount && null !== current) { 6051 renderLanes = createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes); 6052 renderLanes._debugStack = workInProgress._debugStack; 6053 renderLanes._debugTask = workInProgress._debugTask; 6054 var returnFiber = workInProgress.return; 6055 if (null === returnFiber) throw Error("Cannot swap the root fiber."); 6056 current.alternate = null; 6057 workInProgress.alternate = null; 6058 renderLanes.index = workInProgress.index; 6059 renderLanes.sibling = workInProgress.sibling;
6060 renderLanes.return = workInProgress.return; 6061 renderLanes.ref = workInProgress.ref; 6062 renderLanes._debugInfo = workInProgress._debugInfo; 6063 if (workInProgress === returnFiber.child) returnFiber.child = renderLanes; 6064 else { 6065 var prevSibling = returnFiber.child; 6066 if (null === prevSibling) throw Error("Expected parent to have a child."); 6067 for(; prevSibling.sibling !== workInProgress;)if (prevSibling = prevSibling.sibling, null === prevSibling) throw Error("Expected to find the previous sibling."); 6068 prevSibling.sibling = renderLanes; 6069 } 6070 workInProgress = returnFiber.deletions; 6071 null === workInProgress ? (returnFiber.deletions = [ 6072 current 6073 ], returnFiber.flags |= 16) : workInProgress.push(current); 6074 renderLanes.flags |= 2; 6075 return renderLanes; 6076 } 6077 if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps || workInProgress.type !== current.type) didReceiveUpdate = !0; 6078 else { 6079 if (!checkScheduledUpdateOrContext(current, renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); 6080 didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; 6081 } 6082 else { 6083 didReceiveUpdate = !1; 6084 if (returnFiber = isHydrating) warnIfNotHydrating(), returnFiber = 0 !== (workInProgress.flags & 1048576); 6085 returnFiber && (returnFiber = workInProgress.index, warnIfNotHydrating(), pushTreeId(workInProgress, treeForkCount, returnFiber)); 6086 } 6087 workInProgress.lanes = 0; 6088 switch(workInProgress.tag){ 6089 case 16: 6090 a: if (returnFiber = workInProgress.pendingProps, current = resolveLazy(workInProgress.elementType), workInProgress.type = current, "function" === typeof current) shouldConstruct(current) ? (returnFiber = resolveClassComponentProps(current, returnFiber), workInProgress.tag = 1, workInProgress.type = current = resolveFunctionForHotReloading(current), workInProgress = updateClassComponent(null, workInProgress, current, returnFiber, renderLanes)) : (workInProgress.tag = 0, validateFunctionComponentInDev(workInProgress, current), workInProgress.type = current = resolveFunctionForHotReloading(current), workInProgress = updateFunctionComponent(null, workInProgress, current, returnFiber, renderLanes)); 6091 else { 6092 if (void 0 !== current && null !== current) { 6093 if (prevSibling = current.$$typeof, prevSibling === REACT_FORWARD_REF_TYPE) { 6094 workInProgress.tag = 11; 6095 workInProgress.type = current = resolveForwardRefForHotReloading(current); 6096 workInProgress = updateForwardRef(null, workInProgress, current, returnFiber, renderLanes); 6097 break a; 6098 } else if (prevSibling === REACT_MEMO_TYPE) { 6099 workInProgress.tag = 14; 6100 workInProgress = updateMemoComponent(null, workInProgress, current, returnFiber, renderLanes); 6101 break a; 6102 } 6103 } 6104 workInProgress = ""; 6105 null !== current && "object" === typeof current && current.$$typeof === REACT_LAZY_TYPE && (workInProgress = " Did you wrap a component in React.lazy() more than once?"); 6106 renderLanes = getComponentNameFromType(current) || current; 6107 throw Error("Element type is invalid. Received a promise that resolves to: " + renderLanes + ". Lazy element type must resolve to a class or function." + workInProgress); 6108 } 6109 return workInProgress; 6110 case 0: 6111 return updateFunctionComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6112 case 1: 6113 return returnFiber = workInProgress.type, prevSibling = resolve
vendor: 4,154 bytes, lines 6113-6174
6113ClassComponentProps(returnFiber, workInProgress.pendingProps), updateClassComponent(current, workInProgress, returnFiber, prevSibling, renderLanes); 6114 case 3: 6115 a: { 6116 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 6117 if (null === current) throw Error("Should have a current fiber. This is a bug in React."); 6118 returnFiber = workInProgress.pendingProps; 6119 var prevState = workInProgress.memoizedState; 6120 prevSibling = prevState.element; 6121 cloneUpdateQueue(current, workInProgress); 6122 processUpdateQueue(workInProgress, returnFiber, null, renderLanes); 6123 var nextState = workInProgress.memoizedState; 6124 returnFiber = nextState.cache; 6125 pushProvider(workInProgress, CacheContext, returnFiber); 6126 returnFiber !== prevState.cache && propagateContextChanges(workInProgress, [ 6127 CacheContext 6128 ], renderLanes, !0); 6129 suspendIfUpdateReadFromEntangledAsyncAction(); 6130 returnFiber = nextState.element; 6131 if (prevState.isDehydrated) if (prevState = { 6132 element: returnFiber, 6133 isDehydrated: !1, 6134 cache: nextState.cache 6135 }, workInProgress.updateQueue.baseState = prevState, workInProgress.memoizedState = prevState, workInProgress.flags & 256) { 6136 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, returnFiber, renderLanes); 6137 break a; 6138 } else if (returnFiber !== prevSibling) { 6139 prevSibling = createCapturedValueAtFiber(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), workInProgress); 6140 queueHydrationError(prevSibling); 6141 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, returnFiber, renderLanes); 6142 break a; 6143 } else { 6144 current = workInProgress.stateNode.containerInfo; 6145 switch(current.nodeType){ 6146 case 9: 6147 current = current.body; 6148 break; 6149 default: 6150 current = "HTML" === current.nodeName ? current.ownerDocument.body : current; 6151 } 6152 nextHydratableInstance = getNextHydratable(current.firstChild); 6153 hydrationParentFiber = workInProgress; 6154 isHydrating = !0; 6155 hydrationErrors = null; 6156 didSuspendOrErrorDEV = !1; 6157 hydrationDiffRootDEV = null; 6158 rootOrSingletonContext = !0; 6159 renderLanes = mountChildFibers(workInProgress, null, returnFiber, renderLanes); 6160 for(workInProgress.child = renderLanes; renderLanes;)renderLanes.flags = renderLanes.flags & -3 | 4096, renderLanes = renderLanes.sibling; 6161 } 6162 else { 6163 resetHydrationState(); 6164 if (returnFiber === prevSibling) { 6165 workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6166 break a; 6167 } 6168 reconcileChildren(current, workInProgress, returnFiber, renderLanes); 6169 } 6170 workInProgress = workInProgress.child; 6171 } 6172 return workInProgress; 6173 case 26: 6174 return markRef(current, workInProgress), null === current ? (renderLanes = getResource(workInProgress.type, null, workInProgress.pendingProps, null)) ? workInProgress.memoizedState = renderLanes : isHydrating || (renderLanes = w
6174orkInProgress.type, current = workInProgress.pendingProps, returnFiber = requiredContext(rootInstanceStackCursor.current), returnFiber = getOwnerDocumentFromRootContainer(returnFiber).createElement(renderLanes), returnFiber[internalInstanceKey] = workInProgress, returnFiber[internalPropsKey] = current, setInitialProperties(returnFiber, renderLanes, current), markNodeAsHoistable(returnFiber), workInProgress.stateNode = returnFiber) : workInProgress.memoizedState = getResource(workInProgress.type, current.memoizedProps, workInProgress.pendingProps, current.memoizedState), null; 6175 case 27: 6176 return pushHostContext(workInProgress), null === current && isHydrating && (returnFiber = requiredContext(rootInstanceStackCursor.current), prevSibling = getHostContext(), returnFiber = workInProgress.stateNode = resolveSingletonInstance(workInProgress.type, workInProgress.pendingProps, returnFiber, prevSibling, !1), didSuspendOrErrorDEV || (prevSibling = diffHydratedProperties(returnFiber, workInProgress.type, workInProgress.pendingProps, prevSibling), null !== prevSibling && (buildHydrationDiffNode(workInProgress, 0).serverProps = prevSibling)), hydrationParentFiber = workInProgress, rootOrSingletonContext = !0, prevSibling = nextHydratableInstance, isSingletonScope(workInProgress.type) ? (previousHydratableOnEnteringScopedSingleton = prevSibling, nextHydratableInstance = getNextHydratable(returnFiber.firstChild)) : nextHydratableInstance = prevSibling), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), markRef(current, workInProgress), null === current && (workInProgress.flags |= 4194304), workInProgress.child; 6177 case 5: 6178 return null === current && isHydrating && (prevState = getHostContext(), returnFiber = validateDOMNesting(workInProgress.type, prevState.ancestorInfo), prevSibling = nextHydratableInstance, (nextState = !prevSibling) || (nextState = canHydrateInstance(prevSibling, workInProgress.type, workInProgress.pendingProps, rootOrSingletonContext), null !== nextState ? (workInProgress.stateNode = nextState, didSuspendOrErrorDEV || (prevState = diffHydratedProperties(nextState, workInProgress.type, workInProgress.pendingProps, prevState), null !== prevState && (buildHydrationDiffNode(workInProgress, 0).serverProps = prevState)), hydrationParentFiber = workInProgress, nextHydratableInstance = getNextHydratable(nextState.firstChild), rootOrSingletonContext = !1, prevState = !0) : prevState = !1, nextState = !prevState), nextState && (returnFiber && warnNonHydratedInstance(workInProgress, prevSibling), throwOnHydrationMismatch(workInProgress))), pushHostContext(workInProgress), prevSibling = workInProgress.type, prevState = workInProgress.pendingProps, nextState = null !== current ? current.memoizedProps : null, returnFiber = prevState.children, shouldSetTextContent(prevSibling, prevState) ? returnFiber = null : null !== nextState && shouldSetTextContent(prevSibling, nextState) && (workInProgress.flags |= 32), null !== workInProgress.memoizedState && (prevSibling = renderWithHooks(current, workInProgress, TransitionAwareHostComponent, null, null, renderLanes), HostTransitionContext._currentValue = prevSibling), markRef(current, workInProgress), reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6179 case 6: 6180 return null === current && isHydrating && (renderLanes = workInProgress.pendingProps, current = getHostContext(), returnFiber = current.ancestorInfo.current, renderLanes = null != returnFiber ? validateTextNesting(renderLanes, returnFiber.tag, current.ancestorInfo.implicitRootScope) : !0, current = nextHydratableInstance, (returnFiber = !current) || (returnFiber = canHydrateTextInstance(current, workInProgress.pendingProps, rootOrSingletonContext), null !== returnFiber ? (workInProgress.stateNode = returnFiber, hydrationParentFiber = workInProgress, nextHydratableInstance = null, returnFiber = !0) : returnFiber = !1, returnFiber = !returnFiber), returnFiber && (renderLanes && warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress))), null; 6181 case 13: 6182 return updateSuspenseComponent(current, workInProgress, renderLanes); 6183 case 4: 6184 return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), returnFiber = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, returnFiber, renderLanes) : reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6185 case 11: 6186 return updateForwardRef(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6187 case 7: 6188 return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; 6189 case 8: 6190 return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6191 case 12: 6192 return workInProgress.flags |= 4, workInProgress.flags |= 2048, returnFiber = workInProgress.stateNode, returnFiber.effectDuration = -0, returnFiber.passiveEffectDuration = -0, reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6193 case 10: 6194 return returnFiber = workInProgress.type, prevSibling = workInProgress.pendingProps, prevState = prevSibling.value, "value" in prevSibling || hasWarnedAboutUsingNoValuePropOnContextProvider || (hasWarnedAboutUsingNoValuePropOnContextProvider = !0, console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")), pushProvider(workInProgress, returnFiber, prevState), reconcileChildren(current, workInProgress, prevSibling.children, renderLanes), workInProgress.child; 6195 case 9: 6196 return prevSibling = workInProgress.type._context, returnFiber = workInProgress.pendingProps.children, "function" !== typeof returnFiber && console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), prepareToReadContext(workInProgress), prevSibling = readContext(prevSibling), markComponentRenderStarted(workInProgress), returnFiber = callComponentInDEV(returnFiber, prevSibling, void 0), markComponentRenderStopped(), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6197 case 14: 6198 return updateMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6199 case 15: 6200 return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6201 case 19: 6202 return updateSuspenseListComponent(current, workInProgress, renderLanes); 6203 case 31: 6204 return updateActivityComponent(current, workInProgress, renderLanes); 6205 case 22: 6206 return updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps); 6207 case 24: 6208 return prepareToReadContext(workInProgress), returnFiber = readContext(CacheContext), null === current ? (prevSibling = peekCacheFromPool(), null === prevSibling && (prevSibling = workInProgressRoot, prevState = createCache(), prevSibling.pooledCache = prevState, retainCache(prevState), null !== prevState && (prevSibling.pooledCacheLanes |= renderLanes), prevSibling = prevState), workInProgress.memoizedState = { 6209 parent: returnFiber, 6210 cache: prevSibling 6211 }, initializeUpdateQueue(workInProgress), pushProvider(workInProgress, CacheContext, prevSibling)) : (0 !== (current.lanes & renderLanes) && (cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, null, null, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction()), prevSibling = current.memoizedState, prevState = workInProgress.memoizedState, prevSibling.parent !== returnFiber ? (prevSibling = { 6212 parent: returnFiber, 6213 cache: returnFiber 6214 }, workInProgress.memoizedState = prevSibling, 0 === workInProgress.lanes && (workInProgress.memoizedState = workInProgress.updateQueue.baseState = prevSibling), pushProvider(workInProgress, CacheContext, returnFiber)) : (returnFiber = prevState.cache, pushProvider(workInProgress, CacheContext, returnFiber), returnFiber !== prevSibling.cache && propagateContextChanges(wor
6214kInProgress, [ 6215 CacheContext 6216 ], renderLanes, !0))), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6217 case 29: 6218 throw workInProgress.pendingProps; 6219 } 6220 throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); 6221 } 6222 function markUpdate(workInProgress) { 6223 workInProgress.flags |= 4; 6224 } 6225 function preloadInstanceAndSuspendIfNeeded(workInProgress, type, oldProps, newProps, renderLanes) { 6226 if (type = (workInProgress.mode & SuspenseyImagesMode) !== NoMode) type = !1; 6227 if (type) { 6228 if (workInProgress.flags |= 16777216, (renderLanes & 335544128) === renderLanes) if (workInProgress.stateNode.complete) workInProgress.flags |= 8192; 6229 else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 6230 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 6231 } else workInProgress.flags &= -16777217; 6232 } 6233 function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { 6234 if ("stylesheet" !== resource.type || (resource.state.loading & Inserted) !== NotLoaded) workInProgress.flags &= -16777217; 6235 else if (workInProgress.flags |= 16777216, !preloadResource(resource)) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 6236 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 6237 } 6238 function scheduleRetryEffect(workInProgress, retryQueue) { 6239 null !== retryQueue && (workInProgress.flags |= 4); 6240 workInProgress.flags & 16384 && (retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912, workInProgress.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue); 6241 } 6242 function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { 6243 if (!isHydrating) switch(renderState.tailMode){ 6244 case "hidden": 6245 hasRenderedATailFallback = renderState.tail; 6246 for(var lastTailNode = null; null !== hasRenderedATailFallback;)null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; 6247 null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; 6248 break; 6249 case "collapsed": 6250 lastTailNode = renderState.tail; 6251 for(var _lastTailNode = null; null !== lastTailNode;)null !== lastTailNode.alternate && (_lastTailNode = lastTailNode), lastTailNode = lastTailNode.sibling;
6252 null === _lastTailNode ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : _lastTailNode.sibling = null; 6253 } 6254 } 6255 function bubbleProperties(completedWork) { 6256 var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0; 6257 if (didBailout) if ((completedWork.mode & ProfileMode) !== NoMode) { 6258 for(var _treeBaseDuration = completedWork.selfBaseDuration, _child2 = completedWork.child; null !== _child2;)newChildLanes |= _child2.lanes | _child2.childLanes, subtreeFlags |= _child2.subtreeFlags & 65011712, subtreeFlags |= _child2.flags & 65011712, _treeBaseDuration += _child2.treeBaseDuration, _child2 = _child2.sibling; 6259 completedWork.treeBaseDuration = _treeBaseDuration; 6260 } else for(_treeBaseDuration = completedWork.child; null !== _treeBaseDuration;)newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712, subtreeFlags |= _treeBaseDuration.flags & 65011712, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 6261 else if ((completedWork.mode & ProfileMode) !== NoMode) { 6262 _treeBaseDuration = completedWork.actualDuration; 6263 _child2 = completedWork.selfBaseDuration; 6264 for(var child = completedWork.child; null !== child;)newChildLanes |= child.lanes | child.childLanes, subtreeFlags |= child.subtreeFlags, subtreeFlags |= child.flags, _treeBaseDuration += child.actualDuration, _child2 += child.treeBaseDuration, child = child.sibling; 6265 completedWork.actualDuration = _treeBaseDuration; 6266 completedWork.treeBaseDuration = _child2; 6267 } else for(_treeBaseDuration = completedWork.child; null !== _treeBaseDuration;)newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags, subtreeFlags |= _treeBaseDuration.flags, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 6268 completedWork.subtreeFlags |= subtreeFlags; 6269 completedWork.childLanes = newChildLanes; 6270 return didBailout; 6271 } 6272 function completeWork(current, workInProgress, renderLanes) { 6273 var newProps = workInProgress.pendingProps; 6274 popTreeContext(workInProgress); 6275 switch(workInProgress.tag){ 6276 case 16: 6277 case 15: 6278 case 0: 6279 case 11: 6280 case 7: 6281 case 8: 6282 case 12: 6283 case 9: 6284 case 14: 6285 return bubbleProperties(workInProgress), null; 6286 case 1: 6287 return bubbleProperties(workInProgress), null; 6288 case 3: 6289 renderLanes = workInProgress.stateNode; 6290 newProps = null; 6291 null !== current && (newProps = current.memoizedState.cache); 6292 workInProgress.memoizedState.cache !== newProps && (workInProgress.flags |= 2048); 6293 popProvider(CacheContext, workInProgress); 6294 popHostContainer(workInProgress); 6295 renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null); 6296 if (null === current || null === current.child) popHydrationState(workInProgress) ? (emitPendingHydrationWarnings(), markUpdate(workInProgress)) : null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, upgradeHydrationErrorsToRecoverable()); 6297 bubbleProperties(workInProgress); 6298 return null; 6299 case 26: 6300 var type = workInProgress.type, nextResource = workInProgress.memoizedState; 6301 null === current ? (markUpdate(workInProgress), null !== nextResource ? (bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, null, newProps, renderLanes))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress), bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), workInProgress.flags &= -16777217) : (current = current.memoizedProps, current !== newProps && markUpdate(workInProgress), bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, current, newProps, renderLanes)); 6302 return null; 6303 case 27: 6304 popHostContext(workInProgress); 6305 renderLanes = requiredContext(rootInstanceStackCursor.current); 6306 type = workInProgress.type; 6307 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6308 else { 6309 if (!newProps) { 6310 if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6311 bubbleProperties(workInProgress); 6312 return null; 6313 } 6314 current = getHostContext(); 6315 popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : (current = resolveSingletonInstance(type, newProps, renderLanes, current, !0), workInProgress.stateNode = current, markUpdate(workInProgress)); 6316 } 6317 bubbleProperties(workInProgress); 6318 return null; 6319 case 5: 6320 popHostContext(workInProgress); 6321 type = workInProgress.type; 6322 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6323 else { 6324 if (!newProps) { 6325 if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6326 bubbleProperties(workInProgress); 6327 return null; 6328 } 6329 var _currentHostContext = getHostContext(); 6330 if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, _currentHostContext); 6331 else { 6332 nextResource = requiredContext(rootInstanceStackCursor.current); 6333 validateDOMNesting(type, _currentHostContext.ancestorInfo); 6334 _currentHostContext = _currentHostContext.context; 6335 nextResource = getOwnerDocumentFromRootContainer(nextResource); 6336 switch(_currentHostContext){ 6337 case HostContextNamespaceSvg: 6338 nextResource = nextResource.createElementNS(SVG_NAMESPACE, type); 6339 break; 6340 case HostContextNamespaceMath: 6341 nextResource = nextResource.createElementNS(MATH_NAMESPACE, type); 6342 break; 6343 default: 6344 switch(type){ 6345 case "svg": 6346 nextResource = nextResource.createElementNS(SVG_NAMESPACE, type); 6347 break; 6348 case "math": 6349 nextResource = nextResource.createElementNS(MATH_NAMESPACE, type); 6350 break; 6351 case "script": 6352 nextResource = nextResource.createElement("div"); 6353 nextResource.innerHTML = "<script>\x3c/script>"; 6354 nextResource = nextResource.removeChild(nextResource.firstChild); 6355 break; 6356 case "select": 6357 nextResource = "string" === typeof newProps.is ? nextResource.createElement("select", { 6358 is: newProps.is 6359 }) : nextResource.createElement("select"); 6360 newProps.multiple ? nextResource.multiple = !0 : newProps.size && (nextResource.size = newProps.size); 6361 break; 6362 default: 6363 nextResource = "string" === typeof newProps.is ? nextResource.createElement(type, { 6364 is: newProps.is 6365 }) : nextResource.createElement(type), -1 === type.indexOf("-") && (type !== type.toLowerCase() && console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", type), "[object HTMLUnknownElement]" !== Object.prototype.toString.call(nextResource) || hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", type))); 6366 } 6367 } 6368 nextResource[internalInstanceKey] = workInProgress; 6369 nextResource[internalPropsKey] = newProps; 6370 a: for(_currentHostContext = workInProgress.child; null !== _currentHostContext;){ 6371 if (5 === _currentHostContext.tag || 6 === _currentHostContext.tag) nextResource.appendChild(_currentHostContext.stateNode); 6372 else if (4 !== _currentHostContext.tag && 27 !== _currentHostContext.tag && null !== _currentHostContext.child) { 6373 _currentHostContext.child.return = _currentHostContext; 6374 _currentHostContext = _currentHostContext.child; 6375 continue; 6376 } 6377 if (_currentHostContext === workInProgress) break a; 6378 for(; null === _currentHostContext.sibling;){ 6379 if (null === _currentHostContext.return || _currentHostContext.return === workInProgress) break a; 6380 _currentHostContext = _currentHostContext.return; 6381 } 6382 _currentHostContext.sibling.return = _currentHostContext.return; 6383 _currentHostContext = _currentHostContext.sibling; 6384 } 6385 workInProgress.stateNode = nextResource; 6386 a: switch(setInitialProperties(nextResource, type, newProps), type){ 6387 case "button": 6388 case "input": 6389 case "select": 6390 case "textarea": 6391 newProps = !!newProps.autoFocus; 6392 break a; 6393 case "img": 6394 newProps = !0; 6395 break a; 6396 default: 6397 newProps = !1; 6398 } 6399 newProps && markUpdate(workInProgress); 6400 } 6401 } 6402 bubbleProperties(workInProgress); 6403 preloadInstanceAndSuspendIfNeeded(workInProgress, workInProgress.type, null === current ? null : current.memoizedProps, workInProgress.pendingProps, renderLanes); 6404 return null; 6405 case 6: 6406 if (current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6407 else { 6408 if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6409 current = requiredContext(rootInstanceStackCursor.current); 6410 renderLanes = getHostContext(); 6411 if (popHydrationState(workInProgress)) { 6412 current = workInProgress.stateNode;
6413 renderLanes = workInProgress.memoizedProps; 6414 type = !didSuspendOrErrorDEV; 6415 newProps = null; 6416 nextResource = hydrationParentFiber; 6417 if (null !== nextResource) switch(nextResource.tag){ 6418 case 3: 6419 type && (type = diffHydratedTextForDevWarnings(current, renderLanes, newProps), null !== type && (buildHydrationDiffNode(workInProgress, 0).serverProps = type)); 6420 break; 6421 case 27: 6422 case 5: 6423 newProps = nextResource.memoizedProps, type && (type = diffHydratedTextForDevWarnings(current, renderLanes, newProps), null !== type && (buildHydrationDiffNode(workInProgress, 0).serverProps = type)); 6424 } 6425 current[internalInstanceKey] = workInProgress; 6426 current = current.nodeValue === renderLanes || null !== newProps && !0 === newProps.suppressHydrationWarning || checkForUnmatchedText(current.nodeValue, renderLanes) ? !0 : !1; 6427 current || throwOnHydrationMismatch(workInProgress, !0); 6428 } else type = renderLanes.ancestorInfo.current, null != type && validateTextNesting(newProps, type.tag, renderLanes.ancestorInfo.implicitRootScope), current = getOwnerDocumentFromRootContainer(current).createTextNode(newProps), current[internalInstanceKey] = workInProgress, workInProgress.stateNode = current; 6429 } 6430 bubbleProperties(workInProgress); 6431 return null; 6432 case 31: 6433 renderLanes = workInProgress.memoizedState; 6434 if (null === current || null !== current.memoizedState) { 6435 newProps = popHydrationState(workInProgress); 6436 if (null !== renderLanes) { 6437 if (null === current) { 6438 if (!newProps) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); 6439 current = workInProgress.memoizedState; 6440 current = null !== current ? current.dehydrated : null; 6441 if (!current) throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue."); 6442 current[internalInstanceKey] = workInProgress; 6443 bubbleProperties(workInProgress); 6444 (workInProgress.mode & ProfileMode) !== NoMode && null !== renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6445 } else emitPendingHydrationWarnings(), resetHydrationState(), 0 === (workInProgress.flags & 128) && (renderLanes = workInProgress.memoizedState = null), workInProgress.flags |= 4, bubbleProperties(workInProgress), (workInProgress.mode & ProfileMode) !== NoMode && null !== renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6446 current = !1; 6447 } else renderLanes = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = renderLanes), current = !0; 6448 if (!current) { 6449 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 6450 popSuspenseHandler(workInProgress); 6451 return null; 6452 } 6453 if (0 !== (workInProgress.flags & 128)) throw Error("Client rendering an Activity suspended it again. This is a bug in React."); 6454 } 6455 bubbleProperties(workInProgress); 6456 return null; 6457 case 13: 6458 newProps = workInProgress.memoizedState; 6459 if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { 6460 type = newProps; 6461 nextResource = popHydrationState(workInProgress); 6462 if (null !== type && null !== type.dehydrated) { 6463 if (null === current) { 6464 if (!nextResource) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); 6465 nextResource = workInProgress.memoizedState; 6466 nextResource = null !== nextResource ? nextResource.dehydrated : null; 6467 if (!nextResource) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 6468 nextResource[internalInstanceKey] = workInProgress; 6469 bubbleProperties(workInProgress); 6470 (workInProgress.mode & ProfileMode) !== NoMode && null !== type && (type = workInProgress.child, null !== type && (workInProgress.treeBaseDuration -= type.treeBaseDuration)); 6471 } else emitPendingHydrationWarnings(), resetHydrationState(), 0 === (workInProgress.flags & 128) && (type = workInProgress.memoizedState = null), workInProgress.flags |= 4, bubbleProperties(workInProgress), (workInProgress.mode & ProfileMode) !== NoMode && null !== type && (type = workInProgress.child, null !== type && (workInProgress.treeBaseDuration -= type.treeBaseDuration)); 6472 type = !1; 6473 } else type = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = type), type = !0; 6474 if (!type) { 6475 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 6476 popSuspenseHandler(workInProgress); 6477 return null; 6478 } 6479 } 6480 popSuspenseHandler(workInProgress); 6481 if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress; 6482 renderLanes = null !== newProps; 6483 current = null !== current && null !== current.memoizedState; 6484 renderLanes && (newProps = workInProgress.child, type = null, null !== newProps.alternate && null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)); 6485 renderLanes !== current && renderLanes && (workInProgress.child.flags |= 8192); 6486 scheduleRetryEffect(workInProgress, workInProgress.updateQueue); 6487 bubbleProperties(workInProgress); 6488 (workInProgress.mode & ProfileMode) !== NoMode && renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6489 return null; 6490 case 4: 6491 return popHostContainer(workInProgress), null === current && listenToAllSupportedEvents(workInProgress.stateNode.containerInfo), bubbleProperties(workInProgress), null; 6492 case 10:
6493 return popProvider(workInProgress.type, workInProgress), bubbleProperties(workInProgress), null; 6494 case 19: 6495 pop(suspenseStackCursor, workInProgress); 6496 newProps = workInProgress.memoizedState; 6497 if (null === newProps) return bubbleProperties(workInProgress), null; 6498 type = 0 !== (workInProgress.flags & 128); 6499 nextResource = newProps.rendering; 6500 if (null === nextResource) if (type) cutOffTailIfNeeded(newProps, !1); 6501 else { 6502 if (workInProgressRootExitStatus !== RootInProgress || null !== current && 0 !== (current.flags & 128)) for(current = workInProgress.child; null !== current;){ 6503 nextResource = findFirstSuspended(current); 6504 if (null !== nextResource) { 6505 workInProgress.flags |= 128; 6506 cutOffTailIfNeeded(newProps, !1); 6507 current = nextResource.updateQueue; 6508 workInProgress.updateQueue = current; 6509 scheduleRetryEffect(workInProgress, current); 6510 workInProgress.subtreeFlags = 0; 6511 current = renderLanes; 6512 for(renderLanes = workInProgress.child; null !== renderLanes;)resetWorkInProgress(renderLanes, current), renderLanes = renderLanes.sibling; 6513 push(suspenseStackCursor, suspenseStackCursor.current & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress); 6514 isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount); 6515 return workInProgress.child; 6516 } 6517 current = current.sibling; 6518 } 6519 null !== newProps.tail && now$1() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 6520 } 6521 else { 6522 if (!type) if (current = findFirstSuspended(nextResource), null !== current) { 6523 if (workInProgress.flags |= 128, type = !0, current = current.updateQueue, workInProgress.updateQueue = current, scheduleRetryEffect(workInProgress, current), cutOffTailIfNeeded(newProps, !0), null === newProps.tail && "hidden" === newProps.tailMode && !nextResource.alternate && !isHydrating) return bubbleProperties(workInProgress), null; 6524 } else 2 * now$1() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 6525 newProps.isBackwards ? (nextResource.sibling = workInProgress.child, workInProgress.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress.child = nextResource, newProps.last = nextResource); 6526 } 6527 if (null !== newProps.tail) return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now$1(), current.sibling = null, renderLanes = suspenseStackCursor.current, renderLanes = type ? renderLanes & SubtreeSuspenseContextMask | ForceSuspenseFallback : renderLanes & SubtreeSuspenseContextMask, push(suspenseStackCursor, renderLanes, workInProgress), isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount), current; 6528 bubbleProperties(workInProgress); 6529 return null; 6530 case 22: 6531 case 23: 6532 return popSuspenseHandler(workInProgress), popHiddenContext(workInProgress), newProps = null !== workInProgress.memoizedState, null !== current ? null !== current.memoizedState !== newProps && (workInProgress.flags |= 8192) : newProps && (workInProgress.flags |= 8192), newProps ? 0 !== (renderLanes & 536870912) && 0 === (workInProgress.flags & 128) && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), renderLanes = w
6532orkInProgress.updateQueue, null !== renderLanes && scheduleRetryEffect(workInProgress, renderLanes.retryQueue), renderLanes = null, null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (renderLanes = current.memoizedState.cachePool.pool), newProps = null, null !== workInProgress.memoizedState && null !== workInProgress.memoizedState.cachePool && (newProps = workInProgress.memoizedState.cachePool.pool), newProps !== renderLanes && (workInProgress.flags |= 2048), null !== current && pop(resumedCache, workInProgress), null; 6533 case 24: 6534 return renderLanes = null, null !== current && (renderLanes = current.memoizedState.cache), workInProgress.memoizedState.cache !== renderLanes && (workInProgress.flags |= 2048), popProvider(CacheContext, workInProgress), bubbleProperties(workInProgress), null; 6535 case 25: 6536 return null; 6537 case 30: 6538 return null; 6539 } 6540 throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); 6541 } 6542 function unwindWork(current, workInProgress) { 6543 popTreeContext(workInProgress); 6544 switch(workInProgress.tag){ 6545 case 1: 6546 return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6547 case 3: 6548 return popProvider(CacheContext, workInProgress), popHostContainer(workInProgress), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 6549 case 26: 6550 case 27: 6551 case 5: 6552 return popHostContext(workInProgress), null; 6553 case 31: 6554 if (null !== workInProgress.memoizedState) { 6555 popSuspenseHandler(workInProgress); 6556 if (null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); 6557 resetHydrationState(); 6558 } 6559 current = workInProgress.flags; 6560 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6561 case 13: 6562 popSuspenseHandler(workInProgress); 6563 current = workInProgress.memoizedState; 6564 if (null !== current && null !== current.dehydrated) { 6565 if (null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); 6566 resetHydrationState(); 6567 } 6568 current = workInProgress.flags; 6569 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6570 case 19: 6571 return pop(suspenseStackCursor, workInProgress), null; 6572 case 4: 6573 return popHostContainer(workInProgress), null; 6574 case 10: 6575 return popProvider(workInProgress.type, workInProgress), null; 6576 case 22: 6577 case 23: 6578 return popSuspenseHandler(workInProgress), popHiddenContext(workInProgress), null !== current && pop(resumedCache, workInProgress), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6579 case 24: 6580 return popProvider(CacheContext, workInProgress), null; 6581 case 25: 6582 return null; 6583 default: 6584 return null; 6585 } 6586 } 6587 function unwindInterruptedWork(current, interruptedWork) { 6588 popTreeContext(interruptedWork); 6589 switch(interruptedWork.tag){ 6590 case 3:
6591 popProvider(CacheContext, interruptedWork); 6592 popHostContainer(interruptedWork); 6593 break; 6594 case 26: 6595 case 27: 6596 case 5: 6597 popHostContext(interruptedWork); 6598 break; 6599 case 4: 6600 popHostContainer(interruptedWork); 6601 break; 6602 case 31: 6603 null !== interruptedWork.memoizedState && popSuspenseHandler(interruptedWork); 6604 break; 6605 case 13: 6606 popSuspenseHandler(interruptedWork); 6607 break; 6608 case 19: 6609 pop(suspenseStackCursor, interruptedWork); 6610 break; 6611 case 10: 6612 popProvider(interruptedWork.type, interruptedWork); 6613 break; 6614 case 22: 6615 case 23: 6616 popSuspenseHandler(interruptedWork); 6617 popHiddenContext(interruptedWork); 6618 null !== current && pop(resumedCache, interruptedWork); 6619 break; 6620 case 24: 6621 popProvider(CacheContext, interruptedWork); 6622 } 6623 } 6624 function shouldProfile(current) { 6625 return (current.mode & ProfileMode) !== NoMode; 6626 } 6627 function commitHookLayoutEffects(finishedWork, hookFlags) { 6628 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 6629 } 6630 function commitHookLayoutUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 6631 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor), recordEffectDuration()) : commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor); 6632 } 6633 function commitHookEffectListMount(flags, finishedWork) { 6634 try { 6635 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 6636 if (null !== lastEffect) { 6637 var firstEffect = lastEffect.next; 6638 updateQueue = firstEffect; 6639 do { 6640 if ((updateQueue.tag & flags) === flags && ((flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted && injectedProfilingHooks.markComponentPassiveEffectMountStarted(finishedWork) : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted && injectedProfilingHooks.markComponentLayoutEffectMountStarted(finishedWork), lastEffect = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = runWithFiberInDEV(finishedWork, callCreateInDEV, updateQueue), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1), (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped && injectedProfilingHooks.markComponentPassiveEffectMountStopped() : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped && injectedProfilingHooks.markComponentLayoutEffectMountStopped(), void 0 !== lastEffect && "function" !== typeof lastEffect)) { 6641 var hookName = void 0; 6642 hookName = 0 !== (updateQueue.tag & Layout) ? "useLayoutEffect" : 0 !== (updateQueue.tag & Insertion) ? "useInsertionEffect" : "useEffect"; 6643 var addendum = void 0; 6644 addendum = null === lastEffect ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : "function" === typeof lastEffect.then ? "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + hookName + "(() =>
6644 {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching" : " You returned: " + lastEffect; 6645 runWithFiberInDEV(finishedWork, function(n, a) { 6646 console.error("%s must not return anything besides a function, which is used for clean-up.%s", n, a); 6647 }, hookName, addendum); 6648 } 6649 updateQueue = updateQueue.next; 6650 }while (updateQueue !== firstEffect) 6651 } 6652 } catch (error) { 6653 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6654 } 6655 } 6656 function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { 6657 try { 6658 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 6659 if (null !== lastEffect) { 6660 var firstEffect = lastEffect.next; 6661 updateQueue = firstEffect; 6662 do { 6663 if ((updateQueue.tag & flags) === flags) { 6664 var inst = updateQueue.inst, destroy = inst.destroy; 6665 void 0 !== destroy && (inst.destroy = void 0, (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted && injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(finishedWork) : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted && injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(finishedWork), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = finishedWork, runWithFiberInDEV(lastEffect, callDestroyInDEV, lastEffect, nearestMountedAncestor, destroy), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1), (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped && injectedProfilingHooks.markComponentPassiveEffectUnmountStopped() : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped && injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()); 6666 } 6667 updateQueue = updateQueue.next; 6668 }while (updateQueue !== firstEffect) 6669 } 6670 } catch (error) { 6671 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6672 } 6673 } 6674 function commitHookPassiveMountEffects(finishedWork, hookFlags) { 6675 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 6676 } 6677 function commitHookPassiveUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 6678 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor), recordEffectDuration()) : commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor); 6679 } 6680 function commitClassCallbacks(finishedWork) { 6681 var updateQueue = finishedWork.updateQueue; 6682 if (null !== updateQueue) { 6683 var instance = finishedWork.stateNode; 6684 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (instance.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6685 try { 6686 runWithFiberInDEV(finishedWork, commitCallbacks, updateQueue, instance); 6687 } catch (error) { 6688 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6689 } 6690 } 6691 } 6692 function callGetSnapshotBeforeUpdates(instance, prevProps, prevState) { 6693 return instance.getSnapshotBeforeUpdate(prevProps, prevState); 6694 } 6695 function commitClassSnapshot(finishedWork, current) { 6696 var prevProps = current.memoizedProps, prevState = current.memoizedState; 6697 current = finishedWork.stateNode; 6698 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (current.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), current.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6699 try {
vendor: 5,339 bytes, lines 6700-6790
6700 var resolvedPrevProps = resolveClassComponentProps(finishedWork.type, prevProps); 6701 var snapshot = runWithFiberInDEV(finishedWork, callGetSnapshotBeforeUpdates, current, resolvedPrevProps, prevState); 6702 prevProps = didWarnAboutUndefinedSnapshotBeforeUpdate; 6703 void 0 !== snapshot || prevProps.has(finishedWork.type) || (prevProps.add(finishedWork.type), runWithFiberInDEV(finishedWork, function() { 6704 console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); 6705 })); 6706 current.__reactInternalSnapshotBeforeUpdate = snapshot; 6707 } catch (error) { 6708 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6709 } 6710 } 6711 function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { 6712 instance.props = resolveClassComponentProps(current.type, current.memoizedProps); 6713 instance.state = current.memoizedState; 6714 shouldProfile(current) ? (startEffectTimer(), runWithFiberInDEV(current, callComponentWillUnmountInDEV, current, nearestMountedAncestor, instance), recordEffectDuration()) : runWithFiberInDEV(current, callComponentWillUnmountInDEV, current, nearestMountedAncestor, instance); 6715 } 6716 function commitAttachRef(finishedWork) { 6717 var ref = finishedWork.ref; 6718 if (null !== ref) { 6719 switch(finishedWork.tag){ 6720 case 26: 6721 case 27: 6722 case 5: 6723 var instanceToUse = finishedWork.stateNode; 6724 break; 6725 case 30: 6726 instanceToUse = finishedWork.stateNode; 6727 break; 6728 default: 6729 instanceToUse = finishedWork.stateNode; 6730 } 6731 if ("function" === typeof ref) if (shouldProfile(finishedWork)) try { 6732 startEffectTimer(), finishedWork.refCleanup = ref(instanceToUse); 6733 } finally{ 6734 recordEffectDuration(); 6735 } 6736 else finishedWork.refCleanup = ref(instanceToUse); 6737 else "string" === typeof ref ? console.error("String refs are no longer supported.") : ref.hasOwnProperty("current") || console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)), ref.current = instanceToUse; 6738 } 6739 } 6740 function safelyAttachRef(current, nearestMountedAncestor) { 6741 try { 6742 runWithFiberInDEV(current, commitAttachRef, current); 6743 } catch (error) { 6744 captureCommitPhaseError(current, nearestMountedAncestor, error); 6745 } 6746 } 6747 function safelyDetachRef(current, nearestMountedAncestor) { 6748 var ref = current.ref, refCleanup = current.refCleanup; 6749 if (null !== ref) if ("function" === typeof refCleanup) try { 6750 if (shouldProfile(current)) try { 6751 startEffectTimer(), runWithFiberInDEV(current, refCleanup); 6752 } finally{ 6753 recordEffectDuration(current); 6754 } 6755 else runWithFiberInDEV(current, refCleanup); 6756 } catch (error) { 6757 captureCommitPhaseError(current, nearestMountedAncestor, error); 6758 } finally{ 6759 current.refCleanup = null, current = current.alternate, null != current && (current.refCleanup = null); 6760 } 6761 else if ("function" === typeof ref) try { 6762 if (shouldProfile(current)) try { 6763 startEffectTimer(), runWithFiberInDEV(current, ref, null); 6764 } finally{ 6765 recordEffectDuration(current); 6766 } 6767 else runWithFiberInDEV(current, ref, null); 6768 } catch (error$7) { 6769 captureCommitPhaseError(current, nearestMountedAncestor, error$7); 6770 } 6771 else ref.current = null; 6772 } 6773 function commitProfiler(finishedWork, current, commitStartTime, effectDuration) { 6774 var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onCommit = _finishedWork$memoize.onCommit; 6775 _finishedWork$memoize = _finishedWork$memoize.onRender; 6776 current = null === current ? "mount" : "update"; 6777 currentUpdateIsNested && (current = "nested-update"); 6778 "function" === typeof _finishedWork$memoize && _finishedWork$memoize(id, current, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitStartTime); 6779 "function" === typeof onCommit && onCommit(id, current, effectDuration, commitStartTime); 6780 } 6781 function commitProfilerPostCommitImpl(finishedWork, current, commitStartTime, passiveEffectDuration) { 6782 var _finishedWork$memoize2 = finishedWork.memoizedProps; 6783 finishedWork = _finishedWork$memoize2.id; 6784 _finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit; 6785 current = null === current ? "mount" : "update"; 6786 currentUpdateIsNested && (current = "nested-update"); 6787 "function" === typeof _finishedWork$memoize2 && _finishedWork$memoize2(finishedWork, current, passiveEffectDuration, commitStartTime); 6788 } 6789 function commitHostMount(finishedWork) { 6790 var type = finishedWork.type, props = finishedWork.memoizedProps, instance = f
vendor: 7,494 bytes, lines 6790-6913
6790inishedWork.stateNode; 6791 try { 6792 runWithFiberInDEV(finishedWork, commitMount, instance, type, props, finishedWork); 6793 } catch (error) { 6794 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6795 } 6796 } 6797 function commitHostUpdate(finishedWork, newProps, oldProps) { 6798 try { 6799 runWithFiberInDEV(finishedWork, commitUpdate, finishedWork.stateNode, finishedWork.type, oldProps, newProps, finishedWork); 6800 } catch (error) { 6801 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6802 } 6803 } 6804 function isHostParent(fiber) { 6805 return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag; 6806 } 6807 function getHostSibling(fiber) { 6808 a: for(;;){ 6809 for(; null === fiber.sibling;){ 6810 if (null === fiber.return || isHostParent(fiber.return)) return null; 6811 fiber = fiber.return; 6812 } 6813 fiber.sibling.return = fiber.return; 6814 for(fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;){ 6815 if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a; 6816 if (fiber.flags & 2) continue a; 6817 if (null === fiber.child || 4 === fiber.tag) continue a; 6818 else fiber.child.return = fiber, fiber = fiber.child; 6819 } 6820 if (!(fiber.flags & 2)) return fiber.stateNode; 6821 } 6822 } 6823 function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { 6824 var tag = node.tag; 6825 if (5 === tag || 6 === tag) node = node.stateNode, before ? (warnForReactChildrenConflict(parent), (9 === parent.nodeType ? parent.body : "HTML" === parent.nodeName ? parent.ownerDocument.body : parent).insertBefore(node, before)) : (warnForReactChildrenConflict(parent), before = 9 === parent.nodeType ? parent.body : "HTML" === parent.nodeName ? parent.ownerDocument.body : parent, before.appendChild(node), parent = parent._reactRootContainer, null !== parent && void 0 !== parent || null !== before.onclick || (before.onclick = noop$1)); 6826 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, null !== node)) for(insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node;)insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; 6827 } 6828 function insertOrAppendPlacementNode(node, before, parent) { 6829 var tag = node.tag; 6830 if (5 === tag || 6 === tag) node = node.stateNode, before ? parent.insertBefore(node, before) : parent.appendChild(node); 6831 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, null !== node)) for(insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node;)insertOrAppendPlacementNode(node, before, parent), node = node.sibling; 6832 } 6833 function commitPlacement(finishedWork) { 6834 for(var hostParentFiber, parentFiber = finishedWork.return; null !== parentFiber;){ 6835 if (isHostParent(parentFiber)) { 6836 hostParentFiber = parentFiber; 6837 break; 6838 } 6839 parentFiber = parentFiber.return; 6840 } 6841 if (null == hostParentFiber) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); 6842 switch(hostParentFiber.tag){ 6843 case 27: 6844 hostParentFiber = hostParentFiber.stateNode; 6845 parentFiber = getHostSibling(finishedWork); 6846 insertOrAppendPlacementNode(finishedWork, parentFiber, hostParentFiber); 6847 break; 6848 case 5: 6849 parentFiber = hostParentFiber.stateNode; 6850 hostParentFiber.flags & 32 && (resetTextContent(parentFiber), hostParentFiber.flags &= -33); 6851 hostParentFiber = getHostSibling(finishedWork); 6852 insertOrAppendPlacementNode(finishedWork, hostParentFiber, parentFiber); 6853 break; 6854 case 3: 6855 case 4: 6856 hostParentFiber = hostParentFiber.stateNode.containerInfo; 6857 parentFiber = getHostSibling(finishedWork); 6858 insertOrAppendPlacementNodeIntoContainer(finishedWork, parentFiber, hostParentFiber); 6859 break; 6860 default: 6861 throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); 6862 } 6863 } 6864 function commitHostSingletonAcquisition(finishedWork) { 6865 var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps; 6866 try { 6867 runWithFiberInDEV(finishedWork, acquireSingletonInstance, finishedWork.type, props, singleton, finishedWork); 6868 } catch (error) { 6869 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6870 } 6871 } 6872 function commitBeforeMutationEffects(root, firstChild) { 6873 root = root.containerInfo; 6874 eventsEnabled = _enabled; 6875 root = getActiveElementDeep(root); 6876 if (hasSelectionCapabilities(root)) { 6877 if ("selectionStart" in root) var JSCompiler_temp = { 6878 start: root.selectionStart, 6879 end: root.selectionEnd 6880 }; 6881 else a: { 6882 JSCompiler_temp = (JSCompiler_temp = root.ownerDocument) && JSCompiler_temp.defaultView || window; 6883 var selection = JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); 6884 if (selection && 0 !== selection.rangeCount) { 6885 JSCompiler_temp = selection.anchorNode; 6886 var anchorOffset = selection.anchorOffset, focusNode = selection.focusNode; 6887 selection = selection.focusOffset; 6888 try { 6889 JSCompiler_temp.nodeType, focusNode.nodeType; 6890 } catch (e$2) { 6891 JSCompiler_temp = null; 6892 break a; 6893 } 6894 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root, parentNode = null; 6895 b: for(;;){ 6896 for(var next;;){ 6897 node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset); 6898 node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection); 6899 3 === node.nodeType && (length += node.nodeValue.length); 6900 if (null === (next = node.firstChild)) break; 6901 parentNode = node; 6902 node = next; 6903 } 6904 for(;;){ 6905 if (node === root) break b; 6906 parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length); 6907 parentNode === focusNode && ++indexWithinFocus === selection && (end = length); 6908 if (null !== (next = node.nextSibling)) break; 6909 node = parentNode; 6910 parentNode = node.parentNode; 6911 } 6912 node = next; 6913 }
6914 JSCompiler_temp = -1 === start || -1 === end ? null : { 6915 start: start, 6916 end: end 6917 }; 6918 } else JSCompiler_temp = null; 6919 } 6920 JSCompiler_temp = JSCompiler_temp || { 6921 start: 0, 6922 end: 0 6923 }; 6924 } else JSCompiler_temp = null; 6925 selectionInformation = { 6926 focusedElem: root, 6927 selectionRange: JSCompiler_temp 6928 }; 6929 _enabled = !1; 6930 for(nextEffect = firstChild; null !== nextEffect;)if (firstChild = nextEffect, root = firstChild.child, 0 !== (firstChild.subtreeFlags & 1024) && null !== root) root.return = firstChild, nextEffect = root; 6931 else for(; null !== nextEffect;){ 6932 root = firstChild = nextEffect; 6933 JSCompiler_temp = root.alternate; 6934 anchorOffset = root.flags; 6935 switch(root.tag){ 6936 case 0: 6937 break; 6938 case 11: 6939 case 15: 6940 break; 6941 case 1: 6942 0 !== (anchorOffset & 1024) && null !== JSCompiler_temp && commitClassSnapshot(root, JSCompiler_temp); 6943 break; 6944 case 3: 6945 if (0 !== (anchorOffset & 1024)) { 6946 if (root = root.stateNode.containerInfo, JSCompiler_temp = root.nodeType, 9 === JSCompiler_temp) clearContainerSparingly(root); 6947 else if (1 === JSCompiler_temp) switch(root.nodeName){ 6948 case "HEAD": 6949 case "HTML": 6950 case "BODY": 6951 clearContainerSparingly(root); 6952 break; 6953 default: 6954 root.textContent = ""; 6955 } 6956 } 6957 break; 6958 case 5: 6959 case 26: 6960 case 27: 6961 case 6: 6962 case 4: 6963 case 17: 6964 break; 6965 default: 6966 if (0 !== (anchorOffset & 1024)) throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 6967 } 6968 root = firstChild.sibling; 6969 if (null !== root) { 6970 root.return = firstChild.return; 6971 nextEffect = root; 6972 break; 6973 } 6974 nextEffect = firstChild.return; 6975 } 6976 } 6977 function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { 6978 var prevEffectStart = pushComponentEffectStart(), flags = finishedWork.flags; 6979 switch(finishedWork.tag){ 6980 case 0: 6981 case 11: 6982 case 15: 6983 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6984 flags & 4 && commitHookLayoutEffects(finishedWork, Layout | HasEffect); 6985 break; 6986 case 1: 6987 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6988 if (flags & 4) if (finishedRoot = finishedWork.stateNode, null === current) finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), finishedRoot.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, finishedRoot), recordEffectDuration()) : runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, finishedRoot); 6989 else {
6990 var prevProps = resolveClassComponentProps(finishedWork.type, current.memoizedProps); 6991 current = current.memoizedState; 6992 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), finishedRoot.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6993 shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(finishedWork, callComponentDidUpdateInDEV, finishedWork, finishedRoot, prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate), recordEffectDuration()) : runWithFiberInDEV(finishedWork, callComponentDidUpdateInDEV, finishedWork, finishedRoot, prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate); 6994 } 6995 flags & 64 && commitClassCallbacks(finishedWork); 6996 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 6997 break; 6998 case 3: 6999 current = pushNestedEffectDurations(); 7000 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7001 if (flags & 64 && (flags = finishedWork.updateQueue, null !== flags)) { 7002 prevProps = null; 7003 if (null !== finishedWork.child) switch(finishedWork.child.tag){ 7004 case 27: 7005 case 5: 7006 prevProps = finishedWork.child.stateNode; 7007 break; 7008 case 1: 7009 prevProps = finishedWork.child.stateNode; 7010 } 7011 try { 7012 runWithFiberInDEV(finishedWork, commitCallbacks, flags, prevProps); 7013 } catch (error) { 7014 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7015 } 7016 } 7017 finishedRoot.effectDuration += popNestedEffectDurations(current); 7018 break; 7019 case 27: 7020 null === current && flags & 4 && commitHostSingletonAcquisition(finishedWork); 7021 case 26: 7022 case 5: 7023 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7024 if (null === current) { 7025 if (flags & 4) commitHostMount(finishedWork); 7026 else if (flags & 64) { 7027 finishedRoot = finishedWork.type; 7028 current = finishedWork.memoizedProps; 7029 prevProps = finishedWork.stateNode; 7030 try { 7031 runWithFiberInDEV(finishedWork, commitHydratedInstance, prevProps, finishedRoot, current, finishedWork); 7032 } catch (error) { 7033 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7034 } 7035 } 7036 } 7037 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 7038 break; 7039 case 12: 7040 if (flags & 4) { 7041 flags = pushNestedEffectDurations(); 7042 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7043 finishedRoot = finishedWork.stateNode; 7044 finishedRoot.effectDuration += bubbleNestedEffectDurations(flags); 7045 try { 7046 runWithFiberInDEV(finishedWork, commitProfiler, finishedWork, current, commitStartTime, finishedRoot.effectDuration); 7047 } catch (error) { 7048 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7049 } 7050 } else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7051 break; 7052 case 31: 7053 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7054 flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 7055 break; 7056 case 13: 7057 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7058 flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 7059 flags & 64 && (finishedRoot = finishedWork.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot && (finishedWork = retryDehydratedSuspenseBoundary.bind(null, finishedWork), registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); 7060 break; 7061 case 22: 7062 flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden; 7063 if (!flags) { 7064 current = null !== current && null !== current.memoizedState || offscreenSubtreeWasHidden; 7065 prevProps = offscreenSubtreeIsHidden; 7066 var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 7067 offscreenSubtreeIsHidden = flags; 7068 (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden ? recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, 0 !== (finishedWork.subtreeFlags & 8772)) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7069 offscreenSubtreeIsHidden = prevProps; 7070 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 7071 } 7072 break; 7073 case 30: 7074 break; 7075 default: 7076 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7077 }
vendor: 5,373 bytes, lines 7078-7163
7078 popComponentEffectStart(prevEffectStart); 7079 } 7080 function detachFiberAfterEffects(fiber) { 7081 var alternate = fiber.alternate; 7082 null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); 7083 fiber.child = null; 7084 fiber.deletions = null; 7085 fiber.sibling = null; 7086 5 === fiber.tag && (alternate = fiber.stateNode, null !== alternate && detachDeletedInstance(alternate)); 7087 fiber.stateNode = null; 7088 fiber._debugOwner = null; 7089 fiber.return = null; 7090 fiber.dependencies = null; 7091 fiber.memoizedProps = null; 7092 fiber.memoizedState = null; 7093 fiber.pendingProps = null; 7094 fiber.stateNode = null; 7095 fiber.updateQueue = null; 7096 } 7097 function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { 7098 for(parent = parent.child; null !== parent;)commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; 7099 } 7100 function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { 7101 if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { 7102 injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); 7103 } catch (err) { 7104 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 7105 } 7106 var prevEffectStart = pushComponentEffectStart(); 7107 switch(deletedFiber.tag){ 7108 case 26: 7109 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7110 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7111 deletedFiber.memoizedState ? deletedFiber.memoizedState.count-- : deletedFiber.stateNode && (deletedFiber = deletedFiber.stateNode, deletedFiber.parentNode.removeChild(deletedFiber)); 7112 break; 7113 case 27: 7114 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7115 var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; 7116 isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = !1); 7117 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7118 runWithFiberInDEV(deletedFiber, releaseSingletonInstance, deletedFiber.stateNode); 7119 hostParent = prevHostParent; 7120 hostParentIsContainer = prevHostParentIsContainer; 7121 break; 7122 case 5: 7123 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7124 case 6: 7125 prevHostParent = hostParent; 7126 prevHostParentIsContainer = hostParentIsContainer; 7127 hostParent = null; 7128 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7129 hostParent = prevHostParent; 7130 hostParentIsContainer = prevHostParentIsContainer; 7131 if (null !== hostParent) if (hostParentIsContainer) try { 7132 runWithFiberInDEV(deletedFiber, removeChildFromContainer, hostParent, deletedFiber.stateNode); 7133 } catch (error) { 7134 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 7135 } 7136 else try { 7137 runWithFiberInDEV(deletedFiber, removeChild, hostParent, deletedFiber.stateNode); 7138 } catch (error) { 7139 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 7140 } 7141 break; 7142 case 18: 7143 null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, clearHydrationBoundary(9 === finishedRoot.nodeType ? finishedRoot.body : "HTML" === finishedRoot.nodeName ? finishedRoot.ownerDocument.body : finishedRoot, deletedFiber.stateNode), retryIfBlockedOn(finishedRoot)) : clearHydrationBoundary(hostParent, deletedFiber.stateNode)); 7144 break; 7145 case 4: 7146 prevHostParent = hostParent; 7147 prevHostParentIsContainer = hostParentIsContainer; 7148 hostParent = deletedFiber.stateNode.containerInfo; 7149 hostParentIsContainer = !0; 7150 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7151 hostParent = prevHostParent; 7152 hostParentIsContainer = prevHostParentIsContainer; 7153 break; 7154 case 0: 7155 case 11: 7156 case 14: 7157 case 15: 7158 offscreenSubtreeWasHidden || commitHookEffectListUnmount(Insertion, deletedFiber, nearestMountedAncestor); 7159 offscreenSubtreeWasHidden || commitHookLayoutUnmountEffects(deletedFiber, nearestMountedAncestor, Layout); 7160 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7161 break; 7162 case 1: 7163 offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, "function" === typeof prevHostParent.componentWillUnmount && safelyCallComponentWillUnmount(
7163deletedFiber, nearestMountedAncestor, prevHostParent)); 7164 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7165 break; 7166 case 21: 7167 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7168 break; 7169 case 22: 7170 offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || null !== deletedFiber.memoizedState; 7171 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7172 offscreenSubtreeWasHidden = prevHostParent; 7173 break; 7174 default: 7175 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7176 } 7177 popComponentEffectStart(prevEffectStart); 7178 } 7179 function commitActivityHydrationCallbacks(finishedRoot, finishedWork) { 7180 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot))) { 7181 finishedRoot = finishedRoot.dehydrated; 7182 try { 7183 runWithFiberInDEV(finishedWork, commitHydratedActivityInstance, finishedRoot); 7184 } catch (error) { 7185 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7186 } 7187 } 7188 } 7189 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { 7190 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot)))) try { 7191 runWithFiberInDEV(finishedWork, commitHydratedSuspenseInstance, finishedRoot); 7192 } catch (error) { 7193 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7194 } 7195 } 7196 function getRetryCache(finishedWork) { 7197 switch(finishedWork.tag){ 7198 case 31: 7199 case 13: 7200 case 19: 7201 var retryCache = finishedWork.stateNode; 7202 null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); 7203 return retryCache; 7204 case 22: 7205 return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, null === retryCache && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache; 7206 default: 7207 throw Error("Unexpected Suspense handler tag (" + finishedWork.tag + "). This is a bug in React."); 7208 } 7209 } 7210 function attachSuspenseRetryListeners(finishedWork, wakeables) { 7211 var retryCache = getRetryCache(finishedWork); 7212 wakeables.forEach(function(wakeable) { 7213 if (!retryCache.has(wakeable)) { 7214 retryCache.add(wakeable); 7215 if (isDevToolsPresent) if (null !== inProgressLanes && null !== inProgressRoot) restorePendingUpdaters(inProgressRoot, inProgressLanes); 7216 else throw Error("Expected finished root and lanes to be set. This is a bug in React."); 7217 var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); 7218 wakeable.then(retry, retry); 7219 } 7220 }); 7221 } 7222 function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { 7223 var deletions = parentFiber.deletions; 7224 if (null !== deletions) for(var i = 0; i < deletions.length; i++){ 7225 var root = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i], prevEffectStart = pushComponentEffectStart(), parent = returnFiber; 7226 a: for(; null !== parent;){ 7227 switch(parent.tag){ 7228 case 27: 7229 if (isSingletonScope(parent.type)) { 7230 hostParent = parent.stateNode; 7231 hostParentIsContainer = !1; 7232 break a; 7233 } 7234 break; 7235 case 5: 7236 hostParent = parent.stateNode; 7237 hostParentIsContainer = !1; 7238 break a; 7239 case 3: 7240 case 4: 7241 hostParent = parent.stateNode.containerInfo; 7242 hostParentIsContainer = !0; 7243 break a; 7244 } 7245 parent = parent.return; 7246 } 7247 if (null === hostParent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
7248 commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); 7249 hostParent = null; 7250 hostParentIsContainer = !1; 7251 popComponentEffectStart(prevEffectStart); 7252 root = deletedFiber; 7253 returnFiber = root.alternate; 7254 null !== returnFiber && (returnFiber.return = null); 7255 root.return = null; 7256 } 7257 if (parentFiber.subtreeFlags & 13878) for(parentFiber = parentFiber.child; null !== parentFiber;)commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; 7258 } 7259 function commitMutationEffectsOnFiber(finishedWork, root) { 7260 var prevEffectStart = pushComponentEffectStart(), current = finishedWork.alternate, flags = finishedWork.flags; 7261 switch(finishedWork.tag){ 7262 case 0: 7263 case 11: 7264 case 14: 7265 case 15: 7266 recursivelyTraverseMutationEffects(root, finishedWork); 7267 commitReconciliationEffects(finishedWork); 7268 flags & 4 && (commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return), commitHookEffectListMount(Insertion | HasEffect, finishedWork), commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, Layout | HasEffect)); 7269 break; 7270 case 1: 7271 recursivelyTraverseMutationEffects(root, finishedWork); 7272 commitReconciliationEffects(finishedWork); 7273 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7274 flags & 64 && offscreenSubtreeIsHidden && (finishedWork = finishedWork.updateQueue, null !== finishedWork && (flags = finishedWork.callbacks, null !== flags && (current = finishedWork.shared.hiddenCallbacks, finishedWork.shared.hiddenCallbacks = null === current ? flags : current.concat(flags)))); 7275 break; 7276 case 26: 7277 var hoistableRoot = currentHoistableRoot; 7278 recursivelyTraverseMutationEffects(root, finishedWork); 7279 commitReconciliationEffects(finishedWork); 7280 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7281 if (flags & 4) { 7282 var currentResource = null !== current ? current.memoizedState : null; 7283 flags = finishedWork.memoizedState; 7284 if (null === current) if (null === flags) if (null === finishedWork.stateNode) { 7285 a: { 7286 flags = finishedWork.type; 7287 current = finishedWork.memoizedProps; 7288 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 7289 b: switch(flags){ 7290 case "title": 7291 currentResource = hoistableRoot.getElementsByTagName("title")[0]; 7292 if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || currentResource.namespaceURI === SVG_NAMESPACE || currentResource.hasAttribute("itemprop")) currentResource = hoistableRoot.createElement(flags), hoistableRoot.head.insertBefore(currentResource, hoistableRoot.querySelector("head > title")); 7293 setInitialProperties(currentResource, flags, current); 7294 currentResource[internalInstanceKey] = finishedWork; 7295 markNodeAsHoistable(currentResource); 7296 flags = currentResource; 7297 break a; 7298 case "link": 7299 var maybeNodes = getHydratableHoistableCache("link", "href", hoistableRoot).get(flags + (current.href || "")); 7300 if (maybeNodes) { 7301 for(var i = 0; i < maybeNodes.length; i++)if (currentResource = maybeNodes[i], currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && currentResource.getAttribute("title") === (null == current.title ? null : current.title) && currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) { 7302 maybeNodes.splice(i, 1); 7303 break b; 7304 } 7305 } 7306 currentResource = hoistableRoot.createElement(flags); 7307 setInitialProperties(currentResource, flags, current); 7308 hoistableRoot.head.appendChild(currentResource); 7309 break; 7310 case "meta": 7311 if (maybeNodes = getHydratableHoistableCache("meta", "content", hoistableRoot).get(flags + (current.content || ""))) { 7312 for(i = 0; i < maybeNodes.length; i++)if (currentResource = maybeNodes[i], checkAttributeStringCoercion(current.content, "content"), currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && currentResource.getAttribute("name") === (null == current.name ? null : current.name) && currentResource.getAttribute("property") === (null == current.property ? null : current.property) && currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && currentResource.getAttribute("charset")
vendor: 8,550 bytes, lines 7312-7429
7312=== (null == current.charSet ? null : current.charSet)) { 7313 maybeNodes.splice(i, 1); 7314 break b; 7315 } 7316 } 7317 currentResource = hoistableRoot.createElement(flags); 7318 setInitialProperties(currentResource, flags, current); 7319 hoistableRoot.head.appendChild(currentResource); 7320 break; 7321 default: 7322 throw Error('getNodesForType encountered a type it did not expect: "' + flags + '". This is a bug in React.'); 7323 } 7324 currentResource[internalInstanceKey] = finishedWork; 7325 markNodeAsHoistable(currentResource); 7326 flags = currentResource; 7327 } 7328 finishedWork.stateNode = flags; 7329 } else mountHoistable(hoistableRoot, finishedWork.type, finishedWork.stateNode); 7330 else finishedWork.stateNode = acquireResource(hoistableRoot, flags, finishedWork.memoizedProps); 7331 else currentResource !== flags ? (null === currentResource ? null !== current.stateNode && (current = current.stateNode, current.parentNode.removeChild(current)) : currentResource.count--, null === flags ? mountHoistable(hoistableRoot, finishedWork.type, finishedWork.stateNode) : acquireResource(hoistableRoot, flags, finishedWork.memoizedProps)) : null === flags && null !== finishedWork.stateNode && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 7332 } 7333 break; 7334 case 27: 7335 recursivelyTraverseMutationEffects(root, finishedWork); 7336 commitReconciliationEffects(finishedWork); 7337 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7338 null !== current && flags & 4 && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 7339 break; 7340 case 5: 7341 recursivelyTraverseMutationEffects(root, finishedWork); 7342 commitReconciliationEffects(finishedWork); 7343 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7344 if (finishedWork.flags & 32) { 7345 hoistableRoot = finishedWork.stateNode; 7346 try { 7347 runWithFiberInDEV(finishedWork, resetTextContent, hoistableRoot); 7348 } catch (error) { 7349 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7350 } 7351 } 7352 flags & 4 && null != finishedWork.stateNode && (hoistableRoot = finishedWork.memoizedProps, commitHostUpdate(finishedWork, hoistableRoot, null !== current ? current.memoizedProps : hoistableRoot)); 7353 flags & 1024 && (needsFormReset = !0, "form" !== finishedWork.type && console.error("Unexpected host component type. Expected a form. This is a bug in React.")); 7354 break; 7355 case 6: 7356 recursivelyTraverseMutationEffects(root, finishedWork); 7357 commitReconciliationEffects(finishedWork); 7358 if (flags & 4) { 7359 if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); 7360 flags = finishedWork.memoizedProps; 7361 current = null !== current ? current.memoizedProps : flags; 7362 hoistableRoot = finishedWork.stateNode; 7363 try { 7364 runWithFiberInDEV(finishedWork, commitTextUpdate, hoistableRoot, current, flags); 7365 } catch (error) { 7366 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7367 } 7368 } 7369 break; 7370 case 3: 7371 hoistableRoot = pushNestedEffectDurations(); 7372 tagCaches = null; 7373 currentResource = currentHoistableRoot; 7374 currentHoistableRoot = getHoistableRoot(root.containerInfo); 7375 recursivelyTraverseMutationEffects(root, finishedWork); 7376 currentHoistableRoot = currentResource; 7377 commitReconciliationEffects(finishedWork); 7378 if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { 7379 runWithFiberInDEV(finishedWork, commitHydratedContainer, root.containerInfo); 7380 } catch (error) { 7381 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7382 } 7383 needsFormReset && (needsFormReset = !1, recursivelyResetForms(finishedWork)); 7384 root.effectDuration += popNestedEffectDurations(hoistableRoot); 7385 break; 7386 case 4: 7387 flags = currentHoistableRoot; 7388 currentHoistableRoot = getHoistableRoot(finishedWork.stateNode.containerInfo); 7389 recursivelyTraverseMutationEffects(root, finishedWork); 7390 commitReconciliationEffects(finishedWork); 7391 currentHoistableRoot = flags; 7392 break; 7393 case 12: 7394 flags = pushNestedEffectDurations(); 7395 recursivelyTraverseMutationEffects(root, finishedWork); 7396 commitReconciliationEffects(finishedWork); 7397 finishedWork.stateNode.effectDuration += bubbleNestedEffectDurations(flags); 7398 break; 7399 case 31: 7400 recursivelyTraverseMutationEffects(root, finishedWork); 7401 commitReconciliationEffects(finishedWork); 7402 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7403 break; 7404 case 13: 7405 recursivelyTraverseMutationEffects(root, finishedWork); 7406 commitReconciliationEffects(finishedWork); 7407 finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now$1()); 7408 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7409 break; 7410 case 22: 7411 hoistableRoot = null !== finishedWork.memoizedState; 7412 var wasHidden = null !== current && null !== current.memoizedState, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 7413 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; 7414 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; 7415 recursivelyTraverseMutationEffects(root, finishedWork); 7416 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 7417 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; 7418 commitReconciliationEffects(finishedWork); 7419 if (flags & 8192) a: for(root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current = null, root = finishedWork;;){ 7420 if (5 === root.tag || 26 === root.tag) { 7421 if (null === current) { 7422 wasHidden = current = root; 7423 try { 7424 currentResource = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(wasHidden, hideInstance, currentResource) : runWithFiberInDEV(wasHidden, unhideInstance, wasHidden.stateNode, wasHidden.memoizedProps); 7425 } catch (error) { 7426 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7427 } 7428 } 7429 }
vendor: 4,444 bytes, lines 7429-7512
7429 else if (6 === root.tag) { 7430 if (null === current) { 7431 wasHidden = root; 7432 try { 7433 maybeNodes = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(wasHidden, hideTextInstance, maybeNodes) : runWithFiberInDEV(wasHidden, unhideTextInstance, maybeNodes, wasHidden.memoizedProps); 7434 } catch (error) { 7435 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7436 } 7437 } 7438 } else if (18 === root.tag) { 7439 if (null === current) { 7440 wasHidden = root; 7441 try { 7442 i = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(wasHidden, hideDehydratedBoundary, i) : runWithFiberInDEV(wasHidden, unhideDehydratedBoundary, wasHidden.stateNode); 7443 } catch (error) { 7444 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7445 } 7446 } 7447 } else if ((22 !== root.tag && 23 !== root.tag || null === root.memoizedState || root === finishedWork) && null !== root.child) { 7448 root.child.return = root; 7449 root = root.child; 7450 continue; 7451 } 7452 if (root === finishedWork) break a; 7453 for(; null === root.sibling;){ 7454 if (null === root.return || root.return === finishedWork) break a; 7455 current === root && (current = null); 7456 root = root.return; 7457 } 7458 current === root && (current = null); 7459 root.sibling.return = root.return; 7460 root = root.sibling; 7461 } 7462 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current)))); 7463 break; 7464 case 19: 7465 recursivelyTraverseMutationEffects(root, finishedWork); 7466 commitReconciliationEffects(finishedWork); 7467 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7468 break; 7469 case 30: 7470 break; 7471 case 21: 7472 break; 7473 default: 7474 recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); 7475 } 7476 popComponentEffectStart(prevEffectStart); 7477 } 7478 function commitReconciliationEffects(finishedWork) { 7479 var flags = finishedWork.flags; 7480 if (flags & 2) { 7481 try { 7482 runWithFiberInDEV(finishedWork, commitPlacement, finishedWork); 7483 } catch (error) { 7484 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7485 } 7486 finishedWork.flags &= -3; 7487 } 7488 flags & 4096 && (finishedWork.flags &= -4097); 7489 } 7490 function recursivelyResetForms(parentFiber) { 7491 if (parentFiber.subtreeFlags & 1024) for(parentFiber = parentFiber.child; null !== parentFiber;){ 7492 var fiber = parentFiber; 7493 recursivelyResetForms(fiber); 7494 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset(); 7495 parentFiber = parentFiber.sibling; 7496 } 7497 } 7498 function recursivelyTraverseLayoutEffects(root, parentFiber) { 7499 if (parentFiber.subtreeFlags & 8772) for(parentFiber = parentFiber.child; null !== parentFiber;)commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling; 7500 } 7501 function disappearLayoutEffects(finishedWork) { 7502 var prevEffectStart = pushComponentEffectStart(); 7503 switch(finishedWork.tag){ 7504 case 0: 7505 case 11: 7506 case 14: 7507 case 15: 7508 commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, Layout); 7509 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7510 break; 7511 case 1: 7512 safelyDetachRef(finishedWork, finishedWork.return);
vendor: 5,124 bytes, lines 7513-7600
7513 var instance = finishedWork.stateNode; 7514 "function" === typeof instance.componentWillUnmount && safelyCallComponentWillUnmount(finishedWork, finishedWork.return, instance); 7515 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7516 break; 7517 case 27: 7518 runWithFiberInDEV(finishedWork, releaseSingletonInstance, finishedWork.stateNode); 7519 case 26: 7520 case 5: 7521 safelyDetachRef(finishedWork, finishedWork.return); 7522 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7523 break; 7524 case 22: 7525 null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); 7526 break; 7527 case 30: 7528 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7529 break; 7530 default: 7531 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7532 } 7533 popComponentEffectStart(prevEffectStart); 7534 } 7535 function recursivelyTraverseDisappearLayoutEffects(parentFiber) { 7536 for(parentFiber = parentFiber.child; null !== parentFiber;)disappearLayoutEffects(parentFiber), parentFiber = parentFiber.sibling; 7537 } 7538 function reappearLayoutEffects(finishedRoot, current, finishedWork, includeWorkInProgressEffects) { 7539 var prevEffectStart = pushComponentEffectStart(), flags = finishedWork.flags; 7540 switch(finishedWork.tag){ 7541 case 0: 7542 case 11: 7543 case 15: 7544 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7545 commitHookLayoutEffects(finishedWork, Layout); 7546 break; 7547 case 1: 7548 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7549 current = finishedWork.stateNode; 7550 "function" === typeof current.componentDidMount && runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, current); 7551 current = finishedWork.updateQueue; 7552 if (null !== current) { 7553 finishedRoot = finishedWork.stateNode; 7554 try { 7555 runWithFiberInDEV(finishedWork, commitHiddenCallbacks, current, finishedRoot); 7556 } catch (error) { 7557 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7558 } 7559 } 7560 includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork); 7561 safelyAttachRef(finishedWork, finishedWork.return); 7562 break; 7563 case 27: 7564 commitHostSingletonAcquisition(finishedWork); 7565 case 26: 7566 case 5: 7567 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7568 includeWorkInProgressEffects && null === current && flags & 4 && commitHostMount(finishedWork); 7569 safelyAttachRef(finishedWork, finishedWork.return); 7570 break; 7571 case 12: 7572 if (includeWorkInProgressEffects && flags & 4) { 7573 flags = pushNestedEffectDurations(); 7574 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7575 includeWorkInProgressEffects = finishedWork.stateNode; 7576 includeWorkInProgressEffects.effectDuration += bubbleNestedEffectDurations(flags); 7577 try { 7578 runWithFiberInDEV(finishedWork, commitProfiler, finishedWork, current, commitStartTime, includeWorkInProgressEffects.effectDuration); 7579 } catch (error) { 7580 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7581 } 7582 } else recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7583 break; 7584 case 31: 7585 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7586 includeWorkInProgressEffects && flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 7587 break; 7588 case 13: 7589 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7590 includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 7591 break; 7592 case 22: 7593 null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7594 safelyAttachRef(finishedWork, finishedWork.return); 7595 break; 7596 case 30: 7597 break; 7598 default: 7599 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7600 }
7601 popComponentEffectStart(prevEffectStart); 7602 } 7603 function recursivelyTraverseReappearLayoutEffects(finishedRoot, parentFiber, includeWorkInProgressEffects) { 7604 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); 7605 for(parentFiber = parentFiber.child; null !== parentFiber;)reappearLayoutEffects(finishedRoot, parentFiber.alternate, parentFiber, includeWorkInProgressEffects), parentFiber = parentFiber.sibling; 7606 } 7607 function commitOffscreenPassiveMountEffects(current, finishedWork) { 7608 var previousCache = null; 7609 null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (previousCache = current.memoizedState.cachePool.pool); 7610 current = null; 7611 null !== finishedWork.memoizedState && null !== finishedWork.memoizedState.cachePool && (current = finishedWork.memoizedState.cachePool.pool); 7612 current !== previousCache && (null != current && retainCache(current), null != previousCache && releaseCache(previousCache)); 7613 } 7614 function commitCachePassiveMountEffect(current, finishedWork) { 7615 current = null; 7616 null !== finishedWork.alternate && (current = finishedWork.alternate.memoizedState.cache); 7617 finishedWork = finishedWork.memoizedState.cache; 7618 finishedWork !== current && (retainCache(finishedWork), null != current && releaseCache(current)); 7619 } 7620 function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions) { 7621 if (parentFiber.subtreeFlags & 10256) for(parentFiber = parentFiber.child; null !== parentFiber;)commitPassiveMountOnFiber(root, parentFiber, committedLanes, committedTransitions), parentFiber = parentFiber.sibling; 7622 } 7623 function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { 7624 var prevEffectStart = pushComponentEffectStart(), flags = finishedWork.flags; 7625 switch(finishedWork.tag){ 7626 case 0: 7627 case 11: 7628 case 15: 7629 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7630 flags & 2048 && commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); 7631 break; 7632 case 1: 7633 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7634 break; 7635 case 3: 7636 var prevProfilerEffectDuration = pushNestedEffectDurations(); 7637 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7638 flags & 2048 && (committedLanes = null, null !== finishedWork.alternate && (committedLanes = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== committedLanes && (retainCache(finishedWork), null != committedLanes && releaseCache(committedLanes))); 7639 finishedRoot.passiveEffectDuration += popNestedEffectDurations(prevProfilerEffectDuration); 7640 break; 7641 case 12: 7642 if (flags & 2048) { 7643 flags = pushNestedEffectDurations(); 7644 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7645 finishedRoot = finishedWork.stateNode; 7646 finishedRoot.passiveEffectDuration += bubbleNestedEffectDurations(flags); 7647 try { 7648 runWithFiberInDEV(finishedWork, commitProfilerPostCommitImpl, finishedWork, finishedWork.alternate, commitStartTime, finishedRoot.passiveEffectDuration); 7649 } catch (error) { 7650 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7651 } 7652 } else recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7653 break; 7654 case 31: 7655 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7656 break; 7657 case 13: 7658 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7659 break; 7660 case 23: 7661 break; 7662 case 22: 7663 prevProfilerEffectDuration = finishedWork.stateNode; 7664 var _current = finishedWork.alternate; 7665 null !== finishedWork.memoizedState ? prevProfilerEffectDuration._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) : prevProfilerEffectDuration._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions) : (prevProfilerEffectDuration._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, 0 !== (finishedWork.subtreeFlags & 10256))); 7666 flags & 2048 && commitOffscreenPassiveMountEffects(_current, finishedWork); 7667 break; 7668 case 24: 7669 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7670 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 7671 break; 7672 default: 7673 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 7674 }
vendor: 5,611 bytes, lines 7675-7758
7675 popComponentEffectStart(prevEffectStart); 7676 } 7677 function recursivelyTraverseReconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects) { 7678 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); 7679 for(parentFiber = parentFiber.child; null !== parentFiber;)reconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects), parentFiber = parentFiber.sibling; 7680 } 7681 function reconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects) { 7682 var prevEffectStart = pushComponentEffectStart(), flags = finishedWork.flags; 7683 switch(finishedWork.tag){ 7684 case 0: 7685 case 11: 7686 case 15: 7687 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 7688 commitHookPassiveMountEffects(finishedWork, Passive); 7689 break; 7690 case 23: 7691 break; 7692 case 22: 7693 var _instance2 = finishedWork.stateNode; 7694 null !== finishedWork.memoizedState ? _instance2._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) : (_instance2._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects)); 7695 includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects(finishedWork.alternate, finishedWork); 7696 break; 7697 case 24: 7698 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 7699 includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 7700 break; 7701 default: 7702 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 7703 } 7704 popComponentEffectStart(prevEffectStart); 7705 } 7706 function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber) { 7707 if (parentFiber.subtreeFlags & 10256) for(parentFiber = parentFiber.child; null !== parentFiber;){ 7708 var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; 7709 switch(finishedWork.tag){ 7710 case 22: 7711 recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 7712 flags & 2048 && commitOffscreenPassiveMountEffects(finishedWork.alternate, finishedWork); 7713 break; 7714 case 24: 7715 recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 7716 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 7717 break; 7718 default: 7719 recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 7720 } 7721 parentFiber = parentFiber.sibling; 7722 } 7723 } 7724 function recursivelyAccumulateSuspenseyCommit(parentFiber) { 7725 if (parentFiber.subtreeFlags & suspenseyCommitFlag) for(parentFiber = parentFiber.child; null !== parentFiber;)accumulateSuspenseyCommitOnFiber(parentFiber), parentFiber = parentFiber.sibling; 7726 } 7727 function accumulateSuspenseyCommitOnFiber(fiber) { 7728 switch(fiber.tag){ 7729 case 26: 7730 recursivelyAccumulateSuspenseyCommit(fiber); 7731 fiber.flags & suspenseyCommitFlag && null !== fiber.memoizedState && suspendResource(currentHoistableRoot, fiber.memoizedState, fiber.memoizedProps); 7732 break; 7733 case 5: 7734 recursivelyAccumulateSuspenseyCommit(fiber); 7735 break; 7736 case 3: 7737 case 4: 7738 var previousHoistableRoot = currentHoistableRoot; 7739 currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo); 7740 recursivelyAccumulateSuspenseyCommit(fiber); 7741 currentHoistableRoot = previousHoistableRoot; 7742 break; 7743 case 22: 7744 null === fiber.memoizedState && (previousHoistableRoot = fiber.alternate, null !== previousHoistableRoot && null !== previousHoistableRoot.memoizedState ? (previousHoistableRoot = suspenseyCommitFlag, suspenseyCommitFlag = 16777216, recursivelyAccumulateSuspenseyCommit(fiber), suspenseyCommitFlag = previousHoistableRoot) : recursivelyAccumulateSuspenseyCommit(fiber)); 7745 break; 7746 default: 7747 recursivelyAccumulateSuspenseyCommit(fiber); 7748 } 7749 } 7750 function detachAlternateSiblings(parentFiber) { 7751 var previousFiber = parentFiber.alternate; 7752 if (null !== previousFiber && (parentFiber = previousFiber.child, null !== parentFiber)) { 7753 previousFiber.child = null; 7754 do previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber; 7755 while (null !== parentFiber) 7756 } 7757 } 7758 function recursivelyTraversePassiveUnmountEffects(parentFiber) {
7759 var deletions = parentFiber.deletions; 7760 if (0 !== (parentFiber.flags & 16)) { 7761 if (null !== deletions) for(var i = 0; i < deletions.length; i++){ 7762 var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart(); 7763 nextEffect = childToDelete; 7764 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 7765 popComponentEffectStart(prevEffectStart); 7766 } 7767 detachAlternateSiblings(parentFiber); 7768 } 7769 if (parentFiber.subtreeFlags & 10256) for(parentFiber = parentFiber.child; null !== parentFiber;)commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling; 7770 } 7771 function commitPassiveUnmountOnFiber(finishedWork) { 7772 var prevEffectStart = pushComponentEffectStart(); 7773 switch(finishedWork.tag){ 7774 case 0: 7775 case 11: 7776 case 15: 7777 recursivelyTraversePassiveUnmountEffects(finishedWork); 7778 finishedWork.flags & 2048 && commitHookPassiveUnmountEffects(finishedWork, finishedWork.return, Passive | HasEffect); 7779 break; 7780 case 3: 7781 var prevProfilerEffectDuration = pushNestedEffectDurations(); 7782 recursivelyTraversePassiveUnmountEffects(finishedWork); 7783 finishedWork.stateNode.passiveEffectDuration += popNestedEffectDurations(prevProfilerEffectDuration); 7784 break; 7785 case 12: 7786 prevProfilerEffectDuration = pushNestedEffectDurations(); 7787 recursivelyTraversePassiveUnmountEffects(finishedWork); 7788 finishedWork.stateNode.passiveEffectDuration += bubbleNestedEffectDurations(prevProfilerEffectDuration); 7789 break; 7790 case 22: 7791 prevProfilerEffectDuration = finishedWork.stateNode; 7792 null !== finishedWork.memoizedState && prevProfilerEffectDuration._visibility & OffscreenPassiveEffectsConnected && (null === finishedWork.return || 13 !== finishedWork.return.tag) ? (prevProfilerEffectDuration._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork)) : recursivelyTraversePassiveUnmountEffects(finishedWork); 7793 break; 7794 default: 7795 recursivelyTraversePassiveUnmountEffects(finishedWork); 7796 } 7797 popComponentEffectStart(prevEffectStart); 7798 } 7799 function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { 7800 var deletions = parentFiber.deletions; 7801 if (0 !== (parentFiber.flags & 16)) { 7802 if (null !== deletions) for(var i = 0; i < deletions.length; i++){ 7803 var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart(); 7804 nextEffect = childToDelete; 7805 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 7806 popComponentEffectStart(prevEffectStart); 7807 } 7808 detachAlternateSiblings(parentFiber); 7809 } 7810 for(parentFiber = parentFiber.child; null !== parentFiber;)disconnectPassiveEffect(parentFiber), parentFiber = parentFiber.sibling; 7811 } 7812 function disconnectPassiveEffect(finishedWork) { 7813 var prevEffectStart = pushComponentEffectStart(); 7814 switch(finishedWork.tag){ 7815 case 0: 7816 case 11: 7817 case 15: 7818 commitHookPassiveUnmountEffects(finishedWork, finishedWork.return, Passive); 7819 recursivelyTraverseDisconnectPassiveEffects(finishedWork); 7820 break; 7821 case 22: 7822 var instance = finishedWork.stateNode; 7823 instance._visibility & OffscreenPassiveEffectsConnected && (instance._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork)); 7824 break; 7825 default: 7826 recursivelyTraverseDisconnectPassiveEffects(finishedWork); 7827 } 7828 popComponentEffectStart(prevEffectStart); 7829 } 7830 function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor$jscomp$0) { 7831 for(; null !== nextEffect;){ 7832 var fiber = nextEffect, current = fiber, nearestMountedAncestor = nearestMountedAncestor$jscomp$0, prevEffectStart = pushComponentEffectStart(); 7833 switch(current.tag){ 7834 case 0: 7835 case 11: 7836 case 15: 7837 commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); 7838 break; 7839 case 23: 7840 case 22: 7841 null !== current.memoizedState && null !== current.memoizedState.cachePool && (current = current.memoizedState.cachePool.pool, null != current && retainCache(current)); 7842 break; 7843 case 24: 7844 releaseCache(current.memoizedState.cache); 7845 }
7846 popComponentEffectStart(prevEffectStart); 7847 prevEffectStart = fiber.child; 7848 if (null !== prevEffectStart) prevEffectStart.return = fiber, nextEffect = prevEffectStart; 7849 else a: for(fiber = deletedSubtreeRoot; null !== nextEffect;){ 7850 prevEffectStart = nextEffect; 7851 current = prevEffectStart.sibling; 7852 nearestMountedAncestor = prevEffectStart.return; 7853 detachFiberAfterEffects(prevEffectStart); 7854 if (prevEffectStart === fiber) { 7855 nextEffect = null; 7856 break a; 7857 } 7858 if (null !== current) { 7859 current.return = nearestMountedAncestor; 7860 nextEffect = current; 7861 break a; 7862 } 7863 nextEffect = nearestMountedAncestor; 7864 } 7865 } 7866 } 7867 function onCommitRoot() { 7868 commitHooks.forEach(function(commitHook) { 7869 return commitHook(); 7870 }); 7871 } 7872 function isConcurrentActEnvironment() { 7873 var isReactActEnvironmentGlobal = "undefined" !== typeof IS_REACT_ACT_ENVIRONMENT ? IS_REACT_ACT_ENVIRONMENT : void 0; 7874 isReactActEnvironmentGlobal || null === ReactSharedInternals.actQueue || console.error("The current testing environment is not configured to support act(...)"); 7875 return isReactActEnvironmentGlobal; 7876 } 7877 function requestUpdateLane(fiber) { 7878 if ((executionContext & RenderContext) !== NoContext && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; 7879 var transition = ReactSharedInternals.T; 7880 return null !== transition ? (transition._updatedFibers || (transition._updatedFibers = new Set()), transition._updatedFibers.add(fiber), requestTransitionLane()) : resolveUpdatePriority(); 7881 } 7882 function requestDeferredLane() { 7883 0 === workInProgressDeferredLane && (workInProgressDeferredLane = 0 === (workInProgressRootRenderLanes & 536870912) || isHydrating ? claimNextTransitionLane() : 536870912); 7884 var suspenseHandler = suspenseHandlerStackCursor.current; 7885 null !== suspenseHandler && (suspenseHandler.flags |= 32); 7886 return workInProgressDeferredLane; 7887 } 7888 function scheduleUpdateOnFiber(root, fiber, lane) { 7889 isRunningInsertionEffect && console.error("useInsertionEffect must not schedule updates."); 7890 isFlushingPassiveEffects && (didScheduleUpdateDuringPassiveEffects = !0); 7891 if (root === workInProgressRoot && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root.cancelPendingCommit) prepareFreshStack(root, 0), markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 7892 markRootUpdated$1(root, lane); 7893 if ((executionContext & RenderContext) !== NoContext && root === workInProgressRoot) { 7894 if (isRendering) switch(fiber.tag){ 7895 case 0: 7896 case 11: 7897 case 15: 7898 root = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; 7899 didWarnAboutUpdateInRenderForAnotherComponent.has(root) || (didWarnAboutUpdateInRenderForAnotherComponent.add(root), fiber = getComponentNameFromFiber(fiber) || "Unknown", console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", fiber, root, root)); 7900 break; 7901 case 1: 7902 didWarnAboutUpdateInRender || (console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), didWarnAboutUpdateInRender = !0); 7903 } 7904 } else isDevToolsPresent && addFiberToLanesMap(root, fiber, lane), warnIfUpdatesNotWrappedWithActDEV(fiber), root === workInProgressRoot && ((executionContext & RenderContext) === NoContext && (workInProgressRootInterleavedU
7904pdatedLanes |= lane), workInProgressRootExitStatus === RootSuspendedWithDelay && markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1)), ensureRootIsScheduled(root); 7905 } 7906 function performWorkOnRoot(root, lanes, forceSync) { 7907 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); 7908 var shouldTimeSlice = !forceSync && 0 === (lanes & 124) && 0 === (lanes & root.expiredLanes) || checkIfRootIsPrerendering(root, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), renderWasConcurrent = shouldTimeSlice; 7909 do { 7910 if (exitStatus === RootInProgress) { 7911 workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root, lanes, 0, !1); 7912 break; 7913 } else { 7914 forceSync = root.current.alternate; 7915 if (renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) { 7916 exitStatus = renderRootSync(root, lanes, !1); 7917 renderWasConcurrent = !1; 7918 continue; 7919 } 7920 if (exitStatus === RootErrored) { 7921 renderWasConcurrent = lanes; 7922 if (root.errorRecoveryDisabledLanes & renderWasConcurrent) var errorRetryLanes = 0; 7923 else errorRetryLanes = root.pendingLanes & -536870913, errorRetryLanes = 0 !== errorRetryLanes ? errorRetryLanes : errorRetryLanes & 536870912 ? 536870912 : 0; 7924 if (0 !== errorRetryLanes) { 7925 lanes = errorRetryLanes; 7926 a: { 7927 exitStatus = root; 7928 var errorRetryLanes$jscomp$0 = errorRetryLanes; 7929 errorRetryLanes = workInProgressRootConcurrentErrors; 7930 var wasRootDehydrated = exitStatus.current.memoizedState.isDehydrated; 7931 wasRootDehydrated && (prepareFreshStack(exitStatus, errorRetryLanes$jscomp$0).flags |= 256); 7932 errorRetryLanes$jscomp$0 = renderRootSync(exitStatus, errorRetryLanes$jscomp$0, !1); 7933 if (errorRetryLanes$jscomp$0 !== RootErrored) { 7934 if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) { 7935 exitStatus.errorRecoveryDisabledLanes |= renderWasConcurrent; 7936 workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent; 7937 exitStatus = RootSuspendedWithDelay; 7938 break a; 7939 } 7940 exitStatus = workInProgressRootRecoverableErrors; 7941 workInProgressRootRecoverableErrors = errorRetryLanes; 7942 null !== exitStatus && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = exitStatus : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, exitStatus)); 7943 } 7944 exitStatus = errorRetryLanes$jscomp$0; 7945 } 7946 renderWasConcurrent = !1; 7947 if (exitStatus !== RootErrored) continue; 7948 } 7949 } 7950 if (exitStatus === RootFatalErrored) { 7951 prepareFreshStack(root, 0); 7952 markRootSuspended(root, lanes, 0, !0); 7953 break; 7954 } 7955 a: { 7956 shouldTimeSlice = root; 7957 switch(exitStatus){ 7958 case RootInProgress: 7959 case RootFatalErrored: 7960 throw Error("Root did not complete. This is a bug in React."); 7961 case RootSuspendedWithDelay: 7962 if ((lanes & 4194048) !== lanes) break; 7963 case RootSuspendedAtTheShell: 7964 markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSu
7964spendedSiblings); 7965 break a; 7966 case RootErrored: 7967 workInProgressRootRecoverableErrors = null; 7968 break; 7969 case RootSuspended: 7970 case RootCompleted: 7971 break; 7972 default: 7973 throw Error("Unknown root exit status."); 7974 } 7975 if (null !== ReactSharedInternals.actQueue) commitRoot(shouldTimeSlice, forceSync, lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes); 7976 else { 7977 if ((lanes & 62914560) === lanes && (renderWasConcurrent = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(), 10 < renderWasConcurrent)) { 7978 markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings); 7979 if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a; 7980 shouldTimeSlice.timeoutHandle = scheduleTimeout(commitRootWhenReady.bind(null, shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, exitStatus, THROTTLED_COMMIT, renderStartTime, 0), renderWasConcurrent); 7981 break a; 7982 } 7983 commitRootWhenReady(shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, exitStatus, IMMEDIATE_COMMIT, renderStartTime, 0); 7984 } 7985 } 7986 } 7987 break; 7988 }while (1) 7989 ensureRootIsScheduled(root); 7990 } 7991 function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) { 7992 root.timeoutHandle = noTimeout; 7993 suspendedCommitReason = finishedWork.subtreeFlags; 7994 if (suspendedCommitReason & 8192 || 16785408 === (suspendedCommitReason & 16785408)) { 7995 if (suspendedState = { 7996 stylesheets: null, 7997 count: 0, 7998 unsuspend: noop$1 7999 }, accumulateSuspenseyCommitOnFiber(finishedWork), suspendedCommitReason = waitForCommitToBeReady(), null !== suspendedCommitReason) { 8000 root.cancelPendingCommit = suspendedCommitReason(commitRoot.bind(null, root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, SUSPENDED_COMMIT, completedRenderStartTime, completedRenderEndTime)); 8001 markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); 8002 return; 8003 } 8004 } 8005 commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes); 8006 } 8007 function isRenderConsistentWithExternalStores(finishedWork) { 8008 for(var node = finishedWork;;){ 8009 var tag = node.tag; 8010 if ((0 === tag || 11 === tag || 15 === tag) && node.flags & 16384 && (tag = node.updateQueue, null !== tag && (tag = tag.stores, null !== tag))) for(var i = 0; i < tag.length; i++){ 8011 var check = tag[i], getSnapshot = check.getSnapshot; 8012 check = check.value; 8013 try { 8014 if (!objectIs(getSnapshot(), check)) return !1; 8015 } catch (error) { 8016 return !1; 8017 } 8018 } 8019 tag = node.child; 8020 if (node.subtreeFlags & 16384 && null !== tag) tag.return = node, node = tag; 8021 else { 8022 if (node === finishedWork) break; 8023 for(; null === node.sibling;){ 8024 if (null === node.return || node.return === finishedWork) return !0; 8025 node = node.return; 8026 } 8027 node.sibling.return = node.return; 8028 node = node.sibling; 8029 } 8030 } 8031 return !0; 8032 } 8033 function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) { 8034 suspendedLanes &= ~workInProgressRootPingedLanes;
8035 suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; 8036 root.suspendedLanes |= suspendedLanes; 8037 root.pingedLanes &= ~suspendedLanes; 8038 didAttemptEntireTree && (root.warmLanes |= suspendedLanes); 8039 didAttemptEntireTree = root.expirationTimes; 8040 for(var lanes = suspendedLanes; 0 < lanes;){ 8041 var index = 31 - clz32(lanes), lane = 1 << index; 8042 didAttemptEntireTree[index] = -1; 8043 lanes &= ~lane; 8044 } 8045 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes); 8046 } 8047 function flushSyncWork$1() { 8048 return (executionContext & (RenderContext | CommitContext)) === NoContext ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; 8049 } 8050 function resetWorkInProgressStack() { 8051 if (null !== workInProgress) { 8052 if (workInProgressSuspendedReason === NotSuspended) var interruptedWork = workInProgress.return; 8053 else interruptedWork = workInProgress, resetContextDependencies(), resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress; 8054 for(; null !== interruptedWork;)unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return; 8055 workInProgress = null; 8056 } 8057 } 8058 function prepareFreshStack(root, lanes) { 8059 var timeoutHandle = root.timeoutHandle; 8060 timeoutHandle !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(timeoutHandle)); 8061 timeoutHandle = root.cancelPendingCommit; 8062 null !== timeoutHandle && (root.cancelPendingCommit = null, timeoutHandle()); 8063 resetWorkInProgressStack(); 8064 workInProgressRoot = root; 8065 workInProgress = timeoutHandle = createWorkInProgress(root.current, null); 8066 workInProgressRootRenderLanes = lanes; 8067 workInProgressSuspendedReason = NotSuspended; 8068 workInProgressThrownValue = null; 8069 workInProgressRootDidSkipSuspendedSiblings = !1; 8070 workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 8071 workInProgressRootDidAttachPingListener = !1; 8072 workInProgressRootExitStatus = RootInProgress; 8073 workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = w
8073orkInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; 8074 workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; 8075 workInProgressRootDidIncludeRecursiveRenderUpdate = !1; 8076 0 !== (lanes & 8) && (lanes |= lanes & 32); 8077 var allEntangledLanes = root.entangledLanes; 8078 if (0 !== allEntangledLanes) for(root = root.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes;){ 8079 var index = 31 - clz32(allEntangledLanes), lane = 1 << index; 8080 lanes |= root[index]; 8081 allEntangledLanes &= ~lane; 8082 } 8083 entangledRenderLanes = lanes; 8084 finishQueueingConcurrentUpdates(); 8085 lanes = getCurrentTime(); 8086 1e3 < lanes - lastResetTime && (ReactSharedInternals.recentlyCreatedOwnerStacks = 0, lastResetTime = lanes); 8087 ReactStrictModeWarnings.discardPendingWarnings(); 8088 return timeoutHandle; 8089 } 8090 function handleThrow(root, thrownValue) { 8091 currentlyRenderingFiber = null; 8092 ReactSharedInternals.H = ContextOnlyDispatcher; 8093 ReactSharedInternals.getCurrentStack = null; 8094 isRendering = !1; 8095 current = null; 8096 thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnImmediate) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnInstance) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? SuspendedOnHydration : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? SuspendedOnDeprecatedThrowPromise : SuspendedOnError; 8097 workInProgressThrownValue = thrownValue; 8098 var erroredWork = workInProgress; 8099 if (null === erroredWork) workInProgressRootExitStatus = RootFatalErrored, logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 8100 else switch(erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork), markComponentRenderStopped(), workInProgressSuspendedReason){ 8101 case SuspendedOnError: 8102 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentErrored && injectedProfilingHooks.markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); 8103 break; 8104 case SuspendedOnData: 8105 case SuspendedOnAction: 8106 case SuspendedOnImmediate: 8107 case SuspendedOnDeprecatedThrowPromise: 8108 case SuspendedAndReadyToContinue: 8109 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentSuspended && injectedProfilingHooks.markComponentSuspended(erroredWork, thrownValue, workInProgressRootRenderLanes); 8110 } 8111 } 8112 function shouldRemainOnPreviousScreen() { 8113 var handler = suspenseHandlerStackCursor.current; 8114 return null === handler ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? null === shellBoundary ? !0 : !1 : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || 0 !== (workInProgressRootRenderLanes & 536870912) ? handler === shellBoundary : !1; 8115 } 8116 function pushDispatcher() { 8117 var prevDispatcher = ReactSharedInternals.H; 8118 ReactSharedInternals.H = ContextOnlyDispatcher; 8119 return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; 8120 } 8121 function pushAsyncDispatcher() { 8122 var prevAsyncDispatcher = ReactSharedInternals.A; 8123 ReactSharedInternals.A = DefaultAsyncDispatcher; 8124 return prevAsyncDispatcher; 8125 } 8126 function renderDidSuspendDelayIfPossible() { 8127 workInProgressRootExitStatus = RootSuspendedWithDelay; 8128 workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = !0); 8129 0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedU
8129pdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 8130 } 8131 function renderRootSync(root, lanes, shouldYieldForPrerendering) { 8132 var prevExecutionContext = executionContext; 8133 executionContext |= RenderContext; 8134 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 8135 if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { 8136 if (isDevToolsPresent) { 8137 var memoizedUpdaters = root.memoizedUpdaters; 8138 0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 8139 movePendingFibersToMemoized(root, lanes); 8140 } 8141 workInProgressTransitions = null; 8142 prepareFreshStack(root, lanes); 8143 } 8144 markRenderStarted(lanes); 8145 lanes = !1; 8146 memoizedUpdaters = workInProgressRootExitStatus; 8147 a: do try { 8148 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) { 8149 var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue; 8150 switch(workInProgressSuspendedReason){ 8151 case SuspendedOnHydration: 8152 resetWorkInProgressStack(); 8153 memoizedUpdaters = RootSuspendedAtTheShell; 8154 break a; 8155 case SuspendedOnImmediate: 8156 case SuspendedOnData: 8157 case SuspendedOnAction: 8158 case SuspendedOnDeprecatedThrowPromise: 8159 null === suspenseHandlerStackCursor.current && (lanes = !0); 8160 var reason = workInProgressSuspendedReason; 8161 workInProgressSuspendedReason = NotSuspended; 8162 workInProgressThrownValue = null; 8163 throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 8164 if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) { 8165 memoizedUpdaters = RootInProgress; 8166 break a; 8167 } 8168 break; 8169 default: 8170 reason = workInProgressSuspendedReason, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 8171 } 8172 } 8173 workLoopSync(); 8174 memoizedUpdaters = workInProgressRootExitStatus; 8175 break; 8176 } catch (thrownValue$8) { 8177 handleThrow(root, thrownValue$8); 8178 } 8179 while (1) 8180 lanes && root.shellSuspendCounter++; 8181 resetContextDependencies(); 8182 executionContext = prevExecutionContext; 8183 ReactSharedInternals.H = prevDispatcher; 8184 ReactSharedInternals.A = prevAsyncDispatcher; 8185 markRenderStopped(); 8186 null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()); 8187 return memoizedUpdaters; 8188 } 8189 function workLoopSync() { 8190 for(; null !== workInProgress;)performUnitOfWork(workInProgress); 8191 } 8192 function renderRootConcurrent(root, lanes) { 8193 var prevExecutionContext = executionContext; 8194 executionContext |= RenderContext; 8195 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 8196 if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { 8197 if (isDevToolsPresent) { 8198 var memoizedUpdaters = root.memoizedUpdaters; 8199 0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 8200 movePendingFibersToMemoized(root, lanes); 8201 } 8202 workInProgressTransitions = null; 8203 workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; 8204 prepareFreshStack(root, lanes); 8205 } else workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 8206 markRenderStarted(lanes); 8207 a: do try { 8208 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) b: switch(lanes = workInProgress, memoizedUpdaters = workInProgressThrownValue, workInProgressSuspendedReason){ 8209 case SuspendedOnError: 8210 workInProgressSuspendedReason = NotSuspended; 8211 workInProgressThrownValue = null; 8212 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnError); 8213 break; 8214 case SuspendedOnData: 8215 case SuspendedOnAction: 8216 if (isThenableResolved(memoizedUpdaters)) { 8217 workInProgressSuspendedReason = NotSuspended; 8218 workInProgressThrownValue = null; 8219 replaySuspendedUnitOfWork(lanes); 8220 break; 8221 } 8222 lanes = function() { 8223 workInProgressSuspendedReason !== SuspendedOnData && workInProgressSuspendedReason !== SuspendedOnAction || workInProgressRoot !== root || (workInProgressSuspendedReason = SuspendedAndReadyToContinue); 8224 ensureRootIsScheduled(root); 8225 }; 8226 memoizedUpdaters.then(lanes, lanes); 8227 break a; 8228 case SuspendedOnImmediate: 8229 workInProgressSuspendedReason = SuspendedAndReadyToContinue; 8230 break a; 8231 case SuspendedOnInstance: 8232 workInProgressSuspendedReason = SuspendedOnInstanceAndReadyToContinue; 8233 break a; 8234 case SuspendedAndReadyToContinue: 8235 isThenableResolved(memoizedUpdaters) ? (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedAndReadyToContinue)); 8236 break; 8237 case SuspendedOnInstanceAndReadyToContinue: 8238 var resource = null; 8239 switch(workInProgress.tag){ 8240 case 26: 8241 resource = workInProgress.memoizedState; 8242 case 5: 8243 case 27: 8244 var hostFiber = workInProgress; 8245 if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) { 8246 workInProgressSuspendedReason = NotSuspended; 8247 workInProgressThrownValue = null; 8248 var sibling = hostFiber.sibling; 8249 if (null !== sibling) workInProgress = sibling; 8250 else { 8251 var returnFiber = hostFiber.return; 8252 null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null; 8253 } 8254 break b; 8255 } 8256 break; 8257 default: 8258 console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React."); 8259 } 8260 workInProgressSuspendedReason = NotSuspended; 8261 workInProgressThrownValue = null; 8262 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnInstanceAndReadyToContinue); 8263 break; 8264 case SuspendedOnDeprecatedThrowPromise: 8265 workInProgressSuspendedReason = NotSuspended; 8266 workInProgressThrownValue = null; 8267 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnDeprecatedThrowPromise); 8268 break; 8269 case SuspendedOnHydration: 8270 resetWorkInProgressStack(); 8271 workInProgressRootExitStatus = RootSuspendedAtTheShell; 8272 break a; 8273 default: 8274 throw Error("Unexpected SuspendedReason. This is a bug in React."); 8275 } 8276 null !== ReactSharedInternals.actQueue ? workLoopSync() : workLoopConcurrentByScheduler(); 8277 break; 8278 } catch (thrownValue$9) { 8279 handleThrow(root, thrownValue$9); 8280 } 8281 while (1) 8282 resetContextDependencies(); 8283 ReactSharedInternals.H = prevDispatcher; 8284 ReactSharedInternals.A = prevAsyncDispatcher; 8285 executionContext = prevExecutionContext; 8286 if (null !== workInProgress) return null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderYielded && injectedProfilingHooks.markRenderYielded(), RootInProgress; 8287 markRenderStopped(); 8288 workInProgressRoot = null; 8289 workInProgressRootRenderLanes = 0; 8290 finishQueueingConcurrentUpdates(); 8291 return workInProgressRootExitStatus; 8292 } 8293 function workLoopConcurrentByScheduler() { 8294 for(; null !== workInProgress && !shouldYield();)performUnitOfWork(workInProgress); 8295 } 8296 function performUnitOfWork(unitOfWork) { 8297 var current = unitOfWork.alternate; 8298 (unitOfWork.mode & ProfileMode) !== NoMode ? (startProfilerTimer(unitOfWork), current = runWithFiberInDEV(unitOfWork, beginWork, current, unitOfWork, entangledRenderLanes), stopProfilerTimerIfRunningAndRecordDuration(unitOfWork)) : current = runWithFiberInDEV(unitOfWork, beginWork, current, unitOfWork, entangledRenderLanes); 8299 unitOfWork.memoizedProps = unitOfWork.pendingProps; 8300 null === current ? completeUnitOfWork(unitOfWork) : workInProgress = current; 8301 } 8302 function replaySuspendedUnitOfWork(unitOfWork) { 8303 var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); 8304 unitOfWork.memoizedProps = unitOfWork.pendingProps; 8305 null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; 8306 } 8307 function replayBeginWork(unitOfWork) { 8308 var current = unitOfWork.alternate, isProfilingMode = (unitOfWork.mode & ProfileMode) !== NoMode; 8309 isProfilingMode && startProfilerTimer(unitOfWork); 8310 switch(unitOfWork.tag){ 8311 case 15: 8312 case 0: 8313 current = replayFunctionComponent(current, unitOfWork, unitOfWork.pendingProps, unitOfWork.type, void 0, workInProgressRootRenderLanes); 8314 break; 8315 case 11: 8316 current = replayFunctionComponent(current, unitOfWork, unitOfWork.pendingProps, unitOfWork.type.render, unitOfWork.ref, workInProgressRootRenderLanes); 8317 break; 8318 case 5: 8319 resetHooksOnUnwind(unitOfWork); 8320 default: 8321 unwindInterruptedWork(current, unitOfWork), unitOfWork = workInProgress = resetWorkInProgress(unitOfWork, entangledRenderLanes), current = beginWork(current, unitOfWork, entangledRenderLanes); 8322 } 8323 isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); 8324 return current; 8325 } 8326 function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) { 8327 resetContextDependencies(); 8328 resetHooksOnUnwind(unitOfWork); 8329 thenableState$1 = null; 8330 thenableIndexCounter$1 = 0; 8331 var returnFiber = unitOfWork.return; 8332 try { 8333 if (throwException(root, returnFiber, unitOfWork, thrownValue, workInProgressRootRenderLanes)) {
8334 workInProgressRootExitStatus = RootFatalErrored; 8335 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 8336 workInProgress = null; 8337 return; 8338 } 8339 } catch (error) { 8340 if (null !== returnFiber) throw workInProgress = returnFiber, error; 8341 workInProgressRootExitStatus = RootFatalErrored; 8342 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 8343 workInProgress = null; 8344 return; 8345 } 8346 if (unitOfWork.flags & 32768) { 8347 if (isHydrating || suspendedReason === SuspendedOnError) root = !0; 8348 else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912)) root = !1; 8349 else if (workInProgressRootDidSkipSuspendedSiblings = root = !0, suspendedReason === SuspendedOnData || suspendedReason === SuspendedOnAction || suspendedReason === SuspendedOnImmediate || suspendedReason === SuspendedOnDeprecatedThrowPromise) suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384); 8350 unwindUnitOfWork(unitOfWork, root); 8351 } else completeUnitOfWork(unitOfWork); 8352 } 8353 function completeUnitOfWork(unitOfWork) { 8354 var completedWork = unitOfWork; 8355 do { 8356 if (0 !== (completedWork.flags & 32768)) { 8357 unwindUnitOfWork(completedWork, workInProgressRootDidSkipSuspendedSiblings); 8358 return; 8359 } 8360 var current = completedWork.alternate; 8361 unitOfWork = completedWork.return; 8362 startProfilerTimer(completedWork); 8363 current = runWithFiberInDEV(completedWork, completeWork, current, completedWork, entangledRenderLanes); 8364 (completedWork.mode & ProfileMode) !== NoMode && stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork); 8365 if (null !== current) { 8366 workInProgress = current; 8367 return; 8368 } 8369 completedWork = completedWork.sibling; 8370 if (null !== completedWork) { 8371 workInProgress = completedWork; 8372 return; 8373 } 8374 workInProgress = completedWork = unitOfWork; 8375 }while (null !== completedWork) 8376 workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); 8377 } 8378 function unwindUnitOfWork(unitOfWork, skipSiblings) { 8379 do { 8380 var next = unwindWork(unitOfWork.alternate, unitOfWork); 8381 if (null !== next) { 8382 next.flags &= 32767; 8383 workInProgress = next; 8384 return; 8385 } 8386 if ((unitOfWork.mode & ProfileMode) !== NoMode) { 8387 stopProfilerTimerIfRunningAndRecordIncompleteDuration(unitOfWork); 8388 next = unitOfWork.actualDuration; 8389 for(var child = unitOfWork.child; null !== child;)next += child.actualDuration, child = child.sibling; 8390 unitOfWork.actualDuration = next; 8391 } 8392 next = unitOfWork.return; 8393 null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null); 8394 if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) { 8395 workInProgress = unitOfWork; 8396 return; 8397 } 8398 workInProgress = unitOfWork = next; 8399 }while (null !== unitOfWork) 8400 workInProgressRootExitStatus = RootSuspendedAtTheShell; 8401 workInProgress = null; 8402 } 8403 function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) { 8404 root.cancelPendingCommit = null; 8405 do flushPendingEffects(); 8406 while (pendingEffectsStatus !== NO_PENDING_EFFECTS) 8407 ReactStrictModeWarnings.flushLegacyContextWarning(); 8408 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); 8409 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); 8410 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markCommitStarted && injectedProfilingHooks.markCommitStarted(lanes); 8411 if (null === finishedWork) markCommitStopped(); 8412 else { 8413 0 === lanes && console.error("finishedLanes should not be empty during a commit. This is a bug in React."); 8414 if (finishedWork === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); 8415 didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes; 8416 didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes; 8417 markRootFinished(root, lanes, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes); 8418 root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); 8419 pendingFinishedWork = finishedWork; 8420 pendingEffectsRoot = root; 8421 pendingEffectsLanes = lanes; 8422 pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate; 8423 pendingPassiveTransitions = transitions; 8424 pendingRecoverableErrors = recoverableErrors; 8425 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() { 8426 flushPassiveEffects(!0); 8427 return null; 8428 })) : (root.callbackNode = null, root.callbackPriority = 0);
8429 commitStartTime = now(); 8430 recoverableErrors = 0 !== (finishedWork.flags & 13878); 8431 if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { 8432 recoverableErrors = ReactSharedInternals.T; 8433 ReactSharedInternals.T = null; 8434 transitions = ReactDOMSharedInternals.p; 8435 ReactDOMSharedInternals.p = DiscreteEventPriority; 8436 spawnedLane = executionContext; 8437 executionContext |= CommitContext; 8438 try { 8439 commitBeforeMutationEffects(root, finishedWork, lanes); 8440 } finally{ 8441 executionContext = spawnedLane, ReactDOMSharedInternals.p = transitions, ReactSharedInternals.T = recoverableErrors; 8442 } 8443 } 8444 pendingEffectsStatus = PENDING_MUTATION_PHASE; 8445 flushMutationEffects(); 8446 flushLayoutEffects(); 8447 flushSpawnedWork(); 8448 } 8449 } 8450 function flushMutationEffects() { 8451 if (pendingEffectsStatus === PENDING_MUTATION_PHASE) { 8452 pendingEffectsStatus = NO_PENDING_EFFECTS; 8453 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878); 8454 if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) { 8455 rootMutationHasEffect = ReactSharedInternals.T; 8456 ReactSharedInternals.T = null; 8457 var previousPriority = ReactDOMSharedInternals.p; 8458 ReactDOMSharedInternals.p = DiscreteEventPriority; 8459 var prevExecutionContext = executionContext; 8460 executionContext |= CommitContext; 8461 try { 8462 inProgressLanes = lanes; 8463 inProgressRoot = root; 8464 componentEffectStartTime = -1.1; 8465 commitMutationEffectsOnFiber(finishedWork, root); 8466 inProgressRoot = inProgressLanes = null; 8467 lanes = selectionInformation; 8468 var curFocusedElem = getActiveElementDeep(root.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange; 8469 if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(priorFocusedElem.ownerDocument.documentElement, priorFocusedElem)) { 8470 if (null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem)) { 8471 var start = priorSelectionRange.start, end = priorSelectionRange.end; 8472 void 0 === end && (end = start); 8473 if ("selectionStart" in priorFocusedElem) priorFocusedElem.selectionStart = start, priorFocusedElem.selectionEnd = Math.min(end, priorFocusedElem.value.length); 8474 else { 8475 var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window; 8476 if (win.getSelection) { 8477 var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = void 0 === priorSelectionRange.end ? start$jscomp$0 : Math.min(priorSelectionRange.end, length); 8478 !selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem); 8479 var startMarker = getNodeForCharacterOffset(priorFocusedElem, start$jscomp$0), endMarker = getNodeForCharacterOffset(priorFocusedElem, end$jscomp$0); 8480 if (startMarker && endMarker && (1 !== selection.rangeCount || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) { 8481 var range = doc.createRange(); 8482 range.setStart(startMarker.node, startMarker.offset); 8483 selection.removeAllRanges(); 8484 start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endM
8484arker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); 8485 } 8486 } 8487 } 8488 } 8489 doc = []; 8490 for(selection = priorFocusedElem; selection = selection.parentNode;)1 === selection.nodeType && doc.push({ 8491 element: selection, 8492 left: selection.scrollLeft, 8493 top: selection.scrollTop 8494 }); 8495 "function" === typeof priorFocusedElem.focus && priorFocusedElem.focus(); 8496 for(priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++){ 8497 var info = doc[priorFocusedElem]; 8498 info.element.scrollLeft = info.left; 8499 info.element.scrollTop = info.top; 8500 } 8501 } 8502 _enabled = !!eventsEnabled; 8503 selectionInformation = eventsEnabled = null; 8504 } finally{ 8505 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect; 8506 } 8507 } 8508 root.current = finishedWork; 8509 pendingEffectsStatus = PENDING_LAYOUT_PHASE; 8510 } 8511 } 8512 function flushLayoutEffects() { 8513 if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) { 8514 pendingEffectsStatus = NO_PENDING_EFFECTS; 8515 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772); 8516 if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) { 8517 rootHasLayoutEffect = ReactSharedInternals.T; 8518 ReactSharedInternals.T = null; 8519 var _previousPriority = ReactDOMSharedInternals.p; 8520 ReactDOMSharedInternals.p = DiscreteEventPriority; 8521 var _prevExecutionContext = executionContext; 8522 executionContext |= CommitContext; 8523 try { 8524 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && injectedProfilingHooks.markLayoutEffectsStarted(lanes), inProgressLanes = lanes, inProgressRoot = root, componentEffectStartTime = -1.1, commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), inProgressRoot = inProgressLanes = null, null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(); 8525 } finally{ 8526 executionContext = _prevExecutionContext, ReactDOMSharedInternals.p = _previousPriority, ReactSharedInternals.T = rootHasLayoutEffect; 8527 } 8528 } 8529 pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; 8530 } 8531 } 8532 function flushSpawnedWork() { 8533 if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) { 8534 pendingEffectsStatus = NO_PENDING_EFFECTS; 8535 requestPaint(); 8536 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors, rootDidHavePassiveEffects = 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256); 8537 rootDidHavePassiveEffects ? pendingEffectsStatus = PENDING_PASSIVE_PHASE : (pendingEffectsStatus = NO_PENDING_EFFECTS, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root, root.pendingLanes), nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null); 8538 var remainingLanes = root.pendingLanes; 8539 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); 8540 rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(root); 8541 rootDidHavePassiveEffects = lanesToEventPriority(lanes); 8542 finishedWork = finishedWork.stateNode; 8543 if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { 8544 var didError = 128 === (finishedWork.current.flags & 128); 8545 switch(rootDidHavePassiveEffects){ 8546 case DiscreteEventPriority: 8547 var schedulerPriority = ImmediatePriority; 8548 break; 8549 case ContinuousEventPriority: 8550 schedulerPriority = UserBlockingPriority; 8551 break; 8552 case DefaultEventPriority: 8553 schedulerPriority = NormalPriority$1; 8554 break; 8555 case IdleEventPriority: 8556 schedulerPriority = IdlePriority; 8557 break; 8558 default: 8559 schedulerPriority = NormalPriority$1; 8560 } 8561 injectedHook.onCommitFiberRoot(rendererID, finishedWork, schedulerPriority, didError); 8562 } catch (err) { 8563 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 8564 } 8565 isDevToolsPresent && root.memoizedUpdaters.clear(); 8566 onCommitRoot(); 8567 if (null !== recoverableErrors) { 8568 didError = ReactSharedInternals.T; 8569 schedulerPriority = ReactDOMSharedInternals.p; 8570 ReactDOMSharedInternals.p = DiscreteEventPriority; 8571 ReactSharedInternals.T = null; 8572 try { 8573 var onRecoverableError = root.onRecoverableError; 8574 for(finishedWork = 0; finishedWork < recoverableErrors.length; finishedWork++){ 8575 var recoverableError = recoverableErrors[finishedWork], errorInfo = makeErrorInfo(recoverableError.stack); 8576 runWithFiberInDEV(recoverableError.source, onRecoverableError, recoverableError.value, errorInfo); 8577 } 8578 } finally{ 8579 ReactSharedInternals.T = didError, ReactDOMSharedInternals.p = schedulerPriority; 8580 } 8581 } 8582 0 !== (pendingEffectsLanes & 3) && flushPendingEffects(); 8583 ensureRootIsScheduled(root); 8584 remainingLanes = root.pendingLanes; 8585 0 !== (lanes & 4194090) && 0 !== (remainingLanes & 42) ? (nestedUpdateScheduled = !0, root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root)) : nestedUpdateCount = 0; 8586 flushSyncWorkAcrossRoots_impl(0, !1); 8587 markCommitStopped(); 8588 } 8589 } 8590 function makeErrorInfo(componentStack) { 8591 componentStack = { 8592 componentStack: componentStack 8593 }; 8594 Object.defineProperty(componentStack, "digest", { 8595 get: function() { 8596 console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.'); 8597 } 8598 }); 8599 return componentStack; 8600 } 8601 function releaseRootPooledCache(root, remainingLanes) { 8602 0 === (root.pooledCacheLanes &= remainingLanes) && (remainingLanes = root.pooledCache, null != remainingLanes && (root.pooledCache = null, releaseCache(remainingLanes))); 8603 } 8604 function flushPendingEffects(wasDelayedCommit) { 8605 flushMutationEffects(); 8606 flushLayoutEffects(); 8607 flushSpawnedWork(); 8608 return flushPassiveEffects(wasDelayedCommit); 8609 } 8610 function flushPassiveEffects() { 8611 if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return !1; 8612 var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; 8613 pendingEffectsRemainingLanes = 0;
8614 var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = 0 === DefaultEventPriority || DefaultEventPriority > renderPriority ? DefaultEventPriority : renderPriority; 8615 renderPriority = ReactSharedInternals.T; 8616 var previousPriority = ReactDOMSharedInternals.p; 8617 try { 8618 ReactDOMSharedInternals.p = priority; 8619 ReactSharedInternals.T = null; 8620 priority = pendingPassiveTransitions; 8621 pendingPassiveTransitions = null; 8622 var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes; 8623 pendingEffectsStatus = NO_PENDING_EFFECTS; 8624 pendingFinishedWork = pendingEffectsRoot = null; 8625 pendingEffectsLanes = 0; 8626 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Cannot flush passive effects while already rendering."); 8627 isFlushingPassiveEffects = !0; 8628 didScheduleUpdateDuringPassiveEffects = !1; 8629 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markPassiveEffectsStarted && injectedProfilingHooks.markPassiveEffectsStarted(lanes); 8630 var prevExecutionContext = executionContext; 8631 executionContext |= CommitContext; 8632 var finishedWork = root$jscomp$0.current; 8633 componentEffectStartTime = -1.1; 8634 commitPassiveUnmountOnFiber(finishedWork); 8635 var finishedWork$jscomp$0 = root$jscomp$0.current; 8636 componentEffectStartTime = -1.1; 8637 commitPassiveMountOnFiber(root$jscomp$0, finishedWork$jscomp$0, lanes, priority); 8638 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markPassiveEffectsStopped && injectedProfilingHooks.markPassiveEffectsStopped(); 8639 commitDoubleInvokeEffectsInDEV(root$jscomp$0); 8640 executionContext = prevExecutionContext; 8641 flushSyncWorkAcrossRoots_impl(0, !1); 8642 didScheduleUpdateDuringPassiveEffects ? root$jscomp$0 === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ : (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = root$jscomp$0) : nestedPassiveUpdateCount = 0; 8643 didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1; 8644 if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { 8645 injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0); 8646 } catch (err) { 8647 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 8648 } 8649 var stateNode = root$jscomp$0.current.stateNode; 8650 stateNode.effectDuration = 0; 8651 stateNode.passiveEffectDuration = 0; 8652 return !0; 8653 } finally{ 8654 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root, remainingLanes); 8655 } 8656 } 8657 function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { 8658 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 8659 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2); 8660 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); 8661 null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber)); 8662 } 8663 function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { 8664 isRunningInsertionEffect = !1; 8665 if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); 8666 else { 8667 for(; null !== nearestMountedAncestor;){ 8668 if (3 === nearestMountedAncestor.tag) { 8669 captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); 8670 return; 8671 } 8672 if (1 === nearestMountedAncestor.tag) { 8673 var instance = nearestMountedAncestor.stateNode; 8674 if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { 8675 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 8676 error = createClassErrorUpdate(2); 8677 instance = enqueueUpdate(nearestMountedAncestor, error, 2); 8678 null !== instance && (initializeClassErrorUpdate(error, instance, nearestMountedAncestor, sourceFiber), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance)); 8679 return; 8680 } 8681 } 8682 nearestMountedAncestor = nearestMountedAncestor.return; 8683 } 8684 console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", error); 8685 } 8686 } 8687 function attachPingListener(root, wakeable, lanes) { 8688 var pingCache = root.pingCache; 8689 if (null === pingCache) { 8690 pingCache = root.pingCache = new PossiblyWeakMap(); 8691 var threadIDs = new Set(); 8692 pingCache.set(wakeable, threadIDs); 8693 } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)); 8694 threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), pingCache = pingSuspendedRoot.bind(null, root, wakeable, lanes), isDevToolsPresent && restorePendingUpdaters(root, lanes), wakeable.then(pingCache, pingCache)); 8695 } 8696 function pingSuspendedRoot(root, wakeable, pingedLanes) { 8697 var pingCache = root.pingCache; 8698 null !== pingCache && pingCache.delete(wakeable); 8699 root.pingedLanes |= root.suspendedLanes & pingedLanes; 8700 root.warmLanes &= ~pingedLanes;
vendor: 5,373 bytes, lines 8701-8774
8701 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"); 8702 workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS ? (executionContext & RenderContext) === NoContext && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)); 8703 ensureRootIsScheduled(root); 8704 } 8705 function retryTimedOutBoundary(boundaryFiber, retryLane) { 8706 0 === retryLane && (retryLane = claimNextRetryLane()); 8707 boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); 8708 null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber)); 8709 } 8710 function retryDehydratedSuspenseBoundary(boundaryFiber) { 8711 var suspenseState = boundaryFiber.memoizedState, retryLane = 0; 8712 null !== suspenseState && (retryLane = suspenseState.retryLane); 8713 retryTimedOutBoundary(boundaryFiber, retryLane); 8714 } 8715 function resolveRetryWakeable(boundaryFiber, wakeable) { 8716 var retryLane = 0; 8717 switch(boundaryFiber.tag){ 8718 case 31: 8719 case 13: 8720 var retryCache = boundaryFiber.stateNode; 8721 var suspenseState = boundaryFiber.memoizedState; 8722 null !== suspenseState && (retryLane = suspenseState.retryLane); 8723 break; 8724 case 19: 8725 retryCache = boundaryFiber.stateNode; 8726 break; 8727 case 22: 8728 retryCache = boundaryFiber.stateNode._retryCache; 8729 break; 8730 default: 8731 throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); 8732 } 8733 null !== retryCache && retryCache.delete(wakeable); 8734 retryTimedOutBoundary(boundaryFiber, retryLane); 8735 } 8736 function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root$jscomp$0, parentFiber, isInStrictMode) { 8737 if (0 !== (parentFiber.subtreeFlags & 67117056)) for(parentFiber = parentFiber.child; null !== parentFiber;){ 8738 var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; 8739 isStrictModeFiber = isInStrictMode || isStrictModeFiber; 8740 22 !== fiber.tag ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV(fiber, doubleInvokeEffectsOnFiber, root, fiber) : recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, fiber, isStrictModeFiber) : null === fiber.memoizedState && (isStrictModeFiber && fiber.flags & 8192 ? runWithFiberInDEV(fiber, doubleInvokeEffectsOnFiber, root, fiber) : fiber.subtreeFlags & 67108864 && runWithFiberInDEV(fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, root, fiber, isStrictModeFiber)); 8741 parentFiber = parentFiber.sibling; 8742 } 8743 } 8744 function doubleInvokeEffectsOnFiber(root, fiber) { 8745 setIsStrictModeForDevtools(!0); 8746 try { 8747 disappearLayoutEffects(fiber), disconnectPassiveEffect(fiber), reappearLayoutEffects(root, fiber.alternate, fiber, !1), reconnectPassiveEffects(root, fiber, 0, null, !1, 0); 8748 } finally{ 8749 setIsStrictModeForDevtools(!1); 8750 } 8751 } 8752 function commitDoubleInvokeEffectsInDEV(root) { 8753 var doubleInvokeEffects = !0; 8754 root.current.mode & (StrictLegacyMode | StrictEffectsMode) || (doubleInvokeEffects = !1); 8755 recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, root.current, doubleInvokeEffects); 8756 } 8757 function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { 8758 if ((executionContext & RenderContext) === NoContext) { 8759 var tag = fiber.tag; 8760 if (3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag) { 8761 tag = getComponentNameFromFiber(fiber) || "ReactComponent"; 8762 if (null !== didWarnStateUpdateForNotYetMountedComponent) { 8763 if (didWarnStateUpdateForNotYetMountedComponent.has(tag)) return; 8764 didWarnStateUpdateForNotYetMountedComponent.add(tag); 8765 } else didWarnStateUpdateForNotYetMountedComponent = new Set([ 8766 tag 8767 ]); 8768 runWithFiberInDEV(fiber, function() { 8769 console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead."); 8770 }); 8771 } 8772 } 8773 } 8774 function restorePendingUpdaters(root, lanes) {
8775 isDevToolsPresent && root.memoizedUpdaters.forEach(function(schedulingFiber) { 8776 addFiberToLanesMap(root, schedulingFiber, lanes); 8777 }); 8778 } 8779 function scheduleCallback$1(priorityLevel, callback) { 8780 var actQueue = ReactSharedInternals.actQueue; 8781 return null !== actQueue ? (actQueue.push(callback), fakeActCallbackNode$1) : scheduleCallback$3(priorityLevel, callback); 8782 } 8783 function warnIfUpdatesNotWrappedWithActDEV(fiber) { 8784 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && runWithFiberInDEV(fiber, function() { 8785 console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); 8786 }); 8787 } 8788 function ensureRootIsScheduled(root) { 8789 root !== lastScheduledRoot && null === root.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root); 8790 mightHavePendingSyncWork = !0; 8791 null !== ReactSharedInternals.actQueue ? didScheduleMicrotask_act || (didScheduleMicrotask_act = !0, scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask()); 8792 } 8793 function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { 8794 if (!isFlushingWork && mightHavePendingSyncWork) { 8795 isFlushingWork = !0; 8796 do { 8797 var didPerformSomeWork = !1; 8798 for(var root = firstScheduledRoot; null !== root;){ 8799 if (!onlyLegacy) if (0 !== syncTransitionLanes) { 8800 var pendingLanes = root.pendingLanes; 8801 if (0 === pendingLanes) var nextLanes = 0; 8802 else { 8803 var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes; 8804 nextLanes = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1; 8805 nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); 8806 nextLanes = nextLanes & 201326741 ? nextLanes & 201326741 | 1 : nextLanes ? nextLanes | 2 : 0; 8807 } 8808 0 !== nextLanes && (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes)); 8809 } else nextLanes = workInProgressRootRenderLanes, nextLanes = getNextLanes(root, root === workInProgressRoot ? nextLanes : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout), 0 === (nextLanes & 3) || checkIfRootIsPrerendering(root, nextLanes) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes)); 8810 root = root.next; 8811 } 8812 }while (didPerformSomeWork) 8813 isFlushingWork = !1; 8814 } 8815 } 8816 function processRootScheduleInImmediateTask() { 8817 processRootScheduleInMicrotask(); 8818 } 8819 function processRootScheduleInMicrotask() { 8820 mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = !1; 8821 var syncTransitionLanes = 0; 8822 0 !== currentEventTransitionLane && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane); 8823 for(var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root;){ 8824 var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); 8825 if (0 === nextLanes) root.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev); 8826 else if (prev = root, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) mightHavePendingSyncWork = !0; 8827 root = next; 8828 } 8829 pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); 8830 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); 8831 } 8832 function scheduleTaskForRootDuringMicrotask(root, currentTime) { 8833 for(var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes;){ 8834 var index = 31 - clz32(lanes), lane = 1 << index, expirationTime = expirationTimes[index]; 8835 if (-1 === expirationTime) { 8836 if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index] = computeExpirationTime(lane, currentTime); 8837 } else expirationTime <= currentTime && (root.expiredLanes |= lane); 8838 lanes &= ~lane; 8839 } 8840 currentTime = workInProgressRoot;
8841 suspendedLanes = workInProgressRootRenderLanes; 8842 suspendedLanes = getNextLanes(root, root === currentTime ? suspendedLanes : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout); 8843 pingedLanes = root.callbackNode; 8844 if (0 === suspendedLanes || root === currentTime && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root.cancelPendingCommit) return null !== pingedLanes && cancelCallback(pingedLanes), root.callbackNode = null, root.callbackPriority = 0; 8845 if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root, suspendedLanes)) { 8846 currentTime = suspendedLanes & -suspendedLanes; 8847 if (currentTime !== root.callbackPriority || null !== ReactSharedInternals.actQueue && pingedLanes !== fakeActCallbackNode) cancelCallback(pingedLanes); 8848 else return currentTime; 8849 switch(lanesToEventPriority(suspendedLanes)){ 8850 case DiscreteEventPriority: 8851 case ContinuousEventPriority: 8852 suspendedLanes = UserBlockingPriority; 8853 break; 8854 case DefaultEventPriority: 8855 suspendedLanes = NormalPriority$1; 8856 break; 8857 case IdleEventPriority: 8858 suspendedLanes = IdlePriority; 8859 break; 8860 default: 8861 suspendedLanes = NormalPriority$1; 8862 } 8863 pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); 8864 null !== ReactSharedInternals.actQueue ? (ReactSharedInternals.actQueue.push(pingedLanes), suspendedLanes = fakeActCallbackNode) : suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); 8865 root.callbackPriority = currentTime; 8866 root.callbackNode = suspendedLanes; 8867 return currentTime; 8868 } 8869 null !== pingedLanes && cancelCallback(pingedLanes); 8870 root.callbackPriority = 2; 8871 root.callbackNode = null; 8872 return 2; 8873 } 8874 function performWorkOnRootViaSchedulerTask(root, didTimeout) { 8875 nestedUpdateScheduled = currentUpdateIsNested = !1; 8876 if (pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return root.callbackNode = null, root.callbackPriority = 0, null; 8877 var originalCallbackNode = root.callbackNode; 8878 if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) return null; 8879 var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes; 8880 workInProgressRootRenderLanes$jscomp$0 = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout); 8881 if (0 === workInProgressRootRenderLanes$jscomp$0) return null; 8882 performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout); 8883 scheduleTaskForRootDuringMicrotask(root, now$1()); 8884 return null != root.callbackNode && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null; 8885 } 8886 function performSyncWorkOnRoot(root, lanes) { 8887 if (flushPendingEffects()) return null; 8888 currentUpdateIsNested = nestedUpdateScheduled; 8889 nestedUpdateScheduled = !1; 8890 performWorkOnRoot(root, lanes, !0); 8891 } 8892 function cancelCallback(callbackNode) { 8893 callbackNode !== fakeActCallbackNode && null !== callbackNode && cancelCallback$1(callbackNode); 8894 } 8895 function scheduleImmediateRootScheduleTask() { 8896 null !== ReactSharedInternals.actQueue && ReactSharedInternals.actQueue.push(function() { 8897 processRootScheduleInMicrotask(); 8898 return null; 8899 }); 8900 scheduleMicrotask(function() { 8901 (executionContext & (RenderContext | CommitContext)) !== NoContext ? scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask) : processRootScheduleInMicrotask(); 8902 }); 8903 } 8904 function requestTransitionLane() { 8905 if (0 === currentEventTransitionLane) { 8906 var actionScopeLane = currentEntangledLane; 8907 currentEventTransitionLane = 0 !== actionScopeLane ? actionScopeLane : claimNextTransitionLane(); 8908 } 8909 return currentEventTransitionLane; 8910 } 8911 function coerceFormActionProp(actionProp) { 8912 if (null == actionProp || "symbol" === typeof actionProp || "boolean" === typeof actionProp) return null; 8913 if ("function" === typeof actionProp) return actionProp; 8914 checkAttributeStringCoercion(actionProp, "action"); 8915 return sanitizeURL("" + actionProp); 8916 } 8917 function createFormDataWithSubmitter(form, submitter) { 8918 var temp = submitter.ownerDocument.createElement("input"); 8919 temp.name = submitter.name; 8920 temp.value = submitter.value; 8921 form.id && temp.setAttribute("form", form.id); 8922 submitter.parentNode.insertBefore(temp, submitter); 8923 form = new FormData(form); 8924 temp.parentNode.removeChild(temp); 8925 return form; 8926 } 8927 function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEvent, nativeEventTarget) { 8928 if ("submit" === domEventName && maybeTargetInst && maybeTargetInst.stateNode === nativeEventTarget) { 8929 var action = coerceFormActionProp((nativeEventTarget[internalPropsKey] || null).action), submitter = nativeEvent.submitter; 8930 submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), null !== domEventName && (action = domEventName, submitter = null)); 8931 var event = new SyntheticEvent("action", "action", null, nativeEvent, nativeEventTarget); 8932 dispatchQueue.push({ 8933 event: event, 8934 listeners: [ 8935 { 8936 instance: null, 8937 listener: function() { 8938 if (nativeEvent.defaultPrevented) { 8939 if (0 !== currentEventTransitionLane) { 8940 var formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), pendingState = { 8941 pending: !0, 8942 data: formData, 8943 method: nativeEventTarget.method, 8944 action: action 8945 }; 8946 Object.freeze(pendingState); 8947 startHostTransition(maybeTargetInst, pendingState, null, formData); 8948 } 8949 } else "function" === typeof action && (event.preventDefault(), formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), pendingState = { 8950 pending: !0, 8951 data: formData, 8952 method: nativeEventTarget.method, 8953 action: action 8954 }, Object.freeze(pendingState), startHostTransition(maybeTargetInst, pendingState, action, formData)); 8955 }, 8956 currentTarget: nativeEventTarget 8957 } 8958 ] 8959 }); 8960 } 8961 } 8962 function executeDispatch(event, listener, currentTarget) { 8963 event.currentTarget = currentTarget; 8964 try { 8965 listener(event); 8966 } catch (error) { 8967 reportGlobalError(error); 8968 } 8969 event.currentTarget = null; 8970 }
vendor: 22,266 bytes, lines 8971-9285
8971 function processDispatchQueue(dispatchQueue, eventSystemFlags) { 8972 eventSystemFlags = 0 !== (eventSystemFlags & 4); 8973 for(var i = 0; i < dispatchQueue.length; i++){ 8974 var _dispatchQueue$i = dispatchQueue[i]; 8975 a: { 8976 var previousInstance = void 0, event = _dispatchQueue$i.event; 8977 _dispatchQueue$i = _dispatchQueue$i.listeners; 8978 if (eventSystemFlags) for(var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--){ 8979 var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget; 8980 _dispatchListeners$i = _dispatchListeners$i.listener; 8981 if (instance !== previousInstance && event.isPropagationStopped()) break a; 8982 null !== instance ? runWithFiberInDEV(instance, executeDispatch, event, _dispatchListeners$i, currentTarget) : executeDispatch(event, _dispatchListeners$i, currentTarget); 8983 previousInstance = instance; 8984 } 8985 else for(i$jscomp$0 = 0; i$jscomp$0 < _dispatchQueue$i.length; i$jscomp$0++){ 8986 _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0]; 8987 instance = _dispatchListeners$i.instance; 8988 currentTarget = _dispatchListeners$i.currentTarget; 8989 _dispatchListeners$i = _dispatchListeners$i.listener; 8990 if (instance !== previousInstance && event.isPropagationStopped()) break a; 8991 null !== instance ? runWithFiberInDEV(instance, executeDispatch, event, _dispatchListeners$i, currentTarget) : executeDispatch(event, _dispatchListeners$i, currentTarget); 8992 previousInstance = instance; 8993 } 8994 } 8995 } 8996 } 8997 function listenToNonDelegatedEvent(domEventName, targetElement) { 8998 nonDelegatedEvents.has(domEventName) || console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.', domEventName); 8999 var listenerSet = targetElement[internalEventHandlersKey]; 9000 void 0 === listenerSet && (listenerSet = targetElement[internalEventHandlersKey] = new Set()); 9001 var listenerSetKey = domEventName + "__bubble"; 9002 listenerSet.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, !1), listenerSet.add(listenerSetKey)); 9003 } 9004 function listenToNativeEvent(domEventName, isCapturePhaseListener, target) { 9005 nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener && console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.', domEventName); 9006 var eventSystemFlags = 0; 9007 isCapturePhaseListener && (eventSystemFlags |= 4); 9008 addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener); 9009 } 9010 function listenToAllSupportedEvents(rootContainerElement) { 9011 if (!rootContainerElement[listeningMarker]) { 9012 rootContainerElement[listeningMarker] = !0; 9013 allNativeEvents.forEach(function(domEventName) { 9014 "selectionchange" !== domEventName && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, !1, rootContainerElement), listenToNativeEvent(domEventName, !0, rootContainerElement)); 9015 }); 9016 var ownerDocument = 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 9017 null === ownerDocument || ownerDocument[listeningMarker] || (ownerDocument[listeningMarker] = !0, listenToNativeEvent("selectionchange", !1, ownerDocument)); 9018 } 9019 } 9020 function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener) { 9021 switch(getEventPriority(domEventName)){ 9022 case DiscreteEventPriority: 9023 var listenerWrapper = dispatchDiscreteEvent; 9024 break; 9025 case ContinuousEventPriority: 9026 listenerWrapper = dispatchContinuousEvent; 9027 break; 9028 default: 9029 listenerWrapper = dispatchEvent; 9030 } 9031 eventSystemFlags = listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer); 9032 listenerWrapper = void 0; 9033 !passiveBrowserEventsSupported || "touchstart" !== domEventName && "touchmove" !== domEventName && "wheel" !== domEventName || (listenerWrapper = !0); 9034 isCapturePhaseListener ? void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 9035 capture: !0, 9036 passive: listenerWrapper 9037 }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !0) : void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 9038 passive: listenerWrapper 9039 }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !1); 9040 } 9041 function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) { 9042 var ancestorInst = targetInst$jscomp$0; 9043 if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0) a: for(;;){ 9044 if (null === targetInst$jscomp$0) return; 9045 var nodeTag = targetInst$jscomp$0.tag; 9046 if (3 === nodeTag || 4 === nodeTag) { 9047 var container = targetInst$jscomp$0.stateNode.containerInfo; 9048 if (container === targetContainer) break; 9049 if (4 === nodeTag) for(nodeTag = targetInst$jscomp$0.return; null !== nodeTag;){ 9050 var grandTag = nodeTag.tag; 9051 if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer) return; 9052 nodeTag = nodeTag.return; 9053 } 9054 for(; null !== container;){ 9055 nodeTag = getClosestInstanceFromNode(container); 9056 if (null === nodeTag) return; 9057 grandTag = nodeTag.tag; 9058 if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) { 9059 targetInst$jscomp$0 = ancestorInst = nodeTag; 9060 continue a; 9061 } 9062 container = container.parentNode; 9063 } 9064 } 9065 targetInst$jscomp$0 = targetInst$jscomp$0.return; 9066 } 9067 batchedUpdates$1(function() { 9068 var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; 9069 a: { 9070 var reactName = topLevelEventsToReactNames.get(domEventName); 9071 if (void 0 !== reactName) { 9072 var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName; 9073 switch(domEventName){ 9074 case "keypress": 9075 if (0 === getEventCharCode(nativeEvent)) break a; 9076 case "keydown": 9077 case "keyup": 9078 SyntheticEventCtor = SyntheticKeyboardEvent; 9079 break; 9080 case "focusin": 9081 reactEventType = "focus"; 9082 SyntheticEventCtor = SyntheticFocusEvent; 9083 break; 9084 case "focusout": 9085 reactEventType = "blur"; 9086 SyntheticEventCtor = SyntheticFocusEvent; 9087 break; 9088 case "beforeblur": 9089 case "afterblur": 9090 SyntheticEventCtor = SyntheticFocusEvent; 9091 break; 9092 case "click": 9093 if (2 === nativeEvent.button) break a; 9094 case "auxclick": 9095 case "dblclick": 9096 case "mousedown": 9097 case "mousemove": 9098 case "mouseup": 9099 case "mouseout": 9100 case "mouseover": 9101 case "contextmenu": 9102 SyntheticEventCtor = SyntheticMouseEvent; 9103 break; 9104 case "drag": 9105 case "dragend": 9106 case "dragenter": 9107 case "dragexit": 9108 case "dragleave": 9109 case "dragover": 9110 case "dragstart": 9111 case "drop": 9112 SyntheticEventCtor = SyntheticDragEvent; 9113 break; 9114 case "touchcancel": 9115 case "touchend": 9116 case "touchmove": 9117 case "touchstart": 9118 SyntheticEventCtor = SyntheticTouchEvent; 9119 break; 9120 case ANIMATION_END: 9121 case ANIMATION_ITERATION: 9122 case ANIMATION_START: 9123 SyntheticEventCtor = SyntheticAnimationEvent; 9124 break; 9125 case TRANSITION_END: 9126 SyntheticEventCtor = SyntheticTransitionEvent; 9127 break; 9128 case "scroll": 9129 case "scrollend": 9130 SyntheticEventCtor = SyntheticUIEvent; 9131 break; 9132 case "wheel": 9133 SyntheticEventCtor = SyntheticWheelEvent; 9134 break; 9135 case "copy": 9136 case "cut": 9137 case "paste": 9138 SyntheticEventCtor = SyntheticClipboardEvent; 9139 break; 9140 case "gotpointercapture": 9141 case "lostpointercapture": 9142 case "pointercancel": 9143 case "pointerdown": 9144 case "pointermove": 9145 case "pointerout": 9146 case "pointerover": 9147 case "pointerup": 9148 SyntheticEventCtor = SyntheticPointerEvent; 9149 break; 9150 case "toggle": 9151 case "beforetoggle": 9152 SyntheticEventCtor = SyntheticToggleEvent; 9153 } 9154 var inCapturePhase = 0 !== (eventSystemFlags & 4), accumulateTargetOnly = !inCapturePhase && ("scroll" === domEventName || "scrollend" === domEventName), reactEventName = inCapturePhase ? null !== reactName ? reactName + "Capture" : null : reactName; 9155 inCapturePhase = []; 9156 for(var instance = targetInst, lastHostComponent; null !== instance;){ 9157 var _instance2 = instance; 9158 lastHostComponent = _instance2.stateNode; 9159 _instance2 = _instance2.tag; 9160 5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2 || null === lastHostComponent || null === reactEventName || (_instance2 = getListener(instance, reactEventName), null != _instance2 && inCapturePhase.push(createDispatchListener(instance, _instance2, lastHostComponent))); 9161 if (accumulateTargetOnly) break; 9162 instance = instance.return; 9163 } 9164 0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9165 event: reactName, 9166 listeners: inCapturePhase 9167 })); 9168 } 9169 } 9170 if (0 === (eventSystemFlags & 7)) { 9171 a: { 9172 reactName = "mouseover" === domEventName || "pointerover" === domEventName; 9173 SyntheticEventCtor = "mouseout" === domEventName || "pointerout" === domEventName; 9174 if (reactName && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey])) break a; 9175 if (SyntheticEventCtor || reactName) { 9176 reactName = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget : (reactName = nativeEventTarget.ownerDocument) ? reactName.defaultView || reactName.parentWindow : window; 9177 if (SyntheticEventCtor) { 9178 if (reactEventType = nativeEvent.relatedTarget || nativeEvent.toElement, SyntheticEventCtor = targetInst, reactEventType = reactEventType ? getClosestInstanceFromNode(reactEventType) : null, null !== reactEventType && (accumulateTargetOnly = getNearestMountedFiber(reactEventType), inCapturePhase = reactEventType.tag, reactEventType !== accumulateTargetOnly || 5 !== inCapturePhase && 27 !== inCapturePhase && 6 !== inCapturePhase)) reactEventType = null; 9179 } else SyntheticEventCtor = null, reactEventType = targetInst; 9180 if (SyntheticEventCtor !== reactEventType) { 9181 inCapturePhase = SyntheticMouseEvent; 9182 _instance2 = "onMouseLeave"; 9183 reactEventName = "onMouseEnter"; 9184 instance = "mouse"; 9185 if ("pointerout" === domEventName || "pointerover" === domEventName) inCapturePhase = SyntheticPointerEvent, _instance2 = "onPointerLeave", reactEventName = "onPointerEnter", instance = "pointer"; 9186 accumulateTargetOnly = null == SyntheticEventCtor ? reactName : getNodeFromInstance(SyntheticEventCtor); 9187 lastHostComponent = null == reactEventType ? reactName : getNodeFromInstance(reactEventType); 9188 reactName = new inCapturePhase(_instance2, instance + "leave", SyntheticEventCtor, nativeEvent, nativeEventTarget); 9189 reactName.target = accumulateTargetOnly; 9190 reactName.relatedTarget = lastHostComponent; 9191 _instance2 = null; 9192 getClosestInstanceFromNode(nativeEventTarget) === targetInst && (inCapturePhase = new inCapturePhase(reactEventName, instance + "enter", reactEventType, nativeEvent, nativeEventTarget), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance2 = inCapturePhase); 9193 accumulateTargetOnly = _instance2; 9194 if (SyntheticEventCtor && reactEventType) b: { 9195 inCapturePhase = getParent; 9196 reactEventName = SyntheticEventCtor; 9197 instance = reactEventType; 9198 lastHostComponent = 0; 9199 for(_instance2 = reactEventName; _instance2; _instance2 = inCapturePhase(_instance2))lastHostComponent++; 9200 _instance2 = 0; 9201 for(var tempB = instance; tempB; tempB = inCapturePhase(tempB))_instance2++; 9202 for(; 0 < lastHostComponent - _instance2;)reactEventName = inCapturePhase(reactEventName), lastHostComponent--; 9203 for(; 0 < _instance2 - lastHostComponent;)instance = inCapturePhase(instance), _instance2--; 9204 for(; lastHostComponent--;){ 9205 if (reactEventName === instance || null !== instance && reactEventName === instance.alternate) { 9206 inCapturePhase = reactEventName; 9207 break b; 9208 } 9209 reactEventName = inCapturePhase(reactEventName); 9210 instance = inCapturePhase(instance); 9211 } 9212 inCapturePhase = null; 9213 } 9214 else inCapturePhase = null; 9215 null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent(dispatchQueue, reactName, SyntheticEventCtor, inCapturePhase, !1); 9216 null !== reactEventType && null !== accumulateTargetOnly && accumulateEnterLeaveListenersForEvent(dispatchQueue, accumulateTargetOnly, reactEventType, inCapturePhase, !0); 9217 } 9218 } 9219 } 9220 a: { 9221 reactName = targetInst ? getNodeFromInstance(targetInst) : window; 9222 SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase(); 9223 if ("select" === SyntheticEventCtor || "input" === SyntheticEventCtor && "file" === reactName.type) var getTargetInstFunc = getTargetInstForChangeEvent; 9224 else if (isTextInputElement(reactName)) if (isInputEventSupported) getTargetInstFunc = getTargetInstForInputOrChangeEvent; 9225 else { 9226 getTargetInstFunc = getTargetInstForInputEventPolyfill; 9227 var handleEventFunc = handleEventsForInputEventPolyfill; 9228 } 9229 else SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor || "input" !== SyntheticEventCtor.toLowerCase() || "checkbox" !== reactName.type && "radio" !== reactName.type ? targetInst && isCustomElement(targetInst.elementType) && (getTargetInstFunc = getTargetInstForChangeEvent) : getTargetInstFunc = getTargetInstForClickEvent; 9230 if (getTargetInstFunc && (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))) { 9231 createAndAccumulateChangeEvent(dispatchQueue, getTargetInstFunc, nativeEvent, nativeEventTarget); 9232 break a; 9233 } 9234 handleEventFunc && handleEventFunc(domEventName, reactName, targetInst); 9235 "focusout" === domEventName && targetInst && "number" === reactName.type && null != targetInst.memoizedProps.value && setDefaultValue(reactName, "number", reactName.value); 9236 } 9237 handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window; 9238 switch(domEventName){ 9239 case "focusin": 9240 if (isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable) activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null; 9241 break; 9242 case "focusout": 9243 lastSelection = activeElementInst = activeElement = null; 9244 break; 9245 case "mousedown": 9246 mouseDown = !0; 9247 break; 9248 case "contextmenu": 9249 case "mouseup": 9250 case "dragend": 9251 mouseDown = !1; 9252 constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 9253 break; 9254 case "selectionchange": 9255 if (skipSelectionChangeEvent) break; 9256 case "keydown": 9257 case "keyup": 9258 constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 9259 } 9260 var fallbackData; 9261 if (canUseCompositionEvent) b: { 9262 switch(domEventName){ 9263 case "compositionstart": 9264 var eventType = "onCompositionStart"; 9265 break b; 9266 case "compositionend": 9267 eventType = "onCompositionEnd"; 9268 break b; 9269 case "compositionupdate": 9270 eventType = "onCompositionUpdate"; 9271 break b; 9272 } 9273 eventType = void 0; 9274 } 9275 else isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : "keydown" === domEventName && nativeEvent.keyCode === START_KEYCODE && (eventType = "onCompositionStart"); 9276 eventType && (useFallbackCompositionData && "ko" !== nativeEvent.locale && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : (root = nativeEventTarget, startText = "value" in root ? root.value : root.textContent, isComposing = !0)), handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType), 0 < handleEventFunc.length && (eventType = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9277 event: eventType, 9278 listeners: handleEventFunc 9279 }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent), null !== fallbackData && (eventType.data = fallbackData)))); 9280 if (fallbackData = canUseTextInputEvent ? getNativeBeforeInputChars(domEventName, nativeEvent) : getFallbackBeforeInputChars(domEventName, nativeEvent)) eventType = accumulateTwoPhaseListeners(targetInst, "onBeforeInput"), 0 < eventType.length && (handleEventFunc = new SyntheticInputEvent("onBeforeInput", "beforeinput", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9281 event: handleEventFunc, 9282 listeners: eventType 9283 }), handleEventFunc.data = fallbackData); 9284 extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); 9285 }
vendor: 21,906 bytes, lines 9286-9592
9286 processDispatchQueue(dispatchQueue, eventSystemFlags); 9287 }); 9288 } 9289 function createDispatchListener(instance, listener, currentTarget) { 9290 return { 9291 instance: instance, 9292 listener: listener, 9293 currentTarget: currentTarget 9294 }; 9295 } 9296 function accumulateTwoPhaseListeners(targetFiber, reactName) { 9297 for(var captureName = reactName + "Capture", listeners = []; null !== targetFiber;){ 9298 var _instance3 = targetFiber, stateNode = _instance3.stateNode; 9299 _instance3 = _instance3.tag; 9300 5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (_instance3 = getListener(targetFiber, captureName), null != _instance3 && listeners.unshift(createDispatchListener(targetFiber, _instance3, stateNode)), _instance3 = getListener(targetFiber, reactName), null != _instance3 && listeners.push(createDispatchListener(targetFiber, _instance3, stateNode))); 9301 if (3 === targetFiber.tag) return listeners; 9302 targetFiber = targetFiber.return; 9303 } 9304 return []; 9305 } 9306 function getParent(inst) { 9307 if (null === inst) return null; 9308 do inst = inst.return; 9309 while (inst && 5 !== inst.tag && 27 !== inst.tag) 9310 return inst ? inst : null; 9311 } 9312 function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { 9313 for(var registrationName = event._reactName, listeners = []; null !== target && target !== common;){ 9314 var _instance4 = target, alternate = _instance4.alternate, stateNode = _instance4.stateNode; 9315 _instance4 = _instance4.tag; 9316 if (null !== alternate && alternate === common) break; 9317 5 !== _instance4 && 26 !== _instance4 && 27 !== _instance4 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift(createDispatchListener(target, stateNode, alternate))) : inCapturePhase || (stateNode = getListener(target, registrationName), null != stateNode && listeners.push(createDispatchListener(target, stateNode, alternate)))); 9318 target = target.return; 9319 } 9320 0 !== listeners.length && dispatchQueue.push({ 9321 event: event, 9322 listeners: listeners 9323 }); 9324 } 9325 function validatePropertiesInDevelopment(type, props) { 9326 validateProperties$2(type, props); 9327 "input" !== type && "textarea" !== type && "select" !== type || null == props || null !== props.value || didWarnValueNull || (didWarnValueNull = !0, "select" === type && props.multiple ? console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", type) : console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", type)); 9328 var eventRegistry = { 9329 registrationNameDependencies: registrationNameDependencies, 9330 possibleRegistrationNames: possibleRegistrationNames 9331 }; 9332 isCustomElement(type) || "string" === typeof props.is || warnUnknownProperties(type, props, eventRegistry); 9333 props.contentEditable && !props.suppressContentEditableWarning && null != props.children && console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."); 9334 } 9335 function warnForPropDifference(propName, serverValue, clientValue, serverDifferences) { 9336 serverValue !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(serverValue) !== clientValue && (serverDifferences[propName] = serverValue)); 9337 } 9338 function warnForExtraAttributes(domElement, attributeNames, serverDifferences) { 9339 attributeNames.forEach(function(attributeName) { 9340 serverDifferences[getPropNameFromAttributeName(attributeName)] = "style" === attributeName ? getStylesObjectFromElement(domElement) : domElement.getAttribute(attributeName); 9341 }); 9342 } 9343 function warnForInvalidEventListener(registrationName, listener) { 9344 !1 === listener ? console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", registrationName, registrationName, registrationName) : console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); 9345 } 9346 function normalizeHTML(parent, html) { 9347 parent = parent.namespaceURI === MATH_NAMESPACE || parent.namespaceURI === SVG_NAMESPACE ? parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName) : parent.ownerDocument.createElement(parent.tagName); 9348 parent.innerHTML = html; 9349 return parent.innerHTML; 9350 } 9351 function normalizeMarkupForTextOrAttribute(markup) { 9352 willCoercionThrow(markup) && (console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", typeName(markup)), testStringCoercion(markup)); 9353 return ("string" === typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 9354 } 9355 function checkForUnmatchedText(serverText, clientText) { 9356 clientText = normalizeMarkupForTextOrAttribute(clientText); 9357 return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1; 9358 } 9359 function setProp(domElement, tag, key, value, props, prevValue) { 9360 switch(key){ 9361 case "children": 9362 if ("string" === typeof value) validateTextNesting(value, tag, !1), "body" === tag || "textarea" === tag && "" === value || setTextContent(domElement, value); 9363 else if ("number" === typeof value || "bigint" === typeof value) validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); 9364 break; 9365 case "className": 9366 setValueForKnownAttribute(domElement, "class", value); 9367 break; 9368 case "tabIndex": 9369 setValueForKnownAttribute(domElement, "tabindex", value); 9370 break; 9371 case "dir": 9372 case "role": 9373 case "viewBox": 9374 case "width": 9375 case "height": 9376 setValueForKnownAttribute(domElement, key, value); 9377 break; 9378 case "style": 9379 setValueForStyles(domElement, value, prevValue); 9380 break; 9381 case "data": 9382 if ("object" !== tag) { 9383 setValueForKnownAttribute(domElement, "data", value); 9384 break; 9385 } 9386 case "src": 9387 case "href": 9388 if ("" === value && ("a" !== tag || "href" !== key)) { 9389 "src" === key ? console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', key, key) : console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', key, key); 9390 domElement.removeAttribute(key); 9391 break; 9392 } 9393 if (null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) { 9394 domElement.removeAttribute(key); 9395 break; 9396 } 9397 checkAttributeStringCoercion(value, key); 9398 value = sanitizeURL("" + value); 9399 domElement.setAttribute(key, value); 9400 break; 9401 case "action": 9402 case "formAction": 9403 null != value && ("form" === tag ? "formAction" === key ? console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.") : "function" === typeof value && (null == props.encType && null == props.method || didWarnFormActionMethod || (didWarnFormActionMethod = !0, console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")), null == props.target || didWarnFormActionTarget || (didWarnFormActionTarget = !0, console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))) : "input" === tag || "button" === tag ? "action" === key ? console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.") : "input" !== tag || "submit" === props.type || "image" === props.type || didWarnFormActionType ? "button" !== tag || null == props.type || "submit" === props.type || didWarnFormActionType ? "function" === typeof value && (null == props.name || didWarnFormActionName || (didWarnFormActionName = !0, console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')), null == props.formEncType && null == props.formMethod || didWarnFormActionMethod || (didWarnFormActionMethod = !0, console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")), null == props.formTarget || didWarnFormActionTarget || (didWarnFormActionTarget = !0, console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))) : (didWarnFormActionType = !0, console.error('A button can only specify a formAction along with type="submit" or no type.')) : (didWarnFormActionType = !0, console.error('An input can only specify a formAction along with type="submit" or type="image".')) : "action" === key ? console.error("You can only pass the action prop to <form>.") : console.error("You can only pass the formAction prop to <input> or <button>.")); 9404 if ("function" === typeof value) { 9405 domElement.setAttribute(key, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')"); 9406 break; 9407 } else "function" === typeof prevValue && ("formAction" === key ? ("input" !== tag && setProp(domElement, tag, "name", props.name, props, null), setProp(domElement, tag, "formEncType", props.formEncType, props, null), setProp(domElement, tag, "formMethod", props.formMethod, props, null), setProp(domElement, tag, "formTarget", props.formTarget, props, null)) : (setProp(domElement, tag, "encType", props.encType, props, null), setProp(domElement, tag, "method", props.method, props, null), setProp(domElement, tag, "target", props.target, props, null))); 9408 if (null == value || "symbol" === typeof value || "boolean" === typeof value) { 9409 domElement.removeAttribute(key); 9410 break; 9411 } 9412 checkAttributeStringCoercion(value, key); 9413 value = sanitizeURL("" + value); 9414 domElement.setAttribute(key, value); 9415 break; 9416 case "onClick": 9417 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 9418 break; 9419 case "onScroll": 9420 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 9421 break; 9422 case "onScrollEnd": 9423 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 9424 break; 9425 case "dangerouslySetInnerHTML": 9426 if (null != value) { 9427 if ("object" !== typeof value || !("__html" in value)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."); 9428 key = value.__html; 9429 if (null != key) { 9430 if (null != props.children) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); 9431 domElement.innerHTML = key; 9432 } 9433 } 9434 break; 9435 case "multiple": 9436 domElement.multiple = value && "function" !== typeof value && "symbol" !== typeof value; 9437 break; 9438 case "muted": 9439 domElement.muted = value && "function" !== typeof value && "symbol" !== typeof value; 9440 break; 9441 case "suppressContentEditableWarning": 9442 case "suppressHydrationWarning": 9443 case "defaultValue": 9444 case "defaultChecked": 9445 case "innerHTML": 9446 case "ref": 9447 break; 9448 case "autoFocus": 9449 break; 9450 case "xlinkHref": 9451 if (null == value || "function" === typeof value || "boolean" === typeof value || "symbol" === typeof value) { 9452 domElement.removeAttribute("xlink:href"); 9453 break; 9454 } 9455 checkAttributeStringCoercion(value, key); 9456 key = sanitizeURL("" + value); 9457 domElement.setAttributeNS(xlinkNamespace, "xlink:href", key); 9458 break; 9459 case "contentEditable": 9460 case "spellCheck": 9461 case "draggable": 9462 case "value": 9463 case "autoReverse": 9464 case "externalResourcesRequired": 9465 case "focusable": 9466 case "preserveAlpha": 9467 null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, "" + value)) : domElement.removeAttribute(key); 9468 break; 9469 case "inert": 9470 "" !== value || didWarnForNewBooleanPropsWithEmptyValue[key] || (didWarnForNewBooleanPropsWithEmptyValue[key] = !0, console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", key)); 9471 case "allowFullScreen": 9472 case "async": 9473 case "autoPlay": 9474 case "controls": 9475 case "default": 9476 case "defer": 9477 case "disabled": 9478 case "disablePictureInPicture": 9479 case "disableRemotePlayback": 9480 case "formNoValidate": 9481 case "hidden": 9482 case "loop": 9483 case "noModule": 9484 case "noValidate": 9485 case "open": 9486 case "playsInline": 9487 case "readOnly": 9488 case "required": 9489 case "reversed": 9490 case "scoped": 9491 case "seamless": 9492 case "itemScope": 9493 value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, "") : domElement.removeAttribute(key); 9494 break; 9495 case "capture": 9496 case "download": 9497 !0 === value ? domElement.setAttribute(key, "") : !1 !== value && null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 9498 break; 9499 case "cols": 9500 case "rows": 9501 case "size": 9502 case "span": 9503 null != value && "function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 9504 break; 9505 case "rowSpan": 9506 case "start": 9507 null == value || "function" === typeof value || "symbol" === typeof value || isNaN(value) ? domElement.removeAttribute(key) : (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)); 9508 break; 9509 case "popover": 9510 listenToNonDelegatedEvent("beforetoggle", domElement); 9511 listenToNonDelegatedEvent("toggle", domElement); 9512 setValueForAttribute(domElement, "popover", value); 9513 break; 9514 case "xlinkActuate": 9515 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:actuate", value); 9516 break; 9517 case "xlinkArcrole": 9518 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:arcrole", value); 9519 break; 9520 case "xlinkRole": 9521 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:role", value); 9522 break; 9523 case "xlinkShow": 9524 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:show", value); 9525 break; 9526 case "xlinkTitle": 9527 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:title", value); 9528 break; 9529 case "xlinkType": 9530 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:type", value); 9531 break; 9532 case "xmlBase": 9533 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:base", value); 9534 break; 9535 case "xmlLang": 9536 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:lang", value); 9537 break; 9538 case "xmlSpace": 9539 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:space", value); 9540 break; 9541 case "is": 9542 null != prevValue && console.error('Cannot update the "is" prop after it has been initialized.'); 9543 setValueForAttribute(domElement, "is", value); 9544 break; 9545 case "innerText": 9546 case "textContent": 9547 break; 9548 case "popoverTarget": 9549 didWarnPopoverTargetObject || null == value || "object" !== typeof value || (didWarnPopoverTargetObject = !0, console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.", value)); 9550 default: 9551 !(2 < key.length) || "o" !== key[0] && "O" !== key[0] || "n" !== key[1] && "N" !== key[1] ? (key = getAttributeAlias(key), setValueForAttribute(domElement, key, value)) : registrationNameDependencies.hasOwnProperty(key) && null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 9552 } 9553 } 9554 function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { 9555 switch(key){ 9556 case "style": 9557 setValueForStyles(domElement, value, prevValue); 9558 break; 9559 case "dangerouslySetInnerHTML": 9560 if (null != value) { 9561 if ("object" !== typeof value || !("__html" in value)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."); 9562 key = value.__html; 9563 if (null != key) { 9564 if (null != props.children) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); 9565 domElement.innerHTML = key; 9566 } 9567 } 9568 break; 9569 case "children": 9570 "string" === typeof value ? setTextContent(domElement, value) : ("number" === typeof value || "bigint" === typeof value) && setTextContent(domElement, "" + value); 9571 break; 9572 case "onScroll": 9573 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 9574 break; 9575 case "onScrollEnd": 9576 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 9577 break; 9578 case "onClick": 9579 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 9580 break; 9581 case "suppressContentEditableWarning": 9582 case "suppressHydrationWarning": 9583 case "innerHTML": 9584 case "ref": 9585 break; 9586 case "innerText": 9587 case "textContent": 9588 break; 9589 default: 9590 if (registrationNameDependencies.hasOwnProperty(key)) null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 9591 else a: { 9592 if ("o" === key[0] && "n" === key[1] && (props = key.endsWith("Capture"), tag = ke
vendor: 16,089 bytes, lines 9592-9883
9592y.slice(2, props ? key.length - 7 : void 0), prevValue = domElement[internalPropsKey] || null, prevValue = null != prevValue ? prevValue[key] : null, "function" === typeof prevValue && domElement.removeEventListener(tag, prevValue, props), "function" === typeof value)) { 9593 "function" !== typeof prevValue && null !== prevValue && (key in domElement ? domElement[key] = null : domElement.hasAttribute(key) && domElement.removeAttribute(key)); 9594 domElement.addEventListener(tag, value, props); 9595 break a; 9596 } 9597 key in domElement ? domElement[key] = value : !0 === value ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value); 9598 } 9599 } 9600 } 9601 function setInitialProperties(domElement, tag, props) { 9602 validatePropertiesInDevelopment(tag, props); 9603 switch(tag){ 9604 case "div": 9605 case "span": 9606 case "svg": 9607 case "path": 9608 case "a": 9609 case "g": 9610 case "p": 9611 case "li": 9612 break; 9613 case "img": 9614 listenToNonDelegatedEvent("error", domElement); 9615 listenToNonDelegatedEvent("load", domElement); 9616 var hasSrc = !1, hasSrcSet = !1, propKey; 9617 for(propKey in props)if (props.hasOwnProperty(propKey)) { 9618 var propValue = props[propKey]; 9619 if (null != propValue) switch(propKey){ 9620 case "src": 9621 hasSrc = !0; 9622 break; 9623 case "srcSet": 9624 hasSrcSet = !0; 9625 break; 9626 case "children": 9627 case "dangerouslySetInnerHTML": 9628 throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9629 default: 9630 setProp(domElement, tag, propKey, propValue, props, null); 9631 } 9632 } 9633 hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null); 9634 hasSrc && setProp(domElement, tag, "src", props.src, props, null); 9635 return; 9636 case "input": 9637 checkControlledValueProps("input", props); 9638 listenToNonDelegatedEvent("invalid", domElement); 9639 var defaultValue = propKey = propValue = hasSrcSet = null, checked = null, defaultChecked = null; 9640 for(hasSrc in props)if (props.hasOwnProperty(hasSrc)) { 9641 var _propValue = props[hasSrc]; 9642 if (null != _propValue) switch(hasSrc){ 9643 case "name": 9644 hasSrcSet = _propValue; 9645 break; 9646 case "type": 9647 propValue = _propValue; 9648 break; 9649 case "checked": 9650 checked = _propValue; 9651 break; 9652 case "defaultChecked": 9653 defaultChecked = _propValue; 9654 break; 9655 case "value": 9656 propKey = _propValue; 9657 break; 9658 case "defaultValue": 9659 defaultValue = _propValue; 9660 break; 9661 case "children": 9662 case "dangerouslySetInnerHTML": 9663 if (null != _propValue) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9664 break; 9665 default: 9666 setProp(domElement, tag, hasSrc, _propValue, props, null); 9667 } 9668 } 9669 validateInputProps(domElement, props); 9670 initInput(domElement, propKey, defaultValue, checked, defaultChecked, propValue, hasSrcSet, !1); 9671 return; 9672 case "select": 9673 checkControlledValueProps("select", props); 9674 listenToNonDelegatedEvent("invalid", domElement); 9675 hasSrc = propValue = propKey = null; 9676 for(hasSrcSet in props)if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet], null != defaultValue)) switch(hasSrcSet){ 9677 case "value": 9678 propKey = defaultValue; 9679 break; 9680 case "defaultValue": 9681 propValue = defaultValue; 9682 break; 9683 case "multiple": 9684 hasSrc = defaultValue; 9685 default: 9686 setProp(domElement, tag, hasSrcSet, defaultValue, props, null); 9687 } 9688 validateSelectProps(domElement, props); 9689 tag = propKey; 9690 props = propValue; 9691 domElement.multiple = !!hasSrc; 9692 null != tag ? updateOptions(domElement, !!hasSrc, tag, !1) : null != props && updateOptions(domElement, !!hasSrc, props, !0); 9693 return; 9694 case "textarea": 9695 checkControlledValueProps("textarea", props); 9696 listenToNonDelegatedEvent("invalid", domElement); 9697 propKey = hasSrcSet = hasSrc = null; 9698 for(propValue in props)if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue], null != defaultValue)) switch(propValue){ 9699 case "value": 9700 hasSrc = defaultValue; 9701 break; 9702 case "defaultValue": 9703 hasSrcSet = defaultValue; 9704 break; 9705 case "children": 9706 propKey = defaultValue; 9707 break; 9708 case "dangerouslySetInnerHTML": 9709 if (null != defaultValue) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>."); 9710 break; 9711 default: 9712 setProp(domElement, tag, propValue, defaultValue, props, null); 9713 } 9714 validateTextareaProps(domElement, props); 9715 initTextarea(domElement, hasSrc, hasSrcSet, propKey); 9716 return; 9717 case "option": 9718 validateOptionProps(domElement, props); 9719 for(checked in props)if (props.hasOwnProperty(checked) && (hasSrc = props[checked], null != hasSrc)) switch(checked){ 9720 case "selected": 9721 domElement.selected = hasSrc && "function" !== typeof hasSrc && "symbol" !== typeof hasSrc; 9722 break; 9723 default: 9724 setProp(domElement, tag, checked, hasSrc, props, null); 9725 } 9726 return; 9727 case "dialog": 9728 listenToNonDelegatedEvent("beforetoggle", domElement); 9729 listenToNonDelegatedEvent("toggle", domElement); 9730 listenToNonDelegatedEvent("cancel", domElement); 9731 listenToNonDelegatedEvent("close", domElement); 9732 break; 9733 case "iframe": 9734 case "object": 9735 listenToNonDelegatedEvent("load", domElement); 9736 break; 9737 case "video": 9738 case "audio": 9739 for(hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++)listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement); 9740 break; 9741 case "image": 9742 listenToNonDelegatedEvent("error", domElement); 9743 listenToNonDelegatedEvent("load", domElement); 9744 break; 9745 case "details": 9746 listenToNonDelegatedEvent("toggle", domElement); 9747 break; 9748 case "embed": 9749 case "source": 9750 case "link": 9751 listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement); 9752 case "area": 9753 case "base": 9754 case "br": 9755 case "col": 9756 case "hr": 9757 case "keygen": 9758 case "meta": 9759 case "param": 9760 case "track": 9761 case "wbr": 9762 case "menuitem": 9763 for(defaultChecked in props)if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked], null != hasSrc)) switch(defaultChecked){ 9764 case "children": 9765 case "dangerouslySetInnerHTML": 9766 throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9767 default: 9768 setProp(domElement, tag, defaultChecked, hasSrc, props, null); 9769 } 9770 return; 9771 default: 9772 if (isCustomElement(tag)) { 9773 for(_propValue in props)props.hasOwnProperty(_propValue) && (hasSrc = props[_propValue], void 0 !== hasSrc && setPropOnCustomElement(domElement, tag, _propValue, hasSrc, props, void 0)); 9774 return; 9775 } 9776 } 9777 for(defaultValue in props)props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue], null != hasSrc && setProp(domElement, tag, defaultValue, hasSrc, props, null)); 9778 } 9779 function updateProperties(domElement, tag, lastProps, nextProps) { 9780 validatePropertiesInDevelopment(tag, nextProps); 9781 switch(tag){ 9782 case "div": 9783 case "span": 9784 case "svg": 9785 case "path": 9786 case "a": 9787 case "g": 9788 case "p": 9789 case "li": 9790 break; 9791 case "input": 9792 var name = null, type = null, value = null, defaultValue = null, lastDefaultValue = null, checked = null, defaultChecked = null; 9793 for(propKey in lastProps){ 9794 var lastProp = lastProps[propKey]; 9795 if (lastProps.hasOwnProperty(propKey) && null != lastProp) switch(propKey){ 9796 case "checked": 9797 break; 9798 case "value": 9799 break; 9800 case "defaultValue": 9801 lastDefaultValue = lastProp; 9802 default: 9803 nextProps.hasOwnProperty(propKey) || setProp(domElement, tag, propKey, null, nextProps, lastProp); 9804 } 9805 } 9806 for(var _propKey8 in nextProps){ 9807 var propKey = nextProps[_propKey8]; 9808 lastProp = lastProps[_propKey8]; 9809 if (nextProps.hasOwnProperty(_propKey8) && (null != propKey || null != lastProp)) switch(_propKey8){ 9810 case "type": 9811 type = propKey; 9812 break; 9813 case "name": 9814 name = propKey; 9815 break; 9816 case "checked": 9817 checked = propKey; 9818 break; 9819 case "defaultChecked": 9820 defaultChecked = propKey; 9821 break; 9822 case "value": 9823 value = propKey; 9824 break; 9825 case "defaultValue": 9826 defaultValue = propKey; 9827 break; 9828 case "children": 9829 case "dangerouslySetInnerHTML": 9830 if (null != propKey) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9831 break; 9832 default: 9833 propKey !== lastProp && setProp(domElement, tag, _propKey8, propKey, nextProps, lastProp); 9834 } 9835 } 9836 tag = "checkbox" === lastProps.type || "radio" === lastProps.type ? null != lastProps.checked : null != lastProps.value; 9837 nextProps = "checkbox" === nextProps.type || "radio" === nextProps.type ? null != nextProps.checked : null != nextProps.value; 9838 tag || !nextProps || didWarnUncontrolledToControlled || (console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), didWarnUncontrolledToControlled = !0); 9839 !tag || nextProps || didWarnControlledToUncontrolled || (console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), didWarnControlledToUncontrolled = !0); 9840 updateInput(domElement, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name); 9841 return; 9842 case "select": 9843 propKey = value = defaultValue = _propKey8 = null; 9844 for(type in lastProps)if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) && null != lastDefaultValue) switch(type){ 9845 case "value": 9846 break; 9847 case "multiple": 9848 propKey = lastDefaultValue; 9849 default: 9850 nextProps.hasOwnProperty(type) || setProp(domElement, tag, type, null, nextProps, lastDefaultValue); 9851 } 9852 for(name in nextProps)if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (null != type || null != lastDefaultValue)) switch(name){ 9853 case "value": 9854 _propKey8 = type; 9855 break; 9856 case "defaultValue": 9857 defaultValue = type; 9858 break; 9859 case "multiple": 9860 value = type; 9861 default: 9862 type !== lastDefaultValue && setProp(domElement, tag, name, type, nextProps, lastDefaultValue); 9863 } 9864 nextProps = defaultValue; 9865 tag = value; 9866 lastProps = propKey; 9867 null != _propKey8 ? updateOptions(domElement, !!tag, _propKey8, !1) : !!lastProps !== !!tag && (null != nextProps ? updateOptions(domElement, !!tag, nextProps, !0) : updateOptions(domElement, !!tag, tag ? [] : "", !1)); 9868 return; 9869 case "textarea": 9870 propKey = _propKey8 = null; 9871 for(defaultValue in lastProps)if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) && null != name && !nextProps.hasOwnProperty(defaultValue)) switch(defaultValue){ 9872 case "value": 9873 break; 9874 case "children": 9875 break; 9876 default: 9877 setProp(domElement, tag, defaultValue, null, nextProps, name); 9878 } 9879 for(value in nextProps)if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (null != name || null != type)) switch(value){ 9880 case "value": 9881 _propKey8 = name; 9882 break; 9883 case "defaultValue":
9884 propKey = name; 9885 break; 9886 case "children": 9887 break; 9888 case "dangerouslySetInnerHTML": 9889 if (null != name) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>."); 9890 break; 9891 default: 9892 name !== type && setProp(domElement, tag, value, name, nextProps, type); 9893 } 9894 updateTextarea(domElement, _propKey8, propKey); 9895 return; 9896 case "option": 9897 for(var _propKey13 in lastProps)if (_propKey8 = lastProps[_propKey13], lastProps.hasOwnProperty(_propKey13) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey13)) switch(_propKey13){ 9898 case "selected": 9899 domElement.selected = !1; 9900 break; 9901 default: 9902 setProp(domElement, tag, _propKey13, null, nextProps, _propKey8); 9903 } 9904 for(lastDefaultValue in nextProps)if (_propKey8 = nextProps[lastDefaultValue], propKey = lastProps[lastDefaultValue], nextProps.hasOwnProperty(lastDefaultValue) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) switch(lastDefaultValue){ 9905 case "selected": 9906 domElement.selected = _propKey8 && "function" !== typeof _propKey8 && "symbol" !== typeof _propKey8; 9907 break; 9908 default: 9909 setProp(domElement, tag, lastDefaultValue, _propKey8, nextProps, propKey); 9910 } 9911 return; 9912 case "img": 9913 case "link": 9914 case "area": 9915 case "base": 9916 case "br": 9917 case "col": 9918 case "embed": 9919 case "hr": 9920 case "keygen": 9921 case "meta": 9922 case "param": 9923 case "source": 9924 case "track": 9925 case "wbr": 9926 case "menuitem": 9927 for(var _propKey15 in lastProps)_propKey8 = lastProps[_propKey15], lastProps.hasOwnProperty(_propKey15) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey15) && setProp(domElement, tag, _propKey15, null, nextProps, _propKey8); 9928 for(checked in nextProps)if (_propKey8 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) switch(checked){ 9929 case "children": 9930 case "dangerouslySetInnerHTML": 9931 if (null != _propKey8) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9932 break; 9933 default: 9934 setProp(domElement, tag, checked, _propKey8, nextProps, propKey); 9935 } 9936 return; 9937 default: 9938 if (isCustomElement(tag)) { 9939 for(var _propKey17 in lastProps)_propKey8 = lastProps[_propKey17], lastProps.hasOwnProperty(_propKey17) && void 0 !== _propKey8 && !nextProps.hasOwnProperty(_propKey17) && setPropOnCustomElement(domElement, tag, _propKey17, void 0, nextProps, _propKey8); 9940 for(defaultChecked in nextProps)_propKey8 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || _propKey8 === propKey || void 0 === _propKey8 && void 0 === propKey || setPropOnCustomElement(domElement, tag, defaultChecked, _propKey8, nextProps, propKey); 9941 return; 9942 } 9943 } 9944 for(var _propKey19 in lastProps)_propKey8 = lastProps[_propKey19], lastProps.hasOwnProperty(_propKey19) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey19) && setProp(domElement, tag, _propKey19, null, nextProps, _propKey8); 9945 for(lastProp in nextProps)_propKey8 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || _propKey8 === propKey || null == _propKey8 && null == propKey || setProp(domElement, tag, lastProp, _propKey8, nextProps, propKey); 9946 } 9947 function getPropNameFromAttributeName(attrName) { 9948 switch(attrName){ 9949 case "class": 9950 return "className"; 9951 case "for": 9952 return "htmlFor"; 9953 default: 9954 return attrName; 9955 } 9956 } 9957 function getStylesObjectFromElement(domElement) { 9958 var serverValueInObjectForm = {}; 9959 domElement = domElement.style; 9960 for(var i = 0; i < domElement.length; i++){ 9961 var styleName = domElement[i]; 9962 serverValueInObjectForm[styleName] = domElement.getPropertyValue(styleName); 9963 } 9964 return serverValueInObjectForm; 9965 } 9966 function diffHydratedStyles(domElement, value$jscomp$0, serverDifferences) { 9967 if (null != value$jscomp$0 && "object" !== typeof value$jscomp$0) console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); 9968 else { 9969 var clientValue; 9970 var delimiter = clientValue = "", styleName; 9971 for(styleName in value$jscomp$0)if (value$jscomp$0.hasOwnProperty(styleName)) { 9972 var value = value$jscomp$0[styleName]; 9973 null != value && "boolean" !== typeof value && "" !== value && (0 === styleName.indexOf("--") ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName + ":" + ("" + value).trim()) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + ("" + value).trim()) : clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + value + "px", delimiter = ";"); 9974 } 9975 clientValue = clientValue || null; 9976 value$jscomp$0 = domElement.getAttribute("style"); 9977 value$jscomp$0 !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(value$jscomp$0) !== clientValue && (serverDifferences.style = getStylesObjectFromElement(domElement))); 9978 } 9979 } 9980 function hydrateAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 9981 extraAttributes.delete(attributeName); 9982 domElement = domElement.getAttribute(attributeName); 9983 if (null === domElement) switch(typeof value){ 9984 case "undefined": 9985 case "function": 9986 case "symbol": 9987 case "boolean": 9988 return; 9989 } 9990 else if (null != value) switch(typeof value){ 9991 case "function": 9992 case "symbol": 9993 case "boolean": 9994 break; 9995 default: 9996 if (checkAttributeStringCoercion(value, propKey), domElement === "" + value) return; 9997 } 9998 warnForPropDifference(propKey, domElement, value, serverDifferences); 9999 } 10000 function hydrateBooleanAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10001 extraAttributes.delete(attributeName); 10002 domElement = domElement.getAttribute(attributeName); 10003 if (null === domElement) { 10004 switch(typeof value){ 10005 case "function": 10006 case "symbol": 10007 return; 10008 } 10009 if (!value) return; 10010 } else switch(typeof value){ 10011 case "function": 10012 case "symbol": 10013 break; 10014 default: 10015 if (value) return; 10016 } 10017 warnForPropDifference(propKey, domElement, value, serverDifferences); 10018 } 10019 function hydrateBooleanishAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10020 extraAttributes.delete(attributeName); 10021 domElement = domElement.getAttribute(attributeName); 10022 if (null === domElement) switch(typeof value){ 10023 case "undefined": 10024 case "function": 10025 case "symbol": 10026 return; 10027 } 10028 else if (null != value) switch(typeof value){ 10029 case "function": 10030 case "symbol": 10031 break; 10032 default: 10033 if (checkAttributeStringCoercion(value, attributeName), domElement === "" + value) return; 10034 } 10035 warnForPropDifference(propKey, domElement, value, serverDifferences); 10036 } 10037 function hydrateNumericAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10038 extraAttributes.delete(attributeName); 10039 domElement = domElement.getAttribute(attributeName); 10040 if (null === domElement) switch(typeof value){ 10041 case "undefined": 10042 case "function": 10043 case "symbol": 10044 case "boolean": 10045 return; 10046 default: 10047 if (isNaN(value)) return; 10048 } 10049 else if (null != value) switch(typeof value){ 10050 case "function": 10051 case "symbol": 10052 case "boolean": 10053 break; 10054 default: 10055 if (!isNaN(value) && (checkAttributeStringCoercion(value, propKey), domElement === "" + value)) return; 10056 } 10057 warnForPropDifference(propKey, domElement, value, serverDifferences); 10058 } 10059 function hydrateSanitizedAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10060 extraAttributes.delete(attributeName); 10061 domElement = domElement.getAttribute(attributeName); 10062 if (null === domElement) switch(typeof value){ 10063 case "undefined": 10064 case "function": 10065 case "symbol": 10066 case "boolean": 10067 return; 10068 } 10069 else if (null != value) switch(typeof value){ 10070 case "function": 10071 case "symbol": 10072 case "boolean": 10073 break; 10074 default: 10075 if (checkAttributeStringCoercion(value, propKey), attributeName = sanitizeURL("" + value), domElement === attributeName) return; 10076 } 10077 warnForPropDifference(propKey, domElement, value, serverDifferences); 10078 } 10079 function diffHydratedProperties(domElement, tag, props, hostContext) { 10080 for(var serverDifferences = {}, extraAttributes = new Set(), attributes = domElement.attributes, i = 0; i < attributes.length; i++)switch(attributes[i].name.toLowerCase()){ 10081 case "value": 10082 break; 10083 case "checked": 10084 break; 10085 case "selected": 10086 break; 10087 default: 10088 extraAttributes.add(attributes[i].name); 10089 } 10090 if (isCustomElement(tag)) for(var propKey in props){ 10091 if (props.hasOwnProperty(propKey)) { 10092 var value = props[propKey]; 10093 if (null != value) { 10094 if (registrationNameDependencies.hasOwnProperty(propKey)) "function" !== typeof value && warnForInvalidEventListener(propKey, value); 10095 else if (!0 !== props.suppressHydrationWarning) switch(propKey){ 10096 case "children": 10097 "string" !== typeof value && "number" !== typeof value || warnForPropDifference("children", domElement.textContent, value, serverDifferences); 10098 continue; 10099 case "suppressContentEditableWarning": 10100 case "suppressHydrationWarning": 10101 case "defaultValue": 10102 case "defaultChecked": 10103 case "innerHTML": 10104 case "ref": 10105 continue; 10106 case "dangerouslySetInnerHTML": 10107 attributes = domElement.innerHTML; 10108 value = value ? value.__html : void 0; 10109 null != value && (value = normalizeHTML(domElement, value), warnForPropDifference(propKey, attributes, value, serverDifferences)); 10110 continue; 10111 case "style": 10112 extraAttributes.delete(propKey); 10113 diffHydratedStyles(domElement, value, serverDifferences); 10114 continue; 10115 case "offsetParent": 10116 case "offsetTop": 10117 case "offsetLeft": 10118 case "offsetWidth": 10119 case "offsetHeight": 10120 case "isContentEditable": 10121 case "outerText": 10122 case "outerHTML": 10123 extraAttributes.delete(propKey.toLowerCase()); 10124 console.error("Assignment to read-only property will result in a
10124no-op: `%s`", propKey); 10125 continue; 10126 case "className": 10127 extraAttributes.delete("class"); 10128 attributes = getValueForAttributeOnCustomComponent(domElement, "class", value); 10129 warnForPropDifference("className", attributes, value, serverDifferences); 10130 continue; 10131 default: 10132 hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(propKey.toLowerCase()) : extraAttributes.delete(propKey), attributes = getValueForAttributeOnCustomComponent(domElement, propKey, value), warnForPropDifference(propKey, attributes, value, serverDifferences); 10133 } 10134 } 10135 } 10136 } 10137 else for(value in props)if (props.hasOwnProperty(value) && (propKey = props[value], null != propKey)) { 10138 if (registrationNameDependencies.hasOwnProperty(value)) "function" !== typeof propKey && warnForInvalidEventListener(value, propKey); 10139 else if (!0 !== props.suppressHydrationWarning) switch(value){ 10140 case "children": 10141 "string" !== typeof propKey && "number" !== typeof propKey || warnForPropDifference("children", domElement.textContent, propKey, serverDifferences); 10142 continue; 10143 case "suppressContentEditableWarning": 10144 case "suppressHydrationWarning": 10145 case "value": 10146 case "checked": 10147 case "selected": 10148 case "defaultValue": 10149 case "defaultChecked": 10150 case "innerHTML": 10151 case "ref": 10152 continue; 10153 case "dangerouslySetInnerHTML": 10154 attributes = domElement.innerHTML; 10155 propKey = propKey ? propKey.__html : void 0; 10156 null != propKey && (propKey = normalizeHTML(domElement, propKey), attributes !== propKey && (serverDifferences[value] = { 10157 __html: attributes 10158 })); 10159 continue; 10160 case "className": 10161 hydrateAttribute(domElement, value, "class", propKey, extraAttributes, serverDifferences); 10162 continue; 10163 case "tabIndex": 10164 hydrateAttribute(domElement, value, "tabindex", propKey, extraAttributes, serverDifferences); 10165 continue; 10166 case "style": 10167 extraAttributes.delete(value); 10168 diffHydratedStyles(domElement, propKey, serverDifferences); 10169 continue; 10170 case "multiple": 10171 extraAttributes.delete(value); 10172 warnForPropDifference(value, domElement.multiple, propKey, serverDifferences); 10173 continue; 10174 case "muted": 10175 extraAttributes.delete(value); 10176 warnForPropDifference(value, domElement.muted, propKey, serverDifferences); 10177 continue; 10178 case "autoFocus": 10179 extraAttributes.delete("autofocus"); 10180 warnForPropDifference(value, domElement.autofocus, propKey, serverDifferences); 10181 continue; 10182 case "data": 10183 if ("object" !== tag) { 10184 extraAttributes.delete(value); 10185 attributes = domElement.getAttribute("data"); 10186 warnForPropDifference(value, attributes, propKey, serverDifferences); 10187 continue; 10188 } 10189 case "src": 10190 case "href": 10191 if (!("" !== propKey || "a" === tag && "href" === value || "object" === tag && "data" === value)) { 10192 "src" === value ? console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', value, value) : console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', value, value); 10193 continue; 10194 } 10195 hydrateSanitizedAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10196 continue; 10197 case "action": 10198 case "formAction": 10199 attributes = domElement.getAttribute(value); 10200 if ("function" === typeof propKey) { 10201 extraAttributes.delete(value.toLowerCase()); 10202 "formAction" === value ? (extraAttributes.delete("name"), extraAttributes.delete("formenctype"), extraAttributes.delete("formmethod"), extraAttributes.delete("formtarget")) : (extraAttributes.delete("enctype"), extraAttributes.delete("method"), extraAttributes.delete("target")); 10203 continue; 10204 } else if (attributes === EXPECTED_FORM_ACTION_URL) { 10205 extraAttributes.delete(value.toLowerCase()); 10206 warnForPropDifference(value, "function", propKey, serverDifferences); 10207 continue; 10208 } 10209 hydrateSanitizedAttribute(domElement, value, value.toLowerCase(), propKey, extraAttributes, serverDifferences); 10210 continue; 10211 case "xlinkHref": 10212 hydrateSanitizedAttribute(domElement, value, "xlink:href", propKey, extraAttributes, serverDifferences); 10213 continue; 10214 case "contentEditable": 10215 hydrateBooleanishAttribute(domElement, value, "contenteditable", propKey, extraAttributes, serverDifferences); 10216 continue; 10217 case "spellCheck": 10218 hydrateBooleanishAttribute(domElement, value, "spellcheck", propKey, extraAttributes, serverDifferences); 10219 continue; 10220 case "draggable": 10221 case "autoReverse": 10222 case "externalResourcesRequired": 10223 case "focusable": 10224 case "preserveAlpha": 10225 hydrateBooleanishAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10226 continue; 10227 case "allowFullScreen": 10228 case "async": 10229 case "autoPlay": 10230 case "controls": 10231 case "default": 10232 case "defer": 10233 case "disabled": 10234 case "disablePictureInPicture": 10235 case "disableRemotePlayback": 10236 case "formNoValidate": 10237 case "hidden": 10238 case "loop": 10239 case "noModule": 10240 case "noValidate": 10241 case "open":
10242 case "playsInline": 10243 case "readOnly": 10244 case "required": 10245 case "reversed": 10246 case "scoped": 10247 case "seamless": 10248 case "itemScope": 10249 hydrateBooleanAttribute(domElement, value, value.toLowerCase(), propKey, extraAttributes, serverDifferences); 10250 continue; 10251 case "capture": 10252 case "download": 10253 a: { 10254 i = domElement; 10255 var attributeName = attributes = value, serverDifferences$jscomp$0 = serverDifferences; 10256 extraAttributes.delete(attributeName); 10257 i = i.getAttribute(attributeName); 10258 if (null === i) switch(typeof propKey){ 10259 case "undefined": 10260 case "function": 10261 case "symbol": 10262 break a; 10263 default: 10264 if (!1 === propKey) break a; 10265 } 10266 else if (null != propKey) switch(typeof propKey){ 10267 case "function": 10268 case "symbol": 10269 break; 10270 case "boolean": 10271 if (!0 === propKey && "" === i) break a; 10272 break; 10273 default: 10274 if (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey) break a; 10275 } 10276 warnForPropDifference(attributes, i, propKey, serverDifferences$jscomp$0); 10277 } 10278 continue; 10279 case "cols": 10280 case "rows": 10281 case "size": 10282 case "span": 10283 a: { 10284 i = domElement; 10285 attributeName = attributes = value; 10286 serverDifferences$jscomp$0 = serverDifferences; 10287 extraAttributes.delete(attributeName); 10288 i = i.getAttribute(attributeName); 10289 if (null === i) switch(typeof propKey){ 10290 case "undefined": 10291 case "function": 10292 case "symbol": 10293 case "boolean": 10294 break a; 10295 default: 10296 if (isNaN(propKey) || 1 > propKey) break a; 10297 } 10298 else if (null != propKey) switch(typeof propKey){ 10299 case "function": 10300 case "symbol": 10301 case "boolean": 10302 break; 10303 default: 10304 if (!(isNaN(propKey) || 1 > propKey) && (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey)) break a; 10305 } 10306 warnForPropDifference(attributes, i, propKey, serverDifferences$jscomp$0); 10307 } 10308 continue; 10309 case "rowSpan": 10310 hydrateNumericAttribute(domElement, value, "rowspan", propKey, extraAttributes, serverDifferences); 10311 continue; 10312 case "start": 10313 hydrateNumericAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10314 continue; 10315 case "xHeight": 10316 hydrateAttribute(domElement, value, "x-height", propKey, extraAttributes, serverDifferences); 10317 continue; 10318 case "xlinkActuate": 10319 hydrateAttribute(domElement, value, "xlink:actuate", propKey, extraAttributes, serverDifferences); 10320 continue; 10321 case "xlinkArcrole": 10322 hydrateAttribute(domElement, value, "xlink:arcrole", propKey, extraAttributes, serverDifferences); 10323 continue; 10324 case "xlinkRole": 10325 hydrateAttribute(domElement, value, "xlink:role", propKey, extraAttributes, serverDifferences); 10326 continue; 10327 case "xlinkShow": 10328 hydrateAttribute(domElement, value, "xlink:show", propKey, extraAttributes, serverDifferences); 10329 continue; 10330 case "xlinkTitle": 10331 hydrateAttribute(domElement, value, "xlink:title", propKey, extraAttributes, serverDifferences); 10332 continue; 10333 case "xlinkType": 10334 hydrateAttribute(domElement, value, "xlink:type", propKey, extraAttributes, serverDifferences); 10335 continue; 10336 case "xmlBase": 10337 hydrateAttribute(domElement, value, "xml:base", propKey, extraAttributes, serverDifferences); 10338 continue; 10339 case "xmlLang": 10340 hydrateAttribute(domElement, value, "xml:lang", propKey, extraAttributes, serverDifferences); 10341 continue; 10342 case "xmlSpace": 10343 hydrateAttribute(domElement, value, "xml:space", propKey, extraAttributes, serverDifferences); 10344 continue; 10345 case "inert": 10346 "" !== propKey || didWarnForNewBooleanPropsWithEmptyValue[value] || (didWarnForNewBooleanPropsWithEmptyValue[value] = !0, console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", value)); 10347 hydrateBooleanAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10348 continue; 10349 default: 10350 if (!(2 < value.length) || "o" !== value[0] && "O" !== value[0] || "n" !== value[1] && "N" !== value[1]) { 10351 i = getAttributeAlias(value); 10352 attributes = !1; 10353 hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(i.toLowerCase()) : (attributeName = value.toLowerCase(), attributeName = possibleStandardNames.hasOwnProperty(attributeName) ? possibleStandardNames[attributeName] || null : null, null !== attributeName && attributeName !== value && (attributes = !0, extraAttributes.delete(attributeName)), extraAttributes.delete(i)); 10354 a: if (attributeName = domElement, serverDifferences$jscomp$0 = i, i = propKey, isAttributeNameSafe(serverDifferences$jscomp$0)) if (attributeName.hasAttribute(serverDifferences$jscomp$0)) attributeName = attributeName.getAttribute(serverDifferences$jscomp$0), checkAttributeStringCoercion(i, serverDifferences$jscomp$0), i = attributeName === "" + i ? i : attributeName; 10355 else { 10356 switch(typeof i){ 10357 case "function": 10358 case "symbol": 10359 break a; 10360 case "boolean": 10361 if (attributeName = serverDifferences$jscomp$0.toLowerCase().slice(0, 5), "data-" !== attributeName && "aria-" !== attributeName) break a; 10362 } 10363 i = void 0 === i ? void 0 : null; 10364 } 10365 else i = void 0; 10366 attributes || warnForPropDifference(value, i, propKey, serverDifferences); 10367 } 10368 } 10369 } 10370 0 < extraAttributes.size && !0 !== props.suppressHydrationWarning && warnForExtraAttributes(domElement, extraAttributes, serverDifferences); 10371 return 0 === Object.keys(serverDifferences).length ? null : serverDifferences; 10372 } 10373 function propNamesListJoin(list, combinator) { 10374 switch(list.length){ 10375 case 0: 10376 return ""; 10377 case 1: 10378 return list[0]; 10379 case 2: 10380 return list[0] + " " + combinator + " " + list[1]; 10381 default: 10382 return list.slice(0, -1).join(", ") + ", " + combinator + " " + list[list.length - 1]; 10383 } 10384 } 10385 function getOwnerDocumentFromRootContainer(rootContainerElement) { 10386 return 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 10387 } 10388 function getOwnHostContext(namespaceURI) { 10389 switch(namespaceURI){ 10390 case SVG_NAMESPACE: 10391 return HostContextNamespaceSvg; 10392 case MATH_NAMESPACE: 10393 return HostContextNamespaceMath; 10394 default: 10395 return HostContextNamespaceNone; 10396 } 10397 } 10398 function getChildHostContextProd(parentNamespace, type) { 10399 if (parentNamespace === HostContextNamespaceNone) switch(type){ 10400 case "svg": 10401 return HostContextNamespaceSvg; 10402 case "math": 10403 return HostContextNamespaceMath; 10404 default: 10405 return HostContextNamespaceNone; 10406 } 10407 return parentNamespace === HostContextNamespaceSvg && "foreignObject" === type ? HostContextNamespaceNone : parentNamespace; 10408 } 10409 function shouldSetTextContent(type, props) { 10410 return "textarea" === type || "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || "bigint" === typeof props.children || "object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html; 10411 } 10412 function shouldAttemptEagerTransition() { 10413 var event = window.event; 10414 if (event && "popstate" === event.type) { 10415 if (event === currentPopstateTransitionEvent) return !1; 10416 currentPopstateTransitionEvent = event; 10417 return !0; 10418 } 10419 currentPopstateTransitionEvent = null; 10420 return !1; 10421 } 10422 function handleErrorInNextTick(error) { 10423 setTimeout(function() { 10424 throw error; 10425 }); 10426 } 10427 function commitMount(domElement, type, newProps) { 10428 switch(type){ 10429 case "button": 10430 case "input": 10431 case "select": 10432 case "textarea": 10433 newProps.autoFocus && domElement.focus(); 10434 break; 10435 case "img": 10436 newProps.src ? domElement.src = newProps.src : newProps.srcSet && (domElement.srcset = newProps.srcSet); 10437 } 10438 } 10439 function commitHydratedInstance() {} 10440 function commitUpdate(domElement, type, oldProps, newProps) { 10441 updateProperties(domElement, type, oldProps, newProps); 10442 domElement[internalPropsKey] = newProps; 10443 } 10444 function resetTextContent(domElement) { 10445 setTextContent(domElement, ""); 10446 } 10447 function commitTextUpdate(textInstance, oldText, newText) { 10448 textInstance.nodeValue = newText; 10449 } 10450 function warnForReactChildrenConflict(container) { 10451 if (!container.__reactWarnedAboutChildrenConflict) { 10452 var props = container[internalPropsKey] || null; 10453 if (null !== props) { 10454 var fiber = getInstanceFromNode(container); 10455 null !== fiber && ("string" === typeof props.children || "number" === typeof props.children ? (container.__reactWarnedAboutChildrenConflict = !0, runWithFiberInDEV(fiber, function() { 10456 console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.'); 10457 })) : null != props.dangerouslySetInnerHTML && (container.__reactWarnedAboutChildrenConflict = !0, runWithFiberInDEV(fiber, function() { 10458 console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.'); 10459 }))); 10460 } 10461 } 10462 } 10463 function isSingletonScope(type) { 10464 return "head" === type; 10465 } 10466 function removeChild(parentInstance, child) { 10467 parentInstance.removeChild(child); 10468 } 10469 function removeChildFromContainer(container, child) { 10470 (9 === container.nodeType ? container.body : "HTML" === container.nodeName ? container.ownerDocument.body : container).removeChild(child); 10471 } 10472 function clearHydrationBoundary(parentInstance, hydrationInstance) { 10473 var node = hydrationInstance, depth = 0; 10474 do { 10475 var nextNode = node.nextSibling; 10476 parentInstance.removeChild(node); 10477 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, node === SUSPENSE_END_DATA || node === ACTIVITY_END_DATA) { 10478 if (0 === depth) { 10479 parentInstance.removeChild(nextNode); 10480 retryIfBlockedOn(hydrationInstance); 10481 return; 10482 } 10483 depth--; 10484 } else if (node === SUSPENSE_START_DATA || node === SUSPENSE_PENDING_START_DATA || node === SUSPENSE_QUEUED_START_DATA || node === SUSPENSE_FALLBACK_START_DATA || node === ACTIVITY_START_DATA) depth++; 10485 else if (node === PREAMBLE_CONTRIBUTION_HTML) releaseSingletonInstance(parentInstance.ownerDocument.documentElement); 10486 else if (node === PREAMBLE_CONTRIBUTION_HEAD) { 10487 node = parentInstance.ownerDocument.head; 10488 releaseSingletonInstance(node); 10489 for(var node$jscomp$0 = node.firstChild; node$jscomp$0;){ 10490 var nextNode$jscomp$0 = node$jscomp$0.nextSibling, nodeName = node$jscomp$0.nodeName; 10491 node$jscomp$0[internalHoistableMarker] || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === node$jscomp$0.rel.toLowerCase() || node.removeChild(node$jscomp$0); 10492 node$jscomp$0 = nextNode$jscomp$0; 10493 } 10494 } else node === PREAMBLE_CONTRIBUTION_BODY && releaseSingletonInstance(parentInstance.ownerDocument.body); 10495 node = nextNode; 10496 }while (node) 10497 retryIfBlockedOn(hydrationInstance); 10498 } 10499 function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) { 10500 var node = suspenseInstance; 10501 suspenseInstance = 0; 10502 do { 10503 var nextNode = node.nextSibling; 10504 1 === node.nodeType ? isHidden ? (node._stashedDisplay = node.style.display, node.style.display = "none") : (node.style.display = node._stashedDisplay || "", "" === node.getAttribute("style") && node.removeAttribute("style")) : 3 === node.nodeType && (isHidden ? (node._stashedText = node.nodeValue, node.nodeValue = "") : node.nodeValue = node._stashedText || ""); 10505 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, node === SUSPENSE_END_DATA) if (0 === suspenseInstance) break; 10506 else suspenseInstance--; 10507 else node !== SUSPENSE_START_DATA && node !== SUSPENSE_PENDING_START_DATA && node !== SUSPENSE_QUEUED_START_DATA && node !== SUSPENSE_FALLBACK_START_DATA || suspenseInstance++; 10508 node = nextNode; 10509 }while (node) 10510 } 10511 function hideDehydratedBoundary(suspenseInstance) { 10512 hideOrUnhideDehydratedBoundary(suspenseInstance, !0); 10513 } 10514 function hideInstance(instance) { 10515 instance = instance.style; 10516 "function" === typeof instance.setProperty ? instance.setProperty("display", "none", "important") : instance.display = "none"; 10517 } 10518 function hideTextInstance(textInstance) { 10519 textInstance.nodeValue = ""; 10520 } 10521 function unhideDehydratedBoundary(dehydratedInstance) { 10522 hideOrUnhideDehydratedBoundary(dehydratedInstance, !1); 10523 } 10524 function unhideInstance(instance, props) { 10525 props = props[STYLE]; 10526 props = void 0 !== props && null !== props && props.hasOwnProperty("display") ? prop
vendor: 14,351 bytes, lines 10526-10772
10526s.display : null; 10527 instance.style.display = null == props || "boolean" === typeof props ? "" : ("" + props).trim(); 10528 } 10529 function unhideTextInstance(textInstance, text) { 10530 textInstance.nodeValue = text; 10531 } 10532 function clearContainerSparingly(container) { 10533 var nextNode = container.firstChild; 10534 nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling); 10535 for(; nextNode;){ 10536 var node = nextNode; 10537 nextNode = nextNode.nextSibling; 10538 switch(node.nodeName){ 10539 case "HTML": 10540 case "HEAD": 10541 case "BODY": 10542 clearContainerSparingly(node); 10543 detachDeletedInstance(node); 10544 continue; 10545 case "SCRIPT": 10546 case "STYLE": 10547 continue; 10548 case "LINK": 10549 if ("stylesheet" === node.rel.toLowerCase()) continue; 10550 } 10551 container.removeChild(node); 10552 } 10553 } 10554 function canHydrateInstance(instance, type, props, inRootOrSingleton) { 10555 for(; 1 === instance.nodeType;){ 10556 var anyProps = props; 10557 if (instance.nodeName.toLowerCase() !== type.toLowerCase()) { 10558 if (!inRootOrSingleton && ("INPUT" !== instance.nodeName || "hidden" !== instance.type)) break; 10559 } else if (!inRootOrSingleton) if ("input" === type && "hidden" === instance.type) { 10560 checkAttributeStringCoercion(anyProps.name, "name"); 10561 var name = null == anyProps.name ? null : "" + anyProps.name; 10562 if ("hidden" === anyProps.type && instance.getAttribute("name") === name) return instance; 10563 } else return instance; 10564 else if (!instance[internalHoistableMarker]) switch(type){ 10565 case "meta": 10566 if (!instance.hasAttribute("itemprop")) break; 10567 return instance; 10568 case "link": 10569 name = instance.getAttribute("rel"); 10570 if ("stylesheet" === name && instance.hasAttribute("data-precedence")) break; 10571 else if (name !== anyProps.rel || instance.getAttribute("href") !== (null == anyProps.href || "" === anyProps.href ? null : anyProps.href) || instance.getAttribute("crossorigin") !== (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) || instance.getAttribute("title") !== (null == anyProps.title ? null : anyProps.title)) break; 10572 return instance; 10573 case "style": 10574 if (instance.hasAttribute("data-precedence")) break; 10575 return instance; 10576 case "script": 10577 name = instance.getAttribute("src"); 10578 if ((name !== (null == anyProps.src ? null : anyProps.src) || instance.getAttribute("type") !== (null == anyProps.type ? null : anyProps.type) || instance.getAttribute("crossorigin") !== (null == anyProps.crossOrigin ? null : anyProps.crossOrigin)) && name && instance.hasAttribute("async") && !instance.hasAttribute("itemprop")) break; 10579 return instance; 10580 default: 10581 return instance; 10582 } 10583 instance = getNextHydratable(instance.nextSibling); 10584 if (null === instance) break; 10585 } 10586 return null; 10587 } 10588 function canHydrateTextInstance(instance, text, inRootOrSingleton) { 10589 if ("" === text) return null; 10590 for(; 3 !== instance.nodeType;){ 10591 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) return null; 10592 instance = getNextHydratable(instance.nextSibling); 10593 if (null === instance) return null; 10594 } 10595 return instance; 10596 } 10597 function canHydrateHydrationBoundary(instance, inRootOrSingleton) { 10598 for(; 8 !== instance.nodeType;){ 10599 if (!inRootOrSingleton) return null; 10600 instance = getNextHydratable(instance.nextSibling); 10601 if (null === instance) return null; 10602 } 10603 return instance; 10604 } 10605 function isSuspenseInstancePending(instance) { 10606 return instance.data === SUSPENSE_PENDING_START_DATA || instance.data === SUSPENSE_QUEUED_START_DATA; 10607 } 10608 function isSuspenseInstanceFallback(instance) { 10609 return instance.data === SUSPENSE_FALLBACK_START_DATA || instance.data === SUSPENSE_PENDING_START_DATA && instance.ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING; 10610 } 10611 function registerSuspenseInstanceRetry(instance, callback) { 10612 var ownerDocument = instance.ownerDocument; 10613 if (instance.data === SUSPENSE_QUEUED_START_DATA) instance._reactRetry = callback; 10614 else if (instance.data !== SUSPENSE_PENDING_START_DATA || ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING) callback(); 10615 else { 10616 var listener = function() { 10617 callback(); 10618 ownerDocument.removeEventListener("DOMContentLoaded", listener); 10619 }; 10620 ownerDocument.addEventListener("DOMContentLoaded", listener); 10621 instance._reactRetry = listener; 10622 } 10623 } 10624 function getNextHydratable(node) { 10625 for(; null != node; node = node.nextSibling){ 10626 var nodeType = node.nodeType; 10627 if (1 === nodeType || 3 === nodeType) break; 10628 if (8 === nodeType) { 10629 nodeType = node.data; 10630 if (nodeType === SUSPENSE_START_DATA || nodeType === SUSPENSE_FALLBACK_START_DATA || nodeType === SUSPENSE_PENDING_START_DATA || nodeType === SUSPENSE_QUEUED_START_DATA || nodeType === ACTIVITY_START_DATA || nodeType === FORM_STATE_IS_MATCHING || nodeType === FORM_STATE_IS_NOT_MATCHING) break; 10631 if (nodeType === SUSPENSE_END_DATA || nodeType === ACTIVITY_END_DATA) return null; 10632 } 10633 } 10634 return node; 10635 } 10636 function describeHydratableInstanceForDevWarnings(instance) { 10637 if (1 === instance.nodeType) { 10638 for(var JSCompiler_temp_const = instance.nodeName.toLowerCase(), serverDifferences = {}, attributes = instance.attributes, i = 0; i < attributes.length; i++){ 10639 var attr = attributes[i]; 10640 serverDifferences[getPropNameFromAttributeName(attr.name)] = "style" === attr.name.toLowerCase() ? getStylesObjectFromElement(instance) : attr.value; 10641 } 10642 return { 10643 type: JSCompiler_temp_const, 10644 props: serverDifferences 10645 }; 10646 } 10647 return 8 === instance.nodeType ? instance.data === ACTIVITY_START_DATA ? { 10648 type: "Activity", 10649 props: {} 10650 } : { 10651 type: "Suspense", 10652 props: {} 10653 } : instance.nodeValue; 10654 } 10655 function diffHydratedTextForDevWarnings(textInstance, text, parentProps) { 10656 return null === parentProps || !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] ? (textInstance.nodeValue === text ? textInstance = null : (text = normalizeMarkupForTextOrAttribute(text), textInstance = normalizeMarkupForTextOrAttribute(textInstance.nodeValue) === text ? null : textInstance.nodeValue), textInstance) : null; 10657 } 10658 function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) { 10659 hydrationInstance = hydrationInstance.nextSibling; 10660 for(var depth = 0; hydrationInstance;){ 10661 if (8 === hydrationInstance.nodeType) { 10662 var data = hydrationInstance.data; 10663 if (data === SUSPENSE_END_DATA || data === ACTIVITY_END_DATA) { 10664 if (0 === depth) return getNextHydratable(hydrationInstance.nextSibling); 10665 depth--; 10666 } else data !== SUSPENSE_START_DATA && data !== SUSPENSE_FALLBACK_START_DATA && data !== SUSPENSE_PENDING_START_DATA && data !== SUSPENSE_QUEUED_START_DATA && data !== ACTIVITY_START_DATA || depth++; 10667 } 10668 hydrationInstance = hydrationInstance.nextSibling; 10669 } 10670 return null; 10671 } 10672 function getParentHydrationBoundary(targetInstance) { 10673 targetInstance = targetInstance.previousSibling; 10674 for(var depth = 0; targetInstance;){ 10675 if (8 === targetInstance.nodeType) { 10676 var data = targetInstance.data; 10677 if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_QUEUED_START_DATA || data === ACTIVITY_START_DATA) { 10678 if (0 === depth) return targetInstance; 10679 depth--; 10680 } else data !== SUSPENSE_END_DATA && data !== ACTIVITY_END_DATA || depth++; 10681 } 10682 targetInstance = targetInstance.previousSibling; 10683 } 10684 return null; 10685 } 10686 function commitHydratedContainer(container) { 10687 retryIfBlockedOn(container); 10688 } 10689 function commitHydratedActivityInstance(activityInstance) { 10690 retryIfBlockedOn(activityInstance); 10691 } 10692 function commitHydratedSuspenseInstance(suspenseInstance) { 10693 retryIfBlockedOn(suspenseInstance); 10694 } 10695 function resolveSingletonInstance(type, props, rootContainerInstance, hostContext, validateDOMNestingDev) { 10696 validateDOMNestingDev && validateDOMNesting(type, hostContext.ancestorInfo); 10697 props = getOwnerDocumentFromRootContainer(rootContainerInstance); 10698 switch(type){ 10699 case "html": 10700 type = props.documentElement; 10701 if (!type) throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page."); 10702 return type; 10703 case "head": 10704 type = props.head; 10705 if (!type) throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page."); 10706 return type; 10707 case "body": 10708 type = props.body; 10709 if (!type) throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page."); 10710 return type; 10711 default: 10712 throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React."); 10713 } 10714 } 10715 function acquireSingletonInstance(type, props, instance, internalInstanceHandle) { 10716 if (!instance[internalContainerInstanceKey] && getInstanceFromNode(instance)) { 10717 var tagName = instance.tagName.toLowerCase(); 10718 console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", tagName, tagName, tagName); 10719 } 10720 switch(type){ 10721 case "html": 10722 case "head": 10723 case "body": 10724 break; 10725 default: 10726 console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React."); 10727 } 10728 for(tagName = instance.attributes; tagName.length;)instance.removeAttributeNode(tagName[0]); 10729 setInitialProperties(instance, type, props); 10730 instance[internalInstanceKey] = internalInstanceHandle; 10731 instance[internalPropsKey] = props; 10732 } 10733 function releaseSingletonInstance(instance) { 10734 for(var attributes = instance.attributes; attributes.length;)instance.removeAttributeNode(attributes[0]); 10735 detachDeletedInstance(instance); 10736 } 10737 function getHoistableRoot(container) { 10738 return "function" === typeof container.getRootNode ? container.getRootNode() : 9 === container.nodeType ? container : container.ownerDocument; 10739 } 10740 function preconnectAs(rel, href, crossOrigin) { 10741 var ownerDocument = globalDocument; 10742 if (ownerDocument && "string" === typeof href && href) { 10743 var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href); 10744 limitedEscapedHref = 'link[rel="' + rel + '"][href="' + limitedEscapedHref + '"]'; 10745 "string" === typeof crossOrigin && (limitedEscapedHref += '[crossorigin="' + crossOrigin + '"]'); 10746 preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { 10747 rel: rel, 10748 crossOrigin: crossOrigin, 10749 href: href 10750 }, null === ownerDocument.querySelector(limitedEscapedHref) && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href))); 10751 } 10752 } 10753 function getResource(type, currentProps, pendingProps, currentResource) { 10754 var resourceRoot = (resourceRoot = rootInstanceStackCursor.current) ? getHoistableRoot(resourceRoot) : null; 10755 if (!resourceRoot) throw Error('"resourceRoot" was expected to exist. This is a bug in React.'); 10756 switch(type){ 10757 case "meta": 10758 case "title": 10759 return null; 10760 case "style": 10761 return "string" === typeof pendingProps.precedence && "string" === typeof pendingProps.href ? (pendingProps = getStyleKey(pendingProps.href), currentProps = getResourcesFromRoot(resourceRoot).hoistableStyles, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 10762 type: "style", 10763 instance: null, 10764 count: 0, 10765 state: null 10766 }, currentProps.set(pendingProps, currentResource)), currentResource) : { 10767 type: "void", 10768 instance: null, 10769 count: 0, 10770 state: null 10771 }; 10772 case "link":
10773 if ("stylesheet" === pendingProps.rel && "string" === typeof pendingProps.href && "string" === typeof pendingProps.precedence) { 10774 type = getStyleKey(pendingProps.href); 10775 var _styles = getResourcesFromRoot(resourceRoot).hoistableStyles, _resource = _styles.get(type); 10776 if (!_resource && (resourceRoot = resourceRoot.ownerDocument || resourceRoot, _resource = { 10777 type: "stylesheet", 10778 instance: null, 10779 count: 0, 10780 state: { 10781 loading: NotLoaded, 10782 preload: null 10783 } 10784 }, _styles.set(type, _resource), (_styles = resourceRoot.querySelector(getStylesheetSelectorFromKey(type))) && !_styles._p && (_resource.instance = _styles, _resource.state.loading = Loaded | Inserted), !preloadPropsMap.has(type))) { 10785 var preloadProps = { 10786 rel: "preload", 10787 as: "style", 10788 href: pendingProps.href, 10789 crossOrigin: pendingProps.crossOrigin, 10790 integrity: pendingProps.integrity, 10791 media: pendingProps.media, 10792 hrefLang: pendingProps.hrefLang, 10793 referrerPolicy: pendingProps.referrerPolicy 10794 }; 10795 preloadPropsMap.set(type, preloadProps); 10796 _styles || preloadStylesheet(resourceRoot, type, preloadProps, _resource.state); 10797 } 10798 if (currentProps && null === currentResource) throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps); 10799 return _resource; 10800 } 10801 if (currentProps && null !== currentResource) throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps); 10802 return null; 10803 case "script": 10804 return currentProps = pendingProps.async, pendingProps = pendingProps.src, "string" === typeof pendingProps && currentProps && "function" !== typeof currentProps && "symbol" !== typeof currentProps ? (pendingProps = getScriptKey(pendingProps), currentProps = getResourcesFromRoot(resourceRoot).hoistableScripts, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 10805 type: "script", 10806 instance: null, 10807 count: 0, 10808 state: null 10809 }, currentProps.set(pendingProps, currentResource)), currentResource) : { 10810 type: "void", 10811 instance: null, 10812 count: 0, 10813 state: null 10814 }; 10815 default: 10816 throw Error('getResource encountered a type it did not expect: "' + type + '". this is a bug in React.'); 10817 } 10818 } 10819 function describeLinkForResourceErrorDEV(props) { 10820 var describedProps = 0, description = "<link"; 10821 "string" === typeof props.rel ? (describedProps++, description += ' rel="' + props.rel + '"') : hasOwnProperty.call(props, "rel") && (describedProps++, description += ' rel="' + (null === props.rel ? "null" : "invalid type " + typeof props.rel) + '"'); 10822 "string" === typeof props.href ? (describedProps++, description += ' href="' + props.href + '"') : hasOwnProperty.call(props, "href") && (describedProps++, description += ' href="' + (null === props.href ? "null" : "invali
10822d type " + typeof props.href) + '"'); 10823 "string" === typeof props.precedence ? (describedProps++, description += ' precedence="' + props.precedence + '"') : hasOwnProperty.call(props, "precedence") && (describedProps++, description += " precedence={" + (null === props.precedence ? "null" : "invalid type " + typeof props.precedence) + "}"); 10824 Object.getOwnPropertyNames(props).length > describedProps && (description += " ..."); 10825 return description + " />"; 10826 } 10827 function getStyleKey(href) { 10828 return 'href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"'; 10829 } 10830 function getStylesheetSelectorFromKey(key) { 10831 return 'link[rel="stylesheet"][' + key + "]"; 10832 } 10833 function stylesheetPropsFromRawProps(rawProps) { 10834 return assign({}, rawProps, { 10835 "data-precedence": rawProps.precedence, 10836 precedence: null 10837 }); 10838 } 10839 function preloadStylesheet(ownerDocument, key, preloadProps, state) { 10840 ownerDocument.querySelector('link[rel="preload"][as="style"][' + key + "]") ? state.loading = Loaded : (key = ownerDocument.createElement("link"), state.preload = key, key.addEventListener("load", function() { 10841 return state.loading |= Loaded; 10842 }), key.addEventListener("error", function() { 10843 return state.loading |= Errored; 10844 }), setInitialProperties(key, "link", preloadProps), markNodeAsHoistable(key), ownerDocument.head.appendChild(key)); 10845 } 10846 function getScriptKey(src) { 10847 return '[src="' + escapeSelectorAttributeValueInsideDoubleQuotes(src) + '"]'; 10848 } 10849 function getScriptSelectorFromKey(key) { 10850 return "script[async]" + key; 10851 } 10852 function acquireResource(hoistableRoot, resource, props) { 10853 resource.count++; 10854 if (null === resource.instance) switch(resource.type){ 10855 case "style": 10856 var instance = hoistableRoot.querySelector('style[data-href~="' + escapeSelectorAttributeValueInsideDoubleQuotes(props.href) + '"]'); 10857 if (instance) return resource.instance = instance, markNodeAsHoistable(instance), instance; 10858 var styleProps = assign({}, props, { 10859 "data-href": props.href, 10860 "data-precedence": props.precedence, 10861 href: null, 10862 precedence: null 10863 }); 10864 instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("style"); 10865 markNodeAsHoistable(instance); 10866 setInitialProperties(instance, "style", styleProps); 10867 insertStylesheet(instance, props.precedence, hoistableRoot); 10868 return resource.instance = instance; 10869 case "stylesheet": 10870 styleProps = getStyleKey(props.href); 10871 var _instance = hoistableRoot.querySelector(getStylesheetSelectorFromKey(styleProps)); 10872 if (_instance) return resource.state.loading |= Inserted, resource.instance = _instance, markNodeAsHoistable(_instance), _instance; 10873 instance = stylesheetPropsFromRawProps(props); 10874 (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); 10875 _instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link"); 10876 markNodeAsHoistable(_instance); 10877 var linkInstance = _instance; 10878 linkInstance._p = new Promise(function(resolve, reject) { 10879 linkInstance.onload = resolve; 10880 linkInstance.onerror = reject; 10881 }); 10882 setInitialProperties(_instance, "link", instance); 10883 resource.state.loading |= Inserted; 10884 insertStylesheet(_instance, props.precedence, hoistableRoot); 10885 return resource.instance = _instance; 10886 case "script": 10887 _instance = getScriptKey(props.src); 10888 if (styleProps = hoistableRoot.querySelector(getScriptSelectorFromKey(_instance))) return resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps; 10889 instance = props; 10890 if (styleProps = preloadPropsMap.get(_instance)) instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps); 10891 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 10892 styleProps = hoistableRoot.createElement("script"); 10893 markNodeAsHoistable(styleProps); 10894 setInitialProperties(styleProps, "link", instance); 10895 hoistableRoot.head.appendChild(styleProps); 10896 return resource.instance = styleProps; 10897 case "void": 10898 return null; 10899 default: 10900 throw Error('acquireResource encountered a resource type it did not expect: "' + resource.type + '". this is a bug in React.'); 10901 } 10902 else "stylesheet" === resource.type && (resource.state.loading & Inserted) === NotLoaded && (instance = resource.instance, resource.state.loading |= Inserted, insertStylesheet(instance, props.precedence, hoistableRoot)); 10903 return resource.instance; 10904 } 10905 function insertStylesheet(instance, precedence, root) { 10906 for(var nodes = root.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'), last = nodes.length ? nodes[nodes.length - 1] : null, prior = last, i = 0; i < nodes.length; i++){ 10907 var node = nodes[i]; 10908 if (node.dataset.precedence === precedence) prior = node; 10909 else if (prior !== last) break; 10910 } 10911 prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root.nodeType ? root.head : root, precedence.insertBefore(instance, precedence.firstChild)); 10912 } 10913 function adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) { 10914 null == stylesheetProps.crossOrigin && (stylesheetProps.crossOrigin = preloadProps.crossOrigin); 10915 null == stylesheetProps.referrerPolicy && (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy); 10916 null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title); 10917 } 10918 function adoptPreloadPropsForScript(scriptProps, preloadProps) { 10919 null == scriptProps.crossOrigin && (scriptProps.crossOrigin = preloadProps.crossOrigin); 10920 null == scriptProps.referrerPolicy && (scriptProps.referrerPolicy = preloadProps.referrerPolicy); 10921 null == scriptProps.integrity && (scriptProps.integrity = preloadProps.integrity); 10922 } 10923 function getHydratableHoistableCache(type, keyAttribute, ownerDocument) { 10924 if (null === tagCaches) { 10925 var cache = new Map(); 10926 var caches = tagCaches = new Map(); 10927 caches.set(ownerDocument, cache); 10928 } else caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = new Map(), caches.set(ownerDocument, cache)); 10929 if (cache.has(type)) return cache; 10930 cache.set(type, null); 10931 ownerDocument = ownerDocument.getElementsByTagName(type); 10932 for(caches = 0; caches < ownerDocument.length; caches++){ 10933 var node = ownerDocument[caches]; 10934 if (!(node[internalHoistableMarker] || node[internalInstanceKey] || "link" === type && "stylesheet" === node.getAttribute("rel")) && node.namespaceURI !== SVG_NAMESPACE) { 10935 var nodeKey = node.getAttribute(keyAttribute) || ""; 10936 nodeKey = type + nodeKey; 10937 var existing = cache.get(nodeKey);
10938 existing ? existing.push(node) : cache.set(nodeKey, [ 10939 node 10940 ]); 10941 } 10942 } 10943 return cache; 10944 } 10945 function mountHoistable(hoistableRoot, type, instance) { 10946 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 10947 hoistableRoot.head.insertBefore(instance, "title" === type ? hoistableRoot.querySelector("head > title") : null); 10948 } 10949 function isHostHoistableType(type, props, hostContext) { 10950 var outsideHostContainerContext = !hostContext.ancestorInfo.containerTagInScope; 10951 if (hostContext.context === HostContextNamespaceSvg || null != props.itemProp) return !outsideHostContainerContext || null == props.itemProp || "meta" !== type && "title" !== type && "style" !== type && "link" !== type && "script" !== type || console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.", type, type), !1; 10952 switch(type){ 10953 case "meta": 10954 case "title": 10955 return !0; 10956 case "style": 10957 if ("string" !== typeof props.precedence || "string" !== typeof props.href || "" === props.href) { 10958 outsideHostContainerContext && console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.'); 10959 break; 10960 } 10961 return !0; 10962 case "link": 10963 if ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href || props.onLoad || props.onError) { 10964 if ("stylesheet" === props.rel && "string" === typeof props.precedence) { 10965 type = props.href; 10966 var onError = props.onError, disabled = props.disabled; 10967 hostContext = []; 10968 props.onLoad && hostContext.push("`onLoad`"); 10969 onError && hostContext.push("`onError`"); 10970 null != disabled && hostContext.push("`disabled`"); 10971 onError = propNamesListJoin(hostContext, "and"); 10972 onError += 1 === hostContext.length ? " prop" : " props"; 10973 disabled = 1 === hostContext.length ? "an " + onError : "the " + onError; 10974 hostContext.length && console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.', type, disabled, onError); 10975 } 10976 outsideHostContainerContext && ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href ? console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag") : (props.onError || props.onLoad) && console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.")); 10977 break; 10978 } 10979 switch(props.rel){ 10980 case "stylesheet": 10981 return type = props.precedence, props = props.disabled, "string" !== typeof type && outsideHostContainerContext && console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'), "string" === typeof type && null == props; 10982 default: 10983 return !0; 10984 } 10985 case "script": 10986 type = props.async && "function" !== typeof props.async && "symbol" !== typeof props.async; 10987 if (!type || props.onLoad || props.onError || !props.src || "string" !== typeof props.src) { 10988 outsideHostContainerContext && (type ? props.onLoad || props.onError ? console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.") : console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.") : console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.')); 10989 break; 10990 } 10991 return !0; 10992 case "noscript": 10993 case "template": 10994 outsideHostContainerContext && console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.", type); 10995 } 10996 return !1; 10997 } 10998 function preloadResource(resource) { 10999 return "stylesheet" === resource.type && (resource.state.loading & Settled) === NotLoaded ? !1 : !0; 11000 } 11001 function suspendResource(hoistableRoot, resource, props) { 11002 if (null === suspendedState) throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug."); 11003 var state = suspendedState; 11004 if ("stylesheet" === resource.type && ("string" !== typeof props.media || !1 !== matchMedia(props.media).matches) && (resource.state.loading & Inserted) === NotLoaded) { 11005 if (null === resource.instance) { 11006 var key = getStyleKey(props.href), instance = hoistableRoot.querySelector(getStylesheetSelectorFromKey(key)); 11007 if (instance) { 11008 hoistableRoot = instance._p; 11009 null !== hoistableRoot && "object" === typeof hoistableRoot && "function" === typeof hoistableRoot.then && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state)); 11010 resource.state.loading |= Inserted; 11011 resource.instance = instance; 11012 markNodeAsHoistable(instance); 11013 return; 11014 } 11015 instance = hoistableRoot.ownerDocument || hoistableRoot; 11016 props = stylesheetPropsFromRawProps(props); 11017 (key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key); 11018 instance = instance.createElement("link"); 11019 markNodeAsHoistable(instance); 11020 var linkInstance = instance; 11021 linkInstance._p = new Promise(function(resolve, reject) { 11022 linkInstance.onload = resolve; 11023 linkInstance.onerror = reject; 11024 }); 11025 setInitialProperties(instance, "link", props); 11026 resource.instance = instance; 11027 } 11028 null === state.stylesheets && (state.stylesheets = new Map()); 11029 state.stylesheets.set(resource, hoistableRoot); 11030 (hoistableRoot = resource.state.preload) && (resource.state.loading & Settled) === NotLoaded && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource)); 11031 } 11032 } 11033 function waitForCommitToBeReady() { 11034 if (null === suspendedState) throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug."); 11035 var state = suspendedState; 11036 state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets); 11037 return 0 < state.count ? function(commit) { 11038 var stylesheetTimer = setTimeout(function() { 11039 state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets);
11040 if (state.unsuspend) { 11041 var unsuspend = state.unsuspend; 11042 state.unsuspend = null; 11043 unsuspend(); 11044 } 11045 }, 6e4); 11046 state.unsuspend = commit; 11047 return function() { 11048 state.unsuspend = null; 11049 clearTimeout(stylesheetTimer); 11050 }; 11051 } : null; 11052 } 11053 function onUnsuspend() { 11054 this.count--; 11055 if (0 === this.count) { 11056 if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets); 11057 else if (this.unsuspend) { 11058 var unsuspend = this.unsuspend; 11059 this.unsuspend = null; 11060 unsuspend(); 11061 } 11062 } 11063 } 11064 function insertSuspendedStylesheets(state, resources) { 11065 state.stylesheets = null; 11066 null !== state.unsuspend && (state.count++, precedencesByRoot = new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state)); 11067 } 11068 function insertStylesheetIntoRoot(root, resource) { 11069 if (!(resource.state.loading & Inserted)) { 11070 var precedences = precedencesByRoot.get(root); 11071 if (precedences) var last = precedences.get(LAST_PRECEDENCE); 11072 else { 11073 precedences = new Map(); 11074 precedencesByRoot.set(root, precedences); 11075 for(var nodes = root.querySelectorAll("link[data-precedence],style[data-precedence]"), i = 0; i < nodes.length; i++){ 11076 var node = nodes[i]; 11077 if ("LINK" === node.nodeName || "not all" !== node.getAttribute("media")) precedences.set(node.dataset.precedence, node), last = node; 11078 } 11079 last && precedences.set(LAST_PRECEDENCE, last); 11080 } 11081 nodes = resource.instance; 11082 node = nodes.getAttribute("data-precedence"); 11083 i = precedences.get(node) || last; 11084 i === last && precedences.set(LAST_PRECEDENCE, nodes); 11085 precedences.set(node, nodes); 11086 this.count++; 11087 last = onUnsuspend.bind(this); 11088 nodes.addEventListener("load", last); 11089 nodes.addEventListener("error", last); 11090 i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root = 9 === root.nodeType ? root.head : root, root.insertBefore(nodes, root.firstChild)); 11091 resource.state.loading |= Inserted; 11092 } 11093 } 11094 function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) { 11095 this.tag = 1; 11096 this.containerInfo = containerInfo; 11097 this.pingCache = this.current = this.pendingChildren = null; 11098 this.timeoutHandle = noTimeout; 11099 this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null; 11100 this.callbackPriority = 0; 11101 this.expirationTimes = createLaneMap(-1); 11102 this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; 11103 this.entanglements = createLaneMap(0); 11104 this.hiddenUpdates = createLaneMap(null); 11105 this.identifierPrefix = identifierPrefix; 11106 this.onUncaughtError = onUncaughtError; 11107 this.onCaughtError = onCaughtError; 11108 this.onRecoverableError = onRecoverableError; 11109 this.pooledCache = null; 11110 this.pooledCacheLanes = 0; 11111 this.formState = formState; 11112 this.incompleteTransitions = new Map(); 11113 this.passiveEffectDuration = this.effectDuration = -0; 11114 this.memoizedUpdaters = new Set(); 11115 containerInfo = this.pendingUpdatersLaneMap = []; 11116 for(tag = 0; 31 > tag; tag++)containerInfo.push(new Set()); 11117 this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; 11118 } 11119 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) { 11120 containerInfo = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState); 11121 tag = ConcurrentMode; 11122 !0 === isStrictMode && (tag |= StrictLegacyMode | StrictEffectsMode); 11123 isDevToolsPresent && (tag |= ProfileMode); 11124 isStrictMode = createFiber(3, null, null, tag); 11125 containerInfo.current = isStrictMode; 11126 isStrictMode.stateNode = containerInfo; 11127 tag = createCache(); 11128 retainCache(tag); 11129 containerInfo.pooledCache = tag; 11130 retainCache(tag); 11131 isStrictMode.memoizedState = { 11132 element: initialChildren, 11133 isDehydrated: hydrate, 11134 cache: tag 11135 }; 11136 initializeUpdateQueue(isStrictMode); 11137 return containerInfo; 11138 } 11139 function getContextForSubtree(parentComponent) { 11140 if (!parentComponent) return emptyContextObject; 11141 parentComponent = emptyContextObject; 11142 return parentComponent; 11143 } 11144 function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) { 11145 if (injectedHook && "function" === typeof injectedHook.onScheduleFiberRoot) try { 11146 injectedHook.onScheduleFiberRoot(rendererID, container, element); 11147 } catch (err) { 11148 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 11149 } 11150 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderScheduled && injectedProfilingHooks.markRenderScheduled(lane); 11151 parentComponent = getContextForSubtree(parentComponent); 11152 null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; 11153 isRendering && null !== current && !didWarnAboutNestedUpdates && (didWarnAboutNestedUpdates = !0, console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", getComponentNameFromFiber(current) || "Unknown")); 11154 container = createUpdate(lane); 11155 container.payload = { 11156 element: element 11157 }; 11158 callback = void 0 === callback ? null : callback; 11159 null !== callback && ("function" !== typeof callback && console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", callback), container.callback = callback); 11160 element = enqueueUpdate(rootFiber, container, lane); 11161 null !== element && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane)); 11162 } 11163 function markRetryLaneImpl(fiber, retryLane) { 11164 fiber = fiber.memoizedState; 11165 if (null !== fiber && null !== fiber.dehydrated) { 11166 var a = fiber.retryLane; 11167 fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane; 11168 } 11169 } 11170 function markRetryLaneIfNotHydrated(fiber, retryLane) { 11171 markRetryLaneImpl(fiber, retryLane); 11172 (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane); 11173 } 11174 function attemptContinuousHydration(fiber) { 11175 if (13 === fiber.tag || 31 === fiber.tag) { 11176 var root = enqueueConcurrentRenderForLane(fiber, 67108864); 11177 null !== root && scheduleUpdateOnFiber(root, fiber, 67108864); 11178 markRetryLaneIfNotHydrated(fiber, 67108864); 11179 } 11180 } 11181 function attemptHydrationAtCurrentPriority(fiber) { 11182 if (13 === fiber.tag || 31 === fiber.tag) { 11183 var lane = requestUpdateLane(fiber); 11184 lane = getBumpedLaneForHydrationByLane(lane); 11185 var root = enqueueConcurrentRenderForLane(fiber, lane); 11186 null !== root && scheduleUpdateOnFiber(root, fiber, lane); 11187 markRetryLaneIfNotHydrated(fiber, lane); 11188 } 11189 } 11190 function getCurrentFiberForDevTools() { 11191 return current; 11192 } 11193 function getLaneLabelMap() { 11194 for(var map = new Map(), lane = 1, index = 0; 31 > index; index++){ 11195 var label = getLabelForLane(lane); 11196 map.set(lane, label); 11197 lane *= 2; 11198 } 11199 return map; 11200 } 11201 function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { 11202 var prevTransition = ReactSharedInternals.T; 11203 ReactSharedInternals.T = null; 11204 var previousPriority = ReactDOMSharedInternals.p; 11205 try { 11206 ReactDOMSharedInternals.p = DiscreteEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 11207 } finally{ 11208 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 11209 } 11210 } 11211 function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) { 11212 var prevTransition = ReactSharedInternals.T; 11213 ReactSharedInternals.T = null; 11214 var previousPriority = ReactDOMSharedInternals.p; 11215 try { 11216 ReactDOMSharedInternals.p = ContinuousEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 11217 } finally{ 11218 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 11219 } 11220 } 11221 function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11222 if (_enabled) { 11223 var blockedOn = findInstanceBlockingEvent(nativeEvent); 11224 if (null === blockedOn) dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer), clearIfContinuousEvent(domEventName, nativeEvent); 11225 else if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) nativeEvent.stopPropagation(); 11226 else if (clearIfContinuousEvent(domEventName, nativeEvent), eventSystemFlags & 4 && -1 < discreteReplayableEvents.indexOf(domEventName)) { 11227 for(; null !== blockedOn;){ 11228 var fiber = getInstanceFromNode(blockedOn);
vendor: 21,273 bytes, lines 11229-11608
11229 if (null !== fiber) switch(fiber.tag){ 11230 case 3: 11231 fiber = fiber.stateNode; 11232 if (fiber.current.memoizedState.isDehydrated) { 11233 var lanes = getHighestPriorityLanes(fiber.pendingLanes); 11234 if (0 !== lanes) { 11235 var root = fiber; 11236 root.pendingLanes |= 2; 11237 for(root.entangledLanes |= 2; lanes;){ 11238 var lane = 1 << 31 - clz32(lanes); 11239 root.entanglements[1] |= lane; 11240 lanes &= ~lane; 11241 } 11242 ensureRootIsScheduled(fiber); 11243 (executionContext & (RenderContext | CommitContext)) === NoContext && (workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS, flushSyncWorkAcrossRoots_impl(0, !1)); 11244 } 11245 } 11246 break; 11247 case 31: 11248 case 13: 11249 root = enqueueConcurrentRenderForLane(fiber, 2), null !== root && scheduleUpdateOnFiber(root, fiber, 2), flushSyncWork$1(), markRetryLaneIfNotHydrated(fiber, 2); 11250 } 11251 fiber = findInstanceBlockingEvent(nativeEvent); 11252 null === fiber && dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer); 11253 if (fiber === blockedOn) break; 11254 blockedOn = fiber; 11255 } 11256 null !== blockedOn && nativeEvent.stopPropagation(); 11257 } else dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer); 11258 } 11259 } 11260 function findInstanceBlockingEvent(nativeEvent) { 11261 nativeEvent = getEventTarget(nativeEvent); 11262 return findInstanceBlockingTarget(nativeEvent); 11263 } 11264 function findInstanceBlockingTarget(targetNode) { 11265 return_targetInst = null; 11266 targetNode = getClosestInstanceFromNode(targetNode); 11267 if (null !== targetNode) { 11268 var nearestMounted = getNearestMountedFiber(targetNode); 11269 if (null === nearestMounted) targetNode = null; 11270 else { 11271 var tag = nearestMounted.tag; 11272 if (13 === tag) { 11273 targetNode = getSuspenseInstanceFromFiber(nearestMounted); 11274 if (null !== targetNode) return targetNode; 11275 targetNode = null; 11276 } else if (31 === tag) { 11277 targetNode = getActivityInstanceFromFiber(nearestMounted); 11278 if (null !== targetNode) return targetNode; 11279 targetNode = null; 11280 } else if (3 === tag) { 11281 if (nearestMounted.stateNode.current.memoizedState.isDehydrated) return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 11282 targetNode = null; 11283 } else nearestMounted !== targetNode && (targetNode = null); 11284 } 11285 } 11286 return_targetInst = targetNode; 11287 return null; 11288 } 11289 function getEventPriority(domEventName) { 11290 switch(domEventName){ 11291 case "beforetoggle": 11292 case "cancel": 11293 case "click": 11294 case "close": 11295 case "contextmenu": 11296 case "copy": 11297 case "cut": 11298 case "auxclick": 11299 case "dblclick": 11300 case "dragend": 11301 case "dragstart": 11302 case "drop": 11303 case "focusin": 11304 case "focusout": 11305 case "input": 11306 case "invalid": 11307 case "keydown": 11308 case "keypress": 11309 case "keyup": 11310 case "mousedown": 11311 case "mouseup": 11312 case "paste": 11313 case "pause": 11314 case "play": 11315 case "pointercancel": 11316 case "pointerdown": 11317 case "pointerup": 11318 case "ratechange": 11319 case "reset": 11320 case "resize": 11321 case "seeked": 11322 case "submit": 11323 case "toggle": 11324 case "touchcancel": 11325 case "touchend": 11326 case "touchstart": 11327 case "volumechange": 11328 case "change": 11329 case "selectionchange": 11330 case "textInput": 11331 case "compositionstart": 11332 case "compositionend": 11333 case "compositionupdate": 11334 case "beforeblur": 11335 case "afterblur": 11336 case "beforeinput": 11337 case "blur": 11338 case "fullscreenchange": 11339 case "focus": 11340 case "hashchange": 11341 case "popstate": 11342 case "select": 11343 case "selectstart": 11344 return DiscreteEventPriority; 11345 case "drag": 11346 case "dragenter": 11347 case "dragexit": 11348 case "dragleave": 11349 case "dragover": 11350 case "mousemove": 11351 case "mouseout": 11352 case "mouseover": 11353 case "pointermove": 11354 case "pointerout": 11355 case "pointerover": 11356 case "scroll": 11357 case "touchmove": 11358 case "wheel": 11359 case "mouseenter": 11360 case "mouseleave": 11361 case "pointerenter": 11362 case "pointerleave": 11363 return ContinuousEventPriority; 11364 case "message": 11365 switch(getCurrentPriorityLevel()){ 11366 case ImmediatePriority: 11367 return DiscreteEventPriority; 11368 case UserBlockingPriority: 11369 return ContinuousEventPriority; 11370 case NormalPriority$1: 11371 case LowPriority: 11372 return DefaultEventPriority; 11373 case IdlePriority: 11374 return IdleEventPriority; 11375 default: 11376 return DefaultEventPriority; 11377 } 11378 default: 11379 return DefaultEventPriority; 11380 } 11381 } 11382 function clearIfContinuousEvent(domEventName, nativeEvent) { 11383 switch(domEventName){ 11384 case "focusin": 11385 case "focusout": 11386 queuedFocus = null; 11387 break; 11388 case "dragenter": 11389 case "dragleave": 11390 queuedDrag = null; 11391 break; 11392 case "mouseover": 11393 case "mouseout": 11394 queuedMouse = null; 11395 break; 11396 case "pointerover": 11397 case "pointerout": 11398 queuedPointers.delete(nativeEvent.pointerId); 11399 break; 11400 case "gotpointercapture": 11401 case "lostpointercapture": 11402 queuedPointerCaptures.delete(nativeEvent.pointerId); 11403 } 11404 } 11405 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11406 if (null === existingQueuedEvent || existingQueuedEvent.nativeEvent !== nativeEvent) return existingQueuedEvent = { 11407 blockedOn: blockedOn, 11408 domEventName: domEventName, 11409 eventSystemFlags: eventSystemFlags, 11410 nativeEvent: nativeEvent, 11411 targetContainers: [ 11412 targetContainer 11413 ] 11414 }, null !== blockedOn && (blockedOn = getInstanceFromNode(blockedOn), null !== blockedOn && attemptContinuousHydration(blockedOn)), existingQueuedEvent; 11415 existingQueuedEvent.eventSystemFlags |= eventSystemFlags; 11416 blockedOn = existingQueuedEvent.targetContainers; 11417 null !== targetContainer && -1 === blockedOn.indexOf(targetContainer) && blockedOn.push(targetContainer); 11418 return existingQueuedEvent; 11419 } 11420 function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11421 switch(domEventName){ 11422 case "focusin": 11423 return queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11424 case "dragenter": 11425 return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11426 case "mouseover": 11427 return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11428 case "pointerover": 11429 var pointerId = nativeEvent.pointerId; 11430 queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)); 11431 return !0; 11432 case "gotpointercapture": 11433 return pointerId = nativeEvent.pointerId, queuedPointerCaptures.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)), !0; 11434 } 11435 return !1; 11436 } 11437 function attemptExplicitHydrationTarget(queuedTarget) { 11438 var targetInst = getClosestInstanceFromNode(queuedTarget.target); 11439 if (null !== targetInst) { 11440 var nearestMounted = getNearestMountedFiber(targetInst); 11441 if (null !== nearestMounted) { 11442 if (targetInst = nearestMounted.tag, 13 === targetInst) { 11443 if (targetInst = getSuspenseInstanceFromFiber(nearestMounted), null !== targetInst) { 11444 queuedTarget.blockedOn = targetInst; 11445 runWithPriority(queuedTarget.priority, function() { 11446 attemptHydrationAtCurrentPriority(nearestMounted); 11447 }); 11448 return; 11449 } 11450 } else if (31 === targetInst) { 11451 if (targetInst = getActivityInstanceFromFiber(nearestMounted), null !== targetInst) { 11452 queuedTarget.blockedOn = targetInst; 11453 runWithPriority(queuedTarget.priority, function() { 11454 attemptHydrationAtCurrentPriority(nearestMounted); 11455 }); 11456 return; 11457 } 11458 } else if (3 === targetInst && nearestMounted.stateNode.current.memoizedState.isDehydrated) { 11459 queuedTarget.blockedOn = 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 11460 return; 11461 } 11462 } 11463 } 11464 queuedTarget.blockedOn = null; 11465 } 11466 function attemptReplayContinuousQueuedEvent(queuedEvent) { 11467 if (null !== queuedEvent.blockedOn) return !1; 11468 for(var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length;){ 11469 var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent); 11470 if (null === nextBlockedOn) { 11471 nextBlockedOn = queuedEvent.nativeEvent; 11472 var nativeEventClone = new nextBlockedOn.constructor(nextBlockedOn.type, nextBlockedOn), event = nativeEventClone; 11473 null !== currentReplayingEvent && console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."); 11474 currentReplayingEvent = event; 11475 nextBlockedOn.target.dispatchEvent(nativeEventClone); 11476 null === currentReplayingEvent && console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."); 11477 currentReplayingEvent = null; 11478 } else return targetContainers = getInstanceFromNode(nextBlockedOn), null !== targetContainers && attemptContinuousHydration(targetContainers), queuedEvent.blockedOn = nextBlockedOn, !1; 11479 targetContainers.shift(); 11480 } 11481 return !0; 11482 } 11483 function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { 11484 attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key); 11485 } 11486 function replayUnblockedEvents() { 11487 hasScheduledReplayAttempt = !1; 11488 null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null); 11489 null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null); 11490 null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null); 11491 queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); 11492 queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); 11493 } 11494 function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { 11495 queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = !0, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents))); 11496 } 11497 function scheduleReplayQueueIfNeeded(formReplayingQueue) { 11498 lastScheduledReplayQueue !== formReplayingQueue && (lastScheduledReplayQueue = formReplayingQueue, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, function() { 11499 lastScheduledReplayQueue === formReplayingQueue && (lastScheduledReplayQueue = null); 11500 for(var i = 0; i < formReplayingQueue.length; i += 3){ 11501 var form = formReplayingQueue[i], submitterOrAction = formReplayingQueue[i + 1], formData = formReplayingQueue[i + 2]; 11502 if ("function" !== typeof submitterOrAction) if (null === findInstanceBlockingTarget(submitterOrAction || form)) continue; 11503 else break; 11504 var formInst = getInstanceFromNode(form); 11505 null !== formInst && (formReplayingQueue.splice(i, 3), i -= 3, form = { 11506 pending: !0, 11507 data: formData, 11508 method: form.method, 11509 action: submitterOrAction 11510 }, Object.freeze(form), startHostTransition(formInst, form, submitterOrAction, formData)); 11511 } 11512 })); 11513 } 11514 function retryIfBlockedOn(unblocked) { 11515 function unblock(queuedEvent) { 11516 return scheduleCallbackIfUnblocked(queuedEvent, unblocked); 11517 } 11518 null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); 11519 null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); 11520 null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); 11521 queuedPointers.forEach(unblock); 11522 queuedPointerCaptures.forEach(unblock); 11523 for(var i = 0; i < queuedExplicitHydrationTargets.length; i++){ 11524 var queuedTarget = queuedExplicitHydrationTargets[i]; 11525 queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); 11526 } 11527 for(; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0], null === i.blockedOn);)attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); 11528 i = (unblocked.ownerDocument || unblocked).$$reactFormReplay; 11529 if (null != i) for(queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3){ 11530 var form = i[queuedTarget], submitterOrAction = i[queuedTarget + 1], formProps = form[internalPropsKey] || null; 11531 if ("function" === typeof submitterOrAction) formProps || scheduleReplayQueueIfNeeded(i); 11532 else if (formProps) { 11533 var action = null; 11534 if (submitterOrAction && submitterOrAction.hasAttribute("formAction")) if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null) action = formProps.formAction; 11535 else { 11536 if (null !== findInstanceBlockingTarget(form)) continue; 11537 } 11538 else action = formProps.action; 11539 "function" === typeof action ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3); 11540 scheduleReplayQueueIfNeeded(i); 11541 } 11542 } 11543 } 11544 function defaultOnDefaultTransitionIndicator() { 11545 function handleNavigate(event) { 11546 event.canIntercept && "react-transition" === event.info && event.intercept({ 11547 handler: function() { 11548 return new Promise(function(resolve) { 11549 return pendingResolve = resolve; 11550 }); 11551 }, 11552 focusReset: "manual", 11553 scroll: "manual" 11554 }); 11555 } 11556 function handleNavigateComplete() { 11557 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 11558 isCancelled || setTimeout(startFakeNavigation, 20); 11559 } 11560 function startFakeNavigation() { 11561 if (!isCancelled && !navigation.transition) { 11562 var currentEntry = navigation.currentEntry; 11563 currentEntry && null != currentEntry.url && navigation.navigate(currentEntry.url, { 11564 state: currentEntry.getState(), 11565 info: "react-transition", 11566 history: "replace" 11567 }); 11568 } 11569 } 11570 if ("object" === typeof navigation) { 11571 var isCancelled = !1, pendingResolve = null; 11572 navigation.addEventListener("navigate", handleNavigate); 11573 navigation.addEventListener("navigatesuccess", handleNavigateComplete); 11574 navigation.addEventListener("navigateerror", handleNavigateComplete); 11575 setTimeout(startFakeNavigation, 100); 11576 return function() { 11577 isCancelled = !0; 11578 navigation.removeEventListener("navigate", handleNavigate); 11579 navigation.removeEventListener("navigatesuccess", handleNavigateComplete); 11580 navigation.removeEventListener("navigateerror", handleNavigateComplete); 11581 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 11582 }; 11583 } 11584 } 11585 function ReactDOMRoot(internalRoot) { 11586 this._internalRoot = internalRoot; 11587 } 11588 function ReactDOMHydrationRoot(internalRoot) { 11589 this._internalRoot = internalRoot; 11590 } 11591 function warnIfReactDOMContainerInDEV(container) { 11592 container[internalContainerInstanceKey] && (container._reactRootContainer ? console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.")); 11593 } 11594 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 11595 var Scheduler = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/scheduler/index.js [app-client] (ecmascript)"), React = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"), ReactDOM = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react-dom/index.js [app-client] (ecmascript)"), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"); 11596 Symbol.for("react.scope"); 11597 var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"); 11598 Symbol.for("react.legacy_hidden"); 11599 Symbol.for("react.tracing_marker"); 11600 var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"); 11601 Symbol.for("react.view_transition"); 11602 var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({ 11603 pending: !1, 11604 data: null, 11605 method: null, 11606 action: null 11607 }), valueStack = []; 11608 var fiberStack = [];
11609 var index$jscomp$0 = -1, contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd; 11610 disabledLog.__reactDisabledLog = !0; 11611 var prefix, suffix, reentry = !1; 11612 var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)(); 11613 var current = null, isRendering = !1, hasOwnProperty = Object.prototype.hasOwnProperty, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, log$1 = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, injectedProfilingHooks = null, hasLoggedError = !1, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2, nextTransitionLane = 256, nextRetryLane = 4194304, DiscreteEventPriority = 2, ContinuousEventPriority = 8, DefaultEventPriority = 32, IdleEventPriority = 268435456, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactFiber$" + randomKey, internalPropsKey = "__reactProps$" + randomKey, internalContainerInstanceKey = "__reactContainer$" + randomKey, internalEventHandlersKey = "__reactEvents$" + randomKey, internalEventHandlerListenersKey = "__reactListeners$" + randomKey, internalEventHandlesSetKey = "__reactHandles$" + randomKey, internalRootNodeResourcesKey = "__reactResources$" + randomKey, internalHoistableMarker = "__reactMarker$" + randomKey, allNativeEvents = new Set(), registrationNameDependencies = {}, possibleRegistrationNames = {}, hasReadOnlyValue = { 11614 button: !0, 11615 checkbox: !0, 11616 image: !0, 11617 hidden: !0, 11618 radio: !0, 11619 reset: !0, 11620 submit: !0 11621 }, VALID_ATTRIBUTE_NAME_REGEX = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, didWarnSelectedSetOnOption = !1, didWarnInvalidChild = !1, didWarnInvalidInnerHTML = !1; 11622 var didWarnValueDefaultValue = !1; 11623 var valuePropNames = [ 11624 "value", 11625 "defaultValue" 11626 ], didWarnValDefaultVal = !1, needsEscaping = /["'&<>\n\t]|^\s|\s$/, specialTags = "address applet area article aside base basefont bgsound blockquote body br button caption center col
11626colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "), inScopeTags = "applet caption html table td th marquee object template foreignObject desc title".split(" "), buttonScopeTags = inScopeTags.concat([ 11627 "button" 11628 ]), impliedEndTags = "dd dt li option optgroup p rp rt".split(" "), emptyAncestorInfoDev = { 11629 current: null, 11630 formTag: null, 11631 aTagInScope: null, 11632 buttonTagInScope: null, 11633 nobrTagInScope: null, 11634 pTagInButtonScope: null, 11635 listItemTagAutoclosing: null, 11636 dlItemTagAutoclosing: null, 11637 containerTagInScope: null, 11638 implicitRootScope: !1 11639 }, didWarn = {}, shorthandToLonghand = { 11640 animation: "animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "), 11641 background: "backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "), 11642 backgroundPosition: [ 11643 "backgroundPositionX", 11644 "backgroundPositionY" 11645 ], 11646 border: "borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "), 11647 borderBlockEnd: [ 11648 "borderBlockEndColor", 11649 "borderBlockEndStyle", 11650 "borderBlockEndWidth" 11651 ], 11652 borderBlockStart: [ 11653 "borderBlockStartColor", 11654 "borderBlockStartStyle", 11655 "borderBlockStartWidth" 11656 ], 11657 borderBottom: [ 11658 "borderBottomColor", 11659 "borderBottomStyle", 11660 "borderBottomWidth" 11661 ], 11662 borderColor: [ 11663 "borderBottomColor", 11664 "borderLeftColor", 11665 "borderRightColor", 11666 "borderTopColor" 11667 ], 11668 borderImage: [ 11669 "borderImageOutset", 11670 "borderImageRepeat", 11671 "borderImageSlice", 11672 "borderImageSource", 11673 "borderImageWidth" 11674 ], 11675 borderInlineEnd: [ 11676 "borderInlineEndColor", 11677 "borderInlineEndStyle", 11678 "borderInlineEndWidth" 11679 ], 11680 borderInlineStart: [ 11681 "borderInlineStartColor", 11682 "borderInlineStartStyle", 11683 "borderInlineStartWidth" 11684 ], 11685 borderLeft: [ 11686 "borderLeftColor", 11687 "borderLeftStyle", 11688 "borderLeftWidth" 11689 ], 11690 borderRadius: [ 11691 "borderBottomLeftRadius", 11692 "borderBottomRightRadius", 11693 "borderTopLeftRadius", 11694 "borderTopRightRadius" 11695 ], 11696 borderRight: [ 11697 "borderRightColor", 11698 "borderRightStyle", 11699 "borderRightWidth" 11700 ], 11701 borderStyle: [ 11702 "borderBottomStyle", 11703 "borderLeftStyle", 11704 "borderRightStyle", 11705 "borderTopStyle" 11706 ], 11707 borderTop: [ 11708 "borderTopColor", 11709 "borderTopStyle", 11710 "borderTopWidth" 11711 ], 11712 borderWidth: [ 11713 "borderBottomWidth", 11714 "borderLeftWidth", 11715 "borderRightWidth", 11716 "borderTopWidth" 11717 ], 11718 columnRule: [ 11719 "columnRuleColor", 11720 "columnRuleStyle", 11721 "columnRuleWidth" 11722 ], 11723 columns: [ 11724 "columnCount", 11725 "columnWidth" 11726 ], 11727 flex: [ 11728 "flexBasis", 11729 "flexGrow", 11730 "flexShrink" 11731 ], 11732 flexFlow: [ 11733 "flexDirection", 11734 "flexWrap" 11735 ], 11736 font: "fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "), 11737 fontVariant: "fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "), 11738 gap: [ 11739 "columnGap", 11740 "rowGap" 11741 ], 11742 grid: "gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "), 11743 gridArea: [ 11744 "gridColumnEnd", 11745 "gridColumnStart", 11746 "gridRowEnd", 11747 "gridRowStart" 11748 ], 11749 gridColumn: [ 11750 "gridColumnEnd", 11751 "gridColumnStart" 11752 ], 11753 gridColumnGap: [ 11754 "columnGap" 11755 ], 11756 gridGap: [ 11757 "columnGap", 11758 "rowGap" 11759 ], 11760 gridRow: [ 11761 "gridRowEnd", 11762 "gridRowStart" 11763 ], 11764 gridRowGap: [ 11765 "rowGap" 11766 ], 11767 gridTemplate: [ 11768 "gridTemplateAreas", 11769 "gridTemplateColumns", 11770 "gridTemplateRows" 11771 ], 11772 listStyle: [ 11773 "listStyleImage", 11774 "listStylePosition", 11775 "listStyleType" 11776 ], 11777 margin: [ 11778 "marginBottom", 11779 "marginLeft", 11780 "marginRight", 11781 "marginTop" 11782 ], 11783 marker: [ 11784 "markerEnd", 11785 "markerMid", 11786 "markerStart" 11787 ], 11788 mask: "maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "), 11789 maskPosition: [ 11790 "maskPositionX", 11791 "maskPositionY" 11792 ], 11793 outline: [ 11794 "outlineColor", 11795 "outlineStyle", 11796 "outlineWidth" 11797 ], 11798 overflow: [ 11799 "overflowX", 11800 "overflowY" 11801 ], 11802 padding: [ 11803 "paddingBottom", 11804 "paddingLeft", 11805 "paddingRight", 11806 "paddingTop" 11807 ], 11808 placeContent: [ 11809 "alignContent", 11810 "justifyContent" 11811 ], 11812 placeItems: [ 11813 "alignItems", 11814 "justifyItems" 11815 ], 11816 placeSelf: [ 11817 "alignSelf", 11818 "justifySelf" 11819 ], 11820 textDecoration: [ 11821 "textDecorationColor", 11822 "textDecorationLine", 11823 "textDecorationStyle" 11824 ], 11825 textEmphasis: [ 11826 "textEmphasisColor", 11827 "textEmphasisStyle" 11828 ], 11829 transition: [ 11830 "transitionDelay", 11831 "transitionDuration", 11832 "transitionProperty", 11833 "transitionTimingFunction" 11834 ], 11835 wordWrap: [ 11836 "overflowWrap" 11837 ] 11838 }, uppercasePattern = /([A-Z])/g, msPattern$1 = /^ms-/, badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnedForInfinityValue = !1, unitlessNumbers = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")), MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", aliases = new Map([ 11839 [ 11840 "acceptCharset", 11841 "accept-charset" 11842 ], 11843 [ 11844 "htmlFor", 11845 "for" 11846 ], 11847 [ 11848 "httpEquiv", 11849 "http-equiv" 11850 ], 11851 [ 11852 "crossOrigin", 11853 "crossorigin" 11854 ], 11855 [ 11856 "accentHeight", 11857 "accent-height" 11858 ], 11859 [ 11860 "alignmentBaseline", 11861 "alignment-baseline" 11862 ], 11863 [ 11864 "arabicForm", 11865 "arabic-form" 11866 ], 11867 [ 11868 "baselineShift", 11869 "baseline-shift" 11870 ], 11871 [ 11872 "capHeight", 11873 "cap-height" 11874 ], 11875 [ 11876 "clipPath", 11877 "clip-path" 11878 ], 11879 [ 11880 "clipRule", 11881 "clip-rule" 11882 ], 11883 [ 11884 "colorInterpolation", 11885 "color-interpolation" 11886 ], 11887 [ 11888 "colorInterpolationFilters", 11889 "color-interpolation-filters" 11890 ], 11891 [ 11892 "colorProfile", 11893 "color-profile" 11894 ], 11895 [
11896 "colorRendering", 11897 "color-rendering" 11898 ], 11899 [ 11900 "dominantBaseline", 11901 "dominant-baseline" 11902 ], 11903 [ 11904 "enableBackground", 11905 "enable-background" 11906 ], 11907 [ 11908 "fillOpacity", 11909 "fill-opacity" 11910 ], 11911 [ 11912 "fillRule", 11913 "fill-rule" 11914 ], 11915 [ 11916 "floodColor", 11917 "flood-color" 11918 ], 11919 [ 11920 "floodOpacity", 11921 "flood-opacity" 11922 ], 11923 [ 11924 "fontFamily", 11925 "font-family" 11926 ], 11927 [ 11928 "fontSize", 11929 "font-size" 11930 ], 11931 [ 11932 "fontSizeAdjust", 11933 "font-size-adjust" 11934 ], 11935 [ 11936 "fontStretch", 11937 "font-stretch" 11938 ], 11939 [ 11940 "fontStyle", 11941 "font-style" 11942 ], 11943 [ 11944 "fontVariant", 11945 "font-variant" 11946 ], 11947 [ 11948 "fontWeight", 11949 "font-weight" 11950 ], 11951 [ 11952 "glyphName", 11953 "glyph-name" 11954 ], 11955 [ 11956 "glyphOrientationHorizontal", 11957 "glyph-orientation-horizontal" 11958 ], 11959 [ 11960 "glyphOrientationVertical", 11961 "glyph-orientation-vertical" 11962 ], 11963 [ 11964 "horizAdvX", 11965 "horiz-adv-x" 11966 ], 11967 [ 11968 "horizOriginX", 11969 "horiz-origin-x" 11970 ], 11971 [ 11972 "imageRendering", 11973 "image-rendering" 11974 ], 11975 [ 11976 "letterSpacing", 11977 "letter-spacing" 11978 ], 11979 [ 11980 "lightingColor", 11981 "lighting-color" 11982 ], 11983 [ 11984 "markerEnd", 11985 "marker-end" 11986 ], 11987 [ 11988 "markerMid", 11989 "marker-mid" 11990 ], 11991 [ 11992 "markerStart", 11993 "marker-start" 11994 ], 11995 [ 11996 "overlinePosition", 11997 "overline-position" 11998 ], 11999 [ 12000 "overlineThickness", 12001 "overline-thickness" 12002 ], 12003 [ 12004 "paintOrder", 12005 "paint-order" 12006 ], 12007 [ 12008 "panose-1", 12009 "panose-1" 12010 ], 12011 [ 12012 "pointerEvents", 12013 "pointer-events" 12014 ], 12015 [ 12016 "renderingIntent", 12017 "rendering-intent" 12018 ], 12019 [ 12020 "shapeRendering", 12021 "shape-rendering" 12022 ], 12023 [ 12024 "stopColor", 12025 "stop-color" 12026 ], 12027 [ 12028 "stopOpacity", 12029 "stop-opacity" 12030 ], 12031 [ 12032 "strikethroughPosition", 12033 "strikethrough-position" 12034 ], 12035 [ 12036 "strikethroughThickness", 12037 "strikethrough-thickness" 12038 ], 12039 [ 12040 "strokeDasharray", 12041 "stroke-dasharray" 12042 ], 12043 [ 12044 "strokeDashoffset", 12045 "stroke-dashoffset" 12046 ], 12047 [ 12048 "strokeLinecap", 12049 "stroke-linecap" 12050 ], 12051 [ 12052 "strokeLinejoin", 12053 "stroke-linejoin" 12054 ], 12055 [ 12056 "strokeMiterlimit", 12057 "stroke-miterlimit" 12058 ], 12059 [ 12060 "strokeOpacity", 12061 "stroke-opacity" 12062 ], 12063 [ 12064 "strokeWidth", 12065 "stroke-width" 12066 ], 12067 [ 12068 "textAnchor", 12069 "text-anchor" 12070 ], 12071 [ 12072 "textDecoration", 12073 "text-decoration" 12074 ], 12075 [ 12076 "textRendering", 12077 "text-rendering" 12078 ], 12079 [ 12080 "transformOrigin", 12081 "transform-origin" 12082 ], 12083 [ 12084 "underlinePosition", 12085 "underline-position" 12086 ], 12087 [ 12088 "underlineThickness", 12089 "underline-thickness" 12090 ], 12091 [ 12092 "unicodeBidi", 12093 "unicode-bidi" 12094 ], 12095 [ 12096 "unicodeRange", 12097 "unicode-range" 12098 ], 12099 [ 12100 "unitsPerEm", 12101 "units-per-em" 12102 ], 12103 [ 12104 "vAlphabetic", 12105 "v-alphabetic" 12106 ], 12107 [ 12108 "vHanging", 12109 "v-hanging" 12110 ], 12111 [ 12112 "vIdeographic", 12113 "v-ideographic" 12114 ], 12115 [ 12116 "vMathematical", 12117 "v-mathematical" 12118 ], 12119 [ 12120 "vectorEffect", 12121 "vector-effect" 12122 ], 12123 [ 12124 "vertAdvY", 12125 "vert-adv-y" 12126 ], 12127 [ 12128 "vertOriginX", 12129 "vert-origin-x" 12130 ], 12131 [ 12132 "vertOriginY", 12133 "vert-origin-y" 12134 ], 12135 [ 12136 "wordSpacing", 12137 "word-spacing" 12138 ], 12139 [ 12140 "writingMode", 12141 "writing-mode" 12142 ], 12143 [ 12144 "xmlnsXlink", 12145 "xmlns:xlink" 12146 ], 12147 [ 12148 "xHeight", 12149 "x-height" 12150 ] 12151 ]), possibleStandardNames = { 12152 accept: "accept", 12153 acceptcharset: "acceptCharset", 12154 "accept-charset": "acceptCharset", 12155 accesskey: "accessKey", 12156 action: "action", 12157 allowfullscreen: "allowFullScreen", 12158 alt: "alt", 12159 as: "as", 12160 async: "async", 12161 autocapitalize: "autoCapitalize", 12162 autocomplete: "autoComplete", 12163 autocorrect: "autoCorrect", 12164 autofocus: "autoFocus", 12165 autoplay: "autoPlay", 12166 autosave: "autoSave", 12167 capture: "capture", 12168 cellpadding: "cellPadding", 12169 cellspacing: "cellSpacing", 12170 challenge: "challenge", 12171 charset: "charSet", 12172 checked: "checked", 12173 children: "children", 12174 cite: "cite", 12175 class: "className", 12176 classid: "classID", 12177 classname: "className", 12178 cols: "cols", 12179 colspan: "colSpan", 12180 content: "content", 12181 contenteditable: "contentEditable", 12182 contextmenu: "contextMenu", 12183 controls: "controls", 12184 controlslist: "controlsList", 12185 coords: "coords", 12186 crossorigin: "crossOrigin", 12187 dangerouslysetinnerhtml: "dangerouslySetInnerHTML", 12188 data: "data", 12189 datetime: "dateTime", 12190 default: "default", 12191 defaultchecked: "defaultChecked", 12192 defaultvalue: "defaultValue", 12193 defer: "defer", 12194 dir: "dir", 12195 disabled: "disabled", 12196 disablepictureinpicture: "disablePictureInPicture", 12197 disableremoteplayback: "disableRemotePlayback", 12198 download: "download", 12199 draggable: "draggable", 12200 enctype: "encType", 12201 enterkeyhint: "enterKeyHint", 12202 fetchpriority: "fetchPriority", 12203 for: "htmlFor", 12204 form: "form", 12205 formmethod: "formMethod", 12206 formaction: "formAction", 12207 formenctype: "formEncType", 12208 formnovalidate: "formNoValidate", 12209 formtarget: "formTarget", 12210 frameborder: "frameBorder", 12211 headers: "headers", 12212 height: "height", 12213 hidden: "hidden", 12214 high: "high", 12215 href: "href", 12216 hreflang: "hrefLang", 12217 htmlfor: "htmlFor", 12218 httpequiv: "httpEquiv", 12219 "http-equiv": "httpEquiv", 12220 icon: "icon", 12221 id: "id", 12222 imagesizes: "imageSizes", 12223 imagesrcset: "imageSrcSet", 12224 inert: "inert",
12225 innerhtml: "innerHTML", 12226 inputmode: "inputMode", 12227 integrity: "integrity", 12228 is: "is", 12229 itemid: "itemID", 12230 itemprop: "itemProp", 12231 itemref: "itemRef", 12232 itemscope: "itemScope", 12233 itemtype: "itemType", 12234 keyparams: "keyParams", 12235 keytype: "keyType", 12236 kind: "kind", 12237 label: "label", 12238 lang: "lang", 12239 list: "list", 12240 loop: "loop", 12241 low: "low", 12242 manifest: "manifest", 12243 marginwidth: "marginWidth", 12244 marginheight: "marginHeight", 12245 max: "max", 12246 maxlength: "maxLength", 12247 media: "media", 12248 mediagroup: "mediaGroup", 12249 method: "method", 12250 min: "min", 12251 minlength: "minLength", 12252 multiple: "multiple", 12253 muted: "muted", 12254 name: "name", 12255 nomodule: "noModule", 12256 nonce: "nonce", 12257 novalidate: "noValidate", 12258 open: "open", 12259 optimum: "optimum", 12260 pattern: "pattern", 12261 placeholder: "placeholder", 12262 playsinline: "playsInline", 12263 poster: "poster", 12264 preload: "preload", 12265 profile: "profile", 12266 radiogroup: "radioGroup", 12267 readonly: "readOnly", 12268 referrerpolicy: "referrerPolicy", 12269 rel: "rel", 12270 required: "required", 12271 reversed: "reversed", 12272 role: "role", 12273 rows: "rows", 12274 rowspan: "rowSpan", 12275 sandbox: "sandbox", 12276 scope: "scope", 12277 scoped: "scoped", 12278 scrolling: "scrolling", 12279 seamless: "seamless", 12280 selected: "selected", 12281 shape: "shape", 12282 size: "size", 12283 sizes: "sizes", 12284 span: "span", 12285 spellcheck: "spellCheck", 12286 src: "src", 12287 srcdoc: "srcDoc", 12288 srclang: "srcLang", 12289 srcset: "srcSet", 12290 start: "start", 12291 step: "step", 12292 style: "style", 12293 summary: "summary", 12294 tabindex: "tabIndex", 12295 target: "target", 12296 title: "title", 12297 type: "type", 12298 usemap: "useMap", 12299 value: "value", 12300 width: "width", 12301 wmode: "wmode", 12302 wrap: "wrap", 12303 about: "about", 12304 accentheight: "accentHeight", 12305 "accent-height": "accentHeight", 12306 accumulate: "accumulate", 12307 additive: "additive", 12308 alignmentbaseline: "alignmentBaseline", 12309 "alignment-baseline": "alignmentBaseline", 12310 allowreorder: "allowReorder", 12311 alphabetic: "alphabetic", 12312 amplitude: "amplitude", 12313 arabicform: "arabicForm", 12314 "arabic-form": "arabicForm", 12315 ascent: "ascent", 12316 attributename: "attributeName", 12317 attributetype: "attributeType", 12318 autoreverse: "autoReverse", 12319 azimuth: "azimuth", 12320 basefrequency: "baseFrequency", 12321 baselineshift: "baselineShift", 12322 "baseline-shift": "baselineShift", 12323 baseprofile: "baseProfile", 12324 bbox: "bbox", 12325 begin: "begin", 12326 bias: "bias", 12327 by: "by", 12328 calcmode: "calcMode", 12329 capheight: "capHeight", 12330 "cap-height": "capHeight", 12331 clip: "clip", 12332 clippath: "clipPath", 12333 "clip-path": "clipPath", 12334 clippathunits: "clipPathUnits", 12335 cliprule: "clipRule", 12336 "clip-rule": "clipRule", 12337 color: "color", 12338 colorinterpolation: "colorInterpolation", 12339 "color-interpolation": "colorInterpolation", 12340 colorinterpolationfilters: "colorInterpolationFilters", 12341 "color-interpolation-filters": "colorInterpolationFilters", 12342 colorprofile: "colorProfile", 12343 "color-profile": "colorProfile", 12344 colorrendering: "colorRendering", 12345 "color-rendering": "colorRendering", 12346 contentscripttype: "contentScriptType", 12347 contentstyletype: "contentStyleType", 12348 cursor: "cursor", 12349 cx: "cx", 12350 cy: "cy", 12351 d: "d", 12352 datatype: "datatype", 12353 decelerate: "decelerate", 12354 descent: "descent", 12355 diffuseconstant: "diffuseConstant", 12356 direction: "direction", 12357 display: "display", 12358 divisor: "divisor", 12359 dominantbaseline: "dominantBaseline", 12360 "dominant-baseline": "dominantBaseline", 12361 dur: "dur", 12362 dx: "dx", 12363 dy: "dy", 12364 edgemode: "edgeMode", 12365 elevation: "elevation",
12366 enablebackground: "enableBackground", 12367 "enable-background": "enableBackground", 12368 end: "end", 12369 exponent: "exponent", 12370 externalresourcesrequired: "externalResourcesRequired", 12371 fill: "fill", 12372 fillopacity: "fillOpacity", 12373 "fill-opacity": "fillOpacity", 12374 fillrule: "fillRule", 12375 "fill-rule": "fillRule", 12376 filter: "filter", 12377 filterres: "filterRes", 12378 filterunits: "filterUnits", 12379 floodopacity: "floodOpacity", 12380 "flood-opacity": "floodOpacity", 12381 floodcolor: "floodColor", 12382 "flood-color": "floodColor", 12383 focusable: "focusable", 12384 fontfamily: "fontFamily", 12385 "font-family": "fontFamily", 12386 fontsize: "fontSize", 12387 "font-size": "fontSize", 12388 fontsizeadjust: "fontSizeAdjust", 12389 "font-size-adjust": "fontSizeAdjust", 12390 fontstretch: "fontStretch", 12391 "font-stretch": "fontStretch", 12392 fontstyle: "fontStyle", 12393 "font-style": "fontStyle", 12394 fontvariant: "fontVariant", 12395 "font-variant": "fontVariant", 12396 fontweight: "fontWeight", 12397 "font-weight": "fontWeight", 12398 format: "format", 12399 from: "from", 12400 fx: "fx", 12401 fy: "fy", 12402 g1: "g1", 12403 g2: "g2", 12404 glyphname: "glyphName", 12405 "glyph-name": "glyphName", 12406 glyphorientationhorizontal: "glyphOrientationHorizontal", 12407 "glyph-orientation-horizontal": "glyphOrientationHorizontal", 12408 glyphorientationvertical: "glyphOrientationVertical", 12409 "glyph-orientation-vertical": "glyphOrientationVertical", 12410 glyphref: "glyphRef", 12411 gradienttransform: "gradientTransform", 12412 gradientunits: "gradientUnits", 12413 hanging: "hanging", 12414 horizadvx: "horizAdvX", 12415 "horiz-adv-x": "horizAdvX", 12416 horizoriginx: "horizOriginX", 12417 "horiz-origin-x": "horizOriginX", 12418 ideographic: "ideographic", 12419 imagerendering: "imageRendering", 12420 "image-rendering": "imageRendering", 12421 in2: "in2", 12422 in: "in", 12423 inlist: "inlist", 12424 intercept: "intercept", 12425 k1: "k1", 12426 k2: "k2", 12427 k3: "k3", 12428 k4: "k4", 12429 k: "k", 12430 kernelmatrix: "kernelMatrix", 12431 kernelunitlength: "kernelUnitLength", 12432 kerning: "kerning", 12433 keypoints: "keyPoints", 12434 keysplines: "keySplines", 12435 keytimes: "keyTimes", 12436 lengthadjust: "lengthAdjust", 12437 letterspacing: "letterSpacing", 12438 "letter-spacing": "letterSpacing", 12439 lightingcolor: "lightingColor", 12440 "lighting-color": "lightingColor", 12441 limitingconeangle: "limitingConeAngle", 12442 local: "local", 12443 markerend: "markerEnd", 12444 "marker-end": "markerEnd", 12445 markerheight: "markerHeight", 12446 markermid: "markerMid", 12447 "marker-mid": "markerMid", 12448 markerstart: "markerStart", 12449 "marker-start": "markerStart", 12450 markerunits: "markerUnits", 12451 markerwidth: "markerWidth", 12452 mask: "mask", 12453 maskcontentunits: "maskContentUnits", 12454 maskunits: "maskUnits", 12455 mathematical: "mathematical", 12456 mode: "mode", 12457 numoctaves: "numOctaves", 12458 offset: "offset", 12459 opacity: "opacity", 12460 operator: "operator", 12461 order: "order", 12462 orient: "orient", 12463 orientation: "orientation", 12464 origin: "origin", 12465 overflow: "overflow", 12466 overlineposition: "overlinePosition", 12467 "overline-position": "overlinePosition", 12468 overlinethickness: "overlineThickness", 12469 "overline-thickness": "overlineThickness", 12470 paintorder: "paintOrder", 12471 "paint-order": "paintOrder", 12472 panose1: "panose1", 12473 "panose-1": "panose1", 12474 pathlength: "pathLength", 12475 patterncontentunits: "patternContentUnits", 12476 patterntransform: "patternTransform", 12477 patternunits: "patternUnits", 12478 pointerevents: "pointerEvents", 12479 "pointer-events": "pointerEvents", 12480 points: "points", 12481 pointsatx: "pointsAtX", 12482 pointsaty: "pointsAtY", 12483 pointsatz: "pointsAtZ", 12484 popover: "popover", 12485 popovertarget: "popoverTarget", 12486 popovertargetaction: "popoverTargetAction", 12487 prefix: "prefix", 12488 preservealpha: "preserveAlpha", 12489 preserveaspectratio: "preserveAspectRatio", 12490 primitiveunits: "primitiveUnits", 12491 property: "property", 12492 r: "r", 12493 radius: "radius", 12494 refx: "refX", 12495 refy: "refY", 12496 renderingintent: "renderingIntent", 12497 "rendering-intent": "renderingIntent", 12498 repeatcount: "repeatCount", 12499 repeatdur: "repeatDur", 12500 requiredextensions: "requiredExtensions", 12501 requiredfeatures: "requiredFeatures", 12502 resource: "resource", 12503 restart: "restart", 12504 result: "result", 12505 results: "results", 12506 rotate: "rotate", 12507 rx: "rx", 12508 ry: "ry", 12509 scale: "scale", 12510 security: "security", 12511 seed: "seed", 12512 shaperendering: "shapeRendering", 12513 "shape-rendering": "shapeRendering", 12514 slope: "slope", 12515 spacing: "spacing", 12516 specularconstant: "specularConstant", 12517 specularexponent: "specularExponent", 12518 speed: "speed", 12519 spreadmethod: "spreadMethod", 12520 startoffset: "startOffset", 12521 stddeviation: "stdDeviation", 12522 stemh: "stemh", 12523 stemv: "stemv", 12524 stitchtiles: "stitchTiles", 12525 stopcolor: "stopColor", 12526 "stop-color": "stopColor", 12527 stopopacity: "stopOpacity", 12528 "stop-opacity": "stopOpacity",
12529 strikethroughposition: "strikethroughPosition", 12530 "strikethrough-position": "strikethroughPosition", 12531 strikethroughthickness: "strikethroughThickness", 12532 "strikethrough-thickness": "strikethroughThickness", 12533 string: "string", 12534 stroke: "stroke", 12535 strokedasharray: "strokeDasharray", 12536 "stroke-dasharray": "strokeDasharray", 12537 strokedashoffset: "strokeDashoffset", 12538 "stroke-dashoffset": "strokeDashoffset", 12539 strokelinecap: "strokeLinecap", 12540 "stroke-linecap": "strokeLinecap", 12541 strokelinejoin: "strokeLinejoin", 12542 "stroke-linejoin": "strokeLinejoin", 12543 strokemiterlimit: "strokeMiterlimit", 12544 "stroke-miterlimit": "strokeMiterlimit", 12545 strokewidth: "strokeWidth", 12546 "stroke-width": "strokeWidth", 12547 strokeopacity: "strokeOpacity", 12548 "stroke-opacity": "strokeOpacity", 12549 suppresscontenteditablewarning: "suppressContentEditableWarning", 12550 suppresshydrationwarning: "suppressHydrationWarning", 12551 surfacescale: "surfaceScale", 12552 systemlanguage: "systemLanguage", 12553 tablevalues: "tableValues", 12554 targetx: "targetX", 12555 targety: "targetY", 12556 textanchor: "textAnchor", 12557 "text-anchor": "textAnchor", 12558 textdecoration: "textDecoration", 12559 "text-decoration": "textDecoration", 12560 textlength: "textLength", 12561 textrendering: "textRendering", 12562 "text-rendering": "textRendering", 12563 to: "to", 12564 transform: "transform", 12565 transformorigin: "transformOrigin", 12566 "transform-origin": "transformOrigin", 12567 typeof: "typeof", 12568 u1: "u1", 12569 u2: "u2", 12570 underlineposition: "underlinePosition", 12571 "underline-position": "underlinePosition", 12572 underlinethickness: "underlineThickness", 12573 "underline-thickness": "underlineThickness", 12574 unicode: "unicode", 12575 unicodebidi: "unicodeBidi", 12576 "unicode-bidi": "unicodeBidi", 12577 unicoderange: "unicodeRange", 12578 "unicode-range": "unicodeRange", 12579 unitsperem: "unitsPerEm", 12580 "units-per-em": "unitsPerEm", 12581 unselectable: "unselectable", 12582 valphabetic: "vAlphabetic", 12583 "v-alphabetic": "vAlphabetic", 12584 values: "values", 12585 vectoreffect: "vectorEffect", 12586 "vector-effect": "vectorEffect", 12587 version: "version", 12588 vertadvy: "vertAdvY", 12589 "vert-adv-y": "vertAdvY", 12590 vertoriginx: "vertOriginX", 12591 "vert-origin-x": "vertOriginX", 12592 vertoriginy: "vertOriginY", 12593 "vert-origin-y": "vertOriginY", 12594 vhanging: "vHanging", 12595 "v-hanging": "vHanging", 12596 videographic: "vIdeographic", 12597 "v-ideographic": "vIdeographic", 12598 viewbox: "viewBox", 12599 viewtarget: "viewTarget", 12600 visibility: "visibility", 12601 vmathematical: "vMathematical", 12602 "v-mathematical": "vMathematical", 12603 vocab: "vocab", 12604 widths: "widths", 12605 wordspacing: "wordSpacing", 12606 "word-spacing": "wordSpacing", 12607 writingmode: "writingMode", 12608 "writing-mode": "writingMode", 12609 x1: "x1", 12610 x2: "x2", 12611 x: "x", 12612 xchannelselector: "xChannelSelector", 12613 xheight: "xHeight", 12614 "x-height": "xHeight", 12615 xlinkactuate: "xlinkActuate", 12616 "xlink:actuate": "xlinkActuate", 12617 xlinkarcrole: "xlinkArcrole", 12618 "xlink:arcrole": "xlinkArcrole", 12619 xlinkhref: "xlinkHref", 12620 "xlink:href": "xlinkHref", 12621 xlinkrole: "xlinkRole", 12622 "xlink:role": "xlinkRole", 12623 xlinkshow: "xlinkShow", 12624 "xlink:show": "xlinkShow", 12625 xlinktitle: "xlinkTitle", 12626 "xlink:title": "xlinkTitle", 12627 xlinktype: "xlinkType", 12628 "xlink:type": "xlinkType", 12629 xmlbase: "xmlBase", 12630 "xml:base": "xmlBase", 12631 xmllang: "xmlLang", 12632 "xml:lang": "xmlLang", 12633 xmlns: "xmlns", 12634 "xml:space": "xmlSpace", 12635 xmlnsxlink: "xmlnsXlink", 12636 "xmlns:xlink": "xmlnsXlink", 12637 xmlspace: "xmlSpace", 12638 y1: "y1", 12639 y2: "y2", 12640 y: "y", 12641 ychannelselector: "yChannelSelector", 12642 z: "z", 12643 zoomandpan: "zoomAndPan" 12644 }, ariaProperties = { 12645 "aria-current": 0, 12646 "aria-description": 0, 12647 "aria-details": 0, 12648 "aria-disabled": 0, 12649 "aria-hidden": 0, 12650 "aria-invalid": 0, 12651 "aria-keyshortcuts": 0, 12652 "aria-label": 0, 12653 "aria-roledescription": 0, 12654 "aria-autocomplete": 0, 12655 "aria-checked": 0, 12656 "aria-expanded": 0, 12657 "aria-haspopup": 0, 12658 "aria-level": 0, 12659 "aria-modal": 0, 12660 "aria-multiline": 0, 12661 "aria-multiselectable": 0, 12662 "aria-orientation": 0, 12663 "aria-placeholder": 0, 12664 "aria-pressed": 0, 12665 "aria-readonly": 0, 12666 "aria-required": 0, 12667 "aria-selected": 0, 12668 "aria-sort": 0, 12669 "aria-valuemax": 0, 12670 "aria-valuemin": 0, 12671 "aria-valuenow": 0, 12672 "aria-valuetext": 0, 12673 "aria-atomic": 0, 12674 "aria-busy": 0, 12675 "aria-live": 0, 12676 "aria-relevant": 0, 12677 "aria-dropeffect": 0, 12678 "aria-grabbed": 0, 12679 "aria-activedescendant": 0, 12680 "aria-colcount": 0, 12681 "aria-colindex": 0, 12682 "aria-colspan": 0, 12683 "aria-controls": 0, 12684 "aria-describedby": 0, 12685 "aria-errormessage": 0, 12686 "aria-flowto": 0, 12687 "aria-labelledby": 0, 12688 "aria-owns": 0, 12689 "aria-posinset": 0, 12690 "aria-rowcount": 0, 12691 "aria-rowindex": 0, 12692 "aria-rowspan": 0, 12693 "aria-setsize": 0 12694 }, warnedProperties$1 = {}, rARIA$1 = RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
12694037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel$1 = RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), didWarnValueNull = !1, warnedProperties = {}, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA = RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel = RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, currentReplayingEvent = null, restoreTarget = null, restoreQueue = null, isInsideEventHandler = !1, canUseDOM = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), passiveBrowserEventsSupported = !1; 12695 if (canUseDOM) try { 12696 var options$jscomp$0 = {}; 12697 Object.defineProperty(options$jscomp$0, "passive", { 12698 get: function() { 12699 passiveBrowserEventsSupported = !0; 12700 } 12701 }); 12702 window.addEventListener("test", options$jscomp$0, options$jscomp$0); 12703 window.removeEventListener("test", options$jscomp$0, options$jscomp$0); 12704 } catch (e) { 12705 passiveBrowserEventsSupported = !1; 12706 } 12707 var root = null, startText = null, fallbackText = null, EventInterface = { 12708 eventPhase: 0, 12709 bubbles: 0, 12710 cancelable: 0, 12711 timeStamp: function(event) { 12712 return event.timeStamp || Date.now(); 12713 }, 12714 defaultPrevented: 0, 12715 isTrusted: 0 12716 }, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = assign({}, EventInterface, { 12717 view: 0, 12718 detail: 0 12719 }), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), lastMovementX, lastMovementY, lastMouseEvent, MouseEventInterface = assign({}, UIEventInterface, { 12720 screenX: 0, 12721 screenY: 0, 12722 clientX: 0, 12723 clientY: 0, 12724 pageX: 0, 12725 pageY: 0, 12726 ctrlKey: 0, 12727 shiftKey: 0, 12728 altKey: 0, 12729 metaKey: 0, 12730 getModifierState: getEventModifierState, 12731 button: 0, 12732 buttons: 0, 12733 relatedTarget: function(event) { 12734 return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget; 12735 }, 12736 movementX: function(event) { 12737 if ("movementX" in event) return event.movementX; 12738 event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event); 12739 return lastMovementX; 12740 }, 12741 movementY: function(event) { 12742 return "movementY" in event ? event.movementY : lastMovementY; 12743 } 12744 }), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), DragEventInterface = assign({}, MouseEventInterface, { 12745 dataTransfer: 0 12746 }), SyntheticDragEvent = createSyntheticEvent(DragEventInterface), FocusEventInterface = assign({}, UIEventInterface, { 12747 relatedTarget: 0 12748 }), SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface), AnimationEventInterface = assign({}, EventInterface, { 12749 animationName: 0, 12750 elapsedTime: 0, 12751 pseudoElement: 0 12752 }), SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface), ClipboardEventInterface = assign({}, EventInterface, { 12753 clipboardData: function(event) { 12754 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 12755 } 12756 }), SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface), CompositionEventInterface = assign({}, EventInterface, { 12757 data: 0 12758 }), SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface), SyntheticInputEvent = SyntheticCompositionEvent, normalizeKey = { 12759 Esc: "Escape", 12760 Spacebar: " ", 12761 Left: "ArrowLeft", 12762 Up: "ArrowUp", 12763 Right: "ArrowRight", 12764 Down: "ArrowDown", 12765 Del: "Delete", 12766 Win: "OS", 12767 Menu: "ContextMenu", 12768 Apps: "ContextMenu", 12769 Scroll: "ScrollLock", 12770 MozPrintableKey: "Unidentified" 12771 }, translateToKey = { 12772 8: "Backspace", 12773 9: "Tab", 12774 12: "Clear", 12775 13: "Enter", 12776 16: "Shift", 12777 17: "Control", 12778 18: "Alt", 12779 19: "Pause", 12780 20: "CapsLock", 12781 27: "Escape", 12782 32: " ", 12783 33: "PageUp", 12784 34: "PageDown", 12785 35: "End", 12786 36: "Home", 12787 37: "ArrowLeft", 12788 38: "ArrowUp", 12789 39: "ArrowRight", 12790 40: "ArrowDown", 12791 45: "Insert", 12792 46: "Delete", 12793 112: "F1", 12794 113: "F2", 12795 114: "F3", 12796 115: "F4", 12797 116: "F5", 12798 117: "F6", 12799 118: "F7", 12800 119: "F8", 12801 120: "F9", 12802 121: "F10", 12803 122: "F11", 12804 123: "F12", 12805 144: "NumLock", 12806 145: "ScrollLock", 12807 224: "Meta" 12808 }, modifierKeyToProp = { 12809 Alt: "altKey", 12810 Control: "ctrlKey", 12811 Meta: "metaKey", 12812 Shift: "shiftKey" 12813 }, KeyboardEventInterface = assign({}, UIEventInterface, { 12814 key: function(nativeEvent) { 12815 if (nativeEvent.key) { 12816 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 12817 if ("Unidentified" !== key) return key; 12818 } 12819 return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCo
12819de(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 12820 }, 12821 code: 0, 12822 location: 0, 12823 ctrlKey: 0, 12824 shiftKey: 0, 12825 altKey: 0, 12826 metaKey: 0, 12827 repeat: 0, 12828 locale: 0, 12829 getModifierState: getEventModifierState, 12830 charCode: function(event) { 12831 return "keypress" === event.type ? getEventCharCode(event) : 0; 12832 }, 12833 keyCode: function(event) { 12834 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 12835 }, 12836 which: function(event) { 12837 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 12838 } 12839 }), SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface), PointerEventInterface = assign({}, MouseEventInterface, { 12840 pointerId: 0, 12841 width: 0, 12842 height: 0, 12843 pressure: 0, 12844 tangentialPressure: 0, 12845 tiltX: 0, 12846 tiltY: 0, 12847 twist: 0, 12848 pointerType: 0, 12849 isPrimary: 0 12850 }), SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface), TouchEventInterface = assign({}, UIEventInterface, { 12851 touches: 0, 12852 targetTouches: 0, 12853 changedTouches: 0, 12854 altKey: 0, 12855 metaKey: 0, 12856 ctrlKey: 0, 12857 shiftKey: 0, 12858 getModifierState: getEventModifierState 12859 }), SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface), TransitionEventInterface = assign({}, EventInterface, { 12860 propertyName: 0, 12861 elapsedTime: 0, 12862 pseudoElement: 0 12863 }), SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface), WheelEventInterface = assign({}, MouseEventInterface, { 12864 deltaX: function(event) { 12865 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 12866 }, 12867 deltaY: function(event) { 12868 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 12869 }, 12870 deltaZ: 0, 12871 deltaMode: 0 12872 }), SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface), ToggleEventInterface = assign({}, EventInterface, { 12873 newState: 0, 12874 oldState: 0 12875 }), SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface), END_KEYCODES = [ 12876 9, 12877 13, 12878 27, 12879 32 12880 ], START_KEYCODE = 229, canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null; 12881 canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 12882 var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && 8 < documentMode && 11 >= documentMode), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), hasSpaceKeypress = !1, isComposing = !1, supportedInputTypes = { 12883 color: !0, 12884 date: !0, 12885 datetime: !0, 12886 "datetime-local": !0, 12887 email: !0, 12888 month: !0, 12889 number: !0, 12890 password: !0, 12891 range: !0, 12892 search: !0, 12893 tel: !0, 12894 text: !0, 12895 time: !0, 12896 url: !0, 12897 week: !0 12898 }, activeElement$1 = null, activeElementInst$1 = null, isInputEventSupported = !1; 12899 canUseDOM && (isInputEventSupported = isEventSupported("input") && (!document.documentMode || 9 < document.documentMode)); 12900 var objectIs = "function" === typeof Object.is ? Object.is : is, skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = !1, vendorPrefixes = { 12901 animationend: makePrefixMap("Animation", "AnimationEnd"), 12902 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 12903 animationstart: makePrefixMap("Animation", "AnimationStart"), 12904 transitionrun: makePrefixMap("Transition", "TransitionRun"), 12905 transitionstart: makePrefixMap("Transition", "TransitionStart"), 12906 transitioncancel: makePrefixMap("Transition", "TransitionCancel"), 12907 transitionend: makePrefixMap("Transition", "TransitionEnd") 12908 }, prefixedEventNames = {}, style = {}; 12909 canUseDOM && (style = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition); 12910 var ANIMATION_END = getVendorPrefixedEventName("animationend"), ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration"), ANIMATION_
12910START = getVendorPrefixedEventName("animationstart"), TRANSITION_RUN = getVendorPrefixedEventName("transitionrun"), TRANSITION_START = getVendorPrefixedEventName("transitionstart"), TRANSITION_CANCEL = getVendorPrefixedEventName("transitioncancel"), TRANSITION_END = getVendorPrefixedEventName("transitionend"), topLevelEventsToReactNames = new Map(), simpleEventPluginEvents = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); 12911 simpleEventPluginEvents.push("scrollEnd"); 12912 var lastResetTime = 0; 12913 if ("object" === typeof performance && "function" === typeof performance.now) { 12914 var localPerformance = performance; 12915 var getCurrentTime = function() { 12916 return localPerformance.now(); 12917 }; 12918 } else { 12919 var localDate = Date; 12920 getCurrentTime = function() { 12921 return localDate.now(); 12922 }; 12923 } 12924 var reportGlobalError = "function" === typeof reportError ? reportError : function(error) { 12925 if ("object" === typeof window && "function" === typeof window.ErrorEvent) { 12926 var event = new window.ErrorEvent("error", { 12927 bubbles: !0, 12928 cancelable: !0, 12929 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), 12930 error: error 12931 }); 12932 if (!window.dispatchEvent(event)) return; 12933 } else if ("object" === typeof __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"] && "function" === typeof __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"].emit) { 12934 __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"].emit("uncaughtException", error); 12935 return; 12936 } 12937 console.error(error); 12938 }, OffscreenVisible = 1, OffscreenPassiveEffectsConnected = 2, concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0, emptyContextObject = {}; 12939 Object.freeze(emptyContextObject); 12940 var resolveFamily = null, failedBoundaries = null, NoMode = 0, ConcurrentMode = 1, ProfileMode = 2, StrictLegacyMode = 8, StrictEffectsMode = 16, SuspenseyImagesMode = 32; 12941 var hasBadMapPolyfill = !1; 12942 try { 12943 var nonExtensibleObject = Object.preventExtensions({}); 12944 new Map([ 12945 [ 12946 nonExtensibleObject, 12947 null 12948 ] 12949 ]); 12950 new Set([ 12951 nonExtensibleObject 12952 ]); 12953 } catch (e$3) { 12954 hasBadMapPolyfill = !0; 12955 } 12956 var CapturedStacks = new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), valueCursor = createCursor(null); 12957 var rendererCursorDEV = createCursor(null); 12958 var rendererSigil = {}; 12959 var currentlyRenderingFiber$1 = null, lastContextDependency = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() { 12960 var listeners = [], signal = this.signal = { 12961 aborted: !1, 12962 addEventListener: function(type, listener) { 12963 listeners.push(listener); 12964 } 12965 }; 12966 this.abort = function() { 12967 signal.aborted = !0;
12968 listeners.forEach(function(listener) { 12969 return listener(); 12970 }); 12971 }; 12972 }, scheduleCallback$2 = Scheduler.unstable_scheduleCallback, NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { 12973 $$typeof: REACT_CONTEXT_TYPE, 12974 Consumer: null, 12975 Provider: null, 12976 _currentValue: null, 12977 _currentValue2: null, 12978 _threadCount: 0, 12979 _currentRenderer: null, 12980 _currentRenderer2: null 12981 }, now = Scheduler.unstable_now, renderStartTime = -0, commitStartTime = -0, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectStartTime = -1.1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; 12982 ReactSharedInternals.S = function(transition, returnValue) { 12983 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue); 12984 null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); 12985 }; 12986 var resumedCache = createCursor(null), ReactStrictModeWarnings = { 12987 recordUnsafeLifecycleWarnings: function() {}, 12988 flushPendingUnsafeLifecycleWarnings: function() {}, 12989 recordLegacyContextWarning: function() {}, 12990 flushLegacyContextWarning: function() {}, 12991 discardPendingWarnings: function() {} 12992 }, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = new Set(); 12993 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { 12994 didWarnAboutUnsafeLifecycles.has(fiber.type) || ("function" === typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillMount && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), "function" === typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillReceiveProps && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), "function" === typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillUpdate && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber)); 12995 }; 12996 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { 12997 var componentWillMountUniqueNames = new Set(); 12998 0 < pendingComponentWillMountWarnings.length && (pendingComponentWillMountWarnings.forEac
12998h(function(fiber) { 12999 componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13000 didWarnAboutUnsafeLifecycles.add(fiber.type); 13001 }), pendingComponentWillMountWarnings = []); 13002 var UNSAFE_componentWillMountUniqueNames = new Set(); 13003 0 < pendingUNSAFE_ComponentWillMountWarnings.length && (pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) { 13004 UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13005 didWarnAboutUnsafeLifecycles.add(fiber.type); 13006 }), pendingUNSAFE_ComponentWillMountWarnings = []); 13007 var componentWillReceivePropsUniqueNames = new Set(); 13008 0 < pendingComponentWillReceivePropsWarnings.length && (pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { 13009 componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13010 didWarnAboutUnsafeLifecycles.add(fiber.type); 13011 }), pendingComponentWillReceivePropsWarnings = []); 13012 var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); 13013 0 < pendingUNSAFE_ComponentWillReceivePropsWarnings.length && (pendingUNSAFE_ComponentWillReceivePropsWarnings.forEac
13013h(function(fiber) { 13014 UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13015 didWarnAboutUnsafeLifecycles.add(fiber.type); 13016 }), pendingUNSAFE_ComponentWillReceivePropsWarnings = []); 13017 var componentWillUpdateUniqueNames = new Set(); 13018 0 < pendingComponentWillUpdateWarnings.length && (pendingComponentWillUpdateWarnings.forEach(function(fiber) { 13019 componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13020 didWarnAboutUnsafeLifecycles.add(fiber.type); 13021 }), pendingComponentWillUpdateWarnings = []); 13022 var UNSAFE_componentWillUpdateUniqueNames = new Set(); 13023 0 < pendingUNSAFE_ComponentWillUpdateWarnings.length && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) { 13024 UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13025 didWarnAboutUnsafeLifecycles.add(fiber.type); 13026 }), pendingUNSAFE_ComponentWillUpdateWarnings = []); 13027 if (0 < UNSAFE_componentWillMountUniqueNames.size) { 13028 var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); 13029 console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", sortedNames); 13030 } 13031 0 < UNSAFE_componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames), console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", sortedNames)); 13032 0 < UNSAFE_componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(UNSAFE_componentWillUpdateUniqueNames), console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", sortedNames)); 13033 0 < componentWillMountUniqueNames.size && (sortedNames = setToSortedString(componentWillMountUniqueNames), console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 13034 0 < componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(componentWillReceivePropsUniqueNames), console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 13035 0 < componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(componentWillUpdateUniqueNames), console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 13036 }; 13037 var pendingLegacyContextWarning = new Map(), didWarnAboutLegacyContext = new Set(); 13038 ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { 13039 var strictRoot = null; 13040 for(var node = fiber; null !== node;)node.mode & StrictLegacyMode && (strictRoot = node), node = node.return; 13041 null === strictRoot ? console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.") : !didWarnAboutLegacyContext.has(fiber.type) && (node = pendingLegacyContextWarning.get(strictRoot), null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" === typeof instance.getChildContext) && (void 0 === node && (node = [], pendingLegacyContextWarning.set(strictRoot, node)), node.push(fiber)); 13042 }; 13043 ReactStrictModeWarnings.flushLegacyContextWarning = function() { 13044 pendingLegacyContextWarning.forEach(function(fiberArray) { 13045 if (0 !== fiberArray.length) { 13046 var firstFiber = fiberArray[0], uniqueNames = new Set(); 13047 fiberArray.forEach(function(fiber) { 13048 uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 13049 didWarnAboutLegacyContext.add(fiber.type); 13050 }); 13051 var sortedNames = setToSortedString(uniqueNames); 13052 runWithFiberInDEV(firstFiber, function() { 13053 console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames); 13054 }); 13055 } 13056 }); 13057 }; 13058 ReactStrictModeWarnings.discardPendingWarnings = function() { 13059 pendingComponentWillMountWarnings = []; 13060 pendingUNSAFE_ComponentWillMountWarnings = []; 13061 pendingComponentWillReceivePropsWarnings = []; 13062 pendingUNSAFE_ComponentWillReceivePropsWarnings = []; 13063 pendingComponentWillUpdateWarnings = []; 13064 pendingUNSAFE_ComponentWillUpdateWarnings = []; 13065 pendingLegacyContextWarning = new Map(); 13066 }; 13067 var callComponent = { 13068 react_stack_bottom_frame: function(Component, props, secondArg) { 13069 var wasRendering = isRendering; 13070 isRendering = !0; 13071 try { 13072 return Component(props, secondArg); 13073 } finally{ 13074 isRendering = wasRendering; 13075 } 13076 } 13077 }, callComponentInDEV = callComponent.react_stack_bottom_frame.bind(callComponent), callRender = { 13078 react_stack_bottom_frame: function(instance) { 13079 var wasRendering = isRendering; 13080 isRendering = !0; 13081 try { 13082 return instance.render(); 13083 } finally{ 13084 isRendering = wasRendering; 13085 } 13086 } 13087 }, callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender), callComponentDidMount = { 13088 react_stack_bottom_frame: function(finishedWork, instance) { 13089 try { 13090 instance.componentDidMount(); 13091 } catch (error) { 13092 captureCommitPhaseError(finishedWork, finishedWork.return, error); 13093 } 13094 } 13095 }, callComponentDidMountInDEV = callComponentDidMount.react_stack_bottom_frame.bind(callComponentDidMount), callComponentDidUpdate = { 13096 react_stack_bottom_frame: function(finishedWork, instance, prevProps, prevState, snapshot) { 13097 try { 13098 instance.componentDidUpdate(prevProps, prevState, snapshot); 13099 } catch (error) { 13100 captureCommitPhaseError(finishedWork, finishedWork.return, error); 13101 } 13102 } 13103 }, callComponentDidUpdateInDEV = callComponentDidUpdate.react_stack_bottom_frame.bind(callComponentDidUpdate), callComponentDidCatch = { 13104 react_stack_bottom_frame: function(instance, errorInfo) { 13105 var stack = errorInfo.stack; 13106 instance.componentDidCatch(errorInfo.value, { 13107 componentStack: null !== stack ? stack : "" 13108 }); 13109 } 13110 }, callComponentDidCatchInDEV = callComponentDidCatch.react_stack_bottom_frame.bind(callComponentDidCatch), callComponentWillUnmount = { 13111 react_stack_bottom_frame: function(current, nearestMountedAncestor, instance) { 13112 try { 13113 instance.componentWillUnmount(); 13114 } catch (error) { 13115 captureCommitPhaseError(current, nearestMountedAncestor, error); 13116 } 13117 } 13118 }, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = { 13119 react_stack_bottom_frame: function(effect) { 13120 var create = effect.create; 13121 effect = effect.inst; 13122 create = create(); 13123 return effect.destroy = create; 13124 } 13125 }, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = { 13126 react_stack_bottom_frame: function(current, nearestMountedAncestor, destroy) { 13127 try { 13128 destroy(); 13129 } catch (error) { 13130 captureCommitPhaseError(current, nearestMountedAncestor, error); 13131 } 13132 } 13133 }, callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy), callLazyInit = { 13134 react_stack_bottom_frame: function(lazy) { 13135 var init = lazy._init; 13136 return init(lazy._payload); 13137 } 13138 }, callLazyInitInDEV = callLazyInit.react_stack_bottom_frame.bind(callLazyInit), SuspenseException = Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."), SuspenseyCommitException = Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), SuspenseActionException = Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."), noopSuspenseyCommitThenable = { 13139 then: function() { 13140 console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'); 13141 } 13142 }, suspendedThenable = null, needsToResetSuspendedThenableDEV = !1, thenableState$1 = null, thenableIndexCounter$1 = 0, currentDebugInfo = null, didWarnAboutMaps; 13143 var didWarnAboutGenerators = didWarnAboutMaps = !1; 13144 var ownerHasKeyUseWarning = {}; 13145 var ownerHasFunctionTypeWarning = {}; 13146 var ownerHasSymbolTypeWarning = {}; 13147 warnForMissingKey = function(returnFiber, workInProgress, child) { 13148 if (null !== child && "object" === typeof child && child._store && (!child._store.validated && null == child.key || 2 === child._store.validated)) { 13149 if ("object" !== typeof child._store) throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."); 13150 child._store.validated = 1; 13151 var componentName = getComponentNameFromFiber(returnFiber), componentKey = componentName || "null"; 13152 if (!ownerHasKeyUseWarning[componentKey]) { 13153 ownerHasKeyUseWarning[componentKey] = !0; 13154 child = child._owner; 13155 returnFiber = returnFiber._debugOwner; 13156 var currentComponentErrorInfo = ""; 13157 returnFiber && "number" === typeof returnFiber.tag && (componentKey = getComponentNameFromFiber(returnFiber)) && (currentComponentErrorInfo = "\n\nCheck the render method of `" + componentKey + "`."); 13158 currentComponentErrorInfo || componentName && (currentComponentErrorInfo = "\n\nCheck the top-level render call using <" + componentName + ">."); 13159 var childOwnerAppendix = ""; 13160 null != child && returnFiber !== child && (componentName = null, "number" === typeof child.tag ? componentName = getComponentNameFromFiber(child) : "string" === typeof child.name && (componentName = child.name), componentName && (childOwnerAppendix = " It was passed a child from " + componentName + ".")); 13161 runWithFiberInDEV(workInProgress, function() { 13162 console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', currentComponentErrorInfo, childOwnerAppendix); 13163 }); 13164 } 13165 } 13166 }; 13167 var reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = !1;
vendor: 27,370 bytes, lines 13168-13836
13168 var didWarnUpdateInsideUpdate = !1; 13169 var currentlyProcessingQueue = null; 13170 var didReadFromEntangledAsyncAction = !1, currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0), suspenseHandlerStackCursor = createCursor(null), shellBoundary = null, SubtreeSuspenseContextMask = 1, ForceSuspenseFallback = 2, suspenseStackCursor = createCursor(0), NoFlags = 0, HasEffect = 1, Insertion = 2, Layout = 4, Passive = 8, didWarnUncachedGetSnapshot; 13171 var didWarnAboutMismatchedHooksForComponent = new Set(); 13172 var didWarnAboutUseWrappedInTryCatch = new Set(); 13173 var didWarnAboutAsyncClientComponent = new Set(); 13174 var didWarnAboutUseFormState = new Set(); 13175 var renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0, RE_RENDER_LIMIT = 25, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1, ContextOnlyDispatcher = { 13176 readContext: readContext, 13177 use: use, 13178 useCallback: throwInvalidHookError, 13179 useContext: throwInvalidHookError, 13180 useEffect: throwInvalidHookError, 13181 useImperativeHandle: throwInvalidHookError, 13182 useLayoutEffect: throwInvalidHookError, 13183 useInsertionEffect: throwInvalidHookError, 13184 useMemo: throwInvalidHookError, 13185 useReducer: throwInvalidHookError, 13186 useRef: throwInvalidHookError, 13187 useState: throwInvalidHookError, 13188 useDebugValue: throwInvalidHookError, 13189 useDeferredValue: throwInvalidHookError, 13190 useTransition: throwInvalidHookError, 13191 useSyncExternalStore: throwInvalidHookError, 13192 useId: throwInvalidHookError, 13193 useHostTransitionStatus: throwInvalidHookError, 13194 useFormState: throwInvalidHookError, 13195 useActionState: throwInvalidHookError, 13196 useOptimistic: throwInvalidHookError, 13197 useMemoCache: throwInvalidHookError, 13198 useCacheRefresh: throwInvalidHookError 13199 }, HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, HooksDispatcherOnRerenderInDEV = null, InvalidNestedHooksDispatcherOnMountInDEV = null, InvalidNestedHooksDispatcherOnUpdateInDEV = null, InvalidNestedHooksDispatcherOnRerenderInDEV = null; 13200 HooksDispatcherOnMountInDEV = { 13201 readContext: function(context) { 13202 return readContext(context); 13203 }, 13204 use: use, 13205 useCallback: function(callback, deps) { 13206 currentHookNameInDev = "useCallback"; 13207 mountHookTypesDev(); 13208 checkDepsAreArrayDev(deps); 13209 return mountCallback(callback, deps); 13210 }, 13211 useContext: function(context) { 13212 currentHookNameInDev = "useContext"; 13213 mountHookTypesDev(); 13214 return readContext(context); 13215 }, 13216 useEffect: function(create, deps) { 13217 currentHookNameInDev = "useEffect"; 13218 mountHookTypesDev(); 13219 checkDepsAreArrayDev(deps); 13220 return mountEffect(create, deps); 13221 }, 13222 useImperativeHandle: function(ref, create, deps) { 13223 currentHookNameInDev = "useImperativeHandle"; 13224 mountHookTypesDev(); 13225 checkDepsAreArrayDev(deps); 13226 return mountImperativeHandle(ref, create, deps); 13227 }, 13228 useInsertionEffect: function(create, deps) { 13229 currentHookNameInDev = "useInsertionEffect"; 13230 mountHookTypesDev(); 13231 checkDepsAreArrayDev(deps); 13232 mountEffectImpl(4, Insertion, create, deps); 13233 }, 13234 useLayoutEffect: function(create, deps) { 13235 currentHookNameInDev = "useLayoutEffect"; 13236 mountHookTypesDev(); 13237 checkDepsAreArrayDev(deps); 13238 return mountLayoutEffect(create, deps); 13239 }, 13240 useMemo: function(create, deps) { 13241 currentHookNameInDev = "useMemo"; 13242 mountHookTypesDev(); 13243 checkDepsAreArrayDev(deps); 13244 var prevDispatcher = ReactSharedInternals.H; 13245 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13246 try { 13247 return mountMemo(create, deps); 13248 } finally{ 13249 ReactSharedInternals.H = prevDispatcher; 13250 } 13251 }, 13252 useReducer: function(reducer, initialArg, init) { 13253 currentHookNameInDev = "useReducer"; 13254 mountHookTypesDev(); 13255 var prevDispatcher = ReactSharedInternals.H; 13256 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13257 try { 13258 return mountReducer(reducer, initialArg, init); 13259 } finally{ 13260 ReactSharedInternals.H = prevDispatcher; 13261 } 13262 }, 13263 useRef: function(initialValue) { 13264 currentHookNameInDev = "useRef"; 13265 mountHookTypesDev(); 13266 return mountRef(initialValue); 13267 }, 13268 useState: function(initialState) { 13269 currentHookNameInDev = "useState"; 13270 mountHookTypesDev(); 13271 var prevDispatcher = ReactSharedInternals.H; 13272 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13273 try { 13274 return mountState(initialState); 13275 } finally{ 13276 ReactSharedInternals.H = prevDispatcher; 13277 } 13278 }, 13279 useDebugValue: function() { 13280 currentHookNameInDev = "useDebugValue"; 13281 mountHookTypesDev(); 13282 }, 13283 useDeferredValue: function(value, initialValue) { 13284 currentHookNameInDev = "useDeferredValue"; 13285 mountHookTypesDev(); 13286 return mountDeferredValue(value, initialValue); 13287 }, 13288 useTransition: function() { 13289 currentHookNameInDev = "useTransition"; 13290 mountHookTypesDev(); 13291 return mountTransition(); 13292 }, 13293 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13294 currentHookNameInDev = "useSyncExternalStore"; 13295 mountHookTypesDev(); 13296 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13297 }, 13298 useId: function() { 13299 currentHookNameInDev = "useId"; 13300 mountHookTypesDev(); 13301 return mountId(); 13302 }, 13303 useFormState: function(action, initialState) { 13304 currentHookNameInDev = "useFormState"; 13305 mountHookTypesDev(); 13306 warnOnUseFormStateInDev(); 13307 return mountActionState(action, initialState); 13308 }, 13309 useActionState: function(action, initialState) { 13310 currentHookNameInDev = "useActionState"; 13311 mountHookTypesDev(); 13312 return mountActionState(action, initialState); 13313 }, 13314 useOptimistic: function(passthrough) { 13315 currentHookNameInDev = "useOptimistic"; 13316 mountHookTypesDev(); 13317 return mountOptimistic(passthrough); 13318 }, 13319 useHostTransitionStatus: useHostTransitionStatus, 13320 useMemoCache: useMemoCache, 13321 useCacheRefresh: function() { 13322 currentHookNameInDev = "useCacheRefresh"; 13323 mountHookTypesDev(); 13324 return mountRefresh(); 13325 } 13326 }; 13327 HooksDispatcherOnMountWithHookTypesInDEV = { 13328 readContext: function(context) { 13329 return readContext(context); 13330 }, 13331 use: use, 13332 useCallback: function(callback, deps) { 13333 currentHookNameInDev = "useCallback"; 13334 updateHookTypesDev(); 13335 return mountCallback(callback, deps); 13336 }, 13337 useContext: function(context) { 13338 currentHookNameInDev = "useContext"; 13339 updateHookTypesDev(); 13340 return readContext(context); 13341 }, 13342 useEffect: function(create, deps) { 13343 currentHookNameInDev = "useEffect"; 13344 updateHookTypesDev(); 13345 return mountEffect(create, deps); 13346 }, 13347 useImperativeHandle: function(ref, create, deps) { 13348 currentHookNameInDev = "useImperativeHandle"; 13349 updateHookTypesDev(); 13350 return mountImperativeHandle(ref, create, deps); 13351 }, 13352 useInsertionEffect: function(create, deps) { 13353 currentHookNameInDev = "useInsertionEffect"; 13354 updateHookTypesDev(); 13355 mountEffectImpl(4, Insertion, create, deps); 13356 }, 13357 useLayoutEffect: function(create, deps) { 13358 currentHookNameInDev = "useLayoutEffect"; 13359 updateHookTypesDev(); 13360 return mountLayoutEffect(create, deps); 13361 }, 13362 useMemo: function(create, deps) { 13363 currentHookNameInDev = "useMemo"; 13364 updateHookTypesDev(); 13365 var prevDispatcher = ReactSharedInternals.H; 13366 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13367 try { 13368 return mountMemo(create, deps); 13369 } finally{ 13370 ReactSharedInternals.H = prevDispatcher; 13371 } 13372 }, 13373 useReducer: function(reducer, initialArg, init) { 13374 currentHookNameInDev = "useReducer"; 13375 updateHookTypesDev(); 13376 var prevDispatcher = ReactSharedInternals.H; 13377 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13378 try { 13379 return mountReducer(reducer, initialArg, init); 13380 } finally{ 13381 ReactSharedInternals.H = prevDispatcher; 13382 } 13383 }, 13384 useRef: function(initialValue) { 13385 currentHookNameInDev = "useRef"; 13386 updateHookTypesDev(); 13387 return mountRef(initialValue); 13388 }, 13389 useState: function(initialState) { 13390 currentHookNameInDev = "useState"; 13391 updateHookTypesDev(); 13392 var prevDispatcher = ReactSharedInternals.H; 13393 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13394 try { 13395 return mountState(initialState); 13396 } finally{ 13397 ReactSharedInternals.H = prevDispatcher; 13398 } 13399 }, 13400 useDebugValue: function() { 13401 currentHookNameInDev = "useDebugValue"; 13402 updateHookTypesDev(); 13403 }, 13404 useDeferredValue: function(value, initialValue) { 13405 currentHookNameInDev = "useDeferredValue"; 13406 updateHookTypesDev(); 13407 return mountDeferredValue(value, initialValue); 13408 }, 13409 useTransition: function() { 13410 currentHookNameInDev = "useTransition"; 13411 updateHookTypesDev(); 13412 return mountTransition(); 13413 }, 13414 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13415 currentHookNameInDev = "useSyncExternalStore"; 13416 updateHookTypesDev(); 13417 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13418 }, 13419 useId: function() { 13420 currentHookNameInDev = "useId"; 13421 updateHookTypesDev(); 13422 return mountId(); 13423 }, 13424 useActionState: function(action, initialState) { 13425 currentHookNameInDev = "useActionState"; 13426 updateHookTypesDev(); 13427 return mountActionState(action, initialState); 13428 }, 13429 useFormState: function(action, initialState) { 13430 currentHookNameInDev = "useFormState"; 13431 updateHookTypesDev(); 13432 warnOnUseFormStateInDev(); 13433 return mountActionState(action, initialState); 13434 }, 13435 useOptimistic: function(passthrough) { 13436 currentHookNameInDev = "useOptimistic"; 13437 updateHookTypesDev(); 13438 return mountOptimistic(passthrough); 13439 }, 13440 useHostTransitionStatus: useHostTransitionStatus, 13441 useMemoCache: useMemoCache, 13442 useCacheRefresh: function() { 13443 currentHookNameInDev = "useCacheRefresh"; 13444 updateHookTypesDev(); 13445 return mountRefresh(); 13446 } 13447 }; 13448 HooksDispatcherOnUpdateInDEV = { 13449 readContext: function(context) { 13450 return readContext(context); 13451 }, 13452 use: use, 13453 useCallback: function(callback, deps) { 13454 currentHookNameInDev = "useCallback"; 13455 updateHookTypesDev(); 13456 return updateCallback(callback, deps); 13457 }, 13458 useContext: function(context) { 13459 currentHookNameInDev = "useContext"; 13460 updateHookTypesDev(); 13461 return readContext(context); 13462 }, 13463 useEffect: function(create, deps) { 13464 currentHookNameInDev = "useEffect"; 13465 updateHookTypesDev(); 13466 updateEffectImpl(2048, Passive, create, deps); 13467 }, 13468 useImperativeHandle: function(ref, create, deps) { 13469 currentHookNameInDev = "useImperativeHandle"; 13470 updateHookTypesDev(); 13471 return updateImperativeHandle(ref, create, deps); 13472 }, 13473 useInsertionEffect: function(create, deps) { 13474 currentHookNameInDev = "useInsertionEffect"; 13475 updateHookTypesDev(); 13476 return updateEffectImpl(4, Insertion, create, deps); 13477 }, 13478 useLayoutEffect: function(create, deps) { 13479 currentHookNameInDev = "useLayoutEffect"; 13480 updateHookTypesDev(); 13481 return updateEffectImpl(4, Layout, create, deps); 13482 }, 13483 useMemo: function(create, deps) { 13484 currentHookNameInDev = "useMemo"; 13485 updateHookTypesDev(); 13486 var prevDispatcher = ReactSharedInternals.H; 13487 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13488 try { 13489 return updateMemo(create, deps); 13490 } finally{ 13491 ReactSharedInternals.H = prevDispatcher; 13492 } 13493 }, 13494 useReducer: function(reducer, initialArg, init) { 13495 currentHookNameInDev = "useReducer"; 13496 updateHookTypesDev(); 13497 var prevDispatcher = ReactSharedInternals.H; 13498 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13499 try { 13500 return updateReducer(reducer, initialArg, init); 13501 } finally{ 13502 ReactSharedInternals.H = prevDispatcher; 13503 } 13504 }, 13505 useRef: function() { 13506 currentHookNameInDev = "useRef"; 13507 updateHookTypesDev(); 13508 return updateWorkInProgressHook().memoizedState; 13509 }, 13510 useState: function() { 13511 currentHookNameInDev = "useState"; 13512 updateHookTypesDev(); 13513 var prevDispatcher = ReactSharedInternals.H; 13514 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13515 try { 13516 return updateReducer(basicStateReducer); 13517 } finally{ 13518 ReactSharedInternals.H = prevDispatcher; 13519 } 13520 }, 13521 useDebugValue: function() { 13522 currentHookNameInDev = "useDebugValue"; 13523 updateHookTypesDev(); 13524 }, 13525 useDeferredValue: function(value, initialValue) { 13526 currentHookNameInDev = "useDeferredValue"; 13527 updateHookTypesDev(); 13528 return updateDeferredValue(value, initialValue); 13529 }, 13530 useTransition: function() { 13531 currentHookNameInDev = "useTransition"; 13532 updateHookTypesDev(); 13533 return updateTransition(); 13534 }, 13535 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13536 currentHookNameInDev = "useSyncExternalStore"; 13537 updateHookTypesDev(); 13538 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13539 }, 13540 useId: function() { 13541 currentHookNameInDev = "useId"; 13542 updateHookTypesDev(); 13543 return updateWorkInProgressHook().memoizedState; 13544 }, 13545 useFormState: function(action) { 13546 currentHookNameInDev = "useFormState"; 13547 updateHookTypesDev(); 13548 warnOnUseFormStateInDev(); 13549 return updateActionState(action); 13550 }, 13551 useActionState: function(action) { 13552 currentHookNameInDev = "useActionState"; 13553 updateHookTypesDev(); 13554 return updateActionState(action); 13555 }, 13556 useOptimistic: function(passthrough, reducer) { 13557 currentHookNameInDev = "useOptimistic"; 13558 updateHookTypesDev(); 13559 return updateOptimistic(passthrough, reducer); 13560 }, 13561 useHostTransitionStatus: useHostTransitionStatus, 13562 useMemoCache: useMemoCache, 13563 useCacheRefresh: function() { 13564 currentHookNameInDev = "useCacheRefresh"; 13565 updateHookTypesDev(); 13566 return updateWorkInProgressHook().memoizedState; 13567 } 13568 }; 13569 HooksDispatcherOnRerenderInDEV = { 13570 readContext: function(context) { 13571 return readContext(context); 13572 }, 13573 use: use, 13574 useCallback: function(callback, deps) { 13575 currentHookNameInDev = "useCallback"; 13576 updateHookTypesDev(); 13577 return updateCallback(callback, deps); 13578 }, 13579 useContext: function(context) { 13580 currentHookNameInDev = "useContext"; 13581 updateHookTypesDev(); 13582 return readContext(context); 13583 }, 13584 useEffect: function(create, deps) { 13585 currentHookNameInDev = "useEffect"; 13586 updateHookTypesDev(); 13587 updateEffectImpl(2048, Passive, create, deps); 13588 }, 13589 useImperativeHandle: function(ref, create, deps) { 13590 currentHookNameInDev = "useImperativeHandle"; 13591 updateHookTypesDev(); 13592 return updateImperativeHandle(ref, create, deps); 13593 }, 13594 useInsertionEffect: function(create, deps) { 13595 currentHookNameInDev = "useInsertionEffect"; 13596 updateHookTypesDev(); 13597 return updateEffectImpl(4, Insertion, create, deps); 13598 }, 13599 useLayoutEffect: function(create, deps) { 13600 currentHookNameInDev = "useLayoutEffect"; 13601 updateHookTypesDev(); 13602 return updateEffectImpl(4, Layout, create, deps); 13603 }, 13604 useMemo: function(create, deps) { 13605 currentHookNameInDev = "useMemo"; 13606 updateHookTypesDev(); 13607 var prevDispatcher = ReactSharedInternals.H; 13608 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13609 try { 13610 return updateMemo(create, deps); 13611 } finally{ 13612 ReactSharedInternals.H = prevDispatcher; 13613 } 13614 }, 13615 useReducer: function(reducer, initialArg, init) { 13616 currentHookNameInDev = "useReducer"; 13617 updateHookTypesDev(); 13618 var prevDispatcher = ReactSharedInternals.H; 13619 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13620 try { 13621 return rerenderReducer(reducer, initialArg, init); 13622 } finally{ 13623 ReactSharedInternals.H = prevDispatcher; 13624 } 13625 }, 13626 useRef: function() { 13627 currentHookNameInDev = "useRef"; 13628 updateHookTypesDev(); 13629 return updateWorkInProgressHook().memoizedState; 13630 }, 13631 useState: function() { 13632 currentHookNameInDev = "useState"; 13633 updateHookTypesDev(); 13634 var prevDispatcher = ReactSharedInternals.H; 13635 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13636 try { 13637 return rerenderReducer(basicStateReducer); 13638 } finally{ 13639 ReactSharedInternals.H = prevDispatcher; 13640 } 13641 }, 13642 useDebugValue: function() { 13643 currentHookNameInDev = "useDebugValue"; 13644 updateHookTypesDev(); 13645 }, 13646 useDeferredValue: function(value, initialValue) { 13647 currentHookNameInDev = "useDeferredValue"; 13648 updateHookTypesDev(); 13649 return rerenderDeferredValue(value, initialValue); 13650 }, 13651 useTransition: function() { 13652 currentHookNameInDev = "useTransition"; 13653 updateHookTypesDev(); 13654 return rerenderTransition(); 13655 }, 13656 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13657 currentHookNameInDev = "useSyncExternalStore"; 13658 updateHookTypesDev(); 13659 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13660 }, 13661 useId: function() { 13662 currentHookNameInDev = "useId"; 13663 updateHookTypesDev(); 13664 return updateWorkInProgressHook().memoizedState; 13665 }, 13666 useFormState: function(action) { 13667 currentHookNameInDev = "useFormState"; 13668 updateHookTypesDev(); 13669 warnOnUseFormStateInDev(); 13670 return rerenderActionState(action); 13671 }, 13672 useActionState: function(action) { 13673 currentHookNameInDev = "useActionState"; 13674 updateHookTypesDev(); 13675 return rerenderActionState(action); 13676 }, 13677 useOptimistic: function(passthrough, reducer) { 13678 currentHookNameInDev = "useOptimistic"; 13679 updateHookTypesDev(); 13680 return rerenderOptimistic(passthrough, reducer); 13681 }, 13682 useHostTransitionStatus: useHostTransitionStatus, 13683 useMemoCache: useMemoCache, 13684 useCacheRefresh: function() { 13685 currentHookNameInDev = "useCacheRefresh"; 13686 updateHookTypesDev(); 13687 return updateWorkInProgressHook().memoizedState; 13688 } 13689 }; 13690 InvalidNestedHooksDispatcherOnMountInDEV = { 13691 readContext: function(context) { 13692 warnInvalidContextAccess(); 13693 return readContext(context); 13694 }, 13695 use: function(usable) { 13696 warnInvalidHookAccess(); 13697 return use(usable); 13698 }, 13699 useCallback: function(callback, deps) { 13700 currentHookNameInDev = "useCallback"; 13701 warnInvalidHookAccess(); 13702 mountHookTypesDev(); 13703 return mountCallback(callback, deps); 13704 }, 13705 useContext: function(context) { 13706 currentHookNameInDev = "useContext"; 13707 warnInvalidHookAccess(); 13708 mountHookTypesDev(); 13709 return readContext(context); 13710 }, 13711 useEffect: function(create, deps) { 13712 currentHookNameInDev = "useEffect"; 13713 warnInvalidHookAccess(); 13714 mountHookTypesDev(); 13715 return mountEffect(create, deps); 13716 }, 13717 useImperativeHandle: function(ref, create, deps) { 13718 currentHookNameInDev = "useImperativeHandle"; 13719 warnInvalidHookAccess(); 13720 mountHookTypesDev(); 13721 return mountImperativeHandle(ref, create, deps); 13722 }, 13723 useInsertionEffect: function(create, deps) { 13724 currentHookNameInDev = "useInsertionEffect"; 13725 warnInvalidHookAccess(); 13726 mountHookTypesDev(); 13727 mountEffectImpl(4, Insertion, create, deps); 13728 }, 13729 useLayoutEffect: function(create, deps) { 13730 currentHookNameInDev = "useLayoutEffect"; 13731 warnInvalidHookAccess(); 13732 mountHookTypesDev(); 13733 return mountLayoutEffect(create, deps); 13734 }, 13735 useMemo: function(create, deps) { 13736 currentHookNameInDev = "useMemo"; 13737 warnInvalidHookAccess(); 13738 mountHookTypesDev(); 13739 var prevDispatcher = ReactSharedInternals.H; 13740 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13741 try { 13742 return mountMemo(create, deps); 13743 } finally{ 13744 ReactSharedInternals.H = prevDispatcher; 13745 } 13746 }, 13747 useReducer: function(reducer, initialArg, init) { 13748 currentHookNameInDev = "useReducer"; 13749 warnInvalidHookAccess(); 13750 mountHookTypesDev(); 13751 var prevDispatcher = ReactSharedInternals.H; 13752 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13753 try { 13754 return mountReducer(reducer, initialArg, init); 13755 } finally{ 13756 ReactSharedInternals.H = prevDispatcher; 13757 } 13758 }, 13759 useRef: function(initialValue) { 13760 currentHookNameInDev = "useRef"; 13761 warnInvalidHookAccess(); 13762 mountHookTypesDev(); 13763 return mountRef(initialValue); 13764 }, 13765 useState: function(initialState) { 13766 currentHookNameInDev = "useState"; 13767 warnInvalidHookAccess(); 13768 mountHookTypesDev(); 13769 var prevDispatcher = ReactSharedInternals.H; 13770 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13771 try { 13772 return mountState(initialState); 13773 } finally{ 13774 ReactSharedInternals.H = prevDispatcher; 13775 } 13776 }, 13777 useDebugValue: function() { 13778 currentHookNameInDev = "useDebugValue"; 13779 warnInvalidHookAccess(); 13780 mountHookTypesDev(); 13781 }, 13782 useDeferredValue: function(value, initialValue) { 13783 currentHookNameInDev = "useDeferredValue"; 13784 warnInvalidHookAccess(); 13785 mountHookTypesDev(); 13786 return mountDeferredValue(value, initialValue); 13787 }, 13788 useTransition: function() { 13789 currentHookNameInDev = "useTransition"; 13790 warnInvalidHookAccess(); 13791 mountHookTypesDev(); 13792 return mountTransition(); 13793 }, 13794 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13795 currentHookNameInDev = "useSyncExternalStore"; 13796 warnInvalidHookAccess(); 13797 mountHookTypesDev(); 13798 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13799 }, 13800 useId: function() { 13801 currentHookNameInDev = "useId"; 13802 warnInvalidHookAccess(); 13803 mountHookTypesDev(); 13804 return mountId(); 13805 }, 13806 useFormState: function(action, initialState) { 13807 currentHookNameInDev = "useFormState"; 13808 warnInvalidHookAccess(); 13809 mountHookTypesDev(); 13810 return mountActionState(action, initialState); 13811 }, 13812 useActionState: function(action, initialState) { 13813 currentHookNameInDev = "useActionState"; 13814 warnInvalidHookAccess(); 13815 mountHookTypesDev(); 13816 return mountActionState(action, initialState); 13817 }, 13818 useOptimistic: function(passthrough) { 13819 currentHookNameInDev = "useOptimistic"; 13820 warnInvalidHookAccess(); 13821 mountHookTypesDev(); 13822 return mountOptimistic(passthrough); 13823 }, 13824 useMemoCache: function(size) { 13825 warnInvalidHookAccess(); 13826 return useMemoCache(size); 13827 }, 13828 useHostTransitionStatus: useHostTransitionStatus, 13829 useCacheRefresh: function() { 13830 currentHookNameInDev = "useCacheRefresh"; 13831 mountHookTypesDev(); 13832 return mountRefresh(); 13833 } 13834 }; 13835 InvalidNestedHooksDispatcherOnUpdateInDEV = { 13836 readContext: function(context) {
vendor: 4,078 bytes, lines 13837-13940
13837 warnInvalidContextAccess(); 13838 return readContext(context); 13839 }, 13840 use: function(usable) { 13841 warnInvalidHookAccess(); 13842 return use(usable); 13843 }, 13844 useCallback: function(callback, deps) { 13845 currentHookNameInDev = "useCallback"; 13846 warnInvalidHookAccess(); 13847 updateHookTypesDev(); 13848 return updateCallback(callback, deps); 13849 }, 13850 useContext: function(context) { 13851 currentHookNameInDev = "useContext"; 13852 warnInvalidHookAccess(); 13853 updateHookTypesDev(); 13854 return readContext(context); 13855 }, 13856 useEffect: function(create, deps) { 13857 currentHookNameInDev = "useEffect"; 13858 warnInvalidHookAccess(); 13859 updateHookTypesDev(); 13860 updateEffectImpl(2048, Passive, create, deps); 13861 }, 13862 useImperativeHandle: function(ref, create, deps) { 13863 currentHookNameInDev = "useImperativeHandle"; 13864 warnInvalidHookAccess(); 13865 updateHookTypesDev(); 13866 return updateImperativeHandle(ref, create, deps); 13867 }, 13868 useInsertionEffect: function(create, deps) { 13869 currentHookNameInDev = "useInsertionEffect"; 13870 warnInvalidHookAccess(); 13871 updateHookTypesDev(); 13872 return updateEffectImpl(4, Insertion, create, deps); 13873 }, 13874 useLayoutEffect: function(create, deps) { 13875 currentHookNameInDev = "useLayoutEffect"; 13876 warnInvalidHookAccess(); 13877 updateHookTypesDev(); 13878 return updateEffectImpl(4, Layout, create, deps); 13879 }, 13880 useMemo: function(create, deps) { 13881 currentHookNameInDev = "useMemo"; 13882 warnInvalidHookAccess(); 13883 updateHookTypesDev(); 13884 var prevDispatcher = ReactSharedInternals.H; 13885 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13886 try { 13887 return updateMemo(create, deps); 13888 } finally{ 13889 ReactSharedInternals.H = prevDispatcher; 13890 } 13891 }, 13892 useReducer: function(reducer, initialArg, init) { 13893 currentHookNameInDev = "useReducer"; 13894 warnInvalidHookAccess(); 13895 updateHookTypesDev(); 13896 var prevDispatcher = ReactSharedInternals.H; 13897 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13898 try { 13899 return updateReducer(reducer, initialArg, init); 13900 } finally{ 13901 ReactSharedInternals.H = prevDispatcher; 13902 } 13903 }, 13904 useRef: function() { 13905 currentHookNameInDev = "useRef"; 13906 warnInvalidHookAccess(); 13907 updateHookTypesDev(); 13908 return updateWorkInProgressHook().memoizedState; 13909 }, 13910 useState: function() { 13911 currentHookNameInDev = "useState"; 13912 warnInvalidHookAccess(); 13913 updateHookTypesDev(); 13914 var prevDispatcher = ReactSharedInternals.H; 13915 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13916 try { 13917 return updateReducer(basicStateReducer); 13918 } finally{ 13919 ReactSharedInternals.H = prevDispatcher; 13920 } 13921 }, 13922 useDebugValue: function() { 13923 currentHookNameInDev = "useDebugValue"; 13924 warnInvalidHookAccess(); 13925 updateHookTypesDev(); 13926 }, 13927 useDeferredValue: function(value, initialValue) { 13928 currentHookNameInDev = "useDeferredValue"; 13929 warnInvalidHookAccess(); 13930 updateHookTypesDev(); 13931 return updateDeferredValue(value, initialValue); 13932 }, 13933 useTransition: function() { 13934 currentHookNameInDev = "useTransition"; 13935 warnInvalidHookAccess(); 13936 updateHookTypesDev(); 13937 return updateTransition(); 13938 }, 13939 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13940 currentHookNameInDev = "useSyncExternalStore";
vendor: 8,697 bytes, lines 13941-14152
13941 warnInvalidHookAccess(); 13942 updateHookTypesDev(); 13943 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13944 }, 13945 useId: function() { 13946 currentHookNameInDev = "useId"; 13947 warnInvalidHookAccess(); 13948 updateHookTypesDev(); 13949 return updateWorkInProgressHook().memoizedState; 13950 }, 13951 useFormState: function(action) { 13952 currentHookNameInDev = "useFormState"; 13953 warnInvalidHookAccess(); 13954 updateHookTypesDev(); 13955 return updateActionState(action); 13956 }, 13957 useActionState: function(action) { 13958 currentHookNameInDev = "useActionState"; 13959 warnInvalidHookAccess(); 13960 updateHookTypesDev(); 13961 return updateActionState(action); 13962 }, 13963 useOptimistic: function(passthrough, reducer) { 13964 currentHookNameInDev = "useOptimistic"; 13965 warnInvalidHookAccess(); 13966 updateHookTypesDev(); 13967 return updateOptimistic(passthrough, reducer); 13968 }, 13969 useMemoCache: function(size) { 13970 warnInvalidHookAccess(); 13971 return useMemoCache(size); 13972 }, 13973 useHostTransitionStatus: useHostTransitionStatus, 13974 useCacheRefresh: function() { 13975 currentHookNameInDev = "useCacheRefresh"; 13976 updateHookTypesDev(); 13977 return updateWorkInProgressHook().memoizedState; 13978 } 13979 }; 13980 InvalidNestedHooksDispatcherOnRerenderInDEV = { 13981 readContext: function(context) { 13982 warnInvalidContextAccess(); 13983 return readContext(context); 13984 }, 13985 use: function(usable) { 13986 warnInvalidHookAccess(); 13987 return use(usable); 13988 }, 13989 useCallback: function(callback, deps) { 13990 currentHookNameInDev = "useCallback"; 13991 warnInvalidHookAccess(); 13992 updateHookTypesDev(); 13993 return updateCallback(callback, deps); 13994 }, 13995 useContext: function(context) { 13996 currentHookNameInDev = "useContext"; 13997 warnInvalidHookAccess(); 13998 updateHookTypesDev(); 13999 return readContext(context); 14000 }, 14001 useEffect: function(create, deps) { 14002 currentHookNameInDev = "useEffect"; 14003 warnInvalidHookAccess(); 14004 updateHookTypesDev(); 14005 updateEffectImpl(2048, Passive, create, deps); 14006 }, 14007 useImperativeHandle: function(ref, create, deps) { 14008 currentHookNameInDev = "useImperativeHandle"; 14009 warnInvalidHookAccess(); 14010 updateHookTypesDev(); 14011 return updateImperativeHandle(ref, create, deps); 14012 }, 14013 useInsertionEffect: function(create, deps) { 14014 currentHookNameInDev = "useInsertionEffect"; 14015 warnInvalidHookAccess(); 14016 updateHookTypesDev(); 14017 return updateEffectImpl(4, Insertion, create, deps); 14018 }, 14019 useLayoutEffect: function(create, deps) { 14020 currentHookNameInDev = "useLayoutEffect"; 14021 warnInvalidHookAccess(); 14022 updateHookTypesDev(); 14023 return updateEffectImpl(4, Layout, create, deps); 14024 }, 14025 useMemo: function(create, deps) { 14026 currentHookNameInDev = "useMemo"; 14027 warnInvalidHookAccess(); 14028 updateHookTypesDev(); 14029 var prevDispatcher = ReactSharedInternals.H; 14030 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 14031 try { 14032 return updateMemo(create, deps); 14033 } finally{ 14034 ReactSharedInternals.H = prevDispatcher; 14035 } 14036 }, 14037 useReducer: function(reducer, initialArg, init) { 14038 currentHookNameInDev = "useReducer"; 14039 warnInvalidHookAccess(); 14040 updateHookTypesDev(); 14041 var prevDispatcher = ReactSharedInternals.H; 14042 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 14043 try { 14044 return rerenderReducer(reducer, initialArg, init); 14045 } finally{ 14046 ReactSharedInternals.H = prevDispatcher; 14047 } 14048 }, 14049 useRef: function() { 14050 currentHookNameInDev = "useRef"; 14051 warnInvalidHookAccess(); 14052 updateHookTypesDev(); 14053 return updateWorkInProgressHook().memoizedState; 14054 }, 14055 useState: function() { 14056 currentHookNameInDev = "useState"; 14057 warnInvalidHookAccess(); 14058 updateHookTypesDev(); 14059 var prevDispatcher = ReactSharedInternals.H; 14060 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 14061 try { 14062 return rerenderReducer(basicStateReducer); 14063 } finally{ 14064 ReactSharedInternals.H = prevDispatcher; 14065 } 14066 }, 14067 useDebugValue: function() { 14068 currentHookNameInDev = "useDebugValue"; 14069 warnInvalidHookAccess(); 14070 updateHookTypesDev(); 14071 }, 14072 useDeferredValue: function(value, initialValue) { 14073 currentHookNameInDev = "useDeferredValue"; 14074 warnInvalidHookAccess(); 14075 updateHookTypesDev(); 14076 return rerenderDeferredValue(value, initialValue); 14077 }, 14078 useTransition: function() { 14079 currentHookNameInDev = "useTransition"; 14080 warnInvalidHookAccess(); 14081 updateHookTypesDev(); 14082 return rerenderTransition(); 14083 }, 14084 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 14085 currentHookNameInDev = "useSyncExternalStore"; 14086 warnInvalidHookAccess(); 14087 updateHookTypesDev(); 14088 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 14089 }, 14090 useId: function() { 14091 currentHookNameInDev = "useId"; 14092 warnInvalidHookAccess(); 14093 updateHookTypesDev(); 14094 return updateWorkInProgressHook().memoizedState; 14095 }, 14096 useFormState: function(action) { 14097 currentHookNameInDev = "useFormState"; 14098 warnInvalidHookAccess(); 14099 updateHookTypesDev(); 14100 return rerenderActionState(action); 14101 }, 14102 useActionState: function(action) { 14103 currentHookNameInDev = "useActionState"; 14104 warnInvalidHookAccess(); 14105 updateHookTypesDev(); 14106 return rerenderActionState(action); 14107 }, 14108 useOptimistic: function(passthrough, reducer) { 14109 currentHookNameInDev = "useOptimistic"; 14110 warnInvalidHookAccess(); 14111 updateHookTypesDev(); 14112 return rerenderOptimistic(passthrough, reducer); 14113 }, 14114 useMemoCache: function(size) { 14115 warnInvalidHookAccess(); 14116 return useMemoCache(size); 14117 }, 14118 useHostTransitionStatus: useHostTransitionStatus, 14119 useCacheRefresh: function() { 14120 currentHookNameInDev = "useCacheRefresh"; 14121 updateHookTypesDev(); 14122 return updateWorkInProgressHook().memoizedState; 14123 } 14124 }; 14125 var fakeInternalInstance = {}; 14126 var didWarnAboutStateAssignmentForComponent = new Set(); 14127 var didWarnAboutUninitializedState = new Set(); 14128 var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); 14129 var didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); 14130 var didWarnAboutDirectlyAssigningPropsToState = new Set(); 14131 var didWarnAboutUndefinedDerivedState = new Set(); 14132 var didWarnAboutContextTypes$1 = new Set(); 14133 var didWarnAboutChildContextTypes = new Set(); 14134 var didWarnAboutInvalidateContextType = new Set(); 14135 var didWarnOnInvalidCallback = new Set(); 14136 Object.freeze(fakeInternalInstance); 14137 var classComponentUpdater = { 14138 enqueueSetState: function(inst, payload, callback) { 14139 inst = inst._reactInternals; 14140 var lane = requestUpdateLane(inst), update = createUpdate(lane); 14141 update.payload = payload; 14142 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 14143 payload = enqueueUpdate(inst, update, lane); 14144 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 14145 markStateUpdateScheduled(inst, lane); 14146 }, 14147 enqueueReplaceState: function(inst, payload, callback) { 14148 inst = inst._reactInternals; 14149 var lane = requestUpdateLane(inst), update = createUpdate(lane); 14150 update.tag = ReplaceState; 14151 update.payload = payload; 14152 void 0 !== callback && null !== callback && (warnOnInvali
14152dCallback(callback), update.callback = callback); 14153 payload = enqueueUpdate(inst, update, lane); 14154 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 14155 markStateUpdateScheduled(inst, lane); 14156 }, 14157 enqueueForceUpdate: function(inst, callback) { 14158 inst = inst._reactInternals; 14159 var lane = requestUpdateLane(inst), update = createUpdate(lane); 14160 update.tag = ForceUpdate; 14161 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 14162 callback = enqueueUpdate(inst, update, lane); 14163 null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane)); 14164 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markForceUpdateScheduled && injectedProfilingHooks.markForceUpdateScheduled(inst, lane); 14165 } 14166 }, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = !1; 14167 var didWarnAboutBadClass = {}; 14168 var didWarnAboutContextTypeOnFunctionComponent = {}; 14169 var didWarnAboutContextTypes = {}; 14170 var didWarnAboutGetDerivedStateOnFunctionComponent = {}; 14171 var didWarnAboutReassigningProps = !1; 14172 var didWarnAboutRevealOrder = {}; 14173 var didWarnAboutTailOptions = {}; 14174 var SUSPENDED_MARKER = { 14175 dehydrated: null, 14176 treeContext: null, 14177 retryLane: 0, 14178 hydrationErrors: null 14179 }, hasWarnedAboutUsingNoValuePropOnContextProvider = !1, didWarnAboutUndefinedSnapshotBeforeUpdate = null; 14180 didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); 14181 var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, inProgressRoot = null, hostParent = null, hostParentIsContainer = !1, currentHoistableRoot = null, suspenseyCommitFlag = 8192, DefaultAsyncDispatcher = { 14182 getCacheForType: function(resourceType) { 14183 var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType); 14184 void 0 === cacheForType && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)); 14185 return cacheForType; 14186 }, 14187 cacheSignal: function() { 14188 return readContext(CacheContext).controller.signal; 14189 }, 14190 getOwner: function() { 14191 return current; 14192 } 14193 }; 14194 if ("function" === typeof Symbol && Symbol.for) { 14195 var symbolFor = Symbol.for; 14196 symbolFor("selector.component"); 14197 symbolFor("selector.has_pseudo_class"); 14198 symbolFor("selector.role"); 14199 symbolFor("selector.test_id"); 14200 symbolFor("selector.text"); 14201 } 14202 var commitHooks = [], PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, NoContext = 0, RenderContext = 2, CommitContext = 4, RootInProgress = 0, RootFatalErrored = 1, RootErrored = 2, RootSuspended = 3, RootSuspendedWithDelay = 4, RootSuspendedAtTheShell = 6, RootCompleted = 5, executionContext = NoContext, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, NotSuspended = 0, SuspendedOnError = 1, SuspendedOnData = 2, SuspendedOnImmediate = 3, SuspendedOnInstance = 4, SuspendedOnInstanceAndReadyToContinue = 5, SuspendedOnDeprecatedThrowPromise = 6, SuspendedAndReadyToContinue = 7, SuspendedOnHydration = 8, SuspendedOnAction = 9, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpd
14202ate = !1, globalMostRecentFallbackTime = 0, FALLBACK_THROTTLE_MS = 300, workInProgressRootRenderTargetTime = Infinity, RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, IMMEDIATE_COMMIT = 0, SUSPENDED_COMMIT = 1, THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, PENDING_LAYOUT_PHASE = 2, PENDING_AFTER_MUTATION_PHASE = 3, PENDING_SPAWNED_WORK = 4, PENDING_PASSIVE_PHASE = 5, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, NESTED_UPDATE_LIMIT = 50, nestedUpdateCount = 0, rootWithNestedUpdates = null, isFlushingPassiveEffects = !1, didScheduleUpdateDuringPassiveEffects = !1, NESTED_PASSIVE_UPDATE_LIMIT = 50, nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, isRunningInsertionEffect = !1, didWarnStateUpdateForNotYetMountedComponent = null, didWarnAboutUpdateInRender = !1; 14203 var didWarnAboutUpdateInRenderForAnotherComponent = new Set(); 14204 var fakeActCallbackNode$1 = {}, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, didScheduleMicrotask_act = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0, fakeActCallbackNode = {}; 14205 (function() { 14206 for(var i = 0; i < simpleEventPluginEvents.length; i++){ 14207 var eventName = simpleEventPluginEvents[i], domEventName = eventName.toLowerCase(); 14208 eventName = eventName[0].toUpperCase() + eventName.slice(1); 14209 registerSimpleEvent(domEventName, "on" + eventName); 14210 } 14211 registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); 14212 registerSimpleEvent(ANIMATION_ITERATION, "onAnimationIteration");
14213 registerSimpleEvent(ANIMATION_START, "onAnimationStart"); 14214 registerSimpleEvent("dblclick", "onDoubleClick"); 14215 registerSimpleEvent("focusin", "onFocus"); 14216 registerSimpleEvent("focusout", "onBlur"); 14217 registerSimpleEvent(TRANSITION_RUN, "onTransitionRun"); 14218 registerSimpleEvent(TRANSITION_START, "onTransitionStart"); 14219 registerSimpleEvent(TRANSITION_CANCEL, "onTransitionCancel"); 14220 registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); 14221 })(); 14222 registerDirectEvent("onMouseEnter", [ 14223 "mouseout", 14224 "mouseover" 14225 ]); 14226 registerDirectEvent("onMouseLeave", [ 14227 "mouseout", 14228 "mouseover" 14229 ]); 14230 registerDirectEvent("onPointerEnter", [ 14231 "pointerout", 14232 "pointerover" 14233 ]); 14234 registerDirectEvent("onPointerLeave", [ 14235 "pointerout", 14236 "pointerover" 14237 ]); 14238 registerTwoPhaseEvent("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); 14239 registerTwoPhaseEvent("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); 14240 registerTwoPhaseEvent("onBeforeInput", [ 14241 "compositionend", 14242 "keypress", 14243 "textInput", 14244 "paste" 14245 ]); 14246 registerTwoPhaseEvent("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); 14247 registerTwoPhaseEvent("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); 14248 registerTwoPhaseEvent("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); 14249 var mediaEventTypes = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), nonDelegatedEvents = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes)), listeningMarker = "_reactListening" + Math.random().toString(36).slice(2), didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1, didWarnFormActionType = !1, didWarnFormActionName = !1, didWarnFormActionTarget = !1, didWarnFormActionMethod = !1, didWarnPopoverTargetObject = !1; 14250 var didWarnForNewBooleanPropsWithEmptyValue = {}; 14251 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g, xlinkNamespace = "http://www.w3.org/1999/xlink", xmlNamespace = "http://www.w3.org/XML/1998/namespace", EXPECTED_FORM_ACTION_URL = "javascript:throw new Error('React form unexpectedly submitted.')", SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning", ACTIVITY_START_DATA = "&", ACTIVITY_END_DATA = "/&", SUSPENSE_START_DATA = "$", SUSPENSE_END_DATA = "/$", SUSPENSE_PENDING_START_DATA = "$?", SUSPENSE_QUEUED_START_DATA = "$~", SUSPENSE_FALLBACK_START_DATA = "$!", PREAMBLE_CONTRIBUTION_HTML = "html", PREAMBLE_CONTRIBUTION_BODY = "body", PREAMBLE_CONTRIBUTION_HEAD = "head", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", DOCUMENT_READY_STATE_LOADING = "loading", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, HostContextNamespaceMath = 2, eventsEnabled = null, selectionInformation = null, warnedUnknownTags = { 14252 dialog: !0, 14253 webview: !0 14254 }, currentPopstateTransitionEvent = null, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, noTimeout = -1, localPromise = "function" === typeof Promise ? Promise : void 0, scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) { 14255 return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick); 14256 } : scheduleTimeout, previousHydratableOnEnteringScopedSingleton = null, NotLoaded = 0, Loaded = 1, Errored = 2, Settled = 3, Inserted = 4, preloadPropsMap = new Map(), preconnectsSet = new Set(), previousDispatcher = ReactDOMSharedInternals.d; 14257 ReactDOMSharedInternals.d = { 14258 f: function() { 14259 var previousWasRendering = previousDispatcher.f(), wasRendering = flushSyncWork$1(); 14260 return previousWasRendering || wasRendering; 14261 }, 14262 r: function(form) { 14263 var formInst = getInstanceFromNode(form); 14264 null !== formInst && 5 === formInst.tag && "form" === formInst.type ? requestFormReset$1(formInst) : previousDispatcher.r(form); 14265 }, 14266 D: function(href) { 14267 previousDispatcher.D(href); 14268 preconnectAs("dns-prefetch", href, null); 14269 }, 14270 C: function(href, crossOrigin) { 14271 previousDispatcher.C(href, crossOrigin); 14272 preconnectAs("preconnect", href, crossOrigin); 14273 }, 14274 L: function(href, as, options) { 14275 previousDispatcher.L(href, as, options); 14276 var ownerDocument = globalDocument; 14277 if (ownerDocument && href && as) { 14278 var preloadSelector = 'link[rel="preload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"]'; 14279 "image" === as ? options && options.imageSrcSet ? (preloadSelector += '[imagesrcset="' + escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSrcSet) + '"]', "string" === typeof options.imageSizes && (preloadSelector += '[imagesizes="' + escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSizes) + '"]')) : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]' : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]'; 14280 var key = preloadSelector; 14281 switch(as){ 14282 case "style": 14283 key = getStyleKey(href); 14284 break; 14285 case "script": 14286 key = getScriptKey(href); 14287 } 14288 preloadPropsMap.has(key) || (href = assign({ 14289 rel: "preload", 14290 href: "image" === as && options && options.imageSrcSet ? void 0 : href, 14291 as: as 14292 }, options), preloadPropsMap.set(key, href), null !== ownerDocument.querySelector(preloadSelector) || "style" === as && ownerDocument.querySelector(getStylesheetSelectorFromKey(key)) || "script" === as && ownerDocument.querySelector(getScriptSelectorFromKey(key)) || (as = ownerDocument.createElement("link"), setInitialProperties(as, "link", href), markNodeAsHoistable(as), ownerDocument.head.appendChild(as))); 14293 } 14294 }, 14295 m: function(href, options) { 14296 previousDispatcher.m(href, options); 14297 var ownerDocument = globalDocument; 14298 if (ownerDocument && href) { 14299 var as = options && "string" === typeof options.as ? options.as : "script", preloadSelector = 'link[rel="modulepreload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"][href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]', key = preloadSelector; 14300 switch(as){ 14301 case "audioworklet": 14302 case "paintworklet": 14303 case "serviceworker": 14304 case "sharedworker": 14305 case "worker": 14306 case "script": 14307 key = getScriptKey(href); 14308 } 14309 if (!preloadPropsMap.has(key) && (href = assign({ 14310 rel: "modulepreload", 14311 href: href 14312 }, options), preloadPropsMap.set(key, href), null === ownerDocument.querySelector(preloadSelector))) { 14313 switch(as){ 14314 case "audioworklet": 14315 case "paintworklet": 14316 case "serviceworker": 14317 case "sharedworker": 14318 case "worker": 14319 case "script": 14320 if (ownerDocument.querySelector(getScriptSelectorFromKey(key))) return; 14321 } 14322 as = ownerDocument.createElement("link"); 14323 setInitialProperties(as, "link", href); 14324 markNodeAsHoistable(as); 14325 ownerDocument.head.appendChild(as); 14326 } 14327 } 14328 }, 14329 X: function(src, options) { 14330 previousDispatcher.X(src, options); 14331 var ownerDocument = globalDocument; 14332 if (ownerDocument && src) { 14333 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 14334 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 14335 src: src, 14336 async: !0 14337 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 14338 type: "script", 14339 instance: resource, 14340 count: 1, 14341 state: null 14342 }, scripts.set(key, resource)); 14343 } 14344 }, 14345 S: function(href, precedence, options) { 14346 previousDispatcher.S(href, precedence, options); 14347 var ownerDocument = globalDocument; 14348 if (ownerDocument && href) { 14349 var styles = getResourcesFromRoot(ownerDocument).hoistableStyles, key = getStyleKey(href); 14350 precedence = precedence || "default"; 14351 var resource = styles.get(key); 14352 if (!resource) { 14353 var state = { 14354 loading: NotLoaded, 14355 preload: null 14356 }; 14357 if (resource = ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) state.loading = Loaded | Inserted; 14358 else { 14359 href = assign({ 14360 rel: "stylesheet", 14361 href: href, 14362 "data-precedence": precedence 14363 }, options); 14364 (options = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options); 14365 var link = resource = ownerDocument.createElement("link"); 14366 markNodeAsHoistable(link); 14367 setInitialProperties(link, "link", href); 14368 link._p = new Promise(function(resolve, reject) { 14369 link.onload = resolve; 14370 link.onerror = reject; 14371 }); 14372 link.addEventListener("load", function() { 14373 state.loading |= Loaded; 14374 }); 14375 link.addEventListener("error", function() { 14376 state.loading |= Errored; 14377 }); 14378 state.loading |= Inserted; 14379 insertStylesheet(resource, precedence, ownerDocument); 14380 } 14381 resource = { 14382 type: "stylesheet", 14383 instance: resource, 14384 count: 1, 14385 state: state 14386 }; 14387 styles.set(key, resource); 14388 } 14389 } 14390 }, 14391 M: function(src, options) { 14392 previousDispatcher.M(src, options); 14393 var ownerDocument = globalDocument; 14394 if (ownerDocument && src) { 14395 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 14396 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 14397 src: src, 14398 async: !0, 14399 type: "module" 14400 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 14401 type: "script", 14402 instance: resource, 14403 count: 1, 14404 state: null 14405 }, scripts.set(key, resource)); 14406 } 14407 } 14408 }; 14409 var globalDocument = "undefined" === typeof document ? null : document, tagCaches = null, suspendedState = null, LAST_PRECEDENCE = null, precedencesByRoot = null, NotPendingTransition = NotPending, HostTransitionContext = { 14410 $$typeof: REACT_CONTEXT_TYPE, 14411 Provider: null, 14412 Consumer: null, 14413 _currentValue: NotPendingTransition, 14414 _currentValue2: NotPendingTransition, 14415 _threadCount: 0 14416 }, badgeFormat = "%c%s%c", badgeStyle = "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", resetStyle = "", pad = " ", bind = Function.prototype.bind; 14417 var didWarnAboutNestedUpdates = !1; 14418 var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, setErrorHandler = null, setSuspenseHandler = null; 14419 overrideHookState = function(fiber, id, path, value) { 14420 id = findHook(fiber, id); 14421 null !== id && (path = copyWithSetImpl(id.memoizedState, path, 0, value), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 14422 }; 14423 overrideHookStateDeletePath = function(fiber, id, path) { 14424 id = findHook(fiber, id); 14425 null !== id && (path = copyWithDeleteImpl(id.memoizedState, path, 0), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 14426 }; 14427 overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) { 14428 id = findHook(fiber, id); 14429 null !== id && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2)); 14430 }; 14431 overrideProps = function(fiber, path, value) { 14432 fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path, 0, value); 14433 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14434 path = enqueueConcurrentRenderForLane(fiber, 2); 14435 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 14436 }; 14437 overridePropsDeletePath = function(fiber, path) { 14438 fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path, 0); 14439 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14440 path = enqueueConcurrentRenderForLane(fiber, 2); 14441 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 14442 }; 14443 overridePropsRenamePath = function(fiber, oldPath, newPath) { 14444 fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); 14445 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14446 oldPath = enqueueConcurrentRenderForLane(fiber, 2); 14447 null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2); 14448 }; 14449 scheduleUpdate = function(fiber) { 14450 var root = enqueueConcurrentRenderForLane(fiber, 2); 14451 null !== root && scheduleUpdateOnFiber(root, fiber, 2); 14452 }; 14453 setErrorHandler = function(newShouldErrorImpl) { 14454 shouldErrorImpl = newShouldErrorImpl; 14455 }; 14456 setSuspenseHandler = function(newShouldSuspendImpl) { 14457 shouldSuspendImpl = newShouldSuspendImpl; 14458 }; 14459 var _enabled = !0, return_targetInst = nu
vendor: 10,617 bytes, lines 14459-14576
14459ll, hasScheduledReplayAttempt = !1, queuedFocus = null, queuedDrag = null, queuedMouse = null, queuedPointers = new Map(), queuedPointerCaptures = new Map(), queuedExplicitHydrationTargets = [], discreteReplayableEvents = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "), lastScheduledReplayQueue = null; 14460 ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) { 14461 var root = this._internalRoot; 14462 if (null === root) throw Error("Cannot update an unmounted root."); 14463 var args = arguments; 14464 "function" === typeof args[1] ? console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().") : isValidContainer(args[1]) ? console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.") : "undefined" !== typeof args[1] && console.error("You passed a second argument to root.render(...) but it only accepts one argument."); 14465 args = children; 14466 var current = root.current, lane = requestUpdateLane(current); 14467 updateContainerImpl(current, lane, args, root, null, null); 14468 }; 14469 ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() { 14470 var args = arguments; 14471 "function" === typeof args[0] && console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."); 14472 args = this._internalRoot; 14473 if (null !== args) { 14474 this._internalRoot = null; 14475 var container = args.containerInfo; 14476 (executionContext & (RenderContext | CommitContext)) !== NoContext && console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."); 14477 updateContainerImpl(args.current, 2, null, args, null, null); 14478 flushSyncWork$1(); 14479 container[internalContainerInstanceKey] = null; 14480 } 14481 }; 14482 ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) { 14483 if (target) { 14484 var updatePriority = resolveUpdatePriority(); 14485 target = { 14486 blockedOn: null, 14487 target: target, 14488 priority: updatePriority 14489 }; 14490 for(var i = 0; i < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i].priority; i++); 14491 queuedExplicitHydrationTargets.splice(i, 0, target); 14492 0 === i && attemptExplicitHydrationTarget(target); 14493 } 14494 }; 14495 (function() { 14496 var isomorphicReactPackageVersion = React.version; 14497 if ("19.2.0-canary-0bdb9206-20250818" !== isomorphicReactPackageVersion) throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.2.0-canary-0bdb9206-20250818\nLearn more: https://react.dev/warnings/version-mismatch")); 14498 })(); 14499 "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"); 14500 ReactDOMSharedInternals.findDOMNode = function(componentOrElement) { 14501 var fiber = componentOrElement._reactInternals; 14502 if (void 0 === fiber) { 14503 if ("function" === typeof componentOrElement.render) throw Error("Unable to find node on an unmounted component."); 14504 componentOrElement = Object.keys(componentOrElement).join(","); 14505 throw Error("Argument appears to not be a ReactComponent. Keys: " + componentOrElement); 14506 } 14507 componentOrElement = findCurrentFiberUsingSlowPath(fiber); 14508 componentOrElement = null !== componentOrElement ? findCurrentHostFiberImpl(componentOrElement) : null; 14509 componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode; 14510 return componentOrElement; 14511 }; 14512 if (!function() { 14513 var internals = { 14514 bundleType: 1, 14515 version: "19.2.0-canary-0bdb9206-20250818", 14516 rendererPackageName: "react-dom", 14517 currentDispatcherRef: ReactSharedInternals, 14518 reconcilerVersion: "19.2.0-canary-0bdb9206-20250818" 14519 }; 14520 internals.overrideHookState = overrideHookState; 14521 internals.overrideHookStateDeletePath = overrideHookStateDeletePath; 14522 internals.overrideHookStateRenamePath = overrideHookStateRenamePath; 14523 internals.overrideProps = overrideProps; 14524 internals.overridePropsDeletePath = overridePropsDeletePath; 14525 internals.overridePropsRenamePath = overridePropsRenamePath; 14526 internals.scheduleUpdate = scheduleUpdate; 14527 internals.setErrorHandler = setErrorHandler; 14528 internals.setSuspenseHandler = setSuspenseHandler; 14529 internals.scheduleRefresh = scheduleRefresh; 14530 internals.scheduleRoot = scheduleRoot; 14531 internals.setRefreshHandler = setRefreshHandler; 14532 internals.getCurrentFiber = getCurrentFiberForDevTools; 14533 internals.getLaneLabelMap = getLaneLabelMap; 14534 internals.injectProfilingHooks = injectProfilingHooks; 14535 return injectInternals(internals); 14536 }() && canUseDOM && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && -1 === navigator.userAgent.indexOf("Edge") || -1 < navigator.userAgent.indexOf("Firefox"))) { 14537 var protocol = window.location.protocol; 14538 /^(https?|file):$/.test(protocol) && console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools" + ("file:" === protocol ? "\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold"); 14539 } 14540 exports.createRoot = function(container, options) { 14541 if (!isValidContainer(container)) throw Error("Target container is not a DOM element."); 14542 warnIfReactDOMContainerInDEV(container); 14543 var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError; 14544 null !== options && void 0 !== options && (options.hydrate ? console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.") : "object" === typeof options && null !== options && options.$$typeof === REACT_ELEMENT_TYPE && console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"), !0 === options.unstable_strictMode && (isStrictMode = !0), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError)); 14545 options = createFiberRoot(container, 1, !1, null, null, isStrictMode, identifierPrefix, null, onUncaughtError, onCaughtError, onRecoverableError, defaultOnDefaultTransitionIndicator); 14546 container[internalContainerInstanceKey] = options.current; 14547 listenToAllSupportedEvents(container); 14548 return new ReactDOMRoot(options); 14549 }; 14550 exports.hydrateRoot = function(container, initialChildren, options) { 14551 if (!isValidContainer(container)) throw Error("Target container is not a DOM element."); 14552 warnIfReactDOMContainerInDEV(container); 14553 void 0 === initialChildren && console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)"); 14554 var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, formState = null; 14555 null !== options && void 0 !== options && (!0 === options.unstable_strictMode && (isStrictMode = !0), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.formState && (formState = options.formState)); 14556 initialChildren = createFiberRoot(container, 1, !0, initialChildren, null != options ? options : null, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, defaultOnDefaultTransitionIndicator); 14557 initialChildren.context = getContextForSubtree(null); 14558 options = initialChildren.current; 14559 isStrictMode = requestUpdateLane(options); 14560 isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); 14561 identifierPrefix = createUpdate(isStrictMode); 14562 identifierPrefix.callback = null; 14563 enqueueUpdate(options, identifierPrefix, isStrictMode); 14564 options = isStrictMode; 14565 initialChildren.current.lanes = options; 14566 markRootUpdated$1(initialChildren, options); 14567 ensureRootIsScheduled(initialChildren); 14568 container[internalContainerInstanceKey] = initialChildren.current; 14569 listenToAllSupportedEvents(container); 14570 return new ReactDOMHydrationRoot(initialChildren); 14571 }; 14572 exports.version = "19.2.0-canary-0bdb9206-20250818"; 14573 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 14574}(); 14575}), 14576"[project]/node_modules/next/dist/compiled/react-dom/client.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports
14576) => { 14577"use strict"; 14578 14579var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)"); 14580'use strict'; 14581function checkDCE() { 14582 /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') { 14583 return; 14584 } 14585 if ("TURBOPACK compile-time truthy", 1) { 14586 // This branch is unreachable because this function is only called 14587 // in production, but the condition is true only in development. 14588 // Therefore if the branch is still here, dead code elimination wasn't 14589 // properly applied. 14590 // Don't change the message. React DevTools relies on it. Also make sure 14591 // this message doesn't occur elsewhere in this function, or it will cause 14592 // a false positive. 14593 throw new Error('^_^'); 14594 } 14595 try { 14596 // Verify that the code above has been dead code eliminated (DCE'd). 14597 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 14598 } catch (err) { 14599 // DevTools shouldn't crash React, no matter what. 14600 // We should still report in case we break this code. 14601 console.error(err); 14602 } 14603} 14604if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable 14605; 14606else { 14607 module.exports = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js [app-client] (ecmascript)"); 14608} 14609}), 14610]); 14611 14612//# sourceMappingURL=node_modules_next_dist_compiled_react-dom_1e674e59._.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.