From d543fd19db19d506f7155dd649f8b2462b1404a7 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 3 May 2023 21:48:40 -0400 Subject: [PATCH] Upgrade React to 18.3.0-canary-aef7ce554-20230503 (#49181) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Includes the following upstream changes: - [aef7ce554](https://github.com/facebook/react/commits/aef7ce554) [Flight] Progressively Enhanced Server Actions ([#26774](https://github.com/facebook/react/pull/26774)) (Sebastian Markbåge) - [c10010a6a](https://github.com/facebook/react/commits/c10010a6a) [Fizz] Gracefully handle suspending in DOM configs ([#26768](https://github.com/facebook/react/pull/26768)) (Sebastian Markbåge) - [f533cee8c](https://github.com/facebook/react/commits/f533cee8c) Add useFormStatus to Flight fixture ([#26773](https://github.com/facebook/react/pull/26773)) (Andrew Clark) - [2c1117a8d](https://github.com/facebook/react/commits/2c1117a8d) Reuse request so that a ReabableStream body does not become disturbed ([#26771](https://github.com/facebook/react/pull/26771)) (Andrew Gadzik) - [fa7a447b9](https://github.com/facebook/react/commits/fa7a447b9) [Fizz] Check for nullish values on ReactCustomFormAction ([#26770](https://github.com/facebook/react/pull/26770)) (Sebastian Markbåge) --- package.json | 16 +- ...t-dom-server-legacy.browser.development.js | 42 +- ...om-server-legacy.browser.production.min.js | 191 +- ...eact-dom-server-legacy.node.development.js | 42 +- ...t-dom-server-legacy.node.production.min.js | 200 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 42 +- ...react-dom-server.browser.production.min.js | 257 +- .../cjs/react-dom-server.edge.development.js | 42 +- .../react-dom-server.edge.production.min.js | 212 +- .../cjs/react-dom-server.node.development.js | 42 +- .../react-dom-server.node.production.min.js | 206 +- .../react-dom-static.browser.development.js | 42 +- ...react-dom-static.browser.production.min.js | 255 +- .../cjs/react-dom-static.edge.development.js | 42 +- .../react-dom-static.edge.production.min.js | 199 +- .../cjs/react-dom-static.node.development.js | 42 +- .../react-dom-static.node.production.min.js | 224 +- .../react-dom-unstable_testing.development.js | 2 +- ...act-dom-unstable_testing.production.min.js | 6 +- .../cjs/react-dom.development.js | 2 +- .../cjs/react-dom.production.min.js | 6 +- .../cjs/react-dom.profiling.min.js | 6 +- .../react-dom-experimental/package.json | 4 +- ...t-dom-server-legacy.browser.development.js | 40 +- ...om-server-legacy.browser.production.min.js | 166 +- ...eact-dom-server-legacy.node.development.js | 40 +- ...t-dom-server-legacy.node.production.min.js | 215 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 40 +- ...react-dom-server.browser.production.min.js | 258 +- .../cjs/react-dom-server.edge.development.js | 40 +- .../react-dom-server.edge.production.min.js | 276 +- .../cjs/react-dom-server.node.development.js | 40 +- .../react-dom-server.node.production.min.js | 272 +- .../react-dom/cjs/react-dom.development.js | 2 +- .../react-dom/cjs/react-dom.production.min.js | 6 +- .../react-dom/cjs/react-dom.profiling.min.js | 6 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 7 +- .../cjs/react.shared-subset.production.min.js | 6 +- ...-dom-webpack-client.browser.development.js | 2276 +++++++++-------- ...m-webpack-client.browser.production.min.js | 52 +- ...ver-dom-webpack-client.edge.development.js | 725 +++++- ...-dom-webpack-client.edge.production.min.js | 42 +- ...ver-dom-webpack-client.node.development.js | 725 +++++- ...-dom-webpack-client.node.production.min.js | 44 +- ...bpack-client.node.unbundled.development.js | 725 +++++- ...ck-client.node.unbundled.production.min.js | 41 +- ...-dom-webpack-server.browser.development.js | 86 +- ...m-webpack-server.browser.production.min.js | 84 +- ...ver-dom-webpack-server.edge.development.js | 86 +- ...-dom-webpack-server.edge.production.min.js | 96 +- ...ver-dom-webpack-server.node.development.js | 86 +- ...-dom-webpack-server.node.production.min.js | 106 +- ...bpack-server.node.unbundled.development.js | 86 +- ...ck-server.node.unbundled.production.min.js | 104 +- .../package.json | 4 +- ...-dom-webpack-client.browser.development.js | 2276 +++++++++-------- ...m-webpack-client.browser.production.min.js | 52 +- ...ver-dom-webpack-client.edge.development.js | 725 +++++- ...-dom-webpack-client.edge.production.min.js | 42 +- ...ver-dom-webpack-client.node.development.js | 725 +++++- ...-dom-webpack-client.node.production.min.js | 44 +- ...bpack-client.node.unbundled.development.js | 725 +++++- ...ck-client.node.unbundled.production.min.js | 41 +- ...-dom-webpack-server.browser.development.js | 86 +- ...m-webpack-server.browser.production.min.js | 84 +- ...ver-dom-webpack-server.edge.development.js | 86 +- ...-dom-webpack-server.edge.production.min.js | 96 +- ...ver-dom-webpack-server.node.development.js | 86 +- ...-dom-webpack-server.node.production.min.js | 106 +- ...bpack-server.node.unbundled.development.js | 86 +- ...ck-server.node.unbundled.production.min.js | 104 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../react/cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 7 +- .../cjs/react.shared-subset.production.min.js | 6 +- pnpm-lock.yaml | 80 +- 84 files changed, 9853 insertions(+), 4532 deletions(-) diff --git a/package.json b/package.json index 478a558466ec1..d291dd2efd215 100644 --- a/package.json +++ b/package.json @@ -197,14 +197,14 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-b7972822b-20230503", - "react-experimental-builtin": "npm:react@0.0.0-experimental-b7972822b-20230503", + "react-builtin": "npm:react@18.3.0-canary-aef7ce554-20230503", + "react-experimental-builtin": "npm:react@0.0.0-experimental-aef7ce554-20230503", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-b7972822b-20230503", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-b7972822b-20230503", - "react-server-dom-webpack": "18.3.0-canary-b7972822b-20230503", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-b7972822b-20230503", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-aef7ce554-20230503", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-aef7ce554-20230503", + "react-server-dom-webpack": "18.3.0-canary-aef7ce554-20230503", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-aef7ce554-20230503", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -215,8 +215,8 @@ "rimraf": "3.0.2", "sass": "1.54.0", "satori": "0.4.4", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-b7972822b-20230503", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-b7972822b-20230503", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-aef7ce554-20230503", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-aef7ce554-20230503", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index 530466c16114a..190fd6d8eaeec 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-b7972822b-20230503'; +var ReactVersion = '18.3.0-experimental-aef7ce554-20230503'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -2250,7 +2250,7 @@ function makeFormFieldPrefix(responseState) { // I'm just reusing this counter. It's not really the same namespace as "name". // It could just be its own counter. var id = responseState.nextSuspenseID++; - return responseState.idPrefix + '$ACTION:' + id + ':'; + return responseState.idPrefix + id; } // Since this will likely be repeated a lot in the HTML, we use a more concise message // than on the client and hopefully it's googleable. @@ -2333,23 +2333,23 @@ function pushFormActionAttribute(target, responseState, formAction, formEncType, } } - if (name !== null) { + if (name != null) { pushAttribute(target, 'name', name); } - if (formAction !== null) { + if (formAction != null) { pushAttribute(target, 'formAction', formAction); } - if (formEncType !== null) { + if (formEncType != null) { pushAttribute(target, 'formEncType', formEncType); } - if (formMethod !== null) { + if (formMethod != null) { pushAttribute(target, 'formMethod', formMethod); } - if (formTarget !== null) { + if (formTarget != null) { pushAttribute(target, 'formTarget', formTarget); } @@ -2963,19 +2963,19 @@ function pushStartForm(target, props, responseState) { } } - if (formAction !== null) { + if (formAction != null) { pushAttribute(target, 'action', formAction); } - if (formEncType !== null) { + if (formEncType != null) { pushAttribute(target, 'encType', formEncType); } - if (formMethod !== null) { + if (formMethod != null) { pushAttribute(target, 'method', formMethod); } - if (formTarget !== null) { + if (formTarget != null) { pushAttribute(target, 'target', formTarget); } @@ -9555,10 +9555,13 @@ function spawnNewSuspendedTask(request, task, thenableState, x) { function renderNode(request, task, node) { - // TODO: Store segment.children.length here and reset it in case something + // Store how much we've pushed at this point so we can reset it in case something // suspended partially through writing something. - // Snapshot the current context in case something throws to interrupt the + var segment = task.blockedSegment; + var childrenLength = segment.children.length; + var chunkLength = segment.chunks.length; // Snapshot the current context in case something throws to interrupt the // process. + var previousFormatContext = task.blockedSegment.formatContext; var previousLegacyContext = task.legacyContext; var previousContext = task.context; @@ -9571,7 +9574,10 @@ function renderNode(request, task, node) { try { return renderNodeDestructive(request, task, null, node); } catch (thrownValue) { - resetHooksState(); + resetHooksState(); // Reset the write pointers to where we started. + + segment.children.length = childrenLength; + segment.chunks.length = chunkLength; var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical // reasons, the rest of the Suspense implementation expects the thrown // value to be a thenable, because before `use` existed that was the @@ -9843,6 +9849,9 @@ function retryTask(request, task) { currentTaskInDEV = task; } + var childrenLength = segment.children.length; + var chunkLength = segment.chunks.length; + try { // We call the destructive form that mutates this task. That way if something // suspends again, we can reuse the same task instead of spawning a new one. @@ -9857,7 +9866,10 @@ function retryTask(request, task) { segment.status = COMPLETED; finishedTask(request, task.blockedBoundary, segment); } catch (thrownValue) { - resetHooksState(); + resetHooksState(); // Reset the write pointers to where we started. + + segment.children.length = childrenLength; + segment.chunks.length = chunkLength; var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical // reasons, the rest of the Suspense implementation expects the thrown // value to be a thenable, because before `use` existed that was the diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index 39c243ad4c351..58b1bf1ad34a6 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -8,81 +8,80 @@ * LICENSE file in the root directory of this source tree. */ 'use strict';var aa=require("next/dist/compiled/react-experimental"),ba=require("react-dom");function l(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c]/; -function r(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=Ha.exec(a);if(b){var c="",d,e=0;for(d=b.index;d")} -function fb(a,b,c,d,e,f,g){var h=null;"function"===typeof c&&("function"===typeof c.$$FORM_ACTION?(d=cb(b),b=c.$$FORM_ACTION(d),g=b.name,c=b.action||"",d=b.encType,e=b.method,f=b.target,h=b.data):(a.push(" ","formAction",'="',db,'"'),f=e=d=c=g=null,gb(b)));null!==g&&x(a,"name",g);null!==c&&x(a,"formAction",c);null!==d&&x(a,"formEncType",d);null!==e&&x(a,"formMethod",e);null!==f&&x(a,"formTarget",f);return h} -function x(a,b,c){switch(b){case "className":w(a,"class",c);break;case "tabIndex":w(a,"tabindex",c);break;case "dir":case "role":case "viewBox":case "width":case "height":w(a,b,c);break;case "style":ab(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,'="',r(""+c),'"');break;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":break; -case "autoFocus":case "multiple":case "muted":bb(a,b.toLowerCase(),c);break;case "xlinkHref":if("function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ","xlink:href",'="',r(""+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,'="',r(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,'="',r(c),'"');break;case "cols":case "rows":case "size":case "span":"function"!==typeof c&&"symbol"!==typeof c&&!isNaN(c)&&1<=c&&a.push(" ",b,'="',r(c),'"');break;case "rowSpan":case "start":"function"===typeof c||"symbol"===typeof c||isNaN(c)||a.push(" ",b,'="',r(c),'"');break;case "xlinkActuate":w(a,"xlink:actuate", -c);break;case "xlinkArcrole":w(a,"xlink:arcrole",c);break;case "xlinkRole":w(a,"xlink:role",c);break;case "xlinkShow":w(a,"xlink:show",c);break;case "xlinkTitle":w(a,"xlink:title",c);break;case "xlinkType":w(a,"xlink:type",c);break;case "xmlBase":w(a,"xml:base",c);break;case "xmlLang":w(a,"xml:lang",c);break;case "xmlSpace":w(a,"xml:space",c);break;default:if(!(2"))} -function ib(a,b,c,d,e,f,g){var h=b.rel,k=b.href,m=b.precedence;if(3===f||g||null!=b.itemProp||"string"!==typeof h||"string"!==typeof k||""===k)return A(a,b),null;if("stylesheet"===b.rel){c="[style]"+k;if("string"!==typeof m||null!=b.disabled||b.onLoad||b.onError)return e=d.preloadsMap.get(c),e||(e={type:"preload",chunks:[],state:0,props:jb(k,b)},d.preloadsMap.set(c,e)),A(e.chunks,e.props),d.usedStylesheets.add(e),A(a,b);k=d.stylesMap.get(c);k||(b=n({},b,{"data-precedence":b.precedence,precedence:null}), +["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ia=/["'&<>]/; +function t(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=Ia.exec(a);if(b){var c="",d,e=0;for(d=b.index;d")} +function gb(a,b,c,d,e,f,g){var h=null;"function"===typeof c&&("function"===typeof c.$$FORM_ACTION?(d=db(b),b=c.$$FORM_ACTION(d),g=b.name,c=b.action||"",d=b.encType,e=b.method,f=b.target,h=b.data):(a.push(" ","formAction",'="',eb,'"'),f=e=d=c=g=null,hb(b)));null!=g&&x(a,"name",g);null!=c&&x(a,"formAction",c);null!=d&&x(a,"formEncType",d);null!=e&&x(a,"formMethod",e);null!=f&&x(a,"formTarget",f);return h} +function x(a,b,c){switch(b){case "className":v(a,"class",c);break;case "tabIndex":v(a,"tabindex",c);break;case "dir":case "role":case "viewBox":case "width":case "height":v(a,b,c);break;case "style":bb(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,'="',t(""+c),'"');break;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":break; +case "autoFocus":case "multiple":case "muted":cb(a,b.toLowerCase(),c);break;case "xlinkHref":if("function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ","xlink:href",'="',t(""+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,'="',t(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,'="',t(c),'"');break;case "cols":case "rows":case "size":case "span":"function"!==typeof c&&"symbol"!==typeof c&&!isNaN(c)&&1<=c&&a.push(" ",b,'="',t(c),'"');break;case "rowSpan":case "start":"function"===typeof c||"symbol"===typeof c||isNaN(c)||a.push(" ",b,'="',t(c),'"');break;case "xlinkActuate":v(a,"xlink:actuate", +c);break;case "xlinkArcrole":v(a,"xlink:arcrole",c);break;case "xlinkRole":v(a,"xlink:role",c);break;case "xlinkShow":v(a,"xlink:show",c);break;case "xlinkTitle":v(a,"xlink:title",c);break;case "xlinkType":v(a,"xlink:type",c);break;case "xmlBase":v(a,"xml:base",c);break;case "xmlLang":v(a,"xml:lang",c);break;case "xmlSpace":v(a,"xml:space",c);break;default:if(!(2"))} +function jb(a,b,c,d,e,f,g){var h=b.rel,k=b.href,m=b.precedence;if(3===f||g||null!=b.itemProp||"string"!==typeof h||"string"!==typeof k||""===k)return C(a,b),null;if("stylesheet"===b.rel){c="[style]"+k;if("string"!==typeof m||null!=b.disabled||b.onLoad||b.onError)return e=d.preloadsMap.get(c),e||(e={type:"preload",chunks:[],state:0,props:kb(k,b)},d.preloadsMap.set(c,e)),C(e.chunks,e.props),d.usedStylesheets.add(e),C(a,b);k=d.stylesMap.get(c);k||(b=n({},b,{"data-precedence":b.precedence,precedence:null}), k=d.preloadsMap.get(c),f=0,k&&(k.state|=4,g=k.props,null==b.crossOrigin&&(b.crossOrigin=g.crossOrigin),null==b.integrity&&(b.integrity=g.integrity),k.state&3&&(f=8)),k={type:"stylesheet",chunks:[],state:f,props:b},d.stylesMap.set(c,k),b=d.precedences.get(m),b||(b=new Set,d.precedences.set(m,b),c={type:"style",chunks:[],state:0,props:{precedence:m,hrefs:[]}},b.add(c),d.stylePrecedences.set(m,c)),b.add(k));d.boundaryResources&&d.boundaryResources.add(k);e&&a.push("\x3c!-- --\x3e");return null}if(b.onLoad|| -b.onError)return A(a,b);e&&a.push("\x3c!-- --\x3e");switch(b.rel){case "preconnect":case "dns-prefetch":return A(c.preconnectChunks,b);case "preload":return A(c.preloadChunks,b);default:return A(c.hoistableChunks,b)}}function A(a,b){a.push(B("link"));for(var c in b)if(q.call(b,c)){var d=b[c];if(null!=d)switch(c){case "children":case "dangerouslySetInnerHTML":throw Error(l(399,"link"));default:x(a,c,d)}}a.push("/>");return null} -function kb(a,b,c){a.push(B(c));for(var d in b)if(q.call(b,d)){var e=b[d];if(null!=e)switch(d){case "children":case "dangerouslySetInnerHTML":throw Error(l(399,c));default:x(a,d,e)}}a.push("/>");return null} -function lb(a,b){a.push(B("title"));var c=null,d=null,e;for(e in b)if(q.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:x(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(r(""+b));y(a,d,c);a.push("");return null} -function mb(a,b){a.push(B("script"));var c=null,d=null,e;for(e in b)if(q.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:x(a,e,f)}}a.push(">");y(a,d,c);"string"===typeof c&&a.push(r(c));a.push("");return null} -function wb(a,b,c){a.push(B(c));var d=c=null,e;for(e in b)if(q.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:x(a,e,f)}}a.push(">");y(a,d,c);return"string"===typeof c?(a.push(r(c)),null):c}var xb=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,yb=new Map;function B(a){var b=yb.get(a);if(void 0===b){if(!xb.test(a))throw Error(l(65,a));b="<"+a;yb.set(a,b)}return b} -function zb(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(B("select"));var h=null,k=null,m;for(m in c)if(q.call(c,m)){var p=c[m];if(null!=p)switch(m){case "children":h=p;break;case "dangerouslySetInnerHTML":k=p;break;case "defaultValue":case "value":break;default:x(a,m,p)}}a.push(">");y(a,k,h);return h;case "option":var t=f.selectedValue;a.push(B("option"));var Q=null,D=null,Y=null,E=null,z;for(z in c)if(q.call(c, -z)){var F=c[z];if(null!=F)switch(z){case "children":Q=F;break;case "selected":Y=F;break;case "dangerouslySetInnerHTML":E=F;break;case "value":D=F;default:x(a,z,F)}}if(null!=t){var M=null!==D?""+D:hb(Q);if(Ka(t))for(var J=0;J");y(a,E,Q);return Q;case "textarea":a.push(B("textarea"));var v=null,R=null,S=null,K;for(K in c)if(q.call(c,K)){var na=c[K];if(null!=na)switch(K){case "children":S= -na;break;case "value":v=na;break;case "defaultValue":R=na;break;case "dangerouslySetInnerHTML":throw Error(l(91));default:x(a,K,na)}}null===v&&null!==R&&(v=R);a.push(">");if(null!=S){if(null!=v)throw Error(l(92));if(Ka(S)&&1");null!==dc&&dc.forEach(eb,a);return null;case "button":a.push(B("button"));var pa=null,ec=null,fc=null,gc=null,hc=null,ic=null,jc=null,qa;for(qa in c)if(q.call(c,qa)){var N=c[qa];if(null!=N)switch(qa){case "children":pa=N;break;case "dangerouslySetInnerHTML":ec=N;break;case "name":fc=N;break;case "formAction":gc=N;break;case "formEncType":hc=N;break;case "formMethod":ic=N;break;case "formTarget":jc=N;break;default:x(a,qa,N)}}var kc=fb(a,e,gc,hc,ic,jc,fc);a.push(">");null!==kc&&kc.forEach(eb, -a);y(a,ec,pa);if("string"===typeof pa){a.push(r(pa));var lc=null}else lc=pa;return lc;case "form":a.push(B("form"));var ra=null,mc=null,T=null,sa=null,ta=null,ua=null,va;for(va in c)if(q.call(c,va)){var U=c[va];if(null!=U)switch(va){case "children":ra=U;break;case "dangerouslySetInnerHTML":mc=U;break;case "action":T=U;break;case "encType":sa=U;break;case "method":ta=U;break;case "target":ua=U;break;default:x(a,va,U)}}var rb=null,sb=null;if("function"===typeof T)if("function"===typeof T.$$FORM_ACTION){var Ld= -cb(e),fa=T.$$FORM_ACTION(Ld);T=fa.action||"";sa=fa.encType;ta=fa.method;ua=fa.target;rb=fa.data;sb=fa.name}else a.push(" ","action",'="',db,'"'),ua=ta=sa=T=null,gb(e);null!==T&&x(a,"action",T);null!==sa&&x(a,"encType",sa);null!==ta&&x(a,"method",ta);null!==ua&&x(a,"target",ua);a.push(">");null!==sb&&(a.push('"),null!==rb&&rb.forEach(eb,a));y(a,mc,ra);if("string"===typeof ra){a.push(r(ra));var nc=null}else nc=ra;return nc;case "menuitem":a.push(B("menuitem")); -for(var Pa in c)if(q.call(c,Pa)){var oc=c[Pa];if(null!=oc)switch(Pa){case "children":case "dangerouslySetInnerHTML":throw Error(l(400));default:x(a,Pa,oc)}}a.push(">");return null;case "title":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var pc=lb(a,c);else lb(e.hoistableChunks,c),pc=null;return pc;case "link":return ib(a,c,e,d,g,f.insertionMode,f.noscriptTagInScope);case "script":a:if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof c.src||!c.src)var tb= -mb(a,c);else{var wa="[script]"+c.src;if(!0!==c.async||c.onLoad||c.onError){if(!0!==c.noModule){var ha=d.preloadsMap.get(wa);ha||(ha={type:"preload",chunks:[],state:0,props:{rel:"preload",as:"script",href:c.src,crossOrigin:c.crossOrigin,integrity:c.integrity,referrerPolicy:c.referrerPolicy}},d.preloadsMap.set(wa,ha),d.usedScripts.add(ha),A(ha.chunks,ha.props))}if(!0!==c.async){mb(a,c);tb=null;break a}}else{var xa=d.scriptsMap.get(wa);if(!xa){xa={type:"script",chunks:[],state:0,props:null};d.scriptsMap.set(wa, -xa);d.scripts.add(xa);var qc=c,Qa=d.preloadsMap.get(wa);if(Qa){Qa.state|=4;var Ra=qc=n({},c),rc=Qa.props;null==Ra.crossOrigin&&(Ra.crossOrigin=rc.crossOrigin);null==Ra.integrity&&(Ra.integrity=rc.integrity)}mb(xa.chunks,qc)}}g&&a.push("\x3c!-- --\x3e");tb=null}return tb;case "style":var ya=c.precedence,za=c.href;if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof ya||"string"!==typeof za||""===za){a.push(B("style"));var ia=null,sc=null,Aa;for(Aa in c)if(q.call(c,Aa)){var Sa= -c[Aa];if(null!=Sa)switch(Aa){case "children":ia=Sa;break;case "dangerouslySetInnerHTML":sc=Sa;break;default:x(a,Aa,Sa)}}a.push(">");var Ba=Array.isArray(ia)?2>ia.length?ia[0]:null:ia;"function"!==typeof Ba&&"symbol"!==typeof Ba&&null!==Ba&&void 0!==Ba&&a.push(r(""+Ba));y(a,sc,ia);a.push("");var tc=null}else{var uc="[style]"+za,O=d.stylesMap.get(uc);if(!O){if(O=d.stylePrecedences.get(ya))O.props.hrefs.push(za);else{O={type:"style",chunks:[],state:0,props:{precedence:ya,hrefs:[za]}};d.stylePrecedences.set(ya, -O);var vc=new Set;vc.add(O);d.precedences.set(ya,vc)}d.stylesMap.set(uc,O);d.boundaryResources&&d.boundaryResources.add(O);var wc=O.chunks,ja=null,xc=null,Ta;for(Ta in c)if(q.call(c,Ta)){var ub=c[Ta];if(null!=ub)switch(Ta){case "children":ja=ub;break;case "dangerouslySetInnerHTML":xc=ub}}var Ca=Array.isArray(ja)?2>ja.length?ja[0]:null:ja;"function"!==typeof Ca&&"symbol"!==typeof Ca&&null!==Ca&&void 0!==Ca&&wc.push(r(""+Ca));y(wc,xc,ja)}g&&a.push("\x3c!-- --\x3e");tc=void 0}return tc;case "meta":if(3=== -f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var yc=kb(a,c,"meta");else g&&a.push("\x3c!-- --\x3e"),yc="string"===typeof c.charSet?kb(e.charsetChunks,c,"meta"):kb(e.hoistableChunks,c,"meta");return yc;case "listing":case "pre":a.push(B(b));var Da=null,Ea=null,Fa;for(Fa in c)if(q.call(c,Fa)){var Ua=c[Fa];if(null!=Ua)switch(Fa){case "children":Da=Ua;break;case "dangerouslySetInnerHTML":Ea=Ua;break;default:x(a,Fa,Ua)}}a.push(">");if(null!=Ea){if(null!=Da)throw Error(l(60));if("object"!==typeof Ea|| -!("__html"in Ea))throw Error(l(61));var Z=Ea.__html;null!==Z&&void 0!==Z&&("string"===typeof Z&&0f.insertionMode&&null===e.headChunks){e.headChunks=[];var zc=wb(e.headChunks,c,"head")}else zc=wb(a,c,"head");return zc;case "html":if(0===f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[""];var Ac=wb(e.htmlChunks,c,"html")}else Ac=wb(a,c,"html");return Ac;default:if(-1!==b.indexOf("-")){a.push(B(b));var vb=null,Bc=null,V;for(V in c)if(q.call(c,V)){var C=c[V];if(null!=C&&"function"!==typeof C&&"object"!==typeof C&&!1!==C)switch(!0===C&&(C=""),"className"===V&&(V= -"class"),V){case "children":vb=C;break;case "dangerouslySetInnerHTML":Bc=C;break;case "style":ab(a,C);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:la(V)&&"function"!==typeof C&&"symbol"!==typeof C&&a.push(" ",V,'="',r(C),'"')}}a.push(">");y(a,Bc,vb);return vb}}return wb(a,c,b)}function Ab(a,b){b=b.bootstrapChunks;for(var c=0;c')} -function Cb(a,b,c,d){switch(c.insertionMode){case 0:case 1:case 2:return a.push('");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(l(397));}}var Fb=/[<\u2028\u2029]/g; +function Gb(a){return JSON.stringify(a).replace(Fb,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 Hb=/[&><\u2028\u2029]/g; +function Ib(a){return JSON.stringify(a).replace(Hb,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 Jb=!1,Kb=!0; +function Lb(a){if("stylesheet"===a.type&&0===(a.state&1))Jb=!0;else if("style"===a.type){var b=a.chunks,c=a.props.hrefs,d=0;if(b.length){this.push('");Jb=!0;b.length=0;c.length=0}}} +function Mb(a,b,c){Jb=!1;Kb=!0;b.forEach(Lb,a);Jb&&(c.stylesToHoist=!0);return Kb}function H(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 Sb(a){if(!(a.state&8)&&"style"!==a.type){var b=a.chunks,c=kb(a.props.href,a.props);C(b,c);for(c=0;c")}else if(e)for(f=0;f"))} function Wb(a,b,c){var d=0;b.preconnects.forEach(Nb,a);b.preconnects.clear();var e=c.preconnectChunks;for(d=0;d",instructions:0,externalRuntimeScript:d,htmlChunks:null,headChunks:null, -hasBody:!1,charsetChunks:[],preconnectChunks:[],preloadChunks:[],hoistableChunks:[],stylesToHoist:!1,generateStaticMarkup:a}}function Fc(a,b,c,d){if(c.generateStaticMarkup)return a.push(r(b)),!1;""===b?a=d:(d&&a.push("\x3c!-- --\x3e"),a.push(r(b)),a=!0);return a} +function Ya(a,b){var c=I?I:null;if(c){var d=c.resources;if("string"===typeof a&&a&&"object"===typeof b&&null!==b){var e=b.as;switch(e){case "style":var f="["+e+"]"+a,g=d.stylesMap.get(f);e=b.precedence||"default";if(!g){g=0;var h=d.preloadsMap.get(f);h&&h.state&3&&(g=8);g={type:"stylesheet",chunks:[],state:g,props:{rel:"stylesheet",href:a,"data-precedence":e,crossOrigin:b.crossOrigin,integrity:b.integrity}};d.stylesMap.set(f,g);a=d.precedences.get(e);a||(a=new Set,d.precedences.set(e,a),b={type:"style", +chunks:[],state:0,props:{precedence:e,hrefs:[]}},a.add(b),d.stylePrecedences.set(e,b));a.add(g);Cc(c)}break;case "script":f="["+e+"]"+a,e=d.scriptsMap.get(f),e||(e={type:"script",chunks:[],state:0,props:null},d.scriptsMap.set(f,e),a={src:a,async:!0,crossOrigin:b.crossOrigin,integrity:b.integrity,nonce:b.nonce},d.scripts.add(e),wb(e.chunks,a),Cc(c))}}}} +function Vb(a,b,c){b="[script]"+b;var d=a.scriptsMap.get(b);d||(d={type:"script",chunks:c,state:0,props:null},a.scriptsMap.set(b,d),a.scripts.add(d))}function kb(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 Dc(a){this.add(a)} +function Ec(a,b,c){b=void 0===b?"":b;var d=null,e=0;void 0!==c&&(e=1,"string"===typeof c?(d={src:c,chunks:[]},wb(d.chunks,{src:c,async:!0,integrity:void 0,nonce:void 0})):(d={src:c.src,chunks:[]},wb(d.chunks,{src:c.src,async:!0,integrity:c.integrity,nonce:void 0})));return{bootstrapChunks:[],placeholderPrefix:b+"P:",segmentPrefix:b+"S:",boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,streamingFormat:e,startInlineScript:"