UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

1,823 lines 55.7 kB
/** * @license React * react-dom-server-legacy.node.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict' var ea = require('react'), fa = require('stream'), n = Object.prototype.hasOwnProperty, ha = /^[: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]*$/, ia = {}, ja = {} function ka(a) { if (n.call(ja, a)) return !0 if (n.call(ia, a)) return !1 if (ha.test(a)) return (ja[a] = !0) ia[a] = !0 return !1 } function q(a, b, c, d, f, e, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b this.attributeName = d this.attributeNamespace = f this.mustUseProperty = c this.propertyName = a this.type = b this.sanitizeURL = e this.removeEmptyString = g } var r = {} 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' .split(' ') .forEach(function (a) { r[a] = new q(a, 0, !1, a, null, !1, !1) }) ;[ ['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv'], ].forEach(function (a) { var b = a[0] r[b] = new q(b, 1, !1, a[1], null, !1, !1) }) ;['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (a) { r[a] = new q(a, 2, !1, a.toLowerCase(), null, !1, !1) }) ;['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach( function (a) { r[a] = new q(a, 2, !1, a, null, !1, !1) } ) 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' .split(' ') .forEach(function (a) { r[a] = new q(a, 3, !1, a.toLowerCase(), null, !1, !1) }) ;['checked', 'multiple', 'muted', 'selected'].forEach(function (a) { r[a] = new q(a, 3, !0, a, null, !1, !1) }) ;['capture', 'download'].forEach(function (a) { r[a] = new q(a, 4, !1, a, null, !1, !1) }) ;['cols', 'rows', 'size', 'span'].forEach(function (a) { r[a] = new q(a, 6, !1, a, null, !1, !1) }) ;['rowSpan', 'start'].forEach(function (a) { r[a] = new q(a, 5, !1, a.toLowerCase(), null, !1, !1) }) var la = /[\-:]([a-z])/g function ma(a) { return a[1].toUpperCase() } 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' .split(' ') .forEach(function (a) { var b = a.replace(la, ma) r[b] = new q(b, 1, !1, a, null, !1, !1) }) 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' .split(' ') .forEach(function (a) { var b = a.replace(la, ma) r[b] = new q(b, 1, !1, a, 'http://www.w3.org/1999/xlink', !1, !1) }) ;['xml:base', 'xml:lang', 'xml:space'].forEach(function (a) { var b = a.replace(la, ma) r[b] = new q(b, 1, !1, a, 'http://www.w3.org/XML/1998/namespace', !1, !1) }) ;['tabIndex', 'crossOrigin'].forEach(function (a) { r[a] = new q(a, 1, !1, a.toLowerCase(), null, !1, !1) }) r.xlinkHref = new q( 'xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1 ) ;['src', 'href', 'action', 'formAction'].forEach(function (a) { r[a] = new q(a, 1, !1, a.toLowerCase(), null, !0, !0) }) var t = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0, }, na = ['Webkit', 'ms', 'Moz', 'O'] Object.keys(t).forEach(function (a) { na.forEach(function (b) { b = b + a.charAt(0).toUpperCase() + a.substring(1) t[b] = t[a] }) }) var oa = /["'&<>]/ function u(a) { if ('boolean' === typeof a || 'number' === typeof a) return '' + a a = '' + a var b = oa.exec(a) if (b) { var c = '', d, f = 0 for (d = b.index; d < a.length; d++) { switch (a.charCodeAt(d)) { case 34: b = '&quot;' break case 38: b = '&amp;' break case 39: b = '&#x27;' break case 60: b = '&lt;' break case 62: b = '&gt;' break default: continue } f !== d && (c += a.substring(f, d)) f = d + 1 c += b } a = f !== d ? c + a.substring(f, d) : c } return a } var pa = /([A-Z])/g, qa = /^ms-/, ra = Array.isArray function v(a, b) { return { insertionMode: a, selectedValue: b } } function sa(a, b, c) { switch (b) { case 'select': return v(1, null != c.value ? c.value : c.defaultValue) case 'svg': return v(2, null) case 'math': return v(3, null) case 'foreignObject': return v(1, null) case 'table': return v(4, null) case 'thead': case 'tbody': case 'tfoot': return v(5, null) case 'colgroup': return v(7, null) case 'tr': return v(6, null) } return 4 <= a.insertionMode || 0 === a.insertionMode ? v(1, null) : a } var ta = new Map() function ua(a, b, c) { if ('object' !== typeof c) throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." ) b = !0 for (var d in c) if (n.call(c, d)) { var f = c[d] if (null != f && 'boolean' !== typeof f && '' !== f) { if (0 === d.indexOf('--')) { var e = u(d) f = u(('' + f).trim()) } else { e = d var g = ta.get(e) void 0 !== g ? (e = g) : ((g = u(e.replace(pa, '-$1').toLowerCase().replace(qa, '-ms-'))), ta.set(e, g), (e = g)) f = 'number' === typeof f ? 0 === f || n.call(t, d) ? '' + f : f + 'px' : u(('' + f).trim()) } b ? ((b = !1), a.push(' style="', e, ':', f)) : a.push(';', e, ':', f) } } b || a.push('"') } function w(a, b, c, d) { switch (c) { case 'style': ua(a, b, d) return case 'defaultValue': case 'defaultChecked': case 'innerHTML': case 'suppressContentEditableWarning': case 'suppressHydrationWarning': return } if (!(2 < c.length) || ('o' !== c[0] && 'O' !== c[0]) || ('n' !== c[1] && 'N' !== c[1])) if (((b = r.hasOwnProperty(c) ? r[c] : null), null !== b)) { switch (typeof d) { case 'function': case 'symbol': return case 'boolean': if (!b.acceptsBooleans) return } c = b.attributeName switch (b.type) { case 3: d && a.push(' ', c, '=""') break case 4: !0 === d ? a.push(' ', c, '=""') : !1 !== d && a.push(' ', c, '="', u(d), '"') break case 5: isNaN(d) || a.push(' ', c, '="', u(d), '"') break case 6: !isNaN(d) && 1 <= d && a.push(' ', c, '="', u(d), '"') break default: ;(b.sanitizeURL && (d = '' + d), a.push(' ', c, '="', u(d), '"')) } } else if (ka(c)) { switch (typeof d) { case 'function': case 'symbol': return case 'boolean': if (((b = c.toLowerCase().slice(0, 5)), 'data-' !== b && 'aria-' !== b)) return } a.push(' ', c, '="', u(d), '"') } } function x(a, b, c) { if (null != b) { if (null != c) throw Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.') if ('object' !== typeof b || !('__html' in b)) throw Error( '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.' ) b = b.__html null !== b && void 0 !== b && a.push('' + b) } } function va(a) { var b = '' ea.Children.forEach(a, function (a) { null != a && (b += a) }) return b } function wa(a, b, c, d) { a.push(z(c)) var f = (c = null), e for (e in b) if (n.call(b, e)) { var g = b[e] if (null != g) switch (e) { case 'children': c = g break case 'dangerouslySetInnerHTML': f = g break default: w(a, d, e, g) } } a.push('>') x(a, f, c) return 'string' === typeof c ? (a.push(u(c)), null) : c } var xa = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, ya = new Map() function z(a) { var b = ya.get(a) if (void 0 === b) { if (!xa.test(a)) throw Error('Invalid tag: ' + a) b = '<' + a ya.set(a, b) } return b } function za(a, b, c, d, f) { switch (b) { case 'select': a.push(z('select')) var e = null, g = null for (l in c) if (n.call(c, l)) { var h = c[l] if (null != h) switch (l) { case 'children': e = h break case 'dangerouslySetInnerHTML': g = h break case 'defaultValue': case 'value': break default: w(a, d, l, h) } } a.push('>') x(a, g, e) return e case 'option': g = f.selectedValue a.push(z('option')) var k = (h = null), m = null var l = null for (e in c) if (n.call(c, e)) { var p = c[e] if (null != p) switch (e) { case 'children': h = p break case 'selected': m = p break case 'dangerouslySetInnerHTML': l = p break case 'value': k = p default: w(a, d, e, p) } } if (null != g) if (((c = null !== k ? '' + k : va(h)), ra(g))) for (d = 0; d < g.length; d++) { if ('' + g[d] === c) { a.push(' selected=""') break } } else '' + g === c && a.push(' selected=""') else m && a.push(' selected=""') a.push('>') x(a, l, h) return h case 'textarea': a.push(z('textarea')) l = g = e = null for (h in c) if (n.call(c, h) && ((k = c[h]), null != k)) switch (h) { case 'children': l = k break case 'value': e = k break case 'defaultValue': g = k break case 'dangerouslySetInnerHTML': throw Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.') default: w(a, d, h, k) } null === e && null !== g && (e = g) a.push('>') if (null != l) { if (null != e) throw Error( 'If you supply `defaultValue` on a <textarea>, do not pass children.' ) if (ra(l) && 1 < l.length) throw Error('<textarea> can only have at most one child.') e = '' + l } 'string' === typeof e && '\n' === e[0] && a.push('\n') null !== e && a.push(u('' + e)) return null case 'input': a.push(z('input')) k = l = h = e = null for (g in c) if (n.call(c, g) && ((m = c[g]), null != m)) switch (g) { case 'children': case 'dangerouslySetInnerHTML': throw Error( 'input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' ) case 'defaultChecked': k = m break case 'defaultValue': h = m break case 'checked': l = m break case 'value': e = m break default: w(a, d, g, m) } null !== l ? w(a, d, 'checked', l) : null !== k && w(a, d, 'checked', k) null !== e ? w(a, d, 'value', e) : null !== h && w(a, d, 'value', h) a.push('/>') return null case 'menuitem': a.push(z('menuitem')) for (var B in c) if (n.call(c, B) && ((e = c[B]), null != e)) switch (B) { case 'children': case 'dangerouslySetInnerHTML': throw Error( 'menuitems cannot have `children` nor `dangerouslySetInnerHTML`.' ) default: w(a, d, B, e) } a.push('>') return null case 'title': a.push(z('title')) e = null for (p in c) if (n.call(c, p) && ((g = c[p]), null != g)) switch (p) { case 'children': e = g break case 'dangerouslySetInnerHTML': throw Error('`dangerouslySetInnerHTML` does not make sense on <title>.') default: w(a, d, p, g) } a.push('>') return e case 'listing': case 'pre': a.push(z(b)) g = e = null for (k in c) if (n.call(c, k) && ((h = c[k]), null != h)) switch (k) { case 'children': e = h break case 'dangerouslySetInnerHTML': g = h break default: w(a, d, k, h) } a.push('>') if (null != g) { if (null != e) throw Error( 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.' ) if ('object' !== typeof g || !('__html' in g)) throw Error( '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.' ) c = g.__html null !== c && void 0 !== c && ('string' === typeof c && 0 < c.length && '\n' === c[0] ? a.push('\n', c) : a.push('' + c)) } 'string' === typeof e && '\n' === e[0] && a.push('\n') return e case 'area': case 'base': case 'br': case 'col': case 'embed': case 'hr': case 'img': case 'keygen': case 'link': case 'meta': case 'param': case 'source': case 'track': case 'wbr': a.push(z(b)) for (var C in c) if (n.call(c, C) && ((e = c[C]), null != e)) switch (C) { case 'children': case 'dangerouslySetInnerHTML': throw Error( b + ' is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' ) default: w(a, d, C, e) } a.push('/>') return null 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': return wa(a, c, b, d) case 'html': return (0 === f.insertionMode && a.push('<!DOCTYPE html>'), wa(a, c, b, d)) default: if (-1 === b.indexOf('-') && 'string' !== typeof c.is) return wa(a, c, b, d) a.push(z(b)) g = e = null for (m in c) if (n.call(c, m) && ((h = c[m]), null != h)) switch (m) { case 'children': e = h break case 'dangerouslySetInnerHTML': g = h break case 'style': ua(a, d, h) break case 'suppressContentEditableWarning': case 'suppressHydrationWarning': break default: ka(m) && 'function' !== typeof h && 'symbol' !== typeof h && a.push(' ', m, '="', u(h), '"') } a.push('>') x(a, g, e) return e } } function Aa(a, b, c) { a.push('\x3c!--$?--\x3e<template id="') if (null === c) throw Error('An ID must have been assigned before we can complete the boundary.') a.push(c) return a.push('"></template>') } function Ba(a, b, c, d) { switch (c.insertionMode) { case 0: case 1: return ( a.push('<div hidden id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 2: return ( a.push('<svg aria-hidden="true" style="display:none" id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 3: return ( a.push('<math aria-hidden="true" style="display:none" id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 4: return ( a.push('<table hidden id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 5: return ( a.push('<table hidden><tbody id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 6: return ( a.push('<table hidden><tr id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) case 7: return ( a.push('<table hidden><colgroup id="'), a.push(b.segmentPrefix), (b = d.toString(16)), a.push(b), a.push('">') ) default: throw Error('Unknown insertion mode. This is a bug in React.') } } function Ca(a, b) { switch (b.insertionMode) { case 0: case 1: return a.push('</div>') case 2: return a.push('</svg>') case 3: return a.push('</math>') case 4: return a.push('</table>') case 5: return a.push('</tbody></table>') case 6: return a.push('</tr></table>') case 7: return a.push('</colgroup></table>') default: throw Error('Unknown insertion mode. This is a bug in React.') } } var Da = /[<\u2028\u2029]/g function Ea(a) { return JSON.stringify(a).replace(Da, function (a) { switch (a) { case '<': return '\\u003c' case '\u2028': return '\\u2028' case '\u2029': return '\\u2029' default: throw Error( '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' ) } }) } function Fa(a, b) { b = void 0 === b ? '' : b return { bootstrapChunks: [], startInlineScript: '<script>', placeholderPrefix: b + 'P:', segmentPrefix: b + 'S:', boundaryPrefix: b + 'B:', idPrefix: b, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: a, } } function Ga() { return { insertionMode: 1, selectedValue: null } } function Ha(a, b, c, d) { if (c.generateStaticMarkup) return (a.push(u(b)), !1) '' === b ? (a = d) : (d && a.push('\x3c!-- --\x3e'), a.push(u(b)), (a = !0)) return a } var A = Object.assign, Ia = Symbol.for('react.element'), Ja = Symbol.for('react.portal'), Ka = Symbol.for('react.fragment'), La = Symbol.for('react.strict_mode'), Ma = Symbol.for('react.profiler'), Na = Symbol.for('react.provider'), Oa = Symbol.for('react.context'), Pa = Symbol.for('react.forward_ref'), Qa = Symbol.for('react.suspense'), Ra = Symbol.for('react.suspense_list'), Sa = Symbol.for('react.memo'), Ta = Symbol.for('react.lazy'), Ua = Symbol.for('react.scope'), Va = Symbol.for('react.debug_trace_mode'), Wa = Symbol.for('react.legacy_hidden'), Xa = Symbol.for('react.default_value'), Ya = Symbol.iterator function Za(a) { if (null == a) return null if ('function' === typeof a) return a.displayName || a.name || null if ('string' === typeof a) return a switch (a) { case Ka: return 'Fragment' case Ja: return 'Portal' case Ma: return 'Profiler' case La: return 'StrictMode' case Qa: return 'Suspense' case Ra: return 'SuspenseList' } if ('object' === typeof a) switch (a.$$typeof) { case Oa: return (a.displayName || 'Context') + '.Consumer' case Na: return (a._context.displayName || 'Context') + '.Provider' case Pa: var b = a.render a = a.displayName a || ((a = b.displayName || b.name || ''), (a = '' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef')) return a case Sa: return ((b = a.displayName || null), null !== b ? b : Za(a.type) || 'Memo') case Ta: b = a._payload a = a._init try { return Za(a(b)) } catch (c) {} } return null } var $a = {} function ab(a, b) { a = a.contextTypes if (!a) return $a var c = {}, d for (d in a) c[d] = b[d] return c } var D = null function E(a, b) { if (a !== b) { a.context._currentValue2 = a.parentValue a = a.parent var c = b.parent if (null === a) { if (null !== c) throw Error( 'The stacks must reach the root at the same time. This is a bug in React.' ) } else { if (null === c) throw Error( 'The stacks must reach the root at the same time. This is a bug in React.' ) E(a, c) } b.context._currentValue2 = b.value } } function bb(a) { a.context._currentValue2 = a.parentValue a = a.parent null !== a && bb(a) } function cb(a) { var b = a.parent null !== b && cb(b) a.context._currentValue2 = a.value } function db(a, b) { a.context._currentValue2 = a.parentValue a = a.parent if (null === a) throw Error( 'The depth must equal at least at zero before reaching the root. This is a bug in React.' ) a.depth === b.depth ? E(a, b) : db(a, b) } function eb(a, b) { var c = b.parent if (null === c) throw Error( 'The depth must equal at least at zero before reaching the root. This is a bug in React.' ) a.depth === c.depth ? E(a, c) : eb(a, c) b.context._currentValue2 = b.value } function F(a) { var b = D b !== a && (null === b ? cb(a) : null === a ? bb(b) : b.depth === a.depth ? E(b, a) : b.depth > a.depth ? db(b, a) : eb(b, a), (D = a)) } var fb = { isMounted: function () { return !1 }, enqueueSetState: function (a, b) { a = a._reactInternals null !== a.queue && a.queue.push(b) }, enqueueReplaceState: function (a, b) { a = a._reactInternals a.replace = !0 a.queue = [b] }, enqueueForceUpdate: function () {}, } function gb(a, b, c, d) { var f = void 0 !== a.state ? a.state : null a.updater = fb a.props = c a.state = f var e = { queue: [], replace: !1 } a._reactInternals = e var g = b.contextType a.context = 'object' === typeof g && null !== g ? g._currentValue2 : d g = b.getDerivedStateFromProps 'function' === typeof g && ((g = g(c, f)), (f = null === g || void 0 === g ? f : A({}, f, g)), (a.state = f)) if ( 'function' !== typeof b.getDerivedStateFromProps && 'function' !== typeof a.getSnapshotBeforeUpdate && ('function' === typeof a.UNSAFE_componentWillMount || 'function' === typeof a.componentWillMount) ) if ( ((b = a.state), 'function' === typeof a.componentWillMount && a.componentWillMount(), 'function' === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), b !== a.state && fb.enqueueReplaceState(a, a.state, null), null !== e.queue && 0 < e.queue.length) ) if ( ((b = e.queue), (g = e.replace), (e.queue = null), (e.replace = !1), g && 1 === b.length) ) a.state = b[0] else { e = g ? b[0] : a.state f = !0 for (g = g ? 1 : 0; g < b.length; g++) { var h = b[g] h = 'function' === typeof h ? h.call(a, e, c, d) : h null != h && (f ? ((f = !1), (e = A({}, e, h))) : A(e, h)) } a.state = e } else e.queue = null } var hb = { id: 1, overflow: '' } function ib(a, b, c) { var d = a.id a = a.overflow var f = 32 - G(d) - 1 d &= ~(1 << f) c += 1 var e = 32 - G(b) + f if (30 < e) { var g = f - (f % 5) e = (d & ((1 << g) - 1)).toString(32) d >>= g f -= g return { id: (1 << (32 - G(b) + f)) | (c << f) | d, overflow: e + a } } return { id: (1 << e) | (c << f) | d, overflow: a } } var G = Math.clz32 ? Math.clz32 : jb, kb = Math.log, lb = Math.LN2 function jb(a) { a >>>= 0 return 0 === a ? 32 : (31 - ((kb(a) / lb) | 0)) | 0 } function mb(a, b) { return (a === b && (0 !== a || 1 / a === 1 / b)) || (a !== a && b !== b) } var nb = 'function' === typeof Object.is ? Object.is : mb, H = null, ob = null, I = null, J = null, K = !1, L = !1, M = 0, N = null, O = 0 function P() { if (null === H) throw Error( 'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.' ) return H } function rb() { if (0 < O) throw Error('Rendered more hooks than during the previous render') return { memoizedState: null, queue: null, next: null } } function sb() { null === J ? null === I ? ((K = !1), (I = J = rb())) : ((K = !0), (J = I)) : null === J.next ? ((K = !1), (J = J.next = rb())) : ((K = !0), (J = J.next)) return J } function tb() { ob = H = null L = !1 I = null O = 0 J = N = null } function ub(a, b) { return 'function' === typeof b ? b(a) : b } function vb(a, b, c) { H = P() J = sb() if (K) { var d = J.queue b = d.dispatch if (null !== N && ((c = N.get(d)), void 0 !== c)) { N.delete(d) d = J.memoizedState do ((d = a(d, c.action)), (c = c.next)) while (null !== c) J.memoizedState = d return [d, b] } return [J.memoizedState, b] } a = a === ub ? ('function' === typeof b ? b() : b) : void 0 !== c ? c(b) : b J.memoizedState = a a = J.queue = { last: null, dispatch: null } a = a.dispatch = wb.bind(null, H, a) return [J.memoizedState, a] } function xb(a, b) { H = P() J = sb() b = void 0 === b ? null : b if (null !== J) { var c = J.memoizedState if (null !== c && null !== b) { var d = c[1] a: if (null === d) d = !1 else { for (var f = 0; f < d.length && f < b.length; f++) if (!nb(b[f], d[f])) { d = !1 break a } d = !0 } if (d) return c[0] } } a = a() J.memoizedState = [a, b] return a } function wb(a, b, c) { if (25 <= O) throw Error( 'Too many re-renders. React limits the number of renders to prevent an infinite loop.' ) if (a === H) if ( ((L = !0), (a = { action: c, next: null }), null === N && (N = new Map()), (c = N.get(b)), void 0 === c) ) N.set(b, a) else { for (b = c; null !== b.next; ) b = b.next b.next = a } } function yb() { throw Error('startTransition cannot be called during server rendering.') } function Q() {} var zb = { readContext: function (a) { return a._currentValue2 }, useContext: function (a) { P() return a._currentValue2 }, useMemo: xb, useReducer: vb, useRef: function (a) { H = P() J = sb() var b = J.memoizedState return null === b ? ((a = { current: a }), (J.memoizedState = a)) : b }, useState: function (a) { return vb(ub, a) }, useInsertionEffect: Q, useLayoutEffect: function () {}, useCallback: function (a, b) { return xb(function () { return a }, b) }, useImperativeHandle: Q, useEffect: Q, useDebugValue: Q, useDeferredValue: function (a) { P() return a }, useTransition: function () { P() return [!1, yb] }, useId: function () { var a = ob.treeContext var b = a.overflow a = a.id a = (a & ~(1 << (32 - G(a) - 1))).toString(32) + b var c = R if (null === c) throw Error( 'Invalid hook call. Hooks can only be called inside of the body of a function component.' ) b = M++ a = ':' + c.idPrefix + 'R' + a 0 < b && (a += 'H' + b.toString(32)) return a + ':' }, useMutableSource: function (a, b) { P() return b(a._source) }, useSyncExternalStore: function (a, b, c) { if (void 0 === c) throw Error( 'Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.' ) return c() }, }, R = null, Ab = ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher function Bb(a) { console.error(a) return null } function S() {} function Cb(a, b, c, d, f, e, g, h, k) { var m = [], l = new Set() b = { destination: null, responseState: b, progressiveChunkSize: void 0 === d ? 12800 : d, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: l, pingedTasks: m, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: void 0 === f ? Bb : f, onAllReady: void 0 === e ? S : e, onShellReady: void 0 === g ? S : g, onShellError: void 0 === h ? S : h, onFatalError: void 0 === k ? S : k, } c = T(b, 0, null, c, !1, !1) c.parentFlushed = !0 a = Db(b, a, null, c, l, $a, null, hb) m.push(a) return b } function Db(a, b, c, d, f, e, g, h) { a.allPendingTasks++ null === c ? a.pendingRootTasks++ : c.pendingTasks++ var k = { node: b, ping: function () { var b = a.pingedTasks b.push(k) 1 === b.length && Eb(a) }, blockedBoundary: c, blockedSegment: d, abortSet: f, legacyContext: e, context: g, treeContext: h, } f.add(k) return k } function T(a, b, c, d, f, e) { return { status: 0, id: -1, index: b, parentFlushed: !1, chunks: [], children: [], formatContext: d, boundary: c, lastPushedText: f, textEmbedded: e, } } function U(a, b) { a = a.onError(b) if (null != a && 'string' !== typeof a) throw Error( 'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof a + '" instead' ) return a } function V(a, b) { var c = a.onShellError c(b) c = a.onFatalError c(b) null !== a.destination ? ((a.status = 2), a.destination.destroy(b)) : ((a.status = 1), (a.fatalError = b)) } function Fb(a, b, c, d, f) { H = {} ob = b M = 0 for (a = c(d, f); L; ) ((L = !1), (M = 0), (O += 1), (J = null), (a = c(d, f))) tb() return a } function Gb(a, b, c, d) { var f = c.render(), e = d.childContextTypes if (null !== e && void 0 !== e) { var g = b.legacyContext if ('function' !== typeof c.getChildContext) d = g else { c = c.getChildContext() for (var h in c) if (!(h in e)) throw Error( (Za(d) || 'Unknown') + '.getChildContext(): key "' + h + '" is not defined in childContextTypes.' ) d = A({}, g, c) } b.legacyContext = d W(a, b, f) b.legacyContext = g } else W(a, b, f) } function Hb(a, b) { if (a && a.defaultProps) { b = A({}, b) a = a.defaultProps for (var c in a) void 0 === b[c] && (b[c] = a[c]) return b } return b } function Ib(a, b, c, d, f) { if ('function' === typeof c) if (c.prototype && c.prototype.isReactComponent) { f = ab(c, b.legacyContext) var e = c.contextType e = new c(d, 'object' === typeof e && null !== e ? e._currentValue2 : f) gb(e, c, d, f) Gb(a, b, e, c) } else { e = ab(c, b.legacyContext) f = Fb(a, b, c, d, e) var g = 0 !== M if ( 'object' === typeof f && null !== f && 'function' === typeof f.render && void 0 === f.$$typeof ) (gb(f, c, d, e), Gb(a, b, f, c)) else if (g) { d = b.treeContext b.treeContext = ib(d, 1, 0) try { W(a, b, f) } finally { b.treeContext = d } } else W(a, b, f) } else if ('string' === typeof c) { f = b.blockedSegment e = za(f.chunks, c, d, a.responseState, f.formatContext) f.lastPushedText = !1 g = f.formatContext f.formatContext = sa(g, c, d) Jb(a, b, e) f.formatContext = g switch (c) { case 'area': case 'base': case 'br': case 'col': case 'embed': case 'hr': case 'img': case 'input': case 'keygen': case 'link': case 'meta': case 'param': case 'source': case 'track': case 'wbr': break default: f.chunks.push('</', c, '>') } f.lastPushedText = !1 } else { switch (c) { case Wa: case Va: case La: case Ma: case Ka: W(a, b, d.children) return case Ra: W(a, b, d.children) return case Ua: throw Error('ReactDOMServer does not yet support scope components.') case Qa: a: { c = b.blockedBoundary f = b.blockedSegment e = d.fallback d = d.children g = new Set() var h = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: g, errorDigest: null, }, k = T(a, f.chunks.length, h, f.formatContext, !1, !1) f.children.push(k) f.lastPushedText = !1 var m = T(a, 0, null, f.formatContext, !1, !1) m.parentFlushed = !0 b.blockedBoundary = h b.blockedSegment = m try { if ( (Jb(a, b, d), a.responseState.generateStaticMarkup || (m.lastPushedText && m.textEmbedded && m.chunks.push('\x3c!-- --\x3e')), (m.status = 1), X(h, m), 0 === h.pendingTasks) ) break a } catch (l) { ;((m.status = 4), (h.forceClientRender = !0), (h.errorDigest = U(a, l))) } finally { ;((b.blockedBoundary = c), (b.blockedSegment = f)) } b = Db(a, e, c, k, g, b.legacyContext, b.context, b.treeContext) a.pingedTasks.push(b) } return } if ('object' === typeof c && null !== c) switch (c.$$typeof) { case Pa: d = Fb(a, b, c.render, d, f) if (0 !== M) { c = b.treeContext b.treeContext = ib(c, 1, 0) try { W(a, b, d) } finally { b.treeContext = c } } else W(a, b, d) return case Sa: c = c.type d = Hb(c, d) Ib(a, b, c, d, f) return case Na: f = d.children c = c._context d = d.value e = c._currentValue2 c._currentValue2 = d g = D D = d = { parent: g, depth: null === g ? 0 : g.depth + 1, context: c, parentValue: e, value: d, } b.context = d W(a, b, f) a = D if (null === a) throw Error( 'Tried to pop a Context at the root of the app. This is a bug in React.' ) d = a.parentValue a.context._currentValue2 = d === Xa ? a.context._defaultValue : d a = D = a.parent b.context = a return case Oa: d = d.children d = d(c._currentValue2) W(a, b, d) return case Ta: f = c._init c = f(c._payload) d = Hb(c, d) Ib(a, b, c, d, void 0) return } throw Error( 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + ((null == c ? c : typeof c) + '.') ) } } function W(a, b, c) { b.node = c if ('object' === typeof c && null !== c) { switch (c.$$typeof) { case Ia: Ib(a, b, c.type, c.props, c.ref) return case Ja: throw Error( 'Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.' ) case Ta: var d = c._init c = d(c._payload) W(a, b, c) return } if (ra(c)) { Kb(a, b, c) return } null === c || 'object' !== typeof c ? (d = null) : ((d = (Ya && c[Ya]) || c['@@iterator']), (d = 'function' === typeof d ? d : null)) if (d && (d = d.call(c))) { c = d.next() if (!c.done) { var f = [] do (f.push(c.value), (c = d.next())) while (!c.done) Kb(a, b, f) } return } a = Object.prototype.toString.call(c) throw Error( 'Objects are not valid as a React child (found: ' + ('[object Object]' === a ? 'object with keys {' + Object.keys(c).join(', ') + '}' : a) + '). If you meant to render a collection of children, use an array instead.' ) } 'string' === typeof c ? ((d = b.blockedSegment), (d.lastPushedText = Ha( b.blockedSegment.chunks, c, a.responseState, d.lastPushedText ))) : 'number' === typeof c && ((d = b.blockedSegment), (d.lastPushedText = Ha( b.blockedSegment.chunks, '' + c, a.responseState, d.lastPushedText ))) } function Kb(a, b, c) { for (var d = c.length, f = 0; f < d; f++) { var e = b.treeContext b.treeContext = ib(e, d, f) try { Jb(a, b, c[f]) } finally { b.treeContext = e } } } function Jb(a, b, c) { var d = b.blockedSegment.formatContext, f = b.legacyContext, e = b.context try { return W(a, b, c) } catch (k) { if ((tb(), 'object' === typeof k && null !== k && 'function' === typeof k.then)) { c = k var g = b.blockedSegment, h = T(a, g.chunks.length, null, g.formatContext, g.lastPushedText, !0) g.children.push(h) g.lastPushedText = !1 a = Db( a, b.node, b.blockedBoundary, h, b.abortSet, b.legacyContext, b.context, b.treeContext ).ping c.then(a, a) b.blockedSegment.formatContext = d b.legacyContext = f b.context = e F(e) } else throw ( (b.blockedSegment.formatContext = d), (b.legacyContext = f), (b.context = e), F(e), k ) } } function Lb(a) { var b = a.blockedBoundary a = a.blockedSegment a.status = 3 Mb(this, b, a) } function Nb(a, b, c) { var d = a.blockedBoundary a.blockedSegment.status = 3 null === d ? (b.allPendingTasks--, 2 !== b.status && ((b.status = 2), null !== b.destination && b.destination.push(null))) : (d.pendingTasks--, d.forceClientRender || ((d.forceClientRender = !0), (d.errorDigest = b.onError( void 0 === c ? Error('The render was aborted by the server without a reason.') : c )), d.parentFlushed && b.clientRenderedBoundaries.push(d)), d.fallbackAbortableTasks.forEach(function (a) { return Nb(a, b, c) }), d.fallbackAbortableTasks.clear(), b.allPendingTasks--, 0 === b.allPendingTasks && ((a = b.onAllReady), a())) } function X(a, b) { if ( 0 === b.chunks.length && 1 === b.children.length && null === b.children[0].boundary ) { var c = b.children[0] c.id = b.id c.parentFlushed = !0 1 === c.status && X(a, c) } else a.completedSegments.push(b) } function Mb(a, b, c) { if (null === b) { if (c.parentFlushed) { if (null !== a.completedRootSegment) throw Error('There can only be one root segment. This is a bug in React.') a.completedRootSegment = c } a.pendingRootTasks-- 0 === a.pendingRootTasks && ((a.onShellError = S), (b = a.onShellReady), b()) } else (b.pendingTasks--, b.forceClientRender || (0 === b.pendingTasks ? (c.parentFlushed && 1 === c.status && X(b, c), b.parentFlushed && a.completedBoundaries.push(b), b.fallbackAbortableTasks.forEach(Lb, a), b.fallbackAbortableTasks.clear()) : c.parentFlushed && 1 === c.status && (X(b, c), 1 === b.completedSegments.length && b.parentFlushed && a.partialBoundaries.push(b)))) a.allPendingTasks-- 0 === a.allPendingTasks && ((a = a.onAllReady), a()) } function Eb(a) { if (2 !== a.status) { var b = D, c = Ab.current Ab.current = zb var d = R R = a.responseState try { var f = a.pingedTasks, e for (e = 0; e < f.length; e++) { var g = f[e] var h = a, k = g.blockedSegment if (0 === k.status) { F(g.context) try { ;(W(h, g, g.node), h.responseState.generateStaticMarkup || (k.lastPushedText && k.textEmbedded && k.chunks.push('\x3c!-- --\x3e')), g.abortSet.delete(g), (k.status = 1), Mb(h, g.blockedBoundary, k)) } catch (y) { if ( (tb(), 'object' === typeof y && null !== y && 'function' === typeof y.then) ) { var m = g.ping y.then(m, m) } else { g.abortSet.delete(g) k.status = 4 var l = g.blockedBoundary, p = y, B = U(h, p) null === l ? V(h, p) : (l.pendingTasks--, l.forceClientRender || ((l.forceClientRender = !0), (l.errorDigest = B), l.parentFlushed && h.clientRenderedBoundaries.push(l))) h.allPendingTasks-- if (0 === h.allPendingTasks) { var C = h.onAllReady C() } } } finally { } } } f.splice(0, e) null !== a.destination && Ob(a, a.destination) } catch (y) { ;(U(a, y), V(a, y)) } finally { ;((R = d), (Ab.current = c), c === zb && F(b)) } } } function Y(a, b, c) { c.parentFlushed = !0 switch (c.status) { case 0: var d = (c.id = a.nextSegmentId++) c.lastPushedText = !1 c.textEmbedded = !1 a = a.responseState b.push('<template id="') b.push(a.placeholderPrefix) a = d.toString(16) b.push(a) return b.push('"></template>') case 1: c.status = 2 var f = !0 d = c.chunks var e = 0 c = c.children for (var g = 0; g < c.length; g++) { for (f = c[g]; e < f.index; e++) b.push(d[e]) f = Z(a, b, f) } for (; e < d.length - 1; e++) b.push(d[e]) e < d.length && (f = b.push(d[e])) return f default: throw Error( 'Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.' ) } } function Z(a, b, c) { var d = c.boundary if (null === d) return Y(a, b, c) d.parentFlushed = !0 if (d.forceClientRender) return ( a.responseState.generateStaticMarkup || ((d = d.errorDigest), b.push('\x3c!--$!--\x3e'), b.push('<template'), d && (b.push(' data-dgst="'), (d = u(d)), b.push(d), b.push('"')), b.push('></template>')), Y(a, b, c), (a = a.responseState.generateStaticMarkup ? !0 : b.push('\x3c!--/$--\x3e')), a ) if (0 < d.pendingTasks) { d.rootSegmentID = a.nextSegmentId++ 0 < d.completedSegments.length && a.partialBoundaries.push(d) var f = a.responseState var e = f.nextSuspenseID++ f = f.boundaryPrefix + e.toString(16) d = d.id = f Aa(b, a.responseState, d) Y(a, b, c) return b.push('\x3c!--/$--\x3e') } if (d.byteSize > a.progressiveChunkSize) return ( (d.rootSegmentID = a.nextSegmentId++), a.completedBoundaries.push(d), Aa(b, a.responseState, d.id), Y(a, b, c), b.push('\x3c!--/$--\x3e') ) a.responseState.generateStaticMarkup || b.push('\x3c!--$--\x3e') c = d.completedSegments if (1 !== c.length) throw Error( 'A previously unvisited boundary must have exactly one root segment. This is a bug in React.' ) Z(a, b, c[0]) a = a.responseState.generateStaticMarkup ? !0 : b.push('\x3c!--/$--\x3e') return a } function Pb(a, b, c) { Ba(b, a.responseState, c.formatContext, c.id) Z(a, b, c) return Ca(b, c.formatContext) } function Qb(a, b, c) { for (var d = c.completedSegments, f = 0; f < d.length; f++) Rb(a, b, c, d[f]) d.length = 0 a = a.responseState d = c.id c = c.rootSegmentID b.push(a.startInlineScript) a.sentCompleteBoundaryFunction ? b.push('$RC("') : ((a.sentCompleteBoundaryFunction = !0), b.push( 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("' )) if (null === d) throw Error('An ID must have been assigned before we can complete the boundary.') c = c.toString(16) b.push(d) b.push('","') b.push(a.segmentPrefix) b.push(c) return b.push('")\x3c/script>') } function Rb(a, b, c, d) { if (2 === d.status) return !0 var f = d.id if (-1 === f) { if (-1 === (d.id = c.rootSegmentID)) throw Error( 'A root segment ID must have been assigned by now. This is a bug in React.' ) return Pb(a, b, d) } Pb(a, b, d) a = a.responseState b.push(a.startInlineScript) a.sentCompleteSegmentFunction ? b.push('$RS("') : ((a.sentCompleteSegmentFunction = !0), b.push( 'function $RS(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("'