/opt/canhelp/node_modules/next/dist/esm/shared/lib
NameSizeModeActions
errors/-0755rm
i18n/-0755rm
isomorphic/-0755rm
lazy-dynamic/-0755rm
page-path/-0755rm
router/-0755rm
segment-cache/-0755rm
turbopack/-0755rm
utils/-0755rm
amp-context.shared-runtime.js2380644editdlrm
amp-context.shared-runtime.js.map5800644editdlrm
amp-mode.js2150644editdlrm
amp-mode.js.map4690644editdlrm
amp.js3190644editdlrm
amp.js.map6260644editdlrm
app-dynamic.js6100644editdlrm
app-dynamic.js.map18750644editdlrm
app-router-context.shared-runtime.js7050644editdlrm
app-router-context.shared-runtime.js.map62550644editdlrm
bloom-filter.js27610644editdlrm
bloom-filter.js.map54920644editdlrm
canary-only.js8180644editdlrm
canary-only.js.map14240644editdlrm
constants.js69750644editdlrm
constants.js.map117540644editdlrm
deep-freeze.js10460644editdlrm
deep-freeze.js.map17590644editdlrm
deep-readonly.js2790644editdlrm
deep-readonly.js.map5750644editdlrm
dset.d.ts1170644editdlrm
dset.js17240644editdlrm
dset.js.map25540644editdlrm
dynamic.js44310644editdlrm
dynamic.js.map75070644editdlrm
encode-uri-path.js1540644editdlrm
encode-uri-path.js.map4520644editdlrm
error-source.js3790644editdlrm
error-source.js.map9830644editdlrm
escape-regexp.js4760644editdlrm
escape-regexp.js.map8350644editdlrm
fnv1a.js25840644editdlrm
fnv1a.js.map40720644editdlrm
format-webpack-messages.js81210644editdlrm
format-webpack-messages.js.map129540644editdlrm
get-hostname.js7490644editdlrm
get-hostname.js.map13790644editdlrm
get-img-props.js249440644editdlrm
get-img-props.js.map378080644editdlrm
get-rspack.js20960644editdlrm
get-rspack.js.map27600644editdlrm
get-webpack-bundler.js4090644editdlrm
get-webpack-bundler.js.map7370644editdlrm
hash.js9010644editdlrm
hash.js.map14840644editdlrm
head-manager-context.shared-runtime.js2560644editdlrm
head-manager-context.shared-runtime.js.map8620644editdlrm
head.js57410644editdlrm
head.js.map96030644editdlrm
hooks-client-context.shared-runtime.js4970644editdlrm
hooks-client-context.shared-runtime.js.map10810644editdlrm
html-context.shared-runtime.js6880644editdlrm
html-context.shared-runtime.js.map27550644editdlrm
image-blur-svg.js12830644editdlrm
image-blur-svg.js.map21070644editdlrm
image-config-context.shared-runtime.js3250644editdlrm
image-config-context.shared-runtime.js.map7830644editdlrm
image-config.js9550644editdlrm
image-config.js.map59040644editdlrm
image-external.js12120644editdlrm
image-external.js.map21930644editdlrm
image-loader.js48650644editdlrm
image-loader.js.map67440644editdlrm
invariant-error.js2910644editdlrm
invariant-error.js.map6660644editdlrm
is-internal.js7480644editdlrm
is-internal.js.map12620644editdlrm
is-plain-object.js7040644editdlrm
is-plain-object.js.map12040644editdlrm
is-thenable.js3350644editdlrm
is-thenable.js.map6640644editdlrm
loadable-context.shared-runtime.js2590644editdlrm
loadable-context.shared-runtime.js.map6510644editdlrm
loadable.shared-runtime.js80110644editdlrm
loadable.shared-runtime.js.map138270644editdlrm
magic-identifier.js31450644editdlrm
magic-identifier.js.map41010644editdlrm
match-local-pattern.js8780644editdlrm
match-local-pattern.js.map16720644editdlrm
match-remote-pattern.js14860644editdlrm
match-remote-pattern.js.map26850644editdlrm
mitt.js20620644editdlrm
mitt.js.map29980644editdlrm
modern-browserslist-target.d.ts1990644editdlrm
modern-browserslist-target.js6380644editdlrm
modern-browserslist-target.js.map8930644editdlrm
no-fallback-error.external.js1960644editdlrm
no-fallback-error.external.js.map4100644editdlrm
normalized-asset-prefix.js7370644editdlrm
normalized-asset-prefix.js.map12970644editdlrm
promise-with-resolvers.js3720644editdlrm
promise-with-resolvers.js.map7620644editdlrm
router-context.shared-runtime.js2370644editdlrm
router-context.shared-runtime.js.map6210644editdlrm
runtime-config.external.js3730644editdlrm
runtime-config.external.js.map6510644editdlrm
segment.js7410644editdlrm
segment.js.map16450644editdlrm
server-inserted-html.shared-runtime.js7480644editdlrm
server-inserted-html.shared-runtime.js.map13830644editdlrm
server-reference-info.js18650644editdlrm
server-reference-info.js.map33340644editdlrm
side-effect.js25660644editdlrm
side-effect.js.map39540644editdlrm
styled-jsx.d.ts430644editdlrm
styled-jsx.js850644editdlrm
styled-jsx.js.map2300644editdlrm
utils.js47280644editdlrm
utils.js.map158240644editdlrm
zod.js26320644editdlrm
zod.js.map44900644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js.map (6255B)
{"version":3,"sources":["../../../src/shared/lib/app-router-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport type { FetchServerResponseResult } from '../../client/components/router-reducer/fetch-server-response'\nimport type {\n FocusAndScrollRef,\n PrefetchKind,\n} from '../../client/components/router-reducer/router-reducer-types'\nimport type {\n FlightRouterState,\n FlightSegmentPath,\n} from '../../server/app-render/types'\nimport React from 'react'\n\nexport type ChildSegmentMap = Map\n\n/**\n * Cache node used in app-router / layout-router.\n */\nexport type CacheNode = ReadyCacheNode | LazyCacheNode\n\nexport type LoadingModuleData =\n | [React.JSX.Element, React.ReactNode, React.ReactNode]\n | null\n\n/** viewport metadata node */\nexport type HeadData = React.ReactNode\n\nexport type LazyCacheNode = {\n /**\n * When rsc is null, this is a lazily-initialized cache node.\n *\n * If the app attempts to render it, it triggers a lazy data fetch,\n * postpones the render, and schedules an update to a new tree.\n *\n * TODO: This mechanism should not be used when PPR is enabled, though it\n * currently is in some cases until we've implemented partial\n * segment fetching.\n */\n rsc: null\n\n /**\n * A prefetched version of the segment data. See explanation in corresponding\n * field of ReadyCacheNode (below).\n *\n * Since LazyCacheNode mostly only exists in the non-PPR implementation, this\n * will usually be null, but it could have been cloned from a previous\n * CacheNode that was created by the PPR implementation. Eventually we want\n * to migrate everything away from LazyCacheNode entirely.\n */\n prefetchRsc: React.ReactNode\n\n /**\n * A pending response for the lazy data fetch. If this is not present\n * during render, it is lazily created.\n */\n lazyData: Promise | null\n\n prefetchHead: HeadData | null\n\n head: HeadData\n\n loading: LoadingModuleData | Promise\n\n /**\n * Child parallel routes.\n */\n parallelRoutes: Map\n\n /**\n * The timestamp of the navigation that last updated the CacheNode's data. If\n * a CacheNode is reused from a previous navigation, this value is not\n * updated. Used to track the staleness of the data.\n */\n navigatedAt: number\n}\n\nexport type ReadyCacheNode = {\n /**\n * When rsc is not null, it represents the RSC data for the\n * corresponding segment.\n *\n * `null` is a valid React Node but because segment data is always a\n * component, we can use `null` to represent empty.\n *\n * TODO: For additional type safety, update this type to\n * Exclude. Need to update createEmptyCacheNode to\n * accept rsc as an argument, or just inline the callers.\n */\n rsc: React.ReactNode\n\n /**\n * Represents a static version of the segment that can be shown immediately,\n * and may or may not contain dynamic holes. It's prefetched before a\n * navigation occurs.\n *\n * During rendering, we will choose whether to render `rsc` or `prefetchRsc`\n * with `useDeferredValue`. As with the `rsc` field, a value of `null` means\n * no value was provided. In this case, the LayoutRouter will go straight to\n * rendering the `rsc` value; if that one is also missing, it will suspend and\n * trigger a lazy fetch.\n */\n prefetchRsc: React.ReactNode\n\n /**\n * There should never be a lazy data request in this case.\n */\n lazyData: null\n prefetchHead: HeadData | null\n\n head: HeadData\n\n loading: LoadingModuleData | Promise\n\n parallelRoutes: Map\n\n navigatedAt: number\n}\n\nexport interface NavigateOptions {\n scroll?: boolean\n}\n\nexport interface PrefetchOptions {\n kind: PrefetchKind\n onInvalidate?: () => void\n}\n\nexport interface AppRouterInstance {\n /**\n * Navigate to the previous history entry.\n */\n back(): void\n /**\n * Navigate to the next history entry.\n */\n forward(): void\n /**\n * Refresh the current page.\n */\n refresh(): void\n /**\n * Refresh the current page. Use in development only.\n * @internal\n */\n hmrRefresh(): void\n /**\n * Navigate to the provided href.\n * Pushes a new history entry.\n */\n push(href: string, options?: NavigateOptions): void\n /**\n * Navigate to the provided href.\n * Replaces the current history entry.\n */\n replace(href: string, options?: NavigateOptions): void\n /**\n * Prefetch the provided href.\n */\n prefetch(href: string, options?: PrefetchOptions): void\n}\n\nexport const AppRouterContext = React.createContext(\n null\n)\nexport const LayoutRouterContext = React.createContext<{\n parentTree: FlightRouterState\n parentCacheNode: CacheNode\n parentSegmentPath: FlightSegmentPath | null\n url: string\n} | null>(null)\n\nexport const GlobalLayoutRouterContext = React.createContext<{\n tree: FlightRouterState\n focusAndScrollRef: FocusAndScrollRef\n nextUrl: string | null\n}>(null as any)\n\nexport const TemplateContext = React.createContext(null as any)\n\nif (process.env.NODE_ENV !== 'production') {\n AppRouterContext.displayName = 'AppRouterContext'\n LayoutRouterContext.displayName = 'LayoutRouterContext'\n GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext'\n TemplateContext.displayName = 'TemplateContext'\n}\n\nexport const MissingSlotContext = React.createContext>(new Set())\n"],"names":["React","AppRouterContext","createContext","LayoutRouterContext","GlobalLayoutRouterContext","TemplateContext","process","env","NODE_ENV","displayName","MissingSlotContext","Set"],"mappings":"AAAA;AAWA,OAAOA,WAAW,QAAO;AAsJzB,OAAO,MAAMC,mBAAmBD,MAAME,aAAa,CACjD,MACD;AACD,OAAO,MAAMC,sBAAsBH,MAAME,aAAa,CAK5C,MAAK;AAEf,OAAO,MAAME,4BAA4BJ,MAAME,aAAa,CAIzD,MAAY;AAEf,OAAO,MAAMG,kBAAkBL,MAAME,aAAa,CAAkB,MAAY;AAEhF,IAAII,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACzCP,iBAAiBQ,WAAW,GAAG;IAC/BN,oBAAoBM,WAAW,GAAG;IAClCL,0BAA0BK,WAAW,GAAG;IACxCJ,gBAAgBI,WAAW,GAAG;AAChC;AAEA,OAAO,MAAMC,qBAAqBV,MAAME,aAAa,CAAc,IAAIS,OAAM","ignoreList":[0]}