failproofai 1.0.5 → 1.0.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +5 -5
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js +4 -4
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js +6 -5
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -4
- package/.next/standalone/.next/server/app/settings/page.js +3 -2
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[externals]__0sds_16._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zlqo2t._.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__112b4go._.js → [root-of-the-server]__1_r2rbg._.js} +4 -4
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1anxb5k._.js +1 -1
- package/.next/standalone/.next/server/chunks/_09dz7xv._.js +3 -3
- package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js +2 -2
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-_ki57._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0576iuy._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0bym1os._.js → [root-of-the-server]__0cg-bgc._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__00y9ww2._.js → [root-of-the-server]__0u3w0ll._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0sz_5na._.js → [root-of-the-server]__1ouobn4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1py795m._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qapotl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__15k-dqb._.js → [root-of-the-server]__1x3j9mj._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0-yi74u._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_06imw3p._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0guaevg._.js → _0qlygw6._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0wso5d3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1-3unkg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1b78kcp._.js → _1_ddpm3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_14c6q09._.js → _1_qswah._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_1ddpc5g._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +12 -11
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_components_project-list_tsx_1ke6anr._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_1hl81y4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuzn._.js +2 -2
- package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +19 -19
- package/.next/standalone/.next/static/chunks/{3w46euc60dx39.js → 02vwr5js1x28j.js} +1 -1
- package/.next/standalone/.next/static/chunks/06fjx8-0_qufs.js +1 -0
- package/.next/standalone/.next/static/chunks/{2zafgs90r_leq.js → 06jxjnw8bfczc.js} +1 -1
- package/.next/standalone/.next/static/chunks/0cbvytf8epn34.js +1 -0
- package/.next/standalone/.next/static/chunks/0y227_ohdqwvn.js +1 -0
- package/.next/standalone/.next/static/chunks/{252xreaecy80h.js → 1p4xauf-zu6zk.js} +1 -1
- package/.next/standalone/.next/static/chunks/{021ydrq6rhpsi.js → 1qf2uiipatr80.js} +1 -1
- package/.next/standalone/.next/static/chunks/1uc_s_dftgxiq.js +6 -0
- package/.next/standalone/.next/static/chunks/1xacnwjkbekn7.js +1 -0
- package/.next/standalone/.next/static/chunks/{11s_v03ub6nss.js → 27_bwbg8sv6vj.js} +1 -1
- package/.next/standalone/.next/static/chunks/2hg_bp8z_vm2g.js +1 -0
- package/.next/standalone/.next/static/chunks/{3bleyy40s99f2.js → 2x776s0x3n_tu.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1vb33xa6j9y2q.js → 3ht0xsco46pul.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-3p73obe0xmrxm.js → turbopack-38nzuvp95_2rv.js} +1 -1
- package/.next/standalone/fp-cloud-cli/uv.lock +3 -3
- package/.next/standalone/hermes-plugin/README.md +138 -0
- package/.next/standalone/hermes-plugin/__init__.py +248 -0
- package/.next/standalone/hermes-plugin/client.py +150 -0
- package/.next/standalone/hermes-plugin/ledger.py +187 -0
- package/.next/standalone/hermes-plugin/plugin.yaml +37 -0
- package/.next/standalone/lib/hermes-profiles.ts +67 -19
- package/.next/standalone/lib/hermes-sessions.ts +3 -2
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +14 -0
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +7 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +6 -1
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +10 -10
- package/.next/standalone/node_modules/react/cjs/react.development.js +92 -46
- package/.next/standalone/node_modules/react/cjs/react.production.js +112 -89
- package/.next/standalone/node_modules/react/package.json +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1165 -790
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1171 -791
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +1294 -862
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +1305 -868
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +1315 -896
- package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +24 -5
- package/.next/standalone/node_modules/react-dom/package.json +4 -4
- package/.next/standalone/package.json +13 -12
- package/.next/standalone/sdk/python/uv.lock +18 -18
- package/.next/standalone/server.js +1 -1
- package/README.md +29 -13
- package/bin/failproofai.mjs +3 -1
- package/dist/cli.mjs +655 -360
- package/dist/worker.mjs +78 -34
- package/hermes-plugin/README.md +138 -0
- package/hermes-plugin/__init__.py +248 -0
- package/hermes-plugin/client.py +150 -0
- package/hermes-plugin/ledger.py +187 -0
- package/hermes-plugin/plugin.yaml +37 -0
- package/lib/hermes-profiles.ts +67 -19
- package/lib/hermes-sessions.ts +3 -2
- package/package.json +13 -12
- package/scripts/translate-docs/validate-translation.ts +48 -0
- package/src/hooks/handler.ts +29 -1
- package/src/hooks/integrations.ts +271 -73
- package/src/hooks/manager.ts +41 -7
- package/src/hooks/types.ts +8 -8
- package/src/hooks/worker-server.ts +1 -0
- package/.next/standalone/.next/server/chunks/[externals]__157pf8j._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +0 -6
- package/.next/standalone/.next/server/chunks/ssr/node_modules_13n822a._.js +0 -3
- package/.next/standalone/.next/static/chunks/0y8_1s45gbqmn.js +0 -6
- package/.next/standalone/.next/static/chunks/14b3ezufe5411.js +0 -1
- package/.next/standalone/.next/static/chunks/1oskk7pdo8aon.js +0 -1
- package/.next/standalone/.next/static/chunks/2xycd6mjg00fb.js +0 -1
- package/.next/standalone/.next/static/chunks/3l36d73kj18zw.js +0 -1
- package/.next/standalone/.next/static/chunks/40lpt2o2b283e.js +0 -1
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → QCNYz2yCxxdeggg1k0iEq}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → QCNYz2yCxxdeggg1k0iEq}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → QCNYz2yCxxdeggg1k0iEq}/_ssgManifest.js +0 -0
|
@@ -52,6 +52,7 @@ var React = require("react"),
|
|
|
52
52
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
53
53
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
54
54
|
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
55
|
+
REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"),
|
|
55
56
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
56
57
|
function getIteratorFn(maybeIterable) {
|
|
57
58
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -60,7 +61,8 @@ function getIteratorFn(maybeIterable) {
|
|
|
60
61
|
maybeIterable["@@iterator"];
|
|
61
62
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
62
63
|
}
|
|
63
|
-
var
|
|
64
|
+
var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
65
|
+
isArrayImpl = Array.isArray;
|
|
64
66
|
function murmurhash3_32_gc(key, seed) {
|
|
65
67
|
var remainder = key.length & 3;
|
|
66
68
|
var bytes = key.length - remainder;
|
|
@@ -132,12 +134,12 @@ var LocalPromise = Promise,
|
|
|
132
134
|
writtenBytes = 0;
|
|
133
135
|
function writeChunk(destination, chunk) {
|
|
134
136
|
if (0 !== chunk.byteLength)
|
|
135
|
-
if (
|
|
137
|
+
if (4096 < chunk.byteLength)
|
|
136
138
|
0 < writtenBytes &&
|
|
137
139
|
(destination.enqueue(
|
|
138
140
|
new Uint8Array(currentView.buffer, 0, writtenBytes)
|
|
139
141
|
),
|
|
140
|
-
(currentView = new Uint8Array(
|
|
142
|
+
(currentView = new Uint8Array(4096)),
|
|
141
143
|
(writtenBytes = 0)),
|
|
142
144
|
destination.enqueue(chunk);
|
|
143
145
|
else {
|
|
@@ -148,7 +150,7 @@ function writeChunk(destination, chunk) {
|
|
|
148
150
|
: (currentView.set(chunk.subarray(0, allowableBytes), writtenBytes),
|
|
149
151
|
destination.enqueue(currentView),
|
|
150
152
|
(chunk = chunk.subarray(allowableBytes))),
|
|
151
|
-
(currentView = new Uint8Array(
|
|
153
|
+
(currentView = new Uint8Array(4096)),
|
|
152
154
|
(writtenBytes = 0));
|
|
153
155
|
currentView.set(chunk, writtenBytes);
|
|
154
156
|
writtenBytes += chunk.byteLength;
|
|
@@ -241,6 +243,7 @@ var unitlessNumbers = new Set(
|
|
|
241
243
|
["markerEnd", "marker-end"],
|
|
242
244
|
["markerMid", "marker-mid"],
|
|
243
245
|
["markerStart", "marker-start"],
|
|
246
|
+
["maskType", "mask-type"],
|
|
244
247
|
["overlinePosition", "overline-position"],
|
|
245
248
|
["overlineThickness", "overline-thickness"],
|
|
246
249
|
["paintOrder", "paint-order"],
|
|
@@ -416,7 +419,15 @@ function createRenderState(
|
|
|
416
419
|
));
|
|
417
420
|
bootstrapScriptContent = [];
|
|
418
421
|
void 0 !== importMap &&
|
|
419
|
-
(bootstrapScriptContent.push(
|
|
422
|
+
(bootstrapScriptContent.push(
|
|
423
|
+
void 0 === externalRuntimeConfig
|
|
424
|
+
? importMapScriptStart
|
|
425
|
+
: stringToPrecomputedChunk(
|
|
426
|
+
'<script type="importmap" nonce="' +
|
|
427
|
+
escapeTextForBrowser(externalRuntimeConfig) +
|
|
428
|
+
'">'
|
|
429
|
+
)
|
|
430
|
+
),
|
|
420
431
|
bootstrapScriptContent.push(
|
|
421
432
|
stringToChunk(
|
|
422
433
|
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
|
@@ -677,7 +688,8 @@ function getChildFormatContext(parentContext, type, props) {
|
|
|
677
688
|
}
|
|
678
689
|
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
679
690
|
? createFormatContext(2, null, subtreeScope, null)
|
|
680
|
-
: parentContext.
|
|
691
|
+
: null !== parentContext.viewTransition ||
|
|
692
|
+
parentContext.tagScope !== subtreeScope
|
|
681
693
|
? createFormatContext(
|
|
682
694
|
parentContext.insertionMode,
|
|
683
695
|
parentContext.selectedValue,
|
|
@@ -694,6 +706,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
|
694
706
|
enter: "none",
|
|
695
707
|
exit: "none",
|
|
696
708
|
share: parentViewTransition.update,
|
|
709
|
+
parentEnter: "none",
|
|
710
|
+
parentExit: "none",
|
|
697
711
|
name: parentViewTransition.autoName,
|
|
698
712
|
autoName: parentViewTransition.autoName,
|
|
699
713
|
nameIdx: 0
|
|
@@ -721,6 +735,11 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
|
721
735
|
resumableState
|
|
722
736
|
);
|
|
723
737
|
}
|
|
738
|
+
function makeId(resumableState, treeId, localId) {
|
|
739
|
+
resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
740
|
+
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
741
|
+
return resumableState + "_";
|
|
742
|
+
}
|
|
724
743
|
var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
|
|
725
744
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
726
745
|
if ("" === text) return textEmbedded;
|
|
@@ -728,6 +747,26 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
|
728
747
|
target.push(stringToChunk(escapeTextForBrowser(text)));
|
|
729
748
|
return !0;
|
|
730
749
|
}
|
|
750
|
+
function pushViewTransitionAttributes(target, formatContext) {
|
|
751
|
+
formatContext = formatContext.viewTransition;
|
|
752
|
+
null !== formatContext &&
|
|
753
|
+
("auto" !== formatContext.name &&
|
|
754
|
+
(pushStringAttribute(
|
|
755
|
+
target,
|
|
756
|
+
"vt-name",
|
|
757
|
+
0 === formatContext.nameIdx
|
|
758
|
+
? formatContext.name
|
|
759
|
+
: formatContext.name + "_" + formatContext.nameIdx
|
|
760
|
+
),
|
|
761
|
+
formatContext.nameIdx++),
|
|
762
|
+
pushStringAttribute(target, "vt-update", formatContext.update),
|
|
763
|
+
"none" !== formatContext.enter &&
|
|
764
|
+
pushStringAttribute(target, "vt-enter", formatContext.enter),
|
|
765
|
+
"none" !== formatContext.exit &&
|
|
766
|
+
pushStringAttribute(target, "vt-exit", formatContext.exit),
|
|
767
|
+
"none" !== formatContext.share &&
|
|
768
|
+
pushStringAttribute(target, "vt-share", formatContext.share));
|
|
769
|
+
}
|
|
731
770
|
var styleNameCache = new Map(),
|
|
732
771
|
styleAttributeStart = stringToPrecomputedChunk(' style="'),
|
|
733
772
|
styleAssign = stringToPrecomputedChunk(":"),
|
|
@@ -971,6 +1010,7 @@ function pushAttribute(target, name, value) {
|
|
|
971
1010
|
case "async":
|
|
972
1011
|
case "autoPlay":
|
|
973
1012
|
case "controls":
|
|
1013
|
+
case "credentialless":
|
|
974
1014
|
case "default":
|
|
975
1015
|
case "defer":
|
|
976
1016
|
case "disabled":
|
|
@@ -1125,7 +1165,7 @@ function flattenOptionChildren(children) {
|
|
|
1125
1165
|
}
|
|
1126
1166
|
var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
1127
1167
|
formReplayingRuntimeScript = stringToPrecomputedChunk(
|
|
1128
|
-
'addEventListener("submit",function(a){if(!a.defaultPrevented){var
|
|
1168
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});'
|
|
1129
1169
|
);
|
|
1130
1170
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1131
1171
|
if (0 === (resumableState.instructions & 16)) {
|
|
@@ -1173,7 +1213,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
|
|
|
1173
1213
|
function styleReplacer(match, prefix, s, suffix) {
|
|
1174
1214
|
return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
|
|
1175
1215
|
}
|
|
1176
|
-
function pushSelfClosing(target, props, tag) {
|
|
1216
|
+
function pushSelfClosing(target, props, tag, formatContext) {
|
|
1177
1217
|
target.push(startChunkForTag(tag));
|
|
1178
1218
|
for (var propKey in props)
|
|
1179
1219
|
if (hasOwnProperty.call(props, propKey)) {
|
|
@@ -1190,6 +1230,7 @@ function pushSelfClosing(target, props, tag) {
|
|
|
1190
1230
|
pushAttribute(target, propKey, propValue);
|
|
1191
1231
|
}
|
|
1192
1232
|
}
|
|
1233
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1193
1234
|
target.push(endOfStartTagSelfClosing);
|
|
1194
1235
|
return null;
|
|
1195
1236
|
}
|
|
@@ -1261,7 +1302,7 @@ function pushScriptImpl(target, props) {
|
|
|
1261
1302
|
target.push(endChunkForTag("script"));
|
|
1262
1303
|
return null;
|
|
1263
1304
|
}
|
|
1264
|
-
function pushStartSingletonElement(target, props, tag) {
|
|
1305
|
+
function pushStartSingletonElement(target, props, tag, formatContext) {
|
|
1265
1306
|
target.push(startChunkForTag(tag));
|
|
1266
1307
|
var innerHTML = (tag = null),
|
|
1267
1308
|
propKey;
|
|
@@ -1280,11 +1321,12 @@ function pushStartSingletonElement(target, props, tag) {
|
|
|
1280
1321
|
pushAttribute(target, propKey, propValue);
|
|
1281
1322
|
}
|
|
1282
1323
|
}
|
|
1324
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1283
1325
|
target.push(endOfStartTag);
|
|
1284
1326
|
pushInnerHTML(target, innerHTML, tag);
|
|
1285
1327
|
return tag;
|
|
1286
1328
|
}
|
|
1287
|
-
function pushStartGenericElement(target, props, tag) {
|
|
1329
|
+
function pushStartGenericElement(target, props, tag, formatContext) {
|
|
1288
1330
|
target.push(startChunkForTag(tag));
|
|
1289
1331
|
var innerHTML = (tag = null),
|
|
1290
1332
|
propKey;
|
|
@@ -1303,6 +1345,7 @@ function pushStartGenericElement(target, props, tag) {
|
|
|
1303
1345
|
pushAttribute(target, propKey, propValue);
|
|
1304
1346
|
}
|
|
1305
1347
|
}
|
|
1348
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1306
1349
|
target.push(endOfStartTag);
|
|
1307
1350
|
pushInnerHTML(target, innerHTML, tag);
|
|
1308
1351
|
return "string" === typeof tag
|
|
@@ -1364,6 +1407,7 @@ function pushStartInstance(
|
|
|
1364
1407
|
pushAttribute(target$jscomp$0, propKey, propValue);
|
|
1365
1408
|
}
|
|
1366
1409
|
}
|
|
1410
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1367
1411
|
target$jscomp$0.push(endOfStartTag);
|
|
1368
1412
|
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
1369
1413
|
if ("string" === typeof children) {
|
|
@@ -1402,6 +1446,7 @@ function pushStartInstance(
|
|
|
1402
1446
|
);
|
|
1403
1447
|
}
|
|
1404
1448
|
}
|
|
1449
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1405
1450
|
target$jscomp$0.push(endOfStartTag);
|
|
1406
1451
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
1407
1452
|
return children$jscomp$0;
|
|
@@ -1491,6 +1536,7 @@ function pushStartInstance(
|
|
|
1491
1536
|
null === value$jscomp$0 &&
|
|
1492
1537
|
null !== defaultValue &&
|
|
1493
1538
|
(value$jscomp$0 = defaultValue);
|
|
1539
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1494
1540
|
target$jscomp$0.push(endOfStartTag);
|
|
1495
1541
|
if (null != children$jscomp$2) {
|
|
1496
1542
|
if (null != value$jscomp$0)
|
|
@@ -1587,6 +1633,7 @@ function pushStartInstance(
|
|
|
1587
1633
|
? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
|
|
1588
1634
|
: null !== defaultValue$jscomp$0 &&
|
|
1589
1635
|
pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
1636
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1590
1637
|
target$jscomp$0.push(endOfStartTagSelfClosing);
|
|
1591
1638
|
null != formData &&
|
|
1592
1639
|
formData.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1645,6 +1692,7 @@ function pushStartInstance(
|
|
|
1645
1692
|
formTarget$jscomp$0,
|
|
1646
1693
|
name$jscomp$0
|
|
1647
1694
|
);
|
|
1695
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1648
1696
|
target$jscomp$0.push(endOfStartTag);
|
|
1649
1697
|
null != formData$jscomp$0 &&
|
|
1650
1698
|
formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1732,6 +1780,7 @@ function pushStartInstance(
|
|
|
1732
1780
|
pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
1733
1781
|
null != formTarget$jscomp$1 &&
|
|
1734
1782
|
pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
1783
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1735
1784
|
target$jscomp$0.push(endOfStartTag);
|
|
1736
1785
|
null !== formActionName &&
|
|
1737
1786
|
(target$jscomp$0.push(startHiddenInputChunk),
|
|
@@ -1767,6 +1816,7 @@ function pushStartInstance(
|
|
|
1767
1816
|
);
|
|
1768
1817
|
}
|
|
1769
1818
|
}
|
|
1819
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1770
1820
|
target$jscomp$0.push(endOfStartTag);
|
|
1771
1821
|
return null;
|
|
1772
1822
|
case "object":
|
|
@@ -1804,6 +1854,7 @@ function pushStartInstance(
|
|
|
1804
1854
|
);
|
|
1805
1855
|
}
|
|
1806
1856
|
}
|
|
1857
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1807
1858
|
target$jscomp$0.push(endOfStartTag);
|
|
1808
1859
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1809
1860
|
if ("string" === typeof children$jscomp$5) {
|
|
@@ -2085,17 +2136,33 @@ function pushStartInstance(
|
|
|
2085
2136
|
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
2086
2137
|
target$jscomp$0,
|
|
2087
2138
|
props,
|
|
2088
|
-
"meta"
|
|
2139
|
+
"meta",
|
|
2140
|
+
formatContext
|
|
2089
2141
|
);
|
|
2090
2142
|
else
|
|
2091
2143
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2092
2144
|
(JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
|
|
2093
2145
|
? null
|
|
2094
2146
|
: "string" === typeof props.charSet
|
|
2095
|
-
? pushSelfClosing(
|
|
2147
|
+
? pushSelfClosing(
|
|
2148
|
+
renderState.charsetChunks,
|
|
2149
|
+
props,
|
|
2150
|
+
"meta",
|
|
2151
|
+
formatContext
|
|
2152
|
+
)
|
|
2096
2153
|
: "viewport" === props.name
|
|
2097
|
-
? pushSelfClosing(
|
|
2098
|
-
|
|
2154
|
+
? pushSelfClosing(
|
|
2155
|
+
renderState.viewportChunks,
|
|
2156
|
+
props,
|
|
2157
|
+
"meta",
|
|
2158
|
+
formatContext
|
|
2159
|
+
)
|
|
2160
|
+
: pushSelfClosing(
|
|
2161
|
+
renderState.hoistableChunks,
|
|
2162
|
+
props,
|
|
2163
|
+
"meta",
|
|
2164
|
+
formatContext
|
|
2165
|
+
));
|
|
2099
2166
|
return JSCompiler_inline_result$jscomp$7;
|
|
2100
2167
|
case "listing":
|
|
2101
2168
|
case "pre":
|
|
@@ -2122,6 +2189,7 @@ function pushStartInstance(
|
|
|
2122
2189
|
);
|
|
2123
2190
|
}
|
|
2124
2191
|
}
|
|
2192
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2125
2193
|
target$jscomp$0.push(endOfStartTag);
|
|
2126
2194
|
if (null != innerHTML$jscomp$7) {
|
|
2127
2195
|
if (null != children$jscomp$8)
|
|
@@ -2212,7 +2280,7 @@ function pushStartInstance(
|
|
|
2212
2280
|
nonce: props.nonce,
|
|
2213
2281
|
type: props.type,
|
|
2214
2282
|
fetchPriority: props.fetchPriority,
|
|
2215
|
-
referrerPolicy: props.
|
|
2283
|
+
referrerPolicy: props.referrerPolicy
|
|
2216
2284
|
})),
|
|
2217
2285
|
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
2218
2286
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
@@ -2238,7 +2306,7 @@ function pushStartInstance(
|
|
|
2238
2306
|
promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
2239
2307
|
}
|
|
2240
2308
|
}
|
|
2241
|
-
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
2309
|
+
return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
|
|
2242
2310
|
case "base":
|
|
2243
2311
|
case "area":
|
|
2244
2312
|
case "br":
|
|
@@ -2250,7 +2318,7 @@ function pushStartInstance(
|
|
|
2250
2318
|
case "source":
|
|
2251
2319
|
case "track":
|
|
2252
2320
|
case "wbr":
|
|
2253
|
-
return pushSelfClosing(target$jscomp$0, props, type);
|
|
2321
|
+
return pushSelfClosing(target$jscomp$0, props, type, formatContext);
|
|
2254
2322
|
case "annotation-xml":
|
|
2255
2323
|
case "color-profile":
|
|
2256
2324
|
case "font-face":
|
|
@@ -2271,13 +2339,15 @@ function pushStartInstance(
|
|
|
2271
2339
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
2272
2340
|
preamble.headChunks,
|
|
2273
2341
|
props,
|
|
2274
|
-
"head"
|
|
2342
|
+
"head",
|
|
2343
|
+
formatContext
|
|
2275
2344
|
);
|
|
2276
2345
|
} else
|
|
2277
2346
|
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2278
2347
|
target$jscomp$0,
|
|
2279
2348
|
props,
|
|
2280
|
-
"head"
|
|
2349
|
+
"head",
|
|
2350
|
+
formatContext
|
|
2281
2351
|
);
|
|
2282
2352
|
return JSCompiler_inline_result$jscomp$9;
|
|
2283
2353
|
case "body":
|
|
@@ -2291,13 +2361,15 @@ function pushStartInstance(
|
|
|
2291
2361
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
2292
2362
|
preamble$jscomp$0.bodyChunks,
|
|
2293
2363
|
props,
|
|
2294
|
-
"body"
|
|
2364
|
+
"body",
|
|
2365
|
+
formatContext
|
|
2295
2366
|
);
|
|
2296
2367
|
} else
|
|
2297
2368
|
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2298
2369
|
target$jscomp$0,
|
|
2299
2370
|
props,
|
|
2300
|
-
"body"
|
|
2371
|
+
"body",
|
|
2372
|
+
formatContext
|
|
2301
2373
|
);
|
|
2302
2374
|
return JSCompiler_inline_result$jscomp$10;
|
|
2303
2375
|
case "html":
|
|
@@ -2311,13 +2383,15 @@ function pushStartInstance(
|
|
|
2311
2383
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
2312
2384
|
preamble$jscomp$1.htmlChunks,
|
|
2313
2385
|
props,
|
|
2314
|
-
"html"
|
|
2386
|
+
"html",
|
|
2387
|
+
formatContext
|
|
2315
2388
|
);
|
|
2316
2389
|
} else
|
|
2317
2390
|
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
2318
2391
|
target$jscomp$0,
|
|
2319
2392
|
props,
|
|
2320
|
-
"html"
|
|
2393
|
+
"html",
|
|
2394
|
+
formatContext
|
|
2321
2395
|
);
|
|
2322
2396
|
return JSCompiler_inline_result$jscomp$11;
|
|
2323
2397
|
default:
|
|
@@ -2367,12 +2441,13 @@ function pushStartInstance(
|
|
|
2367
2441
|
}
|
|
2368
2442
|
}
|
|
2369
2443
|
}
|
|
2444
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2370
2445
|
target$jscomp$0.push(endOfStartTag);
|
|
2371
2446
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
2372
2447
|
return children$jscomp$9;
|
|
2373
2448
|
}
|
|
2374
2449
|
}
|
|
2375
|
-
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
2450
|
+
return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
|
|
2376
2451
|
}
|
|
2377
2452
|
var endTagCache = new Map();
|
|
2378
2453
|
function endChunkForTag(tag) {
|
|
@@ -2556,12 +2631,12 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
|
2556
2631
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
|
2557
2632
|
stringToPrecomputedChunk('" data-pid="');
|
|
2558
2633
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
|
2559
|
-
|
|
2560
|
-
)
|
|
2561
|
-
stringToChunk(
|
|
2562
|
-
|
|
2563
|
-
)
|
|
2564
|
-
|
|
2634
|
+
'$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
|
|
2635
|
+
),
|
|
2636
|
+
completeBoundaryUpgradeToViewTransitionsInstruction = stringToChunk(
|
|
2637
|
+
'$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),\nz=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");\nM&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&\nq.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});\nA.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);'
|
|
2638
|
+
),
|
|
2639
|
+
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
2565
2640
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
2566
2641
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
|
2567
2642
|
),
|
|
@@ -2575,14 +2650,15 @@ stringToPrecomputedChunk('<template data-rri="" data-bid="');
|
|
|
2575
2650
|
stringToPrecomputedChunk('" data-sid="');
|
|
2576
2651
|
stringToPrecomputedChunk('" data-sty="');
|
|
2577
2652
|
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
|
|
2578
|
-
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
|
|
2653
|
+
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
|
|
2579
2654
|
),
|
|
2580
2655
|
clientRenderScript1Full = stringToPrecomputedChunk(
|
|
2581
|
-
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
|
2656
|
+
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
|
2582
2657
|
),
|
|
2583
2658
|
clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
|
|
2584
2659
|
clientRenderScript1A = stringToPrecomputedChunk('"'),
|
|
2585
2660
|
clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(","),
|
|
2661
|
+
clientRenderErrorScriptNull = stringToPrecomputedChunk("null"),
|
|
2586
2662
|
clientRenderScriptEnd = stringToPrecomputedChunk(")\x3c/script>");
|
|
2587
2663
|
stringToPrecomputedChunk('<template data-rxi="" data-bid="');
|
|
2588
2664
|
stringToPrecomputedChunk('" data-dgst="');
|
|
@@ -3106,7 +3182,7 @@ function preloadModule(href, options) {
|
|
|
3106
3182
|
break;
|
|
3107
3183
|
default:
|
|
3108
3184
|
if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
|
|
3109
|
-
var resources = resumableState.
|
|
3185
|
+
var resources = resumableState.moduleUnknownResources[as];
|
|
3110
3186
|
if (resources.hasOwnProperty(href)) return;
|
|
3111
3187
|
} else
|
|
3112
3188
|
(resources = {}),
|
|
@@ -3288,8 +3364,10 @@ function hoistHoistables(parentState, childState) {
|
|
|
3288
3364
|
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
3289
3365
|
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
3290
3366
|
}
|
|
3291
|
-
function hasSuspenseyContent(hoistableState) {
|
|
3292
|
-
return
|
|
3367
|
+
function hasSuspenseyContent(hoistableState, flushingInShell) {
|
|
3368
|
+
return flushingInShell
|
|
3369
|
+
? hoistableState.suspenseyImages
|
|
3370
|
+
: 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages;
|
|
3293
3371
|
}
|
|
3294
3372
|
var bind = Function.prototype.bind,
|
|
3295
3373
|
supportsRequestStorage = "function" === typeof AsyncLocalStorage,
|
|
@@ -3315,6 +3393,8 @@ function getComponentNameFromType(type) {
|
|
|
3315
3393
|
return "SuspenseList";
|
|
3316
3394
|
case REACT_ACTIVITY_TYPE:
|
|
3317
3395
|
return "Activity";
|
|
3396
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
3397
|
+
return "ViewTransition";
|
|
3318
3398
|
}
|
|
3319
3399
|
if ("object" === typeof type)
|
|
3320
3400
|
switch (type.$$typeof) {
|
|
@@ -3428,6 +3508,11 @@ var classComponentUpdater = {
|
|
|
3428
3508
|
enqueueForceUpdate: function () {}
|
|
3429
3509
|
},
|
|
3430
3510
|
emptyTreeContext = { id: 1, overflow: "" };
|
|
3511
|
+
function getTreeId(context) {
|
|
3512
|
+
var overflow = context.overflow;
|
|
3513
|
+
context = context.id;
|
|
3514
|
+
return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
|
|
3515
|
+
}
|
|
3431
3516
|
function pushTreeContext(baseContext, totalChildren, index) {
|
|
3432
3517
|
var baseIdWithLeadingBit = baseContext.id;
|
|
3433
3518
|
baseContext = baseContext.overflow;
|
|
@@ -3476,7 +3561,12 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
3476
3561
|
case "fulfilled":
|
|
3477
3562
|
return thenable.value;
|
|
3478
3563
|
case "rejected":
|
|
3479
|
-
|
|
3564
|
+
thenableState = thenable.reason;
|
|
3565
|
+
if (void 0 === thenableState && !("reason" in thenable))
|
|
3566
|
+
throw Error(
|
|
3567
|
+
"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."
|
|
3568
|
+
);
|
|
3569
|
+
throw thenableState;
|
|
3480
3570
|
default:
|
|
3481
3571
|
"string" === typeof thenable.status
|
|
3482
3572
|
? thenable.then(noop, noop)
|
|
@@ -3534,8 +3624,50 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
|
3534
3624
|
actionStateCounter = 0,
|
|
3535
3625
|
actionStateMatchingIndex = -1,
|
|
3536
3626
|
thenableIndexCounter = 0,
|
|
3537
|
-
thenableState = null
|
|
3538
|
-
|
|
3627
|
+
thenableState = null;
|
|
3628
|
+
function createRecoverableError(recoverable) {
|
|
3629
|
+
recoverable = recoverable._reason;
|
|
3630
|
+
if ("function" === typeof recoverable)
|
|
3631
|
+
try {
|
|
3632
|
+
var initializedReason = recoverable();
|
|
3633
|
+
} catch ($jscomp$unused$catch) {
|
|
3634
|
+
initializedReason =
|
|
3635
|
+
"The reason for browser-only rendering could not be determined because its initializer threw.";
|
|
3636
|
+
}
|
|
3637
|
+
else initializedReason = recoverable;
|
|
3638
|
+
initializedReason = Error(
|
|
3639
|
+
"Browser-only rendering was requested by `browser()`.",
|
|
3640
|
+
void 0 === recoverable ? void 0 : { cause: initializedReason }
|
|
3641
|
+
);
|
|
3642
|
+
Object.defineProperty(initializedReason, REACT_RECOVERABLE_TYPE, {
|
|
3643
|
+
value: !0
|
|
3644
|
+
});
|
|
3645
|
+
return initializedReason;
|
|
3646
|
+
}
|
|
3647
|
+
function isRecoverableError(error) {
|
|
3648
|
+
return "object" !== typeof error || null === error
|
|
3649
|
+
? !1
|
|
3650
|
+
: !0 === error[REACT_RECOVERABLE_TYPE];
|
|
3651
|
+
}
|
|
3652
|
+
function cloneRecoverableErrorAsFatal(recoverableError) {
|
|
3653
|
+
var fatalRecoverableError = Error(
|
|
3654
|
+
"The server render could not complete because client rendering was requested outside a Suspense boundary. See this error's cause for additional details.",
|
|
3655
|
+
hasOwnProperty.call(recoverableError, "cause")
|
|
3656
|
+
? { cause: recoverableError.cause }
|
|
3657
|
+
: void 0
|
|
3658
|
+
);
|
|
3659
|
+
recoverableError = recoverableError.stack;
|
|
3660
|
+
if (void 0 !== recoverableError) {
|
|
3661
|
+
var frameStart = recoverableError.indexOf("\n");
|
|
3662
|
+
fatalRecoverableError.stack =
|
|
3663
|
+
fatalRecoverableError.name +
|
|
3664
|
+
": " +
|
|
3665
|
+
fatalRecoverableError.message +
|
|
3666
|
+
(-1 === frameStart ? "" : recoverableError.slice(frameStart));
|
|
3667
|
+
} else fatalRecoverableError.stack = void 0;
|
|
3668
|
+
return fatalRecoverableError;
|
|
3669
|
+
}
|
|
3670
|
+
var renderPhaseUpdates = null,
|
|
3539
3671
|
numberOfReRenders = 0;
|
|
3540
3672
|
function resolveCurrentlyRenderingComponent() {
|
|
3541
3673
|
if (null === currentlyRenderingComponent)
|
|
@@ -3748,6 +3880,8 @@ var HooksDispatcher = {
|
|
|
3748
3880
|
use: function (usable) {
|
|
3749
3881
|
if (null !== usable && "object" === typeof usable) {
|
|
3750
3882
|
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
3883
|
+
if (usable.$$typeof === REACT_RECOVERABLE_TYPE)
|
|
3884
|
+
throw createRecoverableError(usable);
|
|
3751
3885
|
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
3752
3886
|
}
|
|
3753
3887
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
@@ -3789,24 +3923,14 @@ var HooksDispatcher = {
|
|
|
3789
3923
|
return [!1, unsupportedStartTransition];
|
|
3790
3924
|
},
|
|
3791
3925
|
useId: function () {
|
|
3792
|
-
var
|
|
3793
|
-
|
|
3794
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3795
|
-
JSCompiler_inline_result =
|
|
3796
|
-
(
|
|
3797
|
-
JSCompiler_inline_result &
|
|
3798
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3799
|
-
).toString(32) + overflow;
|
|
3800
|
-
var resumableState = currentResumableState;
|
|
3926
|
+
var treeId = getTreeId(currentlyRenderingTask.treeContext),
|
|
3927
|
+
resumableState = currentResumableState;
|
|
3801
3928
|
if (null === resumableState)
|
|
3802
3929
|
throw Error(
|
|
3803
3930
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
3804
3931
|
);
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
"_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
|
|
3808
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3809
|
-
return JSCompiler_inline_result + "_";
|
|
3932
|
+
var localId = localIdCounter++;
|
|
3933
|
+
return makeId(resumableState, treeId, localId);
|
|
3810
3934
|
},
|
|
3811
3935
|
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3812
3936
|
if (void 0 === getServerSnapshot)
|
|
@@ -3901,7 +4025,26 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3901
4025
|
} catch (x$24) {
|
|
3902
4026
|
control = x$24;
|
|
3903
4027
|
}
|
|
3904
|
-
|
|
4028
|
+
Fake = !1;
|
|
4029
|
+
try {
|
|
4030
|
+
var prevProps = Object.getOwnPropertyDescriptor(
|
|
4031
|
+
fn.prototype,
|
|
4032
|
+
"props"
|
|
4033
|
+
);
|
|
4034
|
+
Object.defineProperty(fn.prototype, "props", {
|
|
4035
|
+
configurable: !0,
|
|
4036
|
+
set: function () {
|
|
4037
|
+
throw Error();
|
|
4038
|
+
}
|
|
4039
|
+
});
|
|
4040
|
+
Fake = !0;
|
|
4041
|
+
new fn();
|
|
4042
|
+
} finally {
|
|
4043
|
+
Fake &&
|
|
4044
|
+
(void 0 !== prevProps
|
|
4045
|
+
? Object.defineProperty(fn.prototype, "props", prevProps)
|
|
4046
|
+
: delete fn.prototype.props);
|
|
4047
|
+
}
|
|
3905
4048
|
}
|
|
3906
4049
|
} else {
|
|
3907
4050
|
try {
|
|
@@ -4063,13 +4206,34 @@ function describeComponentStackByType(type) {
|
|
|
4063
4206
|
return describeBuiltInComponentFrame("SuspenseList");
|
|
4064
4207
|
case REACT_SUSPENSE_TYPE:
|
|
4065
4208
|
return describeBuiltInComponentFrame("Suspense");
|
|
4209
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
4210
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
4066
4211
|
}
|
|
4067
4212
|
return "";
|
|
4068
4213
|
}
|
|
4214
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
4215
|
+
defaultClass =
|
|
4216
|
+
null == defaultClass || "string" === typeof defaultClass
|
|
4217
|
+
? defaultClass
|
|
4218
|
+
: defaultClass.default;
|
|
4219
|
+
eventClass =
|
|
4220
|
+
null == eventClass || "string" === typeof eventClass
|
|
4221
|
+
? eventClass
|
|
4222
|
+
: eventClass.default;
|
|
4223
|
+
return null == eventClass
|
|
4224
|
+
? "auto" === defaultClass
|
|
4225
|
+
? null
|
|
4226
|
+
: defaultClass
|
|
4227
|
+
: "auto" === eventClass
|
|
4228
|
+
? null
|
|
4229
|
+
: eventClass;
|
|
4230
|
+
}
|
|
4069
4231
|
function isEligibleForOutlining(request, boundary) {
|
|
4070
4232
|
return (
|
|
4071
|
-
(500 < boundary.byteSize ||
|
|
4072
|
-
|
|
4233
|
+
(500 < boundary.byteSize ||
|
|
4234
|
+
hasSuspenseyContent(boundary.contentState, !1) ||
|
|
4235
|
+
boundary.defer) &&
|
|
4236
|
+
null === boundary.preamble
|
|
4073
4237
|
);
|
|
4074
4238
|
}
|
|
4075
4239
|
function defaultErrorHandler(error) {
|
|
@@ -4109,11 +4273,11 @@ function RequestInstance(
|
|
|
4109
4273
|
rootFormatContext,
|
|
4110
4274
|
progressiveChunkSize,
|
|
4111
4275
|
onError,
|
|
4276
|
+
onBrowserBailout,
|
|
4112
4277
|
onAllReady,
|
|
4113
4278
|
onShellReady,
|
|
4114
4279
|
onShellError,
|
|
4115
4280
|
onFatalError,
|
|
4116
|
-
onPostpone,
|
|
4117
4281
|
formState
|
|
4118
4282
|
) {
|
|
4119
4283
|
var abortSet = new Set();
|
|
@@ -4126,21 +4290,24 @@ function RequestInstance(
|
|
|
4126
4290
|
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
4127
4291
|
this.status = 10;
|
|
4128
4292
|
this.fatalError = null;
|
|
4293
|
+
this.aborted = !1;
|
|
4129
4294
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4130
4295
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
4131
4296
|
this.byteSize = 0;
|
|
4132
4297
|
this.abortableTasks = abortSet;
|
|
4133
4298
|
this.pingedTasks = [];
|
|
4299
|
+
this.currentTask = null;
|
|
4134
4300
|
this.clientRenderedBoundaries = [];
|
|
4135
4301
|
this.completedBoundaries = [];
|
|
4136
4302
|
this.partialBoundaries = [];
|
|
4137
|
-
this.trackedPostpones = null;
|
|
4303
|
+
this.postponedState = this.trackedPostpones = null;
|
|
4138
4304
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
4139
|
-
this.
|
|
4305
|
+
this.onBrowserBailout = void 0 === onBrowserBailout ? noop : onBrowserBailout;
|
|
4140
4306
|
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
4141
4307
|
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
4142
4308
|
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
4143
4309
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4310
|
+
this.renderLifetimeController = null;
|
|
4144
4311
|
this.formState = void 0 === formState ? null : formState;
|
|
4145
4312
|
}
|
|
4146
4313
|
function createRequest(
|
|
@@ -4150,11 +4317,11 @@ function createRequest(
|
|
|
4150
4317
|
rootFormatContext,
|
|
4151
4318
|
progressiveChunkSize,
|
|
4152
4319
|
onError,
|
|
4320
|
+
onBrowserBailout,
|
|
4153
4321
|
onAllReady,
|
|
4154
4322
|
onShellReady,
|
|
4155
4323
|
onShellError,
|
|
4156
4324
|
onFatalError,
|
|
4157
|
-
onPostpone,
|
|
4158
4325
|
formState
|
|
4159
4326
|
) {
|
|
4160
4327
|
resumableState = new RequestInstance(
|
|
@@ -4163,11 +4330,11 @@ function createRequest(
|
|
|
4163
4330
|
rootFormatContext,
|
|
4164
4331
|
progressiveChunkSize,
|
|
4165
4332
|
onError,
|
|
4333
|
+
onBrowserBailout,
|
|
4166
4334
|
onAllReady,
|
|
4167
4335
|
onShellReady,
|
|
4168
4336
|
onShellError,
|
|
4169
4337
|
onFatalError,
|
|
4170
|
-
onPostpone,
|
|
4171
4338
|
formState
|
|
4172
4339
|
);
|
|
4173
4340
|
renderState = createPendingSegment(
|
|
@@ -4207,11 +4374,11 @@ function createPrerenderRequest(
|
|
|
4207
4374
|
rootFormatContext,
|
|
4208
4375
|
progressiveChunkSize,
|
|
4209
4376
|
onError,
|
|
4377
|
+
onBrowserBailout,
|
|
4210
4378
|
onAllReady,
|
|
4211
4379
|
onShellReady,
|
|
4212
4380
|
onShellError,
|
|
4213
|
-
onFatalError
|
|
4214
|
-
onPostpone
|
|
4381
|
+
onFatalError
|
|
4215
4382
|
) {
|
|
4216
4383
|
children = createRequest(
|
|
4217
4384
|
children,
|
|
@@ -4220,11 +4387,11 @@ function createPrerenderRequest(
|
|
|
4220
4387
|
rootFormatContext,
|
|
4221
4388
|
progressiveChunkSize,
|
|
4222
4389
|
onError,
|
|
4390
|
+
onBrowserBailout,
|
|
4223
4391
|
onAllReady,
|
|
4224
4392
|
onShellReady,
|
|
4225
4393
|
onShellError,
|
|
4226
4394
|
onFatalError,
|
|
4227
|
-
onPostpone,
|
|
4228
4395
|
void 0
|
|
4229
4396
|
);
|
|
4230
4397
|
children.trackedPostpones = {
|
|
@@ -4239,11 +4406,11 @@ function resumeRequest(
|
|
|
4239
4406
|
postponedState,
|
|
4240
4407
|
renderState,
|
|
4241
4408
|
onError,
|
|
4409
|
+
onBrowserBailout,
|
|
4242
4410
|
onAllReady,
|
|
4243
4411
|
onShellReady,
|
|
4244
4412
|
onShellError,
|
|
4245
|
-
onFatalError
|
|
4246
|
-
onPostpone
|
|
4413
|
+
onFatalError
|
|
4247
4414
|
) {
|
|
4248
4415
|
renderState = new RequestInstance(
|
|
4249
4416
|
postponedState.resumableState,
|
|
@@ -4251,11 +4418,11 @@ function resumeRequest(
|
|
|
4251
4418
|
postponedState.rootFormatContext,
|
|
4252
4419
|
postponedState.progressiveChunkSize,
|
|
4253
4420
|
onError,
|
|
4421
|
+
onBrowserBailout,
|
|
4254
4422
|
onAllReady,
|
|
4255
4423
|
onShellReady,
|
|
4256
4424
|
onShellError,
|
|
4257
4425
|
onFatalError,
|
|
4258
|
-
onPostpone,
|
|
4259
4426
|
null
|
|
4260
4427
|
);
|
|
4261
4428
|
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
@@ -4320,22 +4487,22 @@ function resumeAndPrerenderRequest(
|
|
|
4320
4487
|
postponedState,
|
|
4321
4488
|
renderState,
|
|
4322
4489
|
onError,
|
|
4490
|
+
onBrowserBailout,
|
|
4323
4491
|
onAllReady,
|
|
4324
4492
|
onShellReady,
|
|
4325
4493
|
onShellError,
|
|
4326
|
-
onFatalError
|
|
4327
|
-
onPostpone
|
|
4494
|
+
onFatalError
|
|
4328
4495
|
) {
|
|
4329
4496
|
children = resumeRequest(
|
|
4330
4497
|
children,
|
|
4331
4498
|
postponedState,
|
|
4332
4499
|
renderState,
|
|
4333
4500
|
onError,
|
|
4501
|
+
onBrowserBailout,
|
|
4334
4502
|
onAllReady,
|
|
4335
4503
|
onShellReady,
|
|
4336
4504
|
onShellError,
|
|
4337
|
-
onFatalError
|
|
4338
|
-
onPostpone
|
|
4505
|
+
onFatalError
|
|
4339
4506
|
);
|
|
4340
4507
|
children.trackedPostpones = {
|
|
4341
4508
|
workingMap: new Map(),
|
|
@@ -4369,8 +4536,8 @@ function createSuspenseBoundary(
|
|
|
4369
4536
|
request,
|
|
4370
4537
|
row,
|
|
4371
4538
|
fallbackAbortableTasks,
|
|
4372
|
-
|
|
4373
|
-
|
|
4539
|
+
preamble,
|
|
4540
|
+
defer
|
|
4374
4541
|
) {
|
|
4375
4542
|
fallbackAbortableTasks = {
|
|
4376
4543
|
status: 0,
|
|
@@ -4380,22 +4547,21 @@ function createSuspenseBoundary(
|
|
|
4380
4547
|
row: row,
|
|
4381
4548
|
completedSegments: [],
|
|
4382
4549
|
byteSize: 0,
|
|
4550
|
+
defer: defer,
|
|
4383
4551
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
4384
4552
|
errorDigest: null,
|
|
4385
4553
|
contentState: createHoistableState(),
|
|
4386
4554
|
fallbackState: createHoistableState(),
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
trackedContentKeyPath: null,
|
|
4390
|
-
trackedFallbackNode: null
|
|
4555
|
+
preamble: preamble,
|
|
4556
|
+
tracked: null
|
|
4391
4557
|
};
|
|
4392
4558
|
null !== row &&
|
|
4393
4559
|
(row.pendingTasks++,
|
|
4394
|
-
(
|
|
4395
|
-
null !==
|
|
4560
|
+
(preamble = row.boundaries),
|
|
4561
|
+
null !== preamble &&
|
|
4396
4562
|
(request.allPendingTasks++,
|
|
4397
4563
|
fallbackAbortableTasks.pendingTasks++,
|
|
4398
|
-
|
|
4564
|
+
preamble.push(fallbackAbortableTasks)),
|
|
4399
4565
|
(request = row.inheritedHoistables),
|
|
4400
4566
|
null !== request &&
|
|
4401
4567
|
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
@@ -4427,8 +4593,16 @@ function createRenderTask(
|
|
|
4427
4593
|
replay: null,
|
|
4428
4594
|
node: node,
|
|
4429
4595
|
childIndex: childIndex,
|
|
4430
|
-
ping:
|
|
4431
|
-
|
|
4596
|
+
ping: {
|
|
4597
|
+
resolve: function () {
|
|
4598
|
+
return pingTask(request, task);
|
|
4599
|
+
},
|
|
4600
|
+
reject: function (error) {
|
|
4601
|
+
request.aborted
|
|
4602
|
+
? task.abortSet.delete(task) &&
|
|
4603
|
+
finishAbortedTask(task, request, error)
|
|
4604
|
+
: pingTask(request, task);
|
|
4605
|
+
}
|
|
4432
4606
|
},
|
|
4433
4607
|
blockedBoundary: blockedBoundary,
|
|
4434
4608
|
blockedSegment: blockedSegment,
|
|
@@ -4472,8 +4646,16 @@ function createReplayTask(
|
|
|
4472
4646
|
replay: replay,
|
|
4473
4647
|
node: node,
|
|
4474
4648
|
childIndex: childIndex,
|
|
4475
|
-
ping:
|
|
4476
|
-
|
|
4649
|
+
ping: {
|
|
4650
|
+
resolve: function () {
|
|
4651
|
+
return pingTask(request, task);
|
|
4652
|
+
},
|
|
4653
|
+
reject: function (error) {
|
|
4654
|
+
request.aborted
|
|
4655
|
+
? task.abortSet.delete(task) &&
|
|
4656
|
+
finishAbortedTask(task, request, error)
|
|
4657
|
+
: pingTask(request, task);
|
|
4658
|
+
}
|
|
4477
4659
|
},
|
|
4478
4660
|
blockedBoundary: blockedBoundary,
|
|
4479
4661
|
blockedSegment: null,
|
|
@@ -4556,18 +4738,22 @@ function getThrownInfo(node$jscomp$0) {
|
|
|
4556
4738
|
return errorInfo;
|
|
4557
4739
|
}
|
|
4558
4740
|
function logRecoverableError(request, error, errorInfo) {
|
|
4741
|
+
if (isRecoverableError(error))
|
|
4742
|
+
return (request = request.onBrowserBailout), request(error, errorInfo), "";
|
|
4559
4743
|
request = request.onError;
|
|
4560
4744
|
error = request(error, errorInfo);
|
|
4561
|
-
if (null == error || "string" === typeof error)
|
|
4745
|
+
if (null == error || "string" === typeof error)
|
|
4746
|
+
return "" === error ? void 0 : error;
|
|
4562
4747
|
}
|
|
4563
4748
|
function fatalError(request, error) {
|
|
4564
4749
|
var onShellError = request.onShellError,
|
|
4565
4750
|
onFatalError = request.onFatalError;
|
|
4566
|
-
onShellError(error);
|
|
4751
|
+
0 !== request.pendingRootTasks && onShellError(error);
|
|
4567
4752
|
onFatalError(error);
|
|
4753
|
+
endRenderLifetime(request);
|
|
4568
4754
|
null !== request.destination
|
|
4569
|
-
? ((request.status =
|
|
4570
|
-
: ((request.status =
|
|
4755
|
+
? ((request.status = 13), closeWithError(request.destination, error))
|
|
4756
|
+
: ((request.status = 12), request.aborted || (request.fatalError = error));
|
|
4571
4757
|
}
|
|
4572
4758
|
function finishSuspenseListRow(request, row) {
|
|
4573
4759
|
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
@@ -4687,43 +4873,46 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
4687
4873
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4688
4874
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4689
4875
|
else {
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
for (
|
|
4694
|
-
|
|
4876
|
+
resumeSlots = task.blockedSegment;
|
|
4877
|
+
n = resumeSlots.children.length;
|
|
4878
|
+
i = resumeSlots.chunks.length;
|
|
4879
|
+
for (node = 0; node < keyPath; node++) {
|
|
4880
|
+
resumeSegmentID =
|
|
4881
|
+
"unstable_legacy-backwards" === revealOrder ? keyPath - 1 - node : node;
|
|
4882
|
+
var node$40 = rows[resumeSegmentID];
|
|
4695
4883
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
4696
4884
|
previousSuspenseListRow
|
|
4697
4885
|
);
|
|
4698
|
-
task.treeContext = pushTreeContext(
|
|
4699
|
-
|
|
4886
|
+
task.treeContext = pushTreeContext(
|
|
4887
|
+
prevTreeContext,
|
|
4888
|
+
keyPath,
|
|
4889
|
+
resumeSegmentID
|
|
4890
|
+
);
|
|
4891
|
+
var newSegment = createPendingSegment(
|
|
4700
4892
|
request,
|
|
4701
|
-
|
|
4893
|
+
i,
|
|
4702
4894
|
null,
|
|
4703
4895
|
task.formatContext,
|
|
4704
|
-
0 ===
|
|
4896
|
+
0 === resumeSegmentID ? resumeSlots.lastPushedText : !0,
|
|
4705
4897
|
!0
|
|
4706
4898
|
);
|
|
4707
|
-
|
|
4708
|
-
task.blockedSegment =
|
|
4899
|
+
resumeSlots.children.splice(n, 0, newSegment);
|
|
4900
|
+
task.blockedSegment = newSegment;
|
|
4709
4901
|
try {
|
|
4710
|
-
renderNode(request, task, node,
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
(
|
|
4715
|
-
finishedSegment(request, task.blockedBoundary,
|
|
4902
|
+
renderNode(request, task, node$40, resumeSegmentID),
|
|
4903
|
+
newSegment.lastPushedText &&
|
|
4904
|
+
newSegment.textEmbedded &&
|
|
4905
|
+
newSegment.chunks.push(textSeparator),
|
|
4906
|
+
(newSegment.status = 1),
|
|
4907
|
+
finishedSegment(request, task.blockedBoundary, newSegment),
|
|
4716
4908
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4717
4909
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4718
4910
|
} catch (thrownValue) {
|
|
4719
|
-
throw (
|
|
4720
|
-
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
|
4721
|
-
thrownValue)
|
|
4722
|
-
);
|
|
4911
|
+
throw ((newSegment.status = request.aborted ? 3 : 4), thrownValue);
|
|
4723
4912
|
}
|
|
4724
4913
|
}
|
|
4725
|
-
task.blockedSegment =
|
|
4726
|
-
|
|
4914
|
+
task.blockedSegment = resumeSlots;
|
|
4915
|
+
resumeSlots.lastPushedText = !1;
|
|
4727
4916
|
}
|
|
4728
4917
|
null !== prevRow &&
|
|
4729
4918
|
null !== previousSuspenseListRow &&
|
|
@@ -4800,113 +4989,143 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4800
4989
|
var defaultProps = type.defaultProps;
|
|
4801
4990
|
if (defaultProps) {
|
|
4802
4991
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
4803
|
-
for (var propName$
|
|
4804
|
-
void 0 === newProps[propName$
|
|
4805
|
-
(newProps[propName$
|
|
4992
|
+
for (var propName$45 in defaultProps)
|
|
4993
|
+
void 0 === newProps[propName$45] &&
|
|
4994
|
+
(newProps[propName$45] = defaultProps[propName$45]);
|
|
4806
4995
|
}
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
"object" === typeof
|
|
4811
|
-
null !==
|
|
4812
|
-
(
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4996
|
+
var JSCompiler_inline_result = newProps;
|
|
4997
|
+
var context = emptyContextObject,
|
|
4998
|
+
contextType = type.contextType;
|
|
4999
|
+
"object" === typeof contextType &&
|
|
5000
|
+
null !== contextType &&
|
|
5001
|
+
(context = contextType._currentValue);
|
|
5002
|
+
var JSCompiler_inline_result$jscomp$0 = new type(
|
|
5003
|
+
JSCompiler_inline_result,
|
|
5004
|
+
context
|
|
5005
|
+
);
|
|
5006
|
+
var initialState =
|
|
5007
|
+
void 0 !== JSCompiler_inline_result$jscomp$0.state
|
|
5008
|
+
? JSCompiler_inline_result$jscomp$0.state
|
|
5009
|
+
: null;
|
|
5010
|
+
JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
|
|
5011
|
+
JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
|
|
5012
|
+
JSCompiler_inline_result$jscomp$0.state = initialState;
|
|
5013
|
+
var internalInstance = { queue: [], replace: !1 };
|
|
5014
|
+
JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
|
|
5015
|
+
var contextType$jscomp$0 = type.contextType;
|
|
5016
|
+
JSCompiler_inline_result$jscomp$0.context =
|
|
5017
|
+
"object" === typeof contextType$jscomp$0 &&
|
|
5018
|
+
null !== contextType$jscomp$0
|
|
5019
|
+
? contextType$jscomp$0._currentValue
|
|
4824
5020
|
: emptyContextObject;
|
|
4825
|
-
|
|
4826
|
-
"function" === typeof
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
5021
|
+
var getDerivedStateFromProps = type.getDerivedStateFromProps;
|
|
5022
|
+
if ("function" === typeof getDerivedStateFromProps) {
|
|
5023
|
+
var partialState = getDerivedStateFromProps(
|
|
5024
|
+
JSCompiler_inline_result,
|
|
5025
|
+
initialState
|
|
5026
|
+
);
|
|
5027
|
+
var JSCompiler_inline_result$jscomp$1 =
|
|
5028
|
+
null === partialState || void 0 === partialState
|
|
4830
5029
|
? initialState
|
|
4831
|
-
: assign({}, initialState,
|
|
4832
|
-
|
|
5030
|
+
: assign({}, initialState, partialState);
|
|
5031
|
+
JSCompiler_inline_result$jscomp$0.state =
|
|
5032
|
+
JSCompiler_inline_result$jscomp$1;
|
|
5033
|
+
}
|
|
4833
5034
|
if (
|
|
4834
5035
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
4835
|
-
"function" !==
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
5036
|
+
"function" !==
|
|
5037
|
+
typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
|
|
5038
|
+
("function" ===
|
|
5039
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
|
|
5040
|
+
"function" ===
|
|
5041
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
|
|
5042
|
+
) {
|
|
5043
|
+
var oldState = JSCompiler_inline_result$jscomp$0.state;
|
|
5044
|
+
"function" ===
|
|
5045
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
|
|
5046
|
+
JSCompiler_inline_result$jscomp$0.componentWillMount();
|
|
5047
|
+
"function" ===
|
|
5048
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
|
|
5049
|
+
JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
|
|
5050
|
+
oldState !== JSCompiler_inline_result$jscomp$0.state &&
|
|
5051
|
+
classComponentUpdater.enqueueReplaceState(
|
|
5052
|
+
JSCompiler_inline_result$jscomp$0,
|
|
5053
|
+
JSCompiler_inline_result$jscomp$0.state,
|
|
5054
|
+
null
|
|
5055
|
+
);
|
|
4839
5056
|
if (
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
null
|
|
4850
|
-
),
|
|
4851
|
-
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
4852
|
-
)
|
|
4853
|
-
if (
|
|
4854
|
-
((type = defaultProps.queue),
|
|
4855
|
-
(ref = defaultProps.replace),
|
|
4856
|
-
(defaultProps.queue = null),
|
|
4857
|
-
(defaultProps.replace = !1),
|
|
4858
|
-
ref && 1 === type.length)
|
|
4859
|
-
)
|
|
4860
|
-
newProps.state = type[0];
|
|
5057
|
+
null !== internalInstance.queue &&
|
|
5058
|
+
0 < internalInstance.queue.length
|
|
5059
|
+
) {
|
|
5060
|
+
var oldQueue = internalInstance.queue,
|
|
5061
|
+
oldReplace = internalInstance.replace;
|
|
5062
|
+
internalInstance.queue = null;
|
|
5063
|
+
internalInstance.replace = !1;
|
|
5064
|
+
if (oldReplace && 1 === oldQueue.length)
|
|
5065
|
+
JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
|
|
4861
5066
|
else {
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
5067
|
+
for (
|
|
5068
|
+
var nextState = oldReplace
|
|
5069
|
+
? oldQueue[0]
|
|
5070
|
+
: JSCompiler_inline_result$jscomp$0.state,
|
|
5071
|
+
dontMutate = !0,
|
|
5072
|
+
i = oldReplace ? 1 : 0;
|
|
5073
|
+
i < oldQueue.length;
|
|
5074
|
+
i++
|
|
5075
|
+
) {
|
|
5076
|
+
var partial = oldQueue[i],
|
|
5077
|
+
partialState$jscomp$0 =
|
|
5078
|
+
"function" === typeof partial
|
|
5079
|
+
? partial.call(
|
|
5080
|
+
JSCompiler_inline_result$jscomp$0,
|
|
5081
|
+
nextState,
|
|
5082
|
+
JSCompiler_inline_result,
|
|
5083
|
+
void 0
|
|
5084
|
+
)
|
|
5085
|
+
: partial;
|
|
5086
|
+
null != partialState$jscomp$0 &&
|
|
5087
|
+
(dontMutate
|
|
5088
|
+
? ((dontMutate = !1),
|
|
5089
|
+
(nextState = assign({}, nextState, partialState$jscomp$0)))
|
|
5090
|
+
: assign(nextState, partialState$jscomp$0));
|
|
5091
|
+
}
|
|
5092
|
+
JSCompiler_inline_result$jscomp$0.state = nextState;
|
|
4876
5093
|
}
|
|
4877
|
-
else
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
5094
|
+
} else internalInstance.queue = null;
|
|
5095
|
+
}
|
|
5096
|
+
var nextChildren = JSCompiler_inline_result$jscomp$0.render();
|
|
5097
|
+
if (request.aborted) throw null;
|
|
5098
|
+
var prevKeyPath = task.keyPath;
|
|
4881
5099
|
task.keyPath = keyPath;
|
|
4882
|
-
renderNodeDestructive(request, task,
|
|
4883
|
-
task.keyPath =
|
|
5100
|
+
renderNodeDestructive(request, task, nextChildren, -1);
|
|
5101
|
+
task.keyPath = prevKeyPath;
|
|
4884
5102
|
} else {
|
|
4885
|
-
|
|
4886
|
-
if (
|
|
5103
|
+
var value = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
5104
|
+
if (request.aborted) throw null;
|
|
4887
5105
|
finishFunctionComponent(
|
|
4888
5106
|
request,
|
|
4889
5107
|
task,
|
|
4890
5108
|
keyPath,
|
|
4891
|
-
|
|
5109
|
+
value,
|
|
4892
5110
|
0 !== localIdCounter,
|
|
4893
5111
|
actionStateCounter,
|
|
4894
5112
|
actionStateMatchingIndex
|
|
4895
5113
|
);
|
|
4896
5114
|
}
|
|
4897
|
-
else if ("string" === typeof type)
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
5115
|
+
else if ("string" === typeof type) {
|
|
5116
|
+
var segment = task.blockedSegment;
|
|
5117
|
+
if (null === segment) {
|
|
5118
|
+
var children = props.children,
|
|
5119
|
+
prevContext = task.formatContext,
|
|
5120
|
+
prevKeyPath$jscomp$0 = task.keyPath;
|
|
5121
|
+
task.formatContext = getChildFormatContext(prevContext, type, props);
|
|
5122
|
+
task.keyPath = keyPath;
|
|
5123
|
+
renderNode(request, task, children, -1);
|
|
5124
|
+
task.formatContext = prevContext;
|
|
5125
|
+
task.keyPath = prevKeyPath$jscomp$0;
|
|
5126
|
+
} else {
|
|
5127
|
+
var children$42 = pushStartInstance(
|
|
5128
|
+
segment.chunks,
|
|
4910
5129
|
type,
|
|
4911
5130
|
props,
|
|
4912
5131
|
request.resumableState,
|
|
@@ -4914,18 +5133,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4914
5133
|
task.blockedPreamble,
|
|
4915
5134
|
task.hoistableState,
|
|
4916
5135
|
task.formatContext,
|
|
4917
|
-
|
|
5136
|
+
segment.lastPushedText
|
|
4918
5137
|
);
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
5138
|
+
segment.lastPushedText = !1;
|
|
5139
|
+
var prevContext$43 = task.formatContext,
|
|
5140
|
+
prevKeyPath$44 = task.keyPath;
|
|
4922
5141
|
task.keyPath = keyPath;
|
|
4923
5142
|
if (
|
|
4924
5143
|
3 ===
|
|
4925
|
-
(task.formatContext = getChildFormatContext(
|
|
4926
|
-
|
|
5144
|
+
(task.formatContext = getChildFormatContext(
|
|
5145
|
+
prevContext$43,
|
|
5146
|
+
type,
|
|
5147
|
+
props
|
|
5148
|
+
)).insertionMode
|
|
4927
5149
|
) {
|
|
4928
|
-
|
|
5150
|
+
var preambleSegment = createPendingSegment(
|
|
4929
5151
|
request,
|
|
4930
5152
|
0,
|
|
4931
5153
|
null,
|
|
@@ -4933,25 +5155,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4933
5155
|
!1,
|
|
4934
5156
|
!1
|
|
4935
5157
|
);
|
|
4936
|
-
|
|
4937
|
-
task.blockedSegment =
|
|
5158
|
+
segment.preambleChildren.push(preambleSegment);
|
|
5159
|
+
task.blockedSegment = preambleSegment;
|
|
4938
5160
|
try {
|
|
4939
|
-
(
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
(
|
|
4945
|
-
finishedSegment(request, task.blockedBoundary, keyPath);
|
|
5161
|
+
renderNode(request, task, children$42, -1),
|
|
5162
|
+
preambleSegment.lastPushedText &&
|
|
5163
|
+
preambleSegment.textEmbedded &&
|
|
5164
|
+
preambleSegment.chunks.push(textSeparator),
|
|
5165
|
+
(preambleSegment.status = 1),
|
|
5166
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
|
4946
5167
|
} finally {
|
|
4947
|
-
task.blockedSegment =
|
|
5168
|
+
task.blockedSegment = segment;
|
|
4948
5169
|
}
|
|
4949
|
-
} else renderNode(request, task,
|
|
4950
|
-
task.formatContext =
|
|
4951
|
-
task.keyPath =
|
|
5170
|
+
} else renderNode(request, task, children$42, -1);
|
|
5171
|
+
task.formatContext = prevContext$43;
|
|
5172
|
+
task.keyPath = prevKeyPath$44;
|
|
4952
5173
|
a: {
|
|
4953
|
-
|
|
4954
|
-
|
|
5174
|
+
var target = segment.chunks,
|
|
5175
|
+
resumableState = request.resumableState;
|
|
4955
5176
|
switch (type) {
|
|
4956
5177
|
case "title":
|
|
4957
5178
|
case "style":
|
|
@@ -4973,157 +5194,239 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4973
5194
|
case "wbr":
|
|
4974
5195
|
break a;
|
|
4975
5196
|
case "body":
|
|
4976
|
-
if (1 >=
|
|
4977
|
-
|
|
5197
|
+
if (1 >= prevContext$43.insertionMode) {
|
|
5198
|
+
resumableState.hasBody = !0;
|
|
4978
5199
|
break a;
|
|
4979
5200
|
}
|
|
4980
5201
|
break;
|
|
4981
5202
|
case "html":
|
|
4982
|
-
if (0 ===
|
|
4983
|
-
|
|
5203
|
+
if (0 === prevContext$43.insertionMode) {
|
|
5204
|
+
resumableState.hasHtml = !0;
|
|
4984
5205
|
break a;
|
|
4985
5206
|
}
|
|
4986
5207
|
break;
|
|
4987
5208
|
case "head":
|
|
4988
|
-
if (1 >=
|
|
5209
|
+
if (1 >= prevContext$43.insertionMode) break a;
|
|
4989
5210
|
}
|
|
4990
|
-
|
|
5211
|
+
target.push(endChunkForTag(type));
|
|
4991
5212
|
}
|
|
4992
|
-
|
|
5213
|
+
segment.lastPushedText = !1;
|
|
4993
5214
|
}
|
|
4994
|
-
else {
|
|
5215
|
+
} else {
|
|
4995
5216
|
switch (type) {
|
|
4996
5217
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
4997
5218
|
case REACT_STRICT_MODE_TYPE:
|
|
4998
5219
|
case REACT_PROFILER_TYPE:
|
|
4999
5220
|
case REACT_FRAGMENT_TYPE:
|
|
5000
|
-
|
|
5221
|
+
var prevKeyPath$jscomp$1 = task.keyPath;
|
|
5001
5222
|
task.keyPath = keyPath;
|
|
5002
5223
|
renderNodeDestructive(request, task, props.children, -1);
|
|
5003
|
-
task.keyPath =
|
|
5224
|
+
task.keyPath = prevKeyPath$jscomp$1;
|
|
5004
5225
|
return;
|
|
5005
5226
|
case REACT_ACTIVITY_TYPE:
|
|
5006
|
-
|
|
5007
|
-
null ===
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
renderNode(request, task, props.children, -1)
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5227
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
5228
|
+
if (null === segment$jscomp$0) {
|
|
5229
|
+
if ("hidden" !== props.mode) {
|
|
5230
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
5231
|
+
task.keyPath = keyPath;
|
|
5232
|
+
renderNode(request, task, props.children, -1);
|
|
5233
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
5234
|
+
}
|
|
5235
|
+
} else if ("hidden" !== props.mode) {
|
|
5236
|
+
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
5237
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5238
|
+
var prevKeyPath$47 = task.keyPath;
|
|
5239
|
+
task.keyPath = keyPath;
|
|
5240
|
+
renderNode(request, task, props.children, -1);
|
|
5241
|
+
task.keyPath = prevKeyPath$47;
|
|
5242
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
5243
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5244
|
+
}
|
|
5022
5245
|
return;
|
|
5023
5246
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5024
5247
|
a: {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
if (
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5248
|
+
var children$jscomp$0 = props.children,
|
|
5249
|
+
revealOrder = props.revealOrder;
|
|
5250
|
+
if ("independent" !== revealOrder && "together" !== revealOrder) {
|
|
5251
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
5252
|
+
renderSuspenseListRows(
|
|
5253
|
+
request,
|
|
5254
|
+
task,
|
|
5255
|
+
keyPath,
|
|
5256
|
+
children$jscomp$0,
|
|
5257
|
+
revealOrder
|
|
5258
|
+
);
|
|
5034
5259
|
break a;
|
|
5035
5260
|
}
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5261
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
5262
|
+
if (iteratorFn) {
|
|
5263
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
5264
|
+
if (iterator) {
|
|
5265
|
+
var step = iterator.next();
|
|
5266
|
+
if (!step.done) {
|
|
5267
|
+
do step = iterator.next();
|
|
5268
|
+
while (!step.done);
|
|
5269
|
+
renderSuspenseListRows(
|
|
5270
|
+
request,
|
|
5271
|
+
task,
|
|
5272
|
+
keyPath,
|
|
5273
|
+
children$jscomp$0,
|
|
5274
|
+
revealOrder
|
|
5275
|
+
);
|
|
5043
5276
|
}
|
|
5044
5277
|
break a;
|
|
5045
5278
|
}
|
|
5279
|
+
}
|
|
5280
|
+
}
|
|
5281
|
+
if ("together" === revealOrder) {
|
|
5282
|
+
var prevKeyPath$41 = task.keyPath,
|
|
5283
|
+
prevRow = task.row,
|
|
5284
|
+
newRow = (task.row = createSuspenseListRow(null));
|
|
5285
|
+
newRow.boundaries = [];
|
|
5286
|
+
newRow.together = !0;
|
|
5287
|
+
task.keyPath = keyPath;
|
|
5288
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5289
|
+
0 === --newRow.pendingTasks &&
|
|
5290
|
+
finishSuspenseListRow(request, newRow);
|
|
5291
|
+
task.keyPath = prevKeyPath$41;
|
|
5292
|
+
task.row = prevRow;
|
|
5293
|
+
null !== prevRow &&
|
|
5294
|
+
0 < newRow.pendingTasks &&
|
|
5295
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
|
5296
|
+
} else {
|
|
5297
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
5298
|
+
task.keyPath = keyPath;
|
|
5299
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5300
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
5046
5301
|
}
|
|
5047
|
-
"together" === props
|
|
5048
|
-
? ((props = task.keyPath),
|
|
5049
|
-
(newProps = task.row),
|
|
5050
|
-
(defaultProps = task.row = createSuspenseListRow(null)),
|
|
5051
|
-
(defaultProps.boundaries = []),
|
|
5052
|
-
(defaultProps.together = !0),
|
|
5053
|
-
(task.keyPath = keyPath),
|
|
5054
|
-
renderNodeDestructive(request, task, type, -1),
|
|
5055
|
-
0 === --defaultProps.pendingTasks &&
|
|
5056
|
-
finishSuspenseListRow(request, defaultProps),
|
|
5057
|
-
(task.keyPath = props),
|
|
5058
|
-
(task.row = newProps),
|
|
5059
|
-
null !== newProps &&
|
|
5060
|
-
0 < defaultProps.pendingTasks &&
|
|
5061
|
-
(newProps.pendingTasks++, (defaultProps.next = newProps)))
|
|
5062
|
-
: ((props = task.keyPath),
|
|
5063
|
-
(task.keyPath = keyPath),
|
|
5064
|
-
renderNodeDestructive(request, task, type, -1),
|
|
5065
|
-
(task.keyPath = props));
|
|
5066
5302
|
}
|
|
5067
5303
|
return;
|
|
5068
5304
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5305
|
+
var prevContext$jscomp$0 = task.formatContext,
|
|
5306
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
5307
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
5308
|
+
if (null != props.name && "auto" !== props.name)
|
|
5309
|
+
var JSCompiler_inline_result$jscomp$2 = props.name;
|
|
5310
|
+
else {
|
|
5311
|
+
var treeId = getTreeId(task.treeContext);
|
|
5312
|
+
JSCompiler_inline_result$jscomp$2 = makeId(
|
|
5313
|
+
resumableState$jscomp$0,
|
|
5314
|
+
treeId,
|
|
5315
|
+
0
|
|
5316
|
+
);
|
|
5317
|
+
}
|
|
5318
|
+
var autoName = JSCompiler_inline_result$jscomp$2,
|
|
5319
|
+
resumableState$jscomp$1 = request.resumableState,
|
|
5320
|
+
update = getViewTransitionClassName(props.default, props.update),
|
|
5321
|
+
enter = getViewTransitionClassName(props.default, props.enter),
|
|
5322
|
+
exit = getViewTransitionClassName(props.default, props.exit),
|
|
5323
|
+
share = getViewTransitionClassName(props.default, props.share),
|
|
5324
|
+
name = props.name;
|
|
5325
|
+
null == update && (update = "auto");
|
|
5326
|
+
null == enter && (enter = "auto");
|
|
5327
|
+
null == exit && (exit = "auto");
|
|
5328
|
+
if (null == name) {
|
|
5329
|
+
var parentViewTransition = prevContext$jscomp$0.viewTransition;
|
|
5330
|
+
null !== parentViewTransition
|
|
5331
|
+
? ((name = parentViewTransition.name),
|
|
5332
|
+
(share = parentViewTransition.share))
|
|
5333
|
+
: ((name = "auto"), (share = "none"));
|
|
5334
|
+
} else
|
|
5335
|
+
null == share && (share = "auto"),
|
|
5336
|
+
prevContext$jscomp$0.tagScope & 4 &&
|
|
5337
|
+
(resumableState$jscomp$1.instructions |= 128);
|
|
5338
|
+
prevContext$jscomp$0.tagScope & 8
|
|
5339
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5340
|
+
: (exit = "none");
|
|
5341
|
+
prevContext$jscomp$0.tagScope & 16
|
|
5342
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5343
|
+
: (enter = "none");
|
|
5344
|
+
var viewTransition = {
|
|
5345
|
+
update: update,
|
|
5346
|
+
enter: enter,
|
|
5347
|
+
exit: exit,
|
|
5348
|
+
share: share,
|
|
5349
|
+
parentEnter: "none",
|
|
5350
|
+
parentExit: "none",
|
|
5351
|
+
name: name,
|
|
5352
|
+
autoName: autoName,
|
|
5353
|
+
nameIdx: 0
|
|
5354
|
+
},
|
|
5355
|
+
subtreeScope = prevContext$jscomp$0.tagScope & -25;
|
|
5356
|
+
subtreeScope =
|
|
5357
|
+
"none" !== update ? subtreeScope | 32 : subtreeScope & -33;
|
|
5358
|
+
"none" !== enter && (subtreeScope |= 64);
|
|
5359
|
+
var JSCompiler_inline_result$jscomp$3 = createFormatContext(
|
|
5360
|
+
prevContext$jscomp$0.insertionMode,
|
|
5361
|
+
prevContext$jscomp$0.selectedValue,
|
|
5362
|
+
subtreeScope,
|
|
5363
|
+
viewTransition
|
|
5364
|
+
);
|
|
5365
|
+
task.formatContext = JSCompiler_inline_result$jscomp$3;
|
|
5366
|
+
task.keyPath = keyPath;
|
|
5367
|
+
if (null != props.name && "auto" !== props.name)
|
|
5368
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
5369
|
+
else {
|
|
5370
|
+
var prevTreeContext = task.treeContext;
|
|
5371
|
+
task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
|
|
5372
|
+
renderNode(request, task, props.children, -1);
|
|
5373
|
+
task.treeContext = prevTreeContext;
|
|
5374
|
+
}
|
|
5375
|
+
task.formatContext = prevContext$jscomp$0;
|
|
5376
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
5377
|
+
return;
|
|
5069
5378
|
case REACT_SCOPE_TYPE:
|
|
5070
5379
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
5071
5380
|
case REACT_SUSPENSE_TYPE:
|
|
5072
5381
|
a: if (null !== task.replay) {
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5382
|
+
var prevKeyPath$27 = task.keyPath,
|
|
5383
|
+
prevContext$28 = task.formatContext,
|
|
5384
|
+
prevRow$29 = task.row;
|
|
5076
5385
|
task.keyPath = keyPath;
|
|
5077
5386
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5078
5387
|
request.resumableState,
|
|
5079
|
-
|
|
5388
|
+
prevContext$28
|
|
5080
5389
|
);
|
|
5081
5390
|
task.row = null;
|
|
5082
|
-
|
|
5391
|
+
var content$30 = props.children;
|
|
5083
5392
|
try {
|
|
5084
|
-
renderNode(request, task,
|
|
5393
|
+
renderNode(request, task, content$30, -1);
|
|
5085
5394
|
} finally {
|
|
5086
|
-
(task.keyPath =
|
|
5087
|
-
(task.formatContext =
|
|
5088
|
-
(task.row =
|
|
5395
|
+
(task.keyPath = prevKeyPath$27),
|
|
5396
|
+
(task.formatContext = prevContext$28),
|
|
5397
|
+
(task.row = prevRow$29);
|
|
5089
5398
|
}
|
|
5090
5399
|
} else {
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5400
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
5401
|
+
prevContext$jscomp$1 = task.formatContext,
|
|
5402
|
+
prevRow$jscomp$0 = task.row,
|
|
5403
|
+
parentBoundary = task.blockedBoundary,
|
|
5404
|
+
parentPreamble = task.blockedPreamble,
|
|
5405
|
+
parentHoistableState = task.hoistableState,
|
|
5097
5406
|
parentSegment = task.blockedSegment,
|
|
5098
|
-
fallback = props.fallback
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
parentSegment.chunks.length,
|
|
5122
|
-
newBoundary,
|
|
5123
|
-
task.formatContext,
|
|
5124
|
-
!1,
|
|
5125
|
-
!1
|
|
5126
|
-
);
|
|
5407
|
+
fallback = props.fallback,
|
|
5408
|
+
content = props.children,
|
|
5409
|
+
fallbackAbortSet = new Set(),
|
|
5410
|
+
newBoundary = createSuspenseBoundary(
|
|
5411
|
+
request,
|
|
5412
|
+
task.row,
|
|
5413
|
+
fallbackAbortSet,
|
|
5414
|
+
2 > task.formatContext.insertionMode
|
|
5415
|
+
? {
|
|
5416
|
+
content: createPreambleState(),
|
|
5417
|
+
fallback: createPreambleState()
|
|
5418
|
+
}
|
|
5419
|
+
: null,
|
|
5420
|
+
!1
|
|
5421
|
+
),
|
|
5422
|
+
boundarySegment = createPendingSegment(
|
|
5423
|
+
request,
|
|
5424
|
+
parentSegment.chunks.length,
|
|
5425
|
+
newBoundary,
|
|
5426
|
+
task.formatContext,
|
|
5427
|
+
!1,
|
|
5428
|
+
!1
|
|
5429
|
+
);
|
|
5127
5430
|
parentSegment.children.push(boundarySegment);
|
|
5128
5431
|
parentSegment.lastPushedText = !1;
|
|
5129
5432
|
var contentRootSegment = createPendingSegment(
|
|
@@ -5135,48 +5438,68 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5135
5438
|
!1
|
|
5136
5439
|
);
|
|
5137
5440
|
contentRootSegment.parentFlushed = !0;
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5441
|
+
var trackedPostpones = request.trackedPostpones;
|
|
5442
|
+
if (null !== trackedPostpones) {
|
|
5443
|
+
var suspenseComponentStack = task.componentStack,
|
|
5444
|
+
fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
5445
|
+
if (null !== trackedPostpones) {
|
|
5446
|
+
var fallbackReplayNode = [
|
|
5447
|
+
fallbackKeyPath[1],
|
|
5448
|
+
fallbackKeyPath[2],
|
|
5449
|
+
[],
|
|
5450
|
+
null
|
|
5451
|
+
];
|
|
5452
|
+
trackedPostpones.workingMap.set(
|
|
5453
|
+
fallbackKeyPath,
|
|
5454
|
+
fallbackReplayNode
|
|
5455
|
+
);
|
|
5456
|
+
newBoundary.tracked = {
|
|
5457
|
+
contentKeyPath: keyPath,
|
|
5458
|
+
fallbackNode: fallbackReplayNode
|
|
5459
|
+
};
|
|
5460
|
+
}
|
|
5144
5461
|
task.blockedSegment = boundarySegment;
|
|
5145
|
-
task.blockedPreamble =
|
|
5146
|
-
|
|
5462
|
+
task.blockedPreamble =
|
|
5463
|
+
null === newBoundary.preamble
|
|
5464
|
+
? null
|
|
5465
|
+
: newBoundary.preamble.fallback;
|
|
5466
|
+
task.keyPath = fallbackKeyPath;
|
|
5147
5467
|
task.formatContext = getSuspenseFallbackFormatContext(
|
|
5148
5468
|
request.resumableState,
|
|
5149
|
-
|
|
5469
|
+
prevContext$jscomp$1
|
|
5150
5470
|
);
|
|
5151
5471
|
task.componentStack =
|
|
5152
|
-
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5153
|
-
|
|
5472
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5473
|
+
suspenseComponentStack
|
|
5474
|
+
);
|
|
5154
5475
|
try {
|
|
5155
5476
|
renderNode(request, task, fallback, -1),
|
|
5156
5477
|
boundarySegment.lastPushedText &&
|
|
5157
5478
|
boundarySegment.textEmbedded &&
|
|
5158
5479
|
boundarySegment.chunks.push(textSeparator),
|
|
5159
5480
|
(boundarySegment.status = 1),
|
|
5160
|
-
finishedSegment(request,
|
|
5481
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
|
5161
5482
|
} catch (thrownValue) {
|
|
5162
5483
|
throw (
|
|
5163
|
-
((boundarySegment.status =
|
|
5484
|
+
((boundarySegment.status = request.aborted ? 3 : 4),
|
|
5164
5485
|
thrownValue)
|
|
5165
5486
|
);
|
|
5166
5487
|
} finally {
|
|
5167
5488
|
(task.blockedSegment = parentSegment),
|
|
5168
|
-
(task.blockedPreamble =
|
|
5169
|
-
(task.keyPath =
|
|
5170
|
-
(task.formatContext =
|
|
5489
|
+
(task.blockedPreamble = parentPreamble),
|
|
5490
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5491
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
5171
5492
|
}
|
|
5172
|
-
|
|
5493
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
5173
5494
|
request,
|
|
5174
5495
|
null,
|
|
5175
|
-
|
|
5496
|
+
content,
|
|
5176
5497
|
-1,
|
|
5177
5498
|
newBoundary,
|
|
5178
5499
|
contentRootSegment,
|
|
5179
|
-
newBoundary.
|
|
5500
|
+
null === newBoundary.preamble
|
|
5501
|
+
? null
|
|
5502
|
+
: newBoundary.preamble.content,
|
|
5180
5503
|
newBoundary.contentState,
|
|
5181
5504
|
task.abortSet,
|
|
5182
5505
|
keyPath,
|
|
@@ -5187,25 +5510,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5187
5510
|
task.context,
|
|
5188
5511
|
task.treeContext,
|
|
5189
5512
|
null,
|
|
5190
|
-
|
|
5513
|
+
suspenseComponentStack
|
|
5191
5514
|
);
|
|
5192
|
-
pushComponentStack(
|
|
5193
|
-
request.pingedTasks.push(
|
|
5515
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
5516
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
5194
5517
|
} else {
|
|
5195
5518
|
task.blockedBoundary = newBoundary;
|
|
5196
|
-
task.blockedPreamble =
|
|
5519
|
+
task.blockedPreamble =
|
|
5520
|
+
null === newBoundary.preamble
|
|
5521
|
+
? null
|
|
5522
|
+
: newBoundary.preamble.content;
|
|
5197
5523
|
task.hoistableState = newBoundary.contentState;
|
|
5198
5524
|
task.blockedSegment = contentRootSegment;
|
|
5199
5525
|
task.keyPath = keyPath;
|
|
5200
5526
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5201
5527
|
request.resumableState,
|
|
5202
|
-
|
|
5528
|
+
prevContext$jscomp$1
|
|
5203
5529
|
);
|
|
5204
5530
|
task.row = null;
|
|
5205
|
-
contentRootSegment.status = 6;
|
|
5206
5531
|
try {
|
|
5207
5532
|
if (
|
|
5208
|
-
(renderNode(request, task,
|
|
5533
|
+
(renderNode(request, task, content, -1),
|
|
5209
5534
|
contentRootSegment.lastPushedText &&
|
|
5210
5535
|
contentRootSegment.textEmbedded &&
|
|
5211
5536
|
contentRootSegment.chunks.push(textSeparator),
|
|
@@ -5218,50 +5543,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5218
5543
|
((newBoundary.status = 1),
|
|
5219
5544
|
!isEligibleForOutlining(request, newBoundary))
|
|
5220
5545
|
) {
|
|
5221
|
-
null !== prevRow &&
|
|
5222
|
-
0 === --prevRow.pendingTasks &&
|
|
5223
|
-
finishSuspenseListRow(request, prevRow);
|
|
5546
|
+
null !== prevRow$jscomp$0 &&
|
|
5547
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
5548
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
|
5224
5549
|
0 === request.pendingRootTasks &&
|
|
5225
5550
|
task.blockedPreamble &&
|
|
5226
5551
|
preparePreamble(request);
|
|
5227
5552
|
break a;
|
|
5228
5553
|
}
|
|
5229
5554
|
} else
|
|
5230
|
-
null !== prevRow &&
|
|
5231
|
-
prevRow.together &&
|
|
5232
|
-
tryToResolveTogetherRow(request, prevRow);
|
|
5555
|
+
null !== prevRow$jscomp$0 &&
|
|
5556
|
+
prevRow$jscomp$0.together &&
|
|
5557
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
5233
5558
|
} catch (thrownValue$31) {
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
newProps,
|
|
5244
|
-
defaultProps
|
|
5245
|
-
)),
|
|
5246
|
-
(newBoundary.errorDigest = initialState),
|
|
5247
|
-
untrackBoundary(request, newBoundary);
|
|
5559
|
+
newBoundary.status = 4;
|
|
5560
|
+
if (request.aborted) {
|
|
5561
|
+
contentRootSegment.status = 3;
|
|
5562
|
+
var error = request.fatalError;
|
|
5563
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$31);
|
|
5564
|
+
var thrownInfo = getThrownInfo(task.componentStack),
|
|
5565
|
+
errorDigest = logRecoverableError(request, error, thrownInfo);
|
|
5566
|
+
newBoundary.errorDigest = errorDigest;
|
|
5567
|
+
untrackBoundary(request, newBoundary);
|
|
5248
5568
|
} finally {
|
|
5249
|
-
(task.blockedBoundary =
|
|
5250
|
-
(task.blockedPreamble =
|
|
5569
|
+
(task.blockedBoundary = parentBoundary),
|
|
5570
|
+
(task.blockedPreamble = parentPreamble),
|
|
5251
5571
|
(task.hoistableState = parentHoistableState),
|
|
5252
5572
|
(task.blockedSegment = parentSegment),
|
|
5253
|
-
(task.keyPath =
|
|
5254
|
-
(task.formatContext =
|
|
5255
|
-
(task.row = prevRow);
|
|
5573
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5574
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
5575
|
+
(task.row = prevRow$jscomp$0);
|
|
5256
5576
|
}
|
|
5257
|
-
|
|
5577
|
+
var suspendedFallbackTask = createRenderTask(
|
|
5258
5578
|
request,
|
|
5259
5579
|
null,
|
|
5260
5580
|
fallback,
|
|
5261
5581
|
-1,
|
|
5262
|
-
|
|
5582
|
+
parentBoundary,
|
|
5263
5583
|
boundarySegment,
|
|
5264
|
-
newBoundary.
|
|
5584
|
+
null === newBoundary.preamble
|
|
5585
|
+
? null
|
|
5586
|
+
: newBoundary.preamble.fallback,
|
|
5265
5587
|
newBoundary.fallbackState,
|
|
5266
5588
|
fallbackAbortSet,
|
|
5267
5589
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
@@ -5276,8 +5598,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5276
5598
|
task.componentStack
|
|
5277
5599
|
)
|
|
5278
5600
|
);
|
|
5279
|
-
pushComponentStack(
|
|
5280
|
-
request.pingedTasks.push(
|
|
5601
|
+
pushComponentStack(suspendedFallbackTask);
|
|
5602
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
5281
5603
|
}
|
|
5282
5604
|
}
|
|
5283
5605
|
return;
|
|
@@ -5285,24 +5607,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5285
5607
|
if ("object" === typeof type && null !== type)
|
|
5286
5608
|
switch (type.$$typeof) {
|
|
5287
5609
|
case REACT_FORWARD_REF_TYPE:
|
|
5288
|
-
if ("ref" in props)
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
else
|
|
5293
|
-
|
|
5610
|
+
if ("ref" in props) {
|
|
5611
|
+
var propsWithoutRef = {};
|
|
5612
|
+
for (var key in props)
|
|
5613
|
+
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5614
|
+
} else propsWithoutRef = props;
|
|
5615
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5294
5616
|
request,
|
|
5295
5617
|
task,
|
|
5296
5618
|
keyPath,
|
|
5297
5619
|
type.render,
|
|
5298
|
-
|
|
5620
|
+
propsWithoutRef,
|
|
5299
5621
|
ref
|
|
5300
5622
|
);
|
|
5301
5623
|
finishFunctionComponent(
|
|
5302
5624
|
request,
|
|
5303
5625
|
task,
|
|
5304
5626
|
keyPath,
|
|
5305
|
-
|
|
5627
|
+
children$jscomp$1,
|
|
5306
5628
|
0 !== localIdCounter,
|
|
5307
5629
|
actionStateCounter,
|
|
5308
5630
|
actionStateMatchingIndex
|
|
@@ -5312,45 +5634,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5312
5634
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
5313
5635
|
return;
|
|
5314
5636
|
case REACT_CONTEXT_TYPE:
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
type._currentValue =
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5637
|
+
var children$jscomp$2 = props.children,
|
|
5638
|
+
prevKeyPath$jscomp$6 = task.keyPath,
|
|
5639
|
+
nextValue = props.value;
|
|
5640
|
+
var prevValue = type._currentValue;
|
|
5641
|
+
type._currentValue = nextValue;
|
|
5642
|
+
var prevNode = currentActiveSnapshot,
|
|
5643
|
+
newNode = {
|
|
5644
|
+
parent: prevNode,
|
|
5645
|
+
depth: null === prevNode ? 0 : prevNode.depth + 1,
|
|
5646
|
+
context: type,
|
|
5647
|
+
parentValue: prevValue,
|
|
5648
|
+
value: nextValue
|
|
5649
|
+
};
|
|
5650
|
+
currentActiveSnapshot = newNode;
|
|
5651
|
+
task.context = newNode;
|
|
5329
5652
|
task.keyPath = keyPath;
|
|
5330
|
-
renderNodeDestructive(request, task,
|
|
5331
|
-
|
|
5332
|
-
if (null ===
|
|
5653
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5654
|
+
var prevSnapshot = currentActiveSnapshot;
|
|
5655
|
+
if (null === prevSnapshot)
|
|
5333
5656
|
throw Error(
|
|
5334
5657
|
"Tried to pop a Context at the root of the app. This is a bug in React."
|
|
5335
5658
|
);
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
task.
|
|
5659
|
+
prevSnapshot.context._currentValue = prevSnapshot.parentValue;
|
|
5660
|
+
var JSCompiler_inline_result$jscomp$4 = (currentActiveSnapshot =
|
|
5661
|
+
prevSnapshot.parent);
|
|
5662
|
+
task.context = JSCompiler_inline_result$jscomp$4;
|
|
5663
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5340
5664
|
return;
|
|
5341
5665
|
case REACT_CONSUMER_TYPE:
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5666
|
+
var render = props.children,
|
|
5667
|
+
newChildren = render(type._context._currentValue),
|
|
5668
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
5345
5669
|
task.keyPath = keyPath;
|
|
5346
|
-
renderNodeDestructive(request, task,
|
|
5347
|
-
task.keyPath =
|
|
5670
|
+
renderNodeDestructive(request, task, newChildren, -1);
|
|
5671
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
5348
5672
|
return;
|
|
5349
5673
|
case REACT_LAZY_TYPE:
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
if (
|
|
5353
|
-
renderElement(request, task, keyPath,
|
|
5674
|
+
var init = type._init;
|
|
5675
|
+
var Component = init(type._payload);
|
|
5676
|
+
if (request.aborted) throw null;
|
|
5677
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
5354
5678
|
return;
|
|
5355
5679
|
}
|
|
5356
5680
|
throw Error(
|
|
@@ -5411,7 +5735,11 @@ function retryNode(request, task) {
|
|
|
5411
5735
|
var ref = void 0 !== node ? node : null,
|
|
5412
5736
|
name = getComponentNameFromType(type),
|
|
5413
5737
|
keyOrIndex =
|
|
5414
|
-
null == key
|
|
5738
|
+
null == key || key === REACT_OPTIMISTIC_KEY
|
|
5739
|
+
? -1 === childIndex
|
|
5740
|
+
? 0
|
|
5741
|
+
: childIndex
|
|
5742
|
+
: key;
|
|
5415
5743
|
key = [task.keyPath, name, keyOrIndex];
|
|
5416
5744
|
if (null !== task.replay)
|
|
5417
5745
|
a: {
|
|
@@ -5429,12 +5757,12 @@ function retryNode(request, task) {
|
|
|
5429
5757
|
name +
|
|
5430
5758
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5431
5759
|
);
|
|
5432
|
-
var childNodes = node$jscomp$0[2]
|
|
5433
|
-
|
|
5434
|
-
|
|
5760
|
+
var childNodes = node$jscomp$0[2],
|
|
5761
|
+
childSlots = node$jscomp$0[3],
|
|
5762
|
+
currentNode = task.node;
|
|
5435
5763
|
task.replay = {
|
|
5436
5764
|
nodes: childNodes,
|
|
5437
|
-
slots:
|
|
5765
|
+
slots: childSlots,
|
|
5438
5766
|
pendingTasks: 1
|
|
5439
5767
|
};
|
|
5440
5768
|
try {
|
|
@@ -5452,27 +5780,28 @@ function retryNode(request, task) {
|
|
|
5452
5780
|
"object" === typeof x &&
|
|
5453
5781
|
null !== x &&
|
|
5454
5782
|
(x === SuspenseException ||
|
|
5455
|
-
"function" === typeof x.then
|
|
5783
|
+
"function" === typeof x.then ||
|
|
5784
|
+
"Maximum call stack size exceeded" === x.message)
|
|
5456
5785
|
)
|
|
5457
5786
|
throw (
|
|
5458
|
-
(task.node ===
|
|
5787
|
+
(task.node === currentNode
|
|
5459
5788
|
? (task.replay = replay)
|
|
5460
5789
|
: childIndex.splice(node, 1),
|
|
5461
5790
|
x)
|
|
5462
5791
|
);
|
|
5463
5792
|
task.replay.pendingTasks--;
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5793
|
+
key = getThrownInfo(task.componentStack);
|
|
5794
|
+
currentNode = request;
|
|
5795
|
+
props = task.blockedBoundary;
|
|
5796
|
+
request = request.aborted ? request.fatalError : x;
|
|
5797
|
+
key = logRecoverableError(currentNode, request, key);
|
|
5469
5798
|
abortRemainingReplayNodes(
|
|
5470
|
-
|
|
5471
|
-
|
|
5799
|
+
currentNode,
|
|
5800
|
+
props,
|
|
5472
5801
|
childNodes,
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5802
|
+
childSlots,
|
|
5803
|
+
request,
|
|
5804
|
+
key
|
|
5476
5805
|
);
|
|
5477
5806
|
}
|
|
5478
5807
|
task.replay = replay;
|
|
@@ -5484,43 +5813,38 @@ function retryNode(request, task) {
|
|
|
5484
5813
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5485
5814
|
);
|
|
5486
5815
|
b: {
|
|
5487
|
-
replay =
|
|
5488
|
-
type = node$jscomp$0[
|
|
5489
|
-
ref = node$jscomp$0[
|
|
5490
|
-
name =
|
|
5491
|
-
keyOrIndex =
|
|
5816
|
+
replay = node$jscomp$0[5];
|
|
5817
|
+
type = node$jscomp$0[2];
|
|
5818
|
+
ref = node$jscomp$0[3];
|
|
5819
|
+
name =
|
|
5492
5820
|
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
5493
5821
|
node$jscomp$0 =
|
|
5494
5822
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
5495
|
-
|
|
5496
|
-
|
|
5823
|
+
keyOrIndex = task.keyPath;
|
|
5824
|
+
var prevContext = task.formatContext,
|
|
5497
5825
|
prevRow = task.row,
|
|
5498
5826
|
previousReplaySet = task.replay,
|
|
5499
5827
|
parentBoundary = task.blockedBoundary,
|
|
5500
5828
|
parentHoistableState = task.hoistableState,
|
|
5501
|
-
content = props.children
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
props.parentFlushed = !0;
|
|
5521
|
-
props.rootSegmentID = type;
|
|
5522
|
-
task.blockedBoundary = props;
|
|
5523
|
-
task.hoistableState = props.contentState;
|
|
5829
|
+
content = props.children;
|
|
5830
|
+
props = props.fallback;
|
|
5831
|
+
var fallbackAbortSet = new Set(),
|
|
5832
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5833
|
+
request,
|
|
5834
|
+
task.row,
|
|
5835
|
+
fallbackAbortSet,
|
|
5836
|
+
2 > task.formatContext.insertionMode
|
|
5837
|
+
? {
|
|
5838
|
+
content: createPreambleState(),
|
|
5839
|
+
fallback: createPreambleState()
|
|
5840
|
+
}
|
|
5841
|
+
: null,
|
|
5842
|
+
!1
|
|
5843
|
+
);
|
|
5844
|
+
resumedBoundary.parentFlushed = !0;
|
|
5845
|
+
resumedBoundary.rootSegmentID = replay;
|
|
5846
|
+
task.blockedBoundary = resumedBoundary;
|
|
5847
|
+
task.hoistableState = resumedBoundary.contentState;
|
|
5524
5848
|
task.keyPath = key;
|
|
5525
5849
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5526
5850
|
request.resumableState,
|
|
@@ -5528,8 +5852,8 @@ function retryNode(request, task) {
|
|
|
5528
5852
|
);
|
|
5529
5853
|
task.row = null;
|
|
5530
5854
|
task.replay = {
|
|
5531
|
-
nodes:
|
|
5532
|
-
slots:
|
|
5855
|
+
nodes: type,
|
|
5856
|
+
slots: ref,
|
|
5533
5857
|
pendingTasks: 1
|
|
5534
5858
|
};
|
|
5535
5859
|
try {
|
|
@@ -5542,42 +5866,46 @@ function retryNode(request, task) {
|
|
|
5542
5866
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5543
5867
|
);
|
|
5544
5868
|
task.replay.pendingTasks--;
|
|
5545
|
-
if (
|
|
5546
|
-
|
|
5547
|
-
|
|
5869
|
+
if (
|
|
5870
|
+
0 === resumedBoundary.pendingTasks &&
|
|
5871
|
+
0 === resumedBoundary.status
|
|
5872
|
+
) {
|
|
5873
|
+
resumedBoundary.status = 1;
|
|
5874
|
+
request.completedBoundaries.push(resumedBoundary);
|
|
5548
5875
|
break b;
|
|
5549
5876
|
}
|
|
5550
|
-
} catch (
|
|
5551
|
-
(
|
|
5552
|
-
(childNodes =
|
|
5553
|
-
|
|
5877
|
+
} catch (thrownValue) {
|
|
5878
|
+
(resumedBoundary.status = 4),
|
|
5879
|
+
(childNodes = request.aborted
|
|
5880
|
+
? request.fatalError
|
|
5881
|
+
: thrownValue),
|
|
5882
|
+
(childSlots = getThrownInfo(task.componentStack)),
|
|
5883
|
+
(currentNode = logRecoverableError(
|
|
5554
5884
|
request,
|
|
5555
|
-
|
|
5556
|
-
|
|
5885
|
+
childNodes,
|
|
5886
|
+
childSlots
|
|
5557
5887
|
)),
|
|
5558
|
-
(
|
|
5888
|
+
(resumedBoundary.errorDigest = currentNode),
|
|
5559
5889
|
task.replay.pendingTasks--,
|
|
5560
|
-
request.clientRenderedBoundaries.push(
|
|
5890
|
+
request.clientRenderedBoundaries.push(
|
|
5891
|
+
resumedBoundary
|
|
5892
|
+
);
|
|
5561
5893
|
} finally {
|
|
5562
5894
|
(task.blockedBoundary = parentBoundary),
|
|
5563
5895
|
(task.hoistableState = parentHoistableState),
|
|
5564
5896
|
(task.replay = previousReplaySet),
|
|
5565
|
-
(task.keyPath =
|
|
5897
|
+
(task.keyPath = keyOrIndex),
|
|
5566
5898
|
(task.formatContext = prevContext),
|
|
5567
5899
|
(task.row = prevRow);
|
|
5568
5900
|
}
|
|
5569
5901
|
childNodes = createReplayTask(
|
|
5570
5902
|
request,
|
|
5571
5903
|
null,
|
|
5572
|
-
{
|
|
5573
|
-
|
|
5574
|
-
slots: node$jscomp$0,
|
|
5575
|
-
pendingTasks: 0
|
|
5576
|
-
},
|
|
5577
|
-
fallback,
|
|
5904
|
+
{ nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
|
|
5905
|
+
props,
|
|
5578
5906
|
-1,
|
|
5579
5907
|
parentBoundary,
|
|
5580
|
-
|
|
5908
|
+
resumedBoundary.fallbackState,
|
|
5581
5909
|
fallbackAbortSet,
|
|
5582
5910
|
[key[0], "Suspense Fallback", key[2]],
|
|
5583
5911
|
getSuspenseFallbackFormatContext(
|
|
@@ -5609,7 +5937,7 @@ function retryNode(request, task) {
|
|
|
5609
5937
|
case REACT_LAZY_TYPE:
|
|
5610
5938
|
childNodes = node._init;
|
|
5611
5939
|
node = childNodes(node._payload);
|
|
5612
|
-
if (
|
|
5940
|
+
if (request.aborted) throw null;
|
|
5613
5941
|
renderNodeDestructive(request, task, node, childIndex);
|
|
5614
5942
|
return;
|
|
5615
5943
|
}
|
|
@@ -5621,10 +5949,10 @@ function retryNode(request, task) {
|
|
|
5621
5949
|
if ((childNodes = childNodes.call(node))) {
|
|
5622
5950
|
node = childNodes.next();
|
|
5623
5951
|
if (!node.done) {
|
|
5624
|
-
|
|
5625
|
-
do
|
|
5952
|
+
childSlots = [];
|
|
5953
|
+
do childSlots.push(node.value), (node = childNodes.next());
|
|
5626
5954
|
while (!node.done);
|
|
5627
|
-
renderChildrenArray(request, task,
|
|
5955
|
+
renderChildrenArray(request, task, childSlots, childIndex);
|
|
5628
5956
|
}
|
|
5629
5957
|
return;
|
|
5630
5958
|
}
|
|
@@ -5701,17 +6029,18 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5701
6029
|
)
|
|
5702
6030
|
throw x;
|
|
5703
6031
|
task.replay.pendingTasks--;
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
6032
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
6033
|
+
children = request;
|
|
6034
|
+
var boundary = task.blockedBoundary;
|
|
6035
|
+
request = request.aborted ? request.fatalError : x;
|
|
6036
|
+
thrownInfo = logRecoverableError(children, request, thrownInfo);
|
|
5708
6037
|
abortRemainingReplayNodes(
|
|
5709
|
-
|
|
6038
|
+
children,
|
|
5710
6039
|
boundary,
|
|
5711
6040
|
childIndex,
|
|
5712
6041
|
node,
|
|
5713
|
-
|
|
5714
|
-
|
|
6042
|
+
request,
|
|
6043
|
+
thrownInfo
|
|
5715
6044
|
);
|
|
5716
6045
|
}
|
|
5717
6046
|
task.replay = replay;
|
|
@@ -5750,13 +6079,18 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5750
6079
|
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
5751
6080
|
boundary.status = 5;
|
|
5752
6081
|
boundary.rootSegmentID = request.nextSegmentId++;
|
|
5753
|
-
|
|
6082
|
+
var tracked = boundary.tracked;
|
|
6083
|
+
if (null === tracked)
|
|
6084
|
+
throw Error(
|
|
6085
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
|
6086
|
+
);
|
|
6087
|
+
request = tracked.contentKeyPath;
|
|
5754
6088
|
if (null === request)
|
|
5755
6089
|
throw Error(
|
|
5756
6090
|
"It should not be possible to postpone at the root. This is a bug in React."
|
|
5757
6091
|
);
|
|
5758
|
-
|
|
5759
|
-
|
|
6092
|
+
tracked = tracked.fallbackNode;
|
|
6093
|
+
var children = [],
|
|
5760
6094
|
boundaryNode = trackedPostpones.workingMap.get(request);
|
|
5761
6095
|
if (void 0 === boundaryNode)
|
|
5762
6096
|
return (
|
|
@@ -5765,14 +6099,14 @@ function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
|
5765
6099
|
request[2],
|
|
5766
6100
|
children,
|
|
5767
6101
|
null,
|
|
5768
|
-
|
|
6102
|
+
tracked,
|
|
5769
6103
|
boundary.rootSegmentID
|
|
5770
6104
|
]),
|
|
5771
6105
|
trackedPostpones.workingMap.set(request, boundary),
|
|
5772
6106
|
addToReplayParent(boundary, request[0], trackedPostpones),
|
|
5773
6107
|
boundary
|
|
5774
6108
|
);
|
|
5775
|
-
boundaryNode[4] =
|
|
6109
|
+
boundaryNode[4] = tracked;
|
|
5776
6110
|
boundaryNode[5] = boundary.rootSegmentID;
|
|
5777
6111
|
return boundaryNode;
|
|
5778
6112
|
}
|
|
@@ -5793,7 +6127,8 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5793
6127
|
boundary
|
|
5794
6128
|
);
|
|
5795
6129
|
if (
|
|
5796
|
-
boundary.
|
|
6130
|
+
null !== boundary.tracked &&
|
|
6131
|
+
boundary.tracked.contentKeyPath === keyPath &&
|
|
5797
6132
|
-1 === task.childIndex
|
|
5798
6133
|
) {
|
|
5799
6134
|
-1 === segment.id &&
|
|
@@ -5849,11 +6184,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5849
6184
|
function untrackBoundary(request, boundary) {
|
|
5850
6185
|
request = request.trackedPostpones;
|
|
5851
6186
|
null !== request &&
|
|
5852
|
-
((boundary = boundary.
|
|
6187
|
+
((boundary = boundary.tracked),
|
|
5853
6188
|
null !== boundary &&
|
|
5854
|
-
((boundary =
|
|
5855
|
-
|
|
5856
|
-
((
|
|
6189
|
+
((boundary = boundary.contentKeyPath),
|
|
6190
|
+
null !== boundary &&
|
|
6191
|
+
((request = request.workingMap.get(boundary)),
|
|
6192
|
+
void 0 !== request &&
|
|
6193
|
+
((request.length = 4), (request[2] = []), (request[3] = null)))));
|
|
5857
6194
|
}
|
|
5858
6195
|
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
5859
6196
|
return createReplayTask(
|
|
@@ -5921,7 +6258,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5921
6258
|
thrownValue === SuspenseException
|
|
5922
6259
|
? getSuspendedThenable()
|
|
5923
6260
|
: thrownValue),
|
|
5924
|
-
|
|
6261
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5925
6262
|
) {
|
|
5926
6263
|
if ("function" === typeof node.then) {
|
|
5927
6264
|
childIndex =
|
|
@@ -5929,7 +6266,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5929
6266
|
? getThenableStateAfterSuspending()
|
|
5930
6267
|
: null;
|
|
5931
6268
|
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
5932
|
-
node.then(request, request);
|
|
6269
|
+
node.then(request.resolve, request.reject);
|
|
5933
6270
|
task.formatContext = previousFormatContext;
|
|
5934
6271
|
task.context = previousContext;
|
|
5935
6272
|
task.keyPath = previousKeyPath;
|
|
@@ -5962,25 +6299,25 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5962
6299
|
chunkLength = segment.chunks.length;
|
|
5963
6300
|
try {
|
|
5964
6301
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
5965
|
-
} catch (thrownValue$
|
|
6302
|
+
} catch (thrownValue$64) {
|
|
5966
6303
|
if (
|
|
5967
6304
|
(resetHooksState(),
|
|
5968
6305
|
(segment.children.length = childrenLength),
|
|
5969
6306
|
(segment.chunks.length = chunkLength),
|
|
5970
6307
|
(node =
|
|
5971
|
-
thrownValue$
|
|
6308
|
+
thrownValue$64 === SuspenseException
|
|
5972
6309
|
? getSuspendedThenable()
|
|
5973
|
-
: thrownValue$
|
|
5974
|
-
|
|
6310
|
+
: thrownValue$64),
|
|
6311
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5975
6312
|
) {
|
|
5976
6313
|
if ("function" === typeof node.then) {
|
|
5977
6314
|
segment = node;
|
|
5978
6315
|
node =
|
|
5979
|
-
thrownValue$
|
|
6316
|
+
thrownValue$64 === SuspenseException
|
|
5980
6317
|
? getThenableStateAfterSuspending()
|
|
5981
6318
|
: null;
|
|
5982
6319
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
5983
|
-
segment.then(request, request);
|
|
6320
|
+
segment.then(request.resolve, request.reject);
|
|
5984
6321
|
task.formatContext = previousFormatContext;
|
|
5985
6322
|
task.context = previousContext;
|
|
5986
6323
|
task.keyPath = previousKeyPath;
|
|
@@ -5991,7 +6328,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5991
6328
|
}
|
|
5992
6329
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
5993
6330
|
segment =
|
|
5994
|
-
thrownValue$
|
|
6331
|
+
thrownValue$64 === SuspenseException
|
|
5995
6332
|
? getThenableStateAfterSuspending()
|
|
5996
6333
|
: null;
|
|
5997
6334
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
@@ -6048,7 +6385,7 @@ function abortRemainingReplayNodes(
|
|
|
6048
6385
|
null,
|
|
6049
6386
|
new Set(),
|
|
6050
6387
|
null,
|
|
6051
|
-
|
|
6388
|
+
!1
|
|
6052
6389
|
);
|
|
6053
6390
|
resumedBoundary.parentFlushed = !0;
|
|
6054
6391
|
resumedBoundary.rootSegmentID = node;
|
|
@@ -6072,78 +6409,104 @@ function abortRemainingReplayNodes(
|
|
|
6072
6409
|
if ("object" === typeof slots) for (var index in slots) delete slots[index];
|
|
6073
6410
|
}
|
|
6074
6411
|
}
|
|
6075
|
-
function abortTask(task, request
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6412
|
+
function abortTask(task, request) {
|
|
6413
|
+
if (task !== request.currentTask) {
|
|
6414
|
+
var boundary = task.blockedBoundary;
|
|
6415
|
+
task = task.blockedSegment;
|
|
6416
|
+
null !== task && (task.status = 3);
|
|
6417
|
+
null !== boundary &&
|
|
6418
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6419
|
+
return abortTask(fallbackTask, request);
|
|
6420
|
+
});
|
|
6081
6421
|
}
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6422
|
+
}
|
|
6423
|
+
function finishAbortedTask(task, request, error) {
|
|
6424
|
+
if (task !== request.currentTask) {
|
|
6425
|
+
var boundary = task.blockedBoundary,
|
|
6426
|
+
segment = task.blockedSegment;
|
|
6427
|
+
if (null === segment || 3 === segment.status) {
|
|
6428
|
+
var errorInfo = getThrownInfo(task.componentStack),
|
|
6429
|
+
isRecoverableReason = isRecoverableError(error);
|
|
6086
6430
|
if (null === boundary) {
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6431
|
+
boundary = task.replay;
|
|
6432
|
+
if (null === boundary) {
|
|
6433
|
+
isRecoverableReason ||
|
|
6434
|
+
null === request.trackedPostpones ||
|
|
6435
|
+
null === segment
|
|
6436
|
+
? isRecoverableReason
|
|
6437
|
+
? ((task = cloneRecoverableErrorAsFatal(error)),
|
|
6438
|
+
logRecoverableError(request, task, errorInfo),
|
|
6439
|
+
12 !== request.status &&
|
|
6440
|
+
13 !== request.status &&
|
|
6441
|
+
fatalError(request, task))
|
|
6442
|
+
: (logRecoverableError(request, error, errorInfo),
|
|
6443
|
+
12 !== request.status &&
|
|
6444
|
+
13 !== request.status &&
|
|
6445
|
+
fatalError(request, error))
|
|
6446
|
+
: ((boundary = request.trackedPostpones),
|
|
6447
|
+
logRecoverableError(request, error, errorInfo),
|
|
6448
|
+
trackPostpone(request, boundary, task, segment),
|
|
6449
|
+
finishedTask(request, null, task.row, segment));
|
|
6450
|
+
return;
|
|
6451
|
+
}
|
|
6452
|
+
12 !== request.status &&
|
|
6453
|
+
13 !== request.status &&
|
|
6454
|
+
(boundary.pendingTasks--,
|
|
6455
|
+
0 === boundary.pendingTasks &&
|
|
6456
|
+
0 < boundary.nodes.length &&
|
|
6457
|
+
((errorInfo = logRecoverableError(request, error, errorInfo)),
|
|
6458
|
+
abortRemainingReplayNodes(
|
|
6459
|
+
request,
|
|
6460
|
+
null,
|
|
6461
|
+
boundary.nodes,
|
|
6462
|
+
boundary.slots,
|
|
6463
|
+
error,
|
|
6464
|
+
errorInfo
|
|
6465
|
+
)),
|
|
6466
|
+
request.pendingRootTasks--,
|
|
6467
|
+
0 === request.pendingRootTasks && completeShell(request));
|
|
6468
|
+
} else {
|
|
6469
|
+
var trackedPostpones$65 = request.trackedPostpones;
|
|
6470
|
+
if (4 !== boundary.status) {
|
|
6471
|
+
if (
|
|
6472
|
+
!isRecoverableReason &&
|
|
6473
|
+
null !== trackedPostpones$65 &&
|
|
6474
|
+
null !== segment
|
|
6475
|
+
)
|
|
6476
|
+
return (
|
|
6477
|
+
logRecoverableError(request, error, errorInfo),
|
|
6478
|
+
trackPostpone(request, trackedPostpones$65, task, segment),
|
|
6479
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6480
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6481
|
+
}),
|
|
6482
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
6483
|
+
finishedTask(request, boundary, task.row, segment)
|
|
6484
|
+
);
|
|
6485
|
+
boundary.status = 4;
|
|
6486
|
+
errorInfo = logRecoverableError(request, error, errorInfo);
|
|
6487
|
+
boundary.errorDigest = errorInfo;
|
|
6488
|
+
untrackBoundary(request, boundary);
|
|
6489
|
+
boundary.parentFlushed &&
|
|
6490
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
6491
|
+
}
|
|
6492
|
+
boundary.pendingTasks--;
|
|
6493
|
+
errorInfo = boundary.row;
|
|
6494
|
+
null !== errorInfo &&
|
|
6495
|
+
0 === --errorInfo.pendingTasks &&
|
|
6496
|
+
finishSuspenseListRow(request, errorInfo);
|
|
6497
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6498
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6499
|
+
});
|
|
6500
|
+
boundary.fallbackAbortableTasks.clear();
|
|
6095
6501
|
}
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
0
|
|
6099
|
-
(
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
null,
|
|
6103
|
-
boundary.nodes,
|
|
6104
|
-
boundary.slots,
|
|
6105
|
-
error,
|
|
6106
|
-
segment
|
|
6107
|
-
));
|
|
6108
|
-
request.pendingRootTasks--;
|
|
6109
|
-
0 === request.pendingRootTasks && completeShell(request);
|
|
6110
|
-
}
|
|
6111
|
-
} else {
|
|
6112
|
-
var trackedPostpones$64 = request.trackedPostpones;
|
|
6113
|
-
if (4 !== boundary.status) {
|
|
6114
|
-
if (null !== trackedPostpones$64 && null !== segment)
|
|
6115
|
-
return (
|
|
6116
|
-
logRecoverableError(request, error, errorInfo),
|
|
6117
|
-
trackPostpone(request, trackedPostpones$64, task, segment),
|
|
6118
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6119
|
-
return abortTask(fallbackTask, request, error);
|
|
6120
|
-
}),
|
|
6121
|
-
boundary.fallbackAbortableTasks.clear(),
|
|
6122
|
-
finishedTask(request, boundary, task.row, segment)
|
|
6123
|
-
);
|
|
6124
|
-
boundary.status = 4;
|
|
6125
|
-
segment = logRecoverableError(request, error, errorInfo);
|
|
6126
|
-
boundary.status = 4;
|
|
6127
|
-
boundary.errorDigest = segment;
|
|
6128
|
-
untrackBoundary(request, boundary);
|
|
6129
|
-
boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
|
|
6502
|
+
task = task.row;
|
|
6503
|
+
null !== task &&
|
|
6504
|
+
0 === --task.pendingTasks &&
|
|
6505
|
+
finishSuspenseListRow(request, task);
|
|
6506
|
+
request.allPendingTasks--;
|
|
6507
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6130
6508
|
}
|
|
6131
|
-
boundary.pendingTasks--;
|
|
6132
|
-
segment = boundary.row;
|
|
6133
|
-
null !== segment &&
|
|
6134
|
-
0 === --segment.pendingTasks &&
|
|
6135
|
-
finishSuspenseListRow(request, segment);
|
|
6136
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6137
|
-
return abortTask(fallbackTask, request, error);
|
|
6138
|
-
});
|
|
6139
|
-
boundary.fallbackAbortableTasks.clear();
|
|
6140
6509
|
}
|
|
6141
|
-
task = task.row;
|
|
6142
|
-
null !== task &&
|
|
6143
|
-
0 === --task.pendingTasks &&
|
|
6144
|
-
finishSuspenseListRow(request, task);
|
|
6145
|
-
request.allPendingTasks--;
|
|
6146
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6147
6510
|
}
|
|
6148
6511
|
function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
6149
6512
|
try {
|
|
@@ -6209,7 +6572,6 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
6209
6572
|
function completeShell(request) {
|
|
6210
6573
|
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
6211
6574
|
null === request.trackedPostpones && preparePreamble(request);
|
|
6212
|
-
request.onShellError = noop;
|
|
6213
6575
|
request = request.onShellReady;
|
|
6214
6576
|
request();
|
|
6215
6577
|
}
|
|
@@ -6282,14 +6644,16 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6282
6644
|
null !== row &&
|
|
6283
6645
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
6284
6646
|
isEligibleForOutlining(request, boundary) ||
|
|
6285
|
-
(
|
|
6647
|
+
(request.allPendingTasks++,
|
|
6648
|
+
boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
|
|
6286
6649
|
boundary.fallbackAbortableTasks.clear(),
|
|
6287
6650
|
null !== row &&
|
|
6288
6651
|
0 === --row.pendingTasks &&
|
|
6289
|
-
finishSuspenseListRow(request, row)
|
|
6652
|
+
finishSuspenseListRow(request, row),
|
|
6653
|
+
request.allPendingTasks--),
|
|
6290
6654
|
0 === request.pendingRootTasks &&
|
|
6291
6655
|
null === request.trackedPostpones &&
|
|
6292
|
-
null !== boundary.
|
|
6656
|
+
null !== boundary.preamble &&
|
|
6293
6657
|
preparePreamble(request);
|
|
6294
6658
|
else {
|
|
6295
6659
|
if (
|
|
@@ -6313,8 +6677,10 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6313
6677
|
finishedTask(request, postponedBoundary, null, null);
|
|
6314
6678
|
}
|
|
6315
6679
|
}
|
|
6680
|
+
request.allPendingTasks++;
|
|
6316
6681
|
0 === --boundary.pendingTasks &&
|
|
6317
6682
|
finishSuspenseListRow(request, boundary);
|
|
6683
|
+
request.allPendingTasks--;
|
|
6318
6684
|
}
|
|
6319
6685
|
}
|
|
6320
6686
|
else
|
|
@@ -6331,209 +6697,257 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6331
6697
|
tryToResolveTogetherRow(request, boundary);
|
|
6332
6698
|
0 === request.allPendingTasks && completeAll(request);
|
|
6333
6699
|
}
|
|
6334
|
-
function performWork(request$jscomp$
|
|
6335
|
-
if (
|
|
6700
|
+
function performWork(request$jscomp$1) {
|
|
6701
|
+
if (!(request$jscomp$1.aborted || 11 < request$jscomp$1.status)) {
|
|
6336
6702
|
var prevContext = currentActiveSnapshot,
|
|
6337
6703
|
prevDispatcher = ReactSharedInternals.H;
|
|
6338
6704
|
ReactSharedInternals.H = HooksDispatcher;
|
|
6339
6705
|
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
6340
6706
|
ReactSharedInternals.A = DefaultAsyncDispatcher;
|
|
6341
6707
|
var prevRequest = currentRequest;
|
|
6342
|
-
currentRequest = request$jscomp$
|
|
6708
|
+
currentRequest = request$jscomp$1;
|
|
6343
6709
|
var prevResumableState = currentResumableState;
|
|
6344
|
-
currentResumableState = request$jscomp$
|
|
6710
|
+
currentResumableState = request$jscomp$1.resumableState;
|
|
6345
6711
|
try {
|
|
6346
|
-
var pingedTasks = request$jscomp$
|
|
6712
|
+
var pingedTasks = request$jscomp$1.pingedTasks,
|
|
6347
6713
|
i;
|
|
6348
6714
|
for (i = 0; i < pingedTasks.length; i++) {
|
|
6349
6715
|
var task = pingedTasks[i],
|
|
6350
|
-
request = request$jscomp$
|
|
6716
|
+
request = request$jscomp$1,
|
|
6351
6717
|
segment = task.blockedSegment;
|
|
6352
|
-
if (null === segment)
|
|
6353
|
-
|
|
6354
|
-
|
|
6718
|
+
if (null === segment)
|
|
6719
|
+
a: {
|
|
6720
|
+
if (0 !== task.replay.pendingTasks) {
|
|
6721
|
+
var prevTask = request.currentTask;
|
|
6722
|
+
request.currentTask = task;
|
|
6723
|
+
switchContext(task.context);
|
|
6724
|
+
var startNode = task.node;
|
|
6725
|
+
try {
|
|
6726
|
+
"number" === typeof task.replay.slots
|
|
6727
|
+
? resumeNode(
|
|
6728
|
+
request,
|
|
6729
|
+
task,
|
|
6730
|
+
task.replay.slots,
|
|
6731
|
+
task.node,
|
|
6732
|
+
task.childIndex
|
|
6733
|
+
)
|
|
6734
|
+
: retryNode(request, task);
|
|
6735
|
+
if (
|
|
6736
|
+
1 === task.replay.pendingTasks &&
|
|
6737
|
+
0 < task.replay.nodes.length
|
|
6738
|
+
)
|
|
6739
|
+
throw Error(
|
|
6740
|
+
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
6741
|
+
);
|
|
6742
|
+
task.replay.pendingTasks--;
|
|
6743
|
+
task.abortSet.delete(task);
|
|
6744
|
+
finishedTask(request, task.blockedBoundary, task.row, null);
|
|
6745
|
+
} catch (thrownValue) {
|
|
6746
|
+
resetHooksState();
|
|
6747
|
+
var x =
|
|
6748
|
+
thrownValue === SuspenseException
|
|
6749
|
+
? getSuspendedThenable()
|
|
6750
|
+
: thrownValue;
|
|
6751
|
+
if (request.aborted) {
|
|
6752
|
+
thrownValue === SuspenseException &&
|
|
6753
|
+
(task.thenableState = getThenableStateAfterSuspending());
|
|
6754
|
+
request.currentTask = prevTask;
|
|
6755
|
+
var request$jscomp$0 = request;
|
|
6756
|
+
abortTask(task, request$jscomp$0);
|
|
6757
|
+
task.abortSet.delete(task);
|
|
6758
|
+
finishAbortedTask(
|
|
6759
|
+
task,
|
|
6760
|
+
request$jscomp$0,
|
|
6761
|
+
request$jscomp$0.fatalError
|
|
6762
|
+
);
|
|
6763
|
+
} else {
|
|
6764
|
+
if ("object" === typeof x && null !== x) {
|
|
6765
|
+
if ("function" === typeof x.then) {
|
|
6766
|
+
var ping = task.ping;
|
|
6767
|
+
x.then(ping.resolve, ping.reject);
|
|
6768
|
+
task.thenableState =
|
|
6769
|
+
thrownValue === SuspenseException
|
|
6770
|
+
? getThenableStateAfterSuspending()
|
|
6771
|
+
: null;
|
|
6772
|
+
break a;
|
|
6773
|
+
}
|
|
6774
|
+
if (
|
|
6775
|
+
"Maximum call stack size exceeded" === x.message &&
|
|
6776
|
+
task.node !== startNode
|
|
6777
|
+
) {
|
|
6778
|
+
task.thenableState = null;
|
|
6779
|
+
request.pingedTasks.push(task);
|
|
6780
|
+
break a;
|
|
6781
|
+
}
|
|
6782
|
+
}
|
|
6783
|
+
task.replay.pendingTasks--;
|
|
6784
|
+
task.abortSet.delete(task);
|
|
6785
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
6786
|
+
request$jscomp$0 = request;
|
|
6787
|
+
var boundary = task.blockedBoundary,
|
|
6788
|
+
error$jscomp$0 = request.aborted ? request.fatalError : x,
|
|
6789
|
+
replayNodes = task.replay.nodes,
|
|
6790
|
+
resumeSlots = task.replay.slots,
|
|
6791
|
+
errorDigest = logRecoverableError(
|
|
6792
|
+
request$jscomp$0,
|
|
6793
|
+
error$jscomp$0,
|
|
6794
|
+
errorInfo
|
|
6795
|
+
);
|
|
6796
|
+
abortRemainingReplayNodes(
|
|
6797
|
+
request$jscomp$0,
|
|
6798
|
+
boundary,
|
|
6799
|
+
replayNodes,
|
|
6800
|
+
resumeSlots,
|
|
6801
|
+
error$jscomp$0,
|
|
6802
|
+
errorDigest
|
|
6803
|
+
);
|
|
6804
|
+
request.pendingRootTasks--;
|
|
6805
|
+
0 === request.pendingRootTasks && completeShell(request);
|
|
6806
|
+
request.allPendingTasks--;
|
|
6807
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6808
|
+
}
|
|
6809
|
+
} finally {
|
|
6810
|
+
request.currentTask = prevTask;
|
|
6811
|
+
}
|
|
6812
|
+
}
|
|
6813
|
+
}
|
|
6814
|
+
else
|
|
6815
|
+
a: if (
|
|
6816
|
+
((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
|
|
6817
|
+
) {
|
|
6818
|
+
var prevTask$jscomp$0 = request.currentTask;
|
|
6819
|
+
request.currentTask = task;
|
|
6355
6820
|
switchContext(task.context);
|
|
6821
|
+
var childrenLength = request$jscomp$0.children.length,
|
|
6822
|
+
chunkLength = request$jscomp$0.chunks.length,
|
|
6823
|
+
startNode$jscomp$0 = task.node;
|
|
6356
6824
|
try {
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6825
|
+
retryNode(request, task),
|
|
6826
|
+
request$jscomp$0.lastPushedText &&
|
|
6827
|
+
request$jscomp$0.textEmbedded &&
|
|
6828
|
+
request$jscomp$0.chunks.push(textSeparator),
|
|
6829
|
+
task.abortSet.delete(task),
|
|
6830
|
+
(request$jscomp$0.status = 1),
|
|
6831
|
+
finishedSegment(
|
|
6832
|
+
request,
|
|
6833
|
+
task.blockedBoundary,
|
|
6834
|
+
request$jscomp$0
|
|
6835
|
+
),
|
|
6836
|
+
finishedTask(
|
|
6837
|
+
request,
|
|
6838
|
+
task.blockedBoundary,
|
|
6839
|
+
task.row,
|
|
6840
|
+
request$jscomp$0
|
|
6372
6841
|
);
|
|
6373
|
-
task.replay.pendingTasks--;
|
|
6374
|
-
task.abortSet.delete(task);
|
|
6375
|
-
finishedTask(
|
|
6376
|
-
request$jscomp$0,
|
|
6377
|
-
task.blockedBoundary,
|
|
6378
|
-
task.row,
|
|
6379
|
-
null
|
|
6380
|
-
);
|
|
6381
6842
|
} catch (thrownValue) {
|
|
6382
6843
|
resetHooksState();
|
|
6383
|
-
|
|
6844
|
+
request$jscomp$0.children.length = childrenLength;
|
|
6845
|
+
request$jscomp$0.chunks.length = chunkLength;
|
|
6846
|
+
var x$jscomp$0 =
|
|
6384
6847
|
thrownValue === SuspenseException
|
|
6385
6848
|
? getSuspendedThenable()
|
|
6386
6849
|
: thrownValue;
|
|
6387
|
-
if (
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6850
|
+
if (request.aborted)
|
|
6851
|
+
thrownValue === SuspenseException &&
|
|
6852
|
+
(task.thenableState = getThenableStateAfterSuspending()),
|
|
6853
|
+
(request.currentTask = prevTask$jscomp$0),
|
|
6854
|
+
(request$jscomp$0 = request),
|
|
6855
|
+
abortTask(task, request$jscomp$0),
|
|
6856
|
+
task.abortSet.delete(task),
|
|
6857
|
+
finishAbortedTask(
|
|
6858
|
+
task,
|
|
6859
|
+
request$jscomp$0,
|
|
6860
|
+
request$jscomp$0.fatalError
|
|
6861
|
+
);
|
|
6862
|
+
else {
|
|
6863
|
+
if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
|
|
6864
|
+
if ("function" === typeof x$jscomp$0.then) {
|
|
6865
|
+
request$jscomp$0.status = 0;
|
|
6866
|
+
task.thenableState =
|
|
6867
|
+
thrownValue === SuspenseException
|
|
6868
|
+
? getThenableStateAfterSuspending()
|
|
6869
|
+
: null;
|
|
6870
|
+
var ping$jscomp$0 = task.ping;
|
|
6871
|
+
x$jscomp$0.then(
|
|
6872
|
+
ping$jscomp$0.resolve,
|
|
6873
|
+
ping$jscomp$0.reject
|
|
6874
|
+
);
|
|
6875
|
+
break a;
|
|
6876
|
+
}
|
|
6877
|
+
if (
|
|
6878
|
+
"Maximum call stack size exceeded" === x$jscomp$0.message &&
|
|
6879
|
+
task.node !== startNode$jscomp$0
|
|
6880
|
+
) {
|
|
6881
|
+
request$jscomp$0.status = 0;
|
|
6882
|
+
task.thenableState = null;
|
|
6883
|
+
request.pingedTasks.push(task);
|
|
6884
|
+
break a;
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6400
6888
|
task.abortSet.delete(task);
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6889
|
+
request$jscomp$0.status = 4;
|
|
6890
|
+
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6891
|
+
row = task.row;
|
|
6892
|
+
null !== row &&
|
|
6893
|
+
0 === --row.pendingTasks &&
|
|
6894
|
+
finishSuspenseListRow(request, row);
|
|
6895
|
+
request.allPendingTasks--;
|
|
6896
|
+
if (null === boundary$jscomp$0)
|
|
6897
|
+
if (isRecoverableError(x$jscomp$0)) {
|
|
6898
|
+
var fatalRecoverableError =
|
|
6899
|
+
cloneRecoverableErrorAsFatal(x$jscomp$0);
|
|
6900
|
+
logRecoverableError(
|
|
6901
|
+
request,
|
|
6902
|
+
fatalRecoverableError,
|
|
6903
|
+
errorInfo$jscomp$0
|
|
6904
|
+
);
|
|
6905
|
+
fatalError(request, fatalRecoverableError);
|
|
6906
|
+
} else
|
|
6907
|
+
logRecoverableError(
|
|
6908
|
+
request,
|
|
6909
|
+
x$jscomp$0,
|
|
6910
|
+
errorInfo$jscomp$0
|
|
6911
|
+
),
|
|
6912
|
+
fatalError(request, x$jscomp$0);
|
|
6913
|
+
else {
|
|
6914
|
+
var errorDigest$jscomp$0 = logRecoverableError(
|
|
6915
|
+
request,
|
|
6916
|
+
x$jscomp$0,
|
|
6917
|
+
errorInfo$jscomp$0
|
|
6918
|
+
);
|
|
6919
|
+
boundary$jscomp$0.pendingTasks--;
|
|
6920
|
+
if (4 !== boundary$jscomp$0.status) {
|
|
6921
|
+
boundary$jscomp$0.status = 4;
|
|
6922
|
+
boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
|
|
6923
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
6924
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
6925
|
+
null !== boundaryRow &&
|
|
6926
|
+
(request.allPendingTasks++,
|
|
6927
|
+
0 === --boundaryRow.pendingTasks &&
|
|
6928
|
+
finishSuspenseListRow(request, boundaryRow),
|
|
6929
|
+
request.allPendingTasks--);
|
|
6930
|
+
boundary$jscomp$0.parentFlushed &&
|
|
6931
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6932
|
+
0 === request.pendingRootTasks &&
|
|
6933
|
+
null === request.trackedPostpones &&
|
|
6934
|
+
null !== boundary$jscomp$0.preamble &&
|
|
6935
|
+
preparePreamble(request);
|
|
6936
|
+
}
|
|
6937
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6938
|
+
}
|
|
6430
6939
|
}
|
|
6431
6940
|
} finally {
|
|
6941
|
+
request.currentTask = prevTask$jscomp$0;
|
|
6432
6942
|
}
|
|
6433
6943
|
}
|
|
6434
|
-
} else if (
|
|
6435
|
-
((request$jscomp$0 = void 0),
|
|
6436
|
-
(request$jscomp$1 = segment),
|
|
6437
|
-
0 === request$jscomp$1.status)
|
|
6438
|
-
) {
|
|
6439
|
-
request$jscomp$1.status = 6;
|
|
6440
|
-
switchContext(task.context);
|
|
6441
|
-
var childrenLength = request$jscomp$1.children.length,
|
|
6442
|
-
chunkLength = request$jscomp$1.chunks.length;
|
|
6443
|
-
try {
|
|
6444
|
-
retryNode(request, task),
|
|
6445
|
-
request$jscomp$1.lastPushedText &&
|
|
6446
|
-
request$jscomp$1.textEmbedded &&
|
|
6447
|
-
request$jscomp$1.chunks.push(textSeparator),
|
|
6448
|
-
task.abortSet.delete(task),
|
|
6449
|
-
(request$jscomp$1.status = 1),
|
|
6450
|
-
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
|
6451
|
-
finishedTask(
|
|
6452
|
-
request,
|
|
6453
|
-
task.blockedBoundary,
|
|
6454
|
-
task.row,
|
|
6455
|
-
request$jscomp$1
|
|
6456
|
-
);
|
|
6457
|
-
} catch (thrownValue) {
|
|
6458
|
-
resetHooksState();
|
|
6459
|
-
request$jscomp$1.children.length = childrenLength;
|
|
6460
|
-
request$jscomp$1.chunks.length = chunkLength;
|
|
6461
|
-
var x$jscomp$0 =
|
|
6462
|
-
thrownValue === SuspenseException
|
|
6463
|
-
? getSuspendedThenable()
|
|
6464
|
-
: 12 === request.status
|
|
6465
|
-
? request.fatalError
|
|
6466
|
-
: thrownValue;
|
|
6467
|
-
if (12 === request.status && null !== request.trackedPostpones) {
|
|
6468
|
-
var trackedPostpones = request.trackedPostpones,
|
|
6469
|
-
thrownInfo = getThrownInfo(task.componentStack);
|
|
6470
|
-
task.abortSet.delete(task);
|
|
6471
|
-
logRecoverableError(request, x$jscomp$0, thrownInfo);
|
|
6472
|
-
trackPostpone(request, trackedPostpones, task, request$jscomp$1);
|
|
6473
|
-
finishedTask(
|
|
6474
|
-
request,
|
|
6475
|
-
task.blockedBoundary,
|
|
6476
|
-
task.row,
|
|
6477
|
-
request$jscomp$1
|
|
6478
|
-
);
|
|
6479
|
-
} else if (
|
|
6480
|
-
"object" === typeof x$jscomp$0 &&
|
|
6481
|
-
null !== x$jscomp$0 &&
|
|
6482
|
-
"function" === typeof x$jscomp$0.then
|
|
6483
|
-
) {
|
|
6484
|
-
request$jscomp$1.status = 0;
|
|
6485
|
-
task.thenableState =
|
|
6486
|
-
thrownValue === SuspenseException
|
|
6487
|
-
? getThenableStateAfterSuspending()
|
|
6488
|
-
: null;
|
|
6489
|
-
var ping$jscomp$0 = task.ping;
|
|
6490
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6491
|
-
} else {
|
|
6492
|
-
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6493
|
-
task.abortSet.delete(task);
|
|
6494
|
-
request$jscomp$1.status = 4;
|
|
6495
|
-
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6496
|
-
row = task.row;
|
|
6497
|
-
null !== row &&
|
|
6498
|
-
0 === --row.pendingTasks &&
|
|
6499
|
-
finishSuspenseListRow(request, row);
|
|
6500
|
-
request.allPendingTasks--;
|
|
6501
|
-
request$jscomp$0 = logRecoverableError(
|
|
6502
|
-
request,
|
|
6503
|
-
x$jscomp$0,
|
|
6504
|
-
errorInfo$jscomp$0
|
|
6505
|
-
);
|
|
6506
|
-
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
|
6507
|
-
else if (
|
|
6508
|
-
(boundary$jscomp$0.pendingTasks--,
|
|
6509
|
-
4 !== boundary$jscomp$0.status)
|
|
6510
|
-
) {
|
|
6511
|
-
boundary$jscomp$0.status = 4;
|
|
6512
|
-
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
|
6513
|
-
untrackBoundary(request, boundary$jscomp$0);
|
|
6514
|
-
var boundaryRow = boundary$jscomp$0.row;
|
|
6515
|
-
null !== boundaryRow &&
|
|
6516
|
-
0 === --boundaryRow.pendingTasks &&
|
|
6517
|
-
finishSuspenseListRow(request, boundaryRow);
|
|
6518
|
-
boundary$jscomp$0.parentFlushed &&
|
|
6519
|
-
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6520
|
-
0 === request.pendingRootTasks &&
|
|
6521
|
-
null === request.trackedPostpones &&
|
|
6522
|
-
null !== boundary$jscomp$0.contentPreamble &&
|
|
6523
|
-
preparePreamble(request);
|
|
6524
|
-
}
|
|
6525
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6526
|
-
}
|
|
6527
|
-
} finally {
|
|
6528
|
-
}
|
|
6529
|
-
}
|
|
6530
6944
|
}
|
|
6531
6945
|
pingedTasks.splice(0, i);
|
|
6532
|
-
null !== request$jscomp$
|
|
6533
|
-
flushCompletedQueues(request$jscomp$
|
|
6946
|
+
null !== request$jscomp$1.destination &&
|
|
6947
|
+
flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
|
|
6534
6948
|
} catch (error) {
|
|
6535
|
-
logRecoverableError(request$jscomp$
|
|
6536
|
-
fatalError(request$jscomp$
|
|
6949
|
+
logRecoverableError(request$jscomp$1, error, {}),
|
|
6950
|
+
fatalError(request$jscomp$1, error);
|
|
6537
6951
|
} finally {
|
|
6538
6952
|
(currentResumableState = prevResumableState),
|
|
6539
6953
|
(ReactSharedInternals.H = prevDispatcher),
|
|
@@ -6571,12 +6985,11 @@ function preparePreambleFromSegment(
|
|
|
6571
6985
|
segment,
|
|
6572
6986
|
collectedPreambleSegments
|
|
6573
6987
|
);
|
|
6574
|
-
var preamble = boundary.
|
|
6575
|
-
|
|
6576
|
-
if (null === preamble || null === fallbackPreamble) return !1;
|
|
6988
|
+
var preamble = boundary.preamble;
|
|
6989
|
+
if (null === preamble) return !1;
|
|
6577
6990
|
switch (boundary.status) {
|
|
6578
6991
|
case 1:
|
|
6579
|
-
hoistPreambleState(request.renderState, preamble);
|
|
6992
|
+
hoistPreambleState(request.renderState, preamble.content);
|
|
6580
6993
|
request.byteSize += boundary.byteSize;
|
|
6581
6994
|
segment = boundary.completedSegments[0];
|
|
6582
6995
|
if (!segment)
|
|
@@ -6593,7 +7006,7 @@ function preparePreambleFromSegment(
|
|
|
6593
7006
|
case 4:
|
|
6594
7007
|
if (1 === segment.status)
|
|
6595
7008
|
return (
|
|
6596
|
-
hoistPreambleState(request.renderState,
|
|
7009
|
+
hoistPreambleState(request.renderState, preamble.fallback),
|
|
6597
7010
|
preparePreambleFromSubtree(
|
|
6598
7011
|
request,
|
|
6599
7012
|
segment,
|
|
@@ -6668,6 +7081,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6668
7081
|
var boundary = segment.boundary;
|
|
6669
7082
|
if (null === boundary)
|
|
6670
7083
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
7084
|
+
segment.boundary = null;
|
|
6671
7085
|
boundary.parentFlushed = !0;
|
|
6672
7086
|
if (4 === boundary.status) {
|
|
6673
7087
|
var row = boundary.row;
|
|
@@ -6677,7 +7091,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6677
7091
|
boundary = boundary.errorDigest;
|
|
6678
7092
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
6679
7093
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
6680
|
-
boundary &&
|
|
7094
|
+
null != boundary &&
|
|
6681
7095
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
6682
7096
|
writeChunk(destination, stringToChunk(escapeTextForBrowser(boundary))),
|
|
6683
7097
|
writeChunk(
|
|
@@ -6701,7 +7115,8 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6701
7115
|
!flushingPartialBoundaries &&
|
|
6702
7116
|
isEligibleForOutlining(request, boundary) &&
|
|
6703
7117
|
(flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
|
|
6704
|
-
hasSuspenseyContent(boundary.contentState)
|
|
7118
|
+
hasSuspenseyContent(boundary.contentState, flushingShell) ||
|
|
7119
|
+
boundary.defer)
|
|
6705
7120
|
)
|
|
6706
7121
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
6707
7122
|
request.completedBoundaries.push(boundary),
|
|
@@ -6767,7 +7182,8 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6767
7182
|
request = request.renderState;
|
|
6768
7183
|
i = boundary.rootSegmentID;
|
|
6769
7184
|
boundary = boundary.contentState;
|
|
6770
|
-
var requiresStyleInsertion = request.stylesToHoist
|
|
7185
|
+
var requiresStyleInsertion = request.stylesToHoist,
|
|
7186
|
+
requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
|
|
6771
7187
|
request.stylesToHoist = !1;
|
|
6772
7188
|
writeChunk(destination, request.startInlineScript);
|
|
6773
7189
|
writeChunk(destination, endOfStartTag);
|
|
@@ -6778,6 +7194,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6778
7194
|
0 === (completedSegments.instructions & 2) &&
|
|
6779
7195
|
((completedSegments.instructions |= 2),
|
|
6780
7196
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7197
|
+
requiresViewTransitions &&
|
|
7198
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7199
|
+
((completedSegments.instructions |= 256),
|
|
7200
|
+
writeChunk(
|
|
7201
|
+
destination,
|
|
7202
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
7203
|
+
)),
|
|
6781
7204
|
0 === (completedSegments.instructions & 8)
|
|
6782
7205
|
? ((completedSegments.instructions |= 8),
|
|
6783
7206
|
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
|
@@ -6785,6 +7208,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6785
7208
|
: (0 === (completedSegments.instructions & 2) &&
|
|
6786
7209
|
((completedSegments.instructions |= 2),
|
|
6787
7210
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7211
|
+
requiresViewTransitions &&
|
|
7212
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7213
|
+
((completedSegments.instructions |= 256),
|
|
7214
|
+
writeChunk(
|
|
7215
|
+
destination,
|
|
7216
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
7217
|
+
)),
|
|
6788
7218
|
writeChunk(destination, completeBoundaryScript1Partial));
|
|
6789
7219
|
completedSegments = stringToChunk(i.toString(16));
|
|
6790
7220
|
writeChunk(destination, request.boundaryPrefix);
|
|
@@ -6835,9 +7265,10 @@ function flushPartiallyCompletedSegment(
|
|
|
6835
7265
|
destination = writeChunkAndReturn(destination, completeSegmentScriptEnd);
|
|
6836
7266
|
return destination;
|
|
6837
7267
|
}
|
|
6838
|
-
var flushingPartialBoundaries = !1
|
|
7268
|
+
var flushingPartialBoundaries = !1,
|
|
7269
|
+
flushingShell = !1;
|
|
6839
7270
|
function flushCompletedQueues(request, destination) {
|
|
6840
|
-
currentView = new Uint8Array(
|
|
7271
|
+
currentView = new Uint8Array(4096);
|
|
6841
7272
|
writtenBytes = 0;
|
|
6842
7273
|
try {
|
|
6843
7274
|
if (!(0 < request.pendingRootTasks)) {
|
|
@@ -6917,7 +7348,9 @@ function flushCompletedQueues(request, destination) {
|
|
|
6917
7348
|
completedPreambleSegments++
|
|
6918
7349
|
)
|
|
6919
7350
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
7351
|
+
flushingShell = !0;
|
|
6920
7352
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7353
|
+
flushingShell = !1;
|
|
6921
7354
|
request.completedRootSegment = null;
|
|
6922
7355
|
var renderState$jscomp$0 = request.renderState;
|
|
6923
7356
|
if (
|
|
@@ -7001,17 +7434,17 @@ function flushCompletedQueues(request, destination) {
|
|
|
7001
7434
|
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
|
7002
7435
|
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
|
7003
7436
|
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
7004
|
-
errorDigest &&
|
|
7437
|
+
null != errorDigest &&
|
|
7005
7438
|
(writeChunk(
|
|
7006
7439
|
renderState$jscomp$1,
|
|
7007
7440
|
clientRenderErrorScriptArgInterstitial
|
|
7008
7441
|
),
|
|
7009
|
-
|
|
7010
|
-
renderState$jscomp$1,
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7442
|
+
null == errorDigest
|
|
7443
|
+
? writeChunk(renderState$jscomp$1, clientRenderErrorScriptNull)
|
|
7444
|
+
: writeChunk(
|
|
7445
|
+
renderState$jscomp$1,
|
|
7446
|
+
stringToChunk(escapeJSStringsForInstructionScripts(errorDigest))
|
|
7447
|
+
));
|
|
7015
7448
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
|
7016
7449
|
renderState$jscomp$1,
|
|
7017
7450
|
clientRenderScriptEnd
|
|
@@ -7036,17 +7469,17 @@ function flushCompletedQueues(request, destination) {
|
|
|
7036
7469
|
}
|
|
7037
7470
|
completedBoundaries.splice(0, i);
|
|
7038
7471
|
completeWriting(destination);
|
|
7039
|
-
currentView = new Uint8Array(
|
|
7472
|
+
currentView = new Uint8Array(4096);
|
|
7040
7473
|
writtenBytes = 0;
|
|
7041
7474
|
flushingPartialBoundaries = !0;
|
|
7042
7475
|
var partialBoundaries = request.partialBoundaries;
|
|
7043
7476
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
7044
|
-
var boundary$
|
|
7477
|
+
var boundary$71 = partialBoundaries[i];
|
|
7045
7478
|
a: {
|
|
7046
7479
|
clientRenderedBoundaries = request;
|
|
7047
7480
|
boundary = destination;
|
|
7048
|
-
flushedByteSize = boundary$
|
|
7049
|
-
var completedSegments = boundary$
|
|
7481
|
+
flushedByteSize = boundary$71.byteSize;
|
|
7482
|
+
var completedSegments = boundary$71.completedSegments;
|
|
7050
7483
|
for (
|
|
7051
7484
|
JSCompiler_inline_result = 0;
|
|
7052
7485
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -7056,7 +7489,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
7056
7489
|
!flushPartiallyCompletedSegment(
|
|
7057
7490
|
clientRenderedBoundaries,
|
|
7058
7491
|
boundary,
|
|
7059
|
-
boundary$
|
|
7492
|
+
boundary$71,
|
|
7060
7493
|
completedSegments[JSCompiler_inline_result]
|
|
7061
7494
|
)
|
|
7062
7495
|
) {
|
|
@@ -7066,10 +7499,10 @@ function flushCompletedQueues(request, destination) {
|
|
|
7066
7499
|
break a;
|
|
7067
7500
|
}
|
|
7068
7501
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
7069
|
-
var row = boundary$
|
|
7502
|
+
var row = boundary$71.row;
|
|
7070
7503
|
null !== row &&
|
|
7071
7504
|
row.together &&
|
|
7072
|
-
1 === boundary$
|
|
7505
|
+
1 === boundary$71.pendingTasks &&
|
|
7073
7506
|
(1 === row.pendingTasks
|
|
7074
7507
|
? unblockSuspenseListRow(
|
|
7075
7508
|
clientRenderedBoundaries,
|
|
@@ -7079,7 +7512,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
7079
7512
|
: row.pendingTasks--);
|
|
7080
7513
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
7081
7514
|
boundary,
|
|
7082
|
-
boundary$
|
|
7515
|
+
boundary$71.contentState,
|
|
7083
7516
|
clientRenderedBoundaries.renderState
|
|
7084
7517
|
);
|
|
7085
7518
|
}
|
|
@@ -7104,6 +7537,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7104
7537
|
}
|
|
7105
7538
|
} finally {
|
|
7106
7539
|
(flushingPartialBoundaries = !1),
|
|
7540
|
+
(i = request.postponedState),
|
|
7541
|
+
null !== i && (i.nextSegmentId = request.nextSegmentId),
|
|
7107
7542
|
0 === request.allPendingTasks &&
|
|
7108
7543
|
0 === request.clientRenderedBoundaries.length &&
|
|
7109
7544
|
0 === request.completedBoundaries.length
|
|
@@ -7112,7 +7547,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7112
7547
|
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
7113
7548
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
7114
7549
|
completeWriting(destination),
|
|
7115
|
-
(request
|
|
7550
|
+
endRenderLifetime(request),
|
|
7551
|
+
(request.status = 13),
|
|
7116
7552
|
destination.close(),
|
|
7117
7553
|
(request.destination = null))
|
|
7118
7554
|
: completeWriting(destination);
|
|
@@ -7155,40 +7591,79 @@ function enqueueFlush(request) {
|
|
|
7155
7591
|
}, 0));
|
|
7156
7592
|
}
|
|
7157
7593
|
function startFlowing(request, destination) {
|
|
7158
|
-
if (
|
|
7159
|
-
(request.status =
|
|
7160
|
-
|
|
7594
|
+
if (12 === request.status)
|
|
7595
|
+
(request.status = 13),
|
|
7596
|
+
(request = request.fatalError),
|
|
7597
|
+
isRecoverableError(request) &&
|
|
7598
|
+
(request = cloneRecoverableErrorAsFatal(request)),
|
|
7599
|
+
closeWithError(destination, request);
|
|
7600
|
+
else if (13 !== request.status && null === request.destination) {
|
|
7161
7601
|
request.destination = destination;
|
|
7162
7602
|
try {
|
|
7163
7603
|
flushCompletedQueues(request, destination);
|
|
7164
|
-
} catch (error) {
|
|
7165
|
-
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
7604
|
+
} catch (error$73) {
|
|
7605
|
+
logRecoverableError(request, error$73, {}), fatalError(request, error$73);
|
|
7166
7606
|
}
|
|
7167
7607
|
}
|
|
7168
7608
|
}
|
|
7169
|
-
function
|
|
7170
|
-
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
7609
|
+
function finishAbort(request, abortableTasks) {
|
|
7171
7610
|
try {
|
|
7172
|
-
var abortableTasks = request.abortableTasks;
|
|
7173
7611
|
if (0 < abortableTasks.size) {
|
|
7174
|
-
var error =
|
|
7175
|
-
void 0 === reason
|
|
7176
|
-
? Error("The render was aborted by the server without a reason.")
|
|
7177
|
-
: "object" === typeof reason &&
|
|
7178
|
-
null !== reason &&
|
|
7179
|
-
"function" === typeof reason.then
|
|
7180
|
-
? Error("The render was aborted by the server with a promise.")
|
|
7181
|
-
: reason;
|
|
7182
|
-
request.fatalError = error;
|
|
7612
|
+
var error = request.fatalError;
|
|
7183
7613
|
abortableTasks.forEach(function (task) {
|
|
7184
|
-
return
|
|
7614
|
+
return finishAbortedTask(task, request, error);
|
|
7185
7615
|
});
|
|
7186
7616
|
abortableTasks.clear();
|
|
7187
7617
|
}
|
|
7188
7618
|
null !== request.destination &&
|
|
7189
7619
|
flushCompletedQueues(request, request.destination);
|
|
7190
|
-
} catch (error$
|
|
7191
|
-
logRecoverableError(request, error$
|
|
7620
|
+
} catch (error$74) {
|
|
7621
|
+
logRecoverableError(request, error$74, {}), fatalError(request, error$74);
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
function endRenderLifetime(request) {
|
|
7625
|
+
request = request.renderLifetimeController;
|
|
7626
|
+
null !== request && request.abort("The render ended.");
|
|
7627
|
+
}
|
|
7628
|
+
function attachAbortSignal(request, signal) {
|
|
7629
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
7630
|
+
else {
|
|
7631
|
+
var renderLifetimeController = new AbortController();
|
|
7632
|
+
request.renderLifetimeController = renderLifetimeController;
|
|
7633
|
+
signal.addEventListener(
|
|
7634
|
+
"abort",
|
|
7635
|
+
function () {
|
|
7636
|
+
abort(request, signal.reason);
|
|
7637
|
+
},
|
|
7638
|
+
{ signal: renderLifetimeController.signal }
|
|
7639
|
+
);
|
|
7640
|
+
}
|
|
7641
|
+
}
|
|
7642
|
+
function abort(request, reason) {
|
|
7643
|
+
if (!(request.aborted || (11 !== request.status && 10 !== request.status))) {
|
|
7644
|
+
endRenderLifetime(request);
|
|
7645
|
+
var isRecoverableReason =
|
|
7646
|
+
"object" === typeof reason &&
|
|
7647
|
+
null !== reason &&
|
|
7648
|
+
reason.$$typeof === REACT_RECOVERABLE_TYPE;
|
|
7649
|
+
request.aborted = !0;
|
|
7650
|
+
reason = isRecoverableReason
|
|
7651
|
+
? createRecoverableError(reason)
|
|
7652
|
+
: void 0 === reason
|
|
7653
|
+
? Error("The render was aborted by the server without a reason.")
|
|
7654
|
+
: "object" === typeof reason &&
|
|
7655
|
+
null !== reason &&
|
|
7656
|
+
"function" === typeof reason.then
|
|
7657
|
+
? Error("The render was aborted by the server with a promise.")
|
|
7658
|
+
: reason;
|
|
7659
|
+
request.fatalError = reason;
|
|
7660
|
+
var abortableTasks = request.abortableTasks;
|
|
7661
|
+
abortableTasks.forEach(function (task) {
|
|
7662
|
+
return abortTask(task, request);
|
|
7663
|
+
});
|
|
7664
|
+
setTimeout(function () {
|
|
7665
|
+
return finishAbort(request, abortableTasks);
|
|
7666
|
+
}, 0);
|
|
7192
7667
|
}
|
|
7193
7668
|
}
|
|
7194
7669
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -7211,11 +7686,11 @@ function getPostponedState(request) {
|
|
|
7211
7686
|
null === trackedPostpones.rootSlots)
|
|
7212
7687
|
)
|
|
7213
7688
|
return (request.trackedPostpones = null);
|
|
7214
|
-
|
|
7689
|
+
var hasFlushableShell =
|
|
7215
7690
|
null === request.completedRootSegment ||
|
|
7216
7691
|
(5 !== request.completedRootSegment.status &&
|
|
7217
|
-
null !== request.completedPreambleSegments)
|
|
7218
|
-
) {
|
|
7692
|
+
null !== request.completedPreambleSegments);
|
|
7693
|
+
if (hasFlushableShell) {
|
|
7219
7694
|
var nextSegmentId = request.nextSegmentId;
|
|
7220
7695
|
var replaySlots = trackedPostpones.rootSlots;
|
|
7221
7696
|
var resumableState = request.resumableState;
|
|
@@ -7240,7 +7715,7 @@ function getPostponedState(request) {
|
|
|
7240
7715
|
resumableState.moduleScriptResources = {};
|
|
7241
7716
|
resumableState.instructions = 0;
|
|
7242
7717
|
}
|
|
7243
|
-
|
|
7718
|
+
trackedPostpones = {
|
|
7244
7719
|
nextSegmentId: nextSegmentId,
|
|
7245
7720
|
rootFormatContext: request.rootFormatContext,
|
|
7246
7721
|
progressiveChunkSize: request.progressiveChunkSize,
|
|
@@ -7248,14 +7723,16 @@ function getPostponedState(request) {
|
|
|
7248
7723
|
replayNodes: trackedPostpones.rootNodes,
|
|
7249
7724
|
replaySlots: replaySlots
|
|
7250
7725
|
};
|
|
7726
|
+
hasFlushableShell && (request.postponedState = trackedPostpones);
|
|
7727
|
+
return trackedPostpones;
|
|
7251
7728
|
}
|
|
7252
7729
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7253
7730
|
var isomorphicReactPackageVersion = React.version;
|
|
7254
|
-
if ("19.
|
|
7731
|
+
if ("19.3.0" !== isomorphicReactPackageVersion)
|
|
7255
7732
|
throw Error(
|
|
7256
7733
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7257
7734
|
(isomorphicReactPackageVersion +
|
|
7258
|
-
"\n - react-dom: 19.
|
|
7735
|
+
"\n - react-dom: 19.3.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7259
7736
|
);
|
|
7260
7737
|
}
|
|
7261
7738
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7289,6 +7766,7 @@ exports.prerender = function (children, options) {
|
|
|
7289
7766
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7290
7767
|
options ? options.progressiveChunkSize : void 0,
|
|
7291
7768
|
options ? options.onError : void 0,
|
|
7769
|
+
options ? options.onBrowserBailout : void 0,
|
|
7292
7770
|
function () {
|
|
7293
7771
|
var stream = new ReadableStream(
|
|
7294
7772
|
{
|
|
@@ -7308,20 +7786,9 @@ exports.prerender = function (children, options) {
|
|
|
7308
7786
|
},
|
|
7309
7787
|
void 0,
|
|
7310
7788
|
void 0,
|
|
7311
|
-
reject
|
|
7312
|
-
options ? options.onPostpone : void 0
|
|
7789
|
+
reject
|
|
7313
7790
|
);
|
|
7314
|
-
|
|
7315
|
-
var signal = options.signal;
|
|
7316
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7317
|
-
else {
|
|
7318
|
-
var listener = function () {
|
|
7319
|
-
abort(request, signal.reason);
|
|
7320
|
-
signal.removeEventListener("abort", listener);
|
|
7321
|
-
};
|
|
7322
|
-
signal.addEventListener("abort", listener);
|
|
7323
|
-
}
|
|
7324
|
-
}
|
|
7791
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7325
7792
|
startWork(request);
|
|
7326
7793
|
});
|
|
7327
7794
|
};
|
|
@@ -7360,6 +7827,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7360
7827
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7361
7828
|
options ? options.progressiveChunkSize : void 0,
|
|
7362
7829
|
options ? options.onError : void 0,
|
|
7830
|
+
options ? options.onBrowserBailout : void 0,
|
|
7363
7831
|
onAllReady,
|
|
7364
7832
|
function () {
|
|
7365
7833
|
var stream = new ReadableStream(
|
|
@@ -7383,20 +7851,9 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7383
7851
|
reject(error);
|
|
7384
7852
|
},
|
|
7385
7853
|
onFatalError,
|
|
7386
|
-
options ? options.onPostpone : void 0,
|
|
7387
7854
|
options ? options.formState : void 0
|
|
7388
7855
|
);
|
|
7389
|
-
|
|
7390
|
-
var signal = options.signal;
|
|
7391
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7392
|
-
else {
|
|
7393
|
-
var listener = function () {
|
|
7394
|
-
abort(request, signal.reason);
|
|
7395
|
-
signal.removeEventListener("abort", listener);
|
|
7396
|
-
};
|
|
7397
|
-
signal.addEventListener("abort", listener);
|
|
7398
|
-
}
|
|
7399
|
-
}
|
|
7856
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7400
7857
|
startWork(request);
|
|
7401
7858
|
});
|
|
7402
7859
|
};
|
|
@@ -7420,6 +7877,7 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7420
7877
|
void 0
|
|
7421
7878
|
),
|
|
7422
7879
|
options ? options.onError : void 0,
|
|
7880
|
+
options ? options.onBrowserBailout : void 0,
|
|
7423
7881
|
onAllReady,
|
|
7424
7882
|
function () {
|
|
7425
7883
|
var stream = new ReadableStream(
|
|
@@ -7442,20 +7900,9 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7442
7900
|
allReady.catch(function () {});
|
|
7443
7901
|
reject(error);
|
|
7444
7902
|
},
|
|
7445
|
-
onFatalError
|
|
7446
|
-
options ? options.onPostpone : void 0
|
|
7903
|
+
onFatalError
|
|
7447
7904
|
);
|
|
7448
|
-
|
|
7449
|
-
var signal = options.signal;
|
|
7450
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7451
|
-
else {
|
|
7452
|
-
var listener = function () {
|
|
7453
|
-
abort(request, signal.reason);
|
|
7454
|
-
signal.removeEventListener("abort", listener);
|
|
7455
|
-
};
|
|
7456
|
-
signal.addEventListener("abort", listener);
|
|
7457
|
-
}
|
|
7458
|
-
}
|
|
7905
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7459
7906
|
startWork(request);
|
|
7460
7907
|
});
|
|
7461
7908
|
};
|
|
@@ -7473,6 +7920,7 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7473
7920
|
void 0
|
|
7474
7921
|
),
|
|
7475
7922
|
options ? options.onError : void 0,
|
|
7923
|
+
options ? options.onBrowserBailout : void 0,
|
|
7476
7924
|
function () {
|
|
7477
7925
|
var stream = new ReadableStream(
|
|
7478
7926
|
{
|
|
@@ -7492,21 +7940,10 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7492
7940
|
},
|
|
7493
7941
|
void 0,
|
|
7494
7942
|
void 0,
|
|
7495
|
-
reject
|
|
7496
|
-
options ? options.onPostpone : void 0
|
|
7943
|
+
reject
|
|
7497
7944
|
);
|
|
7498
|
-
|
|
7499
|
-
var signal = options.signal;
|
|
7500
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7501
|
-
else {
|
|
7502
|
-
var listener = function () {
|
|
7503
|
-
abort(request, signal.reason);
|
|
7504
|
-
signal.removeEventListener("abort", listener);
|
|
7505
|
-
};
|
|
7506
|
-
signal.addEventListener("abort", listener);
|
|
7507
|
-
}
|
|
7508
|
-
}
|
|
7945
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7509
7946
|
startWork(request);
|
|
7510
7947
|
});
|
|
7511
7948
|
};
|
|
7512
|
-
exports.version = "19.
|
|
7949
|
+
exports.version = "19.3.0";
|