/** * @license React * react-dom-server-legacy.browser.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011) Copyright (c) 2011 Gary Court Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use strict"; var React = require("react"), ReactDOM = require("react-dom"); function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; if (1 < arguments.length) { url += "?args[]=" + encodeURIComponent(arguments[1]); for (var i = 2; i < arguments.length; i++) url += "&args[]=" + encodeURIComponent(arguments[i]); } return ( "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_SCOPE_TYPE = Symbol.for("react.scope"), REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { var remainder = key.length & 3; var bytes = key.length - remainder; var h1 = seed; for (seed = 0; seed < bytes; ) { var k1 = (key.charCodeAt(seed) & 255) | ((key.charCodeAt(++seed) & 255) << 8) | ((key.charCodeAt(++seed) & 255) << 16) | ((key.charCodeAt(++seed) & 255) << 24); ++seed; k1 = (3432918353 * (k1 & 65535) + (((3432918353 * (k1 >>> 16)) & 65535) << 16)) & 4294967295; k1 = (k1 << 15) | (k1 >>> 17); k1 = (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) & 4294967295; h1 ^= k1; h1 = (h1 << 13) | (h1 >>> 19); h1 = (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295; h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16); } k1 = 0; switch (remainder) { case 3: k1 ^= (key.charCodeAt(seed + 2) & 255) << 16; case 2: k1 ^= (key.charCodeAt(seed + 1) & 255) << 8; case 1: (k1 ^= key.charCodeAt(seed) & 255), (k1 = (3432918353 * (k1 & 65535) + (((3432918353 * (k1 >>> 16)) & 65535) << 16)) & 4294967295), (k1 = (k1 << 15) | (k1 >>> 17)), (h1 ^= (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) & 4294967295); } h1 ^= key.length; h1 ^= h1 >>> 16; h1 = (2246822507 * (h1 & 65535) + (((2246822507 * (h1 >>> 16)) & 65535) << 16)) & 4294967295; h1 ^= h1 >>> 13; h1 = (3266489909 * (h1 & 65535) + (((3266489909 * (h1 >>> 16)) & 65535) << 16)) & 4294967295; return (h1 ^ (h1 >>> 16)) >>> 0; } var assign = Object.assign, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0; if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return (validatedAttributeNameCache[attributeName] = !0); illegalAttributeNameCache[attributeName] = !0; return !1; } var unitlessNumbers = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( " " ) ), aliases = new Map([ ["acceptCharset", "accept-charset"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ["crossOrigin", "crossorigin"], ["accentHeight", "accent-height"], ["alignmentBaseline", "alignment-baseline"], ["arabicForm", "arabic-form"], ["baselineShift", "baseline-shift"], ["capHeight", "cap-height"], ["clipPath", "clip-path"], ["clipRule", "clip-rule"], ["colorInterpolation", "color-interpolation"], ["colorInterpolationFilters", "color-interpolation-filters"], ["colorProfile", "color-profile"], ["colorRendering", "color-rendering"], ["dominantBaseline", "dominant-baseline"], ["enableBackground", "enable-background"], ["fillOpacity", "fill-opacity"], ["fillRule", "fill-rule"], ["floodColor", "flood-color"], ["floodOpacity", "flood-opacity"], ["fontFamily", "font-family"], ["fontSize", "font-size"], ["fontSizeAdjust", "font-size-adjust"], ["fontStretch", "font-stretch"], ["fontStyle", "font-style"], ["fontVariant", "font-variant"], ["fontWeight", "font-weight"], ["glyphName", "glyph-name"], ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], ["glyphOrientationVertical", "glyph-orientation-vertical"], ["horizAdvX", "horiz-adv-x"], ["horizOriginX", "horiz-origin-x"], ["imageRendering", "image-rendering"], ["letterSpacing", "letter-spacing"], ["lightingColor", "lighting-color"], ["markerEnd", "marker-end"], ["markerMid", "marker-mid"], ["markerStart", "marker-start"], ["overlinePosition", "overline-position"], ["overlineThickness", "overline-thickness"], ["paintOrder", "paint-order"], ["panose-1", "panose-1"], ["pointerEvents", "pointer-events"], ["renderingIntent", "rendering-intent"], ["shapeRendering", "shape-rendering"], ["stopColor", "stop-color"], ["stopOpacity", "stop-opacity"], ["strikethroughPosition", "strikethrough-position"], ["strikethroughThickness", "strikethrough-thickness"], ["strokeDasharray", "stroke-dasharray"], ["strokeDashoffset", "stroke-dashoffset"], ["strokeLinecap", "stroke-linecap"], ["strokeLinejoin", "stroke-linejoin"], ["strokeMiterlimit", "stroke-miterlimit"], ["strokeOpacity", "stroke-opacity"], ["strokeWidth", "stroke-width"], ["textAnchor", "text-anchor"], ["textDecoration", "text-decoration"], ["textRendering", "text-rendering"], ["transformOrigin", "transform-origin"], ["underlinePosition", "underline-position"], ["underlineThickness", "underline-thickness"], ["unicodeBidi", "unicode-bidi"], ["unicodeRange", "unicode-range"], ["unitsPerEm", "units-per-em"], ["vAlphabetic", "v-alphabetic"], ["vHanging", "v-hanging"], ["vIdeographic", "v-ideographic"], ["vMathematical", "v-mathematical"], ["vectorEffect", "vector-effect"], ["vertAdvY", "vert-adv-y"], ["vertOriginX", "vert-origin-x"], ["vertOriginY", "vert-origin-y"], ["wordSpacing", "word-spacing"], ["writingMode", "writing-mode"], ["xmlnsXlink", "xmlns:xlink"], ["xHeight", "x-height"] ]), matchHtmlRegExp = /["'&<>]/; function escapeTextForBrowser(text) { if ( "boolean" === typeof text || "number" === typeof text || "bigint" === typeof text ) return "" + text; text = "" + text; var match = matchHtmlRegExp.exec(text); if (match) { var html = "", index, lastIndex = 0; for (index = match.index; index < text.length; index++) { switch (text.charCodeAt(index)) { case 34: match = """; break; case 38: match = "&"; break; case 39: match = "'"; break; case 60: match = "<"; break; case 62: match = ">"; break; default: continue; } lastIndex !== index && (html += text.slice(lastIndex, index)); lastIndex = index + 1; html += match; } text = lastIndex !== index ? html + text.slice(lastIndex, index) : html; } return text; } var uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; function sanitizeURL(url) { return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; } var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, sharedNotPendingObject = { pending: !1, data: null, method: null, action: null }, previousDispatcher = ReactDOMSharedInternals.d; ReactDOMSharedInternals.d = { f: previousDispatcher.f, r: previousDispatcher.r, D: prefetchDNS, C: preconnect, L: preload, m: preloadModule, X: preinitScript, S: preinitStyle, M: preinitModuleScript }; var PRELOAD_NO_CREDS = [], scriptRegex = /(<\/|<)(s)(cript)/gi; function scriptReplacer(match, prefix, s, suffix) { return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix; } function createResumableState( identifierPrefix, externalRuntimeConfig, bootstrapScriptContent, bootstrapScripts, bootstrapModules ) { return { idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix, nextFormID: 0, streamingFormat: 0, bootstrapScriptContent: bootstrapScriptContent, bootstrapScripts: bootstrapScripts, bootstrapModules: bootstrapModules, instructions: 0, hasBody: !1, hasHtml: !1, unknownResources: {}, dnsResources: {}, connectResources: { default: {}, anonymous: {}, credentials: {} }, imageResources: {}, styleResources: {}, scriptResources: {}, moduleUnknownResources: {}, moduleScriptResources: {} }; } function createFormatContext(insertionMode, selectedValue, tagScope) { return { insertionMode: insertionMode, selectedValue: selectedValue, tagScope: tagScope }; } function getChildFormatContext(parentContext, type, props) { switch (type) { case "noscript": return createFormatContext(2, null, parentContext.tagScope | 1); case "select": return createFormatContext( 2, null != props.value ? props.value : props.defaultValue, parentContext.tagScope ); case "svg": return createFormatContext(3, null, parentContext.tagScope); case "picture": return createFormatContext(2, null, parentContext.tagScope | 2); case "math": return createFormatContext(4, null, parentContext.tagScope); case "foreignObject": return createFormatContext(2, null, parentContext.tagScope); case "table": return createFormatContext(5, null, parentContext.tagScope); case "thead": case "tbody": case "tfoot": return createFormatContext(6, null, parentContext.tagScope); case "colgroup": return createFormatContext(8, null, parentContext.tagScope); case "tr": return createFormatContext(7, null, parentContext.tagScope); } return 5 <= parentContext.insertionMode ? createFormatContext(2, null, parentContext.tagScope) : 0 === parentContext.insertionMode ? "html" === type ? createFormatContext(1, null, parentContext.tagScope) : createFormatContext(2, null, parentContext.tagScope) : 1 === parentContext.insertionMode ? createFormatContext(2, null, parentContext.tagScope) : parentContext; } var styleNameCache = new Map(); function pushStyleAttribute(target, style) { if ("object" !== typeof style) throw Error(formatProdErrorMessage(62)); var isFirst = !0, styleName; for (styleName in style) if (hasOwnProperty.call(style, styleName)) { var styleValue = style[styleName]; if ( null != styleValue && "boolean" !== typeof styleValue && "" !== styleValue ) { if (0 === styleName.indexOf("--")) { var nameChunk = escapeTextForBrowser(styleName); styleValue = escapeTextForBrowser(("" + styleValue).trim()); } else (nameChunk = styleNameCache.get(styleName)), void 0 === nameChunk && ((nameChunk = escapeTextForBrowser( styleName .replace(uppercasePattern, "-$1") .toLowerCase() .replace(msPattern, "-ms-") )), styleNameCache.set(styleName, nameChunk)), (styleValue = "number" === typeof styleValue ? 0 === styleValue || unitlessNumbers.has(styleName) ? "" + styleValue : styleValue + "px" : escapeTextForBrowser(("" + styleValue).trim())); isFirst ? ((isFirst = !1), target.push(' style="', nameChunk, ":", styleValue)) : target.push(";", nameChunk, ":", styleValue); } } isFirst || target.push('"'); } function pushBooleanAttribute(target, name, value) { value && "function" !== typeof value && "symbol" !== typeof value && target.push(" ", name, '=""'); } function pushStringAttribute(target, name, value) { "function" !== typeof value && "symbol" !== typeof value && "boolean" !== typeof value && target.push(" ", name, '="', escapeTextForBrowser(value), '"'); } var actionJavaScriptURL = escapeTextForBrowser( "javascript:throw new Error('React form unexpectedly submitted.')" ); function pushAdditionalFormField(value, key) { this.push('"); } function validateAdditionalFormField(value) { if ("string" !== typeof value) throw Error(formatProdErrorMessage(480)); } function getCustomFormFields(resumableState, formAction) { if ("function" === typeof formAction.$$FORM_ACTION) { var id = resumableState.nextFormID++; resumableState = resumableState.idPrefix + id; try { var customFields = formAction.$$FORM_ACTION(resumableState); if (customFields) { var formData = customFields.data; null != formData && formData.forEach(validateAdditionalFormField); } return customFields; } catch (x) { if ("object" === typeof x && null !== x && "function" === typeof x.then) throw x; } } return null; } function pushFormActionAttribute( target, resumableState, renderState, formAction, formEncType, formMethod, formTarget, name ) { var formData = null; if ("function" === typeof formAction) { var customFields = getCustomFormFields(resumableState, formAction); null !== customFields ? ((name = customFields.name), (formAction = customFields.action || ""), (formEncType = customFields.encType), (formMethod = customFields.method), (formTarget = customFields.target), (formData = customFields.data)) : (target.push(" ", "formAction", '="', actionJavaScriptURL, '"'), (formTarget = formMethod = formEncType = formAction = name = null), injectFormReplayingRuntime(resumableState, renderState)); } null != name && pushAttribute(target, "name", name); null != formAction && pushAttribute(target, "formAction", formAction); null != formEncType && pushAttribute(target, "formEncType", formEncType); null != formMethod && pushAttribute(target, "formMethod", formMethod); null != formTarget && pushAttribute(target, "formTarget", formTarget); return formData; } function pushAttribute(target, name, value) { switch (name) { case "className": pushStringAttribute(target, "class", value); break; case "tabIndex": pushStringAttribute(target, "tabindex", value); break; case "dir": case "role": case "viewBox": case "width": case "height": pushStringAttribute(target, name, value); break; case "style": pushStyleAttribute(target, value); break; case "src": case "href": if ("" === value) break; case "action": case "formAction": if ( null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value ) break; value = sanitizeURL("" + value); target.push(" ", name, '="', escapeTextForBrowser(value), '"'); break; case "defaultValue": case "defaultChecked": case "innerHTML": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "ref": break; case "autoFocus": case "multiple": case "muted": pushBooleanAttribute(target, name.toLowerCase(), value); break; case "xlinkHref": if ( "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value ) break; value = sanitizeURL("" + value); target.push(" ", "xlink:href", '="', escapeTextForBrowser(value), '"'); break; case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": "function" !== typeof value && "symbol" !== typeof value && target.push(" ", name, '="', escapeTextForBrowser(value), '"'); break; case "inert": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": value && "function" !== typeof value && "symbol" !== typeof value && target.push(" ", name, '=""'); break; case "capture": case "download": !0 === value ? target.push(" ", name, '=""') : !1 !== value && "function" !== typeof value && "symbol" !== typeof value && target.push(" ", name, '="', escapeTextForBrowser(value), '"'); break; case "cols": case "rows": case "size": case "span": "function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value && target.push(" ", name, '="', escapeTextForBrowser(value), '"'); break; case "rowSpan": case "start": "function" === typeof value || "symbol" === typeof value || isNaN(value) || target.push(" ", name, '="', escapeTextForBrowser(value), '"'); break; case "xlinkActuate": pushStringAttribute(target, "xlink:actuate", value); break; case "xlinkArcrole": pushStringAttribute(target, "xlink:arcrole", value); break; case "xlinkRole": pushStringAttribute(target, "xlink:role", value); break; case "xlinkShow": pushStringAttribute(target, "xlink:show", value); break; case "xlinkTitle": pushStringAttribute(target, "xlink:title", value); break; case "xlinkType": pushStringAttribute(target, "xlink:type", value); break; case "xmlBase": pushStringAttribute(target, "xml:base", value); break; case "xmlLang": pushStringAttribute(target, "xml:lang", value); break; case "xmlSpace": pushStringAttribute(target, "xml:space", value); break; default: if ( !(2 < name.length) || ("o" !== name[0] && "O" !== name[0]) || ("n" !== name[1] && "N" !== name[1]) ) if (((name = aliases.get(name) || name), isAttributeNameSafe(name))) { switch (typeof value) { case "function": case "symbol": return; case "boolean": var prefix$8 = name.toLowerCase().slice(0, 5); if ("data-" !== prefix$8 && "aria-" !== prefix$8) return; } target.push(" ", name, '="', escapeTextForBrowser(value), '"'); } } } function pushInnerHTML(target, innerHTML, children) { if (null != innerHTML) { if (null != children) throw Error(formatProdErrorMessage(60)); if ("object" !== typeof innerHTML || !("__html" in innerHTML)) throw Error(formatProdErrorMessage(61)); innerHTML = innerHTML.__html; null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML); } } function flattenOptionChildren(children) { var content = ""; React.Children.forEach(children, function (child) { null != child && (content += child); }); return content; } function injectFormReplayingRuntime(resumableState, renderState) { 0 === (resumableState.instructions & 16) && ((resumableState.instructions |= 16), renderState.bootstrapChunks.unshift( renderState.startInlineScript, '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))}});', "\x3c/script>" )); } function pushLinkImpl(target, props) { target.push(startChunkForTag("link")); for (var propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, "link")); default: pushAttribute(target, propKey, propValue); } } target.push("/>"); return null; } var styleRegex = /(<\/|<)(s)(tyle)/gi; function styleReplacer(match, prefix, s, suffix) { return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix; } function pushSelfClosing(target, props, tag) { target.push(startChunkForTag(tag)); for (var propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, tag)); default: pushAttribute(target, propKey, propValue); } } target.push("/>"); return null; } function pushTitleImpl(target, props) { target.push(startChunkForTag("title")); var children = null, innerHTML = null, propKey; for (propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": children = propValue; break; case "dangerouslySetInnerHTML": innerHTML = propValue; break; default: pushAttribute(target, propKey, propValue); } } target.push(">"); props = Array.isArray(children) ? 2 > children.length ? children[0] : null : children; "function" !== typeof props && "symbol" !== typeof props && null !== props && void 0 !== props && target.push(escapeTextForBrowser("" + props)); pushInnerHTML(target, innerHTML, children); target.push(endChunkForTag("title")); return null; } function pushScriptImpl(target, props) { target.push(startChunkForTag("script")); var children = null, innerHTML = null, propKey; for (propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": children = propValue; break; case "dangerouslySetInnerHTML": innerHTML = propValue; break; default: pushAttribute(target, propKey, propValue); } } target.push(">"); pushInnerHTML(target, innerHTML, children); "string" === typeof children && target.push(("" + children).replace(scriptRegex, scriptReplacer)); target.push(endChunkForTag("script")); return null; } function pushStartGenericElement(target, props, tag) { target.push(startChunkForTag(tag)); var innerHTML = (tag = null), propKey; for (propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": tag = propValue; break; case "dangerouslySetInnerHTML": innerHTML = propValue; break; default: pushAttribute(target, propKey, propValue); } } target.push(">"); pushInnerHTML(target, innerHTML, tag); return "string" === typeof tag ? (target.push(escapeTextForBrowser(tag)), null) : tag; } var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, validatedTagCache = new Map(); function startChunkForTag(tag) { var tagStartChunk = validatedTagCache.get(tag); if (void 0 === tagStartChunk) { if (!VALID_TAG_REGEX.test(tag)) throw Error(formatProdErrorMessage(65, tag)); tagStartChunk = "<" + tag; validatedTagCache.set(tag, tagStartChunk); } return tagStartChunk; } function pushStartInstance( target$jscomp$0, type, props, resumableState, renderState, hoistableState, formatContext, textEmbedded, isFallback ) { switch (type) { case "div": case "span": case "svg": case "path": break; case "a": target$jscomp$0.push(startChunkForTag("a")); var children = null, innerHTML = null, propKey; for (propKey in props) if (hasOwnProperty.call(props, propKey)) { var propValue = props[propKey]; if (null != propValue) switch (propKey) { case "children": children = propValue; break; case "dangerouslySetInnerHTML": innerHTML = propValue; break; case "href": "" === propValue ? pushStringAttribute(target$jscomp$0, "href", "") : pushAttribute(target$jscomp$0, propKey, propValue); break; default: pushAttribute(target$jscomp$0, propKey, propValue); } } target$jscomp$0.push(">"); pushInnerHTML(target$jscomp$0, innerHTML, children); if ("string" === typeof children) { target$jscomp$0.push(escapeTextForBrowser(children)); var JSCompiler_inline_result = null; } else JSCompiler_inline_result = children; return JSCompiler_inline_result; case "g": case "p": case "li": break; case "select": target$jscomp$0.push(startChunkForTag("select")); var children$jscomp$0 = null, innerHTML$jscomp$0 = null, propKey$jscomp$0; for (propKey$jscomp$0 in props) if (hasOwnProperty.call(props, propKey$jscomp$0)) { var propValue$jscomp$0 = props[propKey$jscomp$0]; if (null != propValue$jscomp$0) switch (propKey$jscomp$0) { case "children": children$jscomp$0 = propValue$jscomp$0; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$0 = propValue$jscomp$0; break; case "defaultValue": case "value": break; default: pushAttribute( target$jscomp$0, propKey$jscomp$0, propValue$jscomp$0 ); } } target$jscomp$0.push(">"); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0); return children$jscomp$0; case "option": var selectedValue = formatContext.selectedValue; target$jscomp$0.push(startChunkForTag("option")); var children$jscomp$1 = null, value = null, selected = null, innerHTML$jscomp$1 = null, propKey$jscomp$1; for (propKey$jscomp$1 in props) if (hasOwnProperty.call(props, propKey$jscomp$1)) { var propValue$jscomp$1 = props[propKey$jscomp$1]; if (null != propValue$jscomp$1) switch (propKey$jscomp$1) { case "children": children$jscomp$1 = propValue$jscomp$1; break; case "selected": selected = propValue$jscomp$1; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$1 = propValue$jscomp$1; break; case "value": value = propValue$jscomp$1; default: pushAttribute( target$jscomp$0, propKey$jscomp$1, propValue$jscomp$1 ); } } if (null != selectedValue) { var stringValue = null !== value ? "" + value : flattenOptionChildren(children$jscomp$1); if (isArrayImpl(selectedValue)) for (var i = 0; i < selectedValue.length; i++) { if ("" + selectedValue[i] === stringValue) { target$jscomp$0.push(' selected=""'); break; } } else "" + selectedValue === stringValue && target$jscomp$0.push(' selected=""'); } else selected && target$jscomp$0.push(' selected=""'); target$jscomp$0.push(">"); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1); return children$jscomp$1; case "textarea": target$jscomp$0.push(startChunkForTag("textarea")); var value$jscomp$0 = null, defaultValue = null, children$jscomp$2 = null, propKey$jscomp$2; for (propKey$jscomp$2 in props) if (hasOwnProperty.call(props, propKey$jscomp$2)) { var propValue$jscomp$2 = props[propKey$jscomp$2]; if (null != propValue$jscomp$2) switch (propKey$jscomp$2) { case "children": children$jscomp$2 = propValue$jscomp$2; break; case "value": value$jscomp$0 = propValue$jscomp$2; break; case "defaultValue": defaultValue = propValue$jscomp$2; break; case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(91)); default: pushAttribute( target$jscomp$0, propKey$jscomp$2, propValue$jscomp$2 ); } } null === value$jscomp$0 && null !== defaultValue && (value$jscomp$0 = defaultValue); target$jscomp$0.push(">"); if (null != children$jscomp$2) { if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92)); if (isArrayImpl(children$jscomp$2)) { if (1 < children$jscomp$2.length) throw Error(formatProdErrorMessage(93)); value$jscomp$0 = "" + children$jscomp$2[0]; } value$jscomp$0 = "" + children$jscomp$2; } "string" === typeof value$jscomp$0 && "\n" === value$jscomp$0[0] && target$jscomp$0.push("\n"); null !== value$jscomp$0 && target$jscomp$0.push(escapeTextForBrowser("" + value$jscomp$0)); return null; case "input": target$jscomp$0.push(startChunkForTag("input")); var name = null, formAction = null, formEncType = null, formMethod = null, formTarget = null, value$jscomp$1 = null, defaultValue$jscomp$0 = null, checked = null, defaultChecked = null, propKey$jscomp$3; for (propKey$jscomp$3 in props) if (hasOwnProperty.call(props, propKey$jscomp$3)) { var propValue$jscomp$3 = props[propKey$jscomp$3]; if (null != propValue$jscomp$3) switch (propKey$jscomp$3) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, "input")); case "name": name = propValue$jscomp$3; break; case "formAction": formAction = propValue$jscomp$3; break; case "formEncType": formEncType = propValue$jscomp$3; break; case "formMethod": formMethod = propValue$jscomp$3; break; case "formTarget": formTarget = propValue$jscomp$3; break; case "defaultChecked": defaultChecked = propValue$jscomp$3; break; case "defaultValue": defaultValue$jscomp$0 = propValue$jscomp$3; break; case "checked": checked = propValue$jscomp$3; break; case "value": value$jscomp$1 = propValue$jscomp$3; break; default: pushAttribute( target$jscomp$0, propKey$jscomp$3, propValue$jscomp$3 ); } } var formData = pushFormActionAttribute( target$jscomp$0, resumableState, renderState, formAction, formEncType, formMethod, formTarget, name ); null !== checked ? pushBooleanAttribute(target$jscomp$0, "checked", checked) : null !== defaultChecked && pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked); null !== value$jscomp$1 ? pushAttribute(target$jscomp$0, "value", value$jscomp$1) : null !== defaultValue$jscomp$0 && pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0); target$jscomp$0.push("/>"); null != formData && formData.forEach(pushAdditionalFormField, target$jscomp$0); return null; case "button": target$jscomp$0.push(startChunkForTag("button")); var children$jscomp$3 = null, innerHTML$jscomp$2 = null, name$jscomp$0 = null, formAction$jscomp$0 = null, formEncType$jscomp$0 = null, formMethod$jscomp$0 = null, formTarget$jscomp$0 = null, propKey$jscomp$4; for (propKey$jscomp$4 in props) if (hasOwnProperty.call(props, propKey$jscomp$4)) { var propValue$jscomp$4 = props[propKey$jscomp$4]; if (null != propValue$jscomp$4) switch (propKey$jscomp$4) { case "children": children$jscomp$3 = propValue$jscomp$4; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$2 = propValue$jscomp$4; break; case "name": name$jscomp$0 = propValue$jscomp$4; break; case "formAction": formAction$jscomp$0 = propValue$jscomp$4; break; case "formEncType": formEncType$jscomp$0 = propValue$jscomp$4; break; case "formMethod": formMethod$jscomp$0 = propValue$jscomp$4; break; case "formTarget": formTarget$jscomp$0 = propValue$jscomp$4; break; default: pushAttribute( target$jscomp$0, propKey$jscomp$4, propValue$jscomp$4 ); } } var formData$jscomp$0 = pushFormActionAttribute( target$jscomp$0, resumableState, renderState, formAction$jscomp$0, formEncType$jscomp$0, formMethod$jscomp$0, formTarget$jscomp$0, name$jscomp$0 ); target$jscomp$0.push(">"); null != formData$jscomp$0 && formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3); if ("string" === typeof children$jscomp$3) { target$jscomp$0.push(escapeTextForBrowser(children$jscomp$3)); var JSCompiler_inline_result$jscomp$0 = null; } else JSCompiler_inline_result$jscomp$0 = children$jscomp$3; return JSCompiler_inline_result$jscomp$0; case "form": target$jscomp$0.push(startChunkForTag("form")); var children$jscomp$4 = null, innerHTML$jscomp$3 = null, formAction$jscomp$1 = null, formEncType$jscomp$1 = null, formMethod$jscomp$1 = null, formTarget$jscomp$1 = null, propKey$jscomp$5; for (propKey$jscomp$5 in props) if (hasOwnProperty.call(props, propKey$jscomp$5)) { var propValue$jscomp$5 = props[propKey$jscomp$5]; if (null != propValue$jscomp$5) switch (propKey$jscomp$5) { case "children": children$jscomp$4 = propValue$jscomp$5; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$3 = propValue$jscomp$5; break; case "action": formAction$jscomp$1 = propValue$jscomp$5; break; case "encType": formEncType$jscomp$1 = propValue$jscomp$5; break; case "method": formMethod$jscomp$1 = propValue$jscomp$5; break; case "target": formTarget$jscomp$1 = propValue$jscomp$5; break; default: pushAttribute( target$jscomp$0, propKey$jscomp$5, propValue$jscomp$5 ); } } var formData$jscomp$1 = null, formActionName = null; if ("function" === typeof formAction$jscomp$1) { var customFields = getCustomFormFields( resumableState, formAction$jscomp$1 ); null !== customFields ? ((formAction$jscomp$1 = customFields.action || ""), (formEncType$jscomp$1 = customFields.encType), (formMethod$jscomp$1 = customFields.method), (formTarget$jscomp$1 = customFields.target), (formData$jscomp$1 = customFields.data), (formActionName = customFields.name)) : (target$jscomp$0.push( " ", "action", '="', actionJavaScriptURL, '"' ), (formTarget$jscomp$1 = formMethod$jscomp$1 = formEncType$jscomp$1 = formAction$jscomp$1 = null), injectFormReplayingRuntime(resumableState, renderState)); } null != formAction$jscomp$1 && pushAttribute(target$jscomp$0, "action", formAction$jscomp$1); null != formEncType$jscomp$1 && pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1); null != formMethod$jscomp$1 && pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1); null != formTarget$jscomp$1 && pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1); target$jscomp$0.push(">"); null !== formActionName && (target$jscomp$0.push('"), null != formData$jscomp$1 && formData$jscomp$1.forEach(pushAdditionalFormField, target$jscomp$0)); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4); if ("string" === typeof children$jscomp$4) { target$jscomp$0.push(escapeTextForBrowser(children$jscomp$4)); var JSCompiler_inline_result$jscomp$1 = null; } else JSCompiler_inline_result$jscomp$1 = children$jscomp$4; return JSCompiler_inline_result$jscomp$1; case "menuitem": target$jscomp$0.push(startChunkForTag("menuitem")); for (var propKey$jscomp$6 in props) if (hasOwnProperty.call(props, propKey$jscomp$6)) { var propValue$jscomp$6 = props[propKey$jscomp$6]; if (null != propValue$jscomp$6) switch (propKey$jscomp$6) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(400)); default: pushAttribute( target$jscomp$0, propKey$jscomp$6, propValue$jscomp$6 ); } } target$jscomp$0.push(">"); return null; case "object": target$jscomp$0.push(startChunkForTag("object")); var children$jscomp$5 = null, innerHTML$jscomp$4 = null, propKey$jscomp$7; for (propKey$jscomp$7 in props) if (hasOwnProperty.call(props, propKey$jscomp$7)) { var propValue$jscomp$7 = props[propKey$jscomp$7]; if (null != propValue$jscomp$7) switch (propKey$jscomp$7) { case "children": children$jscomp$5 = propValue$jscomp$7; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$4 = propValue$jscomp$7; break; case "data": var sanitizedValue = sanitizeURL("" + propValue$jscomp$7); if ("" === sanitizedValue) break; target$jscomp$0.push( " ", "data", '="', escapeTextForBrowser(sanitizedValue), '"' ); break; default: pushAttribute( target$jscomp$0, propKey$jscomp$7, propValue$jscomp$7 ); } } target$jscomp$0.push(">"); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5); if ("string" === typeof children$jscomp$5) { target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5)); var JSCompiler_inline_result$jscomp$2 = null; } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5; return JSCompiler_inline_result$jscomp$2; case "title": if ( 3 === formatContext.insertionMode || formatContext.tagScope & 1 || null != props.itemProp ) var JSCompiler_inline_result$jscomp$3 = pushTitleImpl( target$jscomp$0, props ); else isFallback ? (JSCompiler_inline_result$jscomp$3 = null) : (pushTitleImpl(renderState.hoistableChunks, props), (JSCompiler_inline_result$jscomp$3 = void 0)); return JSCompiler_inline_result$jscomp$3; case "link": var rel = props.rel, href = props.href, precedence = props.precedence; if ( 3 === formatContext.insertionMode || formatContext.tagScope & 1 || null != props.itemProp || "string" !== typeof rel || "string" !== typeof href || "" === href ) { pushLinkImpl(target$jscomp$0, props); var JSCompiler_inline_result$jscomp$4 = null; } else if ("stylesheet" === props.rel) if ( "string" !== typeof precedence || null != props.disabled || props.onLoad || props.onError ) JSCompiler_inline_result$jscomp$4 = pushLinkImpl( target$jscomp$0, props ); else { var styleQueue = renderState.styles.get(precedence), resourceState = resumableState.styleResources.hasOwnProperty(href) ? resumableState.styleResources[href] : void 0; if (null !== resourceState) { resumableState.styleResources[href] = null; styleQueue || ((styleQueue = { precedence: escapeTextForBrowser(precedence), rules: [], hrefs: [], sheets: new Map() }), renderState.styles.set(precedence, styleQueue)); var resource = { state: 0, props: assign({}, props, { "data-precedence": props.precedence, precedence: null }) }; if (resourceState) { 2 === resourceState.length && adoptPreloadCredentials(resource.props, resourceState); var preloadResource = renderState.preloads.stylesheets.get(href); preloadResource && 0 < preloadResource.length ? (preloadResource.length = 0) : (resource.state = 1); } styleQueue.sheets.set(href, resource); hoistableState && hoistableState.stylesheets.add(resource); } else if (styleQueue) { var resource$9 = styleQueue.sheets.get(href); resource$9 && hoistableState && hoistableState.stylesheets.add(resource$9); } textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"); JSCompiler_inline_result$jscomp$4 = null; } else props.onLoad || props.onError ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl( target$jscomp$0, props )) : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"), (JSCompiler_inline_result$jscomp$4 = isFallback ? null : pushLinkImpl(renderState.hoistableChunks, props))); return JSCompiler_inline_result$jscomp$4; case "script": var asyncProp = props.async; if ( "string" !== typeof props.src || !props.src || !asyncProp || "function" === typeof asyncProp || "symbol" === typeof asyncProp || props.onLoad || props.onError || 3 === formatContext.insertionMode || formatContext.tagScope & 1 || null != props.itemProp ) var JSCompiler_inline_result$jscomp$5 = pushScriptImpl( target$jscomp$0, props ); else { var key = props.src; if ("module" === props.type) { var resources = resumableState.moduleScriptResources; var preloads = renderState.preloads.moduleScripts; } else (resources = resumableState.scriptResources), (preloads = renderState.preloads.scripts); var resourceState$jscomp$0 = resources.hasOwnProperty(key) ? resources[key] : void 0; if (null !== resourceState$jscomp$0) { resources[key] = null; var scriptProps = props; if (resourceState$jscomp$0) { 2 === resourceState$jscomp$0.length && ((scriptProps = assign({}, props)), adoptPreloadCredentials(scriptProps, resourceState$jscomp$0)); var preloadResource$jscomp$0 = preloads.get(key); preloadResource$jscomp$0 && (preloadResource$jscomp$0.length = 0); } var resource$jscomp$0 = []; renderState.scripts.add(resource$jscomp$0); pushScriptImpl(resource$jscomp$0, scriptProps); } textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"); JSCompiler_inline_result$jscomp$5 = null; } return JSCompiler_inline_result$jscomp$5; case "style": var precedence$jscomp$0 = props.precedence, href$jscomp$0 = props.href; if ( 3 === formatContext.insertionMode || formatContext.tagScope & 1 || null != props.itemProp || "string" !== typeof precedence$jscomp$0 || "string" !== typeof href$jscomp$0 || "" === href$jscomp$0 ) { target$jscomp$0.push(startChunkForTag("style")); var children$jscomp$6 = null, innerHTML$jscomp$5 = null, propKey$jscomp$8; for (propKey$jscomp$8 in props) if (hasOwnProperty.call(props, propKey$jscomp$8)) { var propValue$jscomp$8 = props[propKey$jscomp$8]; if (null != propValue$jscomp$8) switch (propKey$jscomp$8) { case "children": children$jscomp$6 = propValue$jscomp$8; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$5 = propValue$jscomp$8; break; default: pushAttribute( target$jscomp$0, propKey$jscomp$8, propValue$jscomp$8 ); } } target$jscomp$0.push(">"); var child = Array.isArray(children$jscomp$6) ? 2 > children$jscomp$6.length ? children$jscomp$6[0] : null : children$jscomp$6; "function" !== typeof child && "symbol" !== typeof child && null !== child && void 0 !== child && target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer)); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6); target$jscomp$0.push(endChunkForTag("style")); var JSCompiler_inline_result$jscomp$6 = null; } else { var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0); if ( null !== (resumableState.styleResources.hasOwnProperty(href$jscomp$0) ? resumableState.styleResources[href$jscomp$0] : void 0) ) { resumableState.styleResources[href$jscomp$0] = null; styleQueue$jscomp$0 ? styleQueue$jscomp$0.hrefs.push( escapeTextForBrowser(href$jscomp$0) ) : ((styleQueue$jscomp$0 = { precedence: escapeTextForBrowser(precedence$jscomp$0), rules: [], hrefs: [escapeTextForBrowser(href$jscomp$0)], sheets: new Map() }), renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0)); var target = styleQueue$jscomp$0.rules, children$jscomp$7 = null, innerHTML$jscomp$6 = null, propKey$jscomp$9; for (propKey$jscomp$9 in props) if (hasOwnProperty.call(props, propKey$jscomp$9)) { var propValue$jscomp$9 = props[propKey$jscomp$9]; if (null != propValue$jscomp$9) switch (propKey$jscomp$9) { case "children": children$jscomp$7 = propValue$jscomp$9; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$6 = propValue$jscomp$9; } } var child$jscomp$0 = Array.isArray(children$jscomp$7) ? 2 > children$jscomp$7.length ? children$jscomp$7[0] : null : children$jscomp$7; "function" !== typeof child$jscomp$0 && "symbol" !== typeof child$jscomp$0 && null !== child$jscomp$0 && void 0 !== child$jscomp$0 && target.push( ("" + child$jscomp$0).replace(styleRegex, styleReplacer) ); pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7); } styleQueue$jscomp$0 && hoistableState && hoistableState.styles.add(styleQueue$jscomp$0); textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"); JSCompiler_inline_result$jscomp$6 = void 0; } return JSCompiler_inline_result$jscomp$6; case "meta": if ( 3 === formatContext.insertionMode || formatContext.tagScope & 1 || null != props.itemProp ) var JSCompiler_inline_result$jscomp$7 = pushSelfClosing( target$jscomp$0, props, "meta" ); else textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"), (JSCompiler_inline_result$jscomp$7 = isFallback ? null : "string" === typeof props.charSet ? pushSelfClosing(renderState.charsetChunks, props, "meta") : "viewport" === props.name ? pushSelfClosing(renderState.viewportChunks, props, "meta") : pushSelfClosing(renderState.hoistableChunks, props, "meta")); return JSCompiler_inline_result$jscomp$7; case "listing": case "pre": target$jscomp$0.push(startChunkForTag(type)); var children$jscomp$8 = null, innerHTML$jscomp$7 = null, propKey$jscomp$10; for (propKey$jscomp$10 in props) if (hasOwnProperty.call(props, propKey$jscomp$10)) { var propValue$jscomp$10 = props[propKey$jscomp$10]; if (null != propValue$jscomp$10) switch (propKey$jscomp$10) { case "children": children$jscomp$8 = propValue$jscomp$10; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$7 = propValue$jscomp$10; break; default: pushAttribute( target$jscomp$0, propKey$jscomp$10, propValue$jscomp$10 ); } } target$jscomp$0.push(">"); if (null != innerHTML$jscomp$7) { if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60)); if ( "object" !== typeof innerHTML$jscomp$7 || !("__html" in innerHTML$jscomp$7) ) throw Error(formatProdErrorMessage(61)); var html = innerHTML$jscomp$7.__html; null !== html && void 0 !== html && ("string" === typeof html && 0 < html.length && "\n" === html[0] ? target$jscomp$0.push("\n", html) : target$jscomp$0.push("" + html)); } "string" === typeof children$jscomp$8 && "\n" === children$jscomp$8[0] && target$jscomp$0.push("\n"); return children$jscomp$8; case "img": var src = props.src, srcSet = props.srcSet; if ( !( "lazy" === props.loading || (!src && !srcSet) || ("string" !== typeof src && null != src) || ("string" !== typeof srcSet && null != srcSet) ) && "low" !== props.fetchPriority && !1 === !!(formatContext.tagScope & 3) && ("string" !== typeof src || ":" !== src[4] || ("d" !== src[0] && "D" !== src[0]) || ("a" !== src[1] && "A" !== src[1]) || ("t" !== src[2] && "T" !== src[2]) || ("a" !== src[3] && "A" !== src[3])) && ("string" !== typeof srcSet || ":" !== srcSet[4] || ("d" !== srcSet[0] && "D" !== srcSet[0]) || ("a" !== srcSet[1] && "A" !== srcSet[1]) || ("t" !== srcSet[2] && "T" !== srcSet[2]) || ("a" !== srcSet[3] && "A" !== srcSet[3])) ) { var sizes = "string" === typeof props.sizes ? props.sizes : void 0, key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src, promotablePreloads = renderState.preloads.images, resource$jscomp$1 = promotablePreloads.get(key$jscomp$0); if (resource$jscomp$1) { if ( "high" === props.fetchPriority || 10 > renderState.highImagePreloads.size ) promotablePreloads.delete(key$jscomp$0), renderState.highImagePreloads.add(resource$jscomp$1); } else if ( !resumableState.imageResources.hasOwnProperty(key$jscomp$0) ) { resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS; var input = props.crossOrigin; var JSCompiler_inline_result$jscomp$8 = "string" === typeof input ? "use-credentials" === input ? input : "" : void 0; var headers = renderState.headers, header; headers && 0 < headers.remainingCapacity && ("high" === props.fetchPriority || 500 > headers.highImagePreloads.length) && ((header = getPreloadAsHeader(src, "image", { imageSrcSet: props.srcSet, imageSizes: props.sizes, crossOrigin: JSCompiler_inline_result$jscomp$8, integrity: props.integrity, nonce: props.nonce, type: props.type, fetchPriority: props.fetchPriority, referrerPolicy: props.refererPolicy })), 0 <= (headers.remainingCapacity -= header.length + 2)) ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS), headers.highImagePreloads && (headers.highImagePreloads += ", "), (headers.highImagePreloads += header)) : ((resource$jscomp$1 = []), pushLinkImpl(resource$jscomp$1, { rel: "preload", as: "image", href: srcSet ? void 0 : src, imageSrcSet: srcSet, imageSizes: sizes, crossOrigin: JSCompiler_inline_result$jscomp$8, integrity: props.integrity, type: props.type, fetchPriority: props.fetchPriority, referrerPolicy: props.referrerPolicy }), "high" === props.fetchPriority || 10 > renderState.highImagePreloads.size ? renderState.highImagePreloads.add(resource$jscomp$1) : (renderState.bulkPreloads.add(resource$jscomp$1), promotablePreloads.set(key$jscomp$0, resource$jscomp$1))); } } return pushSelfClosing(target$jscomp$0, props, "img"); case "base": case "area": case "br": case "col": case "embed": case "hr": case "keygen": case "param": case "source": case "track": case "wbr": return pushSelfClosing(target$jscomp$0, props, type); case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": break; case "head": if (2 > formatContext.insertionMode && null === renderState.headChunks) { renderState.headChunks = []; var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement( renderState.headChunks, props, "head" ); } else JSCompiler_inline_result$jscomp$9 = pushStartGenericElement( target$jscomp$0, props, "head" ); return JSCompiler_inline_result$jscomp$9; case "html": if ( 0 === formatContext.insertionMode && null === renderState.htmlChunks ) { renderState.htmlChunks = [""]; var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement( renderState.htmlChunks, props, "html" ); } else JSCompiler_inline_result$jscomp$10 = pushStartGenericElement( target$jscomp$0, props, "html" ); return JSCompiler_inline_result$jscomp$10; default: if (-1 !== type.indexOf("-")) { target$jscomp$0.push(startChunkForTag(type)); var children$jscomp$9 = null, innerHTML$jscomp$8 = null, propKey$jscomp$11; for (propKey$jscomp$11 in props) if (hasOwnProperty.call(props, propKey$jscomp$11)) { var propValue$jscomp$11 = props[propKey$jscomp$11]; if (null != propValue$jscomp$11) { var attributeName = propKey$jscomp$11; switch (propKey$jscomp$11) { case "children": children$jscomp$9 = propValue$jscomp$11; break; case "dangerouslySetInnerHTML": innerHTML$jscomp$8 = propValue$jscomp$11; break; case "style": pushStyleAttribute(target$jscomp$0, propValue$jscomp$11); break; case "suppressContentEditableWarning": case "suppressHydrationWarning": case "ref": break; case "className": attributeName = "class"; default: if ( isAttributeNameSafe(propKey$jscomp$11) && "function" !== typeof propValue$jscomp$11 && "symbol" !== typeof propValue$jscomp$11 && !1 !== propValue$jscomp$11 ) { if (!0 === propValue$jscomp$11) propValue$jscomp$11 = ""; else if ("object" === typeof propValue$jscomp$11) continue; target$jscomp$0.push( " ", attributeName, '="', escapeTextForBrowser(propValue$jscomp$11), '"' ); } } } } target$jscomp$0.push(">"); pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9); return children$jscomp$9; } } return pushStartGenericElement(target$jscomp$0, props, type); } var endTagCache = new Map(); function endChunkForTag(tag) { var chunk = endTagCache.get(tag); void 0 === chunk && ((chunk = ""), endTagCache.set(tag, chunk)); return chunk; } function writeBootstrap(destination, renderState) { renderState = renderState.bootstrapChunks; for (var i = 0; i < renderState.length - 1; i++) destination.push(renderState[i]); return i < renderState.length ? ((i = renderState[i]), (renderState.length = 0), destination.push(i)) : !0; } function writeStartPendingSuspenseBoundary(destination, renderState, id) { destination.push('\x3c!--$?--\x3e'); } function writeStartSegment(destination, renderState, formatContext, id) { switch (formatContext.insertionMode) { case 0: case 1: case 2: return ( destination.push('