react-dom
Version:
React package for working with the DOM.
135 lines • 54.3 kB
JavaScript
/**
* @license React
* react-dom-server-legacy.node.production.min.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.
*/
'use strict';var aa=require("react"),ba=require("react-dom"),ca=require("stream"),p=Object.prototype.hasOwnProperty,da=/^[: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]*$/,ea={},fa={};
function ha(a){if(p.call(fa,a))return!0;if(p.call(ea,a))return!1;if(da.test(a))return fa[a]=!0;ea[a]=!0;return!1}function r(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var t={};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){t[a]=new r(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];t[b]=new r(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){t[a]=new r(a,2,!1,a.toLowerCase(),null,!1,!1)});
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){t[a]=new r(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){t[a]=new r(a,3,!1,a.toLowerCase(),null,!1,!1)});
["checked","multiple","muted","selected"].forEach(function(a){t[a]=new r(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){t[a]=new r(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){t[a]=new r(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){t[a]=new r(a,5,!1,a.toLowerCase(),null,!1,!1)});var ia=/[\-:]([a-z])/g;function ja(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(ia,
ja);t[b]=new r(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(ia,ja);t[b]=new r(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(ia,ja);t[b]=new r(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){t[a]=new r(a,1,!1,a.toLowerCase(),null,!1,!1)});
t.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){t[a]=new r(a,1,!1,a.toLowerCase(),null,!0,!0)});
var ka={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},la=["Webkit","ms","Moz","O"];Object.keys(ka).forEach(function(a){la.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);ka[b]=ka[a]})});var ma=/["'&<>]/;
function u(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ma.exec(a);if(b){var c="",d,e=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}e!==d&&(c+=a.substring(e,d));e=d+1;c+=b}a=e!==d?c+a.substring(e,d):c}return a}var na=/([A-Z])/g,oa=/^ms-/,qa=Array.isArray,v=Object.assign,w=null,ra=[],ua={preload:sa,preinit:ta};
function sa(a,b){if(w){var c=w;if("string"===typeof a&&a&&"object"===typeof b&&null!==b){var d=b.as,e=c.preloadsMap.get(a);e||(e=y(c,a,d,{href:a,rel:"preload",as:d,crossOrigin:"font"===d?"":b.crossOrigin,integrity:b.integrity}));switch(d){case "font":c.fontPreloads.add(e);break;case "style":c.explicitStylePreloads.add(e);break;case "script":c.explicitScriptPreloads.add(e)}}}}
function ta(a,b){if(w){var c=w;if("string"===typeof a&&a&&"object"===typeof b&&null!==b)switch(b.as){case "style":var d=c.stylesMap.get(a);d||(d=b.precedence||"default",d=va(c,a,d,{rel:"stylesheet",href:a,"data-precedence":d,crossOrigin:b.crossOrigin}));d.set.add(d);c.explicitStylePreloads.add(d.hint);break;case "script":d=c.scriptsMap.get(a),d||(d=wa(c,a,{src:a,async:!0,crossOrigin:b.crossOrigin,integrity:b.integrity}),c.scripts.add(d))}}}
function xa(a,b){return{rel:"preload",as:"style",href:a,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy}}function ya(a,b){return{rel:"preload",as:"script",href:a,crossOrigin:b.crossOrigin,integrity:b.integrity,referrerPolicy:b.referrerPolicy}}function y(a,b,c,d){c={type:"preload",as:c,href:b,flushed:!1,props:d};a.preloadsMap.set(b,c);return c}
function va(a,b,c,d){var e=a.stylesMap,f=a.preloadsMap,g=a.precedences,h=g.get(c);h||(h=new Set,g.set(c,h));(f=f.get(b))?(a=f.props,null==d.crossOrigin&&(d.crossOrigin=a.crossOrigin),null==d.referrerPolicy&&(d.referrerPolicy=a.referrerPolicy),null==d.title&&(d.title=a.title)):(f=xa(b,d),f=y(a,b,"style",f),a.explicitStylePreloads.add(f));c={type:"style",href:b,precedence:c,flushed:!1,inShell:!1,props:d,hint:f,set:h};e.set(b,c);return c}
function wa(a,b,c){var d=a.scriptsMap,e=a.preloadsMap.get(b);e?(a=e.props,null==c.crossOrigin&&(c.crossOrigin=a.crossOrigin),null==c.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),null==c.integrity&&(c.integrity=a.integrity)):(e=ya(b,c),e=y(a,b,"script",e),a.explicitScriptPreloads.add(e));c={type:"script",src:b,flushed:!1,props:c,hint:e};d.set(b,c);return c}
function za(a,b){if(!w)throw Error('"currentResources" was expected to exist. This is a bug in React.');var c=w;switch(a){case "title":var d=b.children;Array.isArray(d)&&1===d.length&&(d=d[0]);if("string"===typeof d||"number"===typeof d){var e="title::"+d;a=c.headsMap.get(e);a||(b=v({},b),b.children=d,a={type:"title",props:b,flushed:!1},c.headsMap.set(e,a),c.headResources.add(a))}return!0;case "meta":if("string"===typeof b.charSet)e="charSet";else if("string"===typeof b.content)if(a="::"+b.content,
"string"===typeof b.httpEquiv)e="httpEquiv::"+b.httpEquiv+a;else if("string"===typeof b.name)e="name::"+b.name+a;else if("string"===typeof b.itemProp)e="itemProp::"+b.itemProp+a;else if("string"===typeof b.property){var f=b.property;e="property::"+f+a;d=f;a=f.split(":").slice(0,-1).join(":");(a=c.structuredMetaKeys.get(a))&&(e=a.key+"::child::"+e)}e&&!c.headsMap.has(e)&&(b={type:"meta",key:e,props:v({},b),flushed:!1},c.headsMap.set(e,b),"charSet"===e?c.charset=b:(d&&c.structuredMetaKeys.set(d,b),
c.headResources.add(b)));return!0;case "base":return e=b.target,d=b.href,e="base"+("string"===typeof d?'[href="'+d+'"]':":not([href])")+("string"===typeof e?'[target="'+e+'"]':":not([target])"),c.headsMap.has(e)||(b={type:"base",props:v({},b),flushed:!1},c.headsMap.set(e,b),c.bases.add(b)),!0}return!1}
function Aa(a){if(!w)throw Error('"currentResources" was expected to exist. This is a bug in React.');var b=w,c=a.rel,d=a.href;if(!d||"string"!==typeof d||!c||"string"!==typeof c)return!1;switch(c){case "stylesheet":var e=a.onLoad,f=a.onError;c=a.precedence;var g=a.disabled;if("string"!==typeof c||e||f||null!=g)return c=b.preloadsMap.get(d),c||(c=y(b,d,"style",xa(d,a)),b.usedStylePreloads.add(c)),!1;e=b.stylesMap.get(d);e||(a=v({},a),a.href=d,a.rel="stylesheet",a["data-precedence"]=c,delete a.precedence,
e=va(w,d,c,a),b.usedStylePreloads.add(e.hint));b.boundaryResources?b.boundaryResources.add(e):e.set.add(e);return!0;case "preload":switch(e=a.as,e){case "script":case "style":case "font":c=b.preloadsMap.get(d);if(!c)switch(a=v({},a),a.href=d,a.rel="preload",a.as=e,"font"===e&&(a.crossOrigin=""),c=y(b,d,e,a),e){case "script":b.explicitScriptPreloads.add(c);break;case "style":b.explicitStylePreloads.add(c);break;case "font":b.fontPreloads.add(c)}return!0}}if(a.onLoad||a.onError)return!1;d="rel:"+c+
"::href:"+d+"::sizes:"+("string"===typeof a.sizes?a.sizes:"")+"::media:"+("string"===typeof a.media?a.media:"");e=b.headsMap.get(d);if(!e)switch(e={type:"link",props:v({},a),flushed:!1},b.headsMap.set(d,e),c){case "preconnect":case "dns-prefetch":b.preconnects.add(e);break;default:b.headResources.add(e)}return!0}function Ba(a,b){var c=a.boundaryResources;c&&(b.forEach(function(a){return c.add(a)}),b.clear())}function Ca(a,b){b.forEach(function(a){return a.set.add(a)});b.clear()}var Da=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher;
function z(a,b){return{insertionMode:a,selectedValue:b}}function Ea(a,b,c){switch(b){case "select":return z(1,null!=c.value?c.value:c.defaultValue);case "svg":return z(2,null);case "math":return z(3,null);case "foreignObject":return z(1,null);case "table":return z(4,null);case "thead":case "tbody":case "tfoot":return z(5,null);case "colgroup":return z(7,null);case "tr":return z(6,null)}return 4<=a.insertionMode||0===a.insertionMode?z(1,null):a}var Fa=new Map;
function Ga(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(p.call(c,d)){var e=c[d];if(null!=e&&"boolean"!==typeof e&&""!==e){if(0===d.indexOf("--")){var f=u(d);e=u((""+e).trim())}else{f=d;var g=Fa.get(f);void 0!==g?f=g:(g=u(f.replace(na,"-$1").toLowerCase().replace(oa,"-ms-")),Fa.set(f,g),f=g);e="number"===typeof e?0===e||p.call(ka,
d)?""+e:e+"px":u((""+e).trim())}b?(b=!1,a.push(' style="',f,":",e)):a.push(";",f,":",e)}}b||a.push('"')}
function B(a,b,c,d){switch(c){case "style":Ga(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=t.hasOwnProperty(c)?t[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(ha(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 C(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 Ha(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}
function F(a,b,c){var d="stylesheet"===b.rel;a.push(G("link"));for(var e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":case "dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case "precedence":if(d)continue;default:B(a,c,e,f)}}a.push("/>");return null}
function H(a,b,c,d){a.push(G(c));for(var e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":case "dangerouslySetInnerHTML":throw Error(c+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B(a,d,e,f)}}a.push("/>");return null}
function Ia(a,b,c){a.push(G("title"));var d=null,e;for(e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":d=f;break;case "dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:B(a,c,e,f)}}a.push(">");b=Array.isArray(d)&&2>d.length?d[0]||null:d;"string"!==typeof b&&"number"!==typeof b||a.push(u(b));a.push("</","title",">");return null}
function Ja(a,b,c){a.push(G("script"));var d=null,e=null,f;for(f in b)if(p.call(b,f)){var g=b[f];if(null!=g)switch(f){case "children":d=g;break;case "dangerouslySetInnerHTML":e=g;break;default:B(a,c,f,g)}}a.push(">");C(a,e,d);"string"===typeof d&&a.push(u(d));a.push("</","script",">");return null}
function I(a,b,c,d){a.push(G(c));var e=c=null,f;for(f in b)if(p.call(b,f)){var g=b[f];if(null!=g)switch(f){case "children":c=g;break;case "dangerouslySetInnerHTML":e=g;break;default:B(a,d,f,g)}}a.push(">");C(a,e,c);return"string"===typeof c?(a.push(u(c)),null):c}var Ka=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,La=new Map;function G(a){var b=La.get(a);if(void 0===b){if(!Ka.test(a))throw Error("Invalid tag: "+a);b="<"+a;La.set(a,b)}return b}
function Ma(a,b,c,d,e,f,g){switch(c){case "select":a.push(G("select"));var h=g=null,l;for(l in d)if(p.call(d,l)){var k=d[l];if(null!=k)switch(l){case "children":g=k;break;case "dangerouslySetInnerHTML":h=k;break;case "defaultValue":case "value":break;default:B(a,e,l,k)}}a.push(">");C(a,h,g);return g;case "option":g=f.selectedValue;a.push(G("option"));var n=l=k=null,m=null;for(h in d)if(p.call(d,h)){var q=d[h];if(null!=q)switch(h){case "children":k=q;break;case "selected":n=q;break;case "dangerouslySetInnerHTML":m=
q;break;case "value":l=q;default:B(a,e,h,q)}}if(null!=g)if(d=null!==l?""+l:Ha(k),qa(g))for(e=0;e<g.length;e++){if(""+g[e]===d){a.push(' selected=""');break}}else""+g===d&&a.push(' selected=""');else n&&a.push(' selected=""');a.push(">");C(a,m,k);return k;case "textarea":a.push(G("textarea"));k=h=g=null;for(m in d)if(p.call(d,m)&&(l=d[m],null!=l))switch(m){case "children":k=l;break;case "value":g=l;break;case "defaultValue":h=l;break;case "dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
default:B(a,e,m,l)}null===g&&null!==h&&(g=h);a.push(">");if(null!=k){if(null!=g)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qa(k)&&1<k.length)throw Error("<textarea> can only have at most one child.");g=""+k}"string"===typeof g&&"\n"===g[0]&&a.push("\n");null!==g&&a.push(u(""+g));return null;case "input":a.push(G("input"));l=m=h=g=null;for(k in d)if(p.call(d,k)&&(n=d[k],null!=n))switch(k){case "children":case "dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
case "defaultChecked":l=n;break;case "defaultValue":h=n;break;case "checked":m=n;break;case "value":g=n;break;default:B(a,e,k,n)}null!==m?B(a,e,"checked",m):null!==l&&B(a,e,"checked",l);null!==g?B(a,e,"value",g):null!==h&&B(a,e,"value",h);a.push("/>");return null;case "menuitem":a.push(G("menuitem"));for(var x in d)if(p.call(d,x)&&(g=d[x],null!=g))switch(x){case "children":case "dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:B(a,e,x,
g)}a.push(">");return null;case "title":return a=za("title",d)?null:Ia(a,d,e),a;case "link":return Aa(d)?(g&&a.push("\x3c!-- --\x3e"),a=null):a=F(a,d,e),a;case "script":if(!w)throw Error('"currentResources" was expected to exist. This is a bug in React.');h=w;k=d.src;m=d.onLoad;l=d.onError;k&&"string"===typeof k?d.async?(m||l?(m=h.preloadsMap.get(k),m||(m=y(h,k,"script",ya(k,d)),h.usedScriptPreloads.add(m))):(m=h.scriptsMap.get(k),m||(m=v({},d),m.src=k,m=wa(h,k,m),h.scripts.add(m))),h=!0):h=!1:h=
!1;h?(g&&a.push("\x3c!-- --\x3e"),a=null):a=Ja(a,d,e);return a;case "meta":return za("meta",d)?(g&&a.push("\x3c!-- --\x3e"),a=null):a=H(a,d,"meta",e),a;case "base":return za("base",d)?(g&&a.push("\x3c!-- --\x3e"),a=null):a=H(a,d,"base",e),a;case "listing":case "pre":a.push(G(c));h=g=null;for(n in d)if(p.call(d,n)&&(k=d[n],null!=k))switch(n){case "children":g=k;break;case "dangerouslySetInnerHTML":h=k;break;default:B(a,e,n,k)}a.push(">");if(null!=h){if(null!=g)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if("object"!==typeof h||!("__html"in h))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");d=h.__html;null!==d&&void 0!==d&&("string"===typeof d&&0<d.length&&"\n"===d[0]?a.push("\n",d):a.push(""+d))}"string"===typeof g&&"\n"===g[0]&&a.push("\n");return g;case "area":case "br":case "col":case "embed":case "hr":case "img":case "keygen":case "param":case "source":case "track":case "wbr":return H(a,
d,c,e);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 I(a,d,c,e);case "head":return I(b,d,c,e);case "html":return 0===f.insertionMode&&b.push("<!DOCTYPE html>"),I(b,d,c,e);default:if(-1===c.indexOf("-")&&"string"!==typeof d.is)return I(a,d,c,e);a.push(G(c));h=g=null;for(q in d)if(p.call(d,q)&&(k=d[q],null!=k))switch(q){case "children":g=k;break;case "dangerouslySetInnerHTML":h=
k;break;case "style":Ga(a,e,k);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ha(q)&&"function"!==typeof k&&"symbol"!==typeof k&&a.push(" ",q,'="',u(k),'"')}a.push(">");C(a,h,g);return g}}
function Na(a,b,c){switch(c){case "title":case "script":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":return;case "body":b.unshift("</",c,">");return;case "html":b.push("</",c,">");return}a.push("</",c,">")}
function Oa(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 Pa(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 Qa(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 Ra=/[<\u2028\u2029]/g;
function Sa(a){return JSON.stringify(a).replace(Ra,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");}})}var Ta=/[&><\u2028\u2029]/g;
function J(a){return JSON.stringify(a).replace(Ta,function(a){switch(a){case "&":return"\\u0026";case ">":return"\\u003e";case "<":return"\\u003c";case "\u2028":return"\\u2028";case "\u2029":return"\\u2029";default:throw Error("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");}})}
function Ua(a,b,c){function d(a){a.flushed||(F(e,a.props,c),a.flushed=!0)}var e=[],f=b.charset,g=b.bases,h=b.preconnects,l=b.fontPreloads,k=b.precedences,n=b.usedStylePreloads,m=b.scripts,q=b.usedScriptPreloads,x=b.explicitStylePreloads,E=b.explicitScriptPreloads,D=b.headResources;f&&(H(e,f.props,"meta",c),f.flushed=!0,b.charset=null);g.forEach(function(a){H(e,a.props,"base",c);a.flushed=!0});g.clear();h.forEach(function(a){F(e,a.props,c);a.flushed=!0});h.clear();l.forEach(function(a){F(e,a.props,
c);a.flushed=!0});l.clear();k.forEach(function(a,b){a.size?(a.forEach(function(a){F(e,a.props,c);a.flushed=!0;a.inShell=!0;a.hint.flushed=!0}),a.clear()):e.push('<style data-precedence="',u(b),'"></style>')});n.forEach(d);n.clear();m.forEach(function(a){Ja(e,a.props,c);a.flushed=!0;a.hint.flushed=!0});m.clear();q.forEach(d);q.clear();x.forEach(d);x.clear();E.forEach(d);E.clear();D.forEach(function(a){switch(a.type){case "title":Ia(e,a.props,c);break;case "meta":H(e,a.props,"meta",c);break;case "link":F(e,
a.props,c)}a.flushed=!0});D.clear();f=!0;for(b=0;b<e.length-1;b++)a.push(e[b]);b<e.length&&(f=a.push(e[b]));return f}
function Va(a,b,c){function d(a){a.flushed||(F(e,a.props,c),a.flushed=!0)}var e=[],f=b.charset,g=b.preconnects,h=b.fontPreloads,l=b.usedStylePreloads,k=b.scripts,n=b.usedScriptPreloads,m=b.explicitStylePreloads,q=b.explicitScriptPreloads,x=b.headResources;f&&(H(e,f.props,"meta",c),f.flushed=!0,b.charset=null);g.forEach(function(a){F(e,a.props,c);a.flushed=!0});g.clear();h.forEach(function(a){F(e,a.props,c);a.flushed=!0});h.clear();l.forEach(d);l.clear();k.forEach(function(a){I(e,a.props,"script",
c);Na(e,e,"script",a.props);a.flushed=!0;a.hint.flushed=!0});k.clear();n.forEach(d);n.clear();m.forEach(d);m.clear();q.forEach(d);q.clear();x.forEach(function(a){switch(a.type){case "title":Ia(e,a.props,c);break;case "meta":H(e,a.props,"meta",c);break;case "link":F(e,a.props,c)}a.flushed=!0});x.clear();f=!0;for(b=0;b<e.length-1;b++)a.push(e[b]);b<e.length&&(f=a.push(e[b]));return f}
function Wa(a,b){a.push("[");var c="[";b.forEach(function(b){if(!b.inShell)if(b.flushed)a.push(c),b=J(""+b.href),a.push(b),a.push("]"),c=",[";else{a.push(c);var d=b.precedence,f=b.props,g=J(""+b.href);a.push(g);d=""+d;a.push(",");d=J(d);a.push(d);for(var h in f)if(p.call(f,h)){var l=f[h];if(null!=l)switch(h){case "href":case "rel":case "precedence":case "data-precedence":break;case "children":case "dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
default:a:{d=a;var k=h;g=k.toLowerCase();switch(typeof l){case "function":case "symbol":break a}switch(k){case "innerHTML":case "dangerouslySetInnerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":case "style":break a;case "className":g="class";break;case "hidden":if(!1===l)break a;break;case "src":case "href":break;default:if(!ha(k))break a}if(!(2<k.length)||"o"!==k[0]&&"O"!==k[0]||"n"!==k[1]&&"N"!==k[1])l=""+l,d.push(","),g=J(g),d.push(g),d.push(","),g=J(l),d.push(g)}}}a.push("]");
c=",[";b.flushed=!0;b.hint.flushed=!0}});a.push("]")}function Xa(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,sentStyleInsertionFunction:!1,generateStaticMarkup:a}}function Ya(){return{insertionMode:1,selectedValue:null}}
function Za(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=Symbol.for("react.element"),ab=Symbol.for("react.portal"),bb=Symbol.for("react.fragment"),cb=Symbol.for("react.strict_mode"),db=Symbol.for("react.profiler"),eb=Symbol.for("react.provider"),fb=Symbol.for("react.context"),gb=Symbol.for("react.server_context"),hb=Symbol.for("react.forward_ref"),ib=Symbol.for("react.suspense"),jb=Symbol.for("react.suspense_list"),kb=Symbol.for("react.memo"),lb=Symbol.for("react.lazy"),mb=Symbol.for("react.scope"),nb=Symbol.for("react.debug_trace_mode"),ob=Symbol.for("react.offscreen"),
pb=Symbol.for("react.legacy_hidden"),qb=Symbol.for("react.cache"),rb=Symbol.for("react.default_value"),sb=Symbol.iterator;
function tb(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 bb:return"Fragment";case ab:return"Portal";case db:return"Profiler";case cb:return"StrictMode";case ib:return"Suspense";case jb:return"SuspenseList";case qb:return"Cache"}if("object"===typeof a)switch(a.$$typeof){case fb:return(a.displayName||"Context")+".Consumer";case eb:return(a._context.displayName||"Context")+".Provider";case hb:var b=a.render;a=a.displayName;
a||(a=b.displayName||b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case kb:return b=a.displayName||null,null!==b?b:tb(a.type)||"Memo";case lb:b=a._payload;a=a._init;try{return tb(a(b))}catch(c){break}case gb:return(a.displayName||a._globalName)+".Provider"}return null}var ub=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vb={};function wb(a,b){a=a.contextTypes;if(!a)return vb;var c={},d;for(d in a)c[d]=b[d];return c}var L=null;
function xb(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.");xb(a,c)}b.context._currentValue2=b.value}}function yb(a){a.context._currentValue2=a.parentValue;a=a.parent;null!==a&&yb(a)}
function zb(a){var b=a.parent;null!==b&&zb(b);a.context._currentValue2=a.value}function Ab(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?xb(a,b):Ab(a,b)}
function Bb(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?xb(a,c):Bb(a,c);b.context._currentValue2=b.value}function Cb(a){var b=L;b!==a&&(null===b?zb(a):null===a?yb(b):b.depth===a.depth?xb(b,a):b.depth>a.depth?Ab(b,a):Bb(b,a),L=a)}
var Db={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 Eb(a,b,c,d){var e=void 0!==a.state?a.state:null;a.updater=Db;a.props=c;a.state=e;var f={queue:[],replace:!1};a._reactInternals=f;var g=b.contextType;a.context="object"===typeof g&&null!==g?g._currentValue2:d;g=b.getDerivedStateFromProps;"function"===typeof g&&(g=g(c,e),e=null===g||void 0===g?e:v({},e,g),a.state=e);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&&Db.enqueueReplaceState(a,a.state,null),null!==f.queue&&0<f.queue.length)if(b=f.queue,g=f.replace,f.queue=null,f.replace=!1,g&&1===b.length)a.state=b[0];else{f=g?b[0]:a.state;e=!0;for(g=g?1:0;g<b.length;g++){var h=b[g];h="function"===typeof h?h.call(a,f,c,d):h;null!=h&&(e?(e=!1,f=v({},f,h)):v(f,h))}a.state=f}else f.queue=null}
var Fb={id:1,overflow:""};function Gb(a,b,c){var d=a.id;a=a.overflow;var e=32-Hb(d)-1;d&=~(1<<e);c+=1;var f=32-Hb(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;return{id:1<<32-Hb(b)+e|c<<e|d,overflow:f+a}}return{id:1<<f|c<<e|d,overflow:a}}var Hb=Math.clz32?Math.clz32:Ib,Jb=Math.log,Kb=Math.LN2;function Ib(a){a>>>=0;return 0===a?32:31-(Jb(a)/Kb|0)|0}function Lb(){}
function Mb(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Lb,Lb),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(a=b,a.status="pending",a.then(function(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}})),b;}}function Nb(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
var Pb="function"===typeof Object.is?Object.is:Nb,M=null,Qb=null,Rb=null,N=null,O=!1,Sb=!1,Q=0,R=0,S=null,T=null,Tb=0;
function U(){if(null===M)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 M}
function Ub(){if(0<Tb)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Vb(){null===N?null===Rb?(O=!1,Rb=N=Ub()):(O=!0,N=Rb):null===N.next?(O=!1,N=N.next=Ub()):(O=!0,N=N.next);return N}function Wb(a,b,c,d){for(;Sb;)Sb=!1,R=Q=0,Tb+=1,N=null,c=a(b,d);Xb();return c}function Yb(){var a=S;S=null;return a}function Xb(){Qb=M=null;Sb=!1;Rb=null;Tb=0;N=T=null}function Zb(a,b){return"function"===typeof b?b(a):b}
function $b(a,b,c){M=U();N=Vb();if(O){var d=N.queue;b=d.dispatch;if(null!==T&&(c=T.get(d),void 0!==c)){T.delete(d);d=N.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);N.memoizedState=d;return[d,b]}return[N.memoizedState,b]}a=a===Zb?"function"===typeof b?b():b:void 0!==c?c(b):b;N.memoizedState=a;a=N.queue={last:null,dispatch:null};a=a.dispatch=ac.bind(null,M,a);return[N.memoizedState,a]}
function bc(a,b){M=U();N=Vb();b=void 0===b?null:b;if(null!==N){var c=N.memoizedState;if(null!==c&&null!==b){var d=c[1];a:if(null===d)d=!1;else{for(var e=0;e<d.length&&e<b.length;e++)if(!Pb(b[e],d[e])){d=!1;break a}d=!0}if(d)return c[0]}}a=a();N.memoizedState=[a,b];return a}
function ac(a,b,c){if(25<=Tb)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===M)if(Sb=!0,a={action:c,next:null},null===T&&(T=new Map),c=T.get(b),void 0===c)T.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function cc(){throw Error("startTransition cannot be called during server rendering.");}function dc(){throw Error("Cache cannot be refreshed during server rendering.");}function ec(){}
var gc={readContext:function(a){return a._currentValue2},useContext:function(a){U();return a._currentValue2},useMemo:bc,useReducer:$b,useRef:function(a){M=U();N=Vb();var b=N.memoizedState;return null===b?(a={current:a},N.memoizedState=a):b},useState:function(a){return $b(Zb,a)},useInsertionEffect:ec,useLayoutEffect:function(){},useCallback:function(a,b){return bc(function(){return a},b)},useImperativeHandle:ec,useEffect:ec,useDebugValue:ec,useDeferredValue:function(a){U();return a},useTransition:function(){U();
return[!1,cc]},useId:function(){var a=Qb.treeContext;var b=a.overflow;a=a.id;a=(a&~(1<<32-Hb(a)-1)).toString(32)+b;var c=fc;if(null===c)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");b=Q++;a=":"+c.idPrefix+"R"+a;0<b&&(a+="H"+b.toString(32));return a+":"},useMutableSource:function(a,b){U();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()},useCacheRefresh:function(){return dc},use:function(a){if(null!==a&&"object"===typeof a){if("function"===typeof a.then){var b=R;R+=1;null===S&&(S=[]);return Mb(S,a,b)}if(a.$$typeof===fb||a.$$typeof===gb)return a._currentValue2}throw Error("An unsupported type was passed to use(): "+String(a));}},fc=null,hc={getCacheSignal:function(){throw Error("Not implemented.");},getCacheForType:function(){throw Error("Not implemented.");}},ic=ub.ReactCurrentDispatcher,jc=ub.ReactCurrentCache;
function kc(a){console.error(a);return null}function W(){}
function lc(a,b,c,d,e,f,g,h,l){var k=[],n=new Set,m={preloadsMap:new Map,stylesMap:new Map,scriptsMap:new Map,headsMap:new Map,charset:null,bases:new Set,preconnects:new Set,fontPreloads:new Set,precedences:new Map,usedStylePreloads:new Set,scripts:new Set,usedScriptPreloads:new Set,explicitStylePreloads:new Set,explicitScriptPreloads:new Set,headResources:new Set,structuredMetaKeys:new Map,boundaryResources:null};b={destination:null,responseState:b,progressiveChunkSize:void 0===d?12800:d,status:0,
fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,resources:m,completedRootSegment:null,abortableTasks:n,pingedTasks:k,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],preamble:[],postamble:[],onError:void 0===e?kc:e,onAllReady:void 0===f?W:f,onShellReady:void 0===g?W:g,onShellError:void 0===h?W:h,onFatalError:void 0===l?W:l};c=mc(b,0,null,c,!1,!1);c.parentFlushed=!0;a=nc(b,null,a,null,c,n,vb,null,Fb);k.push(a);return b}
function nc(a,b,c,d,e,f,g,h,l){a.allPendingTasks++;null===d?a.pendingRootTasks++:d.pendingTasks++;var k={node:c,ping:function(){var b=a.pingedTasks;b.push(k);1===b.length&&oc(a)},blockedBoundary:d,blockedSegment:e,abortSet:f,legacyContext:g,context:h,treeContext:l,thenableState:b};f.add(k);return k}function mc(a,b,c,d,e,f){return{status:0,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:c,lastPushedText:e,textEmbedded:f}}
function X(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 Y(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 pc(a,b,c,d){var e=c.render(),f=d.childContextTypes;if(null!==f&&void 0!==f){var g=b.legacyContext;if("function"!==typeof c.getChildContext)d=g;else{c=c.getChildContext();for(var h in c)if(!(h in f))throw Error((tb(d)||"Unknown")+'.getChildContext(): key "'+h+'" is not defined in childContextTypes.');d=v({},g,c)}b.legacyContext=d;Z(a,b,null,e);b.legacyContext=g}else Z(a,b,null,e)}
function qc(a,b){if(a&&a.defaultProps){b=v({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}
function rc(a,b,c,d,e,f){if("function"===typeof d)if(d.prototype&&d.prototype.isReactComponent)c=wb(d,b.legacyContext),f=d.contextType,f=new d(e,"object"===typeof f&&null!==f?f._currentValue2:c),Eb(f,d,e,c),pc(a,b,f,d);else{f=wb(d,b.legacyContext);M={};Qb=b;R=Q=0;S=c;c=d(e,f);c=Wb(d,e,c,f);var g=0!==Q;if("object"===typeof c&&null!==c&&"function"===typeof c.render&&void 0===c.$$typeof)Eb(c,d,e,f),pc(a,b,c,d);else if(g){e=b.treeContext;b.treeContext=Gb(e,1,0);try{Z(a,b,null,c)}finally{b.treeContext=
e}}else Z(a,b,null,c)}else if("string"===typeof d)c=b.blockedSegment,f=Ma(c.chunks,a.preamble,d,e,a.responseState,c.formatContext,c.lastPushedText),c.lastPushedText=!1,g=c.formatContext,c.formatContext=Ea(g,d,e),sc(a,b,f),c.formatContext=g,Na(c.chunks,a.postamble,d),c.lastPushedText=!1;else{switch(d){case pb:case nb:case cb:case db:case bb:Z(a,b,null,e.children);return;case ob:"hidden"!==e.mode&&Z(a,b,null,e.children);return;case jb:Z(a,b,null,e.children);return;case mb:throw Error("ReactDOMServer does not yet support scope components.");
case ib:a:{d=b.blockedBoundary;c=b.blockedSegment;f=e.fallback;e=e.children;g=new Set;var h={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null,resources:new Set},l=mc(a,c.chunks.length,h,c.formatContext,!1,!1);c.children.push(l);c.lastPushedText=!1;var k=mc(a,0,null,c.formatContext,!1,!1);k.parentFlushed=!0;b.blockedBoundary=h;b.blockedSegment=k;a.resources.boundaryResources=h.resources;try{if(sc(a,
b,e),a.responseState.generateStaticMarkup||k.lastPushedText&&k.textEmbedded&&k.chunks.push("\x3c!-- --\x3e"),k.status=1,0===h.pendingTasks&&(null!==a.completedRootSegment||0<a.pendingRootTasks)&&Ca(a.resources,h.resources),tc(h,k),0===h.pendingTasks)break a}catch(n){k.status=4,h.forceClientRender=!0,h.errorDigest=X(a,n)}finally{a.resources.boundaryResources=d?d.resources:null,b.blockedBoundary=d,b.blockedSegment=c}b=nc(a,null,f,d,l,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===
typeof d&&null!==d)switch(d.$$typeof){case hb:d=d.render;M={};Qb=b;R=Q=0;S=c;c=d(e,f);e=Wb(d,e,c,f);if(0!==Q){d=b.treeContext;b.treeContext=Gb(d,1,0);try{Z(a,b,null,e)}finally{b.treeContext=d}}else Z(a,b,null,e);return;case kb:d=d.type;e=qc(d,e);rc(a,b,c,d,e,f);return;case eb:c=e.children;d=d._context;e=e.value;f=d._currentValue2;d._currentValue2=e;g=L;L=e={parent:g,depth:null===g?0:g.depth+1,context:d,parentValue:f,value:e};b.context=e;Z(a,b,null,c);a=L;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
e=a.parentValue;a.context._currentValue2=e===rb?a.context._defaultValue:e;a=L=a.parent;b.context=a;return;case fb:e=e.children;e=e(d._currentValue2);Z(a,b,null,e);return;case lb:f=d._init;d=f(d._payload);e=qc(d,e);rc(a,b,c,d,e,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==d?d:typeof d)+"."));}}
function Z(a,b,c,d){b.node=d;if("object"===typeof d&&null!==d){switch(d.$$typeof){case $a:rc(a,b,c,d.type,d.props,d.ref);return;case ab:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case lb:c=d._init;d=c(d._payload);Z(a,b,null,d);return}if(qa(d)){uc(a,b,d);return}null===d||"object"!==typeof d?c=null:(c=sb&&d[sb]||d["@@iterator"],c="function"===typeof c?c:null);if(c&&(c=c.call(d))){d=c.next();if(!d.done){var e=
[];do e.push(d.value),d=c.next();while(!d.done);uc(a,b,e)}return}a=Object.prototype.toString.call(d);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===a?"object with keys {"+Object.keys(d).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.");}"string"===typeof d?(c=b.blockedSegment,c.lastPushedText=Za(b.blockedSegment.chunks,d,a.responseState,c.lastPushedText)):"number"===typeof d&&(c=b.blockedSegment,c.lastPushedText=Za(b.blockedSegment.chunks,
""+d,a.responseState,c.lastPushedText))}function uc(a,b,c){for(var d=c.length,e=0;e<d;e++){var f=b.treeContext;b.treeContext=Gb(f,d,e);try{sc(a,b,c[e])}finally{b.treeContext=f}}}
function sc(a,b,c){var d=b.blockedSegment.formatContext,e=b.legacyContext,f=b.context;try{return Z(a,b,null,c)}catch(k){if(Xb(),"object"===typeof k&&null!==k&&"function"===typeof k.then){var g=Yb();c=k;var h=b.blockedSegment,l=mc(a,h.chunks.length,null,h.formatContext,h.lastPushedText,!0);h.children.push(l);h.lastPushedText=!1;a=nc(a,g,b.node,b.blockedBoundary,l,b.abortSet,b.legacyContext,b.context,b.treeContext).ping;c.then(a,a);b.blockedSegment.formatContext=d;b.legacyContext=e;b.context=f;Cb(f)}else throw b.blockedSegment.formatContext=
d,b.legacyContext=e,b.context=f,Cb(f),k;}}function vc(a){var b=a.blockedBoundary;a=a.blockedSegment;a.status=3;wc(this,b,a)}
function xc(a,b,c){var d=a.blockedBoundary;a.blockedSegment.status=3;null===d?(b.allPendingTasks--,1!==b.status&&2!==b.status&&(X(b,c),Y(b,c))):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=b.onError(c),d.parentFlushed&&b.clientRenderedBoundaries.push(d)),d.fallbackAbortableTasks.forEach(function(a){return xc(a,b,c)}),d.fallbackAbortableTasks.clear(),b.allPendingTasks--,0===b.allPendingTasks&&(a=b.onAllReady,a()))}
function tc(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&&tc(a,c)}else a.completedSegments.push(b)}
function wc(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=W,b=a.onShellReady,b())}else b.pendingTasks--,b.forceClientRender||(0===b.pendingTasks?(c.parentFlushed&&1===c.status&&tc(b,c),(null!==a.completedRootSegment||0<a.pendingRootTasks)&&Ca(a.resources,b.resources),b.parentFlushed&&a.completedBoundaries.push(b),
b.fallbackAbortableTasks.forEach(vc,a),b.fallbackAbortableTasks.clear()):c.parentFlushed&&1===c.status&&(tc(b,c),1===b.completedSegments.length&&b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPendingTasks&&(a=a.onAllReady,a())}
function oc(a){if(2!==a.status){var b=L,c=ic.current;ic.current=gc;var d=jc.current;jc.current=hc;var e=a.resources;ra.push(w);w=e;e=Da.current;Da.current=ua;var f=fc;fc=a.responseState;try{var g=a.pingedTasks,h;for(h=0;h<g.length;h++){var l=g[h];var k=a,n=l.blockedBoundary;k.resources.boundaryResources=n?n.resources:null;var m=l.blockedSegment;if(0===m.status){Cb(l.context);try{var q=l.thenableState;l.thenableState=null;Z(k,l,q,l.node);k.responseState.generateStaticMarkup||m.lastPushedText&&m.textEmbedded&&
m.chunks.push("\x3c!-- --\x3e");l.abortSet.delete(l);m.status=1;wc(k,l.blockedBoundary,m)}catch(A){if(Xb(),"object"===typeof A&&null!==A&&"function"===typeof A.then){var x=l.ping;A.then(x,x);l.thenableState=Yb()}else{l.abortSet.delete(l);m.status=4;var E=k,D=l.blockedBoundary,K=A,P=X(E,K);null===D?Y(E,K):(D.pendingTasks--,D.forceClientRender||(D.forceClientRender=!0,D.errorDigest=P,D.parentFlushed&&E.clientRenderedBoundaries.push(D)));E.allPendingTasks--;if(0===E.allPendingTasks){var V=E.onAllReady;
V()}}}finally{k.resources.boundaryResources=null}}}g.splice(0,h);null!==a.destination&&yc(a,a.destination)}catch(A){X(a,A),Y(a,A)}finally{fc=f,ic.current=c,jc.current=d,w=ra.pop(),Da.current=e,c===gc&&Cb(b)}}}
function zc(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 e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g<c.length;g++){for(e=c[g];f<e.index;f++)b.push(d[f]);e=Ac(a,b,e)}for(;f<d.length-1;f++)b.push(d[f]);f<d.length&&(e=b.push(d[f]));return e;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.");
}}
function Ac(a,b,c){var d=c.boundary;if(null===d)return zc(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>")),zc(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 e=a.responseState;var f=
e.nextSuspenseID++;e=e.boundaryPrefix+f.toString(16);d=d.id=e;Oa(b,a.responseState,d);zc(a,b,c);return b.push("\x3c!--/$--\x3e")}if(d.byteSize>a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Oa(b,a.responseState,d.id),zc(a,b,c),b.push("\x3c!--/$--\x3e");Ba(a.resources,d.resources);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.");
Ac(a,b,c[0]);a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");return a}function Bc(a,b,c){Pa(b,a.responseState,c.formatContext,c.id);Ac(a,b,c);return Qa(b,c.formatContext)}
function Cc(a,b,c){a.resources.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e<d.length;e++)Dc(a,b,c,d[e]);d.length=0;a=a.responseState;d=c.id;e=c.rootSegmentID;c=c.resources;var f;a:{for(f=c.values();;){var g=f.next().value;if(!g)break;if(!g.inShell){f=!0;break a}}f=!1}b.push(a.startInlineScript);f?a.sentCompleteBoundaryFunction?a.sentStyleInsertionFunction?b.push('$RR("'):(a.sentStyleInsertionFunction=!0,b.push('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("')):
(a.sentCompleteBoundaryFunction=!0,a.sentStyleInsertionFunction=!0,b.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("')):
a.sentCompleteBoundaryFunction?b.push('$RC("'):(a.sentCompleteBoundaryFunction=!0,b.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("'));
if(null===d)throw Error("An ID must have been assigned before we can complete the boundary.");e=e.toString(16);b.push(d);b.push('","');b.push(a.segmentPrefix);b.push(e);f?(b.push('",'),Wa(b,c)):b.push('"');return b.push(")\x3c/script>")}
function Dc(a,b,c,d){if(2===d.status)return!0;var e=d.id;if(-1===e){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 Bc(a,b,d)}Bc(a,b,d);a=a.responseState;b.push(a.startInlineScript);a.sentCompleteSegmentFunction?b.push('$RS("'):(a.sentCompleteSegmentFunction=!0,b.push('$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("'));
b.push(a.segmentPrefix);e=e.toString(16);b.push(e);b.push('","');b.push(a.placeholderPrefix);b.push(e);return b.push('")\x3c/script>')}
function yc(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){var e=a.preamble;for(c=0;c<e.length;c++)b.push(e[c]);Ua(b,a.resources,a.responseState);Ac(a,b,d);a.completedRootSegment=null;var f=a.responseState.bootstrapChunks;for(d=0;d<f.length-1;d++)b.push(f[d]);d<f.length&&b.push(f[d])}else return;else Va(b,a.resources,a.responseState);var g=a.clientRenderedBoundaries;for(c=0;c<g.length;c++){var h=g[c];f=b;var l=a.responseState,k=h.id,n=h.errorDigest,m=h.errorMessage,
q=h.errorComponentStack;f.push(l.startInlineScript);l.sentClientRenderFunction?f.push('$RX("'):(l.sentClientRenderFunction=!0,f.push('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("'));if(null===k)throw Error("An ID must have been assigned before we can complete the boundary.");f.push(k);f.push('"');if(n||m||q){f.push(",");var x=Sa(n||"");f.push(x)}if(m||q){f.push(",");
var E=Sa(m||"");f.push(E)}if(q){f.push(",");var D=Sa(q);f.push(D)}if(!f.push(")\x3c/script>")){a.destination=null;c++;g.splice(0,c);return}}g.splice(0,c);var K=a.completedBoundaries;for(c=0;c<K.length;c++)if(!Cc(a,b,K[c])){a.destination=null;c++;K.splice(0,c);return}K.splice(0,c);var P=a.partialBoundaries;for(c=0;c<P.length;c++){var V=P[c];a:{g=a;h=b;g.resources.boundaryResources=V.resources;var A=V.completedSegments;for(l=0;l<A.length;l++)if(!Dc(g,h,V,A[l])){l++;A.splice(0,l);var Ob=!1;break a}A.splice(0,
l);Ob=!0}if(!Ob){a.destination=null;c++;P.splice(0,c);return}}P.splice(0,c);var pa=a.completedBoundaries;for(c=0;c<pa.length;c++)if(!Cc(a,b,pa[c])){a.destination=null;c++;pa.splice(0,c);return}pa.splice(0,c)}finally{if(0===a.allPendingTasks&&0===a.pingedTasks.length&&0===a.clientRenderedBoundaries.length&&0===a.completedBoundaries.length){a=a.postamble;for(c=0;c<a.length;c++)b.push(a[c]);b.push(null)}}}
function Ec(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{yc(a,b)}catch(c){X(a,c),Y(a,c)}}}function Fc(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=void 0===b?Error("The render was aborted by the server without a reason."):b;c.forEach(function(b){return xc(b,a,d)});c.clear()}null!==a.destination&&yc(a,a.destination)}catch(e){X(a,e),Y(a,e)}}function Gc(){}
function Hc(a,b,c,d){var e=!1,f=null,g="",h=!1;a=lc(a,Xa(c,b?b.identifierPrefix:void 0),Ya(),Infinity,Gc,void 0,function(){h=!0},void 0,void 0);oc(a);Fc(a,d);Ec(a,{push:function(a){null!==a&&(g+=a);return!0},destroy:function(a){e=!0;f=a}});if(e&&f!==d)throw f;if(!h)throw Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return g}
function Ic(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b}var Jc=function(a){function b(){var b=a.call(this,{})||this;b.request=null;b.startedFlowing=!1;return b}Ic(b,a);var c=b.prototype;c._destroy=function(a,b){Fc(this.request);b(a)};c._read=function(){this.startedFlowing&&Ec(this.request,this)};return b}(ca.Readable);function Kc(){}
function Lc(a,b){var c=new Jc,d=lc(a,Xa(!1,b?b.identifierPrefix:void 0),Ya(),Infinity,Kc,function(){c.startedFlowing=!0;Ec(d,c)},void 0,void 0);c.request=d;oc(d);return c}exports.renderToNodeStream=function(a,b){return Lc(a,b)};exports.renderToStaticMarkup=function(a,b){return Hc(a,b,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server')};
exports.renderToStaticNodeStream=function(a,b){return Lc(a,b)};exports.renderToString=function(a,b){return Hc(a,b,!1,'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 "renderToPipeableStream" which supports Suspense on the server')};
exports.version="18.3.0-next-fecc288b7-20221025";