From 003b3af7005d89ce562f162557b7f8cb2360ec0f Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Tue, 7 Mar 2023 01:51:10 +0100 Subject: [PATCH] Update vendored React (#46826) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates vendored React to the latest `@next` version, as well as corresponding changes to the manifest and module reference generation code. The new React version includes the following upstream changes: - 49f741046 Fix: Infinite act loop caused by wrong shouldYield (#26317) (Andrew Clark) - 106ea1c58 Support Iterables in Flight (#26313) (Sebastian Markbåge) - f905da227 [Flight] Send server reference error chunks to the client (#26293) (Hendrik Liebau) - e0241b660 Simplify Webpack References by encoding file path + export name as single id (#26300) (Sebastian Markbåge) - 25685d8a9 Codemod tests to waitFor pattern (9/?) (#26309) (Andrew Clark) - 64dde7082 Codemod tests to waitFor pattern (8/?) (#26308) (Andrew Clark) - 3cb5afb82 Codemod tests to waitFor pattern (7/?) (#26307) (Andrew Clark) - e98695db9 Codemod tests to waitFor pattern (6/?) (#26305) (Andrew Clark) - 9a52cc8bc Convert ReactLazy-test to waitFor pattern (#26304) (Andrew Clark) - 03462cfc7 [Fizz] External runtime: fix bug in processing existing elements (#26303) (mofeiZ) - faacefb4d Codemod tests to waitFor pattern (4/?) (#26302) (Andrew Clark) - 06460b6fb Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler (#26290) (Rubén Norte) - e64a8f403 Codemod tests to waitFor pattern (3/?) (#26299) (Andrew Clark) - ce8a72fd4 Codemod tests to waitFor pattern (2/?) (#26296) (Andrew Clark) - 1f1f8eb55 [Float][Fizz][Fiber]: Refactor '); // Tracks whether the boundary currently flushing is flushign style tags or has any +// stylesheet dependencies not flushed in the Preamble. -var didWrite = false; +var currentlyRenderingBoundaryHasStylesToHoist = false; // Acts as a return value for the forEach execution of style tag flushing. + +var destinationHasCapacity = true; function flushStyleTagsLateForBoundary(resource) { - if (resource.type === 'style' && (resource.state & Flushed) === NoState) { - if (didWrite === false) { - // we are going to write so we need to emit the open tag - didWrite = true; - writeChunk(this, styleTagTemplateOpen); - } // This '); function flushResourceInPreamble(resource) { if ((resource.state & (Flushed | Blocked)) === NoState) { @@ -4398,7 +4573,7 @@ function flushResourceInPreamble(resource) { } function flushResourceLate(resource) { - if ((resource.state & Flushed) === NoState) { + if ((resource.state & (Flushed | Blocked)) === NoState) { var chunks = resource.chunks; for (var i = 0; i < chunks.length; i++) { @@ -4407,11 +4582,17 @@ function flushResourceLate(resource) { resource.state |= FlushedLate; } -} +} // This must always be read after flushing stylesheet styles. we know we will encounter a style resource +// per precedence and it will be set before ready so we cast this to avoid an extra check at runtime -var didFlush = false; -function flushUnblockedStyle(resource, key, set) { +var precedenceStyleTagResource = null; // This flags let's us opt out of flushing a placeholder style tag to emit the precedence in the right order. +// If a stylesheet was flushed then we have the precedence order preserved and only need to emit '); - if (!didFlush) { - // if we did not flush anything for this precedence slot we emit - // an empty '))}function Ya(a){if("style"!==a.type){var b=a.chunks,c=Ea(a.props.href,a.props);A(b,c);for(c=0;c")}else if(e)for(f=0;f"))} -function cb(a,b,c){var d=0;b.preconnects.forEach(K,a);b.preconnects.clear();var e=c.preconnectChunks;for(d=0;d",instructions:0,externalRuntimeConfig:null,htmlChunks:null,headChunks:null,hasBody:!1,charsetChunks:[],preconnectChunks:[],preloadChunks:[],hoistableChunks:[],generateStaticMarkup:a}} -function hb(a,b,c,d){if(c.generateStaticMarkup)return a.push(v(b)),!1;""===b?a=d:(d&&a.push("\x3c!-- --\x3e"),a.push(v(b)),a=!0);return a} -var ib=Symbol.for("react.element"),jb=Symbol.for("react.portal"),kb=Symbol.for("react.fragment"),lb=Symbol.for("react.strict_mode"),mb=Symbol.for("react.profiler"),nb=Symbol.for("react.provider"),ob=Symbol.for("react.context"),pb=Symbol.for("react.server_context"),qb=Symbol.for("react.forward_ref"),rb=Symbol.for("react.suspense"),sb=Symbol.for("react.suspense_list"),tb=Symbol.for("react.memo"),ub=Symbol.for("react.lazy"),vb=Symbol.for("react.scope"),wb=Symbol.for("react.debug_trace_mode"),xb=Symbol.for("react.offscreen"), -yb=Symbol.for("react.legacy_hidden"),zb=Symbol.for("react.cache"),Ab=Symbol.for("react.default_value"),Bb=Symbol.iterator; -function Cb(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 kb:return"Fragment";case jb:return"Portal";case mb:return"Profiler";case lb:return"StrictMode";case rb:return"Suspense";case sb:return"SuspenseList";case zb:return"Cache"}if("object"===typeof a)switch(a.$$typeof){case ob:return(a.displayName||"Context")+".Consumer";case nb:return(a._context.displayName||"Context")+".Provider";case qb:var b=a.render;a=a.displayName; -a||(a=b.displayName||b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case tb:return b=a.displayName||null,null!==b?b:Cb(a.type)||"Memo";case ub:b=a._payload;a=a._init;try{return Cb(a(b))}catch(c){break}case pb:return(a.displayName||a._globalName)+".Provider"}return null}var Db=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Eb={};function Fb(a,b){a=a.contextTypes;if(!a)return Eb;var c={},d;for(d in a)c[d]=b[d];return c}var L=null; -function Gb(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(m(401));}else{if(null===c)throw Error(m(401));Gb(a,c)}b.context._currentValue2=b.value}}function Hb(a){a.context._currentValue2=a.parentValue;a=a.parent;null!==a&&Hb(a)}function Ib(a){var b=a.parent;null!==b&&Ib(b);a.context._currentValue2=a.value} -function Jb(a,b){a.context._currentValue2=a.parentValue;a=a.parent;if(null===a)throw Error(m(402));a.depth===b.depth?Gb(a,b):Jb(a,b)}function Kb(a,b){var c=b.parent;if(null===c)throw Error(m(402));a.depth===c.depth?Gb(a,c):Kb(a,c);b.context._currentValue2=b.value}function Lb(a){var b=L;b!==a&&(null===b?Ib(a):null===a?Hb(b):b.depth===a.depth?Gb(b,a):b.depth>a.depth?Jb(b,a):Kb(b,a),L=a)} -var Mb={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 Nb(a,b,c,d){var e=void 0!==a.state?a.state:null;a.updater=Mb;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:q({},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&&Mb.enqueueReplaceState(a,a.state,null),null!==f.queue&&0>=g;e-=g;return{id:1<<32-Qb(b)+e|c<>>=0;return 0===a?32:31-(Sb(a)/Tb|0)|0}var Ub=Error(m(460));function Vb(){} -function Wb(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Vb,Vb),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}Xb=b;throw Ub;}}var Xb=null; -function Yb(){if(null===Xb)throw Error(m(459));var a=Xb;Xb=null;return a}function Zb(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var $b="function"===typeof Object.is?Object.is:Zb,M=null,ac=null,bc=null,N=null,O=!1,cc=!1,P=0,R=0,S=null,T=null,dc=0;function V(){if(null===M)throw Error(m(321));return M}function ec(){if(0");case 3:return a.push("");case 4:return a.push("");case 5:return a.push("");case 6:return a.push("");case 7:return a.push("");case 8:return a.push("");default:throw Error(m(397));}}var Qa=/[<\u2028\u2029]/g; +function Ra(a){return JSON.stringify(a).replace(Qa,function(b){switch(b){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(b){switch(b){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");}})}var Ua=!1,Va=!0; +function Wa(a){if("stylesheet"===a.type&&0===(a.state&1))Ua=!0;else if("style"===a.type){var b=a.chunks,c=a.props.hrefs,d=0;if(b.length){this.push('");Ua=!0;b.length=0;c.length=0}}} +function Xa(a,b,c){Ua=!1;Va=!0;b.forEach(Wa,a);Ua&&(c.stylesToHoist=!0);return Va}function K(a){if(0===(a.state&7)){for(var b=a.chunks,c=0;c');for(b=0;b");a.length=0;c.length=0}} +function bb(a){if("style"!==a.type){var b=a.chunks,c=Ga(a.props.href,a.props);C(b,c);for(c=0;c")}else if(e)for(f=0;f"))} +function fb(a,b,c){var d=0;b.preconnects.forEach(L,a);b.preconnects.clear();var e=c.preconnectChunks;for(d=0;d",instructions:0,externalRuntimeConfig:d,htmlChunks:null,headChunks:null,hasBody:!1,charsetChunks:[],preconnectChunks:[],preloadChunks:[],hoistableChunks:[],stylesToHoist:!1,generateStaticMarkup:a}} +function kb(a,b,c,d){if(c.generateStaticMarkup)return a.push(w(b)),!1;""===b?a=d:(d&&a.push("\x3c!-- --\x3e"),a.push(w(b)),a=!0);return a} +var lb=Symbol.for("react.element"),mb=Symbol.for("react.portal"),nb=Symbol.for("react.fragment"),ob=Symbol.for("react.strict_mode"),pb=Symbol.for("react.profiler"),qb=Symbol.for("react.provider"),rb=Symbol.for("react.context"),sb=Symbol.for("react.server_context"),tb=Symbol.for("react.forward_ref"),ub=Symbol.for("react.suspense"),vb=Symbol.for("react.suspense_list"),wb=Symbol.for("react.memo"),xb=Symbol.for("react.lazy"),yb=Symbol.for("react.scope"),zb=Symbol.for("react.debug_trace_mode"),Ab=Symbol.for("react.offscreen"), +Bb=Symbol.for("react.legacy_hidden"),Cb=Symbol.for("react.cache"),Db=Symbol.for("react.default_value"),Eb=Symbol.iterator; +function Fb(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 nb:return"Fragment";case mb:return"Portal";case pb:return"Profiler";case ob:return"StrictMode";case ub:return"Suspense";case vb:return"SuspenseList";case Cb:return"Cache"}if("object"===typeof a)switch(a.$$typeof){case rb:return(a.displayName||"Context")+".Consumer";case qb:return(a._context.displayName||"Context")+".Provider";case tb:var b=a.render;a=a.displayName; +a||(a=b.displayName||b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case wb:return b=a.displayName||null,null!==b?b:Fb(a.type)||"Memo";case xb:b=a._payload;a=a._init;try{return Fb(a(b))}catch(c){break}case sb:return(a.displayName||a._globalName)+".Provider"}return null}var Gb=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hb={};function Ib(a,b){a=a.contextTypes;if(!a)return Hb;var c={},d;for(d in a)c[d]=b[d];return c}var M=null; +function Jb(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(m(401));}else{if(null===c)throw Error(m(401));Jb(a,c)}b.context._currentValue2=b.value}}function Kb(a){a.context._currentValue2=a.parentValue;a=a.parent;null!==a&&Kb(a)}function Lb(a){var b=a.parent;null!==b&&Lb(b);a.context._currentValue2=a.value} +function Mb(a,b){a.context._currentValue2=a.parentValue;a=a.parent;if(null===a)throw Error(m(402));a.depth===b.depth?Jb(a,b):Mb(a,b)}function Nb(a,b){var c=b.parent;if(null===c)throw Error(m(402));a.depth===c.depth?Jb(a,c):Nb(a,c);b.context._currentValue2=b.value}function Ob(a){var b=M;b!==a&&(null===b?Lb(a):null===a?Kb(b):b.depth===a.depth?Jb(b,a):b.depth>a.depth?Mb(b,a):Nb(b,a),M=a)} +var Pb={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 Qb(a,b,c,d){var e=void 0!==a.state?a.state:null;a.updater=Pb;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:q({},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&&Pb.enqueueReplaceState(a,a.state,null),null!==f.queue&&0>=g;e-=g;return{id:1<<32-Ub(b)+e|c<>>=0;return 0===a?32:31-(Wb(a)/Xb|0)|0}var Yb=Error(m(460));function Zb(){} +function $b(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Zb,Zb),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}ac=b;throw Yb;}}var ac=null; +function bc(){if(null===ac)throw Error(m(459));var a=ac;ac=null;return a}function cc(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var dc="function"===typeof Object.is?Object.is:cc,N=null,ec=null,fc=null,O=null,P=!1,gc=!1,Q=0,R=0,S=null,T=null,hc=0;function V(){if(null===N)throw Error(m(321));return N}function ic(){if(0= -f.insertionMode){a.responseState.hasBody=!0;break a}break;case "html":if(0===f.insertionMode)break a}b.push("")}c.lastPushedText=!1}else{switch(d){case yb:case wb:case lb:case mb:case kb:Z(a,b,null,e.children);return;case xb:"hidden"!==e.mode&&Z(a,b,null,e.children);return;case sb:Z(a,b,null,e.children);return;case vb:throw Error(m(343));case rb:a:{d=b.blockedBoundary;c=b.blockedSegment;f=e.fallback;e=e.children;g=new Set;var k={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1, -completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null,resources:new Set},h=xc(a,c.chunks.length,k,c.formatContext,!1,!1);c.children.push(h);c.lastPushedText=!1;var l=xc(a,0,null,c.formatContext,!1,!1);l.parentFlushed=!0;b.blockedBoundary=k;b.blockedSegment=l;a.resources.boundaryResources=k.resources;try{if(Ec(a,b,e),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),l.status=1,0===k.pendingTasks&&Ac(a,k),Fc(k,l),0===k.pendingTasks)break a}catch(n){l.status= -4,k.forceClientRender=!0,k.errorDigest=X(a,n)}finally{a.resources.boundaryResources=d?d.resources:null,b.blockedBoundary=d,b.blockedSegment=c}b=yc(a,null,f,d,h,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof d&&null!==d)switch(d.$$typeof){case qb:d=d.render;M={};ac=b;R=P=0;S=c;c=d(e,f);e=gc(d,e,c,f);if(0!==P){d=b.treeContext;b.treeContext=Pb(d,1,0);try{Z(a,b,null,e)}finally{b.treeContext=d}}else Z(a,b,null,e);return;case tb:d=d.type;e=Cc(d,e);Dc(a,b,c, -d,e,f);return;case nb: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(m(403));e=a.parentValue;a.context._currentValue2=e===Ab?a.context._defaultValue:e;a=L=a.parent;b.context=a;return;case ob:e=e.children;e=e(d._currentValue2);Z(a,b,null,e);return;case ub:f=d._init;d=f(d._payload);e=Cc(d,e);Dc(a,b,c,d,e,void 0);return}throw Error(m(130,null== +function Ec(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 k in c)if(!(k in f))throw Error(m(108,Fb(d)||"Unknown",k));d=q({},g,c)}b.legacyContext=d;Z(a,b,null,e);b.legacyContext=g}else Z(a,b,null,e)}function Fc(a,b){if(a&&a.defaultProps){b=q({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b} +function Gc(a,b,c,d,e,f){if("function"===typeof d)if(d.prototype&&d.prototype.isReactComponent)c=Ib(d,b.legacyContext),f=d.contextType,f=new d(e,"object"===typeof f&&null!==f?f._currentValue2:c),Qb(f,d,e,c),Ec(a,b,f,d);else{f=Ib(d,b.legacyContext);N={};ec=b;R=Q=0;S=c;c=d(e,f);c=kc(d,e,c,f);var g=0!==Q;if("object"===typeof c&&null!==c&&"function"===typeof c.render&&void 0===c.$$typeof)Qb(c,d,e,f),Ec(a,b,c,d);else if(g){e=b.treeContext;b.treeContext=Tb(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;g=Ma(c.chunks,d,e,a.resources,a.responseState,c.formatContext,c.lastPushedText);c.lastPushedText=!1;f=c.formatContext;c.formatContext=Ba(f,d,e);Hc(a,b,g);c.formatContext=f;a:{b=c.chunks;switch(d){case "title":case "style":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":break a;case "body":if(1>= +f.insertionMode){a.responseState.hasBody=!0;break a}break;case "html":if(0===f.insertionMode)break a}b.push("")}c.lastPushedText=!1}else{switch(d){case Bb:case zb:case ob:case pb:case nb:Z(a,b,null,e.children);return;case Ab:"hidden"!==e.mode&&Z(a,b,null,e.children);return;case vb:Z(a,b,null,e.children);return;case yb:throw Error(m(343));case ub:a:{d=b.blockedBoundary;c=b.blockedSegment;f=e.fallback;e=e.children;g=new Set;var k={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1, +completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null,resources:new Set},h=Bc(a,c.chunks.length,k,c.formatContext,!1,!1);c.children.push(h);c.lastPushedText=!1;var l=Bc(a,0,null,c.formatContext,!1,!1);l.parentFlushed=!0;b.blockedBoundary=k;b.blockedSegment=l;a.resources.boundaryResources=k.resources;try{if(Hc(a,b,e),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),l.status=1,Ic(k,l),0===k.pendingTasks)break a}catch(p){l.status= +4,k.forceClientRender=!0,k.errorDigest=X(a,p)}finally{a.resources.boundaryResources=d?d.resources:null,b.blockedBoundary=d,b.blockedSegment=c}b=Cc(a,null,f,d,h,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof d&&null!==d)switch(d.$$typeof){case tb:d=d.render;N={};ec=b;R=Q=0;S=c;c=d(e,f);e=kc(d,e,c,f);if(0!==Q){d=b.treeContext;b.treeContext=Tb(d,1,0);try{Z(a,b,null,e)}finally{b.treeContext=d}}else Z(a,b,null,e);return;case wb:d=d.type;e=Fc(d,e);Gc(a,b,c, +d,e,f);return;case qb:c=e.children;d=d._context;e=e.value;f=d._currentValue2;d._currentValue2=e;g=M;M=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=M;if(null===a)throw Error(m(403));e=a.parentValue;a.context._currentValue2=e===Db?a.context._defaultValue:e;a=M=a.parent;b.context=a;return;case rb:e=e.children;e=e(d._currentValue2);Z(a,b,null,e);return;case xb:f=d._init;d=f(d._payload);e=Fc(d,e);Gc(a,b,c,d,e,void 0);return}throw Error(m(130,null== d?d:typeof d,""));}} -function Z(a,b,c,d){b.node=d;if("object"===typeof d&&null!==d){switch(d.$$typeof){case ib:Dc(a,b,c,d.type,d.props,d.ref);return;case jb:throw Error(m(257));case ub:c=d._init;d=c(d._payload);Z(a,b,null,d);return}if(pa(d)){Gc(a,b,d);return}null===d||"object"!==typeof d?c=null:(c=Bb&&d[Bb]||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);Gc(a,b,e)}return}a=Object.prototype.toString.call(d);throw Error(m(31, -"[object Object]"===a?"object with keys {"+Object.keys(d).join(", ")+"}":a));}"string"===typeof d?(c=b.blockedSegment,c.lastPushedText=hb(b.blockedSegment.chunks,d,a.responseState,c.lastPushedText)):"number"===typeof d&&(c=b.blockedSegment,c.lastPushedText=hb(b.blockedSegment.chunks,""+d,a.responseState,c.lastPushedText))}function Gc(a,b,c){for(var d=c.length,e=0;e');case 1:c.status=2;var e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g")),Lc(a,b,c),a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Ma(b,a.responseState,d.id),Lc(a,b,c),b.push("\x3c!--/$--\x3e");c=d.resources;if(e=a.resources.boundaryResources)c.forEach(eb,e),c.clear();a.responseState.generateStaticMarkup||b.push("\x3c!--$--\x3e");c=d.completedSegments;if(1!==c.length)throw Error(m(391)); -Mc(a,b,c[0]);a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");return a}function Nc(a,b,c){Na(b,a.responseState,c.formatContext,c.id);Mc(a,b,c);return Oa(b,c.formatContext)} -function Oc(a,b,c){a.resources.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e');case 1:c.status=2;var e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g")),Oc(a,b,c),a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Na(b,a.responseState,d.id),Oc(a,b,c),b.push("\x3c!--/$--\x3e");(c=a.resources.boundaryResources)&&d.resources.forEach(ib,c);a.responseState.generateStaticMarkup||b.push("\x3c!--$--\x3e");c=d.completedSegments;if(1!==c.length)throw Error(m(391));Pc(a,b,c[0]); +a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");return a}function Qc(a,b,c){Oa(b,a.responseState,c.formatContext,c.id);Pc(a,b,c);return Pa(b,c.formatContext)} +function Rc(a,b,c){a.resources.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e");return b} -function Pc(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(m(392));return Nc(a,b,d)}Nc(a,b,d);a=a.responseState;b.push(a.startInlineScript);0===(a.instructions&1)?(a.instructions|=1,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('$RS("');b.push(a.segmentPrefix);e=e.toString(16); -b.push(e);b.push('","');b.push(a.placeholderPrefix);b.push(e);b=b.push('")\x3c/script>');return b} -function Kc(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){bb(b,a.resources,a.responseState,0===a.allPendingTasks);Mc(a,b,d);a.completedRootSegment=null;var e=a.responseState.bootstrapChunks;for(d=0;d")){a.destination=null;c++;f.splice(0, -c);return}}f.splice(0,c);var E=a.completedBoundaries;for(c=0;c")),a.htmlChunks&&(b.push("")),b.push(null))}} -function Qc(a,b){try{var c=a.abortableTasks;if(0"):b.push('">');return b} +function Sc(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(m(392));return Qc(a,b,d)}Qc(a,b,d);a=a.responseState;(c=0===a.streamingFormat)?(b.push(a.startInlineScript),0===(a.instructions&1)?(a.instructions|=1,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('$RS("')):b.push('');return b} +function Nc(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){db(b,a.resources,a.responseState,0===a.allPendingTasks);Pc(a,b,d);a.completedRootSegment=null;var e=a.responseState.bootstrapChunks;for(d=0;d"):!e.push('">')){a.destination=null;c++;f.splice(0,c);return}}f.splice(0,c);var U=a.completedBoundaries;for(c=0;c")),a.htmlChunks&&(b.push("")),b.push(null))}}function Tc(a,b){try{var c=a.abortableTasks;if(0'); var startInlineScript = stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); +var completeSegmentData1 = stringToPrecomputedChunk('');case 1:c.status=2;var e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g")),Mc(a,b,c),a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Ma(b,a.responseState,d.id),Mc(a,b,c),b.push("\x3c!--/$--\x3e");c=d.resources;if(e=a.resources.boundaryResources)c.forEach(eb,e),c.clear();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."); -Nc(a,b,c[0]);a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");return a}function Oc(a,b,c){Na(b,a.responseState,c.formatContext,c.id);Nc(a,b,c);return Oa(b,c.formatContext)} -function Pc(a,b,c){a.resources.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e")),Pc(a,b,c),a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Na(b,a.responseState,d.id),Pc(a,b,c),b.push("\x3c!--/$--\x3e");(c=a.resources.boundaryResources)&&d.resources.forEach(ib,c);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."); +Qc(a,b,c[0]);a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");return a}function Rc(a,b,c){Oa(b,a.responseState,c.formatContext,c.id);Qc(a,b,c);return Pa(b,c.formatContext)} +function Sc(a,b,c){a.resources.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e");return b} -function Qc(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 Oc(a,b,d)}Oc(a,b,d);a=a.responseState;b.push(a.startInlineScript);0===(a.instructions&1)?(a.instructions|=1,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('$RS("');b.push(a.segmentPrefix);e=e.toString(16);b.push(e);b.push('","');b.push(a.placeholderPrefix);b.push(e);b=b.push('")\x3c/script>');return b} -function Lc(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){bb(b,a.resources,a.responseState,0===a.allPendingTasks);Nc(a,b,d);a.completedRootSegment=null;var e=a.responseState.bootstrapChunks;for(d=0;d")){a.destination= -null;c++;f.splice(0,c);return}}f.splice(0,c);var D=a.completedBoundaries;for(c=0;c")),a.htmlChunks&&(b.push("")),b.push(null))}} -function Rc(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{Lc(a,b)}catch(c){X(a,c),Y(a,c)}}}function Sc(a,b){try{var c=a.abortableTasks;if(0"):b.push('">');return b} +function Tc(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 Rc(a,b,d)}Rc(a,b,d);a=a.responseState;(c=0===a.streamingFormat)?(b.push(a.startInlineScript),0===(a.instructions&1)?(a.instructions|=1,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('$RS("')):b.push('');return b} +function Oc(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){db(b,a.resources,a.responseState,0===a.allPendingTasks);Qc(a,b,d);a.completedRootSegment=null;var e=a.responseState.bootstrapChunks;for(d=0;d"):!e.push('">')){a.destination=null;c++;f.splice(0,c);return}}f.splice(0,c);var T=a.completedBoundaries;for(c=0;c")),a.htmlChunks&&(b.push("")),b.push(null))}}function Uc(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{Oc(a,b)}catch(c){X(a,c),Y(a,c)}}} +function Vc(a,b){try{var c=a.abortableTasks;if(0'); +var dataElementQuotedEnd = stringToPrecomputedChunk('">'); var startInlineScript = stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); -stringToPrecomputedChunk('