source: node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 232.4 KB
RevLine 
[a762898]1/**
2 * @license React
3 * react-dom-server-legacy.browser.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */
10
11/*
12
13
14 JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
15
16 Copyright (c) 2011 Gary Court
17 Permission is hereby granted, free of charge, to any person obtaining a copy
18 of this software and associated documentation files (the "Software"), to deal
19 in the Software without restriction, including without limitation the rights
20 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21 copies of the Software, and to permit persons to whom the Software is
22 furnished to do so, subject to the following conditions:
23
24 The above copyright notice and this permission notice shall be included in
25 all copies or substantial portions of the Software.
26
27 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33 SOFTWARE.
34*/
35"use strict";
36var React = require("react"),
37 ReactDOM = require("react-dom");
38function formatProdErrorMessage(code) {
39 var url = "https://react.dev/errors/" + code;
40 if (1 < arguments.length) {
41 url += "?args[]=" + encodeURIComponent(arguments[1]);
42 for (var i = 2; i < arguments.length; i++)
43 url += "&args[]=" + encodeURIComponent(arguments[i]);
44 }
45 return (
46 "Minified React error #" +
47 code +
48 "; visit " +
49 url +
50 " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
51 );
52}
53var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
54 REACT_PORTAL_TYPE = Symbol.for("react.portal"),
55 REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
56 REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
57 REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
58 REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
59 REACT_CONTEXT_TYPE = Symbol.for("react.context"),
60 REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
61 REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
62 REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
63 REACT_MEMO_TYPE = Symbol.for("react.memo"),
64 REACT_LAZY_TYPE = Symbol.for("react.lazy"),
65 REACT_SCOPE_TYPE = Symbol.for("react.scope"),
66 REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
67 REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
68 REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
69 REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
70 MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
71function getIteratorFn(maybeIterable) {
72 if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
73 maybeIterable =
74 (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
75 maybeIterable["@@iterator"];
76 return "function" === typeof maybeIterable ? maybeIterable : null;
77}
78var isArrayImpl = Array.isArray;
79function murmurhash3_32_gc(key, seed) {
80 var remainder = key.length & 3;
81 var bytes = key.length - remainder;
82 var h1 = seed;
83 for (seed = 0; seed < bytes; ) {
84 var k1 =
85 (key.charCodeAt(seed) & 255) |
86 ((key.charCodeAt(++seed) & 255) << 8) |
87 ((key.charCodeAt(++seed) & 255) << 16) |
88 ((key.charCodeAt(++seed) & 255) << 24);
89 ++seed;
90 k1 =
91 (3432918353 * (k1 & 65535) +
92 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
93 4294967295;
94 k1 = (k1 << 15) | (k1 >>> 17);
95 k1 =
96 (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
97 4294967295;
98 h1 ^= k1;
99 h1 = (h1 << 13) | (h1 >>> 19);
100 h1 = (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
101 h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
102 }
103 k1 = 0;
104 switch (remainder) {
105 case 3:
106 k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
107 case 2:
108 k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
109 case 1:
110 (k1 ^= key.charCodeAt(seed) & 255),
111 (k1 =
112 (3432918353 * (k1 & 65535) +
113 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
114 4294967295),
115 (k1 = (k1 << 15) | (k1 >>> 17)),
116 (h1 ^=
117 (461845907 * (k1 & 65535) +
118 (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
119 4294967295);
120 }
121 h1 ^= key.length;
122 h1 ^= h1 >>> 16;
123 h1 =
124 (2246822507 * (h1 & 65535) + (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
125 4294967295;
126 h1 ^= h1 >>> 13;
127 h1 =
128 (3266489909 * (h1 & 65535) + (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
129 4294967295;
130 return (h1 ^ (h1 >>> 16)) >>> 0;
131}
132var assign = Object.assign,
133 hasOwnProperty = Object.prototype.hasOwnProperty,
134 VALID_ATTRIBUTE_NAME_REGEX = RegExp(
135 "^[: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]*$"
136 ),
137 illegalAttributeNameCache = {},
138 validatedAttributeNameCache = {};
139function isAttributeNameSafe(attributeName) {
140 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
141 return !0;
142 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;
143 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
144 return (validatedAttributeNameCache[attributeName] = !0);
145 illegalAttributeNameCache[attributeName] = !0;
146 return !1;
147}
148var unitlessNumbers = new Set(
149 "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(
150 " "
151 )
152 ),
153 aliases = new Map([
154 ["acceptCharset", "accept-charset"],
155 ["htmlFor", "for"],
156 ["httpEquiv", "http-equiv"],
157 ["crossOrigin", "crossorigin"],
158 ["accentHeight", "accent-height"],
159 ["alignmentBaseline", "alignment-baseline"],
160 ["arabicForm", "arabic-form"],
161 ["baselineShift", "baseline-shift"],
162 ["capHeight", "cap-height"],
163 ["clipPath", "clip-path"],
164 ["clipRule", "clip-rule"],
165 ["colorInterpolation", "color-interpolation"],
166 ["colorInterpolationFilters", "color-interpolation-filters"],
167 ["colorProfile", "color-profile"],
168 ["colorRendering", "color-rendering"],
169 ["dominantBaseline", "dominant-baseline"],
170 ["enableBackground", "enable-background"],
171 ["fillOpacity", "fill-opacity"],
172 ["fillRule", "fill-rule"],
173 ["floodColor", "flood-color"],
174 ["floodOpacity", "flood-opacity"],
175 ["fontFamily", "font-family"],
176 ["fontSize", "font-size"],
177 ["fontSizeAdjust", "font-size-adjust"],
178 ["fontStretch", "font-stretch"],
179 ["fontStyle", "font-style"],
180 ["fontVariant", "font-variant"],
181 ["fontWeight", "font-weight"],
182 ["glyphName", "glyph-name"],
183 ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
184 ["glyphOrientationVertical", "glyph-orientation-vertical"],
185 ["horizAdvX", "horiz-adv-x"],
186 ["horizOriginX", "horiz-origin-x"],
187 ["imageRendering", "image-rendering"],
188 ["letterSpacing", "letter-spacing"],
189 ["lightingColor", "lighting-color"],
190 ["markerEnd", "marker-end"],
191 ["markerMid", "marker-mid"],
192 ["markerStart", "marker-start"],
193 ["overlinePosition", "overline-position"],
194 ["overlineThickness", "overline-thickness"],
195 ["paintOrder", "paint-order"],
196 ["panose-1", "panose-1"],
197 ["pointerEvents", "pointer-events"],
198 ["renderingIntent", "rendering-intent"],
199 ["shapeRendering", "shape-rendering"],
200 ["stopColor", "stop-color"],
201 ["stopOpacity", "stop-opacity"],
202 ["strikethroughPosition", "strikethrough-position"],
203 ["strikethroughThickness", "strikethrough-thickness"],
204 ["strokeDasharray", "stroke-dasharray"],
205 ["strokeDashoffset", "stroke-dashoffset"],
206 ["strokeLinecap", "stroke-linecap"],
207 ["strokeLinejoin", "stroke-linejoin"],
208 ["strokeMiterlimit", "stroke-miterlimit"],
209 ["strokeOpacity", "stroke-opacity"],
210 ["strokeWidth", "stroke-width"],
211 ["textAnchor", "text-anchor"],
212 ["textDecoration", "text-decoration"],
213 ["textRendering", "text-rendering"],
214 ["transformOrigin", "transform-origin"],
215 ["underlinePosition", "underline-position"],
216 ["underlineThickness", "underline-thickness"],
217 ["unicodeBidi", "unicode-bidi"],
218 ["unicodeRange", "unicode-range"],
219 ["unitsPerEm", "units-per-em"],
220 ["vAlphabetic", "v-alphabetic"],
221 ["vHanging", "v-hanging"],
222 ["vIdeographic", "v-ideographic"],
223 ["vMathematical", "v-mathematical"],
224 ["vectorEffect", "vector-effect"],
225 ["vertAdvY", "vert-adv-y"],
226 ["vertOriginX", "vert-origin-x"],
227 ["vertOriginY", "vert-origin-y"],
228 ["wordSpacing", "word-spacing"],
229 ["writingMode", "writing-mode"],
230 ["xmlnsXlink", "xmlns:xlink"],
231 ["xHeight", "x-height"]
232 ]),
233 matchHtmlRegExp = /["'&<>]/;
234function escapeTextForBrowser(text) {
235 if (
236 "boolean" === typeof text ||
237 "number" === typeof text ||
238 "bigint" === typeof text
239 )
240 return "" + text;
241 text = "" + text;
242 var match = matchHtmlRegExp.exec(text);
243 if (match) {
244 var html = "",
245 index,
246 lastIndex = 0;
247 for (index = match.index; index < text.length; index++) {
248 switch (text.charCodeAt(index)) {
249 case 34:
250 match = "&quot;";
251 break;
252 case 38:
253 match = "&amp;";
254 break;
255 case 39:
256 match = "&#x27;";
257 break;
258 case 60:
259 match = "&lt;";
260 break;
261 case 62:
262 match = "&gt;";
263 break;
264 default:
265 continue;
266 }
267 lastIndex !== index && (html += text.slice(lastIndex, index));
268 lastIndex = index + 1;
269 html += match;
270 }
271 text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
272 }
273 return text;
274}
275var uppercasePattern = /([A-Z])/g,
276 msPattern = /^ms-/,
277 isJavaScriptProtocol =
278 /^[\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;
279function sanitizeURL(url) {
280 return isJavaScriptProtocol.test("" + url)
281 ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
282 : url;
283}
284var ReactSharedInternals =
285 React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
286 ReactDOMSharedInternals =
287 ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
288 sharedNotPendingObject = {
289 pending: !1,
290 data: null,
291 method: null,
292 action: null
293 },
294 previousDispatcher = ReactDOMSharedInternals.d;
295ReactDOMSharedInternals.d = {
296 f: previousDispatcher.f,
297 r: previousDispatcher.r,
298 D: prefetchDNS,
299 C: preconnect,
300 L: preload,
301 m: preloadModule,
302 X: preinitScript,
303 S: preinitStyle,
304 M: preinitModuleScript
305};
306var PRELOAD_NO_CREDS = [],
307 currentlyFlushingRenderState = null,
308 scriptRegex = /(<\/|<)(s)(cript)/gi;
309function scriptReplacer(match, prefix, s, suffix) {
310 return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
311}
312function createResumableState(
313 identifierPrefix,
314 externalRuntimeConfig,
315 bootstrapScriptContent,
316 bootstrapScripts,
317 bootstrapModules
318) {
319 return {
320 idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
321 nextFormID: 0,
322 streamingFormat: 0,
323 bootstrapScriptContent: bootstrapScriptContent,
324 bootstrapScripts: bootstrapScripts,
325 bootstrapModules: bootstrapModules,
326 instructions: 0,
327 hasBody: !1,
328 hasHtml: !1,
329 unknownResources: {},
330 dnsResources: {},
331 connectResources: { default: {}, anonymous: {}, credentials: {} },
332 imageResources: {},
333 styleResources: {},
334 scriptResources: {},
335 moduleUnknownResources: {},
336 moduleScriptResources: {}
337 };
338}
339function createFormatContext(
340 insertionMode,
341 selectedValue,
342 tagScope,
343 viewTransition
344) {
345 return {
346 insertionMode: insertionMode,
347 selectedValue: selectedValue,
348 tagScope: tagScope,
349 viewTransition: viewTransition
350 };
351}
352function getChildFormatContext(parentContext, type, props) {
353 var subtreeScope = parentContext.tagScope & -25;
354 switch (type) {
355 case "noscript":
356 return createFormatContext(2, null, subtreeScope | 1, null);
357 case "select":
358 return createFormatContext(
359 2,
360 null != props.value ? props.value : props.defaultValue,
361 subtreeScope,
362 null
363 );
364 case "svg":
365 return createFormatContext(4, null, subtreeScope, null);
366 case "picture":
367 return createFormatContext(2, null, subtreeScope | 2, null);
368 case "math":
369 return createFormatContext(5, null, subtreeScope, null);
370 case "foreignObject":
371 return createFormatContext(2, null, subtreeScope, null);
372 case "table":
373 return createFormatContext(6, null, subtreeScope, null);
374 case "thead":
375 case "tbody":
376 case "tfoot":
377 return createFormatContext(7, null, subtreeScope, null);
378 case "colgroup":
379 return createFormatContext(9, null, subtreeScope, null);
380 case "tr":
381 return createFormatContext(8, null, subtreeScope, null);
382 case "head":
383 if (2 > parentContext.insertionMode)
384 return createFormatContext(3, null, subtreeScope, null);
385 break;
386 case "html":
387 if (0 === parentContext.insertionMode)
388 return createFormatContext(1, null, subtreeScope, null);
389 }
390 return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
391 ? createFormatContext(2, null, subtreeScope, null)
392 : parentContext.tagScope !== subtreeScope
393 ? createFormatContext(
394 parentContext.insertionMode,
395 parentContext.selectedValue,
396 subtreeScope,
397 null
398 )
399 : parentContext;
400}
401function getSuspenseViewTransition(parentViewTransition) {
402 return null === parentViewTransition
403 ? null
404 : {
405 update: parentViewTransition.update,
406 enter: "none",
407 exit: "none",
408 share: parentViewTransition.update,
409 name: parentViewTransition.autoName,
410 autoName: parentViewTransition.autoName,
411 nameIdx: 0
412 };
413}
414function getSuspenseFallbackFormatContext(resumableState, parentContext) {
415 parentContext.tagScope & 32 && (resumableState.instructions |= 128);
416 return createFormatContext(
417 parentContext.insertionMode,
418 parentContext.selectedValue,
419 parentContext.tagScope | 12,
420 getSuspenseViewTransition(parentContext.viewTransition)
421 );
422}
423function getSuspenseContentFormatContext(resumableState, parentContext) {
424 resumableState = getSuspenseViewTransition(parentContext.viewTransition);
425 var subtreeScope = parentContext.tagScope | 16;
426 null !== resumableState &&
427 "none" !== resumableState.share &&
428 (subtreeScope |= 64);
429 return createFormatContext(
430 parentContext.insertionMode,
431 parentContext.selectedValue,
432 subtreeScope,
433 resumableState
434 );
435}
436var styleNameCache = new Map();
437function pushStyleAttribute(target, style) {
438 if ("object" !== typeof style) throw Error(formatProdErrorMessage(62));
439 var isFirst = !0,
440 styleName;
441 for (styleName in style)
442 if (hasOwnProperty.call(style, styleName)) {
443 var styleValue = style[styleName];
444 if (
445 null != styleValue &&
446 "boolean" !== typeof styleValue &&
447 "" !== styleValue
448 ) {
449 if (0 === styleName.indexOf("--")) {
450 var nameChunk = escapeTextForBrowser(styleName);
451 styleValue = escapeTextForBrowser(("" + styleValue).trim());
452 } else
453 (nameChunk = styleNameCache.get(styleName)),
454 void 0 === nameChunk &&
455 ((nameChunk = escapeTextForBrowser(
456 styleName
457 .replace(uppercasePattern, "-$1")
458 .toLowerCase()
459 .replace(msPattern, "-ms-")
460 )),
461 styleNameCache.set(styleName, nameChunk)),
462 (styleValue =
463 "number" === typeof styleValue
464 ? 0 === styleValue || unitlessNumbers.has(styleName)
465 ? "" + styleValue
466 : styleValue + "px"
467 : escapeTextForBrowser(("" + styleValue).trim()));
468 isFirst
469 ? ((isFirst = !1),
470 target.push(' style="', nameChunk, ":", styleValue))
471 : target.push(";", nameChunk, ":", styleValue);
472 }
473 }
474 isFirst || target.push('"');
475}
476function pushBooleanAttribute(target, name, value) {
477 value &&
478 "function" !== typeof value &&
479 "symbol" !== typeof value &&
480 target.push(" ", name, '=""');
481}
482function pushStringAttribute(target, name, value) {
483 "function" !== typeof value &&
484 "symbol" !== typeof value &&
485 "boolean" !== typeof value &&
486 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
487}
488var actionJavaScriptURL = escapeTextForBrowser(
489 "javascript:throw new Error('React form unexpectedly submitted.')"
490);
491function pushAdditionalFormField(value, key) {
492 this.push('<input type="hidden"');
493 validateAdditionalFormField(value);
494 pushStringAttribute(this, "name", key);
495 pushStringAttribute(this, "value", value);
496 this.push("/>");
497}
498function validateAdditionalFormField(value) {
499 if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
500}
501function getCustomFormFields(resumableState, formAction) {
502 if ("function" === typeof formAction.$$FORM_ACTION) {
503 var id = resumableState.nextFormID++;
504 resumableState = resumableState.idPrefix + id;
505 try {
506 var customFields = formAction.$$FORM_ACTION(resumableState);
507 if (customFields) {
508 var formData = customFields.data;
509 null != formData && formData.forEach(validateAdditionalFormField);
510 }
511 return customFields;
512 } catch (x) {
513 if ("object" === typeof x && null !== x && "function" === typeof x.then)
514 throw x;
515 }
516 }
517 return null;
518}
519function pushFormActionAttribute(
520 target,
521 resumableState,
522 renderState,
523 formAction,
524 formEncType,
525 formMethod,
526 formTarget,
527 name
528) {
529 var formData = null;
530 if ("function" === typeof formAction) {
531 var customFields = getCustomFormFields(resumableState, formAction);
532 null !== customFields
533 ? ((name = customFields.name),
534 (formAction = customFields.action || ""),
535 (formEncType = customFields.encType),
536 (formMethod = customFields.method),
537 (formTarget = customFields.target),
538 (formData = customFields.data))
539 : (target.push(" ", "formAction", '="', actionJavaScriptURL, '"'),
540 (formTarget = formMethod = formEncType = formAction = name = null),
541 injectFormReplayingRuntime(resumableState, renderState));
542 }
543 null != name && pushAttribute(target, "name", name);
544 null != formAction && pushAttribute(target, "formAction", formAction);
545 null != formEncType && pushAttribute(target, "formEncType", formEncType);
546 null != formMethod && pushAttribute(target, "formMethod", formMethod);
547 null != formTarget && pushAttribute(target, "formTarget", formTarget);
548 return formData;
549}
550function pushAttribute(target, name, value) {
551 switch (name) {
552 case "className":
553 pushStringAttribute(target, "class", value);
554 break;
555 case "tabIndex":
556 pushStringAttribute(target, "tabindex", value);
557 break;
558 case "dir":
559 case "role":
560 case "viewBox":
561 case "width":
562 case "height":
563 pushStringAttribute(target, name, value);
564 break;
565 case "style":
566 pushStyleAttribute(target, value);
567 break;
568 case "src":
569 case "href":
570 if ("" === value) break;
571 case "action":
572 case "formAction":
573 if (
574 null == value ||
575 "function" === typeof value ||
576 "symbol" === typeof value ||
577 "boolean" === typeof value
578 )
579 break;
580 value = sanitizeURL("" + value);
581 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
582 break;
583 case "defaultValue":
584 case "defaultChecked":
585 case "innerHTML":
586 case "suppressContentEditableWarning":
587 case "suppressHydrationWarning":
588 case "ref":
589 break;
590 case "autoFocus":
591 case "multiple":
592 case "muted":
593 pushBooleanAttribute(target, name.toLowerCase(), value);
594 break;
595 case "xlinkHref":
596 if (
597 "function" === typeof value ||
598 "symbol" === typeof value ||
599 "boolean" === typeof value
600 )
601 break;
602 value = sanitizeURL("" + value);
603 target.push(" ", "xlink:href", '="', escapeTextForBrowser(value), '"');
604 break;
605 case "contentEditable":
606 case "spellCheck":
607 case "draggable":
608 case "value":
609 case "autoReverse":
610 case "externalResourcesRequired":
611 case "focusable":
612 case "preserveAlpha":
613 "function" !== typeof value &&
614 "symbol" !== typeof value &&
615 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
616 break;
617 case "inert":
618 case "allowFullScreen":
619 case "async":
620 case "autoPlay":
621 case "controls":
622 case "default":
623 case "defer":
624 case "disabled":
625 case "disablePictureInPicture":
626 case "disableRemotePlayback":
627 case "formNoValidate":
628 case "hidden":
629 case "loop":
630 case "noModule":
631 case "noValidate":
632 case "open":
633 case "playsInline":
634 case "readOnly":
635 case "required":
636 case "reversed":
637 case "scoped":
638 case "seamless":
639 case "itemScope":
640 value &&
641 "function" !== typeof value &&
642 "symbol" !== typeof value &&
643 target.push(" ", name, '=""');
644 break;
645 case "capture":
646 case "download":
647 !0 === value
648 ? target.push(" ", name, '=""')
649 : !1 !== value &&
650 "function" !== typeof value &&
651 "symbol" !== typeof value &&
652 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
653 break;
654 case "cols":
655 case "rows":
656 case "size":
657 case "span":
658 "function" !== typeof value &&
659 "symbol" !== typeof value &&
660 !isNaN(value) &&
661 1 <= value &&
662 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
663 break;
664 case "rowSpan":
665 case "start":
666 "function" === typeof value ||
667 "symbol" === typeof value ||
668 isNaN(value) ||
669 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
670 break;
671 case "xlinkActuate":
672 pushStringAttribute(target, "xlink:actuate", value);
673 break;
674 case "xlinkArcrole":
675 pushStringAttribute(target, "xlink:arcrole", value);
676 break;
677 case "xlinkRole":
678 pushStringAttribute(target, "xlink:role", value);
679 break;
680 case "xlinkShow":
681 pushStringAttribute(target, "xlink:show", value);
682 break;
683 case "xlinkTitle":
684 pushStringAttribute(target, "xlink:title", value);
685 break;
686 case "xlinkType":
687 pushStringAttribute(target, "xlink:type", value);
688 break;
689 case "xmlBase":
690 pushStringAttribute(target, "xml:base", value);
691 break;
692 case "xmlLang":
693 pushStringAttribute(target, "xml:lang", value);
694 break;
695 case "xmlSpace":
696 pushStringAttribute(target, "xml:space", value);
697 break;
698 default:
699 if (
700 !(2 < name.length) ||
701 ("o" !== name[0] && "O" !== name[0]) ||
702 ("n" !== name[1] && "N" !== name[1])
703 )
704 if (((name = aliases.get(name) || name), isAttributeNameSafe(name))) {
705 switch (typeof value) {
706 case "function":
707 case "symbol":
708 return;
709 case "boolean":
710 var prefix$8 = name.toLowerCase().slice(0, 5);
711 if ("data-" !== prefix$8 && "aria-" !== prefix$8) return;
712 }
713 target.push(" ", name, '="', escapeTextForBrowser(value), '"');
714 }
715 }
716}
717function pushInnerHTML(target, innerHTML, children) {
718 if (null != innerHTML) {
719 if (null != children) throw Error(formatProdErrorMessage(60));
720 if ("object" !== typeof innerHTML || !("__html" in innerHTML))
721 throw Error(formatProdErrorMessage(61));
722 innerHTML = innerHTML.__html;
723 null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML);
724 }
725}
726function flattenOptionChildren(children) {
727 var content = "";
728 React.Children.forEach(children, function (child) {
729 null != child && (content += child);
730 });
731 return content;
732}
733function injectFormReplayingRuntime(resumableState, renderState) {
734 if (0 === (resumableState.instructions & 16)) {
735 resumableState.instructions |= 16;
736 var preamble = renderState.preamble,
737 bootstrapChunks = renderState.bootstrapChunks;
738 (preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
739 ? (bootstrapChunks.push(renderState.startInlineScript),
740 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
741 bootstrapChunks.push(
742 ">",
743 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
744 "\x3c/script>"
745 ))
746 : bootstrapChunks.unshift(
747 renderState.startInlineScript,
748 ">",
749 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
750 "\x3c/script>"
751 );
752 }
753}
754function pushLinkImpl(target, props) {
755 target.push(startChunkForTag("link"));
756 for (var propKey in props)
757 if (hasOwnProperty.call(props, propKey)) {
758 var propValue = props[propKey];
759 if (null != propValue)
760 switch (propKey) {
761 case "children":
762 case "dangerouslySetInnerHTML":
763 throw Error(formatProdErrorMessage(399, "link"));
764 default:
765 pushAttribute(target, propKey, propValue);
766 }
767 }
768 target.push("/>");
769 return null;
770}
771var styleRegex = /(<\/|<)(s)(tyle)/gi;
772function styleReplacer(match, prefix, s, suffix) {
773 return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
774}
775function pushSelfClosing(target, props, tag) {
776 target.push(startChunkForTag(tag));
777 for (var propKey in props)
778 if (hasOwnProperty.call(props, propKey)) {
779 var propValue = props[propKey];
780 if (null != propValue)
781 switch (propKey) {
782 case "children":
783 case "dangerouslySetInnerHTML":
784 throw Error(formatProdErrorMessage(399, tag));
785 default:
786 pushAttribute(target, propKey, propValue);
787 }
788 }
789 target.push("/>");
790 return null;
791}
792function pushTitleImpl(target, props) {
793 target.push(startChunkForTag("title"));
794 var children = null,
795 innerHTML = null,
796 propKey;
797 for (propKey in props)
798 if (hasOwnProperty.call(props, propKey)) {
799 var propValue = props[propKey];
800 if (null != propValue)
801 switch (propKey) {
802 case "children":
803 children = propValue;
804 break;
805 case "dangerouslySetInnerHTML":
806 innerHTML = propValue;
807 break;
808 default:
809 pushAttribute(target, propKey, propValue);
810 }
811 }
812 target.push(">");
813 props = Array.isArray(children)
814 ? 2 > children.length
815 ? children[0]
816 : null
817 : children;
818 "function" !== typeof props &&
819 "symbol" !== typeof props &&
820 null !== props &&
821 void 0 !== props &&
822 target.push(escapeTextForBrowser("" + props));
823 pushInnerHTML(target, innerHTML, children);
824 target.push(endChunkForTag("title"));
825 return null;
826}
827function pushScriptImpl(target, props) {
828 target.push(startChunkForTag("script"));
829 var children = null,
830 innerHTML = null,
831 propKey;
832 for (propKey in props)
833 if (hasOwnProperty.call(props, propKey)) {
834 var propValue = props[propKey];
835 if (null != propValue)
836 switch (propKey) {
837 case "children":
838 children = propValue;
839 break;
840 case "dangerouslySetInnerHTML":
841 innerHTML = propValue;
842 break;
843 default:
844 pushAttribute(target, propKey, propValue);
845 }
846 }
847 target.push(">");
848 pushInnerHTML(target, innerHTML, children);
849 "string" === typeof children &&
850 target.push(("" + children).replace(scriptRegex, scriptReplacer));
851 target.push(endChunkForTag("script"));
852 return null;
853}
854function pushStartSingletonElement(target, props, tag) {
855 target.push(startChunkForTag(tag));
856 var innerHTML = (tag = null),
857 propKey;
858 for (propKey in props)
859 if (hasOwnProperty.call(props, propKey)) {
860 var propValue = props[propKey];
861 if (null != propValue)
862 switch (propKey) {
863 case "children":
864 tag = propValue;
865 break;
866 case "dangerouslySetInnerHTML":
867 innerHTML = propValue;
868 break;
869 default:
870 pushAttribute(target, propKey, propValue);
871 }
872 }
873 target.push(">");
874 pushInnerHTML(target, innerHTML, tag);
875 return tag;
876}
877function pushStartGenericElement(target, props, tag) {
878 target.push(startChunkForTag(tag));
879 var innerHTML = (tag = null),
880 propKey;
881 for (propKey in props)
882 if (hasOwnProperty.call(props, propKey)) {
883 var propValue = props[propKey];
884 if (null != propValue)
885 switch (propKey) {
886 case "children":
887 tag = propValue;
888 break;
889 case "dangerouslySetInnerHTML":
890 innerHTML = propValue;
891 break;
892 default:
893 pushAttribute(target, propKey, propValue);
894 }
895 }
896 target.push(">");
897 pushInnerHTML(target, innerHTML, tag);
898 return "string" === typeof tag
899 ? (target.push(escapeTextForBrowser(tag)), null)
900 : tag;
901}
902var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
903 validatedTagCache = new Map();
904function startChunkForTag(tag) {
905 var tagStartChunk = validatedTagCache.get(tag);
906 if (void 0 === tagStartChunk) {
907 if (!VALID_TAG_REGEX.test(tag))
908 throw Error(formatProdErrorMessage(65, tag));
909 tagStartChunk = "<" + tag;
910 validatedTagCache.set(tag, tagStartChunk);
911 }
912 return tagStartChunk;
913}
914function pushStartInstance(
915 target$jscomp$0,
916 type,
917 props,
918 resumableState,
919 renderState,
920 preambleState,
921 hoistableState,
922 formatContext,
923 textEmbedded
924) {
925 switch (type) {
926 case "div":
927 case "span":
928 case "svg":
929 case "path":
930 break;
931 case "a":
932 target$jscomp$0.push(startChunkForTag("a"));
933 var children = null,
934 innerHTML = null,
935 propKey;
936 for (propKey in props)
937 if (hasOwnProperty.call(props, propKey)) {
938 var propValue = props[propKey];
939 if (null != propValue)
940 switch (propKey) {
941 case "children":
942 children = propValue;
943 break;
944 case "dangerouslySetInnerHTML":
945 innerHTML = propValue;
946 break;
947 case "href":
948 "" === propValue
949 ? pushStringAttribute(target$jscomp$0, "href", "")
950 : pushAttribute(target$jscomp$0, propKey, propValue);
951 break;
952 default:
953 pushAttribute(target$jscomp$0, propKey, propValue);
954 }
955 }
956 target$jscomp$0.push(">");
957 pushInnerHTML(target$jscomp$0, innerHTML, children);
958 if ("string" === typeof children) {
959 target$jscomp$0.push(escapeTextForBrowser(children));
960 var JSCompiler_inline_result = null;
961 } else JSCompiler_inline_result = children;
962 return JSCompiler_inline_result;
963 case "g":
964 case "p":
965 case "li":
966 break;
967 case "select":
968 target$jscomp$0.push(startChunkForTag("select"));
969 var children$jscomp$0 = null,
970 innerHTML$jscomp$0 = null,
971 propKey$jscomp$0;
972 for (propKey$jscomp$0 in props)
973 if (hasOwnProperty.call(props, propKey$jscomp$0)) {
974 var propValue$jscomp$0 = props[propKey$jscomp$0];
975 if (null != propValue$jscomp$0)
976 switch (propKey$jscomp$0) {
977 case "children":
978 children$jscomp$0 = propValue$jscomp$0;
979 break;
980 case "dangerouslySetInnerHTML":
981 innerHTML$jscomp$0 = propValue$jscomp$0;
982 break;
983 case "defaultValue":
984 case "value":
985 break;
986 default:
987 pushAttribute(
988 target$jscomp$0,
989 propKey$jscomp$0,
990 propValue$jscomp$0
991 );
992 }
993 }
994 target$jscomp$0.push(">");
995 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
996 return children$jscomp$0;
997 case "option":
998 var selectedValue = formatContext.selectedValue;
999 target$jscomp$0.push(startChunkForTag("option"));
1000 var children$jscomp$1 = null,
1001 value = null,
1002 selected = null,
1003 innerHTML$jscomp$1 = null,
1004 propKey$jscomp$1;
1005 for (propKey$jscomp$1 in props)
1006 if (hasOwnProperty.call(props, propKey$jscomp$1)) {
1007 var propValue$jscomp$1 = props[propKey$jscomp$1];
1008 if (null != propValue$jscomp$1)
1009 switch (propKey$jscomp$1) {
1010 case "children":
1011 children$jscomp$1 = propValue$jscomp$1;
1012 break;
1013 case "selected":
1014 selected = propValue$jscomp$1;
1015 break;
1016 case "dangerouslySetInnerHTML":
1017 innerHTML$jscomp$1 = propValue$jscomp$1;
1018 break;
1019 case "value":
1020 value = propValue$jscomp$1;
1021 default:
1022 pushAttribute(
1023 target$jscomp$0,
1024 propKey$jscomp$1,
1025 propValue$jscomp$1
1026 );
1027 }
1028 }
1029 if (null != selectedValue) {
1030 var stringValue =
1031 null !== value
1032 ? "" + value
1033 : flattenOptionChildren(children$jscomp$1);
1034 if (isArrayImpl(selectedValue))
1035 for (var i = 0; i < selectedValue.length; i++) {
1036 if ("" + selectedValue[i] === stringValue) {
1037 target$jscomp$0.push(' selected=""');
1038 break;
1039 }
1040 }
1041 else
1042 "" + selectedValue === stringValue &&
1043 target$jscomp$0.push(' selected=""');
1044 } else selected && target$jscomp$0.push(' selected=""');
1045 target$jscomp$0.push(">");
1046 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
1047 return children$jscomp$1;
1048 case "textarea":
1049 target$jscomp$0.push(startChunkForTag("textarea"));
1050 var value$jscomp$0 = null,
1051 defaultValue = null,
1052 children$jscomp$2 = null,
1053 propKey$jscomp$2;
1054 for (propKey$jscomp$2 in props)
1055 if (hasOwnProperty.call(props, propKey$jscomp$2)) {
1056 var propValue$jscomp$2 = props[propKey$jscomp$2];
1057 if (null != propValue$jscomp$2)
1058 switch (propKey$jscomp$2) {
1059 case "children":
1060 children$jscomp$2 = propValue$jscomp$2;
1061 break;
1062 case "value":
1063 value$jscomp$0 = propValue$jscomp$2;
1064 break;
1065 case "defaultValue":
1066 defaultValue = propValue$jscomp$2;
1067 break;
1068 case "dangerouslySetInnerHTML":
1069 throw Error(formatProdErrorMessage(91));
1070 default:
1071 pushAttribute(
1072 target$jscomp$0,
1073 propKey$jscomp$2,
1074 propValue$jscomp$2
1075 );
1076 }
1077 }
1078 null === value$jscomp$0 &&
1079 null !== defaultValue &&
1080 (value$jscomp$0 = defaultValue);
1081 target$jscomp$0.push(">");
1082 if (null != children$jscomp$2) {
1083 if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
1084 if (isArrayImpl(children$jscomp$2)) {
1085 if (1 < children$jscomp$2.length)
1086 throw Error(formatProdErrorMessage(93));
1087 value$jscomp$0 = "" + children$jscomp$2[0];
1088 }
1089 value$jscomp$0 = "" + children$jscomp$2;
1090 }
1091 "string" === typeof value$jscomp$0 &&
1092 "\n" === value$jscomp$0[0] &&
1093 target$jscomp$0.push("\n");
1094 null !== value$jscomp$0 &&
1095 target$jscomp$0.push(escapeTextForBrowser("" + value$jscomp$0));
1096 return null;
1097 case "input":
1098 target$jscomp$0.push(startChunkForTag("input"));
1099 var name = null,
1100 formAction = null,
1101 formEncType = null,
1102 formMethod = null,
1103 formTarget = null,
1104 value$jscomp$1 = null,
1105 defaultValue$jscomp$0 = null,
1106 checked = null,
1107 defaultChecked = null,
1108 propKey$jscomp$3;
1109 for (propKey$jscomp$3 in props)
1110 if (hasOwnProperty.call(props, propKey$jscomp$3)) {
1111 var propValue$jscomp$3 = props[propKey$jscomp$3];
1112 if (null != propValue$jscomp$3)
1113 switch (propKey$jscomp$3) {
1114 case "children":
1115 case "dangerouslySetInnerHTML":
1116 throw Error(formatProdErrorMessage(399, "input"));
1117 case "name":
1118 name = propValue$jscomp$3;
1119 break;
1120 case "formAction":
1121 formAction = propValue$jscomp$3;
1122 break;
1123 case "formEncType":
1124 formEncType = propValue$jscomp$3;
1125 break;
1126 case "formMethod":
1127 formMethod = propValue$jscomp$3;
1128 break;
1129 case "formTarget":
1130 formTarget = propValue$jscomp$3;
1131 break;
1132 case "defaultChecked":
1133 defaultChecked = propValue$jscomp$3;
1134 break;
1135 case "defaultValue":
1136 defaultValue$jscomp$0 = propValue$jscomp$3;
1137 break;
1138 case "checked":
1139 checked = propValue$jscomp$3;
1140 break;
1141 case "value":
1142 value$jscomp$1 = propValue$jscomp$3;
1143 break;
1144 default:
1145 pushAttribute(
1146 target$jscomp$0,
1147 propKey$jscomp$3,
1148 propValue$jscomp$3
1149 );
1150 }
1151 }
1152 var formData = pushFormActionAttribute(
1153 target$jscomp$0,
1154 resumableState,
1155 renderState,
1156 formAction,
1157 formEncType,
1158 formMethod,
1159 formTarget,
1160 name
1161 );
1162 null !== checked
1163 ? pushBooleanAttribute(target$jscomp$0, "checked", checked)
1164 : null !== defaultChecked &&
1165 pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
1166 null !== value$jscomp$1
1167 ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1168 : null !== defaultValue$jscomp$0 &&
1169 pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1170 target$jscomp$0.push("/>");
1171 null != formData &&
1172 formData.forEach(pushAdditionalFormField, target$jscomp$0);
1173 return null;
1174 case "button":
1175 target$jscomp$0.push(startChunkForTag("button"));
1176 var children$jscomp$3 = null,
1177 innerHTML$jscomp$2 = null,
1178 name$jscomp$0 = null,
1179 formAction$jscomp$0 = null,
1180 formEncType$jscomp$0 = null,
1181 formMethod$jscomp$0 = null,
1182 formTarget$jscomp$0 = null,
1183 propKey$jscomp$4;
1184 for (propKey$jscomp$4 in props)
1185 if (hasOwnProperty.call(props, propKey$jscomp$4)) {
1186 var propValue$jscomp$4 = props[propKey$jscomp$4];
1187 if (null != propValue$jscomp$4)
1188 switch (propKey$jscomp$4) {
1189 case "children":
1190 children$jscomp$3 = propValue$jscomp$4;
1191 break;
1192 case "dangerouslySetInnerHTML":
1193 innerHTML$jscomp$2 = propValue$jscomp$4;
1194 break;
1195 case "name":
1196 name$jscomp$0 = propValue$jscomp$4;
1197 break;
1198 case "formAction":
1199 formAction$jscomp$0 = propValue$jscomp$4;
1200 break;
1201 case "formEncType":
1202 formEncType$jscomp$0 = propValue$jscomp$4;
1203 break;
1204 case "formMethod":
1205 formMethod$jscomp$0 = propValue$jscomp$4;
1206 break;
1207 case "formTarget":
1208 formTarget$jscomp$0 = propValue$jscomp$4;
1209 break;
1210 default:
1211 pushAttribute(
1212 target$jscomp$0,
1213 propKey$jscomp$4,
1214 propValue$jscomp$4
1215 );
1216 }
1217 }
1218 var formData$jscomp$0 = pushFormActionAttribute(
1219 target$jscomp$0,
1220 resumableState,
1221 renderState,
1222 formAction$jscomp$0,
1223 formEncType$jscomp$0,
1224 formMethod$jscomp$0,
1225 formTarget$jscomp$0,
1226 name$jscomp$0
1227 );
1228 target$jscomp$0.push(">");
1229 null != formData$jscomp$0 &&
1230 formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
1231 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
1232 if ("string" === typeof children$jscomp$3) {
1233 target$jscomp$0.push(escapeTextForBrowser(children$jscomp$3));
1234 var JSCompiler_inline_result$jscomp$0 = null;
1235 } else JSCompiler_inline_result$jscomp$0 = children$jscomp$3;
1236 return JSCompiler_inline_result$jscomp$0;
1237 case "form":
1238 target$jscomp$0.push(startChunkForTag("form"));
1239 var children$jscomp$4 = null,
1240 innerHTML$jscomp$3 = null,
1241 formAction$jscomp$1 = null,
1242 formEncType$jscomp$1 = null,
1243 formMethod$jscomp$1 = null,
1244 formTarget$jscomp$1 = null,
1245 propKey$jscomp$5;
1246 for (propKey$jscomp$5 in props)
1247 if (hasOwnProperty.call(props, propKey$jscomp$5)) {
1248 var propValue$jscomp$5 = props[propKey$jscomp$5];
1249 if (null != propValue$jscomp$5)
1250 switch (propKey$jscomp$5) {
1251 case "children":
1252 children$jscomp$4 = propValue$jscomp$5;
1253 break;
1254 case "dangerouslySetInnerHTML":
1255 innerHTML$jscomp$3 = propValue$jscomp$5;
1256 break;
1257 case "action":
1258 formAction$jscomp$1 = propValue$jscomp$5;
1259 break;
1260 case "encType":
1261 formEncType$jscomp$1 = propValue$jscomp$5;
1262 break;
1263 case "method":
1264 formMethod$jscomp$1 = propValue$jscomp$5;
1265 break;
1266 case "target":
1267 formTarget$jscomp$1 = propValue$jscomp$5;
1268 break;
1269 default:
1270 pushAttribute(
1271 target$jscomp$0,
1272 propKey$jscomp$5,
1273 propValue$jscomp$5
1274 );
1275 }
1276 }
1277 var formData$jscomp$1 = null,
1278 formActionName = null;
1279 if ("function" === typeof formAction$jscomp$1) {
1280 var customFields = getCustomFormFields(
1281 resumableState,
1282 formAction$jscomp$1
1283 );
1284 null !== customFields
1285 ? ((formAction$jscomp$1 = customFields.action || ""),
1286 (formEncType$jscomp$1 = customFields.encType),
1287 (formMethod$jscomp$1 = customFields.method),
1288 (formTarget$jscomp$1 = customFields.target),
1289 (formData$jscomp$1 = customFields.data),
1290 (formActionName = customFields.name))
1291 : (target$jscomp$0.push(
1292 " ",
1293 "action",
1294 '="',
1295 actionJavaScriptURL,
1296 '"'
1297 ),
1298 (formTarget$jscomp$1 =
1299 formMethod$jscomp$1 =
1300 formEncType$jscomp$1 =
1301 formAction$jscomp$1 =
1302 null),
1303 injectFormReplayingRuntime(resumableState, renderState));
1304 }
1305 null != formAction$jscomp$1 &&
1306 pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
1307 null != formEncType$jscomp$1 &&
1308 pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
1309 null != formMethod$jscomp$1 &&
1310 pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1311 null != formTarget$jscomp$1 &&
1312 pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1313 target$jscomp$0.push(">");
1314 null !== formActionName &&
1315 (target$jscomp$0.push('<input type="hidden"'),
1316 pushStringAttribute(target$jscomp$0, "name", formActionName),
1317 target$jscomp$0.push("/>"),
1318 null != formData$jscomp$1 &&
1319 formData$jscomp$1.forEach(pushAdditionalFormField, target$jscomp$0));
1320 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
1321 if ("string" === typeof children$jscomp$4) {
1322 target$jscomp$0.push(escapeTextForBrowser(children$jscomp$4));
1323 var JSCompiler_inline_result$jscomp$1 = null;
1324 } else JSCompiler_inline_result$jscomp$1 = children$jscomp$4;
1325 return JSCompiler_inline_result$jscomp$1;
1326 case "menuitem":
1327 target$jscomp$0.push(startChunkForTag("menuitem"));
1328 for (var propKey$jscomp$6 in props)
1329 if (hasOwnProperty.call(props, propKey$jscomp$6)) {
1330 var propValue$jscomp$6 = props[propKey$jscomp$6];
1331 if (null != propValue$jscomp$6)
1332 switch (propKey$jscomp$6) {
1333 case "children":
1334 case "dangerouslySetInnerHTML":
1335 throw Error(formatProdErrorMessage(400));
1336 default:
1337 pushAttribute(
1338 target$jscomp$0,
1339 propKey$jscomp$6,
1340 propValue$jscomp$6
1341 );
1342 }
1343 }
1344 target$jscomp$0.push(">");
1345 return null;
1346 case "object":
1347 target$jscomp$0.push(startChunkForTag("object"));
1348 var children$jscomp$5 = null,
1349 innerHTML$jscomp$4 = null,
1350 propKey$jscomp$7;
1351 for (propKey$jscomp$7 in props)
1352 if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1353 var propValue$jscomp$7 = props[propKey$jscomp$7];
1354 if (null != propValue$jscomp$7)
1355 switch (propKey$jscomp$7) {
1356 case "children":
1357 children$jscomp$5 = propValue$jscomp$7;
1358 break;
1359 case "dangerouslySetInnerHTML":
1360 innerHTML$jscomp$4 = propValue$jscomp$7;
1361 break;
1362 case "data":
1363 var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1364 if ("" === sanitizedValue) break;
1365 target$jscomp$0.push(
1366 " ",
1367 "data",
1368 '="',
1369 escapeTextForBrowser(sanitizedValue),
1370 '"'
1371 );
1372 break;
1373 default:
1374 pushAttribute(
1375 target$jscomp$0,
1376 propKey$jscomp$7,
1377 propValue$jscomp$7
1378 );
1379 }
1380 }
1381 target$jscomp$0.push(">");
1382 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1383 if ("string" === typeof children$jscomp$5) {
1384 target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
1385 var JSCompiler_inline_result$jscomp$2 = null;
1386 } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1387 return JSCompiler_inline_result$jscomp$2;
1388 case "title":
1389 var noscriptTagInScope = formatContext.tagScope & 1,
1390 isFallback = formatContext.tagScope & 4;
1391 if (
1392 4 === formatContext.insertionMode ||
1393 noscriptTagInScope ||
1394 null != props.itemProp
1395 )
1396 var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1397 target$jscomp$0,
1398 props
1399 );
1400 else
1401 isFallback
1402 ? (JSCompiler_inline_result$jscomp$3 = null)
1403 : (pushTitleImpl(renderState.hoistableChunks, props),
1404 (JSCompiler_inline_result$jscomp$3 = void 0));
1405 return JSCompiler_inline_result$jscomp$3;
1406 case "link":
1407 var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
1408 isFallback$jscomp$0 = formatContext.tagScope & 4,
1409 rel = props.rel,
1410 href = props.href,
1411 precedence = props.precedence;
1412 if (
1413 4 === formatContext.insertionMode ||
1414 noscriptTagInScope$jscomp$0 ||
1415 null != props.itemProp ||
1416 "string" !== typeof rel ||
1417 "string" !== typeof href ||
1418 "" === href
1419 ) {
1420 pushLinkImpl(target$jscomp$0, props);
1421 var JSCompiler_inline_result$jscomp$4 = null;
1422 } else if ("stylesheet" === props.rel)
1423 if (
1424 "string" !== typeof precedence ||
1425 null != props.disabled ||
1426 props.onLoad ||
1427 props.onError
1428 )
1429 JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1430 target$jscomp$0,
1431 props
1432 );
1433 else {
1434 var styleQueue = renderState.styles.get(precedence),
1435 resourceState = resumableState.styleResources.hasOwnProperty(href)
1436 ? resumableState.styleResources[href]
1437 : void 0;
1438 if (null !== resourceState) {
1439 resumableState.styleResources[href] = null;
1440 styleQueue ||
1441 ((styleQueue = {
1442 precedence: escapeTextForBrowser(precedence),
1443 rules: [],
1444 hrefs: [],
1445 sheets: new Map()
1446 }),
1447 renderState.styles.set(precedence, styleQueue));
1448 var resource = {
1449 state: 0,
1450 props: assign({}, props, {
1451 "data-precedence": props.precedence,
1452 precedence: null
1453 })
1454 };
1455 if (resourceState) {
1456 2 === resourceState.length &&
1457 adoptPreloadCredentials(resource.props, resourceState);
1458 var preloadResource = renderState.preloads.stylesheets.get(href);
1459 preloadResource && 0 < preloadResource.length
1460 ? (preloadResource.length = 0)
1461 : (resource.state = 1);
1462 }
1463 styleQueue.sheets.set(href, resource);
1464 hoistableState && hoistableState.stylesheets.add(resource);
1465 } else if (styleQueue) {
1466 var resource$9 = styleQueue.sheets.get(href);
1467 resource$9 &&
1468 hoistableState &&
1469 hoistableState.stylesheets.add(resource$9);
1470 }
1471 textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1472 JSCompiler_inline_result$jscomp$4 = null;
1473 }
1474 else
1475 props.onLoad || props.onError
1476 ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1477 target$jscomp$0,
1478 props
1479 ))
1480 : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1481 (JSCompiler_inline_result$jscomp$4 = isFallback$jscomp$0
1482 ? null
1483 : pushLinkImpl(renderState.hoistableChunks, props)));
1484 return JSCompiler_inline_result$jscomp$4;
1485 case "script":
1486 var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
1487 asyncProp = props.async;
1488 if (
1489 "string" !== typeof props.src ||
1490 !props.src ||
1491 !asyncProp ||
1492 "function" === typeof asyncProp ||
1493 "symbol" === typeof asyncProp ||
1494 props.onLoad ||
1495 props.onError ||
1496 4 === formatContext.insertionMode ||
1497 noscriptTagInScope$jscomp$1 ||
1498 null != props.itemProp
1499 )
1500 var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1501 target$jscomp$0,
1502 props
1503 );
1504 else {
1505 var key = props.src;
1506 if ("module" === props.type) {
1507 var resources = resumableState.moduleScriptResources;
1508 var preloads = renderState.preloads.moduleScripts;
1509 } else
1510 (resources = resumableState.scriptResources),
1511 (preloads = renderState.preloads.scripts);
1512 var resourceState$jscomp$0 = resources.hasOwnProperty(key)
1513 ? resources[key]
1514 : void 0;
1515 if (null !== resourceState$jscomp$0) {
1516 resources[key] = null;
1517 var scriptProps = props;
1518 if (resourceState$jscomp$0) {
1519 2 === resourceState$jscomp$0.length &&
1520 ((scriptProps = assign({}, props)),
1521 adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
1522 var preloadResource$jscomp$0 = preloads.get(key);
1523 preloadResource$jscomp$0 && (preloadResource$jscomp$0.length = 0);
1524 }
1525 var resource$jscomp$0 = [];
1526 renderState.scripts.add(resource$jscomp$0);
1527 pushScriptImpl(resource$jscomp$0, scriptProps);
1528 }
1529 textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1530 JSCompiler_inline_result$jscomp$5 = null;
1531 }
1532 return JSCompiler_inline_result$jscomp$5;
1533 case "style":
1534 var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1,
1535 precedence$jscomp$0 = props.precedence,
1536 href$jscomp$0 = props.href,
1537 nonce = props.nonce;
1538 if (
1539 4 === formatContext.insertionMode ||
1540 noscriptTagInScope$jscomp$2 ||
1541 null != props.itemProp ||
1542 "string" !== typeof precedence$jscomp$0 ||
1543 "string" !== typeof href$jscomp$0 ||
1544 "" === href$jscomp$0
1545 ) {
1546 target$jscomp$0.push(startChunkForTag("style"));
1547 var children$jscomp$6 = null,
1548 innerHTML$jscomp$5 = null,
1549 propKey$jscomp$8;
1550 for (propKey$jscomp$8 in props)
1551 if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1552 var propValue$jscomp$8 = props[propKey$jscomp$8];
1553 if (null != propValue$jscomp$8)
1554 switch (propKey$jscomp$8) {
1555 case "children":
1556 children$jscomp$6 = propValue$jscomp$8;
1557 break;
1558 case "dangerouslySetInnerHTML":
1559 innerHTML$jscomp$5 = propValue$jscomp$8;
1560 break;
1561 default:
1562 pushAttribute(
1563 target$jscomp$0,
1564 propKey$jscomp$8,
1565 propValue$jscomp$8
1566 );
1567 }
1568 }
1569 target$jscomp$0.push(">");
1570 var child = Array.isArray(children$jscomp$6)
1571 ? 2 > children$jscomp$6.length
1572 ? children$jscomp$6[0]
1573 : null
1574 : children$jscomp$6;
1575 "function" !== typeof child &&
1576 "symbol" !== typeof child &&
1577 null !== child &&
1578 void 0 !== child &&
1579 target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
1580 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1581 target$jscomp$0.push(endChunkForTag("style"));
1582 var JSCompiler_inline_result$jscomp$6 = null;
1583 } else {
1584 var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1585 if (
1586 null !==
1587 (resumableState.styleResources.hasOwnProperty(href$jscomp$0)
1588 ? resumableState.styleResources[href$jscomp$0]
1589 : void 0)
1590 ) {
1591 resumableState.styleResources[href$jscomp$0] = null;
1592 styleQueue$jscomp$0 ||
1593 ((styleQueue$jscomp$0 = {
1594 precedence: escapeTextForBrowser(precedence$jscomp$0),
1595 rules: [],
1596 hrefs: [],
1597 sheets: new Map()
1598 }),
1599 renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1600 var nonceStyle = renderState.nonce.style;
1601 if (!nonceStyle || nonceStyle === nonce) {
1602 styleQueue$jscomp$0.hrefs.push(escapeTextForBrowser(href$jscomp$0));
1603 var target = styleQueue$jscomp$0.rules,
1604 children$jscomp$7 = null,
1605 innerHTML$jscomp$6 = null,
1606 propKey$jscomp$9;
1607 for (propKey$jscomp$9 in props)
1608 if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1609 var propValue$jscomp$9 = props[propKey$jscomp$9];
1610 if (null != propValue$jscomp$9)
1611 switch (propKey$jscomp$9) {
1612 case "children":
1613 children$jscomp$7 = propValue$jscomp$9;
1614 break;
1615 case "dangerouslySetInnerHTML":
1616 innerHTML$jscomp$6 = propValue$jscomp$9;
1617 }
1618 }
1619 var child$jscomp$0 = Array.isArray(children$jscomp$7)
1620 ? 2 > children$jscomp$7.length
1621 ? children$jscomp$7[0]
1622 : null
1623 : children$jscomp$7;
1624 "function" !== typeof child$jscomp$0 &&
1625 "symbol" !== typeof child$jscomp$0 &&
1626 null !== child$jscomp$0 &&
1627 void 0 !== child$jscomp$0 &&
1628 target.push(
1629 ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1630 );
1631 pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1632 }
1633 }
1634 styleQueue$jscomp$0 &&
1635 hoistableState &&
1636 hoistableState.styles.add(styleQueue$jscomp$0);
1637 textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1638 JSCompiler_inline_result$jscomp$6 = void 0;
1639 }
1640 return JSCompiler_inline_result$jscomp$6;
1641 case "meta":
1642 var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
1643 isFallback$jscomp$1 = formatContext.tagScope & 4;
1644 if (
1645 4 === formatContext.insertionMode ||
1646 noscriptTagInScope$jscomp$3 ||
1647 null != props.itemProp
1648 )
1649 var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1650 target$jscomp$0,
1651 props,
1652 "meta"
1653 );
1654 else
1655 textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1656 (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
1657 ? null
1658 : "string" === typeof props.charSet
1659 ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1660 : "viewport" === props.name
1661 ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1662 : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1663 return JSCompiler_inline_result$jscomp$7;
1664 case "listing":
1665 case "pre":
1666 target$jscomp$0.push(startChunkForTag(type));
1667 var children$jscomp$8 = null,
1668 innerHTML$jscomp$7 = null,
1669 propKey$jscomp$10;
1670 for (propKey$jscomp$10 in props)
1671 if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1672 var propValue$jscomp$10 = props[propKey$jscomp$10];
1673 if (null != propValue$jscomp$10)
1674 switch (propKey$jscomp$10) {
1675 case "children":
1676 children$jscomp$8 = propValue$jscomp$10;
1677 break;
1678 case "dangerouslySetInnerHTML":
1679 innerHTML$jscomp$7 = propValue$jscomp$10;
1680 break;
1681 default:
1682 pushAttribute(
1683 target$jscomp$0,
1684 propKey$jscomp$10,
1685 propValue$jscomp$10
1686 );
1687 }
1688 }
1689 target$jscomp$0.push(">");
1690 if (null != innerHTML$jscomp$7) {
1691 if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
1692 if (
1693 "object" !== typeof innerHTML$jscomp$7 ||
1694 !("__html" in innerHTML$jscomp$7)
1695 )
1696 throw Error(formatProdErrorMessage(61));
1697 var html = innerHTML$jscomp$7.__html;
1698 null !== html &&
1699 void 0 !== html &&
1700 ("string" === typeof html && 0 < html.length && "\n" === html[0]
1701 ? target$jscomp$0.push("\n", html)
1702 : target$jscomp$0.push("" + html));
1703 }
1704 "string" === typeof children$jscomp$8 &&
1705 "\n" === children$jscomp$8[0] &&
1706 target$jscomp$0.push("\n");
1707 return children$jscomp$8;
1708 case "img":
1709 var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
1710 src = props.src,
1711 srcSet = props.srcSet;
1712 if (
1713 !(
1714 "lazy" === props.loading ||
1715 (!src && !srcSet) ||
1716 ("string" !== typeof src && null != src) ||
1717 ("string" !== typeof srcSet && null != srcSet) ||
1718 "low" === props.fetchPriority ||
1719 pictureOrNoScriptTagInScope
1720 ) &&
1721 ("string" !== typeof src ||
1722 ":" !== src[4] ||
1723 ("d" !== src[0] && "D" !== src[0]) ||
1724 ("a" !== src[1] && "A" !== src[1]) ||
1725 ("t" !== src[2] && "T" !== src[2]) ||
1726 ("a" !== src[3] && "A" !== src[3])) &&
1727 ("string" !== typeof srcSet ||
1728 ":" !== srcSet[4] ||
1729 ("d" !== srcSet[0] && "D" !== srcSet[0]) ||
1730 ("a" !== srcSet[1] && "A" !== srcSet[1]) ||
1731 ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
1732 ("a" !== srcSet[3] && "A" !== srcSet[3]))
1733 ) {
1734 null !== hoistableState &&
1735 formatContext.tagScope & 64 &&
1736 (hoistableState.suspenseyImages = !0);
1737 var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
1738 key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
1739 promotablePreloads = renderState.preloads.images,
1740 resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
1741 if (resource$jscomp$1) {
1742 if (
1743 "high" === props.fetchPriority ||
1744 10 > renderState.highImagePreloads.size
1745 )
1746 promotablePreloads.delete(key$jscomp$0),
1747 renderState.highImagePreloads.add(resource$jscomp$1);
1748 } else if (
1749 !resumableState.imageResources.hasOwnProperty(key$jscomp$0)
1750 ) {
1751 resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1752 var input = props.crossOrigin;
1753 var JSCompiler_inline_result$jscomp$8 =
1754 "string" === typeof input
1755 ? "use-credentials" === input
1756 ? input
1757 : ""
1758 : void 0;
1759 var headers = renderState.headers,
1760 header;
1761 headers &&
1762 0 < headers.remainingCapacity &&
1763 "string" !== typeof props.srcSet &&
1764 ("high" === props.fetchPriority ||
1765 500 > headers.highImagePreloads.length) &&
1766 ((header = getPreloadAsHeader(src, "image", {
1767 imageSrcSet: props.srcSet,
1768 imageSizes: props.sizes,
1769 crossOrigin: JSCompiler_inline_result$jscomp$8,
1770 integrity: props.integrity,
1771 nonce: props.nonce,
1772 type: props.type,
1773 fetchPriority: props.fetchPriority,
1774 referrerPolicy: props.refererPolicy
1775 })),
1776 0 <= (headers.remainingCapacity -= header.length + 2))
1777 ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
1778 headers.highImagePreloads && (headers.highImagePreloads += ", "),
1779 (headers.highImagePreloads += header))
1780 : ((resource$jscomp$1 = []),
1781 pushLinkImpl(resource$jscomp$1, {
1782 rel: "preload",
1783 as: "image",
1784 href: srcSet ? void 0 : src,
1785 imageSrcSet: srcSet,
1786 imageSizes: sizes,
1787 crossOrigin: JSCompiler_inline_result$jscomp$8,
1788 integrity: props.integrity,
1789 type: props.type,
1790 fetchPriority: props.fetchPriority,
1791 referrerPolicy: props.referrerPolicy
1792 }),
1793 "high" === props.fetchPriority ||
1794 10 > renderState.highImagePreloads.size
1795 ? renderState.highImagePreloads.add(resource$jscomp$1)
1796 : (renderState.bulkPreloads.add(resource$jscomp$1),
1797 promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
1798 }
1799 }
1800 return pushSelfClosing(target$jscomp$0, props, "img");
1801 case "base":
1802 case "area":
1803 case "br":
1804 case "col":
1805 case "embed":
1806 case "hr":
1807 case "keygen":
1808 case "param":
1809 case "source":
1810 case "track":
1811 case "wbr":
1812 return pushSelfClosing(target$jscomp$0, props, type);
1813 case "annotation-xml":
1814 case "color-profile":
1815 case "font-face":
1816 case "font-face-src":
1817 case "font-face-uri":
1818 case "font-face-format":
1819 case "font-face-name":
1820 case "missing-glyph":
1821 break;
1822 case "head":
1823 if (2 > formatContext.insertionMode) {
1824 var preamble = preambleState || renderState.preamble;
1825 if (preamble.headChunks)
1826 throw Error(formatProdErrorMessage(545, "`<head>`"));
1827 null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
1828 preamble.headChunks = [];
1829 var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1830 preamble.headChunks,
1831 props,
1832 "head"
1833 );
1834 } else
1835 JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1836 target$jscomp$0,
1837 props,
1838 "head"
1839 );
1840 return JSCompiler_inline_result$jscomp$9;
1841 case "body":
1842 if (2 > formatContext.insertionMode) {
1843 var preamble$jscomp$0 = preambleState || renderState.preamble;
1844 if (preamble$jscomp$0.bodyChunks)
1845 throw Error(formatProdErrorMessage(545, "`<body>`"));
1846 null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
1847 preamble$jscomp$0.bodyChunks = [];
1848 var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1849 preamble$jscomp$0.bodyChunks,
1850 props,
1851 "body"
1852 );
1853 } else
1854 JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1855 target$jscomp$0,
1856 props,
1857 "body"
1858 );
1859 return JSCompiler_inline_result$jscomp$10;
1860 case "html":
1861 if (0 === formatContext.insertionMode) {
1862 var preamble$jscomp$1 = preambleState || renderState.preamble;
1863 if (preamble$jscomp$1.htmlChunks)
1864 throw Error(formatProdErrorMessage(545, "`<html>`"));
1865 null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
1866 preamble$jscomp$1.htmlChunks = [""];
1867 var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1868 preamble$jscomp$1.htmlChunks,
1869 props,
1870 "html"
1871 );
1872 } else
1873 JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1874 target$jscomp$0,
1875 props,
1876 "html"
1877 );
1878 return JSCompiler_inline_result$jscomp$11;
1879 default:
1880 if (-1 !== type.indexOf("-")) {
1881 target$jscomp$0.push(startChunkForTag(type));
1882 var children$jscomp$9 = null,
1883 innerHTML$jscomp$8 = null,
1884 propKey$jscomp$11;
1885 for (propKey$jscomp$11 in props)
1886 if (hasOwnProperty.call(props, propKey$jscomp$11)) {
1887 var propValue$jscomp$11 = props[propKey$jscomp$11];
1888 if (null != propValue$jscomp$11) {
1889 var attributeName = propKey$jscomp$11;
1890 switch (propKey$jscomp$11) {
1891 case "children":
1892 children$jscomp$9 = propValue$jscomp$11;
1893 break;
1894 case "dangerouslySetInnerHTML":
1895 innerHTML$jscomp$8 = propValue$jscomp$11;
1896 break;
1897 case "style":
1898 pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
1899 break;
1900 case "suppressContentEditableWarning":
1901 case "suppressHydrationWarning":
1902 case "ref":
1903 break;
1904 case "className":
1905 attributeName = "class";
1906 default:
1907 if (
1908 isAttributeNameSafe(propKey$jscomp$11) &&
1909 "function" !== typeof propValue$jscomp$11 &&
1910 "symbol" !== typeof propValue$jscomp$11 &&
1911 !1 !== propValue$jscomp$11
1912 ) {
1913 if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
1914 else if ("object" === typeof propValue$jscomp$11) continue;
1915 target$jscomp$0.push(
1916 " ",
1917 attributeName,
1918 '="',
1919 escapeTextForBrowser(propValue$jscomp$11),
1920 '"'
1921 );
1922 }
1923 }
1924 }
1925 }
1926 target$jscomp$0.push(">");
1927 pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1928 return children$jscomp$9;
1929 }
1930 }
1931 return pushStartGenericElement(target$jscomp$0, props, type);
1932}
1933var endTagCache = new Map();
1934function endChunkForTag(tag) {
1935 var chunk = endTagCache.get(tag);
1936 void 0 === chunk && ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
1937 return chunk;
1938}
1939function hoistPreambleState(renderState, preambleState) {
1940 renderState = renderState.preamble;
1941 null === renderState.htmlChunks &&
1942 preambleState.htmlChunks &&
1943 (renderState.htmlChunks = preambleState.htmlChunks);
1944 null === renderState.headChunks &&
1945 preambleState.headChunks &&
1946 (renderState.headChunks = preambleState.headChunks);
1947 null === renderState.bodyChunks &&
1948 preambleState.bodyChunks &&
1949 (renderState.bodyChunks = preambleState.bodyChunks);
1950}
1951function writeBootstrap(destination, renderState) {
1952 renderState = renderState.bootstrapChunks;
1953 for (var i = 0; i < renderState.length - 1; i++)
1954 destination.push(renderState[i]);
1955 return i < renderState.length
1956 ? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
1957 : !0;
1958}
1959function writeStartPendingSuspenseBoundary(destination, renderState, id) {
1960 destination.push('\x3c!--$?--\x3e<template id="');
1961 if (null === id) throw Error(formatProdErrorMessage(395));
1962 destination.push(renderState.boundaryPrefix);
1963 renderState = id.toString(16);
1964 destination.push(renderState);
1965 return destination.push('"></template>');
1966}
1967function writeStartSegment(destination, renderState, formatContext, id) {
1968 switch (formatContext.insertionMode) {
1969 case 0:
1970 case 1:
1971 case 3:
1972 case 2:
1973 return (
1974 destination.push('<div hidden id="'),
1975 destination.push(renderState.segmentPrefix),
1976 (renderState = id.toString(16)),
1977 destination.push(renderState),
1978 destination.push('">')
1979 );
1980 case 4:
1981 return (
1982 destination.push('<svg aria-hidden="true" style="display:none" id="'),
1983 destination.push(renderState.segmentPrefix),
1984 (renderState = id.toString(16)),
1985 destination.push(renderState),
1986 destination.push('">')
1987 );
1988 case 5:
1989 return (
1990 destination.push('<math aria-hidden="true" style="display:none" id="'),
1991 destination.push(renderState.segmentPrefix),
1992 (renderState = id.toString(16)),
1993 destination.push(renderState),
1994 destination.push('">')
1995 );
1996 case 6:
1997 return (
1998 destination.push('<table hidden id="'),
1999 destination.push(renderState.segmentPrefix),
2000 (renderState = id.toString(16)),
2001 destination.push(renderState),
2002 destination.push('">')
2003 );
2004 case 7:
2005 return (
2006 destination.push('<table hidden><tbody id="'),
2007 destination.push(renderState.segmentPrefix),
2008 (renderState = id.toString(16)),
2009 destination.push(renderState),
2010 destination.push('">')
2011 );
2012 case 8:
2013 return (
2014 destination.push('<table hidden><tr id="'),
2015 destination.push(renderState.segmentPrefix),
2016 (renderState = id.toString(16)),
2017 destination.push(renderState),
2018 destination.push('">')
2019 );
2020 case 9:
2021 return (
2022 destination.push('<table hidden><colgroup id="'),
2023 destination.push(renderState.segmentPrefix),
2024 (renderState = id.toString(16)),
2025 destination.push(renderState),
2026 destination.push('">')
2027 );
2028 default:
2029 throw Error(formatProdErrorMessage(397));
2030 }
2031}
2032function writeEndSegment(destination, formatContext) {
2033 switch (formatContext.insertionMode) {
2034 case 0:
2035 case 1:
2036 case 3:
2037 case 2:
2038 return destination.push("</div>");
2039 case 4:
2040 return destination.push("</svg>");
2041 case 5:
2042 return destination.push("</math>");
2043 case 6:
2044 return destination.push("</table>");
2045 case 7:
2046 return destination.push("</tbody></table>");
2047 case 8:
2048 return destination.push("</tr></table>");
2049 case 9:
2050 return destination.push("</colgroup></table>");
2051 default:
2052 throw Error(formatProdErrorMessage(397));
2053 }
2054}
2055var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g;
2056function escapeJSStringsForInstructionScripts(input) {
2057 return JSON.stringify(input).replace(
2058 regexForJSStringsInInstructionScripts,
2059 function (match) {
2060 switch (match) {
2061 case "<":
2062 return "\\u003c";
2063 case "\u2028":
2064 return "\\u2028";
2065 case "\u2029":
2066 return "\\u2029";
2067 default:
2068 throw Error(
2069 "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
2070 );
2071 }
2072 }
2073 );
2074}
2075var regexForJSStringsInScripts = /[&><\u2028\u2029]/g;
2076function escapeJSObjectForInstructionScripts(input) {
2077 return JSON.stringify(input).replace(
2078 regexForJSStringsInScripts,
2079 function (match) {
2080 switch (match) {
2081 case "&":
2082 return "\\u0026";
2083 case ">":
2084 return "\\u003e";
2085 case "<":
2086 return "\\u003c";
2087 case "\u2028":
2088 return "\\u2028";
2089 case "\u2029":
2090 return "\\u2029";
2091 default:
2092 throw Error(
2093 "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
2094 );
2095 }
2096 }
2097 );
2098}
2099var currentlyRenderingBoundaryHasStylesToHoist = !1,
2100 destinationHasCapacity = !0;
2101function flushStyleTagsLateForBoundary(styleQueue) {
2102 var rules = styleQueue.rules,
2103 hrefs = styleQueue.hrefs,
2104 i = 0;
2105 if (hrefs.length) {
2106 this.push(currentlyFlushingRenderState.startInlineStyle);
2107 this.push(' media="not all" data-precedence="');
2108 this.push(styleQueue.precedence);
2109 for (this.push('" data-href="'); i < hrefs.length - 1; i++)
2110 this.push(hrefs[i]), this.push(" ");
2111 this.push(hrefs[i]);
2112 this.push('">');
2113 for (i = 0; i < rules.length; i++) this.push(rules[i]);
2114 destinationHasCapacity = this.push("</style>");
2115 currentlyRenderingBoundaryHasStylesToHoist = !0;
2116 rules.length = 0;
2117 hrefs.length = 0;
2118 }
2119}
2120function hasStylesToHoist(stylesheet) {
2121 return 2 !== stylesheet.state
2122 ? (currentlyRenderingBoundaryHasStylesToHoist = !0)
2123 : !1;
2124}
2125function writeHoistablesForBoundary(destination, hoistableState, renderState) {
2126 currentlyRenderingBoundaryHasStylesToHoist = !1;
2127 destinationHasCapacity = !0;
2128 currentlyFlushingRenderState = renderState;
2129 hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
2130 currentlyFlushingRenderState = null;
2131 hoistableState.stylesheets.forEach(hasStylesToHoist);
2132 currentlyRenderingBoundaryHasStylesToHoist &&
2133 (renderState.stylesToHoist = !0);
2134 return destinationHasCapacity;
2135}
2136function flushResource(resource) {
2137 for (var i = 0; i < resource.length; i++) this.push(resource[i]);
2138 resource.length = 0;
2139}
2140var stylesheetFlushingQueue = [];
2141function flushStyleInPreamble(stylesheet) {
2142 pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
2143 for (var i = 0; i < stylesheetFlushingQueue.length; i++)
2144 this.push(stylesheetFlushingQueue[i]);
2145 stylesheetFlushingQueue.length = 0;
2146 stylesheet.state = 2;
2147}
2148function flushStylesInPreamble(styleQueue) {
2149 var hasStylesheets = 0 < styleQueue.sheets.size;
2150 styleQueue.sheets.forEach(flushStyleInPreamble, this);
2151 styleQueue.sheets.clear();
2152 var rules = styleQueue.rules,
2153 hrefs = styleQueue.hrefs;
2154 if (!hasStylesheets || hrefs.length) {
2155 this.push(currentlyFlushingRenderState.startInlineStyle);
2156 this.push(' data-precedence="');
2157 this.push(styleQueue.precedence);
2158 styleQueue = 0;
2159 if (hrefs.length) {
2160 for (
2161 this.push('" data-href="');
2162 styleQueue < hrefs.length - 1;
2163 styleQueue++
2164 )
2165 this.push(hrefs[styleQueue]), this.push(" ");
2166 this.push(hrefs[styleQueue]);
2167 }
2168 this.push('">');
2169 for (styleQueue = 0; styleQueue < rules.length; styleQueue++)
2170 this.push(rules[styleQueue]);
2171 this.push("</style>");
2172 rules.length = 0;
2173 hrefs.length = 0;
2174 }
2175}
2176function preloadLateStyle(stylesheet) {
2177 if (0 === stylesheet.state) {
2178 stylesheet.state = 1;
2179 var props = stylesheet.props;
2180 pushLinkImpl(stylesheetFlushingQueue, {
2181 rel: "preload",
2182 as: "style",
2183 href: stylesheet.props.href,
2184 crossOrigin: props.crossOrigin,
2185 fetchPriority: props.fetchPriority,
2186 integrity: props.integrity,
2187 media: props.media,
2188 hrefLang: props.hrefLang,
2189 referrerPolicy: props.referrerPolicy
2190 });
2191 for (
2192 stylesheet = 0;
2193 stylesheet < stylesheetFlushingQueue.length;
2194 stylesheet++
2195 )
2196 this.push(stylesheetFlushingQueue[stylesheet]);
2197 stylesheetFlushingQueue.length = 0;
2198 }
2199}
2200function preloadLateStyles(styleQueue) {
2201 styleQueue.sheets.forEach(preloadLateStyle, this);
2202 styleQueue.sheets.clear();
2203}
2204function pushCompletedShellIdAttribute(target, resumableState) {
2205 0 === (resumableState.instructions & 32) &&
2206 ((resumableState.instructions |= 32),
2207 target.push(
2208 ' id="',
2209 escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
2210 '"'
2211 ));
2212}
2213function writeStyleResourceDependenciesInJS(destination, hoistableState) {
2214 destination.push("[");
2215 var nextArrayOpenBrackChunk = "[";
2216 hoistableState.stylesheets.forEach(function (resource) {
2217 if (2 !== resource.state)
2218 if (3 === resource.state)
2219 destination.push(nextArrayOpenBrackChunk),
2220 (resource = escapeJSObjectForInstructionScripts(
2221 "" + resource.props.href
2222 )),
2223 destination.push(resource),
2224 destination.push("]"),
2225 (nextArrayOpenBrackChunk = ",[");
2226 else {
2227 destination.push(nextArrayOpenBrackChunk);
2228 var precedence = resource.props["data-precedence"],
2229 props = resource.props,
2230 coercedHref = sanitizeURL("" + resource.props.href);
2231 coercedHref = escapeJSObjectForInstructionScripts(coercedHref);
2232 destination.push(coercedHref);
2233 precedence = "" + precedence;
2234 destination.push(",");
2235 precedence = escapeJSObjectForInstructionScripts(precedence);
2236 destination.push(precedence);
2237 for (var propKey in props)
2238 if (
2239 hasOwnProperty.call(props, propKey) &&
2240 ((precedence = props[propKey]), null != precedence)
2241 )
2242 switch (propKey) {
2243 case "href":
2244 case "rel":
2245 case "precedence":
2246 case "data-precedence":
2247 break;
2248 case "children":
2249 case "dangerouslySetInnerHTML":
2250 throw Error(formatProdErrorMessage(399, "link"));
2251 default:
2252 writeStyleResourceAttributeInJS(
2253 destination,
2254 propKey,
2255 precedence
2256 );
2257 }
2258 destination.push("]");
2259 nextArrayOpenBrackChunk = ",[";
2260 resource.state = 3;
2261 }
2262 });
2263 destination.push("]");
2264}
2265function writeStyleResourceAttributeInJS(destination, name, value) {
2266 var attributeName = name.toLowerCase();
2267 switch (typeof value) {
2268 case "function":
2269 case "symbol":
2270 return;
2271 }
2272 switch (name) {
2273 case "innerHTML":
2274 case "dangerouslySetInnerHTML":
2275 case "suppressContentEditableWarning":
2276 case "suppressHydrationWarning":
2277 case "style":
2278 case "ref":
2279 return;
2280 case "className":
2281 attributeName = "class";
2282 name = "" + value;
2283 break;
2284 case "hidden":
2285 if (!1 === value) return;
2286 name = "";
2287 break;
2288 case "src":
2289 case "href":
2290 value = sanitizeURL(value);
2291 name = "" + value;
2292 break;
2293 default:
2294 if (
2295 (2 < name.length &&
2296 ("o" === name[0] || "O" === name[0]) &&
2297 ("n" === name[1] || "N" === name[1])) ||
2298 !isAttributeNameSafe(name)
2299 )
2300 return;
2301 name = "" + value;
2302 }
2303 destination.push(",");
2304 attributeName = escapeJSObjectForInstructionScripts(attributeName);
2305 destination.push(attributeName);
2306 destination.push(",");
2307 attributeName = escapeJSObjectForInstructionScripts(name);
2308 destination.push(attributeName);
2309}
2310function createHoistableState() {
2311 return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
2312}
2313function prefetchDNS(href) {
2314 var request = currentRequest ? currentRequest : null;
2315 if (request) {
2316 var resumableState = request.resumableState,
2317 renderState = request.renderState;
2318 if ("string" === typeof href && href) {
2319 if (!resumableState.dnsResources.hasOwnProperty(href)) {
2320 resumableState.dnsResources[href] = null;
2321 resumableState = renderState.headers;
2322 var header, JSCompiler_temp;
2323 if (
2324 (JSCompiler_temp =
2325 resumableState && 0 < resumableState.remainingCapacity)
2326 )
2327 JSCompiler_temp =
2328 ((header =
2329 "<" +
2330 ("" + href).replace(
2331 regexForHrefInLinkHeaderURLContext,
2332 escapeHrefForLinkHeaderURLContextReplacer
2333 ) +
2334 ">; rel=dns-prefetch"),
2335 0 <= (resumableState.remainingCapacity -= header.length + 2));
2336 JSCompiler_temp
2337 ? ((renderState.resets.dns[href] = null),
2338 resumableState.preconnects && (resumableState.preconnects += ", "),
2339 (resumableState.preconnects += header))
2340 : ((header = []),
2341 pushLinkImpl(header, { href: href, rel: "dns-prefetch" }),
2342 renderState.preconnects.add(header));
2343 }
2344 enqueueFlush(request);
2345 }
2346 } else previousDispatcher.D(href);
2347}
2348function preconnect(href, crossOrigin) {
2349 var request = currentRequest ? currentRequest : null;
2350 if (request) {
2351 var resumableState = request.resumableState,
2352 renderState = request.renderState;
2353 if ("string" === typeof href && href) {
2354 var bucket =
2355 "use-credentials" === crossOrigin
2356 ? "credentials"
2357 : "string" === typeof crossOrigin
2358 ? "anonymous"
2359 : "default";
2360 if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2361 resumableState.connectResources[bucket][href] = null;
2362 resumableState = renderState.headers;
2363 var header, JSCompiler_temp;
2364 if (
2365 (JSCompiler_temp =
2366 resumableState && 0 < resumableState.remainingCapacity)
2367 ) {
2368 JSCompiler_temp =
2369 "<" +
2370 ("" + href).replace(
2371 regexForHrefInLinkHeaderURLContext,
2372 escapeHrefForLinkHeaderURLContextReplacer
2373 ) +
2374 ">; rel=preconnect";
2375 if ("string" === typeof crossOrigin) {
2376 var escapedCrossOrigin = ("" + crossOrigin).replace(
2377 regexForLinkHeaderQuotedParamValueContext,
2378 escapeStringForLinkHeaderQuotedParamValueContextReplacer
2379 );
2380 JSCompiler_temp += '; crossorigin="' + escapedCrossOrigin + '"';
2381 }
2382 JSCompiler_temp =
2383 ((header = JSCompiler_temp),
2384 0 <= (resumableState.remainingCapacity -= header.length + 2));
2385 }
2386 JSCompiler_temp
2387 ? ((renderState.resets.connect[bucket][href] = null),
2388 resumableState.preconnects && (resumableState.preconnects += ", "),
2389 (resumableState.preconnects += header))
2390 : ((bucket = []),
2391 pushLinkImpl(bucket, {
2392 rel: "preconnect",
2393 href: href,
2394 crossOrigin: crossOrigin
2395 }),
2396 renderState.preconnects.add(bucket));
2397 }
2398 enqueueFlush(request);
2399 }
2400 } else previousDispatcher.C(href, crossOrigin);
2401}
2402function preload(href, as, options) {
2403 var request = currentRequest ? currentRequest : null;
2404 if (request) {
2405 var resumableState = request.resumableState,
2406 renderState = request.renderState;
2407 if (as && href) {
2408 switch (as) {
2409 case "image":
2410 if (options) {
2411 var imageSrcSet = options.imageSrcSet;
2412 var imageSizes = options.imageSizes;
2413 var fetchPriority = options.fetchPriority;
2414 }
2415 var key = imageSrcSet
2416 ? imageSrcSet + "\n" + (imageSizes || "")
2417 : href;
2418 if (resumableState.imageResources.hasOwnProperty(key)) return;
2419 resumableState.imageResources[key] = PRELOAD_NO_CREDS;
2420 resumableState = renderState.headers;
2421 var header;
2422 resumableState &&
2423 0 < resumableState.remainingCapacity &&
2424 "string" !== typeof imageSrcSet &&
2425 "high" === fetchPriority &&
2426 ((header = getPreloadAsHeader(href, as, options)),
2427 0 <= (resumableState.remainingCapacity -= header.length + 2))
2428 ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2429 resumableState.highImagePreloads &&
2430 (resumableState.highImagePreloads += ", "),
2431 (resumableState.highImagePreloads += header))
2432 : ((resumableState = []),
2433 pushLinkImpl(
2434 resumableState,
2435 assign(
2436 { rel: "preload", href: imageSrcSet ? void 0 : href, as: as },
2437 options
2438 )
2439 ),
2440 "high" === fetchPriority
2441 ? renderState.highImagePreloads.add(resumableState)
2442 : (renderState.bulkPreloads.add(resumableState),
2443 renderState.preloads.images.set(key, resumableState)));
2444 break;
2445 case "style":
2446 if (resumableState.styleResources.hasOwnProperty(href)) return;
2447 imageSrcSet = [];
2448 pushLinkImpl(
2449 imageSrcSet,
2450 assign({ rel: "preload", href: href, as: as }, options)
2451 );
2452 resumableState.styleResources[href] =
2453 !options ||
2454 ("string" !== typeof options.crossOrigin &&
2455 "string" !== typeof options.integrity)
2456 ? PRELOAD_NO_CREDS
2457 : [options.crossOrigin, options.integrity];
2458 renderState.preloads.stylesheets.set(href, imageSrcSet);
2459 renderState.bulkPreloads.add(imageSrcSet);
2460 break;
2461 case "script":
2462 if (resumableState.scriptResources.hasOwnProperty(href)) return;
2463 imageSrcSet = [];
2464 renderState.preloads.scripts.set(href, imageSrcSet);
2465 renderState.bulkPreloads.add(imageSrcSet);
2466 pushLinkImpl(
2467 imageSrcSet,
2468 assign({ rel: "preload", href: href, as: as }, options)
2469 );
2470 resumableState.scriptResources[href] =
2471 !options ||
2472 ("string" !== typeof options.crossOrigin &&
2473 "string" !== typeof options.integrity)
2474 ? PRELOAD_NO_CREDS
2475 : [options.crossOrigin, options.integrity];
2476 break;
2477 default:
2478 if (resumableState.unknownResources.hasOwnProperty(as)) {
2479 if (
2480 ((imageSrcSet = resumableState.unknownResources[as]),
2481 imageSrcSet.hasOwnProperty(href))
2482 )
2483 return;
2484 } else
2485 (imageSrcSet = {}),
2486 (resumableState.unknownResources[as] = imageSrcSet);
2487 imageSrcSet[href] = PRELOAD_NO_CREDS;
2488 if (
2489 (resumableState = renderState.headers) &&
2490 0 < resumableState.remainingCapacity &&
2491 "font" === as &&
2492 ((key = getPreloadAsHeader(href, as, options)),
2493 0 <= (resumableState.remainingCapacity -= key.length + 2))
2494 )
2495 (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2496 resumableState.fontPreloads &&
2497 (resumableState.fontPreloads += ", "),
2498 (resumableState.fontPreloads += key);
2499 else
2500 switch (
2501 ((resumableState = []),
2502 (href = assign({ rel: "preload", href: href, as: as }, options)),
2503 pushLinkImpl(resumableState, href),
2504 as)
2505 ) {
2506 case "font":
2507 renderState.fontPreloads.add(resumableState);
2508 break;
2509 default:
2510 renderState.bulkPreloads.add(resumableState);
2511 }
2512 }
2513 enqueueFlush(request);
2514 }
2515 } else previousDispatcher.L(href, as, options);
2516}
2517function preloadModule(href, options) {
2518 var request = currentRequest ? currentRequest : null;
2519 if (request) {
2520 var resumableState = request.resumableState,
2521 renderState = request.renderState;
2522 if (href) {
2523 var as =
2524 options && "string" === typeof options.as ? options.as : "script";
2525 switch (as) {
2526 case "script":
2527 if (resumableState.moduleScriptResources.hasOwnProperty(href)) return;
2528 as = [];
2529 resumableState.moduleScriptResources[href] =
2530 !options ||
2531 ("string" !== typeof options.crossOrigin &&
2532 "string" !== typeof options.integrity)
2533 ? PRELOAD_NO_CREDS
2534 : [options.crossOrigin, options.integrity];
2535 renderState.preloads.moduleScripts.set(href, as);
2536 break;
2537 default:
2538 if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
2539 var resources = resumableState.unknownResources[as];
2540 if (resources.hasOwnProperty(href)) return;
2541 } else
2542 (resources = {}),
2543 (resumableState.moduleUnknownResources[as] = resources);
2544 as = [];
2545 resources[href] = PRELOAD_NO_CREDS;
2546 }
2547 pushLinkImpl(as, assign({ rel: "modulepreload", href: href }, options));
2548 renderState.bulkPreloads.add(as);
2549 enqueueFlush(request);
2550 }
2551 } else previousDispatcher.m(href, options);
2552}
2553function preinitStyle(href, precedence, options) {
2554 var request = currentRequest ? currentRequest : null;
2555 if (request) {
2556 var resumableState = request.resumableState,
2557 renderState = request.renderState;
2558 if (href) {
2559 precedence = precedence || "default";
2560 var styleQueue = renderState.styles.get(precedence),
2561 resourceState = resumableState.styleResources.hasOwnProperty(href)
2562 ? resumableState.styleResources[href]
2563 : void 0;
2564 null !== resourceState &&
2565 ((resumableState.styleResources[href] = null),
2566 styleQueue ||
2567 ((styleQueue = {
2568 precedence: escapeTextForBrowser(precedence),
2569 rules: [],
2570 hrefs: [],
2571 sheets: new Map()
2572 }),
2573 renderState.styles.set(precedence, styleQueue)),
2574 (precedence = {
2575 state: 0,
2576 props: assign(
2577 { rel: "stylesheet", href: href, "data-precedence": precedence },
2578 options
2579 )
2580 }),
2581 resourceState &&
2582 (2 === resourceState.length &&
2583 adoptPreloadCredentials(precedence.props, resourceState),
2584 (renderState = renderState.preloads.stylesheets.get(href)) &&
2585 0 < renderState.length
2586 ? (renderState.length = 0)
2587 : (precedence.state = 1)),
2588 styleQueue.sheets.set(href, precedence),
2589 enqueueFlush(request));
2590 }
2591 } else previousDispatcher.S(href, precedence, options);
2592}
2593function preinitScript(src, options) {
2594 var request = currentRequest ? currentRequest : null;
2595 if (request) {
2596 var resumableState = request.resumableState,
2597 renderState = request.renderState;
2598 if (src) {
2599 var resourceState = resumableState.scriptResources.hasOwnProperty(src)
2600 ? resumableState.scriptResources[src]
2601 : void 0;
2602 null !== resourceState &&
2603 ((resumableState.scriptResources[src] = null),
2604 (options = assign({ src: src, async: !0 }, options)),
2605 resourceState &&
2606 (2 === resourceState.length &&
2607 adoptPreloadCredentials(options, resourceState),
2608 (src = renderState.preloads.scripts.get(src))) &&
2609 (src.length = 0),
2610 (src = []),
2611 renderState.scripts.add(src),
2612 pushScriptImpl(src, options),
2613 enqueueFlush(request));
2614 }
2615 } else previousDispatcher.X(src, options);
2616}
2617function preinitModuleScript(src, options) {
2618 var request = currentRequest ? currentRequest : null;
2619 if (request) {
2620 var resumableState = request.resumableState,
2621 renderState = request.renderState;
2622 if (src) {
2623 var resourceState = resumableState.moduleScriptResources.hasOwnProperty(
2624 src
2625 )
2626 ? resumableState.moduleScriptResources[src]
2627 : void 0;
2628 null !== resourceState &&
2629 ((resumableState.moduleScriptResources[src] = null),
2630 (options = assign({ src: src, type: "module", async: !0 }, options)),
2631 resourceState &&
2632 (2 === resourceState.length &&
2633 adoptPreloadCredentials(options, resourceState),
2634 (src = renderState.preloads.moduleScripts.get(src))) &&
2635 (src.length = 0),
2636 (src = []),
2637 renderState.scripts.add(src),
2638 pushScriptImpl(src, options),
2639 enqueueFlush(request));
2640 }
2641 } else previousDispatcher.M(src, options);
2642}
2643function adoptPreloadCredentials(target, preloadState) {
2644 null == target.crossOrigin && (target.crossOrigin = preloadState[0]);
2645 null == target.integrity && (target.integrity = preloadState[1]);
2646}
2647function getPreloadAsHeader(href, as, params) {
2648 href = ("" + href).replace(
2649 regexForHrefInLinkHeaderURLContext,
2650 escapeHrefForLinkHeaderURLContextReplacer
2651 );
2652 as = ("" + as).replace(
2653 regexForLinkHeaderQuotedParamValueContext,
2654 escapeStringForLinkHeaderQuotedParamValueContextReplacer
2655 );
2656 as = "<" + href + '>; rel=preload; as="' + as + '"';
2657 for (var paramName in params)
2658 hasOwnProperty.call(params, paramName) &&
2659 ((href = params[paramName]),
2660 "string" === typeof href &&
2661 (as +=
2662 "; " +
2663 paramName.toLowerCase() +
2664 '="' +
2665 ("" + href).replace(
2666 regexForLinkHeaderQuotedParamValueContext,
2667 escapeStringForLinkHeaderQuotedParamValueContextReplacer
2668 ) +
2669 '"'));
2670 return as;
2671}
2672var regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g;
2673function escapeHrefForLinkHeaderURLContextReplacer(match) {
2674 switch (match) {
2675 case "<":
2676 return "%3C";
2677 case ">":
2678 return "%3E";
2679 case "\n":
2680 return "%0A";
2681 case "\r":
2682 return "%0D";
2683 default:
2684 throw Error(
2685 "escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
2686 );
2687 }
2688}
2689var regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g;
2690function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
2691 switch (match) {
2692 case '"':
2693 return "%22";
2694 case "'":
2695 return "%27";
2696 case ";":
2697 return "%3B";
2698 case ",":
2699 return "%2C";
2700 case "\n":
2701 return "%0A";
2702 case "\r":
2703 return "%0D";
2704 default:
2705 throw Error(
2706 "escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
2707 );
2708 }
2709}
2710function hoistStyleQueueDependency(styleQueue) {
2711 this.styles.add(styleQueue);
2712}
2713function hoistStylesheetDependency(stylesheet) {
2714 this.stylesheets.add(stylesheet);
2715}
2716function hoistHoistables(parentState, childState) {
2717 childState.styles.forEach(hoistStyleQueueDependency, parentState);
2718 childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
2719 childState.suspenseyImages && (parentState.suspenseyImages = !0);
2720}
2721function createRenderState(resumableState, generateStaticMarkup) {
2722 var idPrefix = resumableState.idPrefix,
2723 bootstrapChunks = [],
2724 bootstrapScriptContent = resumableState.bootstrapScriptContent,
2725 bootstrapScripts = resumableState.bootstrapScripts,
2726 bootstrapModules = resumableState.bootstrapModules;
2727 void 0 !== bootstrapScriptContent &&
2728 (bootstrapChunks.push("<script"),
2729 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
2730 bootstrapChunks.push(
2731 ">",
2732 ("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
2733 "\x3c/script>"
2734 ));
2735 bootstrapScriptContent = idPrefix + "P:";
2736 var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
2737 idPrefix += "B:";
2738 var JSCompiler_object_inline_preconnects_1687 = new Set(),
2739 JSCompiler_object_inline_fontPreloads_1688 = new Set(),
2740 JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
2741 JSCompiler_object_inline_styles_1690 = new Map(),
2742 JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
2743 JSCompiler_object_inline_scripts_1692 = new Set(),
2744 JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
2745 JSCompiler_object_inline_preloads_1694 = {
2746 images: new Map(),
2747 stylesheets: new Map(),
2748 scripts: new Map(),
2749 moduleScripts: new Map()
2750 };
2751 if (void 0 !== bootstrapScripts)
2752 for (var i = 0; i < bootstrapScripts.length; i++) {
2753 var scriptConfig = bootstrapScripts[i],
2754 src,
2755 crossOrigin = void 0,
2756 integrity = void 0,
2757 props = {
2758 rel: "preload",
2759 as: "script",
2760 fetchPriority: "low",
2761 nonce: void 0
2762 };
2763 "string" === typeof scriptConfig
2764 ? (props.href = src = scriptConfig)
2765 : ((props.href = src = scriptConfig.src),
2766 (props.integrity = integrity =
2767 "string" === typeof scriptConfig.integrity
2768 ? scriptConfig.integrity
2769 : void 0),
2770 (props.crossOrigin = crossOrigin =
2771 "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
2772 ? void 0
2773 : "use-credentials" === scriptConfig.crossOrigin
2774 ? "use-credentials"
2775 : ""));
2776 scriptConfig = resumableState;
2777 var href = src;
2778 scriptConfig.scriptResources[href] = null;
2779 scriptConfig.moduleScriptResources[href] = null;
2780 scriptConfig = [];
2781 pushLinkImpl(scriptConfig, props);
2782 JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
2783 bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
2784 "string" === typeof integrity &&
2785 bootstrapChunks.push(
2786 ' integrity="',
2787 escapeTextForBrowser(integrity),
2788 '"'
2789 );
2790 "string" === typeof crossOrigin &&
2791 bootstrapChunks.push(
2792 ' crossorigin="',
2793 escapeTextForBrowser(crossOrigin),
2794 '"'
2795 );
2796 pushCompletedShellIdAttribute(bootstrapChunks, resumableState);
2797 bootstrapChunks.push(' async="">\x3c/script>');
2798 }
2799 if (void 0 !== bootstrapModules)
2800 for (
2801 bootstrapScripts = 0;
2802 bootstrapScripts < bootstrapModules.length;
2803 bootstrapScripts++
2804 )
2805 (props = bootstrapModules[bootstrapScripts]),
2806 (crossOrigin = src = void 0),
2807 (integrity = {
2808 rel: "modulepreload",
2809 fetchPriority: "low",
2810 nonce: void 0
2811 }),
2812 "string" === typeof props
2813 ? (integrity.href = i = props)
2814 : ((integrity.href = i = props.src),
2815 (integrity.integrity = crossOrigin =
2816 "string" === typeof props.integrity ? props.integrity : void 0),
2817 (integrity.crossOrigin = src =
2818 "string" === typeof props || null == props.crossOrigin
2819 ? void 0
2820 : "use-credentials" === props.crossOrigin
2821 ? "use-credentials"
2822 : "")),
2823 (props = resumableState),
2824 (scriptConfig = i),
2825 (props.scriptResources[scriptConfig] = null),
2826 (props.moduleScriptResources[scriptConfig] = null),
2827 (props = []),
2828 pushLinkImpl(props, integrity),
2829 JSCompiler_object_inline_bootstrapScripts_1691.add(props),
2830 bootstrapChunks.push(
2831 '<script type="module" src="',
2832 escapeTextForBrowser(i),
2833 '"'
2834 ),
2835 "string" === typeof crossOrigin &&
2836 bootstrapChunks.push(
2837 ' integrity="',
2838 escapeTextForBrowser(crossOrigin),
2839 '"'
2840 ),
2841 "string" === typeof src &&
2842 bootstrapChunks.push(
2843 ' crossorigin="',
2844 escapeTextForBrowser(src),
2845 '"'
2846 ),
2847 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
2848 bootstrapChunks.push(' async="">\x3c/script>');
2849 return {
2850 placeholderPrefix: bootstrapScriptContent,
2851 segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
2852 boundaryPrefix: idPrefix,
2853 startInlineScript: "<script",
2854 startInlineStyle: "<style",
2855 preamble: { htmlChunks: null, headChunks: null, bodyChunks: null },
2856 externalRuntimeScript: null,
2857 bootstrapChunks: bootstrapChunks,
2858 importMapChunks: [],
2859 onHeaders: void 0,
2860 headers: null,
2861 resets: {
2862 font: {},
2863 dns: {},
2864 connect: { default: {}, anonymous: {}, credentials: {} },
2865 image: {},
2866 style: {}
2867 },
2868 charsetChunks: [],
2869 viewportChunks: [],
2870 hoistableChunks: [],
2871 preconnects: JSCompiler_object_inline_preconnects_1687,
2872 fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
2873 highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
2874 styles: JSCompiler_object_inline_styles_1690,
2875 bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
2876 scripts: JSCompiler_object_inline_scripts_1692,
2877 bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
2878 preloads: JSCompiler_object_inline_preloads_1694,
2879 nonce: { script: void 0, style: void 0 },
2880 stylesToHoist: !1,
2881 generateStaticMarkup: generateStaticMarkup
2882 };
2883}
2884function pushTextInstance(target, text, renderState, textEmbedded) {
2885 if (renderState.generateStaticMarkup)
2886 return target.push(escapeTextForBrowser(text)), !1;
2887 "" === text
2888 ? (target = textEmbedded)
2889 : (textEmbedded && target.push("\x3c!-- --\x3e"),
2890 target.push(escapeTextForBrowser(text)),
2891 (target = !0));
2892 return target;
2893}
2894function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
2895 renderState.generateStaticMarkup ||
2896 (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
2897}
2898var bind = Function.prototype.bind,
2899 REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2900function getComponentNameFromType(type) {
2901 if (null == type) return null;
2902 if ("function" === typeof type)
2903 return type.$$typeof === REACT_CLIENT_REFERENCE
2904 ? null
2905 : type.displayName || type.name || null;
2906 if ("string" === typeof type) return type;
2907 switch (type) {
2908 case REACT_FRAGMENT_TYPE:
2909 return "Fragment";
2910 case REACT_PROFILER_TYPE:
2911 return "Profiler";
2912 case REACT_STRICT_MODE_TYPE:
2913 return "StrictMode";
2914 case REACT_SUSPENSE_TYPE:
2915 return "Suspense";
2916 case REACT_SUSPENSE_LIST_TYPE:
2917 return "SuspenseList";
2918 case REACT_ACTIVITY_TYPE:
2919 return "Activity";
2920 }
2921 if ("object" === typeof type)
2922 switch (type.$$typeof) {
2923 case REACT_PORTAL_TYPE:
2924 return "Portal";
2925 case REACT_CONTEXT_TYPE:
2926 return type.displayName || "Context";
2927 case REACT_CONSUMER_TYPE:
2928 return (type._context.displayName || "Context") + ".Consumer";
2929 case REACT_FORWARD_REF_TYPE:
2930 var innerType = type.render;
2931 type = type.displayName;
2932 type ||
2933 ((type = innerType.displayName || innerType.name || ""),
2934 (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
2935 return type;
2936 case REACT_MEMO_TYPE:
2937 return (
2938 (innerType = type.displayName || null),
2939 null !== innerType
2940 ? innerType
2941 : getComponentNameFromType(type.type) || "Memo"
2942 );
2943 case REACT_LAZY_TYPE:
2944 innerType = type._payload;
2945 type = type._init;
2946 try {
2947 return getComponentNameFromType(type(innerType));
2948 } catch (x) {}
2949 }
2950 return null;
2951}
2952var emptyContextObject = {},
2953 currentActiveSnapshot = null;
2954function popToNearestCommonAncestor(prev, next) {
2955 if (prev !== next) {
2956 prev.context._currentValue2 = prev.parentValue;
2957 prev = prev.parent;
2958 var parentNext = next.parent;
2959 if (null === prev) {
2960 if (null !== parentNext) throw Error(formatProdErrorMessage(401));
2961 } else {
2962 if (null === parentNext) throw Error(formatProdErrorMessage(401));
2963 popToNearestCommonAncestor(prev, parentNext);
2964 }
2965 next.context._currentValue2 = next.value;
2966 }
2967}
2968function popAllPrevious(prev) {
2969 prev.context._currentValue2 = prev.parentValue;
2970 prev = prev.parent;
2971 null !== prev && popAllPrevious(prev);
2972}
2973function pushAllNext(next) {
2974 var parentNext = next.parent;
2975 null !== parentNext && pushAllNext(parentNext);
2976 next.context._currentValue2 = next.value;
2977}
2978function popPreviousToCommonLevel(prev, next) {
2979 prev.context._currentValue2 = prev.parentValue;
2980 prev = prev.parent;
2981 if (null === prev) throw Error(formatProdErrorMessage(402));
2982 prev.depth === next.depth
2983 ? popToNearestCommonAncestor(prev, next)
2984 : popPreviousToCommonLevel(prev, next);
2985}
2986function popNextToCommonLevel(prev, next) {
2987 var parentNext = next.parent;
2988 if (null === parentNext) throw Error(formatProdErrorMessage(402));
2989 prev.depth === parentNext.depth
2990 ? popToNearestCommonAncestor(prev, parentNext)
2991 : popNextToCommonLevel(prev, parentNext);
2992 next.context._currentValue2 = next.value;
2993}
2994function switchContext(newSnapshot) {
2995 var prev = currentActiveSnapshot;
2996 prev !== newSnapshot &&
2997 (null === prev
2998 ? pushAllNext(newSnapshot)
2999 : null === newSnapshot
3000 ? popAllPrevious(prev)
3001 : prev.depth === newSnapshot.depth
3002 ? popToNearestCommonAncestor(prev, newSnapshot)
3003 : prev.depth > newSnapshot.depth
3004 ? popPreviousToCommonLevel(prev, newSnapshot)
3005 : popNextToCommonLevel(prev, newSnapshot),
3006 (currentActiveSnapshot = newSnapshot));
3007}
3008var classComponentUpdater = {
3009 enqueueSetState: function (inst, payload) {
3010 inst = inst._reactInternals;
3011 null !== inst.queue && inst.queue.push(payload);
3012 },
3013 enqueueReplaceState: function (inst, payload) {
3014 inst = inst._reactInternals;
3015 inst.replace = !0;
3016 inst.queue = [payload];
3017 },
3018 enqueueForceUpdate: function () {}
3019 },
3020 emptyTreeContext = { id: 1, overflow: "" };
3021function pushTreeContext(baseContext, totalChildren, index) {
3022 var baseIdWithLeadingBit = baseContext.id;
3023 baseContext = baseContext.overflow;
3024 var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
3025 baseIdWithLeadingBit &= ~(1 << baseLength);
3026 index += 1;
3027 var length = 32 - clz32(totalChildren) + baseLength;
3028 if (30 < length) {
3029 var numberOfOverflowBits = baseLength - (baseLength % 5);
3030 length = (
3031 baseIdWithLeadingBit &
3032 ((1 << numberOfOverflowBits) - 1)
3033 ).toString(32);
3034 baseIdWithLeadingBit >>= numberOfOverflowBits;
3035 baseLength -= numberOfOverflowBits;
3036 return {
3037 id:
3038 (1 << (32 - clz32(totalChildren) + baseLength)) |
3039 (index << baseLength) |
3040 baseIdWithLeadingBit,
3041 overflow: length + baseContext
3042 };
3043 }
3044 return {
3045 id: (1 << length) | (index << baseLength) | baseIdWithLeadingBit,
3046 overflow: baseContext
3047 };
3048}
3049var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
3050 log = Math.log,
3051 LN2 = Math.LN2;
3052function clz32Fallback(x) {
3053 x >>>= 0;
3054 return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
3055}
3056function noop() {}
3057var SuspenseException = Error(formatProdErrorMessage(460));
3058function trackUsedThenable(thenableState, thenable, index) {
3059 index = thenableState[index];
3060 void 0 === index
3061 ? thenableState.push(thenable)
3062 : index !== thenable && (thenable.then(noop, noop), (thenable = index));
3063 switch (thenable.status) {
3064 case "fulfilled":
3065 return thenable.value;
3066 case "rejected":
3067 throw thenable.reason;
3068 default:
3069 "string" === typeof thenable.status
3070 ? thenable.then(noop, noop)
3071 : ((thenableState = thenable),
3072 (thenableState.status = "pending"),
3073 thenableState.then(
3074 function (fulfilledValue) {
3075 if ("pending" === thenable.status) {
3076 var fulfilledThenable = thenable;
3077 fulfilledThenable.status = "fulfilled";
3078 fulfilledThenable.value = fulfilledValue;
3079 }
3080 },
3081 function (error) {
3082 if ("pending" === thenable.status) {
3083 var rejectedThenable = thenable;
3084 rejectedThenable.status = "rejected";
3085 rejectedThenable.reason = error;
3086 }
3087 }
3088 ));
3089 switch (thenable.status) {
3090 case "fulfilled":
3091 return thenable.value;
3092 case "rejected":
3093 throw thenable.reason;
3094 }
3095 suspendedThenable = thenable;
3096 throw SuspenseException;
3097 }
3098}
3099var suspendedThenable = null;
3100function getSuspendedThenable() {
3101 if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));
3102 var thenable = suspendedThenable;
3103 suspendedThenable = null;
3104 return thenable;
3105}
3106function is(x, y) {
3107 return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
3108}
3109var objectIs = "function" === typeof Object.is ? Object.is : is,
3110 currentlyRenderingComponent = null,
3111 currentlyRenderingTask = null,
3112 currentlyRenderingRequest = null,
3113 currentlyRenderingKeyPath = null,
3114 firstWorkInProgressHook = null,
3115 workInProgressHook = null,
3116 isReRender = !1,
3117 didScheduleRenderPhaseUpdate = !1,
3118 localIdCounter = 0,
3119 actionStateCounter = 0,
3120 actionStateMatchingIndex = -1,
3121 thenableIndexCounter = 0,
3122 thenableState = null,
3123 renderPhaseUpdates = null,
3124 numberOfReRenders = 0;
3125function resolveCurrentlyRenderingComponent() {
3126 if (null === currentlyRenderingComponent)
3127 throw Error(formatProdErrorMessage(321));
3128 return currentlyRenderingComponent;
3129}
3130function createHook() {
3131 if (0 < numberOfReRenders) throw Error(formatProdErrorMessage(312));
3132 return { memoizedState: null, queue: null, next: null };
3133}
3134function createWorkInProgressHook() {
3135 null === workInProgressHook
3136 ? null === firstWorkInProgressHook
3137 ? ((isReRender = !1),
3138 (firstWorkInProgressHook = workInProgressHook = createHook()))
3139 : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
3140 : null === workInProgressHook.next
3141 ? ((isReRender = !1),
3142 (workInProgressHook = workInProgressHook.next = createHook()))
3143 : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3144 return workInProgressHook;
3145}
3146function getThenableStateAfterSuspending() {
3147 var state = thenableState;
3148 thenableState = null;
3149 return state;
3150}
3151function resetHooksState() {
3152 currentlyRenderingKeyPath =
3153 currentlyRenderingRequest =
3154 currentlyRenderingTask =
3155 currentlyRenderingComponent =
3156 null;
3157 didScheduleRenderPhaseUpdate = !1;
3158 firstWorkInProgressHook = null;
3159 numberOfReRenders = 0;
3160 workInProgressHook = renderPhaseUpdates = null;
3161}
3162function basicStateReducer(state, action) {
3163 return "function" === typeof action ? action(state) : action;
3164}
3165function useReducer(reducer, initialArg, init) {
3166 currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3167 workInProgressHook = createWorkInProgressHook();
3168 if (isReRender) {
3169 var queue = workInProgressHook.queue;
3170 initialArg = queue.dispatch;
3171 if (
3172 null !== renderPhaseUpdates &&
3173 ((init = renderPhaseUpdates.get(queue)), void 0 !== init)
3174 ) {
3175 renderPhaseUpdates.delete(queue);
3176 queue = workInProgressHook.memoizedState;
3177 do (queue = reducer(queue, init.action)), (init = init.next);
3178 while (null !== init);
3179 workInProgressHook.memoizedState = queue;
3180 return [queue, initialArg];
3181 }
3182 return [workInProgressHook.memoizedState, initialArg];
3183 }
3184 reducer =
3185 reducer === basicStateReducer
3186 ? "function" === typeof initialArg
3187 ? initialArg()
3188 : initialArg
3189 : void 0 !== init
3190 ? init(initialArg)
3191 : initialArg;
3192 workInProgressHook.memoizedState = reducer;
3193 reducer = workInProgressHook.queue = { last: null, dispatch: null };
3194 reducer = reducer.dispatch = dispatchAction.bind(
3195 null,
3196 currentlyRenderingComponent,
3197 reducer
3198 );
3199 return [workInProgressHook.memoizedState, reducer];
3200}
3201function useMemo(nextCreate, deps) {
3202 currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3203 workInProgressHook = createWorkInProgressHook();
3204 deps = void 0 === deps ? null : deps;
3205 if (null !== workInProgressHook) {
3206 var prevState = workInProgressHook.memoizedState;
3207 if (null !== prevState && null !== deps) {
3208 var prevDeps = prevState[1];
3209 a: if (null === prevDeps) prevDeps = !1;
3210 else {
3211 for (var i = 0; i < prevDeps.length && i < deps.length; i++)
3212 if (!objectIs(deps[i], prevDeps[i])) {
3213 prevDeps = !1;
3214 break a;
3215 }
3216 prevDeps = !0;
3217 }
3218 if (prevDeps) return prevState[0];
3219 }
3220 }
3221 nextCreate = nextCreate();
3222 workInProgressHook.memoizedState = [nextCreate, deps];
3223 return nextCreate;
3224}
3225function dispatchAction(componentIdentity, queue, action) {
3226 if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
3227 if (componentIdentity === currentlyRenderingComponent)
3228 if (
3229 ((didScheduleRenderPhaseUpdate = !0),
3230 (componentIdentity = { action: action, next: null }),
3231 null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),
3232 (action = renderPhaseUpdates.get(queue)),
3233 void 0 === action)
3234 )
3235 renderPhaseUpdates.set(queue, componentIdentity);
3236 else {
3237 for (queue = action; null !== queue.next; ) queue = queue.next;
3238 queue.next = componentIdentity;
3239 }
3240}
3241function throwOnUseEffectEventCall() {
3242 throw Error(formatProdErrorMessage(440));
3243}
3244function unsupportedStartTransition() {
3245 throw Error(formatProdErrorMessage(394));
3246}
3247function unsupportedSetOptimisticState() {
3248 throw Error(formatProdErrorMessage(479));
3249}
3250function useActionState(action, initialState, permalink) {
3251 resolveCurrentlyRenderingComponent();
3252 var actionStateHookIndex = actionStateCounter++,
3253 request = currentlyRenderingRequest;
3254 if ("function" === typeof action.$$FORM_ACTION) {
3255 var nextPostbackStateKey = null,
3256 componentKeyPath = currentlyRenderingKeyPath;
3257 request = request.formState;
3258 var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
3259 if (null !== request && "function" === typeof isSignatureEqual) {
3260 var postbackKey = request[1];
3261 isSignatureEqual.call(action, request[2], request[3]) &&
3262 ((nextPostbackStateKey =
3263 void 0 !== permalink
3264 ? "p" + permalink
3265 : "k" +
3266 murmurhash3_32_gc(
3267 JSON.stringify([componentKeyPath, null, actionStateHookIndex]),
3268 0
3269 )),
3270 postbackKey === nextPostbackStateKey &&
3271 ((actionStateMatchingIndex = actionStateHookIndex),
3272 (initialState = request[0])));
3273 }
3274 var boundAction = action.bind(null, initialState);
3275 action = function (payload) {
3276 boundAction(payload);
3277 };
3278 "function" === typeof boundAction.$$FORM_ACTION &&
3279 (action.$$FORM_ACTION = function (prefix) {
3280 prefix = boundAction.$$FORM_ACTION(prefix);
3281 void 0 !== permalink &&
3282 ((permalink += ""), (prefix.action = permalink));
3283 var formData = prefix.data;
3284 formData &&
3285 (null === nextPostbackStateKey &&
3286 (nextPostbackStateKey =
3287 void 0 !== permalink
3288 ? "p" + permalink
3289 : "k" +
3290 murmurhash3_32_gc(
3291 JSON.stringify([
3292 componentKeyPath,
3293 null,
3294 actionStateHookIndex
3295 ]),
3296 0
3297 )),
3298 formData.append("$ACTION_KEY", nextPostbackStateKey));
3299 return prefix;
3300 });
3301 return [initialState, action, !1];
3302 }
3303 var boundAction$22 = action.bind(null, initialState);
3304 return [
3305 initialState,
3306 function (payload) {
3307 boundAction$22(payload);
3308 },
3309 !1
3310 ];
3311}
3312function unwrapThenable(thenable) {
3313 var index = thenableIndexCounter;
3314 thenableIndexCounter += 1;
3315 null === thenableState && (thenableState = []);
3316 return trackUsedThenable(thenableState, thenable, index);
3317}
3318function unsupportedRefresh() {
3319 throw Error(formatProdErrorMessage(393));
3320}
3321var HooksDispatcher = {
3322 readContext: function (context) {
3323 return context._currentValue2;
3324 },
3325 use: function (usable) {
3326 if (null !== usable && "object" === typeof usable) {
3327 if ("function" === typeof usable.then) return unwrapThenable(usable);
3328 if (usable.$$typeof === REACT_CONTEXT_TYPE)
3329 return usable._currentValue2;
3330 }
3331 throw Error(formatProdErrorMessage(438, String(usable)));
3332 },
3333 useContext: function (context) {
3334 resolveCurrentlyRenderingComponent();
3335 return context._currentValue2;
3336 },
3337 useMemo: useMemo,
3338 useReducer: useReducer,
3339 useRef: function (initialValue) {
3340 currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3341 workInProgressHook = createWorkInProgressHook();
3342 var previousRef = workInProgressHook.memoizedState;
3343 return null === previousRef
3344 ? ((initialValue = { current: initialValue }),
3345 (workInProgressHook.memoizedState = initialValue))
3346 : previousRef;
3347 },
3348 useState: function (initialState) {
3349 return useReducer(basicStateReducer, initialState);
3350 },
3351 useInsertionEffect: noop,
3352 useLayoutEffect: noop,
3353 useCallback: function (callback, deps) {
3354 return useMemo(function () {
3355 return callback;
3356 }, deps);
3357 },
3358 useImperativeHandle: noop,
3359 useEffect: noop,
3360 useDebugValue: noop,
3361 useDeferredValue: function (value, initialValue) {
3362 resolveCurrentlyRenderingComponent();
3363 return void 0 !== initialValue ? initialValue : value;
3364 },
3365 useTransition: function () {
3366 resolveCurrentlyRenderingComponent();
3367 return [!1, unsupportedStartTransition];
3368 },
3369 useId: function () {
3370 var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3371 var overflow = JSCompiler_inline_result.overflow;
3372 JSCompiler_inline_result = JSCompiler_inline_result.id;
3373 JSCompiler_inline_result =
3374 (
3375 JSCompiler_inline_result &
3376 ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3377 ).toString(32) + overflow;
3378 var resumableState = currentResumableState;
3379 if (null === resumableState) throw Error(formatProdErrorMessage(404));
3380 overflow = localIdCounter++;
3381 JSCompiler_inline_result =
3382 "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3383 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3384 return JSCompiler_inline_result + "_";
3385 },
3386 useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3387 if (void 0 === getServerSnapshot)
3388 throw Error(formatProdErrorMessage(407));
3389 return getServerSnapshot();
3390 },
3391 useOptimistic: function (passthrough) {
3392 resolveCurrentlyRenderingComponent();
3393 return [passthrough, unsupportedSetOptimisticState];
3394 },
3395 useActionState: useActionState,
3396 useFormState: useActionState,
3397 useHostTransitionStatus: function () {
3398 resolveCurrentlyRenderingComponent();
3399 return sharedNotPendingObject;
3400 },
3401 useMemoCache: function (size) {
3402 for (var data = Array(size), i = 0; i < size; i++)
3403 data[i] = REACT_MEMO_CACHE_SENTINEL;
3404 return data;
3405 },
3406 useCacheRefresh: function () {
3407 return unsupportedRefresh;
3408 },
3409 useEffectEvent: function () {
3410 return throwOnUseEffectEventCall;
3411 }
3412 },
3413 currentResumableState = null,
3414 DefaultAsyncDispatcher = {
3415 getCacheForType: function () {
3416 throw Error(formatProdErrorMessage(248));
3417 },
3418 cacheSignal: function () {
3419 throw Error(formatProdErrorMessage(248));
3420 }
3421 },
3422 prefix,
3423 suffix;
3424function describeBuiltInComponentFrame(name) {
3425 if (void 0 === prefix)
3426 try {
3427 throw Error();
3428 } catch (x) {
3429 var match = x.stack.trim().match(/\n( *(at )?)/);
3430 prefix = (match && match[1]) || "";
3431 suffix =
3432 -1 < x.stack.indexOf("\n at")
3433 ? " (<anonymous>)"
3434 : -1 < x.stack.indexOf("@")
3435 ? "@unknown:0:0"
3436 : "";
3437 }
3438 return "\n" + prefix + name + suffix;
3439}
3440var reentry = !1;
3441function describeNativeComponentFrame(fn, construct) {
3442 if (!fn || reentry) return "";
3443 reentry = !0;
3444 var previousPrepareStackTrace = Error.prepareStackTrace;
3445 Error.prepareStackTrace = void 0;
3446 try {
3447 var RunInRootFrame = {
3448 DetermineComponentFrameRoot: function () {
3449 try {
3450 if (construct) {
3451 var Fake = function () {
3452 throw Error();
3453 };
3454 Object.defineProperty(Fake.prototype, "props", {
3455 set: function () {
3456 throw Error();
3457 }
3458 });
3459 if ("object" === typeof Reflect && Reflect.construct) {
3460 try {
3461 Reflect.construct(Fake, []);
3462 } catch (x) {
3463 var control = x;
3464 }
3465 Reflect.construct(fn, [], Fake);
3466 } else {
3467 try {
3468 Fake.call();
3469 } catch (x$24) {
3470 control = x$24;
3471 }
3472 fn.call(Fake.prototype);
3473 }
3474 } else {
3475 try {
3476 throw Error();
3477 } catch (x$25) {
3478 control = x$25;
3479 }
3480 (Fake = fn()) &&
3481 "function" === typeof Fake.catch &&
3482 Fake.catch(function () {});
3483 }
3484 } catch (sample) {
3485 if (sample && control && "string" === typeof sample.stack)
3486 return [sample.stack, control.stack];
3487 }
3488 return [null, null];
3489 }
3490 };
3491 RunInRootFrame.DetermineComponentFrameRoot.displayName =
3492 "DetermineComponentFrameRoot";
3493 var namePropDescriptor = Object.getOwnPropertyDescriptor(
3494 RunInRootFrame.DetermineComponentFrameRoot,
3495 "name"
3496 );
3497 namePropDescriptor &&
3498 namePropDescriptor.configurable &&
3499 Object.defineProperty(
3500 RunInRootFrame.DetermineComponentFrameRoot,
3501 "name",
3502 { value: "DetermineComponentFrameRoot" }
3503 );
3504 var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3505 sampleStack = _RunInRootFrame$Deter[0],
3506 controlStack = _RunInRootFrame$Deter[1];
3507 if (sampleStack && controlStack) {
3508 var sampleLines = sampleStack.split("\n"),
3509 controlLines = controlStack.split("\n");
3510 for (
3511 namePropDescriptor = RunInRootFrame = 0;
3512 RunInRootFrame < sampleLines.length &&
3513 !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");
3514
3515 )
3516 RunInRootFrame++;
3517 for (
3518 ;
3519 namePropDescriptor < controlLines.length &&
3520 !controlLines[namePropDescriptor].includes(
3521 "DetermineComponentFrameRoot"
3522 );
3523
3524 )
3525 namePropDescriptor++;
3526 if (
3527 RunInRootFrame === sampleLines.length ||
3528 namePropDescriptor === controlLines.length
3529 )
3530 for (
3531 RunInRootFrame = sampleLines.length - 1,
3532 namePropDescriptor = controlLines.length - 1;
3533 1 <= RunInRootFrame &&
3534 0 <= namePropDescriptor &&
3535 sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];
3536
3537 )
3538 namePropDescriptor--;
3539 for (
3540 ;
3541 1 <= RunInRootFrame && 0 <= namePropDescriptor;
3542 RunInRootFrame--, namePropDescriptor--
3543 )
3544 if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
3545 if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {
3546 do
3547 if (
3548 (RunInRootFrame--,
3549 namePropDescriptor--,
3550 0 > namePropDescriptor ||
3551 sampleLines[RunInRootFrame] !==
3552 controlLines[namePropDescriptor])
3553 ) {
3554 var frame =
3555 "\n" +
3556 sampleLines[RunInRootFrame].replace(" at new ", " at ");
3557 fn.displayName &&
3558 frame.includes("<anonymous>") &&
3559 (frame = frame.replace("<anonymous>", fn.displayName));
3560 return frame;
3561 }
3562 while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
3563 }
3564 break;
3565 }
3566 }
3567 } finally {
3568 (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);
3569 }
3570 return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "")
3571 ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3572 : "";
3573}
3574function describeComponentStackByType(type) {
3575 if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3576 if ("function" === typeof type)
3577 return type.prototype && type.prototype.isReactComponent
3578 ? describeNativeComponentFrame(type, !0)
3579 : describeNativeComponentFrame(type, !1);
3580 if ("object" === typeof type && null !== type) {
3581 switch (type.$$typeof) {
3582 case REACT_FORWARD_REF_TYPE:
3583 return describeNativeComponentFrame(type.render, !1);
3584 case REACT_MEMO_TYPE:
3585 return describeNativeComponentFrame(type.type, !1);
3586 case REACT_LAZY_TYPE:
3587 var lazyComponent = type,
3588 payload = lazyComponent._payload;
3589 lazyComponent = lazyComponent._init;
3590 try {
3591 type = lazyComponent(payload);
3592 } catch (x) {
3593 return describeBuiltInComponentFrame("Lazy");
3594 }
3595 return describeComponentStackByType(type);
3596 }
3597 if ("string" === typeof type.name) {
3598 a: {
3599 payload = type.name;
3600 lazyComponent = type.env;
3601 var location = type.debugLocation;
3602 if (
3603 null != location &&
3604 ((type = Error.prepareStackTrace),
3605 (Error.prepareStackTrace = void 0),
3606 (location = location.stack),
3607 (Error.prepareStackTrace = type),
3608 location.startsWith("Error: react-stack-top-frame\n") &&
3609 (location = location.slice(29)),
3610 (type = location.indexOf("\n")),
3611 -1 !== type && (location = location.slice(type + 1)),
3612 (type = location.indexOf("react_stack_bottom_frame")),
3613 -1 !== type && (type = location.lastIndexOf("\n", type)),
3614 (type = -1 !== type ? (location = location.slice(0, type)) : ""),
3615 (location = type.lastIndexOf("\n")),
3616 (type = -1 === location ? type : type.slice(location + 1)),
3617 -1 !== type.indexOf(payload))
3618 ) {
3619 payload = "\n" + type;
3620 break a;
3621 }
3622 payload = describeBuiltInComponentFrame(
3623 payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
3624 );
3625 }
3626 return payload;
3627 }
3628 }
3629 switch (type) {
3630 case REACT_SUSPENSE_LIST_TYPE:
3631 return describeBuiltInComponentFrame("SuspenseList");
3632 case REACT_SUSPENSE_TYPE:
3633 return describeBuiltInComponentFrame("Suspense");
3634 }
3635 return "";
3636}
3637function isEligibleForOutlining(request, boundary) {
3638 return (500 < boundary.byteSize || !1) && null === boundary.contentPreamble;
3639}
3640function defaultErrorHandler(error) {
3641 if (
3642 "object" === typeof error &&
3643 null !== error &&
3644 "string" === typeof error.environmentName
3645 ) {
3646 var JSCompiler_inline_result = error.environmentName;
3647 error = [error].slice(0);
3648 "string" === typeof error[0]
3649 ? error.splice(
3650 0,
3651 1,
3652 "[%s] " + error[0],
3653 " " + JSCompiler_inline_result + " "
3654 )
3655 : error.splice(0, 0, "[%s]", " " + JSCompiler_inline_result + " ");
3656 error.unshift(console);
3657 JSCompiler_inline_result = bind.apply(console.error, error);
3658 JSCompiler_inline_result();
3659 } else console.error(error);
3660 return null;
3661}
3662function RequestInstance(
3663 resumableState,
3664 renderState,
3665 rootFormatContext,
3666 progressiveChunkSize,
3667 onError,
3668 onAllReady,
3669 onShellReady,
3670 onShellError,
3671 onFatalError,
3672 onPostpone,
3673 formState
3674) {
3675 var abortSet = new Set();
3676 this.destination = null;
3677 this.flushScheduled = !1;
3678 this.resumableState = resumableState;
3679 this.renderState = renderState;
3680 this.rootFormatContext = rootFormatContext;
3681 this.progressiveChunkSize =
3682 void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3683 this.status = 10;
3684 this.fatalError = null;
3685 this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3686 this.completedPreambleSegments = this.completedRootSegment = null;
3687 this.byteSize = 0;
3688 this.abortableTasks = abortSet;
3689 this.pingedTasks = [];
3690 this.clientRenderedBoundaries = [];
3691 this.completedBoundaries = [];
3692 this.partialBoundaries = [];
3693 this.trackedPostpones = null;
3694 this.onError = void 0 === onError ? defaultErrorHandler : onError;
3695 this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3696 this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3697 this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3698 this.onShellError = void 0 === onShellError ? noop : onShellError;
3699 this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3700 this.formState = void 0 === formState ? null : formState;
3701}
3702function createRequest(
3703 children,
3704 resumableState,
3705 renderState,
3706 rootFormatContext,
3707 progressiveChunkSize,
3708 onError,
3709 onAllReady,
3710 onShellReady,
3711 onShellError,
3712 onFatalError,
3713 onPostpone,
3714 formState
3715) {
3716 resumableState = new RequestInstance(
3717 resumableState,
3718 renderState,
3719 rootFormatContext,
3720 progressiveChunkSize,
3721 onError,
3722 onAllReady,
3723 onShellReady,
3724 onShellError,
3725 onFatalError,
3726 onPostpone,
3727 formState
3728 );
3729 renderState = createPendingSegment(
3730 resumableState,
3731 0,
3732 null,
3733 rootFormatContext,
3734 !1,
3735 !1
3736 );
3737 renderState.parentFlushed = !0;
3738 children = createRenderTask(
3739 resumableState,
3740 null,
3741 children,
3742 -1,
3743 null,
3744 renderState,
3745 null,
3746 null,
3747 resumableState.abortableTasks,
3748 null,
3749 rootFormatContext,
3750 null,
3751 emptyTreeContext,
3752 null,
3753 null
3754 );
3755 pushComponentStack(children);
3756 resumableState.pingedTasks.push(children);
3757 return resumableState;
3758}
3759var currentRequest = null;
3760function pingTask(request, task) {
3761 request.pingedTasks.push(task);
3762 1 === request.pingedTasks.length &&
3763 ((request.flushScheduled = null !== request.destination),
3764 performWork(request));
3765}
3766function createSuspenseBoundary(
3767 request,
3768 row,
3769 fallbackAbortableTasks,
3770 contentPreamble,
3771 fallbackPreamble
3772) {
3773 fallbackAbortableTasks = {
3774 status: 0,
3775 rootSegmentID: -1,
3776 parentFlushed: !1,
3777 pendingTasks: 0,
3778 row: row,
3779 completedSegments: [],
3780 byteSize: 0,
3781 fallbackAbortableTasks: fallbackAbortableTasks,
3782 errorDigest: null,
3783 contentState: createHoistableState(),
3784 fallbackState: createHoistableState(),
3785 contentPreamble: contentPreamble,
3786 fallbackPreamble: fallbackPreamble,
3787 trackedContentKeyPath: null,
3788 trackedFallbackNode: null
3789 };
3790 null !== row &&
3791 (row.pendingTasks++,
3792 (contentPreamble = row.boundaries),
3793 null !== contentPreamble &&
3794 (request.allPendingTasks++,
3795 fallbackAbortableTasks.pendingTasks++,
3796 contentPreamble.push(fallbackAbortableTasks)),
3797 (request = row.inheritedHoistables),
3798 null !== request &&
3799 hoistHoistables(fallbackAbortableTasks.contentState, request));
3800 return fallbackAbortableTasks;
3801}
3802function createRenderTask(
3803 request,
3804 thenableState,
3805 node,
3806 childIndex,
3807 blockedBoundary,
3808 blockedSegment,
3809 blockedPreamble,
3810 hoistableState,
3811 abortSet,
3812 keyPath,
3813 formatContext,
3814 context,
3815 treeContext,
3816 row,
3817 componentStack
3818) {
3819 request.allPendingTasks++;
3820 null === blockedBoundary
3821 ? request.pendingRootTasks++
3822 : blockedBoundary.pendingTasks++;
3823 null !== row && row.pendingTasks++;
3824 var task = {
3825 replay: null,
3826 node: node,
3827 childIndex: childIndex,
3828 ping: function () {
3829 return pingTask(request, task);
3830 },
3831 blockedBoundary: blockedBoundary,
3832 blockedSegment: blockedSegment,
3833 blockedPreamble: blockedPreamble,
3834 hoistableState: hoistableState,
3835 abortSet: abortSet,
3836 keyPath: keyPath,
3837 formatContext: formatContext,
3838 context: context,
3839 treeContext: treeContext,
3840 row: row,
3841 componentStack: componentStack,
3842 thenableState: thenableState
3843 };
3844 abortSet.add(task);
3845 return task;
3846}
3847function createReplayTask(
3848 request,
3849 thenableState,
3850 replay,
3851 node,
3852 childIndex,
3853 blockedBoundary,
3854 hoistableState,
3855 abortSet,
3856 keyPath,
3857 formatContext,
3858 context,
3859 treeContext,
3860 row,
3861 componentStack
3862) {
3863 request.allPendingTasks++;
3864 null === blockedBoundary
3865 ? request.pendingRootTasks++
3866 : blockedBoundary.pendingTasks++;
3867 null !== row && row.pendingTasks++;
3868 replay.pendingTasks++;
3869 var task = {
3870 replay: replay,
3871 node: node,
3872 childIndex: childIndex,
3873 ping: function () {
3874 return pingTask(request, task);
3875 },
3876 blockedBoundary: blockedBoundary,
3877 blockedSegment: null,
3878 blockedPreamble: null,
3879 hoistableState: hoistableState,
3880 abortSet: abortSet,
3881 keyPath: keyPath,
3882 formatContext: formatContext,
3883 context: context,
3884 treeContext: treeContext,
3885 row: row,
3886 componentStack: componentStack,
3887 thenableState: thenableState
3888 };
3889 abortSet.add(task);
3890 return task;
3891}
3892function createPendingSegment(
3893 request,
3894 index,
3895 boundary,
3896 parentFormatContext,
3897 lastPushedText,
3898 textEmbedded
3899) {
3900 return {
3901 status: 0,
3902 parentFlushed: !1,
3903 id: -1,
3904 index: index,
3905 chunks: [],
3906 children: [],
3907 preambleChildren: [],
3908 parentFormatContext: parentFormatContext,
3909 boundary: boundary,
3910 lastPushedText: lastPushedText,
3911 textEmbedded: textEmbedded
3912 };
3913}
3914function pushComponentStack(task) {
3915 var node = task.node;
3916 if ("object" === typeof node && null !== node)
3917 switch (node.$$typeof) {
3918 case REACT_ELEMENT_TYPE:
3919 task.componentStack = { parent: task.componentStack, type: node.type };
3920 }
3921}
3922function replaceSuspenseComponentStackWithSuspenseFallbackStack(
3923 componentStack
3924) {
3925 return null === componentStack
3926 ? null
3927 : { parent: componentStack.parent, type: "Suspense Fallback" };
3928}
3929function getThrownInfo(node$jscomp$0) {
3930 var errorInfo = {};
3931 node$jscomp$0 &&
3932 Object.defineProperty(errorInfo, "componentStack", {
3933 configurable: !0,
3934 enumerable: !0,
3935 get: function () {
3936 try {
3937 var info = "",
3938 node = node$jscomp$0;
3939 do
3940 (info += describeComponentStackByType(node.type)),
3941 (node = node.parent);
3942 while (node);
3943 var JSCompiler_inline_result = info;
3944 } catch (x) {
3945 JSCompiler_inline_result =
3946 "\nError generating stack: " + x.message + "\n" + x.stack;
3947 }
3948 Object.defineProperty(errorInfo, "componentStack", {
3949 value: JSCompiler_inline_result
3950 });
3951 return JSCompiler_inline_result;
3952 }
3953 });
3954 return errorInfo;
3955}
3956function logRecoverableError(request, error, errorInfo) {
3957 request = request.onError;
3958 error = request(error, errorInfo);
3959 if (null == error || "string" === typeof error) return error;
3960}
3961function fatalError(request, error) {
3962 var onShellError = request.onShellError,
3963 onFatalError = request.onFatalError;
3964 onShellError(error);
3965 onFatalError(error);
3966 null !== request.destination
3967 ? ((request.status = 14), request.destination.destroy(error))
3968 : ((request.status = 13), (request.fatalError = error));
3969}
3970function finishSuspenseListRow(request, row) {
3971 unblockSuspenseListRow(request, row.next, row.hoistables);
3972}
3973function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
3974 for (; null !== unblockedRow; ) {
3975 null !== inheritedHoistables &&
3976 (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
3977 (unblockedRow.inheritedHoistables = inheritedHoistables));
3978 var unblockedBoundaries = unblockedRow.boundaries;
3979 if (null !== unblockedBoundaries) {
3980 unblockedRow.boundaries = null;
3981 for (var i = 0; i < unblockedBoundaries.length; i++) {
3982 var unblockedBoundary = unblockedBoundaries[i];
3983 null !== inheritedHoistables &&
3984 hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
3985 finishedTask(request, unblockedBoundary, null, null);
3986 }
3987 }
3988 unblockedRow.pendingTasks--;
3989 if (0 < unblockedRow.pendingTasks) break;
3990 inheritedHoistables = unblockedRow.hoistables;
3991 unblockedRow = unblockedRow.next;
3992 }
3993}
3994function tryToResolveTogetherRow(request, togetherRow) {
3995 var boundaries = togetherRow.boundaries;
3996 if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
3997 for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
3998 var rowBoundary = boundaries[i];
3999 if (
4000 1 !== rowBoundary.pendingTasks ||
4001 rowBoundary.parentFlushed ||
4002 isEligibleForOutlining(request, rowBoundary)
4003 ) {
4004 allCompleteAndInlinable = !1;
4005 break;
4006 }
4007 }
4008 allCompleteAndInlinable &&
4009 unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
4010 }
4011}
4012function createSuspenseListRow(previousRow) {
4013 var newRow = {
4014 pendingTasks: 1,
4015 boundaries: null,
4016 hoistables: createHoistableState(),
4017 inheritedHoistables: null,
4018 together: !1,
4019 next: null
4020 };
4021 null !== previousRow &&
4022 0 < previousRow.pendingTasks &&
4023 (newRow.pendingTasks++,
4024 (newRow.boundaries = []),
4025 (previousRow.next = newRow));
4026 return newRow;
4027}
4028function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4029 var prevKeyPath = task.keyPath,
4030 prevTreeContext = task.treeContext,
4031 prevRow = task.row;
4032 task.keyPath = keyPath;
4033 keyPath = rows.length;
4034 var previousSuspenseListRow = null;
4035 if (null !== task.replay) {
4036 var resumeSlots = task.replay.slots;
4037 if (null !== resumeSlots && "object" === typeof resumeSlots)
4038 for (var n = 0; n < keyPath; n++) {
4039 var i =
4040 "backwards" !== revealOrder &&
4041 "unstable_legacy-backwards" !== revealOrder
4042 ? n
4043 : keyPath - 1 - n,
4044 node = rows[i];
4045 task.row = previousSuspenseListRow = createSuspenseListRow(
4046 previousSuspenseListRow
4047 );
4048 task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
4049 var resumeSegmentID = resumeSlots[i];
4050 "number" === typeof resumeSegmentID
4051 ? (resumeNode(request, task, resumeSegmentID, node, i),
4052 delete resumeSlots[i])
4053 : renderNode(request, task, node, i);
4054 0 === --previousSuspenseListRow.pendingTasks &&
4055 finishSuspenseListRow(request, previousSuspenseListRow);
4056 }
4057 else
4058 for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
4059 (n =
4060 "backwards" !== revealOrder &&
4061 "unstable_legacy-backwards" !== revealOrder
4062 ? resumeSlots
4063 : keyPath - 1 - resumeSlots),
4064 (i = rows[n]),
4065 (task.row = previousSuspenseListRow =
4066 createSuspenseListRow(previousSuspenseListRow)),
4067 (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
4068 renderNode(request, task, i, n),
4069 0 === --previousSuspenseListRow.pendingTasks &&
4070 finishSuspenseListRow(request, previousSuspenseListRow);
4071 } else if (
4072 "backwards" !== revealOrder &&
4073 "unstable_legacy-backwards" !== revealOrder
4074 )
4075 for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
4076 (resumeSlots = rows[revealOrder]),
4077 (task.row = previousSuspenseListRow =
4078 createSuspenseListRow(previousSuspenseListRow)),
4079 (task.treeContext = pushTreeContext(
4080 prevTreeContext,
4081 keyPath,
4082 revealOrder
4083 )),
4084 renderNode(request, task, resumeSlots, revealOrder),
4085 0 === --previousSuspenseListRow.pendingTasks &&
4086 finishSuspenseListRow(request, previousSuspenseListRow);
4087 else {
4088 revealOrder = task.blockedSegment;
4089 resumeSlots = revealOrder.children.length;
4090 n = revealOrder.chunks.length;
4091 for (i = keyPath - 1; 0 <= i; i--) {
4092 node = rows[i];
4093 task.row = previousSuspenseListRow = createSuspenseListRow(
4094 previousSuspenseListRow
4095 );
4096 task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
4097 resumeSegmentID = createPendingSegment(
4098 request,
4099 n,
4100 null,
4101 task.formatContext,
4102 0 === i ? revealOrder.lastPushedText : !0,
4103 !0
4104 );
4105 revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
4106 task.blockedSegment = resumeSegmentID;
4107 try {
4108 renderNode(request, task, node, i),
4109 pushSegmentFinale(
4110 resumeSegmentID.chunks,
4111 request.renderState,
4112 resumeSegmentID.lastPushedText,
4113 resumeSegmentID.textEmbedded
4114 ),
4115 (resumeSegmentID.status = 1),
4116 0 === --previousSuspenseListRow.pendingTasks &&
4117 finishSuspenseListRow(request, previousSuspenseListRow);
4118 } catch (thrownValue) {
4119 throw (
4120 ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
4121 thrownValue)
4122 );
4123 }
4124 }
4125 task.blockedSegment = revealOrder;
4126 revealOrder.lastPushedText = !1;
4127 }
4128 null !== prevRow &&
4129 null !== previousSuspenseListRow &&
4130 0 < previousSuspenseListRow.pendingTasks &&
4131 (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
4132 task.treeContext = prevTreeContext;
4133 task.row = prevRow;
4134 task.keyPath = prevKeyPath;
4135}
4136function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
4137 var prevThenableState = task.thenableState;
4138 task.thenableState = null;
4139 currentlyRenderingComponent = {};
4140 currentlyRenderingTask = task;
4141 currentlyRenderingRequest = request;
4142 currentlyRenderingKeyPath = keyPath;
4143 actionStateCounter = localIdCounter = 0;
4144 actionStateMatchingIndex = -1;
4145 thenableIndexCounter = 0;
4146 thenableState = prevThenableState;
4147 for (request = Component(props, secondArg); didScheduleRenderPhaseUpdate; )
4148 (didScheduleRenderPhaseUpdate = !1),
4149 (actionStateCounter = localIdCounter = 0),
4150 (actionStateMatchingIndex = -1),
4151 (thenableIndexCounter = 0),
4152 (numberOfReRenders += 1),
4153 (workInProgressHook = null),
4154 (request = Component(props, secondArg));
4155 resetHooksState();
4156 return request;
4157}
4158function finishFunctionComponent(
4159 request,
4160 task,
4161 keyPath,
4162 children,
4163 hasId,
4164 actionStateCount,
4165 actionStateMatchingIndex
4166) {
4167 var didEmitActionStateMarkers = !1;
4168 if (0 !== actionStateCount && null !== request.formState) {
4169 var segment = task.blockedSegment;
4170 if (null !== segment) {
4171 didEmitActionStateMarkers = !0;
4172 segment = segment.chunks;
4173 for (var i = 0; i < actionStateCount; i++)
4174 i === actionStateMatchingIndex
4175 ? segment.push("\x3c!--F!--\x3e")
4176 : segment.push("\x3c!--F--\x3e");
4177 }
4178 }
4179 actionStateCount = task.keyPath;
4180 task.keyPath = keyPath;
4181 hasId
4182 ? ((keyPath = task.treeContext),
4183 (task.treeContext = pushTreeContext(keyPath, 1, 0)),
4184 renderNode(request, task, children, -1),
4185 (task.treeContext = keyPath))
4186 : didEmitActionStateMarkers
4187 ? renderNode(request, task, children, -1)
4188 : renderNodeDestructive(request, task, children, -1);
4189 task.keyPath = actionStateCount;
4190}
4191function renderElement(request, task, keyPath, type, props, ref) {
4192 if ("function" === typeof type)
4193 if (type.prototype && type.prototype.isReactComponent) {
4194 var newProps = props;
4195 if ("ref" in props) {
4196 newProps = {};
4197 for (var propName in props)
4198 "ref" !== propName && (newProps[propName] = props[propName]);
4199 }
4200 var defaultProps = type.defaultProps;
4201 if (defaultProps) {
4202 newProps === props && (newProps = assign({}, newProps, props));
4203 for (var propName$43 in defaultProps)
4204 void 0 === newProps[propName$43] &&
4205 (newProps[propName$43] = defaultProps[propName$43]);
4206 }
4207 props = newProps;
4208 newProps = emptyContextObject;
4209 defaultProps = type.contextType;
4210 "object" === typeof defaultProps &&
4211 null !== defaultProps &&
4212 (newProps = defaultProps._currentValue2);
4213 newProps = new type(props, newProps);
4214 var initialState = void 0 !== newProps.state ? newProps.state : null;
4215 newProps.updater = classComponentUpdater;
4216 newProps.props = props;
4217 newProps.state = initialState;
4218 defaultProps = { queue: [], replace: !1 };
4219 newProps._reactInternals = defaultProps;
4220 ref = type.contextType;
4221 newProps.context =
4222 "object" === typeof ref && null !== ref
4223 ? ref._currentValue2
4224 : emptyContextObject;
4225 ref = type.getDerivedStateFromProps;
4226 "function" === typeof ref &&
4227 ((ref = ref(props, initialState)),
4228 (initialState =
4229 null === ref || void 0 === ref
4230 ? initialState
4231 : assign({}, initialState, ref)),
4232 (newProps.state = initialState));
4233 if (
4234 "function" !== typeof type.getDerivedStateFromProps &&
4235 "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4236 ("function" === typeof newProps.UNSAFE_componentWillMount ||
4237 "function" === typeof newProps.componentWillMount)
4238 )
4239 if (
4240 ((type = newProps.state),
4241 "function" === typeof newProps.componentWillMount &&
4242 newProps.componentWillMount(),
4243 "function" === typeof newProps.UNSAFE_componentWillMount &&
4244 newProps.UNSAFE_componentWillMount(),
4245 type !== newProps.state &&
4246 classComponentUpdater.enqueueReplaceState(
4247 newProps,
4248 newProps.state,
4249 null
4250 ),
4251 null !== defaultProps.queue && 0 < defaultProps.queue.length)
4252 )
4253 if (
4254 ((type = defaultProps.queue),
4255 (ref = defaultProps.replace),
4256 (defaultProps.queue = null),
4257 (defaultProps.replace = !1),
4258 ref && 1 === type.length)
4259 )
4260 newProps.state = type[0];
4261 else {
4262 defaultProps = ref ? type[0] : newProps.state;
4263 initialState = !0;
4264 for (ref = ref ? 1 : 0; ref < type.length; ref++)
4265 (propName$43 = type[ref]),
4266 (propName$43 =
4267 "function" === typeof propName$43
4268 ? propName$43.call(newProps, defaultProps, props, void 0)
4269 : propName$43),
4270 null != propName$43 &&
4271 (initialState
4272 ? ((initialState = !1),
4273 (defaultProps = assign({}, defaultProps, propName$43)))
4274 : assign(defaultProps, propName$43));
4275 newProps.state = defaultProps;
4276 }
4277 else defaultProps.queue = null;
4278 type = newProps.render();
4279 if (12 === request.status) throw null;
4280 props = task.keyPath;
4281 task.keyPath = keyPath;
4282 renderNodeDestructive(request, task, type, -1);
4283 task.keyPath = props;
4284 } else {
4285 type = renderWithHooks(request, task, keyPath, type, props, void 0);
4286 if (12 === request.status) throw null;
4287 finishFunctionComponent(
4288 request,
4289 task,
4290 keyPath,
4291 type,
4292 0 !== localIdCounter,
4293 actionStateCounter,
4294 actionStateMatchingIndex
4295 );
4296 }
4297 else if ("string" === typeof type)
4298 if (((newProps = task.blockedSegment), null === newProps))
4299 (newProps = props.children),
4300 (defaultProps = task.formatContext),
4301 (initialState = task.keyPath),
4302 (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4303 (task.keyPath = keyPath),
4304 renderNode(request, task, newProps, -1),
4305 (task.formatContext = defaultProps),
4306 (task.keyPath = initialState);
4307 else {
4308 initialState = pushStartInstance(
4309 newProps.chunks,
4310 type,
4311 props,
4312 request.resumableState,
4313 request.renderState,
4314 task.blockedPreamble,
4315 task.hoistableState,
4316 task.formatContext,
4317 newProps.lastPushedText
4318 );
4319 newProps.lastPushedText = !1;
4320 defaultProps = task.formatContext;
4321 ref = task.keyPath;
4322 task.keyPath = keyPath;
4323 if (
4324 3 ===
4325 (task.formatContext = getChildFormatContext(defaultProps, type, props))
4326 .insertionMode
4327 ) {
4328 keyPath = createPendingSegment(
4329 request,
4330 0,
4331 null,
4332 task.formatContext,
4333 !1,
4334 !1
4335 );
4336 newProps.preambleChildren.push(keyPath);
4337 task.blockedSegment = keyPath;
4338 try {
4339 (keyPath.status = 6),
4340 renderNode(request, task, initialState, -1),
4341 pushSegmentFinale(
4342 keyPath.chunks,
4343 request.renderState,
4344 keyPath.lastPushedText,
4345 keyPath.textEmbedded
4346 ),
4347 (keyPath.status = 1);
4348 } finally {
4349 task.blockedSegment = newProps;
4350 }
4351 } else renderNode(request, task, initialState, -1);
4352 task.formatContext = defaultProps;
4353 task.keyPath = ref;
4354 a: {
4355 task = newProps.chunks;
4356 request = request.resumableState;
4357 switch (type) {
4358 case "title":
4359 case "style":
4360 case "script":
4361 case "area":
4362 case "base":
4363 case "br":
4364 case "col":
4365 case "embed":
4366 case "hr":
4367 case "img":
4368 case "input":
4369 case "keygen":
4370 case "link":
4371 case "meta":
4372 case "param":
4373 case "source":
4374 case "track":
4375 case "wbr":
4376 break a;
4377 case "body":
4378 if (1 >= defaultProps.insertionMode) {
4379 request.hasBody = !0;
4380 break a;
4381 }
4382 break;
4383 case "html":
4384 if (0 === defaultProps.insertionMode) {
4385 request.hasHtml = !0;
4386 break a;
4387 }
4388 break;
4389 case "head":
4390 if (1 >= defaultProps.insertionMode) break a;
4391 }
4392 task.push(endChunkForTag(type));
4393 }
4394 newProps.lastPushedText = !1;
4395 }
4396 else {
4397 switch (type) {
4398 case REACT_LEGACY_HIDDEN_TYPE:
4399 case REACT_STRICT_MODE_TYPE:
4400 case REACT_PROFILER_TYPE:
4401 case REACT_FRAGMENT_TYPE:
4402 type = task.keyPath;
4403 task.keyPath = keyPath;
4404 renderNodeDestructive(request, task, props.children, -1);
4405 task.keyPath = type;
4406 return;
4407 case REACT_ACTIVITY_TYPE:
4408 type = task.blockedSegment;
4409 null === type
4410 ? "hidden" !== props.mode &&
4411 ((type = task.keyPath),
4412 (task.keyPath = keyPath),
4413 renderNode(request, task, props.children, -1),
4414 (task.keyPath = type))
4415 : "hidden" !== props.mode &&
4416 (request.renderState.generateStaticMarkup ||
4417 type.chunks.push("\x3c!--&--\x3e"),
4418 (type.lastPushedText = !1),
4419 (newProps = task.keyPath),
4420 (task.keyPath = keyPath),
4421 renderNode(request, task, props.children, -1),
4422 (task.keyPath = newProps),
4423 request.renderState.generateStaticMarkup ||
4424 type.chunks.push("\x3c!--/&--\x3e"),
4425 (type.lastPushedText = !1));
4426 return;
4427 case REACT_SUSPENSE_LIST_TYPE:
4428 a: {
4429 type = props.children;
4430 props = props.revealOrder;
4431 if (
4432 "forwards" === props ||
4433 "backwards" === props ||
4434 "unstable_legacy-backwards" === props
4435 ) {
4436 if (isArrayImpl(type)) {
4437 renderSuspenseListRows(request, task, keyPath, type, props);
4438 break a;
4439 }
4440 if ((newProps = getIteratorFn(type)))
4441 if ((newProps = newProps.call(type))) {
4442 defaultProps = newProps.next();
4443 if (!defaultProps.done) {
4444 do defaultProps = newProps.next();
4445 while (!defaultProps.done);
4446 renderSuspenseListRows(request, task, keyPath, type, props);
4447 }
4448 break a;
4449 }
4450 }
4451 "together" === props
4452 ? ((props = task.keyPath),
4453 (newProps = task.row),
4454 (defaultProps = task.row = createSuspenseListRow(null)),
4455 (defaultProps.boundaries = []),
4456 (defaultProps.together = !0),
4457 (task.keyPath = keyPath),
4458 renderNodeDestructive(request, task, type, -1),
4459 0 === --defaultProps.pendingTasks &&
4460 finishSuspenseListRow(request, defaultProps),
4461 (task.keyPath = props),
4462 (task.row = newProps),
4463 null !== newProps &&
4464 0 < defaultProps.pendingTasks &&
4465 (newProps.pendingTasks++, (defaultProps.next = newProps)))
4466 : ((props = task.keyPath),
4467 (task.keyPath = keyPath),
4468 renderNodeDestructive(request, task, type, -1),
4469 (task.keyPath = props));
4470 }
4471 return;
4472 case REACT_VIEW_TRANSITION_TYPE:
4473 case REACT_SCOPE_TYPE:
4474 throw Error(formatProdErrorMessage(343));
4475 case REACT_SUSPENSE_TYPE:
4476 a: if (null !== task.replay) {
4477 type = task.keyPath;
4478 newProps = task.formatContext;
4479 defaultProps = task.row;
4480 task.keyPath = keyPath;
4481 task.formatContext = getSuspenseContentFormatContext(
4482 request.resumableState,
4483 newProps
4484 );
4485 task.row = null;
4486 keyPath = props.children;
4487 try {
4488 renderNode(request, task, keyPath, -1);
4489 } finally {
4490 (task.keyPath = type),
4491 (task.formatContext = newProps),
4492 (task.row = defaultProps);
4493 }
4494 } else {
4495 type = task.keyPath;
4496 ref = task.formatContext;
4497 var prevRow = task.row,
4498 parentBoundary = task.blockedBoundary;
4499 propName$43 = task.blockedPreamble;
4500 var parentHoistableState = task.hoistableState;
4501 propName = task.blockedSegment;
4502 var fallback = props.fallback;
4503 props = props.children;
4504 var fallbackAbortSet = new Set();
4505 var newBoundary = createSuspenseBoundary(
4506 request,
4507 task.row,
4508 fallbackAbortSet,
4509 null,
4510 null
4511 );
4512 null !== request.trackedPostpones &&
4513 (newBoundary.trackedContentKeyPath = keyPath);
4514 var boundarySegment = createPendingSegment(
4515 request,
4516 propName.chunks.length,
4517 newBoundary,
4518 task.formatContext,
4519 !1,
4520 !1
4521 );
4522 propName.children.push(boundarySegment);
4523 propName.lastPushedText = !1;
4524 var contentRootSegment = createPendingSegment(
4525 request,
4526 0,
4527 null,
4528 task.formatContext,
4529 !1,
4530 !1
4531 );
4532 contentRootSegment.parentFlushed = !0;
4533 if (null !== request.trackedPostpones) {
4534 newProps = task.componentStack;
4535 defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4536 initialState = [defaultProps[1], defaultProps[2], [], null];
4537 request.trackedPostpones.workingMap.set(defaultProps, initialState);
4538 newBoundary.trackedFallbackNode = initialState;
4539 task.blockedSegment = boundarySegment;
4540 task.blockedPreamble = newBoundary.fallbackPreamble;
4541 task.keyPath = defaultProps;
4542 task.formatContext = getSuspenseFallbackFormatContext(
4543 request.resumableState,
4544 ref
4545 );
4546 task.componentStack =
4547 replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4548 boundarySegment.status = 6;
4549 try {
4550 renderNode(request, task, fallback, -1),
4551 pushSegmentFinale(
4552 boundarySegment.chunks,
4553 request.renderState,
4554 boundarySegment.lastPushedText,
4555 boundarySegment.textEmbedded
4556 ),
4557 (boundarySegment.status = 1);
4558 } catch (thrownValue) {
4559 throw (
4560 ((boundarySegment.status = 12 === request.status ? 3 : 4),
4561 thrownValue)
4562 );
4563 } finally {
4564 (task.blockedSegment = propName),
4565 (task.blockedPreamble = propName$43),
4566 (task.keyPath = type),
4567 (task.formatContext = ref);
4568 }
4569 task = createRenderTask(
4570 request,
4571 null,
4572 props,
4573 -1,
4574 newBoundary,
4575 contentRootSegment,
4576 newBoundary.contentPreamble,
4577 newBoundary.contentState,
4578 task.abortSet,
4579 keyPath,
4580 getSuspenseContentFormatContext(
4581 request.resumableState,
4582 task.formatContext
4583 ),
4584 task.context,
4585 task.treeContext,
4586 null,
4587 newProps
4588 );
4589 pushComponentStack(task);
4590 request.pingedTasks.push(task);
4591 } else {
4592 task.blockedBoundary = newBoundary;
4593 task.blockedPreamble = newBoundary.contentPreamble;
4594 task.hoistableState = newBoundary.contentState;
4595 task.blockedSegment = contentRootSegment;
4596 task.keyPath = keyPath;
4597 task.formatContext = getSuspenseContentFormatContext(
4598 request.resumableState,
4599 ref
4600 );
4601 task.row = null;
4602 contentRootSegment.status = 6;
4603 try {
4604 if (
4605 (renderNode(request, task, props, -1),
4606 pushSegmentFinale(
4607 contentRootSegment.chunks,
4608 request.renderState,
4609 contentRootSegment.lastPushedText,
4610 contentRootSegment.textEmbedded
4611 ),
4612 (contentRootSegment.status = 1),
4613 queueCompletedSegment(newBoundary, contentRootSegment),
4614 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
4615 ) {
4616 if (
4617 ((newBoundary.status = 1),
4618 !isEligibleForOutlining(request, newBoundary))
4619 ) {
4620 null !== prevRow &&
4621 0 === --prevRow.pendingTasks &&
4622 finishSuspenseListRow(request, prevRow);
4623 0 === request.pendingRootTasks &&
4624 task.blockedPreamble &&
4625 preparePreamble(request);
4626 break a;
4627 }
4628 } else
4629 null !== prevRow &&
4630 prevRow.together &&
4631 tryToResolveTogetherRow(request, prevRow);
4632 } catch (thrownValue$30) {
4633 (newBoundary.status = 4),
4634 12 === request.status
4635 ? ((contentRootSegment.status = 3),
4636 (newProps = request.fatalError))
4637 : ((contentRootSegment.status = 4),
4638 (newProps = thrownValue$30)),
4639 (defaultProps = getThrownInfo(task.componentStack)),
4640 (initialState = logRecoverableError(
4641 request,
4642 newProps,
4643 defaultProps
4644 )),
4645 (newBoundary.errorDigest = initialState),
4646 untrackBoundary(request, newBoundary);
4647 } finally {
4648 (task.blockedBoundary = parentBoundary),
4649 (task.blockedPreamble = propName$43),
4650 (task.hoistableState = parentHoistableState),
4651 (task.blockedSegment = propName),
4652 (task.keyPath = type),
4653 (task.formatContext = ref),
4654 (task.row = prevRow);
4655 }
4656 task = createRenderTask(
4657 request,
4658 null,
4659 fallback,
4660 -1,
4661 parentBoundary,
4662 boundarySegment,
4663 newBoundary.fallbackPreamble,
4664 newBoundary.fallbackState,
4665 fallbackAbortSet,
4666 [keyPath[0], "Suspense Fallback", keyPath[2]],
4667 getSuspenseFallbackFormatContext(
4668 request.resumableState,
4669 task.formatContext
4670 ),
4671 task.context,
4672 task.treeContext,
4673 task.row,
4674 replaceSuspenseComponentStackWithSuspenseFallbackStack(
4675 task.componentStack
4676 )
4677 );
4678 pushComponentStack(task);
4679 request.pingedTasks.push(task);
4680 }
4681 }
4682 return;
4683 }
4684 if ("object" === typeof type && null !== type)
4685 switch (type.$$typeof) {
4686 case REACT_FORWARD_REF_TYPE:
4687 if ("ref" in props)
4688 for (fallback in ((newProps = {}), props))
4689 "ref" !== fallback && (newProps[fallback] = props[fallback]);
4690 else newProps = props;
4691 type = renderWithHooks(
4692 request,
4693 task,
4694 keyPath,
4695 type.render,
4696 newProps,
4697 ref
4698 );
4699 finishFunctionComponent(
4700 request,
4701 task,
4702 keyPath,
4703 type,
4704 0 !== localIdCounter,
4705 actionStateCounter,
4706 actionStateMatchingIndex
4707 );
4708 return;
4709 case REACT_MEMO_TYPE:
4710 renderElement(request, task, keyPath, type.type, props, ref);
4711 return;
4712 case REACT_CONTEXT_TYPE:
4713 defaultProps = props.children;
4714 newProps = task.keyPath;
4715 props = props.value;
4716 initialState = type._currentValue2;
4717 type._currentValue2 = props;
4718 ref = currentActiveSnapshot;
4719 currentActiveSnapshot = type = {
4720 parent: ref,
4721 depth: null === ref ? 0 : ref.depth + 1,
4722 context: type,
4723 parentValue: initialState,
4724 value: props
4725 };
4726 task.context = type;
4727 task.keyPath = keyPath;
4728 renderNodeDestructive(request, task, defaultProps, -1);
4729 request = currentActiveSnapshot;
4730 if (null === request) throw Error(formatProdErrorMessage(403));
4731 request.context._currentValue2 = request.parentValue;
4732 request = currentActiveSnapshot = request.parent;
4733 task.context = request;
4734 task.keyPath = newProps;
4735 return;
4736 case REACT_CONSUMER_TYPE:
4737 props = props.children;
4738 type = props(type._context._currentValue2);
4739 props = task.keyPath;
4740 task.keyPath = keyPath;
4741 renderNodeDestructive(request, task, type, -1);
4742 task.keyPath = props;
4743 return;
4744 case REACT_LAZY_TYPE:
4745 newProps = type._init;
4746 type = newProps(type._payload);
4747 if (12 === request.status) throw null;
4748 renderElement(request, task, keyPath, type, props, ref);
4749 return;
4750 }
4751 throw Error(
4752 formatProdErrorMessage(130, null == type ? type : typeof type, "")
4753 );
4754 }
4755}
4756function resumeNode(request, task, segmentId, node, childIndex) {
4757 var prevReplay = task.replay,
4758 blockedBoundary = task.blockedBoundary,
4759 resumedSegment = createPendingSegment(
4760 request,
4761 0,
4762 null,
4763 task.formatContext,
4764 !1,
4765 !1
4766 );
4767 resumedSegment.id = segmentId;
4768 resumedSegment.parentFlushed = !0;
4769 try {
4770 (task.replay = null),
4771 (task.blockedSegment = resumedSegment),
4772 renderNode(request, task, node, childIndex),
4773 (resumedSegment.status = 1),
4774 null === blockedBoundary
4775 ? (request.completedRootSegment = resumedSegment)
4776 : (queueCompletedSegment(blockedBoundary, resumedSegment),
4777 blockedBoundary.parentFlushed &&
4778 request.partialBoundaries.push(blockedBoundary));
4779 } finally {
4780 (task.replay = prevReplay), (task.blockedSegment = null);
4781 }
4782}
4783function renderNodeDestructive(request, task, node, childIndex) {
4784 null !== task.replay && "number" === typeof task.replay.slots
4785 ? resumeNode(request, task, task.replay.slots, node, childIndex)
4786 : ((task.node = node),
4787 (task.childIndex = childIndex),
4788 (node = task.componentStack),
4789 pushComponentStack(task),
4790 retryNode(request, task),
4791 (task.componentStack = node));
4792}
4793function retryNode(request, task) {
4794 var node = task.node,
4795 childIndex = task.childIndex;
4796 if (null !== node) {
4797 if ("object" === typeof node) {
4798 switch (node.$$typeof) {
4799 case REACT_ELEMENT_TYPE:
4800 var type = node.type,
4801 key = node.key,
4802 props = node.props;
4803 node = props.ref;
4804 var ref = void 0 !== node ? node : null,
4805 name = getComponentNameFromType(type),
4806 keyOrIndex =
4807 null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4808 key = [task.keyPath, name, keyOrIndex];
4809 if (null !== task.replay)
4810 a: {
4811 var replay = task.replay;
4812 childIndex = replay.nodes;
4813 for (node = 0; node < childIndex.length; node++) {
4814 var node$jscomp$0 = childIndex[node];
4815 if (keyOrIndex === node$jscomp$0[1]) {
4816 if (4 === node$jscomp$0.length) {
4817 if (null !== name && name !== node$jscomp$0[0])
4818 throw Error(
4819 formatProdErrorMessage(490, node$jscomp$0[0], name)
4820 );
4821 var childNodes = node$jscomp$0[2];
4822 name = node$jscomp$0[3];
4823 keyOrIndex = task.node;
4824 task.replay = {
4825 nodes: childNodes,
4826 slots: name,
4827 pendingTasks: 1
4828 };
4829 try {
4830 renderElement(request, task, key, type, props, ref);
4831 if (
4832 1 === task.replay.pendingTasks &&
4833 0 < task.replay.nodes.length
4834 )
4835 throw Error(formatProdErrorMessage(488));
4836 task.replay.pendingTasks--;
4837 } catch (x) {
4838 if (
4839 "object" === typeof x &&
4840 null !== x &&
4841 (x === SuspenseException ||
4842 "function" === typeof x.then)
4843 )
4844 throw (
4845 (task.node === keyOrIndex
4846 ? (task.replay = replay)
4847 : childIndex.splice(node, 1),
4848 x)
4849 );
4850 task.replay.pendingTasks--;
4851 props = getThrownInfo(task.componentStack);
4852 key = request;
4853 request = task.blockedBoundary;
4854 type = x;
4855 props = logRecoverableError(key, type, props);
4856 abortRemainingReplayNodes(
4857 key,
4858 request,
4859 childNodes,
4860 name,
4861 type,
4862 props
4863 );
4864 }
4865 task.replay = replay;
4866 } else {
4867 if (type !== REACT_SUSPENSE_TYPE)
4868 throw Error(
4869 formatProdErrorMessage(
4870 490,
4871 "Suspense",
4872 getComponentNameFromType(type) || "Unknown"
4873 )
4874 );
4875 b: {
4876 replay = void 0;
4877 type = node$jscomp$0[5];
4878 ref = node$jscomp$0[2];
4879 name = node$jscomp$0[3];
4880 keyOrIndex =
4881 null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4882 node$jscomp$0 =
4883 null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4884 var prevKeyPath = task.keyPath,
4885 prevContext = task.formatContext,
4886 prevRow = task.row,
4887 previousReplaySet = task.replay,
4888 parentBoundary = task.blockedBoundary,
4889 parentHoistableState = task.hoistableState,
4890 content = props.children,
4891 fallback = props.fallback,
4892 fallbackAbortSet = new Set();
4893 props = createSuspenseBoundary(
4894 request,
4895 task.row,
4896 fallbackAbortSet,
4897 null,
4898 null
4899 );
4900 props.parentFlushed = !0;
4901 props.rootSegmentID = type;
4902 task.blockedBoundary = props;
4903 task.hoistableState = props.contentState;
4904 task.keyPath = key;
4905 task.formatContext = getSuspenseContentFormatContext(
4906 request.resumableState,
4907 prevContext
4908 );
4909 task.row = null;
4910 task.replay = {
4911 nodes: ref,
4912 slots: name,
4913 pendingTasks: 1
4914 };
4915 try {
4916 renderNode(request, task, content, -1);
4917 if (
4918 1 === task.replay.pendingTasks &&
4919 0 < task.replay.nodes.length
4920 )
4921 throw Error(formatProdErrorMessage(488));
4922 task.replay.pendingTasks--;
4923 if (0 === props.pendingTasks && 0 === props.status) {
4924 props.status = 1;
4925 request.completedBoundaries.push(props);
4926 break b;
4927 }
4928 } catch (error) {
4929 (props.status = 4),
4930 (childNodes = getThrownInfo(task.componentStack)),
4931 (replay = logRecoverableError(
4932 request,
4933 error,
4934 childNodes
4935 )),
4936 (props.errorDigest = replay),
4937 task.replay.pendingTasks--,
4938 request.clientRenderedBoundaries.push(props);
4939 } finally {
4940 (task.blockedBoundary = parentBoundary),
4941 (task.hoistableState = parentHoistableState),
4942 (task.replay = previousReplaySet),
4943 (task.keyPath = prevKeyPath),
4944 (task.formatContext = prevContext),
4945 (task.row = prevRow);
4946 }
4947 childNodes = createReplayTask(
4948 request,
4949 null,
4950 {
4951 nodes: keyOrIndex,
4952 slots: node$jscomp$0,
4953 pendingTasks: 0
4954 },
4955 fallback,
4956 -1,
4957 parentBoundary,
4958 props.fallbackState,
4959 fallbackAbortSet,
4960 [key[0], "Suspense Fallback", key[2]],
4961 getSuspenseFallbackFormatContext(
4962 request.resumableState,
4963 task.formatContext
4964 ),
4965 task.context,
4966 task.treeContext,
4967 task.row,
4968 replaceSuspenseComponentStackWithSuspenseFallbackStack(
4969 task.componentStack
4970 )
4971 );
4972 pushComponentStack(childNodes);
4973 request.pingedTasks.push(childNodes);
4974 }
4975 }
4976 childIndex.splice(node, 1);
4977 break a;
4978 }
4979 }
4980 }
4981 else renderElement(request, task, key, type, props, ref);
4982 return;
4983 case REACT_PORTAL_TYPE:
4984 throw Error(formatProdErrorMessage(257));
4985 case REACT_LAZY_TYPE:
4986 childNodes = node._init;
4987 node = childNodes(node._payload);
4988 if (12 === request.status) throw null;
4989 renderNodeDestructive(request, task, node, childIndex);
4990 return;
4991 }
4992 if (isArrayImpl(node)) {
4993 renderChildrenArray(request, task, node, childIndex);
4994 return;
4995 }
4996 if ((childNodes = getIteratorFn(node)))
4997 if ((childNodes = childNodes.call(node))) {
4998 node = childNodes.next();
4999 if (!node.done) {
5000 props = [];
5001 do props.push(node.value), (node = childNodes.next());
5002 while (!node.done);
5003 renderChildrenArray(request, task, props, childIndex);
5004 }
5005 return;
5006 }
5007 if ("function" === typeof node.then)
5008 return (
5009 (task.thenableState = null),
5010 renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
5011 );
5012 if (node.$$typeof === REACT_CONTEXT_TYPE)
5013 return renderNodeDestructive(
5014 request,
5015 task,
5016 node._currentValue2,
5017 childIndex
5018 );
5019 childIndex = Object.prototype.toString.call(node);
5020 throw Error(
5021 formatProdErrorMessage(
5022 31,
5023 "[object Object]" === childIndex
5024 ? "object with keys {" + Object.keys(node).join(", ") + "}"
5025 : childIndex
5026 )
5027 );
5028 }
5029 if ("string" === typeof node)
5030 (childIndex = task.blockedSegment),
5031 null !== childIndex &&
5032 (childIndex.lastPushedText = pushTextInstance(
5033 childIndex.chunks,
5034 node,
5035 request.renderState,
5036 childIndex.lastPushedText
5037 ));
5038 else if ("number" === typeof node || "bigint" === typeof node)
5039 (childIndex = task.blockedSegment),
5040 null !== childIndex &&
5041 (childIndex.lastPushedText = pushTextInstance(
5042 childIndex.chunks,
5043 "" + node,
5044 request.renderState,
5045 childIndex.lastPushedText
5046 ));
5047 }
5048}
5049function renderChildrenArray(request, task, children, childIndex) {
5050 var prevKeyPath = task.keyPath;
5051 if (
5052 -1 !== childIndex &&
5053 ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
5054 null !== task.replay)
5055 ) {
5056 for (
5057 var replay = task.replay, replayNodes = replay.nodes, j = 0;
5058 j < replayNodes.length;
5059 j++
5060 ) {
5061 var node = replayNodes[j];
5062 if (node[1] === childIndex) {
5063 childIndex = node[2];
5064 node = node[3];
5065 task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
5066 try {
5067 renderChildrenArray(request, task, children, -1);
5068 if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
5069 throw Error(formatProdErrorMessage(488));
5070 task.replay.pendingTasks--;
5071 } catch (x) {
5072 if (
5073 "object" === typeof x &&
5074 null !== x &&
5075 (x === SuspenseException || "function" === typeof x.then)
5076 )
5077 throw x;
5078 task.replay.pendingTasks--;
5079 children = getThrownInfo(task.componentStack);
5080 var boundary = task.blockedBoundary,
5081 error = x;
5082 children = logRecoverableError(request, error, children);
5083 abortRemainingReplayNodes(
5084 request,
5085 boundary,
5086 childIndex,
5087 node,
5088 error,
5089 children
5090 );
5091 }
5092 task.replay = replay;
5093 replayNodes.splice(j, 1);
5094 break;
5095 }
5096 }
5097 task.keyPath = prevKeyPath;
5098 return;
5099 }
5100 replay = task.treeContext;
5101 replayNodes = children.length;
5102 if (
5103 null !== task.replay &&
5104 ((j = task.replay.slots), null !== j && "object" === typeof j)
5105 ) {
5106 for (childIndex = 0; childIndex < replayNodes; childIndex++)
5107 (node = children[childIndex]),
5108 (task.treeContext = pushTreeContext(replay, replayNodes, childIndex)),
5109 (boundary = j[childIndex]),
5110 "number" === typeof boundary
5111 ? (resumeNode(request, task, boundary, node, childIndex),
5112 delete j[childIndex])
5113 : renderNode(request, task, node, childIndex);
5114 task.treeContext = replay;
5115 task.keyPath = prevKeyPath;
5116 return;
5117 }
5118 for (j = 0; j < replayNodes; j++)
5119 (childIndex = children[j]),
5120 (task.treeContext = pushTreeContext(replay, replayNodes, j)),
5121 renderNode(request, task, childIndex, j);
5122 task.treeContext = replay;
5123 task.keyPath = prevKeyPath;
5124}
5125function trackPostponedBoundary(request, trackedPostpones, boundary) {
5126 boundary.status = 5;
5127 boundary.rootSegmentID = request.nextSegmentId++;
5128 request = boundary.trackedContentKeyPath;
5129 if (null === request) throw Error(formatProdErrorMessage(486));
5130 var fallbackReplayNode = boundary.trackedFallbackNode,
5131 children = [],
5132 boundaryNode = trackedPostpones.workingMap.get(request);
5133 if (void 0 === boundaryNode)
5134 return (
5135 (boundary = [
5136 request[1],
5137 request[2],
5138 children,
5139 null,
5140 fallbackReplayNode,
5141 boundary.rootSegmentID
5142 ]),
5143 trackedPostpones.workingMap.set(request, boundary),
5144 addToReplayParent(boundary, request[0], trackedPostpones),
5145 boundary
5146 );
5147 boundaryNode[4] = fallbackReplayNode;
5148 boundaryNode[5] = boundary.rootSegmentID;
5149 return boundaryNode;
5150}
5151function trackPostpone(request, trackedPostpones, task, segment) {
5152 segment.status = 5;
5153 var keyPath = task.keyPath,
5154 boundary = task.blockedBoundary;
5155 if (null === boundary)
5156 (segment.id = request.nextSegmentId++),
5157 (trackedPostpones.rootSlots = segment.id),
5158 null !== request.completedRootSegment &&
5159 (request.completedRootSegment.status = 5);
5160 else {
5161 if (null !== boundary && 0 === boundary.status) {
5162 var boundaryNode = trackPostponedBoundary(
5163 request,
5164 trackedPostpones,
5165 boundary
5166 );
5167 if (
5168 boundary.trackedContentKeyPath === keyPath &&
5169 -1 === task.childIndex
5170 ) {
5171 -1 === segment.id &&
5172 (segment.id = segment.parentFlushed
5173 ? boundary.rootSegmentID
5174 : request.nextSegmentId++);
5175 boundaryNode[3] = segment.id;
5176 return;
5177 }
5178 }
5179 -1 === segment.id &&
5180 (segment.id =
5181 segment.parentFlushed && null !== boundary
5182 ? boundary.rootSegmentID
5183 : request.nextSegmentId++);
5184 if (-1 === task.childIndex)
5185 null === keyPath
5186 ? (trackedPostpones.rootSlots = segment.id)
5187 : ((task = trackedPostpones.workingMap.get(keyPath)),
5188 void 0 === task
5189 ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
5190 addToReplayParent(task, keyPath[0], trackedPostpones))
5191 : (task[3] = segment.id));
5192 else {
5193 if (null === keyPath)
5194 if (((request = trackedPostpones.rootSlots), null === request))
5195 request = trackedPostpones.rootSlots = {};
5196 else {
5197 if ("number" === typeof request)
5198 throw Error(formatProdErrorMessage(491));
5199 }
5200 else if (
5201 ((boundary = trackedPostpones.workingMap),
5202 (boundaryNode = boundary.get(keyPath)),
5203 void 0 === boundaryNode)
5204 )
5205 (request = {}),
5206 (boundaryNode = [keyPath[1], keyPath[2], [], request]),
5207 boundary.set(keyPath, boundaryNode),
5208 addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
5209 else if (((request = boundaryNode[3]), null === request))
5210 request = boundaryNode[3] = {};
5211 else if ("number" === typeof request)
5212 throw Error(formatProdErrorMessage(491));
5213 request[task.childIndex] = segment.id;
5214 }
5215 }
5216}
5217function untrackBoundary(request, boundary) {
5218 request = request.trackedPostpones;
5219 null !== request &&
5220 ((boundary = boundary.trackedContentKeyPath),
5221 null !== boundary &&
5222 ((boundary = request.workingMap.get(boundary)),
5223 void 0 !== boundary &&
5224 ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
5225}
5226function spawnNewSuspendedReplayTask(request, task, thenableState) {
5227 return createReplayTask(
5228 request,
5229 thenableState,
5230 task.replay,
5231 task.node,
5232 task.childIndex,
5233 task.blockedBoundary,
5234 task.hoistableState,
5235 task.abortSet,
5236 task.keyPath,
5237 task.formatContext,
5238 task.context,
5239 task.treeContext,
5240 task.row,
5241 task.componentStack
5242 );
5243}
5244function spawnNewSuspendedRenderTask(request, task, thenableState) {
5245 var segment = task.blockedSegment,
5246 newSegment = createPendingSegment(
5247 request,
5248 segment.chunks.length,
5249 null,
5250 task.formatContext,
5251 segment.lastPushedText,
5252 !0
5253 );
5254 segment.children.push(newSegment);
5255 segment.lastPushedText = !1;
5256 return createRenderTask(
5257 request,
5258 thenableState,
5259 task.node,
5260 task.childIndex,
5261 task.blockedBoundary,
5262 newSegment,
5263 task.blockedPreamble,
5264 task.hoistableState,
5265 task.abortSet,
5266 task.keyPath,
5267 task.formatContext,
5268 task.context,
5269 task.treeContext,
5270 task.row,
5271 task.componentStack
5272 );
5273}
5274function renderNode(request, task, node, childIndex) {
5275 var previousFormatContext = task.formatContext,
5276 previousContext = task.context,
5277 previousKeyPath = task.keyPath,
5278 previousTreeContext = task.treeContext,
5279 previousComponentStack = task.componentStack,
5280 segment = task.blockedSegment;
5281 if (null === segment) {
5282 segment = task.replay;
5283 try {
5284 return renderNodeDestructive(request, task, node, childIndex);
5285 } catch (thrownValue) {
5286 if (
5287 (resetHooksState(),
5288 (node =
5289 thrownValue === SuspenseException
5290 ? getSuspendedThenable()
5291 : thrownValue),
5292 12 !== request.status && "object" === typeof node && null !== node)
5293 ) {
5294 if ("function" === typeof node.then) {
5295 childIndex =
5296 thrownValue === SuspenseException
5297 ? getThenableStateAfterSuspending()
5298 : null;
5299 request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
5300 node.then(request, request);
5301 task.formatContext = previousFormatContext;
5302 task.context = previousContext;
5303 task.keyPath = previousKeyPath;
5304 task.treeContext = previousTreeContext;
5305 task.componentStack = previousComponentStack;
5306 task.replay = segment;
5307 switchContext(previousContext);
5308 return;
5309 }
5310 if ("Maximum call stack size exceeded" === node.message) {
5311 node =
5312 thrownValue === SuspenseException
5313 ? getThenableStateAfterSuspending()
5314 : null;
5315 node = spawnNewSuspendedReplayTask(request, task, node);
5316 request.pingedTasks.push(node);
5317 task.formatContext = previousFormatContext;
5318 task.context = previousContext;
5319 task.keyPath = previousKeyPath;
5320 task.treeContext = previousTreeContext;
5321 task.componentStack = previousComponentStack;
5322 task.replay = segment;
5323 switchContext(previousContext);
5324 return;
5325 }
5326 }
5327 }
5328 } else {
5329 var childrenLength = segment.children.length,
5330 chunkLength = segment.chunks.length;
5331 try {
5332 return renderNodeDestructive(request, task, node, childIndex);
5333 } catch (thrownValue$62) {
5334 if (
5335 (resetHooksState(),
5336 (segment.children.length = childrenLength),
5337 (segment.chunks.length = chunkLength),
5338 (node =
5339 thrownValue$62 === SuspenseException
5340 ? getSuspendedThenable()
5341 : thrownValue$62),
5342 12 !== request.status && "object" === typeof node && null !== node)
5343 ) {
5344 if ("function" === typeof node.then) {
5345 segment = node;
5346 node =
5347 thrownValue$62 === SuspenseException
5348 ? getThenableStateAfterSuspending()
5349 : null;
5350 request = spawnNewSuspendedRenderTask(request, task, node).ping;
5351 segment.then(request, request);
5352 task.formatContext = previousFormatContext;
5353 task.context = previousContext;
5354 task.keyPath = previousKeyPath;
5355 task.treeContext = previousTreeContext;
5356 task.componentStack = previousComponentStack;
5357 switchContext(previousContext);
5358 return;
5359 }
5360 if ("Maximum call stack size exceeded" === node.message) {
5361 segment =
5362 thrownValue$62 === SuspenseException
5363 ? getThenableStateAfterSuspending()
5364 : null;
5365 segment = spawnNewSuspendedRenderTask(request, task, segment);
5366 request.pingedTasks.push(segment);
5367 task.formatContext = previousFormatContext;
5368 task.context = previousContext;
5369 task.keyPath = previousKeyPath;
5370 task.treeContext = previousTreeContext;
5371 task.componentStack = previousComponentStack;
5372 switchContext(previousContext);
5373 return;
5374 }
5375 }
5376 }
5377 }
5378 task.formatContext = previousFormatContext;
5379 task.context = previousContext;
5380 task.keyPath = previousKeyPath;
5381 task.treeContext = previousTreeContext;
5382 switchContext(previousContext);
5383 throw node;
5384}
5385function abortTaskSoft(task) {
5386 var boundary = task.blockedBoundary,
5387 segment = task.blockedSegment;
5388 null !== segment &&
5389 ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
5390}
5391function abortRemainingReplayNodes(
5392 request$jscomp$0,
5393 boundary,
5394 nodes,
5395 slots,
5396 error,
5397 errorDigest$jscomp$0
5398) {
5399 for (var i = 0; i < nodes.length; i++) {
5400 var node = nodes[i];
5401 if (4 === node.length)
5402 abortRemainingReplayNodes(
5403 request$jscomp$0,
5404 boundary,
5405 node[2],
5406 node[3],
5407 error,
5408 errorDigest$jscomp$0
5409 );
5410 else {
5411 node = node[5];
5412 var request = request$jscomp$0,
5413 errorDigest = errorDigest$jscomp$0,
5414 resumedBoundary = createSuspenseBoundary(
5415 request,
5416 null,
5417 new Set(),
5418 null,
5419 null
5420 );
5421 resumedBoundary.parentFlushed = !0;
5422 resumedBoundary.rootSegmentID = node;
5423 resumedBoundary.status = 4;
5424 resumedBoundary.errorDigest = errorDigest;
5425 resumedBoundary.parentFlushed &&
5426 request.clientRenderedBoundaries.push(resumedBoundary);
5427 }
5428 }
5429 nodes.length = 0;
5430 if (null !== slots) {
5431 if (null === boundary) throw Error(formatProdErrorMessage(487));
5432 4 !== boundary.status &&
5433 ((boundary.status = 4),
5434 (boundary.errorDigest = errorDigest$jscomp$0),
5435 boundary.parentFlushed &&
5436 request$jscomp$0.clientRenderedBoundaries.push(boundary));
5437 if ("object" === typeof slots) for (var index in slots) delete slots[index];
5438 }
5439}
5440function abortTask(task, request, error) {
5441 var boundary = task.blockedBoundary,
5442 segment = task.blockedSegment;
5443 if (null !== segment) {
5444 if (6 === segment.status) return;
5445 segment.status = 3;
5446 }
5447 var errorInfo = getThrownInfo(task.componentStack);
5448 if (null === boundary) {
5449 if (13 !== request.status && 14 !== request.status) {
5450 boundary = task.replay;
5451 if (null === boundary) {
5452 null !== request.trackedPostpones && null !== segment
5453 ? ((boundary = request.trackedPostpones),
5454 logRecoverableError(request, error, errorInfo),
5455 trackPostpone(request, boundary, task, segment),
5456 finishedTask(request, null, task.row, segment))
5457 : (logRecoverableError(request, error, errorInfo),
5458 fatalError(request, error));
5459 return;
5460 }
5461 boundary.pendingTasks--;
5462 0 === boundary.pendingTasks &&
5463 0 < boundary.nodes.length &&
5464 ((segment = logRecoverableError(request, error, errorInfo)),
5465 abortRemainingReplayNodes(
5466 request,
5467 null,
5468 boundary.nodes,
5469 boundary.slots,
5470 error,
5471 segment
5472 ));
5473 request.pendingRootTasks--;
5474 0 === request.pendingRootTasks && completeShell(request);
5475 }
5476 } else {
5477 var trackedPostpones$63 = request.trackedPostpones;
5478 if (4 !== boundary.status) {
5479 if (null !== trackedPostpones$63 && null !== segment)
5480 return (
5481 logRecoverableError(request, error, errorInfo),
5482 trackPostpone(request, trackedPostpones$63, task, segment),
5483 boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5484 return abortTask(fallbackTask, request, error);
5485 }),
5486 boundary.fallbackAbortableTasks.clear(),
5487 finishedTask(request, boundary, task.row, segment)
5488 );
5489 boundary.status = 4;
5490 segment = logRecoverableError(request, error, errorInfo);
5491 boundary.status = 4;
5492 boundary.errorDigest = segment;
5493 untrackBoundary(request, boundary);
5494 boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
5495 }
5496 boundary.pendingTasks--;
5497 segment = boundary.row;
5498 null !== segment &&
5499 0 === --segment.pendingTasks &&
5500 finishSuspenseListRow(request, segment);
5501 boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5502 return abortTask(fallbackTask, request, error);
5503 });
5504 boundary.fallbackAbortableTasks.clear();
5505 }
5506 task = task.row;
5507 null !== task &&
5508 0 === --task.pendingTasks &&
5509 finishSuspenseListRow(request, task);
5510 request.allPendingTasks--;
5511 0 === request.allPendingTasks && completeAll(request);
5512}
5513function safelyEmitEarlyPreloads(request, shellComplete) {
5514 try {
5515 var renderState = request.renderState,
5516 onHeaders = renderState.onHeaders;
5517 if (onHeaders) {
5518 var headers = renderState.headers;
5519 if (headers) {
5520 renderState.headers = null;
5521 var linkHeader = headers.preconnects;
5522 headers.fontPreloads &&
5523 (linkHeader && (linkHeader += ", "),
5524 (linkHeader += headers.fontPreloads));
5525 headers.highImagePreloads &&
5526 (linkHeader && (linkHeader += ", "),
5527 (linkHeader += headers.highImagePreloads));
5528 if (!shellComplete) {
5529 var queueIter = renderState.styles.values(),
5530 queueStep = queueIter.next();
5531 b: for (
5532 ;
5533 0 < headers.remainingCapacity && !queueStep.done;
5534 queueStep = queueIter.next()
5535 )
5536 for (
5537 var sheetIter = queueStep.value.sheets.values(),
5538 sheetStep = sheetIter.next();
5539 0 < headers.remainingCapacity && !sheetStep.done;
5540 sheetStep = sheetIter.next()
5541 ) {
5542 var sheet = sheetStep.value,
5543 props = sheet.props,
5544 key = props.href,
5545 props$jscomp$0 = sheet.props,
5546 header = getPreloadAsHeader(props$jscomp$0.href, "style", {
5547 crossOrigin: props$jscomp$0.crossOrigin,
5548 integrity: props$jscomp$0.integrity,
5549 nonce: props$jscomp$0.nonce,
5550 type: props$jscomp$0.type,
5551 fetchPriority: props$jscomp$0.fetchPriority,
5552 referrerPolicy: props$jscomp$0.referrerPolicy,
5553 media: props$jscomp$0.media
5554 });
5555 if (0 <= (headers.remainingCapacity -= header.length + 2))
5556 (renderState.resets.style[key] = PRELOAD_NO_CREDS),
5557 linkHeader && (linkHeader += ", "),
5558 (linkHeader += header),
5559 (renderState.resets.style[key] =
5560 "string" === typeof props.crossOrigin ||
5561 "string" === typeof props.integrity
5562 ? [props.crossOrigin, props.integrity]
5563 : PRELOAD_NO_CREDS);
5564 else break b;
5565 }
5566 }
5567 linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
5568 }
5569 }
5570 } catch (error) {
5571 logRecoverableError(request, error, {});
5572 }
5573}
5574function completeShell(request) {
5575 null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
5576 null === request.trackedPostpones && preparePreamble(request);
5577 request.onShellError = noop;
5578 request = request.onShellReady;
5579 request();
5580}
5581function completeAll(request) {
5582 safelyEmitEarlyPreloads(
5583 request,
5584 null === request.trackedPostpones
5585 ? !0
5586 : null === request.completedRootSegment ||
5587 5 !== request.completedRootSegment.status
5588 );
5589 preparePreamble(request);
5590 request = request.onAllReady;
5591 request();
5592}
5593function queueCompletedSegment(boundary, segment) {
5594 if (
5595 0 === segment.chunks.length &&
5596 1 === segment.children.length &&
5597 null === segment.children[0].boundary &&
5598 -1 === segment.children[0].id
5599 ) {
5600 var childSegment = segment.children[0];
5601 childSegment.id = segment.id;
5602 childSegment.parentFlushed = !0;
5603 (1 !== childSegment.status &&
5604 3 !== childSegment.status &&
5605 4 !== childSegment.status) ||
5606 queueCompletedSegment(boundary, childSegment);
5607 } else boundary.completedSegments.push(segment);
5608}
5609function finishedTask(request, boundary, row, segment) {
5610 null !== row &&
5611 (0 === --row.pendingTasks
5612 ? finishSuspenseListRow(request, row)
5613 : row.together && tryToResolveTogetherRow(request, row));
5614 request.allPendingTasks--;
5615 if (null === boundary) {
5616 if (null !== segment && segment.parentFlushed) {
5617 if (null !== request.completedRootSegment)
5618 throw Error(formatProdErrorMessage(389));
5619 request.completedRootSegment = segment;
5620 }
5621 request.pendingRootTasks--;
5622 0 === request.pendingRootTasks && completeShell(request);
5623 } else if ((boundary.pendingTasks--, 4 !== boundary.status))
5624 if (0 === boundary.pendingTasks)
5625 if (
5626 (0 === boundary.status && (boundary.status = 1),
5627 null !== segment &&
5628 segment.parentFlushed &&
5629 (1 === segment.status || 3 === segment.status) &&
5630 queueCompletedSegment(boundary, segment),
5631 boundary.parentFlushed && request.completedBoundaries.push(boundary),
5632 1 === boundary.status)
5633 )
5634 (row = boundary.row),
5635 null !== row &&
5636 hoistHoistables(row.hoistables, boundary.contentState),
5637 isEligibleForOutlining(request, boundary) ||
5638 (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
5639 boundary.fallbackAbortableTasks.clear(),
5640 null !== row &&
5641 0 === --row.pendingTasks &&
5642 finishSuspenseListRow(request, row)),
5643 0 === request.pendingRootTasks &&
5644 null === request.trackedPostpones &&
5645 null !== boundary.contentPreamble &&
5646 preparePreamble(request);
5647 else {
5648 if (
5649 5 === boundary.status &&
5650 ((boundary = boundary.row), null !== boundary)
5651 ) {
5652 if (null !== request.trackedPostpones) {
5653 row = request.trackedPostpones;
5654 var postponedRow = boundary.next;
5655 if (
5656 null !== postponedRow &&
5657 ((segment = postponedRow.boundaries), null !== segment)
5658 )
5659 for (
5660 postponedRow.boundaries = null, postponedRow = 0;
5661 postponedRow < segment.length;
5662 postponedRow++
5663 ) {
5664 var postponedBoundary = segment[postponedRow];
5665 trackPostponedBoundary(request, row, postponedBoundary);
5666 finishedTask(request, postponedBoundary, null, null);
5667 }
5668 }
5669 0 === --boundary.pendingTasks &&
5670 finishSuspenseListRow(request, boundary);
5671 }
5672 }
5673 else
5674 null === segment ||
5675 !segment.parentFlushed ||
5676 (1 !== segment.status && 3 !== segment.status) ||
5677 (queueCompletedSegment(boundary, segment),
5678 1 === boundary.completedSegments.length &&
5679 boundary.parentFlushed &&
5680 request.partialBoundaries.push(boundary)),
5681 (boundary = boundary.row),
5682 null !== boundary &&
5683 boundary.together &&
5684 tryToResolveTogetherRow(request, boundary);
5685 0 === request.allPendingTasks && completeAll(request);
5686}
5687function performWork(request$jscomp$2) {
5688 if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
5689 var prevContext = currentActiveSnapshot,
5690 prevDispatcher = ReactSharedInternals.H;
5691 ReactSharedInternals.H = HooksDispatcher;
5692 var prevAsyncDispatcher = ReactSharedInternals.A;
5693 ReactSharedInternals.A = DefaultAsyncDispatcher;
5694 var prevRequest = currentRequest;
5695 currentRequest = request$jscomp$2;
5696 var prevResumableState = currentResumableState;
5697 currentResumableState = request$jscomp$2.resumableState;
5698 try {
5699 var pingedTasks = request$jscomp$2.pingedTasks,
5700 i;
5701 for (i = 0; i < pingedTasks.length; i++) {
5702 var task = pingedTasks[i],
5703 request = request$jscomp$2,
5704 segment = task.blockedSegment;
5705 if (null === segment) {
5706 var request$jscomp$0 = request;
5707 if (0 !== task.replay.pendingTasks) {
5708 switchContext(task.context);
5709 try {
5710 "number" === typeof task.replay.slots
5711 ? resumeNode(
5712 request$jscomp$0,
5713 task,
5714 task.replay.slots,
5715 task.node,
5716 task.childIndex
5717 )
5718 : retryNode(request$jscomp$0, task);
5719 if (
5720 1 === task.replay.pendingTasks &&
5721 0 < task.replay.nodes.length
5722 )
5723 throw Error(formatProdErrorMessage(488));
5724 task.replay.pendingTasks--;
5725 task.abortSet.delete(task);
5726 finishedTask(
5727 request$jscomp$0,
5728 task.blockedBoundary,
5729 task.row,
5730 null
5731 );
5732 } catch (thrownValue) {
5733 resetHooksState();
5734 var x =
5735 thrownValue === SuspenseException
5736 ? getSuspendedThenable()
5737 : thrownValue;
5738 if (
5739 "object" === typeof x &&
5740 null !== x &&
5741 "function" === typeof x.then
5742 ) {
5743 var ping = task.ping;
5744 x.then(ping, ping);
5745 task.thenableState =
5746 thrownValue === SuspenseException
5747 ? getThenableStateAfterSuspending()
5748 : null;
5749 } else {
5750 task.replay.pendingTasks--;
5751 task.abortSet.delete(task);
5752 var errorInfo = getThrownInfo(task.componentStack);
5753 request = void 0;
5754 var request$jscomp$1 = request$jscomp$0,
5755 boundary = task.blockedBoundary,
5756 error$jscomp$0 =
5757 12 === request$jscomp$0.status
5758 ? request$jscomp$0.fatalError
5759 : x,
5760 replayNodes = task.replay.nodes,
5761 resumeSlots = task.replay.slots;
5762 request = logRecoverableError(
5763 request$jscomp$1,
5764 error$jscomp$0,
5765 errorInfo
5766 );
5767 abortRemainingReplayNodes(
5768 request$jscomp$1,
5769 boundary,
5770 replayNodes,
5771 resumeSlots,
5772 error$jscomp$0,
5773 request
5774 );
5775 request$jscomp$0.pendingRootTasks--;
5776 0 === request$jscomp$0.pendingRootTasks &&
5777 completeShell(request$jscomp$0);
5778 request$jscomp$0.allPendingTasks--;
5779 0 === request$jscomp$0.allPendingTasks &&
5780 completeAll(request$jscomp$0);
5781 }
5782 } finally {
5783 }
5784 }
5785 } else if (
5786 ((request$jscomp$0 = void 0),
5787 (request$jscomp$1 = segment),
5788 0 === request$jscomp$1.status)
5789 ) {
5790 request$jscomp$1.status = 6;
5791 switchContext(task.context);
5792 var childrenLength = request$jscomp$1.children.length,
5793 chunkLength = request$jscomp$1.chunks.length;
5794 try {
5795 retryNode(request, task),
5796 pushSegmentFinale(
5797 request$jscomp$1.chunks,
5798 request.renderState,
5799 request$jscomp$1.lastPushedText,
5800 request$jscomp$1.textEmbedded
5801 ),
5802 task.abortSet.delete(task),
5803 (request$jscomp$1.status = 1),
5804 finishedTask(
5805 request,
5806 task.blockedBoundary,
5807 task.row,
5808 request$jscomp$1
5809 );
5810 } catch (thrownValue) {
5811 resetHooksState();
5812 request$jscomp$1.children.length = childrenLength;
5813 request$jscomp$1.chunks.length = chunkLength;
5814 var x$jscomp$0 =
5815 thrownValue === SuspenseException
5816 ? getSuspendedThenable()
5817 : 12 === request.status
5818 ? request.fatalError
5819 : thrownValue;
5820 if (12 === request.status && null !== request.trackedPostpones) {
5821 var trackedPostpones = request.trackedPostpones,
5822 thrownInfo = getThrownInfo(task.componentStack);
5823 task.abortSet.delete(task);
5824 logRecoverableError(request, x$jscomp$0, thrownInfo);
5825 trackPostpone(request, trackedPostpones, task, request$jscomp$1);
5826 finishedTask(
5827 request,
5828 task.blockedBoundary,
5829 task.row,
5830 request$jscomp$1
5831 );
5832 } else if (
5833 "object" === typeof x$jscomp$0 &&
5834 null !== x$jscomp$0 &&
5835 "function" === typeof x$jscomp$0.then
5836 ) {
5837 request$jscomp$1.status = 0;
5838 task.thenableState =
5839 thrownValue === SuspenseException
5840 ? getThenableStateAfterSuspending()
5841 : null;
5842 var ping$jscomp$0 = task.ping;
5843 x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
5844 } else {
5845 var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5846 task.abortSet.delete(task);
5847 request$jscomp$1.status = 4;
5848 var boundary$jscomp$0 = task.blockedBoundary,
5849 row = task.row;
5850 null !== row &&
5851 0 === --row.pendingTasks &&
5852 finishSuspenseListRow(request, row);
5853 request.allPendingTasks--;
5854 request$jscomp$0 = logRecoverableError(
5855 request,
5856 x$jscomp$0,
5857 errorInfo$jscomp$0
5858 );
5859 if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
5860 else if (
5861 (boundary$jscomp$0.pendingTasks--,
5862 4 !== boundary$jscomp$0.status)
5863 ) {
5864 boundary$jscomp$0.status = 4;
5865 boundary$jscomp$0.errorDigest = request$jscomp$0;
5866 untrackBoundary(request, boundary$jscomp$0);
5867 var boundaryRow = boundary$jscomp$0.row;
5868 null !== boundaryRow &&
5869 0 === --boundaryRow.pendingTasks &&
5870 finishSuspenseListRow(request, boundaryRow);
5871 boundary$jscomp$0.parentFlushed &&
5872 request.clientRenderedBoundaries.push(boundary$jscomp$0);
5873 0 === request.pendingRootTasks &&
5874 null === request.trackedPostpones &&
5875 null !== boundary$jscomp$0.contentPreamble &&
5876 preparePreamble(request);
5877 }
5878 0 === request.allPendingTasks && completeAll(request);
5879 }
5880 } finally {
5881 }
5882 }
5883 }
5884 pingedTasks.splice(0, i);
5885 null !== request$jscomp$2.destination &&
5886 flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
5887 } catch (error) {
5888 logRecoverableError(request$jscomp$2, error, {}),
5889 fatalError(request$jscomp$2, error);
5890 } finally {
5891 (currentResumableState = prevResumableState),
5892 (ReactSharedInternals.H = prevDispatcher),
5893 (ReactSharedInternals.A = prevAsyncDispatcher),
5894 prevDispatcher === HooksDispatcher && switchContext(prevContext),
5895 (currentRequest = prevRequest);
5896 }
5897 }
5898}
5899function preparePreambleFromSubtree(
5900 request,
5901 segment,
5902 collectedPreambleSegments
5903) {
5904 segment.preambleChildren.length &&
5905 collectedPreambleSegments.push(segment.preambleChildren);
5906 for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
5907 pendingPreambles =
5908 preparePreambleFromSegment(
5909 request,
5910 segment.children[i],
5911 collectedPreambleSegments
5912 ) || pendingPreambles;
5913 return pendingPreambles;
5914}
5915function preparePreambleFromSegment(
5916 request,
5917 segment,
5918 collectedPreambleSegments
5919) {
5920 var boundary = segment.boundary;
5921 if (null === boundary)
5922 return preparePreambleFromSubtree(
5923 request,
5924 segment,
5925 collectedPreambleSegments
5926 );
5927 var preamble = boundary.contentPreamble,
5928 fallbackPreamble = boundary.fallbackPreamble;
5929 if (null === preamble || null === fallbackPreamble) return !1;
5930 switch (boundary.status) {
5931 case 1:
5932 hoistPreambleState(request.renderState, preamble);
5933 request.byteSize += boundary.byteSize;
5934 segment = boundary.completedSegments[0];
5935 if (!segment) throw Error(formatProdErrorMessage(391));
5936 return preparePreambleFromSubtree(
5937 request,
5938 segment,
5939 collectedPreambleSegments
5940 );
5941 case 5:
5942 if (null !== request.trackedPostpones) return !0;
5943 case 4:
5944 if (1 === segment.status)
5945 return (
5946 hoistPreambleState(request.renderState, fallbackPreamble),
5947 preparePreambleFromSubtree(
5948 request,
5949 segment,
5950 collectedPreambleSegments
5951 )
5952 );
5953 default:
5954 return !0;
5955 }
5956}
5957function preparePreamble(request) {
5958 if (
5959 request.completedRootSegment &&
5960 null === request.completedPreambleSegments
5961 ) {
5962 var collectedPreambleSegments = [],
5963 originalRequestByteSize = request.byteSize,
5964 hasPendingPreambles = preparePreambleFromSegment(
5965 request,
5966 request.completedRootSegment,
5967 collectedPreambleSegments
5968 ),
5969 preamble = request.renderState.preamble;
5970 !1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
5971 ? (request.completedPreambleSegments = collectedPreambleSegments)
5972 : (request.byteSize = originalRequestByteSize);
5973 }
5974}
5975function flushSubtree(request, destination, segment, hoistableState) {
5976 segment.parentFlushed = !0;
5977 switch (segment.status) {
5978 case 0:
5979 segment.id = request.nextSegmentId++;
5980 case 5:
5981 return (
5982 (hoistableState = segment.id),
5983 (segment.lastPushedText = !1),
5984 (segment.textEmbedded = !1),
5985 (request = request.renderState),
5986 destination.push('<template id="'),
5987 destination.push(request.placeholderPrefix),
5988 (request = hoistableState.toString(16)),
5989 destination.push(request),
5990 destination.push('"></template>')
5991 );
5992 case 1:
5993 segment.status = 2;
5994 var r = !0,
5995 chunks = segment.chunks,
5996 chunkIdx = 0;
5997 segment = segment.children;
5998 for (var childIdx = 0; childIdx < segment.length; childIdx++) {
5999 for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++)
6000 destination.push(chunks[chunkIdx]);
6001 r = flushSegment(request, destination, r, hoistableState);
6002 }
6003 for (; chunkIdx < chunks.length - 1; chunkIdx++)
6004 destination.push(chunks[chunkIdx]);
6005 chunkIdx < chunks.length && (r = destination.push(chunks[chunkIdx]));
6006 return r;
6007 case 3:
6008 return !0;
6009 default:
6010 throw Error(formatProdErrorMessage(390));
6011 }
6012}
6013var flushedByteSize = 0;
6014function flushSegment(request, destination, segment, hoistableState) {
6015 var boundary = segment.boundary;
6016 if (null === boundary)
6017 return flushSubtree(request, destination, segment, hoistableState);
6018 boundary.parentFlushed = !0;
6019 if (4 === boundary.status) {
6020 var row = boundary.row;
6021 null !== row &&
6022 0 === --row.pendingTasks &&
6023 finishSuspenseListRow(request, row);
6024 request.renderState.generateStaticMarkup ||
6025 ((boundary = boundary.errorDigest),
6026 destination.push("\x3c!--$!--\x3e"),
6027 destination.push("<template"),
6028 boundary &&
6029 (destination.push(' data-dgst="'),
6030 (boundary = escapeTextForBrowser(boundary)),
6031 destination.push(boundary),
6032 destination.push('"')),
6033 destination.push("></template>"));
6034 flushSubtree(request, destination, segment, hoistableState);
6035 request = request.renderState.generateStaticMarkup
6036 ? !0
6037 : destination.push("\x3c!--/$--\x3e");
6038 return request;
6039 }
6040 if (1 !== boundary.status)
6041 return (
6042 0 === boundary.status &&
6043 (boundary.rootSegmentID = request.nextSegmentId++),
6044 0 < boundary.completedSegments.length &&
6045 request.partialBoundaries.push(boundary),
6046 writeStartPendingSuspenseBoundary(
6047 destination,
6048 request.renderState,
6049 boundary.rootSegmentID
6050 ),
6051 hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
6052 flushSubtree(request, destination, segment, hoistableState),
6053 destination.push("\x3c!--/$--\x3e")
6054 );
6055 if (
6056 !flushingPartialBoundaries &&
6057 isEligibleForOutlining(request, boundary) &&
6058 flushedByteSize + boundary.byteSize > request.progressiveChunkSize
6059 )
6060 return (
6061 (boundary.rootSegmentID = request.nextSegmentId++),
6062 request.completedBoundaries.push(boundary),
6063 writeStartPendingSuspenseBoundary(
6064 destination,
6065 request.renderState,
6066 boundary.rootSegmentID
6067 ),
6068 flushSubtree(request, destination, segment, hoistableState),
6069 destination.push("\x3c!--/$--\x3e")
6070 );
6071 flushedByteSize += boundary.byteSize;
6072 hoistableState && hoistHoistables(hoistableState, boundary.contentState);
6073 segment = boundary.row;
6074 null !== segment &&
6075 isEligibleForOutlining(request, boundary) &&
6076 0 === --segment.pendingTasks &&
6077 finishSuspenseListRow(request, segment);
6078 request.renderState.generateStaticMarkup ||
6079 destination.push("\x3c!--$--\x3e");
6080 segment = boundary.completedSegments;
6081 if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
6082 flushSegment(request, destination, segment[0], hoistableState);
6083 request = request.renderState.generateStaticMarkup
6084 ? !0
6085 : destination.push("\x3c!--/$--\x3e");
6086 return request;
6087}
6088function flushSegmentContainer(request, destination, segment, hoistableState) {
6089 writeStartSegment(
6090 destination,
6091 request.renderState,
6092 segment.parentFormatContext,
6093 segment.id
6094 );
6095 flushSegment(request, destination, segment, hoistableState);
6096 return writeEndSegment(destination, segment.parentFormatContext);
6097}
6098function flushCompletedBoundary(request, destination, boundary) {
6099 flushedByteSize = boundary.byteSize;
6100 for (
6101 var completedSegments = boundary.completedSegments, i = 0;
6102 i < completedSegments.length;
6103 i++
6104 )
6105 flushPartiallyCompletedSegment(
6106 request,
6107 destination,
6108 boundary,
6109 completedSegments[i]
6110 );
6111 completedSegments.length = 0;
6112 completedSegments = boundary.row;
6113 null !== completedSegments &&
6114 isEligibleForOutlining(request, boundary) &&
6115 0 === --completedSegments.pendingTasks &&
6116 finishSuspenseListRow(request, completedSegments);
6117 writeHoistablesForBoundary(
6118 destination,
6119 boundary.contentState,
6120 request.renderState
6121 );
6122 completedSegments = request.resumableState;
6123 request = request.renderState;
6124 i = boundary.rootSegmentID;
6125 boundary = boundary.contentState;
6126 var requiresStyleInsertion = request.stylesToHoist;
6127 request.stylesToHoist = !1;
6128 destination.push(request.startInlineScript);
6129 destination.push(">");
6130 requiresStyleInsertion
6131 ? (0 === (completedSegments.instructions & 4) &&
6132 ((completedSegments.instructions |= 4),
6133 destination.push(
6134 '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
6135 )),
6136 0 === (completedSegments.instructions & 2) &&
6137 ((completedSegments.instructions |= 2),
6138 destination.push(
6139 '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6140 )),
6141 0 === (completedSegments.instructions & 8)
6142 ? ((completedSegments.instructions |= 8),
6143 destination.push(
6144 '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
6145 ))
6146 : destination.push('$RR("'))
6147 : (0 === (completedSegments.instructions & 2) &&
6148 ((completedSegments.instructions |= 2),
6149 destination.push(
6150 '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6151 )),
6152 destination.push('$RC("'));
6153 completedSegments = i.toString(16);
6154 destination.push(request.boundaryPrefix);
6155 destination.push(completedSegments);
6156 destination.push('","');
6157 destination.push(request.segmentPrefix);
6158 destination.push(completedSegments);
6159 requiresStyleInsertion
6160 ? (destination.push('",'),
6161 writeStyleResourceDependenciesInJS(destination, boundary))
6162 : destination.push('"');
6163 boundary = destination.push(")\x3c/script>");
6164 return writeBootstrap(destination, request) && boundary;
6165}
6166function flushPartiallyCompletedSegment(
6167 request,
6168 destination,
6169 boundary,
6170 segment
6171) {
6172 if (2 === segment.status) return !0;
6173 var hoistableState = boundary.contentState,
6174 segmentID = segment.id;
6175 if (-1 === segmentID) {
6176 if (-1 === (segment.id = boundary.rootSegmentID))
6177 throw Error(formatProdErrorMessage(392));
6178 return flushSegmentContainer(request, destination, segment, hoistableState);
6179 }
6180 if (segmentID === boundary.rootSegmentID)
6181 return flushSegmentContainer(request, destination, segment, hoistableState);
6182 flushSegmentContainer(request, destination, segment, hoistableState);
6183 boundary = request.resumableState;
6184 request = request.renderState;
6185 destination.push(request.startInlineScript);
6186 destination.push(">");
6187 0 === (boundary.instructions & 1)
6188 ? ((boundary.instructions |= 1),
6189 destination.push(
6190 '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'
6191 ))
6192 : destination.push('$RS("');
6193 destination.push(request.segmentPrefix);
6194 segmentID = segmentID.toString(16);
6195 destination.push(segmentID);
6196 destination.push('","');
6197 destination.push(request.placeholderPrefix);
6198 destination.push(segmentID);
6199 destination = destination.push('")\x3c/script>');
6200 return destination;
6201}
6202var flushingPartialBoundaries = !1;
6203function flushCompletedQueues(request, destination) {
6204 try {
6205 if (!(0 < request.pendingRootTasks)) {
6206 var i,
6207 completedRootSegment = request.completedRootSegment;
6208 if (null !== completedRootSegment) {
6209 if (5 === completedRootSegment.status) return;
6210 var completedPreambleSegments = request.completedPreambleSegments;
6211 if (null === completedPreambleSegments) return;
6212 flushedByteSize = request.byteSize;
6213 var resumableState = request.resumableState,
6214 renderState = request.renderState,
6215 preamble = renderState.preamble,
6216 htmlChunks = preamble.htmlChunks,
6217 headChunks = preamble.headChunks,
6218 i$jscomp$0;
6219 if (htmlChunks) {
6220 for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
6221 destination.push(htmlChunks[i$jscomp$0]);
6222 if (headChunks)
6223 for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
6224 destination.push(headChunks[i$jscomp$0]);
6225 else {
6226 var chunk = startChunkForTag("head");
6227 destination.push(chunk);
6228 destination.push(">");
6229 }
6230 } else if (headChunks)
6231 for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
6232 destination.push(headChunks[i$jscomp$0]);
6233 var charsetChunks = renderState.charsetChunks;
6234 for (i$jscomp$0 = 0; i$jscomp$0 < charsetChunks.length; i$jscomp$0++)
6235 destination.push(charsetChunks[i$jscomp$0]);
6236 charsetChunks.length = 0;
6237 renderState.preconnects.forEach(flushResource, destination);
6238 renderState.preconnects.clear();
6239 var viewportChunks = renderState.viewportChunks;
6240 for (i$jscomp$0 = 0; i$jscomp$0 < viewportChunks.length; i$jscomp$0++)
6241 destination.push(viewportChunks[i$jscomp$0]);
6242 viewportChunks.length = 0;
6243 renderState.fontPreloads.forEach(flushResource, destination);
6244 renderState.fontPreloads.clear();
6245 renderState.highImagePreloads.forEach(flushResource, destination);
6246 renderState.highImagePreloads.clear();
6247 currentlyFlushingRenderState = renderState;
6248 renderState.styles.forEach(flushStylesInPreamble, destination);
6249 currentlyFlushingRenderState = null;
6250 var importMapChunks = renderState.importMapChunks;
6251 for (i$jscomp$0 = 0; i$jscomp$0 < importMapChunks.length; i$jscomp$0++)
6252 destination.push(importMapChunks[i$jscomp$0]);
6253 importMapChunks.length = 0;
6254 renderState.bootstrapScripts.forEach(flushResource, destination);
6255 renderState.scripts.forEach(flushResource, destination);
6256 renderState.scripts.clear();
6257 renderState.bulkPreloads.forEach(flushResource, destination);
6258 renderState.bulkPreloads.clear();
6259 resumableState.instructions |= 32;
6260 var hoistableChunks = renderState.hoistableChunks;
6261 for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
6262 destination.push(hoistableChunks[i$jscomp$0]);
6263 for (
6264 resumableState = hoistableChunks.length = 0;
6265 resumableState < completedPreambleSegments.length;
6266 resumableState++
6267 ) {
6268 var segments = completedPreambleSegments[resumableState];
6269 for (renderState = 0; renderState < segments.length; renderState++)
6270 flushSegment(request, destination, segments[renderState], null);
6271 }
6272 var preamble$jscomp$0 = request.renderState.preamble,
6273 headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
6274 if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
6275 var chunk$jscomp$0 = endChunkForTag("head");
6276 destination.push(chunk$jscomp$0);
6277 }
6278 var bodyChunks = preamble$jscomp$0.bodyChunks;
6279 if (bodyChunks)
6280 for (
6281 completedPreambleSegments = 0;
6282 completedPreambleSegments < bodyChunks.length;
6283 completedPreambleSegments++
6284 )
6285 destination.push(bodyChunks[completedPreambleSegments]);
6286 flushSegment(request, destination, completedRootSegment, null);
6287 request.completedRootSegment = null;
6288 var renderState$jscomp$0 = request.renderState;
6289 if (
6290 0 !== request.allPendingTasks ||
6291 0 !== request.clientRenderedBoundaries.length ||
6292 0 !== request.completedBoundaries.length ||
6293 (null !== request.trackedPostpones &&
6294 (0 !== request.trackedPostpones.rootNodes.length ||
6295 null !== request.trackedPostpones.rootSlots))
6296 ) {
6297 var resumableState$jscomp$0 = request.resumableState;
6298 if (0 === (resumableState$jscomp$0.instructions & 64)) {
6299 resumableState$jscomp$0.instructions |= 64;
6300 destination.push(renderState$jscomp$0.startInlineScript);
6301 if (0 === (resumableState$jscomp$0.instructions & 32)) {
6302 resumableState$jscomp$0.instructions |= 32;
6303 var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
6304 destination.push(' id="');
6305 var chunk$jscomp$1 = escapeTextForBrowser(shellId);
6306 destination.push(chunk$jscomp$1);
6307 destination.push('"');
6308 }
6309 destination.push(">");
6310 destination.push(
6311 "requestAnimationFrame(function(){$RT=performance.now()});"
6312 );
6313 destination.push("\x3c/script>");
6314 }
6315 }
6316 writeBootstrap(destination, renderState$jscomp$0);
6317 }
6318 var renderState$jscomp$1 = request.renderState;
6319 completedRootSegment = 0;
6320 var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
6321 for (
6322 completedRootSegment = 0;
6323 completedRootSegment < viewportChunks$jscomp$0.length;
6324 completedRootSegment++
6325 )
6326 destination.push(viewportChunks$jscomp$0[completedRootSegment]);
6327 viewportChunks$jscomp$0.length = 0;
6328 renderState$jscomp$1.preconnects.forEach(flushResource, destination);
6329 renderState$jscomp$1.preconnects.clear();
6330 renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
6331 renderState$jscomp$1.fontPreloads.clear();
6332 renderState$jscomp$1.highImagePreloads.forEach(
6333 flushResource,
6334 destination
6335 );
6336 renderState$jscomp$1.highImagePreloads.clear();
6337 renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
6338 renderState$jscomp$1.scripts.forEach(flushResource, destination);
6339 renderState$jscomp$1.scripts.clear();
6340 renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
6341 renderState$jscomp$1.bulkPreloads.clear();
6342 var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
6343 for (
6344 completedRootSegment = 0;
6345 completedRootSegment < hoistableChunks$jscomp$0.length;
6346 completedRootSegment++
6347 )
6348 destination.push(hoistableChunks$jscomp$0[completedRootSegment]);
6349 hoistableChunks$jscomp$0.length = 0;
6350 var clientRenderedBoundaries = request.clientRenderedBoundaries;
6351 for (i = 0; i < clientRenderedBoundaries.length; i++) {
6352 var boundary = clientRenderedBoundaries[i];
6353 renderState$jscomp$1 = destination;
6354 var resumableState$jscomp$1 = request.resumableState,
6355 renderState$jscomp$2 = request.renderState,
6356 id = boundary.rootSegmentID,
6357 errorDigest = boundary.errorDigest;
6358 renderState$jscomp$1.push(renderState$jscomp$2.startInlineScript);
6359 renderState$jscomp$1.push(">");
6360 0 === (resumableState$jscomp$1.instructions & 4)
6361 ? ((resumableState$jscomp$1.instructions |= 4),
6362 renderState$jscomp$1.push(
6363 '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
6364 ))
6365 : renderState$jscomp$1.push('$RX("');
6366 renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
6367 var chunk$jscomp$2 = id.toString(16);
6368 renderState$jscomp$1.push(chunk$jscomp$2);
6369 renderState$jscomp$1.push('"');
6370 if (errorDigest) {
6371 renderState$jscomp$1.push(",");
6372 var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
6373 errorDigest || ""
6374 );
6375 renderState$jscomp$1.push(chunk$jscomp$3);
6376 }
6377 var JSCompiler_inline_result =
6378 renderState$jscomp$1.push(")\x3c/script>");
6379 if (!JSCompiler_inline_result) {
6380 request.destination = null;
6381 i++;
6382 clientRenderedBoundaries.splice(0, i);
6383 return;
6384 }
6385 }
6386 clientRenderedBoundaries.splice(0, i);
6387 var completedBoundaries = request.completedBoundaries;
6388 for (i = 0; i < completedBoundaries.length; i++)
6389 if (
6390 !flushCompletedBoundary(request, destination, completedBoundaries[i])
6391 ) {
6392 request.destination = null;
6393 i++;
6394 completedBoundaries.splice(0, i);
6395 return;
6396 }
6397 completedBoundaries.splice(0, i);
6398 flushingPartialBoundaries = !0;
6399 var partialBoundaries = request.partialBoundaries;
6400 for (i = 0; i < partialBoundaries.length; i++) {
6401 var boundary$69 = partialBoundaries[i];
6402 a: {
6403 clientRenderedBoundaries = request;
6404 boundary = destination;
6405 flushedByteSize = boundary$69.byteSize;
6406 var completedSegments = boundary$69.completedSegments;
6407 for (
6408 JSCompiler_inline_result = 0;
6409 JSCompiler_inline_result < completedSegments.length;
6410 JSCompiler_inline_result++
6411 )
6412 if (
6413 !flushPartiallyCompletedSegment(
6414 clientRenderedBoundaries,
6415 boundary,
6416 boundary$69,
6417 completedSegments[JSCompiler_inline_result]
6418 )
6419 ) {
6420 JSCompiler_inline_result++;
6421 completedSegments.splice(0, JSCompiler_inline_result);
6422 var JSCompiler_inline_result$jscomp$0 = !1;
6423 break a;
6424 }
6425 completedSegments.splice(0, JSCompiler_inline_result);
6426 var row = boundary$69.row;
6427 null !== row &&
6428 row.together &&
6429 1 === boundary$69.pendingTasks &&
6430 (1 === row.pendingTasks
6431 ? unblockSuspenseListRow(
6432 clientRenderedBoundaries,
6433 row,
6434 row.hoistables
6435 )
6436 : row.pendingTasks--);
6437 JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
6438 boundary,
6439 boundary$69.contentState,
6440 clientRenderedBoundaries.renderState
6441 );
6442 }
6443 if (!JSCompiler_inline_result$jscomp$0) {
6444 request.destination = null;
6445 i++;
6446 partialBoundaries.splice(0, i);
6447 return;
6448 }
6449 }
6450 partialBoundaries.splice(0, i);
6451 flushingPartialBoundaries = !1;
6452 var largeBoundaries = request.completedBoundaries;
6453 for (i = 0; i < largeBoundaries.length; i++)
6454 if (!flushCompletedBoundary(request, destination, largeBoundaries[i])) {
6455 request.destination = null;
6456 i++;
6457 largeBoundaries.splice(0, i);
6458 return;
6459 }
6460 largeBoundaries.splice(0, i);
6461 }
6462 } finally {
6463 (flushingPartialBoundaries = !1),
6464 0 === request.allPendingTasks &&
6465 0 === request.clientRenderedBoundaries.length &&
6466 0 === request.completedBoundaries.length &&
6467 ((request.flushScheduled = !1),
6468 (i = request.resumableState),
6469 i.hasBody &&
6470 ((partialBoundaries = endChunkForTag("body")),
6471 destination.push(partialBoundaries)),
6472 i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
6473 (request.status = 14),
6474 destination.push(null),
6475 (request.destination = null));
6476 }
6477}
6478function enqueueFlush(request) {
6479 if (
6480 !1 === request.flushScheduled &&
6481 0 === request.pingedTasks.length &&
6482 null !== request.destination
6483 ) {
6484 request.flushScheduled = !0;
6485 var destination = request.destination;
6486 destination
6487 ? flushCompletedQueues(request, destination)
6488 : (request.flushScheduled = !1);
6489 }
6490}
6491function startFlowing(request, destination) {
6492 if (13 === request.status)
6493 (request.status = 14), destination.destroy(request.fatalError);
6494 else if (14 !== request.status && null === request.destination) {
6495 request.destination = destination;
6496 try {
6497 flushCompletedQueues(request, destination);
6498 } catch (error) {
6499 logRecoverableError(request, error, {}), fatalError(request, error);
6500 }
6501 }
6502}
6503function abort(request, reason) {
6504 if (11 === request.status || 10 === request.status) request.status = 12;
6505 try {
6506 var abortableTasks = request.abortableTasks;
6507 if (0 < abortableTasks.size) {
6508 var error =
6509 void 0 === reason
6510 ? Error(formatProdErrorMessage(432))
6511 : "object" === typeof reason &&
6512 null !== reason &&
6513 "function" === typeof reason.then
6514 ? Error(formatProdErrorMessage(530))
6515 : reason;
6516 request.fatalError = error;
6517 abortableTasks.forEach(function (task) {
6518 return abortTask(task, request, error);
6519 });
6520 abortableTasks.clear();
6521 }
6522 null !== request.destination &&
6523 flushCompletedQueues(request, request.destination);
6524 } catch (error$71) {
6525 logRecoverableError(request, error$71, {}), fatalError(request, error$71);
6526 }
6527}
6528function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6529 if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
6530 else {
6531 var workingMap = trackedPostpones.workingMap,
6532 parentNode = workingMap.get(parentKeyPath);
6533 void 0 === parentNode &&
6534 ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
6535 workingMap.set(parentKeyPath, parentNode),
6536 addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
6537 parentNode[2].push(node);
6538 }
6539}
6540function onError() {}
6541function renderToStringImpl(
6542 children,
6543 options,
6544 generateStaticMarkup,
6545 abortReason
6546) {
6547 var didFatal = !1,
6548 fatalError = null,
6549 result = "",
6550 readyToStream = !1;
6551 options = createResumableState(options ? options.identifierPrefix : void 0);
6552 children = createRequest(
6553 children,
6554 options,
6555 createRenderState(options, generateStaticMarkup),
6556 createFormatContext(0, null, 0, null),
6557 Infinity,
6558 onError,
6559 void 0,
6560 function () {
6561 readyToStream = !0;
6562 },
6563 void 0,
6564 void 0,
6565 void 0
6566 );
6567 children.flushScheduled = null !== children.destination;
6568 performWork(children);
6569 10 === children.status && (children.status = 11);
6570 null === children.trackedPostpones &&
6571 safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
6572 abort(children, abortReason);
6573 startFlowing(children, {
6574 push: function (chunk) {
6575 null !== chunk && (result += chunk);
6576 return !0;
6577 },
6578 destroy: function (error) {
6579 didFatal = !0;
6580 fatalError = error;
6581 }
6582 });
6583 if (didFatal && fatalError !== abortReason) throw fatalError;
6584 if (!readyToStream) throw Error(formatProdErrorMessage(426));
6585 return result;
6586}
6587exports.renderToStaticMarkup = function (children, options) {
6588 return renderToStringImpl(
6589 children,
6590 options,
6591 !0,
6592 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
6593 );
6594};
6595exports.renderToString = function (children, options) {
6596 return renderToStringImpl(
6597 children,
6598 options,
6599 !1,
6600 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
6601 );
6602};
6603exports.version = "19.2.3";
Note: See TracBrowser for help on using the repository browser.