maxsimcli 1.2.2 → 1.3.0
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/dist/.tsbuildinfo +1 -1
- package/dist/assets/CHANGELOG.md +26 -0
- package/dist/assets/dashboard/node_modules/@img/colour/color.cjs +1594 -0
- package/dist/assets/dashboard/node_modules/@img/colour/index.cjs +1 -0
- package/dist/assets/dashboard/node_modules/@img/colour/package.json +45 -0
- package/dist/assets/dashboard/node_modules/@next/env/dist/index.js +1 -0
- package/dist/assets/dashboard/node_modules/@next/env/package.json +36 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/dist/assets/dashboard/node_modules/@swc/helpers/package.json +471 -0
- package/dist/assets/dashboard/node_modules/buffer-from/index.js +72 -0
- package/dist/assets/dashboard/node_modules/buffer-from/package.json +19 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/agents.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/browserVersions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/browsers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/aac.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/apng.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/array-find.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/audio.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/av1.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/avif.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/beacon.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/bigint.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/border-image.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/brotli.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/calc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/canvas.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/classlist.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/colr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/console-time.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/const.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/cors.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-all.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-has.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-if.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-table.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/customevent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/customizable-select.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/datalist.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dataset.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/datauri.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/decorators.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/details.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dialog.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/download.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/eme.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/eot.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es5.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/es6.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/fetch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/filereader.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/flac.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/fontface.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/forms.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/heif.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/hevc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/hidden.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/history.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/http2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/http3.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ime.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/imports.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/innertext.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-color.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-event.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-number.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-range.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-search.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/json.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/let.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mathml.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/menu.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/meter.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/midi.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mp3.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/notifications.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/object-values.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ogv.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/online-status.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/opus.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/outline.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/passkeys.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/path2d.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/picture.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ping.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pointer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/portals.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/progress.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/promises.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/proximity.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/proxy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/push-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rellist.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rem.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ruby.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/run-in.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/script-async.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sdch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sni.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/spdy.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/srcset.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/stream.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/streams.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/svg.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/sxg.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/template.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/temporal.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/touch.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/ttf.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/u2f.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/url.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/vibration.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/video.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/view-transitions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wasm.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wav.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/web-share.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webcodecs.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webgl.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webhid.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webm.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webp.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/websockets.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webtransport.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webusb.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webvr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/webxr.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/will-change.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/woff.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/woff2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/word-break.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features/zstd.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/data/features.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/feature.js +52 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
- package/dist/assets/dashboard/node_modules/caniuse-lite/package.json +34 -0
- package/dist/assets/dashboard/node_modules/client-only/index.js +0 -0
- package/dist/assets/dashboard/node_modules/client-only/package.json +19 -0
- package/dist/assets/dashboard/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/dist/assets/dashboard/node_modules/detect-libc/lib/elf.js +39 -0
- package/dist/assets/dashboard/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/dist/assets/dashboard/node_modules/detect-libc/lib/process.js +24 -0
- package/dist/assets/dashboard/node_modules/detect-libc/package.json +44 -0
- package/dist/assets/dashboard/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/dist/assets/dashboard/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/assets/dashboard/node_modules/nanoid/package.json +89 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/analysis/extract-const-value.js +205 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/analysis/get-page-static-info.js +487 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/analysis/parse-module.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/loader/get-config.js +390 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/loader/index.js +56 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/loader/transform.js +103 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/loader/util.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/plugins/next-page-config.js +144 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +345 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/build-context.js +58 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/create-compiler-aliases.js +434 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/define-env.js +229 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/deployment-id.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/entries.js +856 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/get-babel-config-file.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/get-babel-loader-config.js +106 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/handle-externals.js +290 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/load-entrypoint.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/load-jsconfig.js +161 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/next-config-ts/transpile-config.js +108 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/next-dir-paths.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/normalize-catchall-routes.js +76 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/output/format.js +84 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/output/index.js +285 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/output/log.js +126 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/output/store.js +218 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/polyfills/process.js +5 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/segment-config/app/app-segment-config.js +97 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/segment-config/app/app-segments.js +160 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +68 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/static-paths/app.js +642 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/static-paths/pages.js +169 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/static-paths/utils.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/swc/index.js +1200 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/swc/options.js +391 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/utils.js +1445 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/cache-invalidation.js +91 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/base.js +86 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/index.js +576 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +85 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +190 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/index.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/config/utils.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +93 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +289 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +107 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +223 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +327 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +91 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +461 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +424 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +94 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +56 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +211 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +59 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +141 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +126 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +89 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +104 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +190 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +94 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +99 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/app-build-manifest-plugin.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +259 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +191 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +777 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +420 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +611 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +191 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/next-drop-client-page-plugin.js +85 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +542 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +591 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +57 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +190 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +166 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack/utils.js +109 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack-config-rules/resolve.js +56 -0
- package/dist/assets/dashboard/node_modules/next/dist/build/webpack-config.js +2279 -0
- package/dist/assets/dashboard/node_modules/next/dist/cli/next-test.js +170 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/add-base-path.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/add-locale.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/app-build-id.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/app-call-server.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/app-find-source-map-url.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/assign-location.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/app-router-announcer.js +80 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/app-router-headers.js +113 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/app-router-instance.js +344 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/app-router.js +542 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/bailout-to-client-rendering.js +47 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/builtin/default.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/builtin/global-error.js +83 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/builtin/global-not-found.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/error-boundary.js +135 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +87 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/errors/root-error-boundary.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/forbidden.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/handle-isr-error.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +126 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/http-access-fallback/error-fallback.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/links.js +343 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/match-segments.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/navigation-untracked.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/navigation.js +186 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/navigation.react-server.js +90 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/noop-head.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/not-found.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/promise-queue.js +91 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/redirect-boundary.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/redirect-error.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/redirect.js +94 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/aliased-prefetch-navigations.js +206 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +105 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/clear-cache-node-data-for-segment-path.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +131 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +117 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +33 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +302 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +111 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +148 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js +60 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +821 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/prefetch-cache-utils.js +308 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +98 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +390 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js +57 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +111 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +288 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +105 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/router-reducer.js +71 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/cache-key.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/cache.js +1478 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/lru.js +121 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/navigation.js +355 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/prefetch.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/scheduler.js +944 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache-impl/tuple-map.js +153 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/segment-cache.js +181 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/styles/access-error-styles.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unauthorized.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/components/use-action-queue.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/detect-domain-locale.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +471 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/app/use-websocket.js +134 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/get-socket-url.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js +428 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js +108 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/shared.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/hot-reloader/turbopack-hot-reloader-common.js +157 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/report-hmr-latency.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/dev/runtime-error-handler.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/flight-data-helpers.js +127 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/has-base-path.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/lib/console.js +177 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/react-client-callbacks/report-global-error.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/remove-base-path.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/remove-locale.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/request-idle-callback.js +44 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/resolve-href.js +106 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/route-loader.js +348 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/route-params.js +176 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/router.js +199 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/script.js +347 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/set-attributes-from-props.js +68 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/trusted-types.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/client/with-router.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/constants.js +10 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/fontkit/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/format-available-values.js +9 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/fetch-css-from-google-fonts.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/fetch-font-file.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/fetch-resource.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/find-font-files-in-css.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +17669 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/get-fallback-font-override-metrics.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/get-font-axes.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/get-google-fonts-url.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/get-proxy-agent.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/google-fonts-metadata.js +8 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/loader.js +175 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/retry.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/sort-fonts-variant-values.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/google/validate-google-font-function-call.js +101 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/local/get-fallback-metrics-from-font-file.js +85 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/local/loader.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/local/pick-font-file-for-fallback-generation.js +85 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/local/validate-local-font-function-call.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/dist/next-font-error.js +11 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/google/loader.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/local/loader.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/font/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/ReactRefreshWebpackPlugin.js +130 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/ReactRefreshModule.runtime.js +69 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js +170 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/loader.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@vercel/nft/LICENSE +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@vercel/nft/index.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/@vercel/nft/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/acorn/acorn.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/acorn/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/amphtml-validator/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/amphtml-validator/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/amphtml-validator/validator_wasm.js +2672 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/assert/assert.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/assert/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/async-retry/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/async-retry/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/async-sema/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/async-sema/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/bundle.js +227 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core-lib-block-hoist-plugin.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core-lib-config.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core-lib-normalize-file.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core-lib-normalize-opts.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core-lib-plugin-pass.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/core.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/generator.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/parser.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/plugin-syntax-jsx.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/plugin-transform-define.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/plugin-transform-modules-commonjs.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/preset-typescript.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/traverse.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel/types.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel-code-frame/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel-code-frame/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel-packages/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +335 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/browserify-zlib/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/browserify-zlib/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/browserslist/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/browserslist/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/buffer/index.js +9 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/buffer/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/busboy/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/busboy/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/bytes/index.js +8 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/bytes/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ci-info/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ci-info/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/commander/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/commander/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/comment-json/index.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/comment-json/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/compression/index.js +58 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/compression/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/conf/index.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/conf/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/constants-browserify/constants.json +209 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/constants-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/cookie/index.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/cookie/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/crypto-browserify/index.js +3 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/crypto-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/cssnano-simple/index.js +320 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/data-uri-to-buffer/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/data-uri-to-buffer/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/debug/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/debug/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/devalue/devalue.umd.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/devalue/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/domain-browser/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/domain-browser/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/events/events.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/events/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/find-up/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/find-up/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/fresh/index.js +8 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/fresh/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/glob/glob.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/glob/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/gzip-size/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/gzip-size/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/http-proxy/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/http-proxy-agent/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/http-proxy-agent/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/https-browserify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/https-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/https-proxy-agent/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/https-proxy-agent/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/icss-utils/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/icss-utils/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ignore-loader/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ignore-loader/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/image-size/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/image-size/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-animated/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-animated/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-docker/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-docker/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jest-worker/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jest-worker/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jest-worker/processChild.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jest-worker/threadChild.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/json5/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/json5/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/loader-utils2/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/loader-utils2/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/loader-utils3/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/loader-utils3/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/lodash.curry/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/lodash.curry/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/lru-cache/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/lru-cache/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/mini-css-extract-plugin/cjs.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/mini-css-extract-plugin/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/mini-css-extract-plugin/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/nanoid/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/native-url/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/native-url/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/neo-async/async.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/neo-async/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-devtools/index.js +1642 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +6 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/os-browserify/browser.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/os-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/p-limit/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/p-limit/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/p-queue/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/p-queue/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/picomatch/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/picomatch/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-flexbugs-fixes/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-flexbugs-fixes/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-extract-imports/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-extract-imports/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-local-by-default/index.js +2 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-local-by-default/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-scope/index.js +2 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-scope/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-values/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-modules-values/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-plugin-stub-for-cssnano-simple/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-preset-env/index.cjs +94 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-preset-env/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-scss/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-value-parser/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/postcss-value-parser/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/process/browser.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/process/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/punycode/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/punycode/punycode.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/querystring-es3/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/querystring-es3/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +132 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +129 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-is/index.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-is/package.json +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/babel.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-babel.development.js +842 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-babel.production.min.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js +658 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.production.min.js +10 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/package.json +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/react-refresh/runtime.js +7 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/safe-stable-stringify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/safe-stable-stringify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/sass-loader/cjs.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/sass-loader/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/schema-utils3/index.js +3 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/schema-utils3/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/semver/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/semver/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/send/index.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/send/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/setimmediate/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/setimmediate/setImmediate.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/shell-quote/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/shell-quote/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/source-map/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/source-map08/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/source-map08/source-map.js +3002 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stream-browserify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stream-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stream-http/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/stream-http/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/string-hash/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/string-hash/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/string_decoder/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/string_decoder/string_decoder.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/superstruct/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/tar/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/tar/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/text-table/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/text-table/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/timers-browserify/main.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/timers-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/tty-browserify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/tty-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/unistore/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/unistore/unistore.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/util/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/util/util.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/vm-browserify/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/vm-browserify/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/watchpack/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/webpack-sources3/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/webpack-sources3/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ws/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/ws/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/zod/index.cjs +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/zod/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/experimental/testmode/context.js +57 -0
- package/dist/assets/dashboard/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
- package/dist/assets/dashboard/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/experimental/testmode/server.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
- package/dist/assets/dashboard/node_modules/next/dist/export/helpers/get-amp-html-validator.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/export/utils.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/batcher.js +59 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/build-custom-route.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/client-and-server-references.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/coalesced-function.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/compile-error.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/constants.js +395 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/detached-promise.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/detect-typo.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/download-swc.js +183 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/fallback.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/fatal-error.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/file-exists.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/find-config.js +102 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/find-pages-dir.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/find-root.js +111 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/format-server-error.js +74 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/fs/rename.js +86 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +71 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/get-network-host.js +44 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/get-project-dir.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/has-necessary-dependencies.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/helpers/get-online.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/helpers/install.js +83 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/install-dependencies.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/interop-default.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-api-route.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-app-page-route.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-app-route-route.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-error.js +72 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-internal-component.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/is-serializable-props.js +106 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/load-custom-routes.js +545 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/metadata/get-metadata-route.js +114 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/metadata/is-metadata-route.js +151 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/multi-file-writer.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/non-nullable.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/normalize-path.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/page-types.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/pick.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/picocolors.js +177 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/pretty-bytes.js +74 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/realpath.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/recursive-delete.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/recursive-readdir.js +124 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/redirect-status.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/resolve-from.js +65 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/route-pattern-normalizer.js +104 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/scheduler.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/semver-noop.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/server-external-packages.json +74 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/static-env.js +88 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/try-to-parse-path.js +68 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/turbopack-warning.js +197 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +240 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/runTypeCheck.js +95 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +334 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/url.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/verify-partytown-setup.js +114 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/verify-typescript-setup.js +166 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/wait.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/lib/with-promise-cache.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/dev-indicator-middleware.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/devtools-config-middleware.js +83 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/font/get-dev-overlay-font-middleware.js +72 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/get-next-error-feedback-middleware.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/launch-editor.js +469 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/middleware-response.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/restart-dev-server-middleware.js +79 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/server/shared.js +63 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/console-error.js +47 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/deepmerge.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/devtools-config-schema.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js +59 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js +68 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js +95 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +47 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +74 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/errors/replay-ssr-only-errors.js +73 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/errors/use-error-handler.js +143 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/errors/use-forward-console-log.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +417 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +160 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/app/terminal-logging-config.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/pages/hydration-error-state.js +164 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-error-boundary.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.js +122 -0
- package/dist/assets/dashboard/node_modules/next/dist/next-devtools/userspace/use-app-dev-rendering-indicator.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/pages/_app.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/pages/_document.js +834 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/accept-header.js +132 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/after/after-context.js +138 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/after/awaiter.js +74 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/after/run-with-after.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/api-utils/index.js +201 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/action-handler.js +903 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/action-utils.js +90 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +228 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/app-render-render-utils.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/app-render.js +2953 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/async-local-storage.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/cache-signal.js +152 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/create-component-tree.js +806 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/create-error-handler.js +220 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +76 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/csrf-protection.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/dynamic-rendering.js +676 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/encryption-utils.js +198 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/flight-render-result.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-layer-assets.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-segment-param.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/interop-default.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +91 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/parse-loader-tree.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/postponed-state.js +151 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/prospective-render-utils.js +56 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/render-css-resource.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/segment-explorer-path.js +103 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/server-inserted-html.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/types.js +75 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/use-flight-response.js +164 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +194 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +239 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/async-storage/request-store.js +144 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/async-storage/work-store.js +93 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/base-http/helpers.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/base-http/index.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/base-http/node.js +147 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/base-server.js +1816 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/body-streams.js +113 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/cache-dir.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/ci-info.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/config-schema.js +659 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/config-shared.js +235 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/config-utils.js +187 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/config.js +1397 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/crypto-utils.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +462 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/browser-logs/source-map.js +225 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/hot-middleware.js +225 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +999 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/hot-reloader-types.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1290 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/log-requests.js +113 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/messages.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/middleware-turbopack.js +393 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/middleware-webpack.js +473 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/next-dev-server.js +730 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/on-demand-entry-handler.js +690 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/require-cache.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/static-paths-worker.js +90 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dev/turbopack-utils.js +696 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/dynamic-rendering-utils.js +82 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/font-utils.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/htmlescape.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/image-optimizer.js +1036 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/instrumentation/utils.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/internal-utils.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/app-info-log.js +129 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/cache-control.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/cache-handlers/default.external.js +117 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/clone-response.js +77 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/cpu-profile.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/dedupe-fetch.js +156 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/dev-bundler-service.js +84 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/etag.js +56 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/experimental/ppr.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/find-page-file.js +127 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/format-hostname.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/implicit-tags.js +71 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +315 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/incremental-cache/index.js +418 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/lazy-result.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/lru-cache.js +190 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/mock-request.js +416 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/parse-stack.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/patch-fetch.js +894 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/render-server.js +125 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-server.js +648 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +76 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/filesystem.js +572 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +602 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +283 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +895 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/router-utils/typegen.js +612 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/server-ipc/utils.js +80 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/source-maps.js +198 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/start-server.js +447 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/to-route.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/trace/constants.js +202 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/trace/tracer.js +265 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/trace/utils.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/lib/utils.js +254 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/load-components.js +159 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/load-default-error-components.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/load-manifest.external.js +97 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/match-bundle.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/next-server.js +1470 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/next-typescript.js +13 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/next.js +419 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-baseline.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/console-dev.js +181 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/utils.js +127 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-environment.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/optimize-amp.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/patch-error-inspect.js +419 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/pipe-readable.js +140 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/post-process.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/render-result.js +195 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/render.js +1169 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/request-meta.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/require-hook.js +71 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/require.js +103 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/response-cache/index.js +307 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/response-cache/types.js +41 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/response-cache/utils.js +103 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/resume-data-cache/cache-store.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +96 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/revalidation-utils.js +88 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-kind.js +32 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +123 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +90 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +108 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/module.js +131 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +92 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/checks.js +45 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/pages-handler.js +520 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +107 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/route-modules/route-module.js +512 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/send-payload.js +88 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/send-response.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/serve-static.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/server-route-utils.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/server-utils.js +351 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/stream-utils/encoded-tags.js +114 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +642 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +69 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/constant.js +97 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/index.js +199 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/config.js +476 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/error.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/rules/server.js +79 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/typescript/utils.js +212 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/use-cache/handlers.js +125 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/utils.js +87 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/adapter.js +383 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/error.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/globals.js +128 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/http.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/next-url.js +195 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/sandbox/context.js +457 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/sandbox/index.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/sandbox/sandbox.js +134 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +210 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/utils.js +151 -0
- package/dist/assets/dashboard/node_modules/next/dist/server/web/web-on-close.js +87 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/amp-mode.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/bloom-filter.js +86 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/canary-only.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/constants.js +442 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/dset.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/error-source.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/format-webpack-messages.js +158 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/get-rspack.js +78 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/get-webpack-bundler.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/hash.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/head.js +172 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +38 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +63 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/image-blur-svg.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/image-config.js +70 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/is-internal.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +248 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/magic-identifier.js +118 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/match-local-pattern.js +47 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/match-remote-pattern.js +64 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/mitt.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/modern-browserslist-target.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/denormalize-app-path.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/adapters.js +139 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/router.js +1796 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/app-paths.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/compare-states.js +34 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +19 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +119 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +106 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +27 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +26 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/omit.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +37 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/parse-url.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +289 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/querystring.js +82 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +118 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +100 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/route-regex.js +224 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +245 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/runtime-config.external.js +33 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +73 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +119 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/segment.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/server-reference-info.js +52 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/side-effect.js +66 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/turbopack/entry-key.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +476 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/turbopack/utils.js +286 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/utils.js +211 -0
- package/dist/assets/dashboard/node_modules/next/dist/shared/lib/zod.js +101 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/detached-flush.js +53 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/build.js +145 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/error-feedback.js +31 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/index.js +23 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/plugins.js +51 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/events/version.js +90 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/flush-and-exit.js +20 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/project-id.js +48 -0
- package/dist/assets/dashboard/node_modules/next/dist/telemetry/storage.js +288 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/index.js +54 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/report/index.js +35 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/report/to-json.js +157 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/shared.js +39 -0
- package/dist/assets/dashboard/node_modules/next/dist/trace/trace.js +197 -0
- package/dist/assets/dashboard/node_modules/next/font/google/target.css +1 -0
- package/dist/assets/dashboard/node_modules/next/package.json +382 -0
- package/dist/assets/dashboard/node_modules/picocolors/package.json +25 -0
- package/dist/assets/dashboard/node_modules/picocolors/picocolors.js +75 -0
- package/dist/assets/dashboard/node_modules/semver/classes/comparator.js +143 -0
- package/dist/assets/dashboard/node_modules/semver/classes/range.js +557 -0
- package/dist/assets/dashboard/node_modules/semver/classes/semver.js +333 -0
- package/dist/assets/dashboard/node_modules/semver/functions/cmp.js +54 -0
- package/dist/assets/dashboard/node_modules/semver/functions/coerce.js +62 -0
- package/dist/assets/dashboard/node_modules/semver/functions/compare.js +7 -0
- package/dist/assets/dashboard/node_modules/semver/functions/eq.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/gt.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/gte.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/lt.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/lte.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/neq.js +5 -0
- package/dist/assets/dashboard/node_modules/semver/functions/parse.js +18 -0
- package/dist/assets/dashboard/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/assets/dashboard/node_modules/semver/internal/constants.js +37 -0
- package/dist/assets/dashboard/node_modules/semver/internal/debug.js +11 -0
- package/dist/assets/dashboard/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/assets/dashboard/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/assets/dashboard/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/assets/dashboard/node_modules/semver/internal/re.js +223 -0
- package/dist/assets/dashboard/node_modules/semver/package.json +78 -0
- package/dist/assets/dashboard/node_modules/source-map-support/package.json +31 -0
- package/dist/assets/dashboard/node_modules/source-map-support/source-map-support.js +604 -0
- package/dist/assets/dashboard/packages/dashboard/.next/BUILD_ID +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/build-manifest.json +2 -2
- package/dist/assets/dashboard/packages/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/assets/dashboard/packages/dashboard/.next/server/app/_not-found.html +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/app/_not-found.rsc +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/app/index.html +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/app/index.rsc +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/pages/404.html +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/pages/500.html +1 -1
- package/dist/assets/dashboard/packages/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dist/assets/dashboard/server.js +22 -7
- package/dist/install.cjs +57 -19
- package/dist/install.cjs.map +1 -1
- package/dist/install.js +68 -24
- package/dist/install.js.map +1 -1
- package/package.json +4 -4
- /package/dist/assets/dashboard/.next/static/{TRIRNxUoxM2848l9uYGkr → AAz2O-e9kToP5WUv1m4FP}/_buildManifest.js +0 -0
- /package/dist/assets/dashboard/.next/static/{TRIRNxUoxM2848l9uYGkr → AAz2O-e9kToP5WUv1m4FP}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2953 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderToHTMLOrFlight", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderToHTMLOrFlight;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _workasyncstorageexternal = require("../app-render/work-async-storage.external");
|
|
13
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
14
|
+
const _renderresult = /*#__PURE__*/ _interop_require_default(require("../render-result"));
|
|
15
|
+
const _nodewebstreamshelper = require("../stream-utils/node-web-streams-helper");
|
|
16
|
+
const _internalutils = require("../internal-utils");
|
|
17
|
+
const _approuterheaders = require("../../client/components/app-router-headers");
|
|
18
|
+
const _metadatacontext = require("../../lib/metadata/metadata-context");
|
|
19
|
+
const _requeststore = require("../async-storage/request-store");
|
|
20
|
+
const _workstore = require("../async-storage/work-store");
|
|
21
|
+
const _httpaccessfallback = require("../../client/components/http-access-fallback/http-access-fallback");
|
|
22
|
+
const _redirect = require("../../client/components/redirect");
|
|
23
|
+
const _redirecterror = require("../../client/components/redirect-error");
|
|
24
|
+
const _implicittags = require("../lib/implicit-tags");
|
|
25
|
+
const _constants = require("../lib/trace/constants");
|
|
26
|
+
const _tracer = require("../lib/trace/tracer");
|
|
27
|
+
const _flightrenderresult = require("./flight-render-result");
|
|
28
|
+
const _createerrorhandler = require("./create-error-handler");
|
|
29
|
+
const _getshortdynamicparamtype = require("./get-short-dynamic-param-type");
|
|
30
|
+
const _getsegmentparam = require("./get-segment-param");
|
|
31
|
+
const _getscriptnoncefromheader = require("./get-script-nonce-from-header");
|
|
32
|
+
const _parseandvalidateflightrouterstate = require("./parse-and-validate-flight-router-state");
|
|
33
|
+
const _createflightrouterstatefromloadertree = require("./create-flight-router-state-from-loader-tree");
|
|
34
|
+
const _actionhandler = require("./action-handler");
|
|
35
|
+
const _bailouttocsr = require("../../shared/lib/lazy-dynamic/bailout-to-csr");
|
|
36
|
+
const _log = require("../../build/output/log");
|
|
37
|
+
const _requestcookies = require("../web/spec-extension/adapters/request-cookies");
|
|
38
|
+
const _serverinsertedhtml = require("./server-inserted-html");
|
|
39
|
+
const _requiredscripts = require("./required-scripts");
|
|
40
|
+
const _addpathprefix = require("../../shared/lib/router/utils/add-path-prefix");
|
|
41
|
+
const _makegetserverinsertedhtml = require("./make-get-server-inserted-html");
|
|
42
|
+
const _walktreewithflightrouterstate = require("./walk-tree-with-flight-router-state");
|
|
43
|
+
const _createcomponenttree = require("./create-component-tree");
|
|
44
|
+
const _getassetquerystring = require("./get-asset-query-string");
|
|
45
|
+
const _encryptionutils = require("./encryption-utils");
|
|
46
|
+
const _postponedstate = require("./postponed-state");
|
|
47
|
+
const _hooksservercontext = require("../../client/components/hooks-server-context");
|
|
48
|
+
const _useflightresponse = require("./use-flight-response");
|
|
49
|
+
const _staticgenerationbailout = require("../../client/components/static-generation-bailout");
|
|
50
|
+
const _formatservererror = require("../../lib/format-server-error");
|
|
51
|
+
const _dynamicrendering = require("./dynamic-rendering");
|
|
52
|
+
const _clientcomponentrendererlogger = require("../client-component-renderer-logger");
|
|
53
|
+
const _actionutils = require("./action-utils");
|
|
54
|
+
const _helpers = require("../base-http/helpers");
|
|
55
|
+
const _parserelativeurl = require("../../shared/lib/router/utils/parse-relative-url");
|
|
56
|
+
const _approuter = /*#__PURE__*/ _interop_require_default(require("../../client/components/app-router"));
|
|
57
|
+
const _serveractionrequestmeta = require("../lib/server-action-request-meta");
|
|
58
|
+
const _createinitialrouterstate = require("../../client/components/router-reducer/create-initial-router-state");
|
|
59
|
+
const _approuterinstance = require("../../client/components/app-router-instance");
|
|
60
|
+
const _utils = require("../instrumentation/utils");
|
|
61
|
+
const _segment = require("../../shared/lib/segment");
|
|
62
|
+
const _apprenderprerenderutils = require("./app-render-prerender-utils");
|
|
63
|
+
const _prospectiverenderutils = require("./prospective-render-utils");
|
|
64
|
+
const _apprenderrenderutils = require("./app-render-render-utils");
|
|
65
|
+
const _scheduler = require("../../lib/scheduler");
|
|
66
|
+
const _workunitasyncstorageexternal = require("./work-unit-async-storage.external");
|
|
67
|
+
const _cachesignal = require("./cache-signal");
|
|
68
|
+
const _utils1 = require("../lib/trace/utils");
|
|
69
|
+
const _invarianterror = require("../../shared/lib/invariant-error");
|
|
70
|
+
const _constants1 = require("../../lib/constants");
|
|
71
|
+
const _createcomponentstylesandscripts = require("./create-component-styles-and-scripts");
|
|
72
|
+
const _parseloadertree = require("./parse-loader-tree");
|
|
73
|
+
const _resumedatacache = require("../resume-data-cache/resume-data-cache");
|
|
74
|
+
const _iserror = /*#__PURE__*/ _interop_require_default(require("../../lib/is-error"));
|
|
75
|
+
const _createserverinsertedmetadata = require("./metadata-insertion/create-server-inserted-metadata");
|
|
76
|
+
const _serverutils = require("../server-utils");
|
|
77
|
+
const _revalidationutils = require("../revalidation-utils");
|
|
78
|
+
const _trackmoduleloadingexternal = require("./module-loading/track-module-loading.external");
|
|
79
|
+
const _reactlargeshellerror = require("./react-large-shell-error");
|
|
80
|
+
const _segmentexplorerpath = require("./segment-explorer-path");
|
|
81
|
+
const _requestmeta = require("../request-meta");
|
|
82
|
+
const _getdynamicparam = require("../../shared/lib/router/utils/get-dynamic-param");
|
|
83
|
+
const _promisewithresolvers = require("../../shared/lib/promise-with-resolvers");
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const flightDataPathHeadKey = 'h';
|
|
90
|
+
const getFlightViewportKey = (requestId)=>requestId + 'v';
|
|
91
|
+
const getFlightMetadataKey = (requestId)=>requestId + 'm';
|
|
92
|
+
const filterStackFrame = process.env.NODE_ENV !== 'production' ? require('../lib/source-maps').filterStackFrameDEV : undefined;
|
|
93
|
+
function parseRequestHeaders(headers, options) {
|
|
94
|
+
const isDevWarmupRequest = options.isDevWarmup === true;
|
|
95
|
+
// dev warmup requests are treated as prefetch RSC requests
|
|
96
|
+
// runtime prefetch requests are *not* treated as prefetch requests
|
|
97
|
+
// (TODO: this is confusing, we should refactor this to express this better)
|
|
98
|
+
const isPrefetchRequest = isDevWarmupRequest || headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER] === '1';
|
|
99
|
+
const isRuntimePrefetchRequest = headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER] === '2';
|
|
100
|
+
const isHmrRefresh = headers[_approuterheaders.NEXT_HMR_REFRESH_HEADER] !== undefined;
|
|
101
|
+
// dev warmup requests are treated as prefetch RSC requests
|
|
102
|
+
const isRSCRequest = isDevWarmupRequest || headers[_approuterheaders.RSC_HEADER] !== undefined;
|
|
103
|
+
const shouldProvideFlightRouterState = isRSCRequest && (!isPrefetchRequest || !options.isRoutePPREnabled);
|
|
104
|
+
const flightRouterState = shouldProvideFlightRouterState ? (0, _parseandvalidateflightrouterstate.parseAndValidateFlightRouterState)(headers[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]) : undefined;
|
|
105
|
+
// Checks if this is a prefetch of the Route Tree by the Segment Cache
|
|
106
|
+
const isRouteTreePrefetchRequest = headers[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER] === '/_tree';
|
|
107
|
+
const csp = headers['content-security-policy'] || headers['content-security-policy-report-only'];
|
|
108
|
+
const nonce = typeof csp === 'string' ? (0, _getscriptnoncefromheader.getScriptNonceFromHeader)(csp) : undefined;
|
|
109
|
+
const previouslyRevalidatedTags = (0, _serverutils.getPreviouslyRevalidatedTags)(headers, options.previewModeId);
|
|
110
|
+
return {
|
|
111
|
+
flightRouterState,
|
|
112
|
+
isPrefetchRequest,
|
|
113
|
+
isRuntimePrefetchRequest,
|
|
114
|
+
isRouteTreePrefetchRequest,
|
|
115
|
+
isHmrRefresh,
|
|
116
|
+
isRSCRequest,
|
|
117
|
+
isDevWarmupRequest,
|
|
118
|
+
nonce,
|
|
119
|
+
previouslyRevalidatedTags
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function createNotFoundLoaderTree(loaderTree) {
|
|
123
|
+
const components = loaderTree[2];
|
|
124
|
+
const hasGlobalNotFound = !!components['global-not-found'];
|
|
125
|
+
return [
|
|
126
|
+
'',
|
|
127
|
+
{
|
|
128
|
+
children: [
|
|
129
|
+
_segment.PAGE_SEGMENT_KEY,
|
|
130
|
+
{},
|
|
131
|
+
{
|
|
132
|
+
page: components['global-not-found'] ?? components['not-found']
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
// When global-not-found is present, skip layout from components
|
|
137
|
+
hasGlobalNotFound ? components : {}
|
|
138
|
+
];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns a function that parses the dynamic segment and return the associated value.
|
|
142
|
+
*/ function makeGetDynamicParamFromSegment(params, pagePath, fallbackRouteParams) {
|
|
143
|
+
return function getDynamicParamFromSegment(// [slug] / [[slug]] / [...slug]
|
|
144
|
+
segment) {
|
|
145
|
+
const segmentParam = (0, _getsegmentparam.getSegmentParam)(segment);
|
|
146
|
+
if (!segmentParam) {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
const segmentKey = segmentParam.param;
|
|
150
|
+
const dynamicParamType = _getshortdynamicparamtype.dynamicParamTypes[segmentParam.type];
|
|
151
|
+
return (0, _getdynamicparam.getDynamicParam)(params, segmentKey, dynamicParamType, pagePath, fallbackRouteParams);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function NonIndex({ pagePath, statusCode, isPossibleServerAction }) {
|
|
155
|
+
const is404Page = pagePath === '/404';
|
|
156
|
+
const isInvalidStatusCode = typeof statusCode === 'number' && statusCode > 400;
|
|
157
|
+
// Only render noindex for page request, skip for server actions
|
|
158
|
+
// TODO: is this correct if `isPossibleServerAction` is a false positive?
|
|
159
|
+
if (!isPossibleServerAction && (is404Page || isInvalidStatusCode)) {
|
|
160
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
|
|
161
|
+
name: "robots",
|
|
162
|
+
content: "noindex"
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* This is used by server actions & client-side navigations to generate RSC data from a client-side request.
|
|
169
|
+
* This function is only called on "dynamic" requests (ie, there wasn't already a static response).
|
|
170
|
+
* It uses request headers (namely `next-router-state-tree`) to determine where to start rendering.
|
|
171
|
+
*/ async function generateDynamicRSCPayload(ctx, options) {
|
|
172
|
+
// Flight data that is going to be passed to the browser.
|
|
173
|
+
// Currently a single item array but in the future multiple patches might be combined in a single request.
|
|
174
|
+
// We initialize `flightData` to an empty string because the client router knows how to tolerate
|
|
175
|
+
// it (treating it as an MPA navigation). The only time this function wouldn't generate flight data
|
|
176
|
+
// is for server actions, if the server action handler instructs this function to skip it. When the server
|
|
177
|
+
// action reducer sees a falsy value, it'll simply resolve the action with no data.
|
|
178
|
+
let flightData = '';
|
|
179
|
+
const { componentMod: { tree: loaderTree, createMetadataComponents, MetadataBoundary, ViewportBoundary }, getDynamicParamFromSegment, appUsingSizeAdjustment, query, requestId, flightRouterState, workStore, url } = ctx;
|
|
180
|
+
const serveStreamingMetadata = !!ctx.renderOpts.serveStreamingMetadata;
|
|
181
|
+
if (!(options == null ? void 0 : options.skipFlight)) {
|
|
182
|
+
const preloadCallbacks = [];
|
|
183
|
+
const { ViewportTree, MetadataTree, getViewportReady, getMetadataReady, StreamingMetadataOutlet } = createMetadataComponents({
|
|
184
|
+
tree: loaderTree,
|
|
185
|
+
parsedQuery: query,
|
|
186
|
+
pathname: url.pathname,
|
|
187
|
+
metadataContext: (0, _metadatacontext.createMetadataContext)(ctx.renderOpts),
|
|
188
|
+
getDynamicParamFromSegment,
|
|
189
|
+
appUsingSizeAdjustment,
|
|
190
|
+
workStore,
|
|
191
|
+
MetadataBoundary,
|
|
192
|
+
ViewportBoundary,
|
|
193
|
+
serveStreamingMetadata
|
|
194
|
+
});
|
|
195
|
+
flightData = (await (0, _walktreewithflightrouterstate.walkTreeWithFlightRouterState)({
|
|
196
|
+
ctx,
|
|
197
|
+
loaderTreeToFilter: loaderTree,
|
|
198
|
+
parentParams: {},
|
|
199
|
+
flightRouterState,
|
|
200
|
+
// For flight, render metadata inside leaf page
|
|
201
|
+
rscHead: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.default.Fragment, {
|
|
202
|
+
children: [
|
|
203
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(NonIndex, {
|
|
204
|
+
pagePath: ctx.pagePath,
|
|
205
|
+
statusCode: ctx.res.statusCode,
|
|
206
|
+
isPossibleServerAction: ctx.isPossibleServerAction
|
|
207
|
+
}),
|
|
208
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(ViewportTree, {}, getFlightViewportKey(requestId)),
|
|
209
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(MetadataTree, {}, getFlightMetadataKey(requestId))
|
|
210
|
+
]
|
|
211
|
+
}, flightDataPathHeadKey),
|
|
212
|
+
injectedCSS: new Set(),
|
|
213
|
+
injectedJS: new Set(),
|
|
214
|
+
injectedFontPreloadTags: new Set(),
|
|
215
|
+
rootLayoutIncluded: false,
|
|
216
|
+
getViewportReady,
|
|
217
|
+
getMetadataReady,
|
|
218
|
+
preloadCallbacks,
|
|
219
|
+
StreamingMetadataOutlet
|
|
220
|
+
})).map((path)=>path.slice(1)) // remove the '' (root) segment
|
|
221
|
+
;
|
|
222
|
+
}
|
|
223
|
+
// If we have an action result, then this is a server action response.
|
|
224
|
+
// We can rely on this because `ActionResult` will always be a promise, even if
|
|
225
|
+
// the result is falsey.
|
|
226
|
+
if (options == null ? void 0 : options.actionResult) {
|
|
227
|
+
return {
|
|
228
|
+
a: options.actionResult,
|
|
229
|
+
f: flightData,
|
|
230
|
+
b: ctx.sharedContext.buildId
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
// Otherwise, it's a regular RSC response.
|
|
234
|
+
return {
|
|
235
|
+
b: ctx.sharedContext.buildId,
|
|
236
|
+
f: flightData,
|
|
237
|
+
S: workStore.isStaticGeneration
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function createErrorContext(ctx, renderSource) {
|
|
241
|
+
return {
|
|
242
|
+
routerKind: 'App Router',
|
|
243
|
+
routePath: ctx.pagePath,
|
|
244
|
+
// TODO: is this correct if `isPossibleServerAction` is a false positive?
|
|
245
|
+
routeType: ctx.isPossibleServerAction ? 'action' : 'render',
|
|
246
|
+
renderSource,
|
|
247
|
+
revalidateReason: (0, _utils.getRevalidateReason)(ctx.workStore)
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Produces a RenderResult containing the Flight data for the given request. See
|
|
252
|
+
* `generateDynamicRSCPayload` for information on the contents of the render result.
|
|
253
|
+
*/ async function generateDynamicFlightRenderResult(req, ctx, requestStore, options) {
|
|
254
|
+
const renderOpts = ctx.renderOpts;
|
|
255
|
+
function onFlightDataRenderError(err) {
|
|
256
|
+
return renderOpts.onInstrumentationRequestError == null ? void 0 : renderOpts.onInstrumentationRequestError.call(renderOpts, err, req, createErrorContext(ctx, 'react-server-components-payload'));
|
|
257
|
+
}
|
|
258
|
+
const onError = (0, _createerrorhandler.createFlightReactServerErrorHandler)(!!renderOpts.dev, onFlightDataRenderError);
|
|
259
|
+
const RSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, generateDynamicRSCPayload, ctx, options);
|
|
260
|
+
// For app dir, use the bundled version of Flight server renderer (renderToReadableStream)
|
|
261
|
+
// which contains the subset React.
|
|
262
|
+
const flightReadableStream = _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, ctx.componentMod.renderToReadableStream, RSCPayload, ctx.clientReferenceManifest.clientModules, {
|
|
263
|
+
onError,
|
|
264
|
+
temporaryReferences: options == null ? void 0 : options.temporaryReferences,
|
|
265
|
+
filterStackFrame
|
|
266
|
+
});
|
|
267
|
+
return new _flightrenderresult.FlightRenderResult(flightReadableStream, {
|
|
268
|
+
fetchMetrics: ctx.workStore.fetchMetrics
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
async function generateRuntimePrefetchResult(req, res, ctx, requestStore) {
|
|
272
|
+
const { workStore } = ctx;
|
|
273
|
+
const renderOpts = ctx.renderOpts;
|
|
274
|
+
function onFlightDataRenderError(err) {
|
|
275
|
+
return renderOpts.onInstrumentationRequestError == null ? void 0 : renderOpts.onInstrumentationRequestError.call(renderOpts, err, req, // TODO(runtime-ppr): should we use a different value?
|
|
276
|
+
createErrorContext(ctx, 'react-server-components-payload'));
|
|
277
|
+
}
|
|
278
|
+
const onError = (0, _createerrorhandler.createFlightReactServerErrorHandler)(false, onFlightDataRenderError);
|
|
279
|
+
const metadata = {};
|
|
280
|
+
const generatePayload = ()=>generateDynamicRSCPayload(ctx, undefined);
|
|
281
|
+
const { componentMod: { tree }, getDynamicParamFromSegment } = ctx;
|
|
282
|
+
const rootParams = (0, _createcomponenttree.getRootParams)(tree, getDynamicParamFromSegment);
|
|
283
|
+
// We need to share caches between the prospective prerender and the final prerender,
|
|
284
|
+
// but we're not going to persist this anywhere.
|
|
285
|
+
const prerenderResumeDataCache = (0, _resumedatacache.createPrerenderResumeDataCache)();
|
|
286
|
+
// We're not resuming an existing render.
|
|
287
|
+
const renderResumeDataCache = null;
|
|
288
|
+
await prospectiveRuntimeServerPrerender(ctx, generatePayload, prerenderResumeDataCache, renderResumeDataCache, rootParams, requestStore.cookies, requestStore.draftMode);
|
|
289
|
+
const response = await finalRuntimeServerPrerender(ctx, generatePayload, prerenderResumeDataCache, renderResumeDataCache, rootParams, requestStore.cookies, requestStore.draftMode, onError);
|
|
290
|
+
applyMetadataFromPrerenderResult(response, metadata, workStore);
|
|
291
|
+
metadata.fetchMetrics = ctx.workStore.fetchMetrics;
|
|
292
|
+
if (response.isPartial) {
|
|
293
|
+
res.setHeader(_approuterheaders.NEXT_DID_POSTPONE_HEADER, '1');
|
|
294
|
+
}
|
|
295
|
+
return new _flightrenderresult.FlightRenderResult(response.result.prelude, metadata);
|
|
296
|
+
}
|
|
297
|
+
async function prospectiveRuntimeServerPrerender(ctx, getPayload, prerenderResumeDataCache, renderResumeDataCache, rootParams, cookies, draftMode) {
|
|
298
|
+
const { implicitTags, renderOpts, workStore } = ctx;
|
|
299
|
+
const { clientReferenceManifest, ComponentMod } = renderOpts;
|
|
300
|
+
assertClientReferenceManifest(clientReferenceManifest);
|
|
301
|
+
// Prerender controller represents the lifetime of the prerender.
|
|
302
|
+
// It will be aborted when a Task is complete or a synchronously aborting
|
|
303
|
+
// API is called. Notably during cache-filling renders this does not actually
|
|
304
|
+
// terminate the render itself which will continue until all caches are filled
|
|
305
|
+
const initialServerPrerenderController = new AbortController();
|
|
306
|
+
// This controller represents the lifetime of the React render call. Notably
|
|
307
|
+
// during the cache-filling render it is different from the prerender controller
|
|
308
|
+
// because we don't want to end the react render until all caches are filled.
|
|
309
|
+
const initialServerRenderController = new AbortController();
|
|
310
|
+
// The cacheSignal helps us track whether caches are still filling or we are ready
|
|
311
|
+
// to cut the render off.
|
|
312
|
+
const cacheSignal = new _cachesignal.CacheSignal();
|
|
313
|
+
const initialServerPrerenderStore = {
|
|
314
|
+
type: 'prerender-runtime',
|
|
315
|
+
phase: 'render',
|
|
316
|
+
rootParams,
|
|
317
|
+
implicitTags,
|
|
318
|
+
renderSignal: initialServerRenderController.signal,
|
|
319
|
+
controller: initialServerPrerenderController,
|
|
320
|
+
// During the initial prerender we need to track all cache reads to ensure
|
|
321
|
+
// we render long enough to fill every cache it is possible to visit during
|
|
322
|
+
// the final prerender.
|
|
323
|
+
cacheSignal,
|
|
324
|
+
// We only need to track dynamic accesses during the final prerender.
|
|
325
|
+
dynamicTracking: null,
|
|
326
|
+
// Runtime prefetches are never cached server-side, only client-side,
|
|
327
|
+
// so we set `expire` and `revalidate` to their minimum values just in case.
|
|
328
|
+
revalidate: 1,
|
|
329
|
+
expire: 0,
|
|
330
|
+
stale: _constants1.INFINITE_CACHE,
|
|
331
|
+
tags: [
|
|
332
|
+
...implicitTags.tags
|
|
333
|
+
],
|
|
334
|
+
renderResumeDataCache,
|
|
335
|
+
prerenderResumeDataCache,
|
|
336
|
+
hmrRefreshHash: undefined,
|
|
337
|
+
captureOwnerStack: undefined,
|
|
338
|
+
// We only need task sequencing in the final prerender.
|
|
339
|
+
runtimeStagePromise: null,
|
|
340
|
+
// These are not present in regular prerenders, but allowed in a runtime prerender.
|
|
341
|
+
cookies,
|
|
342
|
+
draftMode
|
|
343
|
+
};
|
|
344
|
+
// We're not going to use the result of this render because the only time it could be used
|
|
345
|
+
// is if it completes in a microtask and that's likely very rare for any non-trivial app
|
|
346
|
+
const initialServerPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPrerenderStore, getPayload);
|
|
347
|
+
const pendingInitialServerResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPrerenderStore, ComponentMod.prerender, initialServerPayload, clientReferenceManifest.clientModules, {
|
|
348
|
+
filterStackFrame,
|
|
349
|
+
onError: (err)=>{
|
|
350
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
351
|
+
if (digest) {
|
|
352
|
+
return digest;
|
|
353
|
+
}
|
|
354
|
+
if (initialServerPrerenderController.signal.aborted) {
|
|
355
|
+
// The render aborted before this error was handled which indicates
|
|
356
|
+
// the error is caused by unfinished components within the render
|
|
357
|
+
return;
|
|
358
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
359
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
// we don't care to track postpones during the prospective render because we need
|
|
363
|
+
// to always do a final render anyway
|
|
364
|
+
onPostpone: undefined,
|
|
365
|
+
// We don't want to stop rendering until the cacheSignal is complete so we pass
|
|
366
|
+
// a different signal to this render call than is used by dynamic APIs to signify
|
|
367
|
+
// transitioning out of the prerender environment
|
|
368
|
+
signal: initialServerRenderController.signal
|
|
369
|
+
});
|
|
370
|
+
// Wait for all caches to be finished filling and for async imports to resolve
|
|
371
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
372
|
+
await cacheSignal.cacheReady();
|
|
373
|
+
initialServerRenderController.abort();
|
|
374
|
+
initialServerPrerenderController.abort();
|
|
375
|
+
// We don't need to continue the prerender process if we already
|
|
376
|
+
// detected invalid dynamic usage in the initial prerender phase.
|
|
377
|
+
if (workStore.invalidDynamicUsageError) {
|
|
378
|
+
throw workStore.invalidDynamicUsageError;
|
|
379
|
+
}
|
|
380
|
+
try {
|
|
381
|
+
return await (0, _apprenderprerenderutils.createReactServerPrerenderResult)(pendingInitialServerResult);
|
|
382
|
+
} catch (err) {
|
|
383
|
+
if (initialServerRenderController.signal.aborted || initialServerPrerenderController.signal.aborted) {
|
|
384
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
385
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
386
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
387
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
388
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
389
|
+
}
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
async function finalRuntimeServerPrerender(ctx, getPayload, prerenderResumeDataCache, renderResumeDataCache, rootParams, cookies, draftMode, onError) {
|
|
394
|
+
const { implicitTags, renderOpts } = ctx;
|
|
395
|
+
const { clientReferenceManifest, ComponentMod, experimental, isDebugDynamicAccesses } = renderOpts;
|
|
396
|
+
assertClientReferenceManifest(clientReferenceManifest);
|
|
397
|
+
const selectStaleTime = createSelectStaleTime(experimental);
|
|
398
|
+
let serverIsDynamic = false;
|
|
399
|
+
const finalServerController = new AbortController();
|
|
400
|
+
const serverDynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(isDebugDynamicAccesses);
|
|
401
|
+
const { promise: runtimeStagePromise, resolve: resolveBlockedRuntimeAPIs } = (0, _promisewithresolvers.createPromiseWithResolvers)();
|
|
402
|
+
const finalServerPrerenderStore = {
|
|
403
|
+
type: 'prerender-runtime',
|
|
404
|
+
phase: 'render',
|
|
405
|
+
rootParams,
|
|
406
|
+
implicitTags,
|
|
407
|
+
renderSignal: finalServerController.signal,
|
|
408
|
+
controller: finalServerController,
|
|
409
|
+
// All caches we could read must already be filled so no tracking is necessary
|
|
410
|
+
cacheSignal: null,
|
|
411
|
+
dynamicTracking: serverDynamicTracking,
|
|
412
|
+
// Runtime prefetches are never cached server-side, only client-side,
|
|
413
|
+
// so we set `expire` and `revalidate` to their minimum values just in case.
|
|
414
|
+
revalidate: 1,
|
|
415
|
+
expire: 0,
|
|
416
|
+
stale: _constants1.INFINITE_CACHE,
|
|
417
|
+
tags: [
|
|
418
|
+
...implicitTags.tags
|
|
419
|
+
],
|
|
420
|
+
prerenderResumeDataCache,
|
|
421
|
+
renderResumeDataCache,
|
|
422
|
+
hmrRefreshHash: undefined,
|
|
423
|
+
captureOwnerStack: undefined,
|
|
424
|
+
// Used to separate the "Static" stage from the "Runtime" stage.
|
|
425
|
+
runtimeStagePromise,
|
|
426
|
+
// These are not present in regular prerenders, but allowed in a runtime prerender.
|
|
427
|
+
cookies,
|
|
428
|
+
draftMode
|
|
429
|
+
};
|
|
430
|
+
const finalRSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalServerPrerenderStore, getPayload);
|
|
431
|
+
let prerenderIsPending = true;
|
|
432
|
+
const result = await (0, _apprenderprerenderutils.prerenderAndAbortInSequentialTasksWithStages)(async ()=>{
|
|
433
|
+
// Static stage
|
|
434
|
+
const prerenderResult = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalServerPrerenderStore, ComponentMod.prerender, finalRSCPayload, clientReferenceManifest.clientModules, {
|
|
435
|
+
filterStackFrame,
|
|
436
|
+
onError,
|
|
437
|
+
signal: finalServerController.signal
|
|
438
|
+
});
|
|
439
|
+
prerenderIsPending = false;
|
|
440
|
+
return prerenderResult;
|
|
441
|
+
}, ()=>{
|
|
442
|
+
// Advance to the runtime stage.
|
|
443
|
+
//
|
|
444
|
+
// We make runtime APIs hang during the first task (above), and unblock them in the following task (here).
|
|
445
|
+
// This makes sure that, at this point, we'll have finished all the static parts (what we'd prerender statically).
|
|
446
|
+
// We know that they don't contain any incorrect sync IO, because that'd have caused a build error.
|
|
447
|
+
// After we unblock Runtime APIs, if we encounter sync IO (e.g. `await cookies(); Date.now()`),
|
|
448
|
+
// we'll abort, but we'll produce at least as much output as a static prerender would.
|
|
449
|
+
resolveBlockedRuntimeAPIs();
|
|
450
|
+
}, ()=>{
|
|
451
|
+
// Abort.
|
|
452
|
+
if (finalServerController.signal.aborted) {
|
|
453
|
+
// If the server controller is already aborted we must have called something
|
|
454
|
+
// that required aborting the prerender synchronously such as with new Date()
|
|
455
|
+
serverIsDynamic = true;
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
if (prerenderIsPending) {
|
|
459
|
+
// If prerenderIsPending then we have blocked for longer than a Task and we assume
|
|
460
|
+
// there is something unfinished.
|
|
461
|
+
serverIsDynamic = true;
|
|
462
|
+
}
|
|
463
|
+
finalServerController.abort();
|
|
464
|
+
});
|
|
465
|
+
(0, _dynamicrendering.warnOnSyncDynamicError)(serverDynamicTracking);
|
|
466
|
+
return {
|
|
467
|
+
result,
|
|
468
|
+
// TODO(runtime-ppr): do we need to produce a digest map here?
|
|
469
|
+
// digestErrorsMap: ...,
|
|
470
|
+
dynamicAccess: serverDynamicTracking,
|
|
471
|
+
isPartial: serverIsDynamic,
|
|
472
|
+
collectedRevalidate: finalServerPrerenderStore.revalidate,
|
|
473
|
+
collectedExpire: finalServerPrerenderStore.expire,
|
|
474
|
+
collectedStale: selectStaleTime(finalServerPrerenderStore.stale),
|
|
475
|
+
collectedTags: finalServerPrerenderStore.tags
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Performs a "warmup" render of the RSC payload for a given route. This function is called by the server
|
|
480
|
+
* prior to an actual render request in Dev mode only. It's purpose is to fill caches so the actual render
|
|
481
|
+
* can accurately log activity in the right render context (Prerender vs Render).
|
|
482
|
+
*
|
|
483
|
+
* At the moment this implementation is mostly a fork of generateDynamicFlightRenderResult
|
|
484
|
+
*/ async function warmupDevRender(req, ctx) {
|
|
485
|
+
const { clientReferenceManifest, componentMod: ComponentMod, getDynamicParamFromSegment, implicitTags, renderOpts, workStore } = ctx;
|
|
486
|
+
const { allowEmptyStaticShell = false, dev, onInstrumentationRequestError } = renderOpts;
|
|
487
|
+
if (!dev) {
|
|
488
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('generateDynamicFlightRenderResult should never be called in `next start` mode.'), "__NEXT_ERROR_CODE", {
|
|
489
|
+
value: "E523",
|
|
490
|
+
enumerable: false,
|
|
491
|
+
configurable: true
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
const rootParams = (0, _createcomponenttree.getRootParams)(ComponentMod.tree, getDynamicParamFromSegment);
|
|
495
|
+
function onFlightDataRenderError(err) {
|
|
496
|
+
return onInstrumentationRequestError == null ? void 0 : onInstrumentationRequestError(err, req, createErrorContext(ctx, 'react-server-components-payload'));
|
|
497
|
+
}
|
|
498
|
+
const onError = (0, _createerrorhandler.createFlightReactServerErrorHandler)(true, onFlightDataRenderError);
|
|
499
|
+
// We're doing a dev warmup, so we should create a new resume data cache so
|
|
500
|
+
// we can fill it.
|
|
501
|
+
const prerenderResumeDataCache = (0, _resumedatacache.createPrerenderResumeDataCache)();
|
|
502
|
+
const renderController = new AbortController();
|
|
503
|
+
const prerenderController = new AbortController();
|
|
504
|
+
const reactController = new AbortController();
|
|
505
|
+
const cacheSignal = new _cachesignal.CacheSignal();
|
|
506
|
+
const prerenderStore = {
|
|
507
|
+
type: 'prerender',
|
|
508
|
+
phase: 'render',
|
|
509
|
+
rootParams,
|
|
510
|
+
implicitTags,
|
|
511
|
+
renderSignal: renderController.signal,
|
|
512
|
+
controller: prerenderController,
|
|
513
|
+
cacheSignal,
|
|
514
|
+
dynamicTracking: null,
|
|
515
|
+
allowEmptyStaticShell,
|
|
516
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
517
|
+
expire: _constants1.INFINITE_CACHE,
|
|
518
|
+
stale: _constants1.INFINITE_CACHE,
|
|
519
|
+
tags: [],
|
|
520
|
+
prerenderResumeDataCache,
|
|
521
|
+
renderResumeDataCache: null,
|
|
522
|
+
hmrRefreshHash: req.cookies[_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE],
|
|
523
|
+
captureOwnerStack: ComponentMod.captureOwnerStack,
|
|
524
|
+
// warmup is a dev only feature and no fallback params are used in the
|
|
525
|
+
// primary render which is static. We only use a prerender store here to
|
|
526
|
+
// allow the warmup to halt on Request data APIs and fetches.
|
|
527
|
+
fallbackRouteParams: null
|
|
528
|
+
};
|
|
529
|
+
const rscPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderStore, generateDynamicRSCPayload, ctx);
|
|
530
|
+
// For app dir, use the bundled version of Flight server renderer (renderToReadableStream)
|
|
531
|
+
// which contains the subset React.
|
|
532
|
+
_workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderStore, ComponentMod.renderToReadableStream, rscPayload, clientReferenceManifest.clientModules, {
|
|
533
|
+
filterStackFrame,
|
|
534
|
+
onError,
|
|
535
|
+
signal: renderController.signal
|
|
536
|
+
});
|
|
537
|
+
// Wait for all caches to be finished filling and for async imports to resolve
|
|
538
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
539
|
+
await cacheSignal.cacheReady();
|
|
540
|
+
// We unset the cache so any late over-run renders aren't able to write into this cache
|
|
541
|
+
prerenderStore.prerenderResumeDataCache = null;
|
|
542
|
+
// Abort the render
|
|
543
|
+
reactController.abort();
|
|
544
|
+
renderController.abort();
|
|
545
|
+
// We don't really want to return a result here but the stack of functions
|
|
546
|
+
// that calls into renderToHTML... expects a result. We should refactor this to
|
|
547
|
+
// lift the warmup pathway outside of renderToHTML... but for now this suffices
|
|
548
|
+
return new _flightrenderresult.FlightRenderResult('', {
|
|
549
|
+
fetchMetrics: workStore.fetchMetrics,
|
|
550
|
+
renderResumeDataCache: (0, _resumedatacache.createRenderResumeDataCache)(prerenderResumeDataCache)
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Crawlers will inadvertently think the canonicalUrl in the RSC payload should be crawled
|
|
555
|
+
* when our intention is to just seed the router state with the current URL.
|
|
556
|
+
* This function splits up the pathname so that we can later join it on
|
|
557
|
+
* when we're ready to consume the path.
|
|
558
|
+
*/ function prepareInitialCanonicalUrl(url) {
|
|
559
|
+
return (url.pathname + url.search).split('/');
|
|
560
|
+
}
|
|
561
|
+
// This is the data necessary to render <AppRouter /> when no SSR errors are encountered
|
|
562
|
+
async function getRSCPayload(tree, ctx, is404) {
|
|
563
|
+
const injectedCSS = new Set();
|
|
564
|
+
const injectedJS = new Set();
|
|
565
|
+
const injectedFontPreloadTags = new Set();
|
|
566
|
+
let missingSlots;
|
|
567
|
+
// We only track missing parallel slots in development
|
|
568
|
+
if (process.env.NODE_ENV === 'development') {
|
|
569
|
+
missingSlots = new Set();
|
|
570
|
+
}
|
|
571
|
+
const { getDynamicParamFromSegment, query, appUsingSizeAdjustment, componentMod: { createMetadataComponents, MetadataBoundary, ViewportBoundary }, url, workStore } = ctx;
|
|
572
|
+
const initialTree = (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(tree, getDynamicParamFromSegment, query);
|
|
573
|
+
const serveStreamingMetadata = !!ctx.renderOpts.serveStreamingMetadata;
|
|
574
|
+
const hasGlobalNotFound = !!tree[2]['global-not-found'];
|
|
575
|
+
const { ViewportTree, MetadataTree, getViewportReady, getMetadataReady, StreamingMetadataOutlet } = createMetadataComponents({
|
|
576
|
+
tree,
|
|
577
|
+
// When it's using global-not-found, metadata errorType is undefined, which will retrieve the
|
|
578
|
+
// metadata from the page.
|
|
579
|
+
// When it's using not-found, metadata errorType is 'not-found', which will retrieve the
|
|
580
|
+
// metadata from the not-found.js boundary.
|
|
581
|
+
// TODO: remove this condition and keep it undefined when global-not-found is stabilized.
|
|
582
|
+
errorType: is404 && !hasGlobalNotFound ? 'not-found' : undefined,
|
|
583
|
+
parsedQuery: query,
|
|
584
|
+
pathname: url.pathname,
|
|
585
|
+
metadataContext: (0, _metadatacontext.createMetadataContext)(ctx.renderOpts),
|
|
586
|
+
getDynamicParamFromSegment,
|
|
587
|
+
appUsingSizeAdjustment,
|
|
588
|
+
workStore,
|
|
589
|
+
MetadataBoundary,
|
|
590
|
+
ViewportBoundary,
|
|
591
|
+
serveStreamingMetadata
|
|
592
|
+
});
|
|
593
|
+
const preloadCallbacks = [];
|
|
594
|
+
const seedData = await (0, _createcomponenttree.createComponentTree)({
|
|
595
|
+
ctx,
|
|
596
|
+
loaderTree: tree,
|
|
597
|
+
parentParams: {},
|
|
598
|
+
injectedCSS,
|
|
599
|
+
injectedJS,
|
|
600
|
+
injectedFontPreloadTags,
|
|
601
|
+
rootLayoutIncluded: false,
|
|
602
|
+
getViewportReady,
|
|
603
|
+
getMetadataReady,
|
|
604
|
+
missingSlots,
|
|
605
|
+
preloadCallbacks,
|
|
606
|
+
authInterrupts: ctx.renderOpts.experimental.authInterrupts,
|
|
607
|
+
StreamingMetadataOutlet
|
|
608
|
+
});
|
|
609
|
+
// When the `vary` response header is present with `Next-URL`, that means there's a chance
|
|
610
|
+
// it could respond differently if there's an interception route. We provide this information
|
|
611
|
+
// to `AppRouter` so that it can properly seed the prefetch cache with a prefix, if needed.
|
|
612
|
+
const varyHeader = ctx.res.getHeader('vary');
|
|
613
|
+
const couldBeIntercepted = typeof varyHeader === 'string' && varyHeader.includes(_approuterheaders.NEXT_URL);
|
|
614
|
+
const initialHead = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.default.Fragment, {
|
|
615
|
+
children: [
|
|
616
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(NonIndex, {
|
|
617
|
+
pagePath: ctx.pagePath,
|
|
618
|
+
statusCode: ctx.res.statusCode,
|
|
619
|
+
isPossibleServerAction: ctx.isPossibleServerAction
|
|
620
|
+
}),
|
|
621
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(ViewportTree, {}),
|
|
622
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(MetadataTree, {})
|
|
623
|
+
]
|
|
624
|
+
}, flightDataPathHeadKey);
|
|
625
|
+
const { GlobalError, styles: globalErrorStyles } = await getGlobalErrorStyles(tree, ctx);
|
|
626
|
+
// Assume the head we're rendering contains only partial data if PPR is
|
|
627
|
+
// enabled and this is a statically generated response. This is used by the
|
|
628
|
+
// client Segment Cache after a prefetch to determine if it can skip the
|
|
629
|
+
// second request to fill in the dynamic data.
|
|
630
|
+
//
|
|
631
|
+
// See similar comment in create-component-tree.tsx for more context.
|
|
632
|
+
const isPossiblyPartialHead = workStore.isStaticGeneration && ctx.renderOpts.experimental.isRoutePPREnabled === true;
|
|
633
|
+
return {
|
|
634
|
+
// See the comment above the `Preloads` component (below) for why this is part of the payload
|
|
635
|
+
P: /*#__PURE__*/ (0, _jsxruntime.jsx)(Preloads, {
|
|
636
|
+
preloadCallbacks: preloadCallbacks
|
|
637
|
+
}),
|
|
638
|
+
b: ctx.sharedContext.buildId,
|
|
639
|
+
p: ctx.assetPrefix,
|
|
640
|
+
c: prepareInitialCanonicalUrl(url),
|
|
641
|
+
i: !!couldBeIntercepted,
|
|
642
|
+
f: [
|
|
643
|
+
[
|
|
644
|
+
initialTree,
|
|
645
|
+
seedData,
|
|
646
|
+
initialHead,
|
|
647
|
+
isPossiblyPartialHead
|
|
648
|
+
]
|
|
649
|
+
],
|
|
650
|
+
m: missingSlots,
|
|
651
|
+
G: [
|
|
652
|
+
GlobalError,
|
|
653
|
+
globalErrorStyles
|
|
654
|
+
],
|
|
655
|
+
s: typeof ctx.renderOpts.postponed === 'string',
|
|
656
|
+
S: workStore.isStaticGeneration
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Preload calls (such as `ReactDOM.preloadStyle` and `ReactDOM.preloadFont`) need to be called during rendering
|
|
661
|
+
* in order to create the appropriate preload tags in the DOM, otherwise they're a no-op. Since we invoke
|
|
662
|
+
* renderToReadableStream with a function that returns component props rather than a component itself, we use
|
|
663
|
+
* this component to "render " the preload calls.
|
|
664
|
+
*/ function Preloads({ preloadCallbacks }) {
|
|
665
|
+
preloadCallbacks.forEach((preloadFn)=>preloadFn());
|
|
666
|
+
return null;
|
|
667
|
+
}
|
|
668
|
+
// This is the data necessary to render <AppRouter /> when an error state is triggered
|
|
669
|
+
async function getErrorRSCPayload(tree, ctx, ssrError, errorType) {
|
|
670
|
+
const { getDynamicParamFromSegment, query, appUsingSizeAdjustment, componentMod: { createMetadataComponents, MetadataBoundary, ViewportBoundary }, url, workStore } = ctx;
|
|
671
|
+
const serveStreamingMetadata = !!ctx.renderOpts.serveStreamingMetadata;
|
|
672
|
+
const { MetadataTree, ViewportTree } = createMetadataComponents({
|
|
673
|
+
tree,
|
|
674
|
+
parsedQuery: query,
|
|
675
|
+
pathname: url.pathname,
|
|
676
|
+
metadataContext: (0, _metadatacontext.createMetadataContext)(ctx.renderOpts),
|
|
677
|
+
errorType,
|
|
678
|
+
getDynamicParamFromSegment,
|
|
679
|
+
appUsingSizeAdjustment,
|
|
680
|
+
workStore,
|
|
681
|
+
MetadataBoundary,
|
|
682
|
+
ViewportBoundary,
|
|
683
|
+
serveStreamingMetadata: serveStreamingMetadata
|
|
684
|
+
});
|
|
685
|
+
const initialHead = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.default.Fragment, {
|
|
686
|
+
children: [
|
|
687
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(NonIndex, {
|
|
688
|
+
pagePath: ctx.pagePath,
|
|
689
|
+
statusCode: ctx.res.statusCode,
|
|
690
|
+
isPossibleServerAction: ctx.isPossibleServerAction
|
|
691
|
+
}),
|
|
692
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(ViewportTree, {}),
|
|
693
|
+
process.env.NODE_ENV === 'development' && /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
|
|
694
|
+
name: "next-error",
|
|
695
|
+
content: "not-found"
|
|
696
|
+
}),
|
|
697
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(MetadataTree, {})
|
|
698
|
+
]
|
|
699
|
+
}, flightDataPathHeadKey);
|
|
700
|
+
const initialTree = (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(tree, getDynamicParamFromSegment, query);
|
|
701
|
+
let err = undefined;
|
|
702
|
+
if (ssrError) {
|
|
703
|
+
err = (0, _iserror.default)(ssrError) ? ssrError : Object.defineProperty(new Error(ssrError + ''), "__NEXT_ERROR_CODE", {
|
|
704
|
+
value: "E394",
|
|
705
|
+
enumerable: false,
|
|
706
|
+
configurable: true
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
// For metadata notFound error there's no global not found boundary on top
|
|
710
|
+
// so we create a not found page with AppRouter
|
|
711
|
+
const seedData = [
|
|
712
|
+
initialTree[0],
|
|
713
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("html", {
|
|
714
|
+
id: "__next_error__",
|
|
715
|
+
children: [
|
|
716
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("head", {}),
|
|
717
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("body", {
|
|
718
|
+
children: process.env.NODE_ENV !== 'production' && err ? /*#__PURE__*/ (0, _jsxruntime.jsx)("template", {
|
|
719
|
+
"data-next-error-message": err.message,
|
|
720
|
+
"data-next-error-digest": 'digest' in err ? err.digest : '',
|
|
721
|
+
"data-next-error-stack": err.stack
|
|
722
|
+
}) : null
|
|
723
|
+
})
|
|
724
|
+
]
|
|
725
|
+
}),
|
|
726
|
+
{},
|
|
727
|
+
null,
|
|
728
|
+
false
|
|
729
|
+
];
|
|
730
|
+
const { GlobalError, styles: globalErrorStyles } = await getGlobalErrorStyles(tree, ctx);
|
|
731
|
+
const isPossiblyPartialHead = workStore.isStaticGeneration && ctx.renderOpts.experimental.isRoutePPREnabled === true;
|
|
732
|
+
return {
|
|
733
|
+
b: ctx.sharedContext.buildId,
|
|
734
|
+
p: ctx.assetPrefix,
|
|
735
|
+
c: prepareInitialCanonicalUrl(url),
|
|
736
|
+
m: undefined,
|
|
737
|
+
i: false,
|
|
738
|
+
f: [
|
|
739
|
+
[
|
|
740
|
+
initialTree,
|
|
741
|
+
seedData,
|
|
742
|
+
initialHead,
|
|
743
|
+
isPossiblyPartialHead
|
|
744
|
+
]
|
|
745
|
+
],
|
|
746
|
+
G: [
|
|
747
|
+
GlobalError,
|
|
748
|
+
globalErrorStyles
|
|
749
|
+
],
|
|
750
|
+
s: typeof ctx.renderOpts.postponed === 'string',
|
|
751
|
+
S: workStore.isStaticGeneration
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
function assertClientReferenceManifest(clientReferenceManifest) {
|
|
755
|
+
if (!clientReferenceManifest) {
|
|
756
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Expected clientReferenceManifest to be defined.'), "__NEXT_ERROR_CODE", {
|
|
757
|
+
value: "E692",
|
|
758
|
+
enumerable: false,
|
|
759
|
+
configurable: true
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
// This component must run in an SSR context. It will render the RSC root component
|
|
764
|
+
function App({ reactServerStream, preinitScripts, clientReferenceManifest, ServerInsertedHTMLProvider, nonce }) {
|
|
765
|
+
preinitScripts();
|
|
766
|
+
const response = _react.default.use((0, _useflightresponse.useFlightStream)(reactServerStream, clientReferenceManifest, nonce));
|
|
767
|
+
const initialState = (0, _createinitialrouterstate.createInitialRouterState)({
|
|
768
|
+
// This is not used during hydration, so we don't have to pass a
|
|
769
|
+
// real timestamp.
|
|
770
|
+
navigatedAt: -1,
|
|
771
|
+
initialFlightData: response.f,
|
|
772
|
+
initialCanonicalUrlParts: response.c,
|
|
773
|
+
initialParallelRoutes: new Map(),
|
|
774
|
+
// location is not initialized in the SSR render
|
|
775
|
+
// it's set to window.location during hydration
|
|
776
|
+
location: null,
|
|
777
|
+
couldBeIntercepted: response.i,
|
|
778
|
+
postponed: response.s,
|
|
779
|
+
prerendered: response.S
|
|
780
|
+
});
|
|
781
|
+
const actionQueue = (0, _approuterinstance.createMutableActionQueue)(initialState, null);
|
|
782
|
+
const { HeadManagerContext } = require('../../shared/lib/head-manager-context.shared-runtime');
|
|
783
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(HeadManagerContext.Provider, {
|
|
784
|
+
value: {
|
|
785
|
+
appDir: true,
|
|
786
|
+
nonce
|
|
787
|
+
},
|
|
788
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(ServerInsertedHTMLProvider, {
|
|
789
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approuter.default, {
|
|
790
|
+
actionQueue: actionQueue,
|
|
791
|
+
globalErrorState: response.G,
|
|
792
|
+
assetPrefix: response.p
|
|
793
|
+
})
|
|
794
|
+
})
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
// @TODO our error stream should be probably just use the same root component. But it was previously
|
|
798
|
+
// different I don't want to figure out if that is meaningful at this time so just keeping the behavior
|
|
799
|
+
// consistent for now.
|
|
800
|
+
function ErrorApp({ reactServerStream, preinitScripts, clientReferenceManifest, ServerInsertedHTMLProvider, nonce }) {
|
|
801
|
+
preinitScripts();
|
|
802
|
+
const response = _react.default.use((0, _useflightresponse.useFlightStream)(reactServerStream, clientReferenceManifest, nonce));
|
|
803
|
+
const initialState = (0, _createinitialrouterstate.createInitialRouterState)({
|
|
804
|
+
// This is not used during hydration, so we don't have to pass a
|
|
805
|
+
// real timestamp.
|
|
806
|
+
navigatedAt: -1,
|
|
807
|
+
initialFlightData: response.f,
|
|
808
|
+
initialCanonicalUrlParts: response.c,
|
|
809
|
+
initialParallelRoutes: new Map(),
|
|
810
|
+
// location is not initialized in the SSR render
|
|
811
|
+
// it's set to window.location during hydration
|
|
812
|
+
location: null,
|
|
813
|
+
couldBeIntercepted: response.i,
|
|
814
|
+
postponed: response.s,
|
|
815
|
+
prerendered: response.S
|
|
816
|
+
});
|
|
817
|
+
const actionQueue = (0, _approuterinstance.createMutableActionQueue)(initialState, null);
|
|
818
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(ServerInsertedHTMLProvider, {
|
|
819
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approuter.default, {
|
|
820
|
+
actionQueue: actionQueue,
|
|
821
|
+
globalErrorState: response.G,
|
|
822
|
+
assetPrefix: response.p
|
|
823
|
+
})
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
async function renderToHTMLOrFlightImpl(req, res, url, pagePath, query, renderOpts, workStore, parsedRequestHeaders, postponedState, serverComponentsHmrCache, sharedContext, fallbackRouteParams) {
|
|
827
|
+
const isNotFoundPath = pagePath === '/404';
|
|
828
|
+
if (isNotFoundPath) {
|
|
829
|
+
res.statusCode = 404;
|
|
830
|
+
}
|
|
831
|
+
// A unique request timestamp used by development to ensure that it's
|
|
832
|
+
// consistent and won't change during this request. This is important to
|
|
833
|
+
// avoid that resources can be deduped by React Float if the same resource is
|
|
834
|
+
// rendered or preloaded multiple times: `<link href="a.css?v={Date.now()}"/>`.
|
|
835
|
+
const requestTimestamp = Date.now();
|
|
836
|
+
const { clientReferenceManifest, serverActionsManifest, ComponentMod, nextFontManifest, serverActions, assetPrefix = '', enableTainting } = renderOpts;
|
|
837
|
+
// We need to expose the bundled `require` API globally for
|
|
838
|
+
// react-server-dom-webpack. This is a hack until we find a better way.
|
|
839
|
+
if (ComponentMod.__next_app__) {
|
|
840
|
+
const instrumented = (0, _clientcomponentrendererlogger.wrapClientComponentLoader)(ComponentMod);
|
|
841
|
+
// When we are prerendering if there is a cacheSignal for tracking
|
|
842
|
+
// cache reads we track calls to `loadChunk` and `require`. This allows us
|
|
843
|
+
// to treat chunk/module loading with similar semantics as cache reads to avoid
|
|
844
|
+
// module loading from causing a prerender to abort too early.
|
|
845
|
+
const shouldTrackModuleLoading = ()=>{
|
|
846
|
+
if (!renderOpts.experimental.cacheComponents) {
|
|
847
|
+
return false;
|
|
848
|
+
}
|
|
849
|
+
if (renderOpts.dev) {
|
|
850
|
+
return true;
|
|
851
|
+
}
|
|
852
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
853
|
+
if (!workUnitStore) {
|
|
854
|
+
return false;
|
|
855
|
+
}
|
|
856
|
+
switch(workUnitStore.type){
|
|
857
|
+
case 'prerender':
|
|
858
|
+
case 'prerender-client':
|
|
859
|
+
case 'prerender-runtime':
|
|
860
|
+
case 'cache':
|
|
861
|
+
case 'private-cache':
|
|
862
|
+
return true;
|
|
863
|
+
case 'prerender-ppr':
|
|
864
|
+
case 'prerender-legacy':
|
|
865
|
+
case 'request':
|
|
866
|
+
case 'unstable-cache':
|
|
867
|
+
return false;
|
|
868
|
+
default:
|
|
869
|
+
workUnitStore;
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
const __next_require__ = (...args)=>{
|
|
873
|
+
const exportsOrPromise = instrumented.require(...args);
|
|
874
|
+
if (shouldTrackModuleLoading()) {
|
|
875
|
+
// requiring an async module returns a promise.
|
|
876
|
+
(0, _trackmoduleloadingexternal.trackPendingImport)(exportsOrPromise);
|
|
877
|
+
}
|
|
878
|
+
return exportsOrPromise;
|
|
879
|
+
};
|
|
880
|
+
// @ts-expect-error
|
|
881
|
+
globalThis.__next_require__ = __next_require__;
|
|
882
|
+
const __next_chunk_load__ = (...args)=>{
|
|
883
|
+
const loadingChunk = instrumented.loadChunk(...args);
|
|
884
|
+
if (shouldTrackModuleLoading()) {
|
|
885
|
+
(0, _trackmoduleloadingexternal.trackPendingChunkLoad)(loadingChunk);
|
|
886
|
+
}
|
|
887
|
+
return loadingChunk;
|
|
888
|
+
};
|
|
889
|
+
// @ts-expect-error
|
|
890
|
+
globalThis.__next_chunk_load__ = __next_chunk_load__;
|
|
891
|
+
}
|
|
892
|
+
if (process.env.NODE_ENV === 'development') {
|
|
893
|
+
// reset isr status at start of request
|
|
894
|
+
const { pathname } = new URL(req.url || '/', 'http://n');
|
|
895
|
+
renderOpts.setIsrStatus == null ? void 0 : renderOpts.setIsrStatus.call(renderOpts, pathname, null);
|
|
896
|
+
}
|
|
897
|
+
if (// The type check here ensures that `req` is correctly typed, and the
|
|
898
|
+
// environment variable check provides dead code elimination.
|
|
899
|
+
process.env.NEXT_RUNTIME !== 'edge' && (0, _helpers.isNodeNextRequest)(req)) {
|
|
900
|
+
res.onClose(()=>{
|
|
901
|
+
// We stop tracking fetch metrics when the response closes, since we
|
|
902
|
+
// report them at that time.
|
|
903
|
+
workStore.shouldTrackFetchMetrics = false;
|
|
904
|
+
});
|
|
905
|
+
req.originalRequest.on('end', ()=>{
|
|
906
|
+
if ('performance' in globalThis) {
|
|
907
|
+
const metrics = (0, _clientcomponentrendererlogger.getClientComponentLoaderMetrics)({
|
|
908
|
+
reset: true
|
|
909
|
+
});
|
|
910
|
+
if (metrics) {
|
|
911
|
+
(0, _tracer.getTracer)().startSpan(_constants.NextNodeServerSpan.clientComponentLoading, {
|
|
912
|
+
startTime: metrics.clientComponentLoadStart,
|
|
913
|
+
attributes: {
|
|
914
|
+
'next.clientComponentLoadCount': metrics.clientComponentLoadCount,
|
|
915
|
+
'next.span_type': _constants.NextNodeServerSpan.clientComponentLoading
|
|
916
|
+
}
|
|
917
|
+
}).end(metrics.clientComponentLoadStart + metrics.clientComponentLoadTimes);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
const metadata = {
|
|
923
|
+
statusCode: isNotFoundPath ? 404 : undefined
|
|
924
|
+
};
|
|
925
|
+
const appUsingSizeAdjustment = !!(nextFontManifest == null ? void 0 : nextFontManifest.appUsingSizeAdjust);
|
|
926
|
+
assertClientReferenceManifest(clientReferenceManifest);
|
|
927
|
+
const serverModuleMap = (0, _actionutils.createServerModuleMap)({
|
|
928
|
+
serverActionsManifest
|
|
929
|
+
});
|
|
930
|
+
(0, _encryptionutils.setReferenceManifestsSingleton)({
|
|
931
|
+
page: workStore.page,
|
|
932
|
+
clientReferenceManifest,
|
|
933
|
+
serverActionsManifest,
|
|
934
|
+
serverModuleMap
|
|
935
|
+
});
|
|
936
|
+
ComponentMod.patchFetch();
|
|
937
|
+
// Pull out the hooks/references from the component.
|
|
938
|
+
const { tree: loaderTree, taintObjectReference } = ComponentMod;
|
|
939
|
+
if (enableTainting) {
|
|
940
|
+
taintObjectReference('Do not pass process.env to Client Components since it will leak sensitive data', process.env);
|
|
941
|
+
}
|
|
942
|
+
workStore.fetchMetrics = [];
|
|
943
|
+
metadata.fetchMetrics = workStore.fetchMetrics;
|
|
944
|
+
// don't modify original query object
|
|
945
|
+
query = {
|
|
946
|
+
...query
|
|
947
|
+
};
|
|
948
|
+
(0, _internalutils.stripInternalQueries)(query);
|
|
949
|
+
const { flightRouterState, isPrefetchRequest, isRuntimePrefetchRequest, isRSCRequest, isDevWarmupRequest, isHmrRefresh, nonce } = parsedRequestHeaders;
|
|
950
|
+
const { isStaticGeneration } = workStore;
|
|
951
|
+
/**
|
|
952
|
+
* The metadata items array created in next-app-loader with all relevant information
|
|
953
|
+
* that we need to resolve the final metadata.
|
|
954
|
+
*/ let requestId;
|
|
955
|
+
if (isStaticGeneration) {
|
|
956
|
+
requestId = Buffer.from(await crypto.subtle.digest('SHA-1', Buffer.from(req.url))).toString('hex');
|
|
957
|
+
} else if (process.env.NEXT_RUNTIME === 'edge') {
|
|
958
|
+
requestId = crypto.randomUUID();
|
|
959
|
+
} else {
|
|
960
|
+
requestId = require('next/dist/compiled/nanoid').nanoid();
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Dynamic parameters. E.g. when you visit `/dashboard/vercel` which is rendered by `/dashboard/[slug]` the value will be {"slug": "vercel"}.
|
|
964
|
+
*/ const params = renderOpts.params ?? {};
|
|
965
|
+
const getDynamicParamFromSegment = makeGetDynamicParamFromSegment(params, pagePath, fallbackRouteParams);
|
|
966
|
+
const isPossibleActionRequest = (0, _serveractionrequestmeta.getIsPossibleServerAction)(req);
|
|
967
|
+
const implicitTags = await (0, _implicittags.getImplicitTags)(workStore.page, url, fallbackRouteParams);
|
|
968
|
+
const ctx = {
|
|
969
|
+
componentMod: ComponentMod,
|
|
970
|
+
url,
|
|
971
|
+
renderOpts,
|
|
972
|
+
workStore,
|
|
973
|
+
parsedRequestHeaders,
|
|
974
|
+
getDynamicParamFromSegment,
|
|
975
|
+
query,
|
|
976
|
+
isPrefetch: isPrefetchRequest,
|
|
977
|
+
isPossibleServerAction: isPossibleActionRequest,
|
|
978
|
+
requestTimestamp,
|
|
979
|
+
appUsingSizeAdjustment,
|
|
980
|
+
flightRouterState,
|
|
981
|
+
requestId,
|
|
982
|
+
pagePath,
|
|
983
|
+
clientReferenceManifest,
|
|
984
|
+
assetPrefix,
|
|
985
|
+
isNotFoundPath,
|
|
986
|
+
nonce,
|
|
987
|
+
res,
|
|
988
|
+
sharedContext,
|
|
989
|
+
implicitTags
|
|
990
|
+
};
|
|
991
|
+
(0, _tracer.getTracer)().setRootSpanAttribute('next.route', pagePath);
|
|
992
|
+
if (isStaticGeneration) {
|
|
993
|
+
// We're either building or revalidating. In either case we need to
|
|
994
|
+
// prerender our page rather than render it.
|
|
995
|
+
const prerenderToStreamWithTracing = (0, _tracer.getTracer)().wrap(_constants.AppRenderSpan.getBodyResult, {
|
|
996
|
+
spanName: `prerender route (app) ${pagePath}`,
|
|
997
|
+
attributes: {
|
|
998
|
+
'next.route': pagePath
|
|
999
|
+
}
|
|
1000
|
+
}, prerenderToStream);
|
|
1001
|
+
const response = await prerenderToStreamWithTracing(req, res, ctx, metadata, loaderTree, fallbackRouteParams);
|
|
1002
|
+
// If we're debugging partial prerendering, print all the dynamic API accesses
|
|
1003
|
+
// that occurred during the render.
|
|
1004
|
+
// @TODO move into renderToStream function
|
|
1005
|
+
if (response.dynamicAccess && (0, _dynamicrendering.accessedDynamicData)(response.dynamicAccess) && renderOpts.isDebugDynamicAccesses) {
|
|
1006
|
+
(0, _log.warn)('The following dynamic usage was detected:');
|
|
1007
|
+
for (const access of (0, _dynamicrendering.formatDynamicAPIAccesses)(response.dynamicAccess)){
|
|
1008
|
+
(0, _log.warn)(access);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
// If we encountered any unexpected errors during build we fail the
|
|
1012
|
+
// prerendering phase and the build.
|
|
1013
|
+
if (workStore.invalidDynamicUsageError) {
|
|
1014
|
+
(0, _dynamicrendering.logDisallowedDynamicError)(workStore, workStore.invalidDynamicUsageError);
|
|
1015
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
1016
|
+
}
|
|
1017
|
+
if (response.digestErrorsMap.size) {
|
|
1018
|
+
const buildFailingError = response.digestErrorsMap.values().next().value;
|
|
1019
|
+
if (buildFailingError) throw buildFailingError;
|
|
1020
|
+
}
|
|
1021
|
+
// Pick first userland SSR error, which is also not a RSC error.
|
|
1022
|
+
if (response.ssrErrors.length) {
|
|
1023
|
+
const buildFailingError = response.ssrErrors.find((err)=>(0, _createerrorhandler.isUserLandError)(err));
|
|
1024
|
+
if (buildFailingError) throw buildFailingError;
|
|
1025
|
+
}
|
|
1026
|
+
const options = {
|
|
1027
|
+
metadata,
|
|
1028
|
+
contentType: _constants1.HTML_CONTENT_TYPE_HEADER
|
|
1029
|
+
};
|
|
1030
|
+
// If we have pending revalidates, wait until they are all resolved.
|
|
1031
|
+
if (workStore.pendingRevalidates || workStore.pendingRevalidateWrites || workStore.pendingRevalidatedTags) {
|
|
1032
|
+
const pendingPromise = (0, _revalidationutils.executeRevalidates)(workStore).finally(()=>{
|
|
1033
|
+
if (process.env.NEXT_PRIVATE_DEBUG_CACHE) {
|
|
1034
|
+
console.log('pending revalidates promise finished for:', url);
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
if (renderOpts.waitUntil) {
|
|
1038
|
+
renderOpts.waitUntil(pendingPromise);
|
|
1039
|
+
} else {
|
|
1040
|
+
options.waitUntil = pendingPromise;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
applyMetadataFromPrerenderResult(response, metadata, workStore);
|
|
1044
|
+
if (response.renderResumeDataCache) {
|
|
1045
|
+
metadata.renderResumeDataCache = response.renderResumeDataCache;
|
|
1046
|
+
}
|
|
1047
|
+
return new _renderresult.default(await (0, _nodewebstreamshelper.streamToString)(response.stream), options);
|
|
1048
|
+
} else {
|
|
1049
|
+
// We're rendering dynamically
|
|
1050
|
+
const renderResumeDataCache = renderOpts.renderResumeDataCache ?? (postponedState == null ? void 0 : postponedState.renderResumeDataCache);
|
|
1051
|
+
const rootParams = (0, _createcomponenttree.getRootParams)(loaderTree, ctx.getDynamicParamFromSegment);
|
|
1052
|
+
const devValidatingFallbackParams = (0, _requestmeta.getRequestMeta)(req, 'devValidatingFallbackParams') || null;
|
|
1053
|
+
const requestStore = (0, _requeststore.createRequestStoreForRender)(req, res, url, rootParams, implicitTags, renderOpts.onUpdateCookies, renderOpts.previewProps, isHmrRefresh, serverComponentsHmrCache, renderResumeDataCache, devValidatingFallbackParams);
|
|
1054
|
+
if (process.env.NODE_ENV === 'development' && renderOpts.setIsrStatus && // The type check here ensures that `req` is correctly typed, and the
|
|
1055
|
+
// environment variable check provides dead code elimination.
|
|
1056
|
+
process.env.NEXT_RUNTIME !== 'edge' && (0, _helpers.isNodeNextRequest)(req) && !isDevWarmupRequest) {
|
|
1057
|
+
const setIsrStatus = renderOpts.setIsrStatus;
|
|
1058
|
+
req.originalRequest.on('end', ()=>{
|
|
1059
|
+
if (!requestStore.usedDynamic && !workStore.forceDynamic) {
|
|
1060
|
+
// only node can be ISR so we only need to update the status here
|
|
1061
|
+
const { pathname } = new URL(req.url || '/', 'http://n');
|
|
1062
|
+
setIsrStatus(pathname, true);
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
if (isDevWarmupRequest) {
|
|
1067
|
+
return warmupDevRender(req, ctx);
|
|
1068
|
+
} else if (isRSCRequest) {
|
|
1069
|
+
if (isRuntimePrefetchRequest) {
|
|
1070
|
+
return generateRuntimePrefetchResult(req, res, ctx, requestStore);
|
|
1071
|
+
} else {
|
|
1072
|
+
return generateDynamicFlightRenderResult(req, ctx, requestStore);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
const renderToStreamWithTracing = (0, _tracer.getTracer)().wrap(_constants.AppRenderSpan.getBodyResult, {
|
|
1076
|
+
spanName: `render route (app) ${pagePath}`,
|
|
1077
|
+
attributes: {
|
|
1078
|
+
'next.route': pagePath
|
|
1079
|
+
}
|
|
1080
|
+
}, renderToStream);
|
|
1081
|
+
let formState = null;
|
|
1082
|
+
if (isPossibleActionRequest) {
|
|
1083
|
+
// For action requests, we handle them differently with a special render result.
|
|
1084
|
+
const actionRequestResult = await (0, _actionhandler.handleAction)({
|
|
1085
|
+
req,
|
|
1086
|
+
res,
|
|
1087
|
+
ComponentMod,
|
|
1088
|
+
serverModuleMap,
|
|
1089
|
+
generateFlight: generateDynamicFlightRenderResult,
|
|
1090
|
+
workStore,
|
|
1091
|
+
requestStore,
|
|
1092
|
+
serverActions,
|
|
1093
|
+
ctx,
|
|
1094
|
+
metadata
|
|
1095
|
+
});
|
|
1096
|
+
if (actionRequestResult) {
|
|
1097
|
+
if (actionRequestResult.type === 'not-found') {
|
|
1098
|
+
const notFoundLoaderTree = createNotFoundLoaderTree(loaderTree);
|
|
1099
|
+
res.statusCode = 404;
|
|
1100
|
+
metadata.statusCode = 404;
|
|
1101
|
+
const stream = await renderToStreamWithTracing(requestStore, req, res, ctx, notFoundLoaderTree, formState, postponedState, metadata, devValidatingFallbackParams);
|
|
1102
|
+
return new _renderresult.default(stream, {
|
|
1103
|
+
metadata,
|
|
1104
|
+
contentType: _constants1.HTML_CONTENT_TYPE_HEADER
|
|
1105
|
+
});
|
|
1106
|
+
} else if (actionRequestResult.type === 'done') {
|
|
1107
|
+
if (actionRequestResult.result) {
|
|
1108
|
+
actionRequestResult.result.assignMetadata(metadata);
|
|
1109
|
+
return actionRequestResult.result;
|
|
1110
|
+
} else if (actionRequestResult.formState) {
|
|
1111
|
+
formState = actionRequestResult.formState;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
const options = {
|
|
1117
|
+
metadata,
|
|
1118
|
+
contentType: _constants1.HTML_CONTENT_TYPE_HEADER
|
|
1119
|
+
};
|
|
1120
|
+
const stream = await renderToStreamWithTracing(requestStore, req, res, ctx, loaderTree, formState, postponedState, metadata, devValidatingFallbackParams);
|
|
1121
|
+
// Invalid dynamic usages should only error the request in development.
|
|
1122
|
+
// In production, it's better to produce a result.
|
|
1123
|
+
// (the dynamic error will still be thrown inside the component tree, but it's catchable by error boundaries)
|
|
1124
|
+
if (workStore.invalidDynamicUsageError && workStore.dev) {
|
|
1125
|
+
throw workStore.invalidDynamicUsageError;
|
|
1126
|
+
}
|
|
1127
|
+
// If we have pending revalidates, wait until they are all resolved.
|
|
1128
|
+
if (workStore.pendingRevalidates || workStore.pendingRevalidateWrites || workStore.pendingRevalidatedTags) {
|
|
1129
|
+
const pendingPromise = (0, _revalidationutils.executeRevalidates)(workStore).finally(()=>{
|
|
1130
|
+
if (process.env.NEXT_PRIVATE_DEBUG_CACHE) {
|
|
1131
|
+
console.log('pending revalidates promise finished for:', url);
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
if (renderOpts.waitUntil) {
|
|
1135
|
+
renderOpts.waitUntil(pendingPromise);
|
|
1136
|
+
} else {
|
|
1137
|
+
options.waitUntil = pendingPromise;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
// Create the new render result for the response.
|
|
1141
|
+
return new _renderresult.default(stream, options);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
const renderToHTMLOrFlight = (req, res, pagePath, query, fallbackRouteParams, renderOpts, serverComponentsHmrCache, isDevWarmup, sharedContext)=>{
|
|
1145
|
+
var _renderOpts_previewProps;
|
|
1146
|
+
if (!req.url) {
|
|
1147
|
+
throw Object.defineProperty(new Error('Invalid URL'), "__NEXT_ERROR_CODE", {
|
|
1148
|
+
value: "E182",
|
|
1149
|
+
enumerable: false,
|
|
1150
|
+
configurable: true
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
const url = (0, _parserelativeurl.parseRelativeUrl)(req.url, undefined, false);
|
|
1154
|
+
// We read these values from the request object as, in certain cases,
|
|
1155
|
+
// base-server will strip them to opt into different rendering behavior.
|
|
1156
|
+
const parsedRequestHeaders = parseRequestHeaders(req.headers, {
|
|
1157
|
+
isDevWarmup,
|
|
1158
|
+
isRoutePPREnabled: renderOpts.experimental.isRoutePPREnabled === true,
|
|
1159
|
+
previewModeId: (_renderOpts_previewProps = renderOpts.previewProps) == null ? void 0 : _renderOpts_previewProps.previewModeId
|
|
1160
|
+
});
|
|
1161
|
+
const { isPrefetchRequest, previouslyRevalidatedTags } = parsedRequestHeaders;
|
|
1162
|
+
let postponedState = null;
|
|
1163
|
+
// If provided, the postpone state should be parsed so it can be provided to
|
|
1164
|
+
// React.
|
|
1165
|
+
if (typeof renderOpts.postponed === 'string') {
|
|
1166
|
+
if (fallbackRouteParams) {
|
|
1167
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('postponed state should not be provided when fallback params are provided'), "__NEXT_ERROR_CODE", {
|
|
1168
|
+
value: "E592",
|
|
1169
|
+
enumerable: false,
|
|
1170
|
+
configurable: true
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
postponedState = (0, _postponedstate.parsePostponedState)(renderOpts.postponed, renderOpts.params);
|
|
1174
|
+
}
|
|
1175
|
+
if ((postponedState == null ? void 0 : postponedState.renderResumeDataCache) && renderOpts.renderResumeDataCache) {
|
|
1176
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('postponed state and dev warmup immutable resume data cache should not be provided together'), "__NEXT_ERROR_CODE", {
|
|
1177
|
+
value: "E589",
|
|
1178
|
+
enumerable: false,
|
|
1179
|
+
configurable: true
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
const workStore = (0, _workstore.createWorkStore)({
|
|
1183
|
+
page: renderOpts.routeModule.definition.page,
|
|
1184
|
+
renderOpts,
|
|
1185
|
+
// @TODO move to workUnitStore of type Request
|
|
1186
|
+
isPrefetchRequest,
|
|
1187
|
+
buildId: sharedContext.buildId,
|
|
1188
|
+
previouslyRevalidatedTags
|
|
1189
|
+
});
|
|
1190
|
+
return _workasyncstorageexternal.workAsyncStorage.run(workStore, // The function to run
|
|
1191
|
+
renderToHTMLOrFlightImpl, // all of it's args
|
|
1192
|
+
req, res, url, pagePath, query, renderOpts, workStore, parsedRequestHeaders, postponedState, serverComponentsHmrCache, sharedContext, fallbackRouteParams);
|
|
1193
|
+
};
|
|
1194
|
+
function applyMetadataFromPrerenderResult(response, metadata, workStore) {
|
|
1195
|
+
var _metadata_cacheControl;
|
|
1196
|
+
if (response.collectedTags) {
|
|
1197
|
+
metadata.fetchTags = response.collectedTags.join(',');
|
|
1198
|
+
}
|
|
1199
|
+
// Let the client router know how long to keep the cached entry around.
|
|
1200
|
+
const staleHeader = String(response.collectedStale);
|
|
1201
|
+
metadata.headers ??= {};
|
|
1202
|
+
metadata.headers[_approuterheaders.NEXT_ROUTER_STALE_TIME_HEADER] = staleHeader;
|
|
1203
|
+
// If force static is specifically set to false, we should not revalidate
|
|
1204
|
+
// the page.
|
|
1205
|
+
if (workStore.forceStatic === false || response.collectedRevalidate === 0) {
|
|
1206
|
+
metadata.cacheControl = {
|
|
1207
|
+
revalidate: 0,
|
|
1208
|
+
expire: undefined
|
|
1209
|
+
};
|
|
1210
|
+
} else {
|
|
1211
|
+
// Copy the cache control value onto the render result metadata.
|
|
1212
|
+
metadata.cacheControl = {
|
|
1213
|
+
revalidate: response.collectedRevalidate >= _constants1.INFINITE_CACHE ? false : response.collectedRevalidate,
|
|
1214
|
+
expire: response.collectedExpire >= _constants1.INFINITE_CACHE ? undefined : response.collectedExpire
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
// provide bailout info for debugging
|
|
1218
|
+
if (((_metadata_cacheControl = metadata.cacheControl) == null ? void 0 : _metadata_cacheControl.revalidate) === 0) {
|
|
1219
|
+
metadata.staticBailoutInfo = {
|
|
1220
|
+
description: workStore.dynamicUsageDescription,
|
|
1221
|
+
stack: workStore.dynamicUsageStack
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
async function renderToStream(requestStore, req, res, ctx, tree, formState, postponedState, metadata, devValidatingFallbackParams) {
|
|
1226
|
+
const { assetPrefix, nonce, pagePath, renderOpts } = ctx;
|
|
1227
|
+
const { basePath, buildManifest, clientReferenceManifest, ComponentMod, crossOrigin, dev = false, experimental, nextExport = false, onInstrumentationRequestError, page, reactMaxHeadersLength, shouldWaitOnAllReady, subresourceIntegrityManifest, supportsDynamicResponse } = renderOpts;
|
|
1228
|
+
assertClientReferenceManifest(clientReferenceManifest);
|
|
1229
|
+
const { ServerInsertedHTMLProvider, renderServerInsertedHTML } = (0, _serverinsertedhtml.createServerInsertedHTML)();
|
|
1230
|
+
const getServerInsertedMetadata = (0, _createserverinsertedmetadata.createServerInsertedMetadata)(nonce);
|
|
1231
|
+
const tracingMetadata = (0, _utils1.getTracedMetadata)((0, _tracer.getTracer)().getTracePropagationData(), experimental.clientTraceMetadata);
|
|
1232
|
+
const polyfills = buildManifest.polyfillFiles.filter((polyfill)=>polyfill.endsWith('.js') && !polyfill.endsWith('.module.js')).map((polyfill)=>({
|
|
1233
|
+
src: `${assetPrefix}/_next/${polyfill}${(0, _getassetquerystring.getAssetQueryString)(ctx, false)}`,
|
|
1234
|
+
integrity: subresourceIntegrityManifest == null ? void 0 : subresourceIntegrityManifest[polyfill],
|
|
1235
|
+
crossOrigin,
|
|
1236
|
+
noModule: true,
|
|
1237
|
+
nonce
|
|
1238
|
+
}));
|
|
1239
|
+
const [preinitScripts, bootstrapScript] = (0, _requiredscripts.getRequiredScripts)(buildManifest, // Why is assetPrefix optional on renderOpts?
|
|
1240
|
+
// @TODO make it default empty string on renderOpts and get rid of it from ctx
|
|
1241
|
+
assetPrefix, crossOrigin, subresourceIntegrityManifest, (0, _getassetquerystring.getAssetQueryString)(ctx, true), nonce, page);
|
|
1242
|
+
const reactServerErrorsByDigest = new Map();
|
|
1243
|
+
const silenceLogger = false;
|
|
1244
|
+
function onHTMLRenderRSCError(err) {
|
|
1245
|
+
return onInstrumentationRequestError == null ? void 0 : onInstrumentationRequestError(err, req, createErrorContext(ctx, 'react-server-components'));
|
|
1246
|
+
}
|
|
1247
|
+
const serverComponentsErrorHandler = (0, _createerrorhandler.createHTMLReactServerErrorHandler)(dev, nextExport, reactServerErrorsByDigest, silenceLogger, onHTMLRenderRSCError);
|
|
1248
|
+
function onHTMLRenderSSRError(err) {
|
|
1249
|
+
return onInstrumentationRequestError == null ? void 0 : onInstrumentationRequestError(err, req, createErrorContext(ctx, 'server-rendering'));
|
|
1250
|
+
}
|
|
1251
|
+
const allCapturedErrors = [];
|
|
1252
|
+
const htmlRendererErrorHandler = (0, _createerrorhandler.createHTMLErrorHandler)(dev, nextExport, reactServerErrorsByDigest, allCapturedErrors, silenceLogger, onHTMLRenderSSRError);
|
|
1253
|
+
let reactServerResult = null;
|
|
1254
|
+
const setHeader = res.setHeader.bind(res);
|
|
1255
|
+
const appendHeader = res.appendHeader.bind(res);
|
|
1256
|
+
try {
|
|
1257
|
+
if (// We only want this behavior when running `next dev`
|
|
1258
|
+
dev && // We only want this behavior when we have React's dev builds available
|
|
1259
|
+
process.env.NODE_ENV === 'development' && // Edge routes never prerender so we don't have a Prerender environment for anything in edge runtime
|
|
1260
|
+
process.env.NEXT_RUNTIME !== 'edge' && // We only have a Prerender environment for projects opted into cacheComponents
|
|
1261
|
+
experimental.cacheComponents) {
|
|
1262
|
+
// This is a dynamic render. We don't do dynamic tracking because we're not prerendering
|
|
1263
|
+
const RSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
1264
|
+
const [resolveValidation, validationOutlet] = createValidationOutlet();
|
|
1265
|
+
RSCPayload._validation = validationOutlet;
|
|
1266
|
+
const reactServerStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, _apprenderrenderutils.scheduleInSequentialTasks, ()=>{
|
|
1267
|
+
requestStore.prerenderPhase = true;
|
|
1268
|
+
return ComponentMod.renderToReadableStream(RSCPayload, clientReferenceManifest.clientModules, {
|
|
1269
|
+
onError: serverComponentsErrorHandler,
|
|
1270
|
+
environmentName: ()=>requestStore.prerenderPhase === true ? 'Prerender' : 'Server',
|
|
1271
|
+
filterStackFrame
|
|
1272
|
+
});
|
|
1273
|
+
}, ()=>{
|
|
1274
|
+
requestStore.prerenderPhase = false;
|
|
1275
|
+
});
|
|
1276
|
+
spawnDynamicValidationInDev(resolveValidation, tree, ctx, res.statusCode === 404, clientReferenceManifest, requestStore, devValidatingFallbackParams);
|
|
1277
|
+
reactServerResult = new _apprenderprerenderutils.ReactServerResult(reactServerStream);
|
|
1278
|
+
} else {
|
|
1279
|
+
// This is a dynamic render. We don't do dynamic tracking because we're not prerendering
|
|
1280
|
+
const RSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
1281
|
+
reactServerResult = new _apprenderprerenderutils.ReactServerResult(_workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, ComponentMod.renderToReadableStream, RSCPayload, clientReferenceManifest.clientModules, {
|
|
1282
|
+
filterStackFrame,
|
|
1283
|
+
onError: serverComponentsErrorHandler
|
|
1284
|
+
}));
|
|
1285
|
+
}
|
|
1286
|
+
// React doesn't start rendering synchronously but we want the RSC render to have a chance to start
|
|
1287
|
+
// before we begin SSR rendering because we want to capture any available preload headers so we tick
|
|
1288
|
+
// one task before continuing
|
|
1289
|
+
await (0, _scheduler.waitAtLeastOneReactRenderTask)();
|
|
1290
|
+
// If provided, the postpone state should be parsed as JSON so it can be
|
|
1291
|
+
// provided to React.
|
|
1292
|
+
if (typeof renderOpts.postponed === 'string') {
|
|
1293
|
+
if ((postponedState == null ? void 0 : postponedState.type) === _postponedstate.DynamicState.DATA) {
|
|
1294
|
+
// We have a complete HTML Document in the prerender but we need to
|
|
1295
|
+
// still include the new server component render because it was not included
|
|
1296
|
+
// in the static prelude.
|
|
1297
|
+
const inlinedReactServerDataStream = (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.tee(), nonce, formState);
|
|
1298
|
+
return (0, _nodewebstreamshelper.chainStreams)(inlinedReactServerDataStream, (0, _nodewebstreamshelper.createDocumentClosingStream)());
|
|
1299
|
+
} else if (postponedState) {
|
|
1300
|
+
// We assume we have dynamic HTML requiring a resume render to complete
|
|
1301
|
+
const { postponed, preludeState } = (0, _postponedstate.getPostponedFromState)(postponedState);
|
|
1302
|
+
const resume = require('react-dom/server').resume;
|
|
1303
|
+
const htmlStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, resume, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
1304
|
+
reactServerStream: reactServerResult.tee(),
|
|
1305
|
+
preinitScripts: preinitScripts,
|
|
1306
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
1307
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
1308
|
+
nonce: nonce
|
|
1309
|
+
}), postponed, {
|
|
1310
|
+
onError: htmlRendererErrorHandler,
|
|
1311
|
+
nonce
|
|
1312
|
+
});
|
|
1313
|
+
const getServerInsertedHTML = (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
1314
|
+
polyfills,
|
|
1315
|
+
renderServerInsertedHTML,
|
|
1316
|
+
serverCapturedErrors: allCapturedErrors,
|
|
1317
|
+
basePath,
|
|
1318
|
+
tracingMetadata: tracingMetadata
|
|
1319
|
+
});
|
|
1320
|
+
return await (0, _nodewebstreamshelper.continueDynamicHTMLResume)(htmlStream, {
|
|
1321
|
+
// If the prelude is empty (i.e. is no static shell), we should wait for initial HTML to be rendered
|
|
1322
|
+
// to avoid injecting RSC data too early.
|
|
1323
|
+
// If we have a non-empty-prelude (i.e. a static HTML shell), then it's already been sent separately,
|
|
1324
|
+
// so we shouldn't wait for any HTML to be emitted from the resume before sending RSC data.
|
|
1325
|
+
delayDataUntilFirstHtmlChunk: preludeState === _postponedstate.DynamicHTMLPreludeState.Empty,
|
|
1326
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.consume(), nonce, formState),
|
|
1327
|
+
getServerInsertedHTML,
|
|
1328
|
+
getServerInsertedMetadata
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
// This is a regular dynamic render
|
|
1333
|
+
const renderToReadableStream = require('react-dom/server').renderToReadableStream;
|
|
1334
|
+
const htmlStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, renderToReadableStream, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
1335
|
+
reactServerStream: reactServerResult.tee(),
|
|
1336
|
+
preinitScripts: preinitScripts,
|
|
1337
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
1338
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
1339
|
+
nonce: nonce
|
|
1340
|
+
}), {
|
|
1341
|
+
onError: htmlRendererErrorHandler,
|
|
1342
|
+
nonce,
|
|
1343
|
+
onHeaders: (headers)=>{
|
|
1344
|
+
headers.forEach((value, key)=>{
|
|
1345
|
+
appendHeader(key, value);
|
|
1346
|
+
});
|
|
1347
|
+
},
|
|
1348
|
+
maxHeadersLength: reactMaxHeadersLength,
|
|
1349
|
+
bootstrapScripts: [
|
|
1350
|
+
bootstrapScript
|
|
1351
|
+
],
|
|
1352
|
+
formState
|
|
1353
|
+
});
|
|
1354
|
+
const getServerInsertedHTML = (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
1355
|
+
polyfills,
|
|
1356
|
+
renderServerInsertedHTML,
|
|
1357
|
+
serverCapturedErrors: allCapturedErrors,
|
|
1358
|
+
basePath,
|
|
1359
|
+
tracingMetadata: tracingMetadata
|
|
1360
|
+
});
|
|
1361
|
+
/**
|
|
1362
|
+
* Rules of Static & Dynamic HTML:
|
|
1363
|
+
*
|
|
1364
|
+
* 1.) We must generate static HTML unless the caller explicitly opts
|
|
1365
|
+
* in to dynamic HTML support.
|
|
1366
|
+
*
|
|
1367
|
+
* 2.) If dynamic HTML support is requested, we must honor that request
|
|
1368
|
+
* or throw an error. It is the sole responsibility of the caller to
|
|
1369
|
+
* ensure they aren't e.g. requesting dynamic HTML for an AMP page.
|
|
1370
|
+
*
|
|
1371
|
+
* 3.) If `shouldWaitOnAllReady` is true, which indicates we need to
|
|
1372
|
+
* resolve all suspenses and generate a full HTML. e.g. when it's a
|
|
1373
|
+
* html limited bot requests, we produce the full HTML content.
|
|
1374
|
+
*
|
|
1375
|
+
* These rules help ensure that other existing features like request caching,
|
|
1376
|
+
* coalescing, and ISR continue working as intended.
|
|
1377
|
+
*/ const generateStaticHTML = supportsDynamicResponse !== true || !!shouldWaitOnAllReady;
|
|
1378
|
+
return await (0, _nodewebstreamshelper.continueFizzStream)(htmlStream, {
|
|
1379
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.consume(), nonce, formState),
|
|
1380
|
+
isStaticGeneration: generateStaticHTML,
|
|
1381
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
1382
|
+
buildId: ctx.workStore.buildId,
|
|
1383
|
+
getServerInsertedHTML,
|
|
1384
|
+
getServerInsertedMetadata,
|
|
1385
|
+
validateRootLayout: dev
|
|
1386
|
+
});
|
|
1387
|
+
} catch (err) {
|
|
1388
|
+
if ((0, _staticgenerationbailout.isStaticGenBailoutError)(err) || typeof err === 'object' && err !== null && 'message' in err && typeof err.message === 'string' && err.message.includes('https://nextjs.org/docs/advanced-features/static-html-export')) {
|
|
1389
|
+
// Ensure that "next dev" prints the red error overlay
|
|
1390
|
+
throw err;
|
|
1391
|
+
}
|
|
1392
|
+
// If a bailout made it to this point, it means it wasn't wrapped inside
|
|
1393
|
+
// a suspense boundary.
|
|
1394
|
+
const shouldBailoutToCSR = (0, _bailouttocsr.isBailoutToCSRError)(err);
|
|
1395
|
+
if (shouldBailoutToCSR) {
|
|
1396
|
+
const stack = (0, _formatservererror.getStackWithoutErrorMessage)(err);
|
|
1397
|
+
(0, _log.error)(`${err.reason} should be wrapped in a suspense boundary at page "${pagePath}". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout\n${stack}`);
|
|
1398
|
+
throw err;
|
|
1399
|
+
}
|
|
1400
|
+
let errorType;
|
|
1401
|
+
if ((0, _httpaccessfallback.isHTTPAccessFallbackError)(err)) {
|
|
1402
|
+
res.statusCode = (0, _httpaccessfallback.getAccessFallbackHTTPStatus)(err);
|
|
1403
|
+
metadata.statusCode = res.statusCode;
|
|
1404
|
+
errorType = (0, _httpaccessfallback.getAccessFallbackErrorTypeByStatus)(res.statusCode);
|
|
1405
|
+
} else if ((0, _redirecterror.isRedirectError)(err)) {
|
|
1406
|
+
errorType = 'redirect';
|
|
1407
|
+
res.statusCode = (0, _redirect.getRedirectStatusCodeFromError)(err);
|
|
1408
|
+
metadata.statusCode = res.statusCode;
|
|
1409
|
+
const redirectUrl = (0, _addpathprefix.addPathPrefix)((0, _redirect.getURLFromRedirectError)(err), basePath);
|
|
1410
|
+
// If there were mutable cookies set, we need to set them on the
|
|
1411
|
+
// response.
|
|
1412
|
+
const headers = new Headers();
|
|
1413
|
+
if ((0, _requestcookies.appendMutableCookies)(headers, requestStore.mutableCookies)) {
|
|
1414
|
+
setHeader('set-cookie', Array.from(headers.values()));
|
|
1415
|
+
}
|
|
1416
|
+
setHeader('location', redirectUrl);
|
|
1417
|
+
} else if (!shouldBailoutToCSR) {
|
|
1418
|
+
res.statusCode = 500;
|
|
1419
|
+
metadata.statusCode = res.statusCode;
|
|
1420
|
+
}
|
|
1421
|
+
const [errorPreinitScripts, errorBootstrapScript] = (0, _requiredscripts.getRequiredScripts)(buildManifest, assetPrefix, crossOrigin, subresourceIntegrityManifest, (0, _getassetquerystring.getAssetQueryString)(ctx, false), nonce, '/_not-found/page');
|
|
1422
|
+
const errorRSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, getErrorRSCPayload, tree, ctx, reactServerErrorsByDigest.has(err.digest) ? null : err, errorType);
|
|
1423
|
+
const errorServerStream = _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, ComponentMod.renderToReadableStream, errorRSCPayload, clientReferenceManifest.clientModules, {
|
|
1424
|
+
filterStackFrame,
|
|
1425
|
+
onError: serverComponentsErrorHandler
|
|
1426
|
+
});
|
|
1427
|
+
if (reactServerResult === null) {
|
|
1428
|
+
// We errored when we did not have an RSC stream to read from. This is not just a render
|
|
1429
|
+
// error, we need to throw early
|
|
1430
|
+
throw err;
|
|
1431
|
+
}
|
|
1432
|
+
try {
|
|
1433
|
+
const fizzStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, _nodewebstreamshelper.renderToInitialFizzStream, {
|
|
1434
|
+
ReactDOMServer: require('react-dom/server'),
|
|
1435
|
+
element: /*#__PURE__*/ (0, _jsxruntime.jsx)(ErrorApp, {
|
|
1436
|
+
reactServerStream: errorServerStream,
|
|
1437
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
1438
|
+
preinitScripts: errorPreinitScripts,
|
|
1439
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
1440
|
+
nonce: nonce
|
|
1441
|
+
}),
|
|
1442
|
+
streamOptions: {
|
|
1443
|
+
nonce,
|
|
1444
|
+
// Include hydration scripts in the HTML
|
|
1445
|
+
bootstrapScripts: [
|
|
1446
|
+
errorBootstrapScript
|
|
1447
|
+
],
|
|
1448
|
+
formState
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
/**
|
|
1452
|
+
* Rules of Static & Dynamic HTML:
|
|
1453
|
+
*
|
|
1454
|
+
* 1.) We must generate static HTML unless the caller explicitly opts
|
|
1455
|
+
* in to dynamic HTML support.
|
|
1456
|
+
*
|
|
1457
|
+
* 2.) If dynamic HTML support is requested, we must honor that request
|
|
1458
|
+
* or throw an error. It is the sole responsibility of the caller to
|
|
1459
|
+
* ensure they aren't e.g. requesting dynamic HTML for an AMP page.
|
|
1460
|
+
* 3.) If `shouldWaitOnAllReady` is true, which indicates we need to
|
|
1461
|
+
* resolve all suspenses and generate a full HTML. e.g. when it's a
|
|
1462
|
+
* html limited bot requests, we produce the full HTML content.
|
|
1463
|
+
*
|
|
1464
|
+
* These rules help ensure that other existing features like request caching,
|
|
1465
|
+
* coalescing, and ISR continue working as intended.
|
|
1466
|
+
*/ const generateStaticHTML = supportsDynamicResponse !== true || !!shouldWaitOnAllReady;
|
|
1467
|
+
return await (0, _nodewebstreamshelper.continueFizzStream)(fizzStream, {
|
|
1468
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(// This is intentionally using the readable datastream from the
|
|
1469
|
+
// main render rather than the flight data from the error page
|
|
1470
|
+
// render
|
|
1471
|
+
reactServerResult.consume(), nonce, formState),
|
|
1472
|
+
isStaticGeneration: generateStaticHTML,
|
|
1473
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
1474
|
+
buildId: ctx.workStore.buildId,
|
|
1475
|
+
getServerInsertedHTML: (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
1476
|
+
polyfills,
|
|
1477
|
+
renderServerInsertedHTML,
|
|
1478
|
+
serverCapturedErrors: [],
|
|
1479
|
+
basePath,
|
|
1480
|
+
tracingMetadata: tracingMetadata
|
|
1481
|
+
}),
|
|
1482
|
+
getServerInsertedMetadata,
|
|
1483
|
+
validateRootLayout: dev
|
|
1484
|
+
});
|
|
1485
|
+
} catch (finalErr) {
|
|
1486
|
+
if (process.env.NODE_ENV === 'development' && (0, _httpaccessfallback.isHTTPAccessFallbackError)(finalErr)) {
|
|
1487
|
+
const { bailOnRootNotFound } = require('../../client/components/dev-root-http-access-fallback-boundary');
|
|
1488
|
+
bailOnRootNotFound();
|
|
1489
|
+
}
|
|
1490
|
+
throw finalErr;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
function createValidationOutlet() {
|
|
1495
|
+
let resolveValidation;
|
|
1496
|
+
let outlet = new Promise((resolve)=>{
|
|
1497
|
+
resolveValidation = resolve;
|
|
1498
|
+
});
|
|
1499
|
+
return [
|
|
1500
|
+
resolveValidation,
|
|
1501
|
+
outlet
|
|
1502
|
+
];
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* This function is a fork of prerenderToStream cacheComponents branch.
|
|
1506
|
+
* While it doesn't return a stream we want it to have identical
|
|
1507
|
+
* prerender semantics to prerenderToStream and should update it
|
|
1508
|
+
* in conjunction with any changes to that function.
|
|
1509
|
+
*/ async function spawnDynamicValidationInDev(resolveValidation, tree, ctx, isNotFound, clientReferenceManifest, requestStore, fallbackRouteParams) {
|
|
1510
|
+
var _requestStore_cookies_get;
|
|
1511
|
+
const { componentMod: ComponentMod, getDynamicParamFromSegment, implicitTags, nonce, renderOpts, workStore } = ctx;
|
|
1512
|
+
const { allowEmptyStaticShell = false } = renderOpts;
|
|
1513
|
+
// These values are placeholder values for this validating render
|
|
1514
|
+
// that are provided during the actual prerenderToStream.
|
|
1515
|
+
const preinitScripts = ()=>{};
|
|
1516
|
+
const { ServerInsertedHTMLProvider } = (0, _serverinsertedhtml.createServerInsertedHTML)();
|
|
1517
|
+
const rootParams = (0, _createcomponenttree.getRootParams)(ComponentMod.tree, getDynamicParamFromSegment);
|
|
1518
|
+
const hmrRefreshHash = (_requestStore_cookies_get = requestStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _requestStore_cookies_get.value;
|
|
1519
|
+
// The prerender controller represents the lifetime of the prerender. It will
|
|
1520
|
+
// be aborted when a task is complete or a synchronously aborting API is
|
|
1521
|
+
// called. Notably, during prospective prerenders, this does not actually
|
|
1522
|
+
// terminate the prerender itself, which will continue until all caches are
|
|
1523
|
+
// filled.
|
|
1524
|
+
const initialServerPrerenderController = new AbortController();
|
|
1525
|
+
// This controller is used to abort the React prerender.
|
|
1526
|
+
const initialServerReactController = new AbortController();
|
|
1527
|
+
// This controller represents the lifetime of the React prerender. Its signal
|
|
1528
|
+
// can be used for any I/O operation to abort the I/O and/or to reject, when
|
|
1529
|
+
// prerendering aborts. This includes our own hanging promises for accessing
|
|
1530
|
+
// request data, and for fetch calls. It might be replaced in the future by
|
|
1531
|
+
// React.cacheSignal(). It's aborted after the React controller, so that no
|
|
1532
|
+
// pending I/O can register abort listeners that are called before React's
|
|
1533
|
+
// abort listener is called. This ensures that pending I/O is not rejected too
|
|
1534
|
+
// early when aborting the prerender. Notably, during the prospective
|
|
1535
|
+
// prerender, it is different from the prerender controller because we don't
|
|
1536
|
+
// want to end the React prerender until all caches are filled.
|
|
1537
|
+
const initialServerRenderController = new AbortController();
|
|
1538
|
+
// The cacheSignal helps us track whether caches are still filling or we are
|
|
1539
|
+
// ready to cut the render off.
|
|
1540
|
+
const cacheSignal = new _cachesignal.CacheSignal();
|
|
1541
|
+
const captureOwnerStackClient = _react.default.captureOwnerStack;
|
|
1542
|
+
const captureOwnerStackServer = ComponentMod.captureOwnerStack;
|
|
1543
|
+
// The resume data cache here should use a fresh instance as it's
|
|
1544
|
+
// performing a fresh prerender. If we get to implementing the
|
|
1545
|
+
// prerendering of an already prerendered page, we should use the passed
|
|
1546
|
+
// resume data cache instead.
|
|
1547
|
+
const prerenderResumeDataCache = (0, _resumedatacache.createPrerenderResumeDataCache)();
|
|
1548
|
+
const initialServerPayloadPrerenderStore = {
|
|
1549
|
+
type: 'prerender',
|
|
1550
|
+
phase: 'render',
|
|
1551
|
+
rootParams,
|
|
1552
|
+
fallbackRouteParams,
|
|
1553
|
+
implicitTags,
|
|
1554
|
+
// While this render signal isn't going to be used to abort a React render while getting the RSC payload
|
|
1555
|
+
// various request data APIs bind to this controller to reject after completion.
|
|
1556
|
+
renderSignal: initialServerRenderController.signal,
|
|
1557
|
+
// When we generate the RSC payload we might abort this controller due to sync IO
|
|
1558
|
+
// but we don't actually care about sync IO in this phase so we use a throw away controller
|
|
1559
|
+
// that isn't connected to anything
|
|
1560
|
+
controller: new AbortController(),
|
|
1561
|
+
// During the initial prerender we need to track all cache reads to ensure
|
|
1562
|
+
// we render long enough to fill every cache it is possible to visit during
|
|
1563
|
+
// the final prerender.
|
|
1564
|
+
cacheSignal,
|
|
1565
|
+
dynamicTracking: null,
|
|
1566
|
+
allowEmptyStaticShell,
|
|
1567
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1568
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1569
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1570
|
+
tags: [
|
|
1571
|
+
...implicitTags.tags
|
|
1572
|
+
],
|
|
1573
|
+
prerenderResumeDataCache,
|
|
1574
|
+
renderResumeDataCache: null,
|
|
1575
|
+
hmrRefreshHash,
|
|
1576
|
+
captureOwnerStack: captureOwnerStackServer
|
|
1577
|
+
};
|
|
1578
|
+
// We're not going to use the result of this render because the only time it could be used
|
|
1579
|
+
// is if it completes in a microtask and that's likely very rare for any non-trivial app
|
|
1580
|
+
const initialServerPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPayloadPrerenderStore, getRSCPayload, tree, ctx, isNotFound);
|
|
1581
|
+
const initialServerPrerenderStore = {
|
|
1582
|
+
type: 'prerender',
|
|
1583
|
+
phase: 'render',
|
|
1584
|
+
rootParams,
|
|
1585
|
+
fallbackRouteParams,
|
|
1586
|
+
implicitTags,
|
|
1587
|
+
renderSignal: initialServerRenderController.signal,
|
|
1588
|
+
controller: initialServerPrerenderController,
|
|
1589
|
+
// During the initial prerender we need to track all cache reads to ensure
|
|
1590
|
+
// we render long enough to fill every cache it is possible to visit during
|
|
1591
|
+
// the final prerender.
|
|
1592
|
+
cacheSignal,
|
|
1593
|
+
dynamicTracking: null,
|
|
1594
|
+
allowEmptyStaticShell,
|
|
1595
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1596
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1597
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1598
|
+
tags: [
|
|
1599
|
+
...implicitTags.tags
|
|
1600
|
+
],
|
|
1601
|
+
prerenderResumeDataCache,
|
|
1602
|
+
renderResumeDataCache: null,
|
|
1603
|
+
hmrRefreshHash,
|
|
1604
|
+
captureOwnerStack: captureOwnerStackServer
|
|
1605
|
+
};
|
|
1606
|
+
const pendingInitialServerResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPrerenderStore, ComponentMod.prerender, initialServerPayload, clientReferenceManifest.clientModules, {
|
|
1607
|
+
filterStackFrame,
|
|
1608
|
+
onError: (err)=>{
|
|
1609
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
1610
|
+
if (digest) {
|
|
1611
|
+
return digest;
|
|
1612
|
+
}
|
|
1613
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
1614
|
+
// TODO: Aggregate
|
|
1615
|
+
console.error(err);
|
|
1616
|
+
return undefined;
|
|
1617
|
+
}
|
|
1618
|
+
if (initialServerPrerenderController.signal.aborted) {
|
|
1619
|
+
// The render aborted before this error was handled which indicates
|
|
1620
|
+
// the error is caused by unfinished components within the render
|
|
1621
|
+
return;
|
|
1622
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
1623
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
// we don't care to track postpones during the prospective render because we need
|
|
1627
|
+
// to always do a final render anyway
|
|
1628
|
+
onPostpone: undefined,
|
|
1629
|
+
// We don't want to stop rendering until the cacheSignal is complete so we pass
|
|
1630
|
+
// a different signal to this render call than is used by dynamic APIs to signify
|
|
1631
|
+
// transitioning out of the prerender environment
|
|
1632
|
+
signal: initialServerReactController.signal
|
|
1633
|
+
});
|
|
1634
|
+
// The listener to abort our own render controller must be added after React
|
|
1635
|
+
// has added its listener, to ensure that pending I/O is not aborted/rejected
|
|
1636
|
+
// too early.
|
|
1637
|
+
initialServerReactController.signal.addEventListener('abort', ()=>{
|
|
1638
|
+
initialServerRenderController.abort();
|
|
1639
|
+
}, {
|
|
1640
|
+
once: true
|
|
1641
|
+
});
|
|
1642
|
+
// Wait for all caches to be finished filling and for async imports to resolve
|
|
1643
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
1644
|
+
await cacheSignal.cacheReady();
|
|
1645
|
+
initialServerReactController.abort();
|
|
1646
|
+
// We don't need to continue the prerender process if we already
|
|
1647
|
+
// detected invalid dynamic usage in the initial prerender phase.
|
|
1648
|
+
const { invalidDynamicUsageError } = workStore;
|
|
1649
|
+
if (invalidDynamicUsageError) {
|
|
1650
|
+
resolveValidation(/*#__PURE__*/ (0, _jsxruntime.jsx)(LogSafely, {
|
|
1651
|
+
fn: ()=>{
|
|
1652
|
+
console.error(invalidDynamicUsageError);
|
|
1653
|
+
}
|
|
1654
|
+
}));
|
|
1655
|
+
return;
|
|
1656
|
+
}
|
|
1657
|
+
let initialServerResult;
|
|
1658
|
+
try {
|
|
1659
|
+
initialServerResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResult)(pendingInitialServerResult);
|
|
1660
|
+
} catch (err) {
|
|
1661
|
+
if (initialServerReactController.signal.aborted || initialServerPrerenderController.signal.aborted) {
|
|
1662
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
1663
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
1664
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
1665
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
1666
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
if (initialServerResult) {
|
|
1670
|
+
const initialClientPrerenderController = new AbortController();
|
|
1671
|
+
const initialClientReactController = new AbortController();
|
|
1672
|
+
const initialClientRenderController = new AbortController();
|
|
1673
|
+
const initialClientPrerenderStore = {
|
|
1674
|
+
type: 'prerender-client',
|
|
1675
|
+
phase: 'render',
|
|
1676
|
+
rootParams,
|
|
1677
|
+
fallbackRouteParams,
|
|
1678
|
+
implicitTags,
|
|
1679
|
+
renderSignal: initialClientRenderController.signal,
|
|
1680
|
+
controller: initialClientPrerenderController,
|
|
1681
|
+
// For HTML Generation the only cache tracked activity
|
|
1682
|
+
// is module loading, which has it's own cache signal
|
|
1683
|
+
cacheSignal: null,
|
|
1684
|
+
dynamicTracking: null,
|
|
1685
|
+
allowEmptyStaticShell,
|
|
1686
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1687
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1688
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1689
|
+
tags: [
|
|
1690
|
+
...implicitTags.tags
|
|
1691
|
+
],
|
|
1692
|
+
prerenderResumeDataCache,
|
|
1693
|
+
renderResumeDataCache: null,
|
|
1694
|
+
hmrRefreshHash: undefined,
|
|
1695
|
+
captureOwnerStack: captureOwnerStackClient
|
|
1696
|
+
};
|
|
1697
|
+
const prerender = require('react-dom/static').prerender;
|
|
1698
|
+
const pendingInitialClientResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialClientPrerenderStore, prerender, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
1699
|
+
reactServerStream: initialServerResult.asUnclosingStream(),
|
|
1700
|
+
preinitScripts: preinitScripts,
|
|
1701
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
1702
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
1703
|
+
nonce: nonce
|
|
1704
|
+
}), {
|
|
1705
|
+
signal: initialClientReactController.signal,
|
|
1706
|
+
onError: (err)=>{
|
|
1707
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
1708
|
+
if (digest) {
|
|
1709
|
+
return digest;
|
|
1710
|
+
}
|
|
1711
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
1712
|
+
// TODO: Aggregate
|
|
1713
|
+
console.error(err);
|
|
1714
|
+
return undefined;
|
|
1715
|
+
}
|
|
1716
|
+
if (initialClientReactController.signal.aborted) {
|
|
1717
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
1718
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
1719
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
1720
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
1721
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
// The listener to abort our own render controller must be added after React
|
|
1726
|
+
// has added its listener, to ensure that pending I/O is not
|
|
1727
|
+
// aborted/rejected too early.
|
|
1728
|
+
initialClientReactController.signal.addEventListener('abort', ()=>{
|
|
1729
|
+
initialClientRenderController.abort();
|
|
1730
|
+
}, {
|
|
1731
|
+
once: true
|
|
1732
|
+
});
|
|
1733
|
+
pendingInitialClientResult.catch((err)=>{
|
|
1734
|
+
if (initialClientReactController.signal.aborted || (0, _dynamicrendering.isPrerenderInterruptedError)(err)) {
|
|
1735
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
1736
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
1737
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
1738
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
1739
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
// This is mostly needed for dynamic `import()`s in client components.
|
|
1743
|
+
// Promises passed to client were already awaited above (assuming that they came from cached functions)
|
|
1744
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
1745
|
+
await cacheSignal.cacheReady();
|
|
1746
|
+
initialClientReactController.abort();
|
|
1747
|
+
}
|
|
1748
|
+
const finalServerReactController = new AbortController();
|
|
1749
|
+
const finalServerRenderController = new AbortController();
|
|
1750
|
+
const finalServerPayloadPrerenderStore = {
|
|
1751
|
+
type: 'prerender',
|
|
1752
|
+
phase: 'render',
|
|
1753
|
+
rootParams,
|
|
1754
|
+
fallbackRouteParams,
|
|
1755
|
+
implicitTags,
|
|
1756
|
+
// While this render signal isn't going to be used to abort a React render while getting the RSC payload
|
|
1757
|
+
// various request data APIs bind to this controller to reject after completion.
|
|
1758
|
+
renderSignal: finalServerRenderController.signal,
|
|
1759
|
+
// When we generate the RSC payload we might abort this controller due to sync IO
|
|
1760
|
+
// but we don't actually care about sync IO in this phase so we use a throw away controller
|
|
1761
|
+
// that isn't connected to anything
|
|
1762
|
+
controller: new AbortController(),
|
|
1763
|
+
// All caches we could read must already be filled so no tracking is necessary
|
|
1764
|
+
cacheSignal: null,
|
|
1765
|
+
dynamicTracking: null,
|
|
1766
|
+
allowEmptyStaticShell,
|
|
1767
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1768
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1769
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1770
|
+
tags: [
|
|
1771
|
+
...implicitTags.tags
|
|
1772
|
+
],
|
|
1773
|
+
prerenderResumeDataCache,
|
|
1774
|
+
renderResumeDataCache: null,
|
|
1775
|
+
hmrRefreshHash,
|
|
1776
|
+
captureOwnerStack: captureOwnerStackServer
|
|
1777
|
+
};
|
|
1778
|
+
const finalAttemptRSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalServerPayloadPrerenderStore, getRSCPayload, tree, ctx, isNotFound);
|
|
1779
|
+
const serverDynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(false // isDebugDynamicAccesses
|
|
1780
|
+
);
|
|
1781
|
+
const finalServerPrerenderStore = {
|
|
1782
|
+
type: 'prerender',
|
|
1783
|
+
phase: 'render',
|
|
1784
|
+
rootParams,
|
|
1785
|
+
fallbackRouteParams,
|
|
1786
|
+
implicitTags,
|
|
1787
|
+
renderSignal: finalServerRenderController.signal,
|
|
1788
|
+
controller: finalServerReactController,
|
|
1789
|
+
// All caches we could read must already be filled so no tracking is necessary
|
|
1790
|
+
cacheSignal: null,
|
|
1791
|
+
dynamicTracking: serverDynamicTracking,
|
|
1792
|
+
allowEmptyStaticShell,
|
|
1793
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1794
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1795
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1796
|
+
tags: [
|
|
1797
|
+
...implicitTags.tags
|
|
1798
|
+
],
|
|
1799
|
+
prerenderResumeDataCache,
|
|
1800
|
+
renderResumeDataCache: null,
|
|
1801
|
+
hmrRefreshHash,
|
|
1802
|
+
captureOwnerStack: captureOwnerStackServer
|
|
1803
|
+
};
|
|
1804
|
+
const reactServerResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResult)((0, _apprenderprerenderutils.prerenderAndAbortInSequentialTasks)(async ()=>{
|
|
1805
|
+
const pendingPrerenderResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(// The store to scope
|
|
1806
|
+
finalServerPrerenderStore, // The function to run
|
|
1807
|
+
ComponentMod.prerender, // ... the arguments for the function to run
|
|
1808
|
+
finalAttemptRSCPayload, clientReferenceManifest.clientModules, {
|
|
1809
|
+
filterStackFrame,
|
|
1810
|
+
onError: (err)=>{
|
|
1811
|
+
if (finalServerReactController.signal.aborted && (0, _dynamicrendering.isPrerenderInterruptedError)(err)) {
|
|
1812
|
+
return err.digest;
|
|
1813
|
+
}
|
|
1814
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
1815
|
+
// TODO: Aggregate
|
|
1816
|
+
console.error(err);
|
|
1817
|
+
return undefined;
|
|
1818
|
+
}
|
|
1819
|
+
return (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
1820
|
+
},
|
|
1821
|
+
signal: finalServerReactController.signal
|
|
1822
|
+
});
|
|
1823
|
+
// The listener to abort our own render controller must be added after
|
|
1824
|
+
// React has added its listener, to ensure that pending I/O is not
|
|
1825
|
+
// aborted/rejected too early.
|
|
1826
|
+
finalServerReactController.signal.addEventListener('abort', ()=>{
|
|
1827
|
+
finalServerRenderController.abort();
|
|
1828
|
+
}, {
|
|
1829
|
+
once: true
|
|
1830
|
+
});
|
|
1831
|
+
return pendingPrerenderResult;
|
|
1832
|
+
}, ()=>{
|
|
1833
|
+
finalServerReactController.abort();
|
|
1834
|
+
}));
|
|
1835
|
+
const clientDynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(false //isDebugDynamicAccesses
|
|
1836
|
+
);
|
|
1837
|
+
const finalClientReactController = new AbortController();
|
|
1838
|
+
const finalClientRenderController = new AbortController();
|
|
1839
|
+
const finalClientPrerenderStore = {
|
|
1840
|
+
type: 'prerender-client',
|
|
1841
|
+
phase: 'render',
|
|
1842
|
+
rootParams,
|
|
1843
|
+
fallbackRouteParams,
|
|
1844
|
+
implicitTags,
|
|
1845
|
+
renderSignal: finalClientRenderController.signal,
|
|
1846
|
+
controller: finalClientReactController,
|
|
1847
|
+
// No APIs require a cacheSignal through the workUnitStore during the HTML prerender
|
|
1848
|
+
cacheSignal: null,
|
|
1849
|
+
dynamicTracking: clientDynamicTracking,
|
|
1850
|
+
allowEmptyStaticShell,
|
|
1851
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
1852
|
+
expire: _constants1.INFINITE_CACHE,
|
|
1853
|
+
stale: _constants1.INFINITE_CACHE,
|
|
1854
|
+
tags: [
|
|
1855
|
+
...implicitTags.tags
|
|
1856
|
+
],
|
|
1857
|
+
prerenderResumeDataCache,
|
|
1858
|
+
renderResumeDataCache: null,
|
|
1859
|
+
hmrRefreshHash,
|
|
1860
|
+
captureOwnerStack: captureOwnerStackClient
|
|
1861
|
+
};
|
|
1862
|
+
let dynamicValidation = (0, _dynamicrendering.createDynamicValidationState)();
|
|
1863
|
+
try {
|
|
1864
|
+
const prerender = require('react-dom/static').prerender;
|
|
1865
|
+
let { prelude: unprocessedPrelude } = await (0, _apprenderprerenderutils.prerenderAndAbortInSequentialTasks)(()=>{
|
|
1866
|
+
const pendingFinalClientResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalClientPrerenderStore, prerender, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
1867
|
+
reactServerStream: reactServerResult.asUnclosingStream(),
|
|
1868
|
+
preinitScripts: preinitScripts,
|
|
1869
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
1870
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
1871
|
+
nonce: nonce
|
|
1872
|
+
}), {
|
|
1873
|
+
signal: finalClientReactController.signal,
|
|
1874
|
+
onError: (err, errorInfo)=>{
|
|
1875
|
+
if ((0, _dynamicrendering.isPrerenderInterruptedError)(err) || finalClientReactController.signal.aborted) {
|
|
1876
|
+
const componentStack = errorInfo.componentStack;
|
|
1877
|
+
if (typeof componentStack === 'string') {
|
|
1878
|
+
(0, _dynamicrendering.trackAllowedDynamicAccess)(workStore, componentStack, dynamicValidation, clientDynamicTracking);
|
|
1879
|
+
}
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
1883
|
+
// TODO: Aggregate
|
|
1884
|
+
console.error(err);
|
|
1885
|
+
return undefined;
|
|
1886
|
+
}
|
|
1887
|
+
return (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
// The listener to abort our own render controller must be added after
|
|
1891
|
+
// React has added its listener, to ensure that pending I/O is not
|
|
1892
|
+
// aborted/rejected too early.
|
|
1893
|
+
finalClientReactController.signal.addEventListener('abort', ()=>{
|
|
1894
|
+
finalClientRenderController.abort();
|
|
1895
|
+
}, {
|
|
1896
|
+
once: true
|
|
1897
|
+
});
|
|
1898
|
+
return pendingFinalClientResult;
|
|
1899
|
+
}, ()=>{
|
|
1900
|
+
finalClientReactController.abort();
|
|
1901
|
+
});
|
|
1902
|
+
const { preludeIsEmpty } = await (0, _apprenderprerenderutils.processPrelude)(unprocessedPrelude);
|
|
1903
|
+
resolveValidation(/*#__PURE__*/ (0, _jsxruntime.jsx)(LogSafely, {
|
|
1904
|
+
fn: _dynamicrendering.throwIfDisallowedDynamic.bind(null, workStore, preludeIsEmpty ? _dynamicrendering.PreludeState.Empty : _dynamicrendering.PreludeState.Full, dynamicValidation, serverDynamicTracking)
|
|
1905
|
+
}));
|
|
1906
|
+
} catch (thrownValue) {
|
|
1907
|
+
// Even if the root errors we still want to report any cache components errors
|
|
1908
|
+
// that were discovered before the root errored.
|
|
1909
|
+
let loggingFunction = _dynamicrendering.throwIfDisallowedDynamic.bind(null, workStore, _dynamicrendering.PreludeState.Errored, dynamicValidation, serverDynamicTracking);
|
|
1910
|
+
if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
1911
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
1912
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
1913
|
+
const originalLoggingFunction = loggingFunction;
|
|
1914
|
+
loggingFunction = ()=>{
|
|
1915
|
+
console.error('During dynamic validation the root of the page errored. The next logged error is the thrown value. It may be a duplicate of errors reported during the normal development mode render.');
|
|
1916
|
+
console.error(thrownValue);
|
|
1917
|
+
originalLoggingFunction();
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
resolveValidation(/*#__PURE__*/ (0, _jsxruntime.jsx)(LogSafely, {
|
|
1921
|
+
fn: loggingFunction
|
|
1922
|
+
}));
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
async function LogSafely({ fn }) {
|
|
1926
|
+
try {
|
|
1927
|
+
await fn();
|
|
1928
|
+
} catch {}
|
|
1929
|
+
return null;
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Determines whether we should generate static flight data.
|
|
1933
|
+
*/ function shouldGenerateStaticFlightData(workStore) {
|
|
1934
|
+
const { isStaticGeneration } = workStore;
|
|
1935
|
+
if (!isStaticGeneration) return false;
|
|
1936
|
+
return true;
|
|
1937
|
+
}
|
|
1938
|
+
async function prerenderToStream(req, res, ctx, metadata, tree, fallbackRouteParams) {
|
|
1939
|
+
// When prerendering formState is always null. We still include it
|
|
1940
|
+
// because some shared APIs expect a formState value and this is slightly
|
|
1941
|
+
// more explicit than making it an optional function argument
|
|
1942
|
+
const formState = null;
|
|
1943
|
+
const { assetPrefix, getDynamicParamFromSegment, implicitTags, nonce, pagePath, renderOpts, workStore } = ctx;
|
|
1944
|
+
const { allowEmptyStaticShell = false, basePath, buildManifest, clientReferenceManifest, ComponentMod, crossOrigin, dev = false, experimental, isDebugDynamicAccesses, nextExport = false, onInstrumentationRequestError, page, reactMaxHeadersLength, subresourceIntegrityManifest } = renderOpts;
|
|
1945
|
+
assertClientReferenceManifest(clientReferenceManifest);
|
|
1946
|
+
const rootParams = (0, _createcomponenttree.getRootParams)(tree, getDynamicParamFromSegment);
|
|
1947
|
+
const { ServerInsertedHTMLProvider, renderServerInsertedHTML } = (0, _serverinsertedhtml.createServerInsertedHTML)();
|
|
1948
|
+
const getServerInsertedMetadata = (0, _createserverinsertedmetadata.createServerInsertedMetadata)(nonce);
|
|
1949
|
+
const tracingMetadata = (0, _utils1.getTracedMetadata)((0, _tracer.getTracer)().getTracePropagationData(), experimental.clientTraceMetadata);
|
|
1950
|
+
const polyfills = buildManifest.polyfillFiles.filter((polyfill)=>polyfill.endsWith('.js') && !polyfill.endsWith('.module.js')).map((polyfill)=>({
|
|
1951
|
+
src: `${assetPrefix}/_next/${polyfill}${(0, _getassetquerystring.getAssetQueryString)(ctx, false)}`,
|
|
1952
|
+
integrity: subresourceIntegrityManifest == null ? void 0 : subresourceIntegrityManifest[polyfill],
|
|
1953
|
+
crossOrigin,
|
|
1954
|
+
noModule: true,
|
|
1955
|
+
nonce
|
|
1956
|
+
}));
|
|
1957
|
+
const [preinitScripts, bootstrapScript] = (0, _requiredscripts.getRequiredScripts)(buildManifest, // Why is assetPrefix optional on renderOpts?
|
|
1958
|
+
// @TODO make it default empty string on renderOpts and get rid of it from ctx
|
|
1959
|
+
assetPrefix, crossOrigin, subresourceIntegrityManifest, (0, _getassetquerystring.getAssetQueryString)(ctx, true), nonce, page);
|
|
1960
|
+
const reactServerErrorsByDigest = new Map();
|
|
1961
|
+
// We don't report errors during prerendering through our instrumentation hooks
|
|
1962
|
+
const silenceLogger = !!experimental.isRoutePPREnabled;
|
|
1963
|
+
function onHTMLRenderRSCError(err) {
|
|
1964
|
+
return onInstrumentationRequestError == null ? void 0 : onInstrumentationRequestError(err, req, createErrorContext(ctx, 'react-server-components'));
|
|
1965
|
+
}
|
|
1966
|
+
const serverComponentsErrorHandler = (0, _createerrorhandler.createHTMLReactServerErrorHandler)(dev, nextExport, reactServerErrorsByDigest, silenceLogger, onHTMLRenderRSCError);
|
|
1967
|
+
function onHTMLRenderSSRError(err) {
|
|
1968
|
+
return onInstrumentationRequestError == null ? void 0 : onInstrumentationRequestError(err, req, createErrorContext(ctx, 'server-rendering'));
|
|
1969
|
+
}
|
|
1970
|
+
const allCapturedErrors = [];
|
|
1971
|
+
const htmlRendererErrorHandler = (0, _createerrorhandler.createHTMLErrorHandler)(dev, nextExport, reactServerErrorsByDigest, allCapturedErrors, silenceLogger, onHTMLRenderSSRError);
|
|
1972
|
+
let reactServerPrerenderResult = null;
|
|
1973
|
+
const setMetadataHeader = (name)=>{
|
|
1974
|
+
metadata.headers ??= {};
|
|
1975
|
+
metadata.headers[name] = res.getHeader(name);
|
|
1976
|
+
};
|
|
1977
|
+
const setHeader = (name, value)=>{
|
|
1978
|
+
res.setHeader(name, value);
|
|
1979
|
+
setMetadataHeader(name);
|
|
1980
|
+
return res;
|
|
1981
|
+
};
|
|
1982
|
+
const appendHeader = (name, value)=>{
|
|
1983
|
+
if (Array.isArray(value)) {
|
|
1984
|
+
value.forEach((item)=>{
|
|
1985
|
+
res.appendHeader(name, item);
|
|
1986
|
+
});
|
|
1987
|
+
} else {
|
|
1988
|
+
res.appendHeader(name, value);
|
|
1989
|
+
}
|
|
1990
|
+
setMetadataHeader(name);
|
|
1991
|
+
};
|
|
1992
|
+
const selectStaleTime = createSelectStaleTime(experimental);
|
|
1993
|
+
let prerenderStore = null;
|
|
1994
|
+
try {
|
|
1995
|
+
if (experimental.cacheComponents) {
|
|
1996
|
+
/**
|
|
1997
|
+
* cacheComponents with PPR
|
|
1998
|
+
*
|
|
1999
|
+
* The general approach is to render the RSC stream first allowing any cache reads to resolve.
|
|
2000
|
+
* Once we have settled all cache reads we restart the render and abort after a single Task.
|
|
2001
|
+
*
|
|
2002
|
+
* Unlike with the non PPR case we can't synchronously abort the render when a dynamic API is used
|
|
2003
|
+
* during the initial render because we need to ensure all caches can be filled as part of the initial Task
|
|
2004
|
+
* and a synchronous abort might prevent us from filling all caches.
|
|
2005
|
+
*
|
|
2006
|
+
* Once the render is complete we allow the SSR render to finish and use a combination of the postponed state
|
|
2007
|
+
* and the reactServerIsDynamic value to determine how to treat the resulting render
|
|
2008
|
+
*/ // The prerender controller represents the lifetime of the prerender. It
|
|
2009
|
+
// will be aborted when a task is complete or a synchronously aborting API
|
|
2010
|
+
// is called. Notably, during prospective prerenders, this does not
|
|
2011
|
+
// actually terminate the prerender itself, which will continue until all
|
|
2012
|
+
// caches are filled.
|
|
2013
|
+
const initialServerPrerenderController = new AbortController();
|
|
2014
|
+
// This controller is used to abort the React prerender.
|
|
2015
|
+
const initialServerReactController = new AbortController();
|
|
2016
|
+
// This controller represents the lifetime of the React prerender. Its
|
|
2017
|
+
// signal can be used for any I/O operation to abort the I/O and/or to
|
|
2018
|
+
// reject, when prerendering aborts. This includes our own hanging
|
|
2019
|
+
// promises for accessing request data, and for fetch calls. It might be
|
|
2020
|
+
// replaced in the future by React.cacheSignal(). It's aborted after the
|
|
2021
|
+
// React controller, so that no pending I/O can register abort listeners
|
|
2022
|
+
// that are called before React's abort listener is called. This ensures
|
|
2023
|
+
// that pending I/O is not rejected too early when aborting the prerender.
|
|
2024
|
+
// Notably, during the prospective prerender, it is different from the
|
|
2025
|
+
// prerender controller because we don't want to end the React prerender
|
|
2026
|
+
// until all caches are filled.
|
|
2027
|
+
const initialServerRenderController = new AbortController();
|
|
2028
|
+
// The cacheSignal helps us track whether caches are still filling or we are ready
|
|
2029
|
+
// to cut the render off.
|
|
2030
|
+
const cacheSignal = new _cachesignal.CacheSignal();
|
|
2031
|
+
let resumeDataCache;
|
|
2032
|
+
let renderResumeDataCache = null;
|
|
2033
|
+
let prerenderResumeDataCache = null;
|
|
2034
|
+
if (renderOpts.renderResumeDataCache) {
|
|
2035
|
+
// If a prefilled immutable render resume data cache is provided, e.g.
|
|
2036
|
+
// when prerendering an optional fallback shell after having prerendered
|
|
2037
|
+
// pages with defined params, we use this instead of a prerender resume
|
|
2038
|
+
// data cache.
|
|
2039
|
+
resumeDataCache = renderResumeDataCache = renderOpts.renderResumeDataCache;
|
|
2040
|
+
} else {
|
|
2041
|
+
// Otherwise we create a new mutable prerender resume data cache.
|
|
2042
|
+
resumeDataCache = prerenderResumeDataCache = (0, _resumedatacache.createPrerenderResumeDataCache)();
|
|
2043
|
+
}
|
|
2044
|
+
const initialServerPayloadPrerenderStore = {
|
|
2045
|
+
type: 'prerender',
|
|
2046
|
+
phase: 'render',
|
|
2047
|
+
rootParams,
|
|
2048
|
+
fallbackRouteParams,
|
|
2049
|
+
implicitTags,
|
|
2050
|
+
// While this render signal isn't going to be used to abort a React render while getting the RSC payload
|
|
2051
|
+
// various request data APIs bind to this controller to reject after completion.
|
|
2052
|
+
renderSignal: initialServerRenderController.signal,
|
|
2053
|
+
// When we generate the RSC payload we might abort this controller due to sync IO
|
|
2054
|
+
// but we don't actually care about sync IO in this phase so we use a throw away controller
|
|
2055
|
+
// that isn't connected to anything
|
|
2056
|
+
controller: new AbortController(),
|
|
2057
|
+
// During the initial prerender we need to track all cache reads to ensure
|
|
2058
|
+
// we render long enough to fill every cache it is possible to visit during
|
|
2059
|
+
// the final prerender.
|
|
2060
|
+
cacheSignal,
|
|
2061
|
+
dynamicTracking: null,
|
|
2062
|
+
allowEmptyStaticShell,
|
|
2063
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2064
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2065
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2066
|
+
tags: [
|
|
2067
|
+
...implicitTags.tags
|
|
2068
|
+
],
|
|
2069
|
+
prerenderResumeDataCache,
|
|
2070
|
+
renderResumeDataCache,
|
|
2071
|
+
hmrRefreshHash: undefined,
|
|
2072
|
+
captureOwnerStack: undefined
|
|
2073
|
+
};
|
|
2074
|
+
// We're not going to use the result of this render because the only time it could be used
|
|
2075
|
+
// is if it completes in a microtask and that's likely very rare for any non-trivial app
|
|
2076
|
+
const initialServerPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPayloadPrerenderStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
2077
|
+
const initialServerPrerenderStore = prerenderStore = {
|
|
2078
|
+
type: 'prerender',
|
|
2079
|
+
phase: 'render',
|
|
2080
|
+
rootParams,
|
|
2081
|
+
fallbackRouteParams,
|
|
2082
|
+
implicitTags,
|
|
2083
|
+
renderSignal: initialServerRenderController.signal,
|
|
2084
|
+
controller: initialServerPrerenderController,
|
|
2085
|
+
// During the initial prerender we need to track all cache reads to ensure
|
|
2086
|
+
// we render long enough to fill every cache it is possible to visit during
|
|
2087
|
+
// the final prerender.
|
|
2088
|
+
cacheSignal,
|
|
2089
|
+
dynamicTracking: null,
|
|
2090
|
+
allowEmptyStaticShell,
|
|
2091
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2092
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2093
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2094
|
+
tags: [
|
|
2095
|
+
...implicitTags.tags
|
|
2096
|
+
],
|
|
2097
|
+
prerenderResumeDataCache,
|
|
2098
|
+
renderResumeDataCache,
|
|
2099
|
+
hmrRefreshHash: undefined,
|
|
2100
|
+
captureOwnerStack: undefined
|
|
2101
|
+
};
|
|
2102
|
+
const pendingInitialServerResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialServerPrerenderStore, ComponentMod.prerender, initialServerPayload, clientReferenceManifest.clientModules, {
|
|
2103
|
+
filterStackFrame,
|
|
2104
|
+
onError: (err)=>{
|
|
2105
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
2106
|
+
if (digest) {
|
|
2107
|
+
return digest;
|
|
2108
|
+
}
|
|
2109
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
2110
|
+
// TODO: Aggregate
|
|
2111
|
+
console.error(err);
|
|
2112
|
+
return undefined;
|
|
2113
|
+
}
|
|
2114
|
+
if (initialServerPrerenderController.signal.aborted) {
|
|
2115
|
+
// The render aborted before this error was handled which indicates
|
|
2116
|
+
// the error is caused by unfinished components within the render
|
|
2117
|
+
return;
|
|
2118
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
2119
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
// we don't care to track postpones during the prospective render because we need
|
|
2123
|
+
// to always do a final render anyway
|
|
2124
|
+
onPostpone: undefined,
|
|
2125
|
+
// We don't want to stop rendering until the cacheSignal is complete so we pass
|
|
2126
|
+
// a different signal to this render call than is used by dynamic APIs to signify
|
|
2127
|
+
// transitioning out of the prerender environment
|
|
2128
|
+
signal: initialServerReactController.signal
|
|
2129
|
+
});
|
|
2130
|
+
// The listener to abort our own render controller must be added after
|
|
2131
|
+
// React has added its listener, to ensure that pending I/O is not
|
|
2132
|
+
// aborted/rejected too early.
|
|
2133
|
+
initialServerReactController.signal.addEventListener('abort', ()=>{
|
|
2134
|
+
initialServerRenderController.abort();
|
|
2135
|
+
}, {
|
|
2136
|
+
once: true
|
|
2137
|
+
});
|
|
2138
|
+
// Wait for all caches to be finished filling and for async imports to resolve
|
|
2139
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
2140
|
+
await cacheSignal.cacheReady();
|
|
2141
|
+
initialServerReactController.abort();
|
|
2142
|
+
// We don't need to continue the prerender process if we already
|
|
2143
|
+
// detected invalid dynamic usage in the initial prerender phase.
|
|
2144
|
+
if (workStore.invalidDynamicUsageError) {
|
|
2145
|
+
(0, _dynamicrendering.logDisallowedDynamicError)(workStore, workStore.invalidDynamicUsageError);
|
|
2146
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2147
|
+
}
|
|
2148
|
+
let initialServerResult;
|
|
2149
|
+
try {
|
|
2150
|
+
initialServerResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResult)(pendingInitialServerResult);
|
|
2151
|
+
} catch (err) {
|
|
2152
|
+
if (initialServerReactController.signal.aborted || initialServerPrerenderController.signal.aborted) {
|
|
2153
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
2154
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
2155
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
2156
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
2157
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
if (initialServerResult) {
|
|
2161
|
+
const initialClientPrerenderController = new AbortController();
|
|
2162
|
+
const initialClientReactController = new AbortController();
|
|
2163
|
+
const initialClientRenderController = new AbortController();
|
|
2164
|
+
const initialClientPrerenderStore = {
|
|
2165
|
+
type: 'prerender-client',
|
|
2166
|
+
phase: 'render',
|
|
2167
|
+
rootParams,
|
|
2168
|
+
fallbackRouteParams,
|
|
2169
|
+
implicitTags,
|
|
2170
|
+
renderSignal: initialClientRenderController.signal,
|
|
2171
|
+
controller: initialClientPrerenderController,
|
|
2172
|
+
// For HTML Generation the only cache tracked activity
|
|
2173
|
+
// is module loading, which has it's own cache signal
|
|
2174
|
+
cacheSignal: null,
|
|
2175
|
+
dynamicTracking: null,
|
|
2176
|
+
allowEmptyStaticShell,
|
|
2177
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2178
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2179
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2180
|
+
tags: [
|
|
2181
|
+
...implicitTags.tags
|
|
2182
|
+
],
|
|
2183
|
+
prerenderResumeDataCache,
|
|
2184
|
+
renderResumeDataCache,
|
|
2185
|
+
hmrRefreshHash: undefined,
|
|
2186
|
+
captureOwnerStack: undefined
|
|
2187
|
+
};
|
|
2188
|
+
const prerender = require('react-dom/static').prerender;
|
|
2189
|
+
const pendingInitialClientResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(initialClientPrerenderStore, prerender, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2190
|
+
reactServerStream: initialServerResult.asUnclosingStream(),
|
|
2191
|
+
preinitScripts: preinitScripts,
|
|
2192
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2193
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2194
|
+
nonce: nonce
|
|
2195
|
+
}), {
|
|
2196
|
+
signal: initialClientReactController.signal,
|
|
2197
|
+
onError: (err)=>{
|
|
2198
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(err);
|
|
2199
|
+
if (digest) {
|
|
2200
|
+
return digest;
|
|
2201
|
+
}
|
|
2202
|
+
if ((0, _reactlargeshellerror.isReactLargeShellError)(err)) {
|
|
2203
|
+
// TODO: Aggregate
|
|
2204
|
+
console.error(err);
|
|
2205
|
+
return undefined;
|
|
2206
|
+
}
|
|
2207
|
+
if (initialClientReactController.signal.aborted) {
|
|
2208
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
2209
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
2210
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
2211
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
2212
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
bootstrapScripts: [
|
|
2216
|
+
bootstrapScript
|
|
2217
|
+
]
|
|
2218
|
+
});
|
|
2219
|
+
// The listener to abort our own render controller must be added after
|
|
2220
|
+
// React has added its listener, to ensure that pending I/O is not
|
|
2221
|
+
// aborted/rejected too early.
|
|
2222
|
+
initialClientReactController.signal.addEventListener('abort', ()=>{
|
|
2223
|
+
initialClientRenderController.abort();
|
|
2224
|
+
}, {
|
|
2225
|
+
once: true
|
|
2226
|
+
});
|
|
2227
|
+
pendingInitialClientResult.catch((err)=>{
|
|
2228
|
+
if (initialClientReactController.signal.aborted || (0, _dynamicrendering.isPrerenderInterruptedError)(err)) {
|
|
2229
|
+
// These are expected errors that might error the prerender. we ignore them.
|
|
2230
|
+
} else if (process.env.NEXT_DEBUG_BUILD || process.env.__NEXT_VERBOSE_LOGGING) {
|
|
2231
|
+
// We don't normally log these errors because we are going to retry anyway but
|
|
2232
|
+
// it can be useful for debugging Next.js itself to get visibility here when needed
|
|
2233
|
+
(0, _prospectiverenderutils.printDebugThrownValueForProspectiveRender)(err, workStore.route);
|
|
2234
|
+
}
|
|
2235
|
+
});
|
|
2236
|
+
// This is mostly needed for dynamic `import()`s in client components.
|
|
2237
|
+
// Promises passed to client were already awaited above (assuming that they came from cached functions)
|
|
2238
|
+
(0, _trackmoduleloadingexternal.trackPendingModules)(cacheSignal);
|
|
2239
|
+
await cacheSignal.cacheReady();
|
|
2240
|
+
initialClientReactController.abort();
|
|
2241
|
+
}
|
|
2242
|
+
const finalServerReactController = new AbortController();
|
|
2243
|
+
const finalServerRenderController = new AbortController();
|
|
2244
|
+
const finalServerPayloadPrerenderStore = {
|
|
2245
|
+
type: 'prerender',
|
|
2246
|
+
phase: 'render',
|
|
2247
|
+
rootParams,
|
|
2248
|
+
fallbackRouteParams,
|
|
2249
|
+
implicitTags,
|
|
2250
|
+
// While this render signal isn't going to be used to abort a React render while getting the RSC payload
|
|
2251
|
+
// various request data APIs bind to this controller to reject after completion.
|
|
2252
|
+
renderSignal: finalServerRenderController.signal,
|
|
2253
|
+
// When we generate the RSC payload we might abort this controller due to sync IO
|
|
2254
|
+
// but we don't actually care about sync IO in this phase so we use a throw away controller
|
|
2255
|
+
// that isn't connected to anything
|
|
2256
|
+
controller: new AbortController(),
|
|
2257
|
+
// All caches we could read must already be filled so no tracking is necessary
|
|
2258
|
+
cacheSignal: null,
|
|
2259
|
+
dynamicTracking: null,
|
|
2260
|
+
allowEmptyStaticShell,
|
|
2261
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2262
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2263
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2264
|
+
tags: [
|
|
2265
|
+
...implicitTags.tags
|
|
2266
|
+
],
|
|
2267
|
+
prerenderResumeDataCache,
|
|
2268
|
+
renderResumeDataCache,
|
|
2269
|
+
hmrRefreshHash: undefined,
|
|
2270
|
+
captureOwnerStack: undefined
|
|
2271
|
+
};
|
|
2272
|
+
const finalAttemptRSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalServerPayloadPrerenderStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
2273
|
+
const serverDynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(isDebugDynamicAccesses);
|
|
2274
|
+
let serverIsDynamic = false;
|
|
2275
|
+
const finalServerPrerenderStore = prerenderStore = {
|
|
2276
|
+
type: 'prerender',
|
|
2277
|
+
phase: 'render',
|
|
2278
|
+
rootParams,
|
|
2279
|
+
fallbackRouteParams,
|
|
2280
|
+
implicitTags,
|
|
2281
|
+
renderSignal: finalServerRenderController.signal,
|
|
2282
|
+
controller: finalServerReactController,
|
|
2283
|
+
// All caches we could read must already be filled so no tracking is necessary
|
|
2284
|
+
cacheSignal: null,
|
|
2285
|
+
dynamicTracking: serverDynamicTracking,
|
|
2286
|
+
allowEmptyStaticShell,
|
|
2287
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2288
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2289
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2290
|
+
tags: [
|
|
2291
|
+
...implicitTags.tags
|
|
2292
|
+
],
|
|
2293
|
+
prerenderResumeDataCache,
|
|
2294
|
+
renderResumeDataCache,
|
|
2295
|
+
hmrRefreshHash: undefined,
|
|
2296
|
+
captureOwnerStack: undefined
|
|
2297
|
+
};
|
|
2298
|
+
let prerenderIsPending = true;
|
|
2299
|
+
const reactServerResult = reactServerPrerenderResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResult)((0, _apprenderprerenderutils.prerenderAndAbortInSequentialTasks)(async ()=>{
|
|
2300
|
+
const pendingPrerenderResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(// The store to scope
|
|
2301
|
+
finalServerPrerenderStore, // The function to run
|
|
2302
|
+
ComponentMod.prerender, // ... the arguments for the function to run
|
|
2303
|
+
finalAttemptRSCPayload, clientReferenceManifest.clientModules, {
|
|
2304
|
+
filterStackFrame,
|
|
2305
|
+
onError: (err)=>{
|
|
2306
|
+
return serverComponentsErrorHandler(err);
|
|
2307
|
+
},
|
|
2308
|
+
signal: finalServerReactController.signal
|
|
2309
|
+
});
|
|
2310
|
+
// The listener to abort our own render controller must be added
|
|
2311
|
+
// after React has added its listener, to ensure that pending I/O
|
|
2312
|
+
// is not aborted/rejected too early.
|
|
2313
|
+
finalServerReactController.signal.addEventListener('abort', ()=>{
|
|
2314
|
+
finalServerRenderController.abort();
|
|
2315
|
+
}, {
|
|
2316
|
+
once: true
|
|
2317
|
+
});
|
|
2318
|
+
const prerenderResult = await pendingPrerenderResult;
|
|
2319
|
+
prerenderIsPending = false;
|
|
2320
|
+
return prerenderResult;
|
|
2321
|
+
}, ()=>{
|
|
2322
|
+
if (finalServerReactController.signal.aborted) {
|
|
2323
|
+
// If the server controller is already aborted we must have called something
|
|
2324
|
+
// that required aborting the prerender synchronously such as with new Date()
|
|
2325
|
+
serverIsDynamic = true;
|
|
2326
|
+
return;
|
|
2327
|
+
}
|
|
2328
|
+
if (prerenderIsPending) {
|
|
2329
|
+
// If prerenderIsPending then we have blocked for longer than a Task and we assume
|
|
2330
|
+
// there is something unfinished.
|
|
2331
|
+
serverIsDynamic = true;
|
|
2332
|
+
}
|
|
2333
|
+
finalServerReactController.abort();
|
|
2334
|
+
}));
|
|
2335
|
+
const clientDynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(isDebugDynamicAccesses);
|
|
2336
|
+
const finalClientReactController = new AbortController();
|
|
2337
|
+
const finalClientRenderController = new AbortController();
|
|
2338
|
+
const finalClientPrerenderStore = {
|
|
2339
|
+
type: 'prerender-client',
|
|
2340
|
+
phase: 'render',
|
|
2341
|
+
rootParams,
|
|
2342
|
+
fallbackRouteParams,
|
|
2343
|
+
implicitTags,
|
|
2344
|
+
renderSignal: finalClientRenderController.signal,
|
|
2345
|
+
controller: finalClientReactController,
|
|
2346
|
+
// No APIs require a cacheSignal through the workUnitStore during the HTML prerender
|
|
2347
|
+
cacheSignal: null,
|
|
2348
|
+
dynamicTracking: clientDynamicTracking,
|
|
2349
|
+
allowEmptyStaticShell,
|
|
2350
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2351
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2352
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2353
|
+
tags: [
|
|
2354
|
+
...implicitTags.tags
|
|
2355
|
+
],
|
|
2356
|
+
prerenderResumeDataCache,
|
|
2357
|
+
renderResumeDataCache,
|
|
2358
|
+
hmrRefreshHash: undefined,
|
|
2359
|
+
captureOwnerStack: undefined
|
|
2360
|
+
};
|
|
2361
|
+
let dynamicValidation = (0, _dynamicrendering.createDynamicValidationState)();
|
|
2362
|
+
const prerender = require('react-dom/static').prerender;
|
|
2363
|
+
let { prelude: unprocessedPrelude, postponed } = await (0, _apprenderprerenderutils.prerenderAndAbortInSequentialTasks)(()=>{
|
|
2364
|
+
const pendingFinalClientResult = _workunitasyncstorageexternal.workUnitAsyncStorage.run(finalClientPrerenderStore, prerender, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2365
|
+
reactServerStream: reactServerResult.asUnclosingStream(),
|
|
2366
|
+
preinitScripts: preinitScripts,
|
|
2367
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2368
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2369
|
+
nonce: nonce
|
|
2370
|
+
}), {
|
|
2371
|
+
signal: finalClientReactController.signal,
|
|
2372
|
+
onError: (err, errorInfo)=>{
|
|
2373
|
+
if ((0, _dynamicrendering.isPrerenderInterruptedError)(err) || finalClientReactController.signal.aborted) {
|
|
2374
|
+
const componentStack = errorInfo.componentStack;
|
|
2375
|
+
if (typeof componentStack === 'string') {
|
|
2376
|
+
(0, _dynamicrendering.trackAllowedDynamicAccess)(workStore, componentStack, dynamicValidation, clientDynamicTracking);
|
|
2377
|
+
}
|
|
2378
|
+
return;
|
|
2379
|
+
}
|
|
2380
|
+
return htmlRendererErrorHandler(err, errorInfo);
|
|
2381
|
+
},
|
|
2382
|
+
onHeaders: (headers)=>{
|
|
2383
|
+
headers.forEach((value, key)=>{
|
|
2384
|
+
appendHeader(key, value);
|
|
2385
|
+
});
|
|
2386
|
+
},
|
|
2387
|
+
maxHeadersLength: reactMaxHeadersLength,
|
|
2388
|
+
bootstrapScripts: [
|
|
2389
|
+
bootstrapScript
|
|
2390
|
+
]
|
|
2391
|
+
});
|
|
2392
|
+
// The listener to abort our own render controller must be added
|
|
2393
|
+
// after React has added its listener, to ensure that pending I/O is
|
|
2394
|
+
// not aborted/rejected too early.
|
|
2395
|
+
finalClientReactController.signal.addEventListener('abort', ()=>{
|
|
2396
|
+
finalClientRenderController.abort();
|
|
2397
|
+
}, {
|
|
2398
|
+
once: true
|
|
2399
|
+
});
|
|
2400
|
+
return pendingFinalClientResult;
|
|
2401
|
+
}, ()=>{
|
|
2402
|
+
finalClientReactController.abort();
|
|
2403
|
+
});
|
|
2404
|
+
const { prelude, preludeIsEmpty } = await (0, _apprenderprerenderutils.processPrelude)(unprocessedPrelude);
|
|
2405
|
+
// If we've disabled throwing on empty static shell, then we don't need to
|
|
2406
|
+
// track any dynamic access that occurs above the suspense boundary because
|
|
2407
|
+
// we'll do so in the route shell.
|
|
2408
|
+
if (!allowEmptyStaticShell) {
|
|
2409
|
+
(0, _dynamicrendering.throwIfDisallowedDynamic)(workStore, preludeIsEmpty ? _dynamicrendering.PreludeState.Empty : _dynamicrendering.PreludeState.Full, dynamicValidation, serverDynamicTracking);
|
|
2410
|
+
}
|
|
2411
|
+
const getServerInsertedHTML = (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
2412
|
+
polyfills,
|
|
2413
|
+
renderServerInsertedHTML,
|
|
2414
|
+
serverCapturedErrors: allCapturedErrors,
|
|
2415
|
+
basePath,
|
|
2416
|
+
tracingMetadata: tracingMetadata
|
|
2417
|
+
});
|
|
2418
|
+
const flightData = await (0, _nodewebstreamshelper.streamToBuffer)(reactServerResult.asStream());
|
|
2419
|
+
metadata.flightData = flightData;
|
|
2420
|
+
metadata.segmentData = await collectSegmentData(flightData, finalServerPrerenderStore, ComponentMod, renderOpts);
|
|
2421
|
+
// If there are fallback route params, the RSC data is inherently dynamic
|
|
2422
|
+
// today because it's encoded into the flight router state. Until we can
|
|
2423
|
+
// move the fallback route params out of the flight router state, we need
|
|
2424
|
+
// to always perform a dynamic resume after the static prerender.
|
|
2425
|
+
const hasFallbackRouteParams = fallbackRouteParams && fallbackRouteParams.size > 0;
|
|
2426
|
+
if (serverIsDynamic || hasFallbackRouteParams) {
|
|
2427
|
+
// Dynamic case
|
|
2428
|
+
// We will always need to perform a "resume" render of some kind when this route is accessed
|
|
2429
|
+
// because the RSC data itself is dynamic. We determine if there are any HTML holes or not
|
|
2430
|
+
// but generally this is a "partial" prerender in that there will be a per-request compute
|
|
2431
|
+
// concatenated to the static shell.
|
|
2432
|
+
if (postponed != null) {
|
|
2433
|
+
// Dynamic HTML case
|
|
2434
|
+
metadata.postponed = await (0, _postponedstate.getDynamicHTMLPostponedState)(postponed, preludeIsEmpty ? _postponedstate.DynamicHTMLPreludeState.Empty : _postponedstate.DynamicHTMLPreludeState.Full, fallbackRouteParams, resumeDataCache);
|
|
2435
|
+
} else {
|
|
2436
|
+
// Dynamic Data case
|
|
2437
|
+
metadata.postponed = await (0, _postponedstate.getDynamicDataPostponedState)(resumeDataCache);
|
|
2438
|
+
}
|
|
2439
|
+
reactServerResult.consume();
|
|
2440
|
+
return {
|
|
2441
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2442
|
+
ssrErrors: allCapturedErrors,
|
|
2443
|
+
stream: await (0, _nodewebstreamshelper.continueDynamicPrerender)(prelude, {
|
|
2444
|
+
getServerInsertedHTML,
|
|
2445
|
+
getServerInsertedMetadata
|
|
2446
|
+
}),
|
|
2447
|
+
dynamicAccess: (0, _dynamicrendering.consumeDynamicAccess)(serverDynamicTracking, clientDynamicTracking),
|
|
2448
|
+
// TODO: Should this include the SSR pass?
|
|
2449
|
+
collectedRevalidate: finalServerPrerenderStore.revalidate,
|
|
2450
|
+
collectedExpire: finalServerPrerenderStore.expire,
|
|
2451
|
+
collectedStale: selectStaleTime(finalServerPrerenderStore.stale),
|
|
2452
|
+
collectedTags: finalServerPrerenderStore.tags,
|
|
2453
|
+
renderResumeDataCache: (0, _resumedatacache.createRenderResumeDataCache)(resumeDataCache)
|
|
2454
|
+
};
|
|
2455
|
+
} else {
|
|
2456
|
+
// Static case
|
|
2457
|
+
// We will not perform resumption per request. The result can be served statically to the requestor
|
|
2458
|
+
// and if there was anything dynamic it will only be rendered in the browser.
|
|
2459
|
+
if (workStore.forceDynamic) {
|
|
2460
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError('Invariant: a Page with `dynamic = "force-dynamic"` did not trigger the dynamic pathway. This is a bug in Next.js'), "__NEXT_ERROR_CODE", {
|
|
2461
|
+
value: "E598",
|
|
2462
|
+
enumerable: false,
|
|
2463
|
+
configurable: true
|
|
2464
|
+
});
|
|
2465
|
+
}
|
|
2466
|
+
let htmlStream = prelude;
|
|
2467
|
+
if (postponed != null) {
|
|
2468
|
+
// We postponed but nothing dynamic was used. We resume the render now and immediately abort it
|
|
2469
|
+
// so we can set all the postponed boundaries to client render mode before we store the HTML response
|
|
2470
|
+
const resume = require('react-dom/server').resume;
|
|
2471
|
+
// We don't actually want to render anything so we just pass a stream
|
|
2472
|
+
// that never resolves. The resume call is going to abort immediately anyway
|
|
2473
|
+
const foreverStream = new ReadableStream();
|
|
2474
|
+
const resumeStream = await resume(/*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2475
|
+
reactServerStream: foreverStream,
|
|
2476
|
+
preinitScripts: ()=>{},
|
|
2477
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2478
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2479
|
+
nonce: nonce
|
|
2480
|
+
}), JSON.parse(JSON.stringify(postponed)), {
|
|
2481
|
+
signal: (0, _dynamicrendering.createRenderInBrowserAbortSignal)(),
|
|
2482
|
+
onError: htmlRendererErrorHandler,
|
|
2483
|
+
nonce
|
|
2484
|
+
});
|
|
2485
|
+
// First we write everything from the prerender, then we write everything from the aborted resume render
|
|
2486
|
+
htmlStream = (0, _nodewebstreamshelper.chainStreams)(prelude, resumeStream);
|
|
2487
|
+
}
|
|
2488
|
+
return {
|
|
2489
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2490
|
+
ssrErrors: allCapturedErrors,
|
|
2491
|
+
stream: await (0, _nodewebstreamshelper.continueStaticPrerender)(htmlStream, {
|
|
2492
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.consumeAsStream(), nonce, formState),
|
|
2493
|
+
getServerInsertedHTML,
|
|
2494
|
+
getServerInsertedMetadata,
|
|
2495
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
2496
|
+
buildId: ctx.workStore.buildId
|
|
2497
|
+
}),
|
|
2498
|
+
dynamicAccess: (0, _dynamicrendering.consumeDynamicAccess)(serverDynamicTracking, clientDynamicTracking),
|
|
2499
|
+
// TODO: Should this include the SSR pass?
|
|
2500
|
+
collectedRevalidate: finalServerPrerenderStore.revalidate,
|
|
2501
|
+
collectedExpire: finalServerPrerenderStore.expire,
|
|
2502
|
+
collectedStale: selectStaleTime(finalServerPrerenderStore.stale),
|
|
2503
|
+
collectedTags: finalServerPrerenderStore.tags,
|
|
2504
|
+
renderResumeDataCache: (0, _resumedatacache.createRenderResumeDataCache)(resumeDataCache)
|
|
2505
|
+
};
|
|
2506
|
+
}
|
|
2507
|
+
} else if (experimental.isRoutePPREnabled) {
|
|
2508
|
+
// We're statically generating with PPR and need to do dynamic tracking
|
|
2509
|
+
let dynamicTracking = (0, _dynamicrendering.createDynamicTrackingState)(isDebugDynamicAccesses);
|
|
2510
|
+
const prerenderResumeDataCache = (0, _resumedatacache.createPrerenderResumeDataCache)();
|
|
2511
|
+
const reactServerPrerenderStore = prerenderStore = {
|
|
2512
|
+
type: 'prerender-ppr',
|
|
2513
|
+
phase: 'render',
|
|
2514
|
+
rootParams,
|
|
2515
|
+
fallbackRouteParams,
|
|
2516
|
+
implicitTags,
|
|
2517
|
+
dynamicTracking,
|
|
2518
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2519
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2520
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2521
|
+
tags: [
|
|
2522
|
+
...implicitTags.tags
|
|
2523
|
+
],
|
|
2524
|
+
prerenderResumeDataCache
|
|
2525
|
+
};
|
|
2526
|
+
const RSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(reactServerPrerenderStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
2527
|
+
const reactServerResult = reactServerPrerenderResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResultFromRender)(_workunitasyncstorageexternal.workUnitAsyncStorage.run(reactServerPrerenderStore, ComponentMod.renderToReadableStream, // ... the arguments for the function to run
|
|
2528
|
+
RSCPayload, clientReferenceManifest.clientModules, {
|
|
2529
|
+
filterStackFrame,
|
|
2530
|
+
onError: serverComponentsErrorHandler
|
|
2531
|
+
}));
|
|
2532
|
+
const ssrPrerenderStore = {
|
|
2533
|
+
type: 'prerender-ppr',
|
|
2534
|
+
phase: 'render',
|
|
2535
|
+
rootParams,
|
|
2536
|
+
fallbackRouteParams,
|
|
2537
|
+
implicitTags,
|
|
2538
|
+
dynamicTracking,
|
|
2539
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2540
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2541
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2542
|
+
tags: [
|
|
2543
|
+
...implicitTags.tags
|
|
2544
|
+
],
|
|
2545
|
+
prerenderResumeDataCache
|
|
2546
|
+
};
|
|
2547
|
+
const prerender = require('react-dom/static').prerender;
|
|
2548
|
+
const { prelude: unprocessedPrelude, postponed } = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(ssrPrerenderStore, prerender, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2549
|
+
reactServerStream: reactServerResult.asUnclosingStream(),
|
|
2550
|
+
preinitScripts: preinitScripts,
|
|
2551
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2552
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2553
|
+
nonce: nonce
|
|
2554
|
+
}), {
|
|
2555
|
+
onError: htmlRendererErrorHandler,
|
|
2556
|
+
onHeaders: (headers)=>{
|
|
2557
|
+
headers.forEach((value, key)=>{
|
|
2558
|
+
appendHeader(key, value);
|
|
2559
|
+
});
|
|
2560
|
+
},
|
|
2561
|
+
maxHeadersLength: reactMaxHeadersLength,
|
|
2562
|
+
bootstrapScripts: [
|
|
2563
|
+
bootstrapScript
|
|
2564
|
+
]
|
|
2565
|
+
});
|
|
2566
|
+
const getServerInsertedHTML = (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
2567
|
+
polyfills,
|
|
2568
|
+
renderServerInsertedHTML,
|
|
2569
|
+
serverCapturedErrors: allCapturedErrors,
|
|
2570
|
+
basePath,
|
|
2571
|
+
tracingMetadata: tracingMetadata
|
|
2572
|
+
});
|
|
2573
|
+
// After awaiting here we've waited for the entire RSC render to complete. Crucially this means
|
|
2574
|
+
// that when we detect whether we've used dynamic APIs below we know we'll have picked up even
|
|
2575
|
+
// parts of the React Server render that might not be used in the SSR render.
|
|
2576
|
+
const flightData = await (0, _nodewebstreamshelper.streamToBuffer)(reactServerResult.asStream());
|
|
2577
|
+
if (shouldGenerateStaticFlightData(workStore)) {
|
|
2578
|
+
metadata.flightData = flightData;
|
|
2579
|
+
metadata.segmentData = await collectSegmentData(flightData, ssrPrerenderStore, ComponentMod, renderOpts);
|
|
2580
|
+
}
|
|
2581
|
+
const { prelude, preludeIsEmpty } = await (0, _apprenderprerenderutils.processPrelude)(unprocessedPrelude);
|
|
2582
|
+
/**
|
|
2583
|
+
* When prerendering there are three outcomes to consider
|
|
2584
|
+
*
|
|
2585
|
+
* Dynamic HTML: The prerender has dynamic holes (caused by using Next.js Dynamic Rendering APIs)
|
|
2586
|
+
* We will need to resume this result when requests are handled and we don't include
|
|
2587
|
+
* any server inserted HTML or inlined flight data in the static HTML
|
|
2588
|
+
*
|
|
2589
|
+
* Dynamic Data: The prerender has no dynamic holes but dynamic APIs were used. We will not
|
|
2590
|
+
* resume this render when requests are handled but we will generate new inlined
|
|
2591
|
+
* flight data since it is dynamic and differences may end up reconciling on the client
|
|
2592
|
+
*
|
|
2593
|
+
* Static: The prerender has no dynamic holes and no dynamic APIs were used. We statically encode
|
|
2594
|
+
* all server inserted HTML and flight data
|
|
2595
|
+
*/ // First we check if we have any dynamic holes in our HTML prerender
|
|
2596
|
+
if ((0, _dynamicrendering.accessedDynamicData)(dynamicTracking.dynamicAccesses)) {
|
|
2597
|
+
if (postponed != null) {
|
|
2598
|
+
// Dynamic HTML case.
|
|
2599
|
+
metadata.postponed = await (0, _postponedstate.getDynamicHTMLPostponedState)(postponed, preludeIsEmpty ? _postponedstate.DynamicHTMLPreludeState.Empty : _postponedstate.DynamicHTMLPreludeState.Full, fallbackRouteParams, prerenderResumeDataCache);
|
|
2600
|
+
} else {
|
|
2601
|
+
// Dynamic Data case.
|
|
2602
|
+
metadata.postponed = await (0, _postponedstate.getDynamicDataPostponedState)(prerenderResumeDataCache);
|
|
2603
|
+
}
|
|
2604
|
+
// Regardless of whether this is the Dynamic HTML or Dynamic Data case we need to ensure we include
|
|
2605
|
+
// server inserted html in the static response because the html that is part of the prerender may depend on it
|
|
2606
|
+
// It is possible in the set of stream transforms for Dynamic HTML vs Dynamic Data may differ but currently both states
|
|
2607
|
+
// require the same set so we unify the code path here
|
|
2608
|
+
reactServerResult.consume();
|
|
2609
|
+
return {
|
|
2610
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2611
|
+
ssrErrors: allCapturedErrors,
|
|
2612
|
+
stream: await (0, _nodewebstreamshelper.continueDynamicPrerender)(prelude, {
|
|
2613
|
+
getServerInsertedHTML,
|
|
2614
|
+
getServerInsertedMetadata
|
|
2615
|
+
}),
|
|
2616
|
+
dynamicAccess: dynamicTracking.dynamicAccesses,
|
|
2617
|
+
// TODO: Should this include the SSR pass?
|
|
2618
|
+
collectedRevalidate: reactServerPrerenderStore.revalidate,
|
|
2619
|
+
collectedExpire: reactServerPrerenderStore.expire,
|
|
2620
|
+
collectedStale: selectStaleTime(reactServerPrerenderStore.stale),
|
|
2621
|
+
collectedTags: reactServerPrerenderStore.tags
|
|
2622
|
+
};
|
|
2623
|
+
} else if (fallbackRouteParams && fallbackRouteParams.size > 0) {
|
|
2624
|
+
// Rendering the fallback case.
|
|
2625
|
+
metadata.postponed = await (0, _postponedstate.getDynamicDataPostponedState)(prerenderResumeDataCache);
|
|
2626
|
+
return {
|
|
2627
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2628
|
+
ssrErrors: allCapturedErrors,
|
|
2629
|
+
stream: await (0, _nodewebstreamshelper.continueDynamicPrerender)(prelude, {
|
|
2630
|
+
getServerInsertedHTML,
|
|
2631
|
+
getServerInsertedMetadata
|
|
2632
|
+
}),
|
|
2633
|
+
dynamicAccess: dynamicTracking.dynamicAccesses,
|
|
2634
|
+
// TODO: Should this include the SSR pass?
|
|
2635
|
+
collectedRevalidate: reactServerPrerenderStore.revalidate,
|
|
2636
|
+
collectedExpire: reactServerPrerenderStore.expire,
|
|
2637
|
+
collectedStale: selectStaleTime(reactServerPrerenderStore.stale),
|
|
2638
|
+
collectedTags: reactServerPrerenderStore.tags
|
|
2639
|
+
};
|
|
2640
|
+
} else {
|
|
2641
|
+
// Static case
|
|
2642
|
+
// We still have not used any dynamic APIs. At this point we can produce an entirely static prerender response
|
|
2643
|
+
if (workStore.forceDynamic) {
|
|
2644
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError('Invariant: a Page with `dynamic = "force-dynamic"` did not trigger the dynamic pathway. This is a bug in Next.js'), "__NEXT_ERROR_CODE", {
|
|
2645
|
+
value: "E598",
|
|
2646
|
+
enumerable: false,
|
|
2647
|
+
configurable: true
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
let htmlStream = prelude;
|
|
2651
|
+
if (postponed != null) {
|
|
2652
|
+
// We postponed but nothing dynamic was used. We resume the render now and immediately abort it
|
|
2653
|
+
// so we can set all the postponed boundaries to client render mode before we store the HTML response
|
|
2654
|
+
const resume = require('react-dom/server').resume;
|
|
2655
|
+
// We don't actually want to render anything so we just pass a stream
|
|
2656
|
+
// that never resolves. The resume call is going to abort immediately anyway
|
|
2657
|
+
const foreverStream = new ReadableStream();
|
|
2658
|
+
const resumeStream = await resume(/*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2659
|
+
reactServerStream: foreverStream,
|
|
2660
|
+
preinitScripts: ()=>{},
|
|
2661
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2662
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2663
|
+
nonce: nonce
|
|
2664
|
+
}), JSON.parse(JSON.stringify(postponed)), {
|
|
2665
|
+
signal: (0, _dynamicrendering.createRenderInBrowserAbortSignal)(),
|
|
2666
|
+
onError: htmlRendererErrorHandler,
|
|
2667
|
+
nonce
|
|
2668
|
+
});
|
|
2669
|
+
// First we write everything from the prerender, then we write everything from the aborted resume render
|
|
2670
|
+
htmlStream = (0, _nodewebstreamshelper.chainStreams)(prelude, resumeStream);
|
|
2671
|
+
}
|
|
2672
|
+
return {
|
|
2673
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2674
|
+
ssrErrors: allCapturedErrors,
|
|
2675
|
+
stream: await (0, _nodewebstreamshelper.continueStaticPrerender)(htmlStream, {
|
|
2676
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.consumeAsStream(), nonce, formState),
|
|
2677
|
+
getServerInsertedHTML,
|
|
2678
|
+
getServerInsertedMetadata,
|
|
2679
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
2680
|
+
buildId: ctx.workStore.buildId
|
|
2681
|
+
}),
|
|
2682
|
+
dynamicAccess: dynamicTracking.dynamicAccesses,
|
|
2683
|
+
// TODO: Should this include the SSR pass?
|
|
2684
|
+
collectedRevalidate: reactServerPrerenderStore.revalidate,
|
|
2685
|
+
collectedExpire: reactServerPrerenderStore.expire,
|
|
2686
|
+
collectedStale: selectStaleTime(reactServerPrerenderStore.stale),
|
|
2687
|
+
collectedTags: reactServerPrerenderStore.tags
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
} else {
|
|
2691
|
+
const prerenderLegacyStore = prerenderStore = {
|
|
2692
|
+
type: 'prerender-legacy',
|
|
2693
|
+
phase: 'render',
|
|
2694
|
+
rootParams,
|
|
2695
|
+
implicitTags,
|
|
2696
|
+
revalidate: _constants1.INFINITE_CACHE,
|
|
2697
|
+
expire: _constants1.INFINITE_CACHE,
|
|
2698
|
+
stale: _constants1.INFINITE_CACHE,
|
|
2699
|
+
tags: [
|
|
2700
|
+
...implicitTags.tags
|
|
2701
|
+
]
|
|
2702
|
+
};
|
|
2703
|
+
// This is a regular static generation. We don't do dynamic tracking because we rely on
|
|
2704
|
+
// the old-school dynamic error handling to bail out of static generation
|
|
2705
|
+
const RSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, getRSCPayload, tree, ctx, res.statusCode === 404);
|
|
2706
|
+
const reactServerResult = reactServerPrerenderResult = await (0, _apprenderprerenderutils.createReactServerPrerenderResultFromRender)(_workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, ComponentMod.renderToReadableStream, RSCPayload, clientReferenceManifest.clientModules, {
|
|
2707
|
+
filterStackFrame,
|
|
2708
|
+
onError: serverComponentsErrorHandler
|
|
2709
|
+
}));
|
|
2710
|
+
const renderToReadableStream = require('react-dom/server').renderToReadableStream;
|
|
2711
|
+
const htmlStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, renderToReadableStream, /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
|
|
2712
|
+
reactServerStream: reactServerResult.asUnclosingStream(),
|
|
2713
|
+
preinitScripts: preinitScripts,
|
|
2714
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2715
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2716
|
+
nonce: nonce
|
|
2717
|
+
}), {
|
|
2718
|
+
onError: htmlRendererErrorHandler,
|
|
2719
|
+
nonce,
|
|
2720
|
+
bootstrapScripts: [
|
|
2721
|
+
bootstrapScript
|
|
2722
|
+
]
|
|
2723
|
+
});
|
|
2724
|
+
if (shouldGenerateStaticFlightData(workStore)) {
|
|
2725
|
+
const flightData = await (0, _nodewebstreamshelper.streamToBuffer)(reactServerResult.asStream());
|
|
2726
|
+
metadata.flightData = flightData;
|
|
2727
|
+
metadata.segmentData = await collectSegmentData(flightData, prerenderLegacyStore, ComponentMod, renderOpts);
|
|
2728
|
+
}
|
|
2729
|
+
const getServerInsertedHTML = (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
2730
|
+
polyfills,
|
|
2731
|
+
renderServerInsertedHTML,
|
|
2732
|
+
serverCapturedErrors: allCapturedErrors,
|
|
2733
|
+
basePath,
|
|
2734
|
+
tracingMetadata: tracingMetadata
|
|
2735
|
+
});
|
|
2736
|
+
return {
|
|
2737
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2738
|
+
ssrErrors: allCapturedErrors,
|
|
2739
|
+
stream: await (0, _nodewebstreamshelper.continueFizzStream)(htmlStream, {
|
|
2740
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(reactServerResult.consumeAsStream(), nonce, formState),
|
|
2741
|
+
isStaticGeneration: true,
|
|
2742
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
2743
|
+
buildId: ctx.workStore.buildId,
|
|
2744
|
+
getServerInsertedHTML,
|
|
2745
|
+
getServerInsertedMetadata
|
|
2746
|
+
}),
|
|
2747
|
+
// TODO: Should this include the SSR pass?
|
|
2748
|
+
collectedRevalidate: prerenderLegacyStore.revalidate,
|
|
2749
|
+
collectedExpire: prerenderLegacyStore.expire,
|
|
2750
|
+
collectedStale: selectStaleTime(prerenderLegacyStore.stale),
|
|
2751
|
+
collectedTags: prerenderLegacyStore.tags
|
|
2752
|
+
};
|
|
2753
|
+
}
|
|
2754
|
+
} catch (err) {
|
|
2755
|
+
if ((0, _staticgenerationbailout.isStaticGenBailoutError)(err) || typeof err === 'object' && err !== null && 'message' in err && typeof err.message === 'string' && err.message.includes('https://nextjs.org/docs/advanced-features/static-html-export')) {
|
|
2756
|
+
// Ensure that "next dev" prints the red error overlay
|
|
2757
|
+
throw err;
|
|
2758
|
+
}
|
|
2759
|
+
// If this is a static generation error, we need to throw it so that it
|
|
2760
|
+
// can be handled by the caller if we're in static generation mode.
|
|
2761
|
+
if ((0, _hooksservercontext.isDynamicServerError)(err)) {
|
|
2762
|
+
throw err;
|
|
2763
|
+
}
|
|
2764
|
+
// If a bailout made it to this point, it means it wasn't wrapped inside
|
|
2765
|
+
// a suspense boundary.
|
|
2766
|
+
const shouldBailoutToCSR = (0, _bailouttocsr.isBailoutToCSRError)(err);
|
|
2767
|
+
if (shouldBailoutToCSR) {
|
|
2768
|
+
const stack = (0, _formatservererror.getStackWithoutErrorMessage)(err);
|
|
2769
|
+
(0, _log.error)(`${err.reason} should be wrapped in a suspense boundary at page "${pagePath}". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout\n${stack}`);
|
|
2770
|
+
throw err;
|
|
2771
|
+
}
|
|
2772
|
+
// If we errored when we did not have an RSC stream to read from. This is
|
|
2773
|
+
// not just a render error, we need to throw early.
|
|
2774
|
+
if (reactServerPrerenderResult === null) {
|
|
2775
|
+
throw err;
|
|
2776
|
+
}
|
|
2777
|
+
let errorType;
|
|
2778
|
+
if ((0, _httpaccessfallback.isHTTPAccessFallbackError)(err)) {
|
|
2779
|
+
res.statusCode = (0, _httpaccessfallback.getAccessFallbackHTTPStatus)(err);
|
|
2780
|
+
metadata.statusCode = res.statusCode;
|
|
2781
|
+
errorType = (0, _httpaccessfallback.getAccessFallbackErrorTypeByStatus)(res.statusCode);
|
|
2782
|
+
} else if ((0, _redirecterror.isRedirectError)(err)) {
|
|
2783
|
+
errorType = 'redirect';
|
|
2784
|
+
res.statusCode = (0, _redirect.getRedirectStatusCodeFromError)(err);
|
|
2785
|
+
metadata.statusCode = res.statusCode;
|
|
2786
|
+
const redirectUrl = (0, _addpathprefix.addPathPrefix)((0, _redirect.getURLFromRedirectError)(err), basePath);
|
|
2787
|
+
setHeader('location', redirectUrl);
|
|
2788
|
+
} else if (!shouldBailoutToCSR) {
|
|
2789
|
+
res.statusCode = 500;
|
|
2790
|
+
metadata.statusCode = res.statusCode;
|
|
2791
|
+
}
|
|
2792
|
+
const [errorPreinitScripts, errorBootstrapScript] = (0, _requiredscripts.getRequiredScripts)(buildManifest, assetPrefix, crossOrigin, subresourceIntegrityManifest, (0, _getassetquerystring.getAssetQueryString)(ctx, false), nonce, '/_not-found/page');
|
|
2793
|
+
const prerenderLegacyStore = prerenderStore = {
|
|
2794
|
+
type: 'prerender-legacy',
|
|
2795
|
+
phase: 'render',
|
|
2796
|
+
rootParams,
|
|
2797
|
+
implicitTags: implicitTags,
|
|
2798
|
+
revalidate: typeof (prerenderStore == null ? void 0 : prerenderStore.revalidate) !== 'undefined' ? prerenderStore.revalidate : _constants1.INFINITE_CACHE,
|
|
2799
|
+
expire: typeof (prerenderStore == null ? void 0 : prerenderStore.expire) !== 'undefined' ? prerenderStore.expire : _constants1.INFINITE_CACHE,
|
|
2800
|
+
stale: typeof (prerenderStore == null ? void 0 : prerenderStore.stale) !== 'undefined' ? prerenderStore.stale : _constants1.INFINITE_CACHE,
|
|
2801
|
+
tags: [
|
|
2802
|
+
...(prerenderStore == null ? void 0 : prerenderStore.tags) || implicitTags.tags
|
|
2803
|
+
]
|
|
2804
|
+
};
|
|
2805
|
+
const errorRSCPayload = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, getErrorRSCPayload, tree, ctx, reactServerErrorsByDigest.has(err.digest) ? undefined : err, errorType);
|
|
2806
|
+
const errorServerStream = _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, ComponentMod.renderToReadableStream, errorRSCPayload, clientReferenceManifest.clientModules, {
|
|
2807
|
+
filterStackFrame,
|
|
2808
|
+
onError: serverComponentsErrorHandler
|
|
2809
|
+
});
|
|
2810
|
+
try {
|
|
2811
|
+
// TODO we should use the same prerender semantics that we initially rendered
|
|
2812
|
+
// with in this case too. The only reason why this is ok atm is because it's essentially
|
|
2813
|
+
// an empty page and no user code runs.
|
|
2814
|
+
const fizzStream = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(prerenderLegacyStore, _nodewebstreamshelper.renderToInitialFizzStream, {
|
|
2815
|
+
ReactDOMServer: require('react-dom/server'),
|
|
2816
|
+
element: /*#__PURE__*/ (0, _jsxruntime.jsx)(ErrorApp, {
|
|
2817
|
+
reactServerStream: errorServerStream,
|
|
2818
|
+
ServerInsertedHTMLProvider: ServerInsertedHTMLProvider,
|
|
2819
|
+
preinitScripts: errorPreinitScripts,
|
|
2820
|
+
clientReferenceManifest: clientReferenceManifest,
|
|
2821
|
+
nonce: nonce
|
|
2822
|
+
}),
|
|
2823
|
+
streamOptions: {
|
|
2824
|
+
nonce,
|
|
2825
|
+
// Include hydration scripts in the HTML
|
|
2826
|
+
bootstrapScripts: [
|
|
2827
|
+
errorBootstrapScript
|
|
2828
|
+
],
|
|
2829
|
+
formState
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2832
|
+
if (shouldGenerateStaticFlightData(workStore)) {
|
|
2833
|
+
const flightData = await (0, _nodewebstreamshelper.streamToBuffer)(reactServerPrerenderResult.asStream());
|
|
2834
|
+
metadata.flightData = flightData;
|
|
2835
|
+
metadata.segmentData = await collectSegmentData(flightData, prerenderLegacyStore, ComponentMod, renderOpts);
|
|
2836
|
+
}
|
|
2837
|
+
// This is intentionally using the readable datastream from the main
|
|
2838
|
+
// render rather than the flight data from the error page render
|
|
2839
|
+
const flightStream = reactServerPrerenderResult.consumeAsStream();
|
|
2840
|
+
return {
|
|
2841
|
+
// Returning the error that was thrown so it can be used to handle
|
|
2842
|
+
// the response in the caller.
|
|
2843
|
+
digestErrorsMap: reactServerErrorsByDigest,
|
|
2844
|
+
ssrErrors: allCapturedErrors,
|
|
2845
|
+
stream: await (0, _nodewebstreamshelper.continueFizzStream)(fizzStream, {
|
|
2846
|
+
inlinedDataStream: (0, _useflightresponse.createInlinedDataReadableStream)(flightStream, nonce, formState),
|
|
2847
|
+
isStaticGeneration: true,
|
|
2848
|
+
isBuildTimePrerendering: ctx.workStore.isBuildTimePrerendering === true,
|
|
2849
|
+
buildId: ctx.workStore.buildId,
|
|
2850
|
+
getServerInsertedHTML: (0, _makegetserverinsertedhtml.makeGetServerInsertedHTML)({
|
|
2851
|
+
polyfills,
|
|
2852
|
+
renderServerInsertedHTML,
|
|
2853
|
+
serverCapturedErrors: [],
|
|
2854
|
+
basePath,
|
|
2855
|
+
tracingMetadata: tracingMetadata
|
|
2856
|
+
}),
|
|
2857
|
+
getServerInsertedMetadata,
|
|
2858
|
+
validateRootLayout: dev
|
|
2859
|
+
}),
|
|
2860
|
+
dynamicAccess: null,
|
|
2861
|
+
collectedRevalidate: prerenderStore !== null ? prerenderStore.revalidate : _constants1.INFINITE_CACHE,
|
|
2862
|
+
collectedExpire: prerenderStore !== null ? prerenderStore.expire : _constants1.INFINITE_CACHE,
|
|
2863
|
+
collectedStale: selectStaleTime(prerenderStore !== null ? prerenderStore.stale : _constants1.INFINITE_CACHE),
|
|
2864
|
+
collectedTags: prerenderStore !== null ? prerenderStore.tags : null
|
|
2865
|
+
};
|
|
2866
|
+
} catch (finalErr) {
|
|
2867
|
+
if (process.env.NODE_ENV === 'development' && (0, _httpaccessfallback.isHTTPAccessFallbackError)(finalErr)) {
|
|
2868
|
+
const { bailOnRootNotFound } = require('../../client/components/dev-root-http-access-fallback-boundary');
|
|
2869
|
+
bailOnRootNotFound();
|
|
2870
|
+
}
|
|
2871
|
+
throw finalErr;
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
const getGlobalErrorStyles = async (tree, ctx)=>{
|
|
2876
|
+
const { modules: { 'global-error': globalErrorModule } } = (0, _parseloadertree.parseLoaderTree)(tree);
|
|
2877
|
+
const GlobalErrorComponent = ctx.componentMod.GlobalError;
|
|
2878
|
+
let globalErrorStyles;
|
|
2879
|
+
if (globalErrorModule) {
|
|
2880
|
+
const [, styles] = await (0, _createcomponentstylesandscripts.createComponentStylesAndScripts)({
|
|
2881
|
+
ctx,
|
|
2882
|
+
filePath: globalErrorModule[1],
|
|
2883
|
+
getComponent: globalErrorModule[0],
|
|
2884
|
+
injectedCSS: new Set(),
|
|
2885
|
+
injectedJS: new Set()
|
|
2886
|
+
});
|
|
2887
|
+
globalErrorStyles = styles;
|
|
2888
|
+
}
|
|
2889
|
+
if (ctx.renderOpts.dev) {
|
|
2890
|
+
const dir = (process.env.NEXT_RUNTIME === 'edge' ? process.env.__NEXT_EDGE_PROJECT_DIR : ctx.renderOpts.dir) || '';
|
|
2891
|
+
const globalErrorModulePath = (0, _segmentexplorerpath.normalizeConventionFilePath)(dir, globalErrorModule == null ? void 0 : globalErrorModule[1]);
|
|
2892
|
+
if (ctx.renderOpts.devtoolSegmentExplorer && globalErrorModulePath) {
|
|
2893
|
+
const SegmentViewNode = ctx.componentMod.SegmentViewNode;
|
|
2894
|
+
globalErrorStyles = // This will be rendered next to GlobalError component under ErrorBoundary,
|
|
2895
|
+
// it requires a key to avoid React warning about duplicate keys.
|
|
2896
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(SegmentViewNode, {
|
|
2897
|
+
type: "global-error",
|
|
2898
|
+
pagePath: globalErrorModulePath,
|
|
2899
|
+
children: globalErrorStyles
|
|
2900
|
+
}, "ge-svn");
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
return {
|
|
2904
|
+
GlobalError: GlobalErrorComponent,
|
|
2905
|
+
styles: globalErrorStyles
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2908
|
+
function createSelectStaleTime(experimental) {
|
|
2909
|
+
return (stale)=>{
|
|
2910
|
+
var _experimental_staleTimes;
|
|
2911
|
+
return stale === _constants1.INFINITE_CACHE && typeof ((_experimental_staleTimes = experimental.staleTimes) == null ? void 0 : _experimental_staleTimes.static) === 'number' ? experimental.staleTimes.static : stale;
|
|
2912
|
+
};
|
|
2913
|
+
}
|
|
2914
|
+
async function collectSegmentData(fullPageDataBuffer, prerenderStore, ComponentMod, renderOpts) {
|
|
2915
|
+
// Per-segment prefetch data
|
|
2916
|
+
//
|
|
2917
|
+
// All of the segments for a page are generated simultaneously, including
|
|
2918
|
+
// during revalidations. This is to ensure consistency, because it's
|
|
2919
|
+
// possible for a mismatch between a layout and page segment can cause the
|
|
2920
|
+
// client to error during rendering. We want to preserve the ability of the
|
|
2921
|
+
// client to recover from such a mismatch by re-requesting all the segments
|
|
2922
|
+
// to get a consistent view of the page.
|
|
2923
|
+
//
|
|
2924
|
+
// For performance, we reuse the Flight output that was created when
|
|
2925
|
+
// generating the initial page HTML. The Flight stream for the whole page is
|
|
2926
|
+
// decomposed into a separate stream per segment.
|
|
2927
|
+
const clientReferenceManifest = renderOpts.clientReferenceManifest;
|
|
2928
|
+
if (!clientReferenceManifest || // Do not generate per-segment data unless the experimental Segment Cache
|
|
2929
|
+
// flag is enabled.
|
|
2930
|
+
//
|
|
2931
|
+
// We also skip generating segment data if flag is set to "client-only",
|
|
2932
|
+
// rather than true. (The "client-only" option only affects the behavior of
|
|
2933
|
+
// the client-side implementation; per-segment prefetches are intentionally
|
|
2934
|
+
// disabled in that configuration).
|
|
2935
|
+
renderOpts.experimental.clientSegmentCache !== true) {
|
|
2936
|
+
return;
|
|
2937
|
+
}
|
|
2938
|
+
// Manifest passed to the Flight client for reading the full-page Flight
|
|
2939
|
+
// stream. Based off similar code in use-cache-wrapper.ts.
|
|
2940
|
+
const isEdgeRuntime = process.env.NEXT_RUNTIME === 'edge';
|
|
2941
|
+
const serverConsumerManifest = {
|
|
2942
|
+
// moduleLoading must be null because we don't want to trigger preloads of ClientReferences
|
|
2943
|
+
// to be added to the consumer. Instead, we'll wait for any ClientReference to be emitted
|
|
2944
|
+
// which themselves will handle the preloading.
|
|
2945
|
+
moduleLoading: null,
|
|
2946
|
+
moduleMap: isEdgeRuntime ? clientReferenceManifest.edgeRscModuleMapping : clientReferenceManifest.rscModuleMapping,
|
|
2947
|
+
serverModuleMap: (0, _encryptionutils.getServerModuleMap)()
|
|
2948
|
+
};
|
|
2949
|
+
const staleTime = prerenderStore.stale;
|
|
2950
|
+
return await ComponentMod.collectSegmentData(renderOpts.experimental.clientParamParsing, fullPageDataBuffer, staleTime, clientReferenceManifest.clientModules, serverConsumerManifest);
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
//# sourceMappingURL=app-render.js.map
|