>>=0;return 0===a?32:31-(yd(a)/zd|0)|0}var Ad=Error(q(460));function Bd(){}
-function Cd(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Bd,Bd),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;}Dd=b;throw Ad;}}var Dd=null;
-function Ed(){if(null===Dd)throw Error(q(459));var a=Dd;Dd=null;return a}function Fd(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var Gd="function"===typeof Object.is?Object.is:Fd,T=null,Hd=null,Id=null,Jd=null,Kd=null,U=null,Ld=!1,Md=!1,Nd=0,Od=0,Pd=-1,Qd=0,Rd=null,Sd=null,Td=0;function Ud(){if(null===T)throw Error(q(321));return T}function Vd(){if(0=h.insertionMode){a.hasBody=!0;break a}break;case "html":if(0===h.insertionMode){a.hasHtml=!0;break a}}b.push("",e,">")}d.lastPushedText=!1}else{switch(e){case cd:case ad:case wc:case xc:case vc:e=b.keyPath;b.keyPath=c;X(a,b,null,f.children,-1);b.keyPath=e;return;case bd:"hidden"!==f.mode&&(e=b.keyPath,b.keyPath=c,X(a,b,null,f.children,-1),b.keyPath=e);return;case Xc:e=b.keyPath;b.keyPath=c;X(a,b,null,f.children,-1);b.keyPath=e;return;case $c:throw Error(q(343));case Cc:a:if(null!==
-b.replay){e=b.keyPath;b.keyPath=c;c=f.children;try{Y(a,b,c,-1)}finally{b.keyPath=e}}else{l=b.keyPath;e=b.blockedBoundary;var p=b.blockedSegment;d=f.fallback;var r=f.children;f=new Set;g=we(a,f);null!==a.trackedPostpones&&(g.trackedContentKeyPath=c);k=se(a,p.chunks.length,g,b.formatContext,!1,!1);p.children.push(k);p.lastPushedText=!1;var m=se(a,0,null,b.formatContext,!1,!1);m.parentFlushed=!0;b.blockedBoundary=g;b.blockedSegment=m;a.renderState.boundaryResources=g.resources;b.keyPath=c;try{if(Y(a,
-b,r,-1),a.renderState.generateStaticMarkup||m.lastPushedText&&m.textEmbedded&&m.chunks.push("\x3c!-- --\x3e"),m.status=1,De(g,m),0===g.pendingTasks&&0===g.status){g.status=1;break a}}catch(u){m.status=4,g.status=4,"object"===typeof u&&null!==u&&u.$$typeof===gd?(a.onPostpone(u.message),h="POSTPONE"):h=W(a,u),g.errorDigest=h}finally{a.renderState.boundaryResources=e?e.resources:null,b.blockedBoundary=e,b.blockedSegment=p,b.keyPath=l}h=[c[0],"Suspense Fallback",c[2]];l=a.trackedPostpones;null!==l&&(p=
-[h[1],h[2],[],null],l.workingMap.set(h,p),5===g.status?l.workingMap.get(c)[4]=p:g.trackedFallbackNode=p);b=te(a,null,d,-1,e,k,f,h,b.formatContext,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof e&&null!==e)switch(e.$$typeof){case Bc:e=e.render;T={};Hd=b;Id=a;Jd=c;Od=Nd=0;Pd=-1;Qd=0;Rd=d;d=e(f,g);f=Xd(e,f,d,g);Ae(a,b,c,f,0!==Nd,Od,Pd);return;case Yc:e=e.type;f=Be(e,f);Ce(a,b,c,d,e,f,g);return;case yc:h=f.children;d=b.keyPath;e=e._context;f=f.value;g=e._currentValue2;
-e._currentValue2=f;k=ld;ld=f={parent:k,depth:null===k?0:k.depth+1,context:e,parentValue:g,value:f};b.context=f;b.keyPath=c;X(a,b,null,h,-1);a=ld;if(null===a)throw Error(q(403));c=a.parentValue;a.context._currentValue2=c===ed?a.context._defaultValue:c;a=ld=a.parent;b.context=a;b.keyPath=d;return;case zc:f=f.children;f=f(e._currentValue2);e=b.keyPath;b.keyPath=c;X(a,b,null,f,-1);b.keyPath=e;return;case Zc:h=e._init;e=h(e._payload);f=Be(e,f);Ce(a,b,c,d,e,f,void 0);return}throw Error(q(130,null==e?e:
-typeof e,""));}}function Ee(a,b,c,d,e){var f=b.replay,g=b.blockedBoundary,h=se(a,0,null,b.formatContext,!1,!1);h.id=c;h.parentFlushed=!0;try{b.replay=null,b.blockedSegment=h,Y(a,b,d,e),h.status=1,null===g?a.completedRootSegment=h:(De(g,h),g.parentFlushed&&a.partialBoundaries.push(g))}finally{b.replay=f,b.blockedSegment=null}}
-function X(a,b,c,d,e){b.node=d;b.childIndex=e;if("object"===typeof d&&null!==d){switch(d.$$typeof){case tc:var f=d.type,g=d.key,h=d.props,k=d.ref,l=id(f),p=null==g?-1===e?0:e:g;g=[b.keyPath,l,p];if(null!==b.replay)a:{var r=b.replay;e=r.nodes;for(d=0;da.depth?qd(b,a):rd(b,a),md=a)}
+var td={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 ud(a,b,c,d){var e=void 0!==a.state?a.state:null;a.updater=td;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:t({},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&&td.enqueueReplaceState(a,a.state,null),null!==f.queue&&0>=g;e-=g;return{id:1<<32-xd(b)+e|c<>>=0;return 0===a?32:31-(zd(a)/Ad|0)|0}var Bd=Error(n(460));function Cd(){}
+function Dd(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Cd,Cd),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;}Ed=b;throw Bd;}}var Ed=null;
+function Fd(){if(null===Ed)throw Error(n(459));var a=Ed;Ed=null;return a}function Gd(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var Hd="function"===typeof Object.is?Object.is:Gd,T=null,Id=null,Jd=null,Kd=null,Ld=null,U=null,Md=!1,Nd=!1,Od=0,Pd=0,Qd=-1,Rd=0,Sd=null,Td=null,Ud=0;function Vd(){if(null===T)throw Error(n(321));return T}function Wd(){if(0=h.insertionMode){a.hasBody=!0;break a}break;case "html":if(0===h.insertionMode){a.hasHtml=!0;break a}}b.push("",e,">")}d.lastPushedText=!1}else{switch(e){case dd:case bd:case wc:case xc:case vc:e=b.keyPath;b.keyPath=c;Y(a,b,null,f.children,-1);b.keyPath=e;return;case cd:"hidden"!==f.mode&&(e=b.keyPath,b.keyPath=c,Y(a,b,null,f.children,-1),b.keyPath=e);return;case Yc:e=b.keyPath;b.keyPath=c;Y(a,b,null,f.children,-1);b.keyPath=e;return;case ad:throw Error(n(343));case Cc:a:if(null!==
+b.replay){e=b.keyPath;b.keyPath=c;c=f.children;try{Z(a,b,c,-1)}finally{b.keyPath=e}}else{l=b.keyPath;e=b.blockedBoundary;var p=b.blockedSegment;d=f.fallback;var r=f.children;f=new Set;g=xe(a,f);null!==a.trackedPostpones&&(g.trackedContentKeyPath=c);k=te(a,p.chunks.length,g,b.formatContext,!1,!1);p.children.push(k);p.lastPushedText=!1;var m=te(a,0,null,b.formatContext,!1,!1);m.parentFlushed=!0;b.blockedBoundary=g;b.blockedSegment=m;a.renderState.boundaryResources=g.resources;b.keyPath=c;try{if(Z(a,
+b,r,-1),a.renderState.generateStaticMarkup||m.lastPushedText&&m.textEmbedded&&m.chunks.push("\x3c!-- --\x3e"),m.status=1,Ee(g,m),0===g.pendingTasks&&0===g.status){g.status=1;break a}}catch(z){m.status=4,g.status=4,"object"===typeof z&&null!==z&&z.$$typeof===hd?(a.onPostpone(z.message),h="POSTPONE"):h=X(a,z),g.errorDigest=h}finally{a.renderState.boundaryResources=e?e.resources:null,b.blockedBoundary=e,b.blockedSegment=p,b.keyPath=l}h=[c[0],"Suspense Fallback",c[2]];l=a.trackedPostpones;null!==l&&(p=
+[h[1],h[2],[],null],l.workingMap.set(h,p),5===g.status?l.workingMap.get(c)[4]=p:g.trackedFallbackNode=p);b=ue(a,null,d,-1,e,k,f,h,b.formatContext,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof e&&null!==e)switch(e.$$typeof){case Bc:e=e.render;T={};Id=b;Jd=a;Kd=c;Pd=Od=0;Qd=-1;Rd=0;Sd=d;d=e(f,g);f=Yd(e,f,d,g);Be(a,b,c,f,0!==Od,Pd,Qd);return;case Zc:e=e.type;f=Ce(e,f);De(a,b,c,d,e,f,g);return;case yc:h=f.children;d=b.keyPath;e=e._context;f=f.value;g=e._currentValue2;
+e._currentValue2=f;k=md;md=f={parent:k,depth:null===k?0:k.depth+1,context:e,parentValue:g,value:f};b.context=f;b.keyPath=c;Y(a,b,null,h,-1);a=md;if(null===a)throw Error(n(403));c=a.parentValue;a.context._currentValue2=c===fd?a.context._defaultValue:c;a=md=a.parent;b.context=a;b.keyPath=d;return;case zc:f=f.children;f=f(e._currentValue2);e=b.keyPath;b.keyPath=c;Y(a,b,null,f,-1);b.keyPath=e;return;case $c:h=e._init;e=h(e._payload);f=Ce(e,f);De(a,b,c,d,e,f,void 0);return}throw Error(n(130,null==e?e:
+typeof e,""));}}function Fe(a,b,c,d,e){var f=b.replay,g=b.blockedBoundary,h=te(a,0,null,b.formatContext,!1,!1);h.id=c;h.parentFlushed=!0;try{b.replay=null,b.blockedSegment=h,Z(a,b,d,e),h.status=1,null===g?a.completedRootSegment=h:(Ee(g,h),g.parentFlushed&&a.partialBoundaries.push(g))}finally{b.replay=f,b.blockedSegment=null}}
+function Y(a,b,c,d,e){if(null!==b.replay&&"number"===typeof b.replay.slots)Fe(a,b,b.replay.slots,d,e);else{b.node=d;b.childIndex=e;if("object"===typeof d&&null!==d){switch(d.$$typeof){case tc:var f=d.type,g=d.key,h=d.props,k=d.ref,l=jd(f),p=null==g?-1===e?0:e:g;g=[b.keyPath,l,p];if(null!==b.replay)a:{var r=b.replay;e=r.nodes;for(d=0;d');case 1:c.status=2;var e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g');case 1:c.status=2;var e=!0;d=c.chunks;var f=0;c=c.children;for(var g=0;g")),Oe(a,b,c),a=a.renderState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(1!==d.status)return 0===d.status&&(d.rootSegmentID=a.nextSegmentId++),0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Pb(b,a.renderState,d.rootSegmentID),Oe(a,b,c),b.push("\x3c!--/$--\x3e");c=d.resources;var e=a.renderState.boundaryResources;e&&(c.styles.forEach(pc,e),c.stylesheets.forEach(qc,e));a.renderState.generateStaticMarkup||b.push("\x3c!--$--\x3e");c=d.completedSegments;if(1!==c.length)throw Error(q(391));Pe(a,b,c[0]);a=a.renderState.generateStaticMarkup?
-!0:b.push("\x3c!--/$--\x3e");return a}function Qe(a,b,c){Qb(b,a.renderState,c.parentFormatContext,c.id);Pe(a,b,c);return Rb(b,c.parentFormatContext)}
-function Re(a,b,c){a.renderState.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e")),Pe(a,b,c),a=a.renderState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(1!==d.status)return 0===d.status&&(d.rootSegmentID=a.nextSegmentId++),0a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Pb(b,a.renderState,d.rootSegmentID),Pe(a,b,c),b.push("\x3c!--/$--\x3e");c=d.resources;var e=a.renderState.boundaryResources;e&&(c.styles.forEach(pc,e),c.stylesheets.forEach(qc,e));a.renderState.generateStaticMarkup||b.push("\x3c!--$--\x3e");c=d.completedSegments;if(1!==c.length)throw Error(n(391));Qe(a,b,c[0]);a=a.renderState.generateStaticMarkup?
+!0:b.push("\x3c!--/$--\x3e");return a}function Re(a,b,c){Qb(b,a.renderState,c.parentFormatContext,c.id);Qe(a,b,c);return Rb(b,c.parentFormatContext)}
+function Se(a,b,c){a.renderState.boundaryResources=c.resources;for(var d=c.completedSegments,e=0;e"):b.push('">');return Ob(b,a)&&d}
-function Se(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(q(392));return Qe(a,b,d)}if(e===c.rootSegmentID)return Qe(a,b,d);Qe(a,b,d);c=a.resumableState;a=a.renderState;(d=0===c.streamingFormat)?(b.push(a.startInlineScript),0===(c.instructions&1)?(c.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("')):
+function Te(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(n(392));return Re(a,b,d)}if(e===c.rootSegmentID)return Re(a,b,d);Re(a,b,d);c=a.resumableState;a=a.renderState;(d=0===c.streamingFormat)?(b.push(a.startInlineScript),0===(c.instructions&1)?(c.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(''):b.push('">');return b}
-function Ne(a,b){try{var c,d=a.completedRootSegment;if(null!==d)if(0===a.pendingRootTasks){var e=a.renderState;if((0!==a.allPendingTasks||null!==a.trackedPostpones)&&e.externalRuntimeScript){var f=e.externalRuntimeScript,g=a.resumableState,h=f.src,k=f.chunks;g.scriptResources.hasOwnProperty(h)||(g.scriptResources[h]=null,e.scripts.add(k))}var l=e.htmlChunks,p=e.headChunks;f=0;if(l){for(f=0;f")}}else if(p)for(f=
-0;f"));Pe(a,b,d);a.completedRootSegment=null;Ob(b,a.renderState)}else return;var n=a.renderState;d=0;n.preconnects.forEach(N,b);n.preconnects.clear();var z=n.preconnectChunks;for(d=0;d"):!n.push('">')){a.destination=null;c++;x.splice(0,c);return}}x.splice(0,c);var V=a.completedBoundaries;for(c=0;c")),a.hasHtml&&(b.push(""),b.push("html"),b.push(">"))),b.push(null))}}function oc(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;Ne(a,b)}}
-function Te(a,b){try{var c=a.abortableTasks;if(0")}}else if(p)for(f=
+0;f"));Qe(a,b,d);a.completedRootSegment=null;Ob(b,a.renderState)}else return;var q=a.renderState;d=0;q.preconnects.forEach(K,b);q.preconnects.clear();var u=q.preconnectChunks;for(d=0;d"):!q.push('">')){a.destination=null;c++;O.splice(0,c);return}}O.splice(0,c);var W=a.completedBoundaries;for(c=0;c")),a.hasHtml&&(b.push(""),b.push("html"),b.push(">"))),b.push(null))}}function oc(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;Oe(a,b)}}
+function Ue(a,b){try{var c=a.abortableTasks;if(0 0) {
throw new Error("Couldn't find all resumable slots by key/index during replaying. " + "The tree doesn't match so React will fallback to client rendering.");
@@ -9039,24 +9038,15 @@ function replaySuspenseBoundary(request, task, keyPath, props, id, childNodes, c
task.keyPath = prevKeyPath;
}
- var fallbackKeyPath = [keyPath[0], 'Suspense Fallback', keyPath[2]];
- var suspendedFallbackTask; // We create suspended task for the fallback because we don't want to actually work
+ var fallbackKeyPath = [keyPath[0], 'Suspense Fallback', keyPath[2]]; // We create suspended task for the fallback because we don't want to actually work
// on it yet in case we finish the main content, so we queue for later.
- if (typeof fallbackSlots === 'number') {
- // Resuming directly in the fallback.
- var resumedSegment = createPendingSegment(request, 0, null, task.formatContext, false, false);
- resumedSegment.id = fallbackSlots;
- resumedSegment.parentFlushed = true;
- suspendedFallbackTask = createRenderTask(request, null, fallback, -1, parentBoundary, resumedSegment, fallbackAbortSet, fallbackKeyPath, task.formatContext, task.legacyContext, task.context, task.treeContext);
- } else {
- var fallbackReplay = {
- nodes: fallbackNodes,
- slots: fallbackSlots,
- pendingTasks: 0
- };
- suspendedFallbackTask = createReplayTask(request, null, fallbackReplay, fallback, -1, parentBoundary, fallbackAbortSet, fallbackKeyPath, task.formatContext, task.legacyContext, task.context, task.treeContext);
- }
+ var fallbackReplay = {
+ nodes: fallbackNodes,
+ slots: fallbackSlots,
+ pendingTasks: 0
+ };
+ var suspendedFallbackTask = createReplayTask(request, null, fallbackReplay, fallback, -1, parentBoundary, fallbackAbortSet, fallbackKeyPath, task.formatContext, task.legacyContext, task.context, task.treeContext);
{
suspendedFallbackTask.componentStack = task.componentStack;
@@ -9064,8 +9054,7 @@ function replaySuspenseBoundary(request, task, keyPath, props, id, childNodes, c
// on preparing fallbacks if we don't have any more main content to task on.
- request.pingedTasks.push(suspendedFallbackTask); // TODO: Should this be in the finally?
-
+ request.pingedTasks.push(suspendedFallbackTask);
popComponentStackInDEV(task);
}
@@ -9606,37 +9595,6 @@ function resumeNode(request, task, segmentId, node, childIndex) {
}
}
-function resumeElement(request, task, keyPath, segmentId, prevThenableState, type, props, ref) {
- var prevReplay = task.replay;
- var blockedBoundary = task.blockedBoundary;
- var resumedSegment = createPendingSegment(request, 0, null, task.formatContext, false, false);
- resumedSegment.id = segmentId;
- resumedSegment.parentFlushed = true;
-
- try {
- // Convert the current ReplayTask to a RenderTask.
- var renderTask = task;
- renderTask.replay = null;
- renderTask.blockedSegment = resumedSegment;
- renderElement(request, task, keyPath, prevThenableState, type, props, ref);
- resumedSegment.status = COMPLETED;
-
- if (blockedBoundary === null) {
- request.completedRootSegment = resumedSegment;
- } else {
- queueCompletedSegment(blockedBoundary, resumedSegment);
-
- if (blockedBoundary.parentFlushed) {
- request.partialBoundaries.push(blockedBoundary);
- }
- }
- } finally {
- // Restore to a ReplayTask.
- task.replay = prevReplay;
- task.blockedSegment = null;
- }
-}
-
function replayElement(request, task, keyPath, prevThenableState, name, keyOrIndex, childIndex, type, props, ref, replay) {
// We're replaying. Find the path to follow.
var replayNodes = replay.nodes;
@@ -9647,17 +9605,18 @@ function replayElement(request, task, keyPath, prevThenableState, name, keyOrInd
if (keyOrIndex !== node[1]) {
continue;
- } // Let's double check that the component name matches as a precaution.
-
-
- if (name !== null && name !== node[0]) {
- throw new Error('Expected to see a component of type "' + name + '" in this slot. ' + "The tree doesn't match so React will fallback to client rendering.");
}
if (node.length === 4) {
// Matched a replayable path.
+ // Let's double check that the component name matches as a precaution.
+ if (name !== null && name !== node[0]) {
+ throw new Error('Expected the resume to render <' + node[0] + '> in this slot but instead it rendered <' + name + '>. ' + "The tree doesn't match so React will fallback to client rendering.");
+ }
+
var childNodes = node[2];
var childSlots = node[3];
+ var currentNode = task.node;
task.replay = {
nodes: childNodes,
slots: childSlots,
@@ -9665,37 +9624,40 @@ function replayElement(request, task, keyPath, prevThenableState, name, keyOrInd
};
try {
- if (typeof childSlots === 'number') {
- // Matched a resumable element.
- resumeElement(request, task, keyPath, childSlots, prevThenableState, type, props, ref);
- } else {
- renderElement(request, task, keyPath, prevThenableState, type, props, ref);
- }
+ renderElement(request, task, keyPath, prevThenableState, type, props, ref);
if (task.replay.pendingTasks === 1 && task.replay.nodes.length > 0 // TODO check remaining slots
) {
throw new Error("Couldn't find all resumable slots by key/index during replaying. " + "The tree doesn't match so React will fallback to client rendering.");
}
+
+ task.replay.pendingTasks--;
} catch (x) {
if (typeof x === 'object' && x !== null && (x === SuspenseException || typeof x.then === 'function')) {
// Suspend
+ if (task.node === currentNode) {
+ // This same element suspended so we need to pop the replay we just added.
+ task.replay = replay;
+ }
+
throw x;
- } // Unlike regular render, we don't terminate the siblings if we error
+ }
+
+ task.replay.pendingTasks--; // Unlike regular render, we don't terminate the siblings if we error
// during a replay. That's because this component didn't actually error
// in the original prerender. What's unable to complete is the child
// replay nodes which might be Suspense boundaries which are able to
// absorb the error and we can still continue with siblings.
-
erroredReplay(request, task.blockedBoundary, x, childNodes, childSlots);
- } finally {
- task.replay.pendingTasks--;
- task.replay = replay;
}
+
+ task.replay = replay;
} else {
// Let's double check that the component type matches.
if (type !== REACT_SUSPENSE_TYPE) {
- throw new Error('Expected to see a Suspense boundary in this slot. ' + "The tree doesn't match so React will fallback to client rendering.");
+ var expectedType = 'Suspense';
+ throw new Error('Expected the resume to render <' + expectedType + '> in this slot but instead it rendered <' + (getComponentNameFromType(type) || 'Unknown') + '>. ' + "The tree doesn't match so React will fallback to client rendering.");
} // Matched a replayable path.
@@ -9759,8 +9721,15 @@ prevThenableState, node, childIndex) {
function renderNodeDestructiveImpl(request, task, prevThenableState, node, childIndex) {
- // Stash the node we're working on. We'll pick up from this task in case
+ if (task.replay !== null && typeof task.replay.slots === 'number') {
+ // TODO: Figure out a cheaper place than this hot path to do this check.
+ var resumeSegmentID = task.replay.slots;
+ resumeNode(request, task, resumeSegmentID, node, childIndex);
+ return;
+ } // Stash the node we're working on. We'll pick up from this task in case
// something suspends.
+
+
task.node = node;
task.childIndex = childIndex; // Handle object types
@@ -9938,24 +9907,26 @@ function replayFragment(request, task, children, childIndex) {
if (task.replay.pendingTasks === 1 && task.replay.nodes.length > 0) {
throw new Error("Couldn't find all resumable slots by key/index during replaying. " + "The tree doesn't match so React will fallback to client rendering.");
}
+
+ task.replay.pendingTasks--;
} catch (x) {
if (typeof x === 'object' && x !== null && (x === SuspenseException || typeof x.then === 'function')) {
// Suspend
throw x;
- } // Unlike regular render, we don't terminate the siblings if we error
+ }
+
+ task.replay.pendingTasks--; // Unlike regular render, we don't terminate the siblings if we error
// during a replay. That's because this component didn't actually error
// in the original prerender. What's unable to complete is the child
// replay nodes which might be Suspense boundaries which are able to
// absorb the error and we can still continue with siblings.
-
+ // This is an error, stash the component stack if it is null.
erroredReplay(request, task.blockedBoundary, x, childNodes, childSlots);
- } finally {
- task.replay.pendingTasks--;
- task.replay = replay;
- } // We finished rendering this node, so now we can consume this
- // slot. This must happen after in case we rerender this task.
+ }
+ task.replay = replay; // We finished rendering this node, so now we can consume this
+ // slot. This must happen after in case we rerender this task.
replayNodes.splice(j, 1);
break;
@@ -9990,7 +9961,7 @@ function renderChildrenArray(request, task, children, childIndex) {
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i); // We need to use the non-destructive form so that we can safely pop back
// up and render the sibling if something suspends.
- var resumeSegmentID = resumeSlots[i];
+ var resumeSegmentID = resumeSlots[i]; // TODO: If this errors we should still continue with the next sibling.
if (typeof resumeSegmentID === 'number') {
resumeNode(request, task, resumeSegmentID, node, i); // We finished rendering this node, so now we can consume this
@@ -10315,6 +10286,7 @@ function renderNode(request, task, node, childIndex) {
task.componentStack = previousComponentStack;
}
+ lastBoundaryErrorComponentStackDev = null;
return;
}
}
@@ -10376,6 +10348,7 @@ function erroredTask(request, boundary, error) {
}
if (boundary === null) {
+ lastBoundaryErrorComponentStackDev = null;
fatalError(request, error);
} else {
boundary.pendingTasks--;
@@ -10397,6 +10370,8 @@ function erroredTask(request, boundary, error) {
// We reuse the same queue for errors.
request.clientRenderedBoundaries.push(boundary);
}
+ } else {
+ lastBoundaryErrorComponentStackDev = null;
}
}
@@ -10510,8 +10485,6 @@ function abortTask(task, request, error) {
}
if (boundary === null) {
- request.allPendingTasks--;
-
if (request.status !== CLOSING && request.status !== CLOSED) {
var replay = task.replay;
@@ -10520,6 +10493,7 @@ function abortTask(task, request, error) {
// the request;
logRecoverableError(request, error);
fatalError(request, error);
+ return;
} else {
// If the shell aborts during a replay, that's not a fatal error. Instead
// we should be able to recover by client rendering all the root boundaries in
@@ -10530,6 +10504,14 @@ function abortTask(task, request, error) {
var errorDigest = logRecoverableError(request, error);
abortRemainingReplayNodes(request, null, replay.nodes, replay.slots, error, errorDigest);
}
+
+ request.pendingRootTasks--;
+
+ if (request.pendingRootTasks === 0) {
+ request.onShellError = noop;
+ var onShellReady = request.onShellReady;
+ onShellReady();
+ }
}
}
} else {
@@ -10571,12 +10553,13 @@ function abortTask(task, request, error) {
return abortTask(fallbackTask, request, error);
});
boundary.fallbackAbortableTasks.clear();
- request.allPendingTasks--;
+ }
- if (request.allPendingTasks === 0) {
- var onAllReady = request.onAllReady;
- onAllReady();
- }
+ request.allPendingTasks--;
+
+ if (request.allPendingTasks === 0) {
+ var onAllReady = request.onAllReady;
+ onAllReady();
}
}
@@ -10760,6 +10743,7 @@ function retryRenderTask(request, task, segment) {
logPostpone(request, postponeInstance.message);
trackPostpone(request, trackedPostpones, task, segment);
finishedTask(request, task.blockedBoundary, segment);
+ lastBoundaryErrorComponentStackDev = null;
return;
}
}
@@ -10836,6 +10820,14 @@ function retryReplayTask(request, task) {
task.replay.pendingTasks--;
task.abortSet.delete(task);
erroredReplay(request, task.blockedBoundary, x, task.replay.nodes, task.replay.slots);
+ request.pendingRootTasks--;
+
+ if (request.pendingRootTasks === 0) {
+ request.onShellError = noop;
+ var onShellReady = request.onShellReady;
+ onShellReady();
+ }
+
request.allPendingTasks--;
if (request.allPendingTasks === 0) {
diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js
index cfe0dfaa9675a..55d05af8aa2cf 100644
--- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js
+++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js
@@ -31,11 +31,11 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-'use strict';var ba=require("next/dist/compiled/react-experimental"),ha=require("react-dom"),ia=require("stream");
-function ja(a,b){var c=a.length&3;var d=a.length-c;var e=b;for(b=0;b>>16)&65535)<<16)&4294967295;f=f<<15|f>>>17;f=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295;e^=f;e=e<<13|e>>>19;e=5*(e&65535)+((5*(e>>>16)&65535)<<16)&4294967295;e=(e&65535)+27492+(((e>>>16)+58964&65535)<<16)}f=0;switch(c){case 3:f^=(a.charCodeAt(b+2)&255)<<
+'use strict';var ca=require("next/dist/compiled/react-experimental"),ia=require("react-dom"),ja=require("stream");
+function ka(a,b){var c=a.length&3;var d=a.length-c;var e=b;for(b=0;b>>16)&65535)<<16)&4294967295;f=f<<15|f>>>17;f=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295;e^=f;e=e<<13|e>>>19;e=5*(e&65535)+((5*(e>>>16)&65535)<<16)&4294967295;e=(e&65535)+27492+(((e>>>16)+58964&65535)<<16)}f=0;switch(c){case 3:f^=(a.charCodeAt(b+2)&255)<<
16;case 2:f^=(a.charCodeAt(b+1)&255)<<8;case 1:f^=a.charCodeAt(b)&255,f=3432918353*(f&65535)+((3432918353*(f>>>16)&65535)<<16)&4294967295,f=f<<15|f>>>17,e^=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295}e^=a.length;e^=e>>>16;e=2246822507*(e&65535)+((2246822507*(e>>>16)&65535)<<16)&4294967295;e^=e>>>13;e=3266489909*(e&65535)+((3266489909*(e>>>16)&65535)<<16)&4294967295;return(e^e>>>16)>>>0}
-var r=Object.assign,u=Object.prototype.hasOwnProperty,ka=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),va={},wa={};
-function xa(a){if(u.call(wa,a))return!0;if(u.call(va,a))return!1;if(ka.test(a))return wa[a]=!0;va[a]=!0;return!1}
+var r=Object.assign,v=Object.prototype.hasOwnProperty,la=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),va={},wa={};
+function xa(a){if(v.call(wa,a))return!0;if(v.call(va,a))return!1;if(la.test(a))return wa[a]=!0;va[a]=!0;return!1}
var ya=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),za=
new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],
["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical",
@@ -43,168 +43,167 @@ new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http
"shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],
["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],
["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Aa=/["'&<>]/;
-function v(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=Aa.exec(a);if(b){var c="",d,e=0;for(d=b.index;d")}
-function Db(a,b,c,d,e,f,g,h){var k=null;"function"===typeof d&&("function"===typeof d.$$FORM_ACTION?(e=Ab(b),b=d.$$FORM_ACTION(e),h=b.name,d=b.action||"",e=b.encType,f=b.method,g=b.target,k=b.data):(a.push(" ","formAction",'="',Bb,'"'),g=f=e=d=h=null,Eb(b,c)));null!=h&&F(a,"name",h);null!=d&&F(a,"formAction",d);null!=e&&F(a,"formEncType",e);null!=f&&F(a,"formMethod",f);null!=g&&F(a,"formTarget",g);return k}
-function F(a,b,c){switch(b){case "className":E(a,"class",c);break;case "tabIndex":E(a,"tabindex",c);break;case "dir":case "role":case "viewBox":case "width":case "height":E(a,b,c);break;case "style":yb(a,c);break;case "src":case "href":if(""===c)break;case "action":case "formAction":if(null==c||"function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ",b,'="',v(""+c),'"');break;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":break;
-case "autoFocus":case "multiple":case "muted":zb(a,b.toLowerCase(),c);break;case "xlinkHref":if("function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ","xlink:href",'="',v(""+c),'"');break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'="',v(c),'"');break;case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":c&&
-"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'=""');break;case "capture":case "download":!0===c?a.push(" ",b,'=""'):!1!==c&&"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'="',v(c),'"');break;case "cols":case "rows":case "size":case "span":"function"!==typeof c&&"symbol"!==typeof c&&!isNaN(c)&&1<=c&&a.push(" ",b,'="',v(c),'"');break;case "rowSpan":case "start":"function"===typeof c||"symbol"===typeof c||isNaN(c)||a.push(" ",b,'="',v(c),'"');break;case "xlinkActuate":E(a,"xlink:actuate",
-c);break;case "xlinkArcrole":E(a,"xlink:arcrole",c);break;case "xlinkRole":E(a,"xlink:role",c);break;case "xlinkShow":E(a,"xlink:show",c);break;case "xlinkTitle":E(a,"xlink:title",c);break;case "xlinkType":E(a,"xlink:type",c);break;case "xmlBase":E(a,"xml:base",c);break;case "xmlLang":E(a,"xml:lang",c);break;case "xmlSpace":E(a,"xml:space",c);break;default:if(!(2")}
+function Db(a,b,c,d,e,f,g,h){var k=null;"function"===typeof d&&("function"===typeof d.$$FORM_ACTION?(e=Ab(b),b=d.$$FORM_ACTION(e),h=b.name,d=b.action||"",e=b.encType,f=b.method,g=b.target,k=b.data):(a.push(" ","formAction",'="',Bb,'"'),g=f=e=d=h=null,Eb(b,c)));null!=h&&D(a,"name",h);null!=d&&D(a,"formAction",d);null!=e&&D(a,"formEncType",e);null!=f&&D(a,"formMethod",f);null!=g&&D(a,"formTarget",g);return k}
+function D(a,b,c){switch(b){case "className":C(a,"class",c);break;case "tabIndex":C(a,"tabindex",c);break;case "dir":case "role":case "viewBox":case "width":case "height":C(a,b,c);break;case "style":yb(a,c);break;case "src":case "href":if(""===c)break;case "action":case "formAction":if(null==c||"function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ",b,'="',w(""+c),'"');break;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":break;
+case "autoFocus":case "multiple":case "muted":zb(a,b.toLowerCase(),c);break;case "xlinkHref":if("function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ","xlink:href",'="',w(""+c),'"');break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'="',w(c),'"');break;case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":c&&
+"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'=""');break;case "capture":case "download":!0===c?a.push(" ",b,'=""'):!1!==c&&"function"!==typeof c&&"symbol"!==typeof c&&a.push(" ",b,'="',w(c),'"');break;case "cols":case "rows":case "size":case "span":"function"!==typeof c&&"symbol"!==typeof c&&!isNaN(c)&&1<=c&&a.push(" ",b,'="',w(c),'"');break;case "rowSpan":case "start":"function"===typeof c||"symbol"===typeof c||isNaN(c)||a.push(" ",b,'="',w(c),'"');break;case "xlinkActuate":C(a,"xlink:actuate",
+c);break;case "xlinkArcrole":C(a,"xlink:arcrole",c);break;case "xlinkRole":C(a,"xlink:role",c);break;case "xlinkShow":C(a,"xlink:show",c);break;case "xlinkTitle":C(a,"xlink:title",c);break;case "xlinkType":C(a,"xlink:type",c);break;case "xmlBase":C(a,"xml:base",c);break;case "xmlLang":C(a,"xml:lang",c);break;case "xmlSpace":C(a,"xml:space",c);break;default:if(!(2"))}
-function Gb(a,b,c,d,e,f,g){var h=b.rel,k=b.href,l=b.precedence;if(3===f||g||null!=b.itemProp||"string"!==typeof h||"string"!==typeof k||""===k)return K(a,b),null;if("stylesheet"===b.rel){if("string"!==typeof l||null!=b.disabled||b.onLoad||b.onError)return K(a,b);f=d.styles.get(l);g=c.styleResources.hasOwnProperty(k)?c.styleResources[k]:void 0;null!==g?(c.styleResources[k]=null,f||(f={precedence:v(l),rules:[],hrefs:[],sheets:new Map},d.styles.set(l,f)),b={state:0,props:r({},b,{"data-precedence":b.precedence,
-precedence:null})},g&&(2===g.length&&Hb(b.props,g),(c=d.preloads.stylesheets.get(k))&&0");return null}
-function Ib(a,b,c){a.push(L(c));for(var d in b)if(u.call(b,d)){var e=b[d];if(null!=e)switch(d){case "children":case "dangerouslySetInnerHTML":throw Error(c+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F(a,d,e)}}a.push("/>");return null}
-function Jb(a,b){a.push(L("title"));var c=null,d=null,e;for(e in b)if(u.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:F(a,e,f)}}a.push(">");b=Array.isArray(c)?2>c.length?c[0]:null:c;"function"!==typeof b&&"symbol"!==typeof b&&null!==b&&void 0!==b&&a.push(v(""+b));G(a,d,c);a.push("","title",">");return null}
-function Kb(a,b){a.push(L("script"));var c=null,d=null,e;for(e in b)if(u.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:F(a,e,f)}}a.push(">");G(a,d,c);"string"===typeof c&&a.push(v(c));a.push("","script",">");return null}
-function Lb(a,b,c){a.push(L(c));var d=c=null,e;for(e in b)if(u.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:F(a,e,f)}}a.push(">");G(a,d,c);return"string"===typeof c?(a.push(v(c)),null):c}var Mb=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Nb=new Map;function L(a){var b=Nb.get(a);if(void 0===b){if(!Mb.test(a))throw Error("Invalid tag: "+a);b="<"+a;Nb.set(a,b)}return b}
-function Ob(a,b,c,d,e,f,g){switch(b){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "select":a.push(L("select"));var h=null,k=null,l;for(l in c)if(u.call(c,l)){var p=c[l];if(null!=p)switch(l){case "children":h=p;break;case "dangerouslySetInnerHTML":k=p;break;case "defaultValue":case "value":break;default:F(a,l,p)}}a.push(">");G(a,k,h);return h;case "option":var q=f.selectedValue;a.push(L("option"));var m=null,t=null,H=null,z=null,A;for(A in c)if(u.call(c,
-A)){var n=c[A];if(null!=n)switch(A){case "children":m=n;break;case "selected":H=n;break;case "dangerouslySetInnerHTML":z=n;break;case "value":t=n;default:F(a,A,n)}}if(null!=q){var y=null!==t?""+t:Fb(m);if(Ha(q))for(var Y=0;Y");G(a,z,m);return m;case "textarea":a.push(L("textarea"));var I=null,w=null,C=null,B;for(B in c)if(u.call(c,B)){var J=c[B];if(null!=J)switch(B){case "children":C=
-J;break;case "value":I=J;break;case "defaultValue":w=J;break;case "dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on |