@betterinternship/components 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_interop_require_default.js +4 -0
  4. package/dist/_virtual/_interop_require_default.js.map +1 -0
  5. package/dist/_virtual/_interop_require_wildcard.js +4 -0
  6. package/dist/_virtual/_interop_require_wildcard.js.map +1 -0
  7. package/dist/_virtual/action-async-storage-instance.js +4 -0
  8. package/dist/_virtual/action-async-storage-instance.js.map +1 -0
  9. package/dist/_virtual/action-async-storage.external.js +4 -0
  10. package/dist/_virtual/action-async-storage.external.js.map +1 -0
  11. package/dist/_virtual/action-revalidation-kind.js +4 -0
  12. package/dist/_virtual/action-revalidation-kind.js.map +1 -0
  13. package/dist/_virtual/add-base-path.js +4 -0
  14. package/dist/_virtual/add-base-path.js.map +1 -0
  15. package/dist/_virtual/add-locale.js +4 -0
  16. package/dist/_virtual/add-locale.js.map +1 -0
  17. package/dist/_virtual/add-locale2.js +4 -0
  18. package/dist/_virtual/add-locale2.js.map +1 -0
  19. package/dist/_virtual/add-path-prefix.js +4 -0
  20. package/dist/_virtual/add-path-prefix.js.map +1 -0
  21. package/dist/_virtual/app-paths.js +4 -0
  22. package/dist/_virtual/app-paths.js.map +1 -0
  23. package/dist/_virtual/app-router-context.shared-runtime.js +4 -0
  24. package/dist/_virtual/app-router-context.shared-runtime.js.map +1 -0
  25. package/dist/_virtual/app.js +4 -0
  26. package/dist/_virtual/app.js.map +1 -0
  27. package/dist/_virtual/async-local-storage.js +4 -0
  28. package/dist/_virtual/async-local-storage.js.map +1 -0
  29. package/dist/_virtual/bailout-to-csr.js +4 -0
  30. package/dist/_virtual/bailout-to-csr.js.map +1 -0
  31. package/dist/_virtual/blocking-route-messages.js +4 -0
  32. package/dist/_virtual/blocking-route-messages.js.map +1 -0
  33. package/dist/_virtual/boundary-constants.js +4 -0
  34. package/dist/_virtual/boundary-constants.js.map +1 -0
  35. package/dist/_virtual/boundary-constants2.js +4 -0
  36. package/dist/_virtual/boundary-constants2.js.map +1 -0
  37. package/dist/_virtual/boundary-tracking.js +4 -0
  38. package/dist/_virtual/boundary-tracking.js.map +1 -0
  39. package/dist/_virtual/constants.js +4 -0
  40. package/dist/_virtual/constants.js.map +1 -0
  41. package/dist/_virtual/cookies.js +4 -0
  42. package/dist/_virtual/cookies.js.map +1 -0
  43. package/dist/_virtual/deployment-id.js +4 -0
  44. package/dist/_virtual/deployment-id.js.map +1 -0
  45. package/dist/_virtual/detect-domain-locale.js +4 -0
  46. package/dist/_virtual/detect-domain-locale.js.map +1 -0
  47. package/dist/_virtual/detect-domain-locale2.js +4 -0
  48. package/dist/_virtual/detect-domain-locale2.js.map +1 -0
  49. package/dist/_virtual/dynamic-rendering-utils.js +4 -0
  50. package/dist/_virtual/dynamic-rendering-utils.js.map +1 -0
  51. package/dist/_virtual/dynamic-rendering.js +4 -0
  52. package/dist/_virtual/dynamic-rendering.js.map +1 -0
  53. package/dist/_virtual/ensure-leading-slash.js +4 -0
  54. package/dist/_virtual/ensure-leading-slash.js.map +1 -0
  55. package/dist/_virtual/error-once.js +4 -0
  56. package/dist/_virtual/error-once.js.map +1 -0
  57. package/dist/_virtual/escape-regexp.js +4 -0
  58. package/dist/_virtual/escape-regexp.js.map +1 -0
  59. package/dist/_virtual/find-closest-quality.js +4 -0
  60. package/dist/_virtual/find-closest-quality.js.map +1 -0
  61. package/dist/_virtual/forbidden.js +4 -0
  62. package/dist/_virtual/forbidden.js.map +1 -0
  63. package/dist/_virtual/format-url.js +4 -0
  64. package/dist/_virtual/format-url.js.map +1 -0
  65. package/dist/_virtual/get-domain-locale.js +4 -0
  66. package/dist/_virtual/get-domain-locale.js.map +1 -0
  67. package/dist/_virtual/get-dynamic-param.js +4 -0
  68. package/dist/_virtual/get-dynamic-param.js.map +1 -0
  69. package/dist/_virtual/get-img-props.js +4 -0
  70. package/dist/_virtual/get-img-props.js.map +1 -0
  71. package/dist/_virtual/get-segment-param.js +4 -0
  72. package/dist/_virtual/get-segment-param.js.map +1 -0
  73. package/dist/_virtual/has-base-path.js +4 -0
  74. package/dist/_virtual/has-base-path.js.map +1 -0
  75. package/dist/_virtual/head-manager-context.shared-runtime.js +4 -0
  76. package/dist/_virtual/head-manager-context.shared-runtime.js.map +1 -0
  77. package/dist/_virtual/head.js +4 -0
  78. package/dist/_virtual/head.js.map +1 -0
  79. package/dist/_virtual/headers.js +4 -0
  80. package/dist/_virtual/headers.js.map +1 -0
  81. package/dist/_virtual/hooks-client-context.shared-runtime.js +4 -0
  82. package/dist/_virtual/hooks-client-context.shared-runtime.js.map +1 -0
  83. package/dist/_virtual/hooks-server-context.js +4 -0
  84. package/dist/_virtual/hooks-server-context.js.map +1 -0
  85. package/dist/_virtual/http-access-fallback.js +4 -0
  86. package/dist/_virtual/http-access-fallback.js.map +1 -0
  87. package/dist/_virtual/image-blur-svg.js +4 -0
  88. package/dist/_virtual/image-blur-svg.js.map +1 -0
  89. package/dist/_virtual/image-component.js +4 -0
  90. package/dist/_virtual/image-component.js.map +1 -0
  91. package/dist/_virtual/image-config-context.shared-runtime.js +4 -0
  92. package/dist/_virtual/image-config-context.shared-runtime.js.map +1 -0
  93. package/dist/_virtual/image-config.js +4 -0
  94. package/dist/_virtual/image-config.js.map +1 -0
  95. package/dist/_virtual/image-external.js +4 -0
  96. package/dist/_virtual/image-external.js.map +1 -0
  97. package/dist/_virtual/image-loader.js +4 -0
  98. package/dist/_virtual/image-loader.js.map +1 -0
  99. package/dist/_virtual/image.js +8 -0
  100. package/dist/_virtual/image.js.map +1 -0
  101. package/dist/_virtual/index.js +4 -0
  102. package/dist/_virtual/index.js.map +1 -0
  103. package/dist/_virtual/index2.js +4 -0
  104. package/dist/_virtual/index2.js.map +1 -0
  105. package/dist/_virtual/index3.js +4 -0
  106. package/dist/_virtual/index3.js.map +1 -0
  107. package/dist/_virtual/instant-messages.js +4 -0
  108. package/dist/_virtual/instant-messages.js.map +1 -0
  109. package/dist/_virtual/instant-samples.js +4 -0
  110. package/dist/_virtual/instant-samples.js.map +1 -0
  111. package/dist/_virtual/instant-samples2.js +4 -0
  112. package/dist/_virtual/instant-samples2.js.map +1 -0
  113. package/dist/_virtual/instant-validation-error.js +4 -0
  114. package/dist/_virtual/instant-validation-error.js.map +1 -0
  115. package/dist/_virtual/interception-prefix-from-param-type.js +4 -0
  116. package/dist/_virtual/interception-prefix-from-param-type.js.map +1 -0
  117. package/dist/_virtual/interception-routes.js +4 -0
  118. package/dist/_virtual/interception-routes.js.map +1 -0
  119. package/dist/_virtual/interpolate-as.js +4 -0
  120. package/dist/_virtual/interpolate-as.js.map +1 -0
  121. package/dist/_virtual/invariant-error.js +4 -0
  122. package/dist/_virtual/invariant-error.js.map +1 -0
  123. package/dist/_virtual/is-dynamic.js +4 -0
  124. package/dist/_virtual/is-dynamic.js.map +1 -0
  125. package/dist/_virtual/is-local-url.js +4 -0
  126. package/dist/_virtual/is-local-url.js.map +1 -0
  127. package/dist/_virtual/is-next-router-error.js +4 -0
  128. package/dist/_virtual/is-next-router-error.js.map +1 -0
  129. package/dist/_virtual/is-postpone.js +4 -0
  130. package/dist/_virtual/is-postpone.js.map +1 -0
  131. package/dist/_virtual/link.js +8 -0
  132. package/dist/_virtual/link.js.map +1 -0
  133. package/dist/_virtual/link2.js +4 -0
  134. package/dist/_virtual/link2.js.map +1 -0
  135. package/dist/_virtual/match-local-pattern.js +4 -0
  136. package/dist/_virtual/match-local-pattern.js.map +1 -0
  137. package/dist/_virtual/match-remote-pattern.js +4 -0
  138. package/dist/_virtual/match-remote-pattern.js.map +1 -0
  139. package/dist/_virtual/navigation-dynamic-rendering.js +4 -0
  140. package/dist/_virtual/navigation-dynamic-rendering.js.map +1 -0
  141. package/dist/_virtual/navigation.js +6 -0
  142. package/dist/_virtual/navigation.js.map +1 -0
  143. package/dist/_virtual/navigation.react-server.js +4 -0
  144. package/dist/_virtual/navigation.react-server.js.map +1 -0
  145. package/dist/_virtual/navigation2.js +4 -0
  146. package/dist/_virtual/navigation2.js.map +1 -0
  147. package/dist/_virtual/normalize-locale-path.js +4 -0
  148. package/dist/_virtual/normalize-locale-path.js.map +1 -0
  149. package/dist/_virtual/normalize-locale-path2.js +4 -0
  150. package/dist/_virtual/normalize-locale-path2.js.map +1 -0
  151. package/dist/_virtual/normalize-trailing-slash.js +4 -0
  152. package/dist/_virtual/normalize-trailing-slash.js.map +1 -0
  153. package/dist/_virtual/not-found.js +4 -0
  154. package/dist/_virtual/not-found.js.map +1 -0
  155. package/dist/_virtual/omit.js +4 -0
  156. package/dist/_virtual/omit.js.map +1 -0
  157. package/dist/_virtual/parse-loader-tree.js +4 -0
  158. package/dist/_virtual/parse-loader-tree.js.map +1 -0
  159. package/dist/_virtual/parse-path.js +4 -0
  160. package/dist/_virtual/parse-path.js.map +1 -0
  161. package/dist/_virtual/parse-relative-url.js +4 -0
  162. package/dist/_virtual/parse-relative-url.js.map +1 -0
  163. package/dist/_virtual/path-has-prefix.js +4 -0
  164. package/dist/_virtual/path-has-prefix.js.map +1 -0
  165. package/dist/_virtual/promise-with-resolvers.js +4 -0
  166. package/dist/_virtual/promise-with-resolvers.js.map +1 -0
  167. package/dist/_virtual/querystring.js +4 -0
  168. package/dist/_virtual/querystring.js.map +1 -0
  169. package/dist/_virtual/readonly-url-search-params.js +4 -0
  170. package/dist/_virtual/readonly-url-search-params.js.map +1 -0
  171. package/dist/_virtual/redirect-error.js +4 -0
  172. package/dist/_virtual/redirect-error.js.map +1 -0
  173. package/dist/_virtual/redirect-status-code.js +4 -0
  174. package/dist/_virtual/redirect-status-code.js.map +1 -0
  175. package/dist/_virtual/redirect.js +4 -0
  176. package/dist/_virtual/redirect.js.map +1 -0
  177. package/dist/_virtual/reflect-utils.js +4 -0
  178. package/dist/_virtual/reflect-utils.js.map +1 -0
  179. package/dist/_virtual/reflect.js +4 -0
  180. package/dist/_virtual/reflect.js.map +1 -0
  181. package/dist/_virtual/remove-trailing-slash.js +4 -0
  182. package/dist/_virtual/remove-trailing-slash.js.map +1 -0
  183. package/dist/_virtual/request-cookies.js +4 -0
  184. package/dist/_virtual/request-cookies.js.map +1 -0
  185. package/dist/_virtual/request-idle-callback.js +4 -0
  186. package/dist/_virtual/request-idle-callback.js.map +1 -0
  187. package/dist/_virtual/resolve-href.js +4 -0
  188. package/dist/_virtual/resolve-href.js.map +1 -0
  189. package/dist/_virtual/resolve-param-value.js +4 -0
  190. package/dist/_virtual/resolve-param-value.js.map +1 -0
  191. package/dist/_virtual/route-match-utils.js +4 -0
  192. package/dist/_virtual/route-match-utils.js.map +1 -0
  193. package/dist/_virtual/route-matcher.js +4 -0
  194. package/dist/_virtual/route-matcher.js.map +1 -0
  195. package/dist/_virtual/route-pattern-normalizer.js +4 -0
  196. package/dist/_virtual/route-pattern-normalizer.js.map +1 -0
  197. package/dist/_virtual/route-regex.js +4 -0
  198. package/dist/_virtual/route-regex.js.map +1 -0
  199. package/dist/_virtual/router-context.shared-runtime.js +4 -0
  200. package/dist/_virtual/router-context.shared-runtime.js.map +1 -0
  201. package/dist/_virtual/runtime-reacts.external.js +4 -0
  202. package/dist/_virtual/runtime-reacts.external.js.map +1 -0
  203. package/dist/_virtual/scheduler.js +4 -0
  204. package/dist/_virtual/scheduler.js.map +1 -0
  205. package/dist/_virtual/segment.js +4 -0
  206. package/dist/_virtual/segment.js.map +1 -0
  207. package/dist/_virtual/server-async-storage.js +4 -0
  208. package/dist/_virtual/server-async-storage.js.map +1 -0
  209. package/dist/_virtual/server-inserted-html.shared-runtime.js +4 -0
  210. package/dist/_virtual/server-inserted-html.shared-runtime.js.map +1 -0
  211. package/dist/_virtual/side-effect.js +4 -0
  212. package/dist/_virtual/side-effect.js.map +1 -0
  213. package/dist/_virtual/sorted-routes.js +4 -0
  214. package/dist/_virtual/sorted-routes.js.map +1 -0
  215. package/dist/_virtual/staged-rendering.js +4 -0
  216. package/dist/_virtual/staged-rendering.js.map +1 -0
  217. package/dist/_virtual/static-generation-bailout.js +4 -0
  218. package/dist/_virtual/static-generation-bailout.js.map +1 -0
  219. package/dist/_virtual/unauthorized.js +4 -0
  220. package/dist/_virtual/unauthorized.js.map +1 -0
  221. package/dist/_virtual/unrecognized-action-error.js +4 -0
  222. package/dist/_virtual/unrecognized-action-error.js.map +1 -0
  223. package/dist/_virtual/unstable-rethrow.js +4 -0
  224. package/dist/_virtual/unstable-rethrow.js.map +1 -0
  225. package/dist/_virtual/use-intersection.js +4 -0
  226. package/dist/_virtual/use-intersection.js.map +1 -0
  227. package/dist/_virtual/use-merged-ref.js +4 -0
  228. package/dist/_virtual/use-merged-ref.js.map +1 -0
  229. package/dist/_virtual/utils.js +4 -0
  230. package/dist/_virtual/utils.js.map +1 -0
  231. package/dist/_virtual/warn-once.js +4 -0
  232. package/dist/_virtual/warn-once.js.map +1 -0
  233. package/dist/_virtual/work-async-storage-instance.js +4 -0
  234. package/dist/_virtual/work-async-storage-instance.js.map +1 -0
  235. package/dist/_virtual/work-async-storage.external.js +4 -0
  236. package/dist/_virtual/work-async-storage.external.js.map +1 -0
  237. package/dist/_virtual/work-unit-async-storage-instance.js +4 -0
  238. package/dist/_virtual/work-unit-async-storage-instance.js.map +1 -0
  239. package/dist/_virtual/work-unit-async-storage.external.js +4 -0
  240. package/dist/_virtual/work-unit-async-storage.external.js.map +1 -0
  241. package/dist/components/ui/app-header.js +72 -0
  242. package/dist/components/ui/app-header.js.map +1 -0
  243. package/dist/components/ui/dropdown-menu.js +61 -0
  244. package/dist/components/ui/dropdown-menu.js.map +1 -0
  245. package/dist/components/ui/page-header.js +17 -0
  246. package/dist/components/ui/page-header.js.map +1 -0
  247. package/dist/components/ui/status-notice.d.ts +14 -0
  248. package/dist/components/ui/status-notice.js +27 -0
  249. package/dist/components/ui/status-notice.js.map +1 -0
  250. package/dist/index.d.ts +4 -0
  251. package/dist/index.js +4 -0
  252. package/dist/index.js.map +1 -1
  253. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
  254. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +1 -0
  255. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +49 -0
  256. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +1 -0
  257. package/dist/node_modules/next/dist/client/add-base-path.js +39 -0
  258. package/dist/node_modules/next/dist/client/add-base-path.js.map +1 -0
  259. package/dist/node_modules/next/dist/client/add-locale.js +40 -0
  260. package/dist/node_modules/next/dist/client/add-locale.js.map +1 -0
  261. package/dist/node_modules/next/dist/client/components/forbidden.js +62 -0
  262. package/dist/node_modules/next/dist/client/components/forbidden.js.map +1 -0
  263. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +51 -0
  264. package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +1 -0
  265. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +78 -0
  266. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +1 -0
  267. package/dist/node_modules/next/dist/client/components/instant-samples.js +107 -0
  268. package/dist/node_modules/next/dist/client/components/instant-samples.js.map +1 -0
  269. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +38 -0
  270. package/dist/node_modules/next/dist/client/components/is-next-router-error.js.map +1 -0
  271. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +41 -0
  272. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js.map +1 -0
  273. package/dist/node_modules/next/dist/client/components/navigation.js +250 -0
  274. package/dist/node_modules/next/dist/client/components/navigation.js.map +1 -0
  275. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +83 -0
  276. package/dist/node_modules/next/dist/client/components/navigation.react-server.js.map +1 -0
  277. package/dist/node_modules/next/dist/client/components/not-found.js +56 -0
  278. package/dist/node_modules/next/dist/client/components/not-found.js.map +1 -0
  279. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +61 -0
  280. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js.map +1 -0
  281. package/dist/node_modules/next/dist/client/components/redirect-error.js +53 -0
  282. package/dist/node_modules/next/dist/client/components/redirect-error.js.map +1 -0
  283. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +37 -0
  284. package/dist/node_modules/next/dist/client/components/redirect-status-code.js.map +1 -0
  285. package/dist/node_modules/next/dist/client/components/redirect.js +99 -0
  286. package/dist/node_modules/next/dist/client/components/redirect.js.map +1 -0
  287. package/dist/node_modules/next/dist/client/components/server-async-storage.js +48 -0
  288. package/dist/node_modules/next/dist/client/components/server-async-storage.js.map +1 -0
  289. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +51 -0
  290. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +1 -0
  291. package/dist/node_modules/next/dist/client/components/unauthorized.js +63 -0
  292. package/dist/node_modules/next/dist/client/components/unauthorized.js.map +1 -0
  293. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +48 -0
  294. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js.map +1 -0
  295. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +51 -0
  296. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js.map +1 -0
  297. package/dist/node_modules/next/dist/client/detect-domain-locale.js +37 -0
  298. package/dist/node_modules/next/dist/client/detect-domain-locale.js.map +1 -0
  299. package/dist/node_modules/next/dist/client/get-domain-locale.js +52 -0
  300. package/dist/node_modules/next/dist/client/get-domain-locale.js.map +1 -0
  301. package/dist/node_modules/next/dist/client/has-base-path.js +37 -0
  302. package/dist/node_modules/next/dist/client/has-base-path.js.map +1 -0
  303. package/dist/node_modules/next/dist/client/image-component.js +351 -0
  304. package/dist/node_modules/next/dist/client/image-component.js.map +1 -0
  305. package/dist/node_modules/next/dist/client/link.js +471 -0
  306. package/dist/node_modules/next/dist/client/link.js.map +1 -0
  307. package/dist/node_modules/next/dist/client/normalize-locale-path.js +41 -0
  308. package/dist/node_modules/next/dist/client/normalize-locale-path.js.map +1 -0
  309. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +52 -0
  310. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js.map +1 -0
  311. package/dist/node_modules/next/dist/client/request-idle-callback.js +53 -0
  312. package/dist/node_modules/next/dist/client/request-idle-callback.js.map +1 -0
  313. package/dist/node_modules/next/dist/client/resolve-href.js +129 -0
  314. package/dist/node_modules/next/dist/client/resolve-href.js.map +1 -0
  315. package/dist/node_modules/next/dist/client/use-intersection.js +129 -0
  316. package/dist/node_modules/next/dist/client/use-intersection.js.map +1 -0
  317. package/dist/node_modules/next/dist/client/use-merged-ref.js +83 -0
  318. package/dist/node_modules/next/dist/client/use-merged-ref.js.map +1 -0
  319. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +341 -0
  320. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
  321. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +13 -0
  322. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js.map +1 -0
  323. package/dist/node_modules/next/dist/compiled/picomatch/index.js +13 -0
  324. package/dist/node_modules/next/dist/compiled/picomatch/index.js.map +1 -0
  325. package/dist/node_modules/next/dist/lib/constants.js +370 -0
  326. package/dist/node_modules/next/dist/lib/constants.js.map +1 -0
  327. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +43 -0
  328. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +1 -0
  329. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +112 -0
  330. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js.map +1 -0
  331. package/dist/node_modules/next/dist/lib/scheduler.js +71 -0
  332. package/dist/node_modules/next/dist/lib/scheduler.js.map +1 -0
  333. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +28 -0
  334. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +1 -0
  335. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +27 -0
  336. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +1 -0
  337. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +84 -0
  338. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +1 -0
  339. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js +177 -0
  340. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js.map +1 -0
  341. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +1168 -0
  342. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +1 -0
  343. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +39 -0
  344. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +1 -0
  345. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +47 -0
  346. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js.map +1 -0
  347. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +427 -0
  348. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map +1 -0
  349. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +42 -0
  350. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js.map +1 -0
  351. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +331 -0
  352. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +1 -0
  353. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +28 -0
  354. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +1 -0
  355. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +27 -0
  356. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +1 -0
  357. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +28 -0
  358. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +1 -0
  359. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +211 -0
  360. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +1 -0
  361. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +269 -0
  362. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +1 -0
  363. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +29 -0
  364. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +1 -0
  365. package/dist/node_modules/next/dist/server/runtime-reacts.external.js +53 -0
  366. package/dist/node_modules/next/dist/server/runtime-reacts.external.js.map +1 -0
  367. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +303 -0
  368. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
  369. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +43 -0
  370. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
  371. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +233 -0
  372. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
  373. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +38 -0
  374. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
  375. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +39 -0
  376. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +1 -0
  377. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +58 -0
  378. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +1 -0
  379. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +70 -0
  380. package/dist/node_modules/next/dist/shared/lib/deployment-id.js.map +1 -0
  381. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +34 -0
  382. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js.map +1 -0
  383. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +32 -0
  384. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js.map +1 -0
  385. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +614 -0
  386. package/dist/node_modules/next/dist/shared/lib/get-img-props.js.map +1 -0
  387. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +33 -0
  388. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js.map +1 -0
  389. package/dist/node_modules/next/dist/shared/lib/head.js +178 -0
  390. package/dist/node_modules/next/dist/shared/lib/head.js.map +1 -0
  391. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +67 -0
  392. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +1 -0
  393. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +38 -0
  394. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +1 -0
  395. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +67 -0
  396. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +1 -0
  397. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +37 -0
  398. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js.map +1 -0
  399. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +35 -0
  400. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js.map +1 -0
  401. package/dist/node_modules/next/dist/shared/lib/image-config.js +86 -0
  402. package/dist/node_modules/next/dist/shared/lib/image-config.js.map +1 -0
  403. package/dist/node_modules/next/dist/shared/lib/image-external.js +60 -0
  404. package/dist/node_modules/next/dist/shared/lib/image-external.js.map +1 -0
  405. package/dist/node_modules/next/dist/shared/lib/image-loader.js +135 -0
  406. package/dist/node_modules/next/dist/shared/lib/image-loader.js.map +1 -0
  407. package/dist/node_modules/next/dist/shared/lib/instant-messages.js +52 -0
  408. package/dist/node_modules/next/dist/shared/lib/instant-messages.js.map +1 -0
  409. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +36 -0
  410. package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +1 -0
  411. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +45 -0
  412. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +1 -0
  413. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +56 -0
  414. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js.map +1 -0
  415. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +73 -0
  416. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js.map +1 -0
  417. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +33 -0
  418. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +1 -0
  419. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +39 -0
  420. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +1 -0
  421. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +167 -0
  422. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js.map +1 -0
  423. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +43 -0
  424. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +1 -0
  425. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +34 -0
  426. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +1 -0
  427. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +72 -0
  428. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +1 -0
  429. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +100 -0
  430. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js.map +1 -0
  431. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +184 -0
  432. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js.map +1 -0
  433. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +91 -0
  434. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js.map +1 -0
  435. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +40 -0
  436. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +1 -0
  437. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +46 -0
  438. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js.map +1 -0
  439. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +116 -0
  440. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +1 -0
  441. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +68 -0
  442. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js.map +1 -0
  443. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +40 -0
  444. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +1 -0
  445. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +41 -0
  446. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js.map +1 -0
  447. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +34 -0
  448. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js.map +1 -0
  449. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +44 -0
  450. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js.map +1 -0
  451. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +48 -0
  452. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +1 -0
  453. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +58 -0
  454. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js.map +1 -0
  455. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +34 -0
  456. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +1 -0
  457. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +87 -0
  458. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js.map +1 -0
  459. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +37 -0
  460. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +1 -0
  461. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +129 -0
  462. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js.map +1 -0
  463. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +124 -0
  464. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js.map +1 -0
  465. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +60 -0
  466. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js.map +1 -0
  467. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +269 -0
  468. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js.map +1 -0
  469. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +253 -0
  470. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +1 -0
  471. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +33 -0
  472. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +1 -0
  473. package/dist/node_modules/next/dist/shared/lib/segment.js +104 -0
  474. package/dist/node_modules/next/dist/shared/lib/segment.js.map +1 -0
  475. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +46 -0
  476. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +1 -0
  477. package/dist/node_modules/next/dist/shared/lib/side-effect.js +77 -0
  478. package/dist/node_modules/next/dist/shared/lib/side-effect.js.map +1 -0
  479. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +35 -0
  480. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js.map +1 -0
  481. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js +72 -0
  482. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js.map +1 -0
  483. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +35 -0
  484. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js.map +1 -0
  485. package/dist/node_modules/next/dist/shared/lib/utils.js +210 -0
  486. package/dist/node_modules/next/dist/shared/lib/utils.js.map +1 -0
  487. package/dist/node_modules/next/image.js +14 -0
  488. package/dist/node_modules/next/image.js.map +1 -0
  489. package/dist/node_modules/next/link.js +14 -0
  490. package/dist/node_modules/next/link.js.map +1 -0
  491. package/dist/node_modules/next/navigation.js +14 -0
  492. package/dist/node_modules/next/navigation.js.map +1 -0
  493. package/package.json +1 -1
@@ -0,0 +1,253 @@
1
+ import { __exports as sortedRoutes } from '../../../../../../../_virtual/sorted-routes.js';
2
+
3
+ var hasRequiredSortedRoutes;
4
+
5
+ function requireSortedRoutes () {
6
+ if (hasRequiredSortedRoutes) return sortedRoutes;
7
+ hasRequiredSortedRoutes = 1;
8
+ (function (exports$1) {
9
+ Object.defineProperty(exports$1, "__esModule", {
10
+ value: true
11
+ });
12
+ function _export(target, all) {
13
+ for(var name in all)Object.defineProperty(target, name, {
14
+ enumerable: true,
15
+ get: all[name]
16
+ });
17
+ }
18
+ _export(exports$1, {
19
+ getSortedRouteObjects: function() {
20
+ return getSortedRouteObjects;
21
+ },
22
+ getSortedRoutes: function() {
23
+ return getSortedRoutes;
24
+ }
25
+ });
26
+ class UrlNode {
27
+ insert(urlPath) {
28
+ this._insert(urlPath.split('/').filter(Boolean), [], false);
29
+ }
30
+ smoosh() {
31
+ return this._smoosh();
32
+ }
33
+ _smoosh(prefix = '/') {
34
+ const childrenPaths = [
35
+ ...this.children.keys()
36
+ ].sort();
37
+ if (this.slugName !== null) {
38
+ childrenPaths.splice(childrenPaths.indexOf('[]'), 1);
39
+ }
40
+ if (this.restSlugName !== null) {
41
+ childrenPaths.splice(childrenPaths.indexOf('[...]'), 1);
42
+ }
43
+ if (this.optionalRestSlugName !== null) {
44
+ childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1);
45
+ }
46
+ const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr)=>[
47
+ ...prev,
48
+ ...curr
49
+ ], []);
50
+ if (this.slugName !== null) {
51
+ routes.push(...this.children.get('[]')._smoosh(`${prefix}[${this.slugName}]/`));
52
+ }
53
+ if (!this.placeholder) {
54
+ const r = prefix === '/' ? '/' : prefix.slice(0, -1);
55
+ if (this.optionalRestSlugName != null) {
56
+ throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
57
+ value: "E458",
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ }
62
+ routes.unshift(r);
63
+ }
64
+ if (this.restSlugName !== null) {
65
+ routes.push(...this.children.get('[...]')._smoosh(`${prefix}[...${this.restSlugName}]/`));
66
+ }
67
+ if (this.optionalRestSlugName !== null) {
68
+ routes.push(...this.children.get('[[...]]')._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
69
+ }
70
+ return routes;
71
+ }
72
+ _insert(urlPaths, slugNames, isCatchAll) {
73
+ if (urlPaths.length === 0) {
74
+ this.placeholder = false;
75
+ return;
76
+ }
77
+ if (isCatchAll) {
78
+ throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
79
+ value: "E392",
80
+ enumerable: false,
81
+ configurable: true
82
+ });
83
+ }
84
+ // The next segment in the urlPaths list
85
+ let nextSegment = urlPaths[0];
86
+ // Check if the segment matches `[something]`
87
+ if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) {
88
+ // Strip `[` and `]`, leaving only `something`
89
+ let segmentName = nextSegment.slice(1, -1);
90
+ let isOptional = false;
91
+ if (segmentName.startsWith('[') && segmentName.endsWith(']')) {
92
+ // Strip optional `[` and `]`, leaving only `something`
93
+ segmentName = segmentName.slice(1, -1);
94
+ isOptional = true;
95
+ }
96
+ if (segmentName.startsWith('…')) {
97
+ throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
98
+ value: "E147",
99
+ enumerable: false,
100
+ configurable: true
101
+ });
102
+ }
103
+ if (segmentName.startsWith('...')) {
104
+ // Strip `...`, leaving only `something`
105
+ segmentName = segmentName.substring(3);
106
+ isCatchAll = true;
107
+ }
108
+ if (segmentName.startsWith('[') || segmentName.endsWith(']')) {
109
+ throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
110
+ value: "E421",
111
+ enumerable: false,
112
+ configurable: true
113
+ });
114
+ }
115
+ if (segmentName.startsWith('.')) {
116
+ throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
117
+ value: "E288",
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ }
122
+ function handleSlug(previousSlug, nextSlug) {
123
+ if (previousSlug !== null) {
124
+ // If the specific segment already has a slug but the slug is not `something`
125
+ // This prevents collisions like:
126
+ // pages/[post]/index.js
127
+ // pages/[id]/index.js
128
+ // Because currently multiple dynamic params on the same segment level are not supported
129
+ if (previousSlug !== nextSlug) {
130
+ // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.
131
+ throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
132
+ value: "E337",
133
+ enumerable: false,
134
+ configurable: true
135
+ });
136
+ }
137
+ }
138
+ slugNames.forEach((slug)=>{
139
+ if (slug === nextSlug) {
140
+ throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
141
+ value: "E247",
142
+ enumerable: false,
143
+ configurable: true
144
+ });
145
+ }
146
+ if (slug.replace(/\W/g, '') === nextSegment.replace(/\W/g, '')) {
147
+ throw Object.defineProperty(new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
148
+ value: "E499",
149
+ enumerable: false,
150
+ configurable: true
151
+ });
152
+ }
153
+ });
154
+ slugNames.push(nextSlug);
155
+ }
156
+ if (isCatchAll) {
157
+ if (isOptional) {
158
+ if (this.restSlugName != null) {
159
+ throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
160
+ value: "E299",
161
+ enumerable: false,
162
+ configurable: true
163
+ });
164
+ }
165
+ handleSlug(this.optionalRestSlugName, segmentName);
166
+ // slugName is kept as it can only be one particular slugName
167
+ this.optionalRestSlugName = segmentName;
168
+ // nextSegment is overwritten to [[...]] so that it can later be sorted specifically
169
+ nextSegment = '[[...]]';
170
+ } else {
171
+ if (this.optionalRestSlugName != null) {
172
+ throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
173
+ value: "E300",
174
+ enumerable: false,
175
+ configurable: true
176
+ });
177
+ }
178
+ handleSlug(this.restSlugName, segmentName);
179
+ // slugName is kept as it can only be one particular slugName
180
+ this.restSlugName = segmentName;
181
+ // nextSegment is overwritten to [...] so that it can later be sorted specifically
182
+ nextSegment = '[...]';
183
+ }
184
+ } else {
185
+ if (isOptional) {
186
+ throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
187
+ value: "E435",
188
+ enumerable: false,
189
+ configurable: true
190
+ });
191
+ }
192
+ handleSlug(this.slugName, segmentName);
193
+ // slugName is kept as it can only be one particular slugName
194
+ this.slugName = segmentName;
195
+ // nextSegment is overwritten to [] so that it can later be sorted specifically
196
+ nextSegment = '[]';
197
+ }
198
+ }
199
+ // If this UrlNode doesn't have the nextSegment yet we create a new child UrlNode
200
+ if (!this.children.has(nextSegment)) {
201
+ this.children.set(nextSegment, new UrlNode());
202
+ }
203
+ this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
204
+ }
205
+ constructor(){
206
+ this.placeholder = true;
207
+ this.children = new Map();
208
+ this.slugName = null;
209
+ this.restSlugName = null;
210
+ this.optionalRestSlugName = null;
211
+ }
212
+ }
213
+ function getSortedRoutes(normalizedPages) {
214
+ // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment
215
+ // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js
216
+ // Only 1 dynamic segment per nesting level
217
+ // So in the case that is test/e2e/dynamic-routing it'll be this:
218
+ // pages/[post]/comments.js
219
+ // pages/blog/[post]/comment/[id].js
220
+ // Both are fine because `pages/[post]` and `pages/blog` are on the same level
221
+ // So in this case `UrlNode` created here has `this.slugName === 'post'`
222
+ // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities
223
+ // Instead what has to be passed through is the upwards path's dynamic names
224
+ const root = new UrlNode();
225
+ // Here the `root` gets injected multiple paths, and insert will break them up into sublevels
226
+ normalizedPages.forEach((pagePath)=>root.insert(pagePath));
227
+ // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority
228
+ return root.smoosh();
229
+ }
230
+ function getSortedRouteObjects(objects, getter) {
231
+ // We're assuming here that all the pathnames are unique, that way we can
232
+ // sort the list and use the index as the key.
233
+ const indexes = {};
234
+ const pathnames = [];
235
+ for(let i = 0; i < objects.length; i++){
236
+ const pathname = getter(objects[i]);
237
+ indexes[pathname] = i;
238
+ pathnames[i] = pathname;
239
+ }
240
+ // Sort the pathnames.
241
+ const sorted = getSortedRoutes(pathnames);
242
+ // Map the sorted pathnames back to the original objects using the new sorted
243
+ // index.
244
+ return sorted.map((pathname)=>objects[indexes[pathname]]);
245
+ }
246
+
247
+
248
+ } (sortedRoutes));
249
+ return sortedRoutes;
250
+ }
251
+
252
+ export { requireSortedRoutes as __require };
253
+ //# sourceMappingURL=sorted-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sorted-routes.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getSortedRouteObjects: null,\n getSortedRoutes: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getSortedRouteObjects: function() {\n return getSortedRouteObjects;\n },\n getSortedRoutes: function() {\n return getSortedRoutes;\n }\n});\nclass UrlNode {\n insert(urlPath) {\n this._insert(urlPath.split('/').filter(Boolean), [], false);\n }\n smoosh() {\n return this._smoosh();\n }\n _smoosh(prefix = '/') {\n const childrenPaths = [\n ...this.children.keys()\n ].sort();\n if (this.slugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[]'), 1);\n }\n if (this.restSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[...]'), 1);\n }\n if (this.optionalRestSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1);\n }\n const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr)=>[\n ...prev,\n ...curr\n ], []);\n if (this.slugName !== null) {\n routes.push(...this.children.get('[]')._smoosh(`${prefix}[${this.slugName}]/`));\n }\n if (!this.placeholder) {\n const r = prefix === '/' ? '/' : prefix.slice(0, -1);\n if (this.optionalRestSlugName != null) {\n throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route (\"${r}\" and \"${r}[[...${this.optionalRestSlugName}]]\").`), \"__NEXT_ERROR_CODE\", {\n value: \"E458\",\n enumerable: false,\n configurable: true\n });\n }\n routes.unshift(r);\n }\n if (this.restSlugName !== null) {\n routes.push(...this.children.get('[...]')._smoosh(`${prefix}[...${this.restSlugName}]/`));\n }\n if (this.optionalRestSlugName !== null) {\n routes.push(...this.children.get('[[...]]')._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));\n }\n return routes;\n }\n _insert(urlPaths, slugNames, isCatchAll) {\n if (urlPaths.length === 0) {\n this.placeholder = false;\n return;\n }\n if (isCatchAll) {\n throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), \"__NEXT_ERROR_CODE\", {\n value: \"E392\",\n enumerable: false,\n configurable: true\n });\n }\n // The next segment in the urlPaths list\n let nextSegment = urlPaths[0];\n // Check if the segment matches `[something]`\n if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) {\n // Strip `[` and `]`, leaving only `something`\n let segmentName = nextSegment.slice(1, -1);\n let isOptional = false;\n if (segmentName.startsWith('[') && segmentName.endsWith(']')) {\n // Strip optional `[` and `]`, leaving only `something`\n segmentName = segmentName.slice(1, -1);\n isOptional = true;\n }\n if (segmentName.startsWith('…')) {\n throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), \"__NEXT_ERROR_CODE\", {\n value: \"E147\",\n enumerable: false,\n configurable: true\n });\n }\n if (segmentName.startsWith('...')) {\n // Strip `...`, leaving only `something`\n segmentName = segmentName.substring(3);\n isCatchAll = true;\n }\n if (segmentName.startsWith('[') || segmentName.endsWith(']')) {\n throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E421\",\n enumerable: false,\n configurable: true\n });\n }\n if (segmentName.startsWith('.')) {\n throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E288\",\n enumerable: false,\n configurable: true\n });\n }\n function handleSlug(previousSlug, nextSlug) {\n if (previousSlug !== null) {\n // If the specific segment already has a slug but the slug is not `something`\n // This prevents collisions like:\n // pages/[post]/index.js\n // pages/[id]/index.js\n // Because currently multiple dynamic params on the same segment level are not supported\n if (previousSlug !== nextSlug) {\n // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.\n throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E337\",\n enumerable: false,\n configurable: true\n });\n }\n }\n slugNames.forEach((slug)=>{\n if (slug === nextSlug) {\n throw Object.defineProperty(new Error(`You cannot have the same slug name \"${nextSlug}\" repeat within a single dynamic path`), \"__NEXT_ERROR_CODE\", {\n value: \"E247\",\n enumerable: false,\n configurable: true\n });\n }\n if (slug.replace(/\\W/g, '') === nextSegment.replace(/\\W/g, '')) {\n throw Object.defineProperty(new Error(`You cannot have the slug names \"${slug}\" and \"${nextSlug}\" differ only by non-word symbols within a single dynamic path`), \"__NEXT_ERROR_CODE\", {\n value: \"E499\",\n enumerable: false,\n configurable: true\n });\n }\n });\n slugNames.push(nextSlug);\n }\n if (isCatchAll) {\n if (isOptional) {\n if (this.restSlugName != null) {\n throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level (\"[...${this.restSlugName}]\" and \"${urlPaths[0]}\" ).`), \"__NEXT_ERROR_CODE\", {\n value: \"E299\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.optionalRestSlugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.optionalRestSlugName = segmentName;\n // nextSegment is overwritten to [[...]] so that it can later be sorted specifically\n nextSegment = '[[...]]';\n } else {\n if (this.optionalRestSlugName != null) {\n throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level (\"[[...${this.optionalRestSlugName}]]\" and \"${urlPaths[0]}\").`), \"__NEXT_ERROR_CODE\", {\n value: \"E300\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.restSlugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.restSlugName = segmentName;\n // nextSegment is overwritten to [...] so that it can later be sorted specifically\n nextSegment = '[...]';\n }\n } else {\n if (isOptional) {\n throw Object.defineProperty(new Error(`Optional route parameters are not yet supported (\"${urlPaths[0]}\").`), \"__NEXT_ERROR_CODE\", {\n value: \"E435\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.slugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.slugName = segmentName;\n // nextSegment is overwritten to [] so that it can later be sorted specifically\n nextSegment = '[]';\n }\n }\n // If this UrlNode doesn't have the nextSegment yet we create a new child UrlNode\n if (!this.children.has(nextSegment)) {\n this.children.set(nextSegment, new UrlNode());\n }\n this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);\n }\n constructor(){\n this.placeholder = true;\n this.children = new Map();\n this.slugName = null;\n this.restSlugName = null;\n this.optionalRestSlugName = null;\n }\n}\nfunction getSortedRoutes(normalizedPages) {\n // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment\n // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js\n // Only 1 dynamic segment per nesting level\n // So in the case that is test/e2e/dynamic-routing it'll be this:\n // pages/[post]/comments.js\n // pages/blog/[post]/comment/[id].js\n // Both are fine because `pages/[post]` and `pages/blog` are on the same level\n // So in this case `UrlNode` created here has `this.slugName === 'post'`\n // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities\n // Instead what has to be passed through is the upwards path's dynamic names\n const root = new UrlNode();\n // Here the `root` gets injected multiple paths, and insert will break them up into sublevels\n normalizedPages.forEach((pagePath)=>root.insert(pagePath));\n // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority\n return root.smoosh();\n}\nfunction getSortedRouteObjects(objects, getter) {\n // We're assuming here that all the pathnames are unique, that way we can\n // sort the list and use the index as the key.\n const indexes = {};\n const pathnames = [];\n for(let i = 0; i < objects.length; i++){\n const pathname = getter(objects[i]);\n indexes[pathname] = i;\n pathnames[i] = pathname;\n }\n // Sort the pathnames.\n const sorted = getSortedRoutes(pathnames);\n // Map the sorted pathnames back to the original objects using the new sorted\n // index.\n return sorted.map((pathname)=>objects[indexes[pathname]]);\n}\n\n//# sourceMappingURL=sorted-routes.js.map"],"names":["exports"],"mappings":";;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAKF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,qBAAqB,EAAE,WAAW;AACtC,UAAQ,OAAO,qBAAqB;MACpC,CAAK;MACD,eAAe,EAAE,WAAW;AAChC,UAAQ,OAAO,eAAe;AAC9B,MAAA;AACA,GAAC,CAAC;AACF,EAAA,MAAM,OAAO,CAAC;MACV,MAAM,CAAC,OAAO,EAAE;AACpB,UAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC;AACnE,MAAA;AACA,MAAI,MAAM,GAAG;AACb,UAAQ,OAAO,IAAI,CAAC,OAAO,EAAE;AAC7B,MAAA;AACA,MAAI,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE;UAClB,MAAM,aAAa,GAAG;AAC9B,cAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI;WACxB,CAAC,IAAI,EAAE;AAChB,UAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;AACpC,cAAY,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChE,UAAA;AACA,U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AC,QAAQ,GAAG,IAAI;AAC5B,UAAQ,IAAI,CAAC,YAAY,GAAG,IAAI;AAChC,UAAQ,IAAI,CAAC,oBAAoB,GAAG,IAAI;AACxC,MAAA;AACA;EACA,SAAS,eAAe,CAAC,eAAe,EAAE;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAI,MAAM,IAAI,GAAG,IAAI,OAAO,EAAE;AAC9B;AACA,MAAI,eAAe,CAAC,OAAO,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC9D;AACA,MAAI,OAAO,IAAI,CAAC,MAAM,EAAE;AACxB,EAAA;AACA,EAAA,SAAS,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE;AAChD;AACA;MACI,MAAM,OAAO,GAAG,EAAE;MAClB,MAAM,SAAS,GAAG,EAAE;AACxB,MAAI,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;UACnC,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3C,UAAQ,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC7B,UAAQ,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ;AAC/B,MAAA;AACA;AACA,MAAI,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC;AAC7C;AACA;AACA,MAAI,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC7D,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,33 @@
1
+ import { __exports as routerContext_sharedRuntime } from '../../../../../_virtual/router-context.shared-runtime.js';
2
+ import { __require as require_interop_require_default } from '../../../../@swc/helpers/cjs/_interop_require_default.js';
3
+ import React__default from 'react';
4
+
5
+ var hasRequiredRouterContext_sharedRuntime;
6
+
7
+ function requireRouterContext_sharedRuntime () {
8
+ if (hasRequiredRouterContext_sharedRuntime) return routerContext_sharedRuntime;
9
+ hasRequiredRouterContext_sharedRuntime = 1;
10
+ (function (exports$1) {
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports$1, "RouterContext", {
15
+ enumerable: true,
16
+ get: function() {
17
+ return RouterContext;
18
+ }
19
+ });
20
+ const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
21
+ const _react = /*#__PURE__*/ _interop_require_default._(React__default);
22
+ const RouterContext = _react.default.createContext(null);
23
+ if (process.env.NODE_ENV !== 'production') {
24
+ RouterContext.displayName = 'RouterContext';
25
+ }
26
+
27
+
28
+ } (routerContext_sharedRuntime));
29
+ return routerContext_sharedRuntime;
30
+ }
31
+
32
+ export { requireRouterContext_sharedRuntime as __require };
33
+ //# sourceMappingURL=router-context.shared-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-context.shared-runtime.js","sources":["../../../../../../node_modules/next/dist/shared/lib/router-context.shared-runtime.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"RouterContext\", {\n enumerable: true,\n get: function() {\n return RouterContext;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst RouterContext = _react.default.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n RouterContext.displayName = 'RouterContext';\n}\n\n//# sourceMappingURL=router-context.shared-runtime.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,eAAe,EAAE;MAC5C,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,aAAa;AAC5B,MAAA;AACA,GAAC,CAAC;EACF,MAAM,wBAAwB,iBAAGC,+BAAA,EAAkD;EACnF,MAAM,MAAM,iBAAiB,wBAAwB,CAAC,CAAC,CAACC,cAAgB,CAAC;EACzE,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;AACxD,EAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC3C,MAAI,aAAa,CAAC,WAAW,GAAG,eAAe;AAC/C,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,104 @@
1
+ import { __exports as segment } from '../../../../../_virtual/segment.js';
2
+
3
+ var hasRequiredSegment;
4
+
5
+ function requireSegment () {
6
+ if (hasRequiredSegment) return segment;
7
+ hasRequiredSegment = 1;
8
+ (function (exports$1) {
9
+ Object.defineProperty(exports$1, "__esModule", {
10
+ value: true
11
+ });
12
+ function _export(target, all) {
13
+ for(var name in all)Object.defineProperty(target, name, {
14
+ enumerable: true,
15
+ get: all[name]
16
+ });
17
+ }
18
+ _export(exports$1, {
19
+ DEFAULT_SEGMENT_KEY: function() {
20
+ return DEFAULT_SEGMENT_KEY;
21
+ },
22
+ NOT_FOUND_SEGMENT_KEY: function() {
23
+ return NOT_FOUND_SEGMENT_KEY;
24
+ },
25
+ PAGE_SEGMENT_KEY: function() {
26
+ return PAGE_SEGMENT_KEY;
27
+ },
28
+ addSearchParamsIfPageSegment: function() {
29
+ return addSearchParamsIfPageSegment;
30
+ },
31
+ computeSelectedLayoutSegment: function() {
32
+ return computeSelectedLayoutSegment;
33
+ },
34
+ getSegmentValue: function() {
35
+ return getSegmentValue;
36
+ },
37
+ getSelectedLayoutSegmentPath: function() {
38
+ return getSelectedLayoutSegmentPath;
39
+ },
40
+ isGroupSegment: function() {
41
+ return isGroupSegment;
42
+ },
43
+ isParallelRouteSegment: function() {
44
+ return isParallelRouteSegment;
45
+ }
46
+ });
47
+ function getSegmentValue(segment) {
48
+ return Array.isArray(segment) ? segment[1] : segment;
49
+ }
50
+ function isGroupSegment(segment) {
51
+ // Use array[0] for performant purpose
52
+ return segment[0] === '(' && segment.endsWith(')');
53
+ }
54
+ function isParallelRouteSegment(segment) {
55
+ return segment.startsWith('@') && segment !== '@children';
56
+ }
57
+ function addSearchParamsIfPageSegment(segment, searchParams) {
58
+ const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
59
+ if (isPageSegment) {
60
+ const stringifiedQuery = JSON.stringify(searchParams);
61
+ return stringifiedQuery !== '{}' ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery : PAGE_SEGMENT_KEY;
62
+ }
63
+ return segment;
64
+ }
65
+ function computeSelectedLayoutSegment(segments, parallelRouteKey) {
66
+ if (!segments || segments.length === 0) {
67
+ return null;
68
+ }
69
+ // For 'children', use first segment; for other parallel routes, use last segment
70
+ const rawSegment = parallelRouteKey === 'children' ? segments[0] : segments[segments.length - 1];
71
+ // If the default slot is showing, return null since it's not technically "selected" (it's a fallback)
72
+ // Returning an internal value like `__DEFAULT__` would be confusing
73
+ return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
74
+ }
75
+ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
76
+ let node;
77
+ if (first) {
78
+ // Use the provided parallel route key on the first parallel route
79
+ node = tree[1][parallelRouteKey];
80
+ } else {
81
+ // After first parallel route prefer children, if there's no children pick the first parallel route.
82
+ const parallelRoutes = tree[1];
83
+ node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
84
+ }
85
+ if (!node) return segmentPath;
86
+ const segment = node[0];
87
+ let segmentValue = getSegmentValue(segment);
88
+ if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
89
+ return segmentPath;
90
+ }
91
+ segmentPath.push(segmentValue);
92
+ return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
93
+ }
94
+ const PAGE_SEGMENT_KEY = '__PAGE__';
95
+ const DEFAULT_SEGMENT_KEY = '__DEFAULT__';
96
+ const NOT_FOUND_SEGMENT_KEY = '/_not-found';
97
+
98
+
99
+ } (segment));
100
+ return segment;
101
+ }
102
+
103
+ export { requireSegment as __require };
104
+ //# sourceMappingURL=segment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segment.js","sources":["../../../../../../node_modules/next/dist/shared/lib/segment.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n DEFAULT_SEGMENT_KEY: null,\n NOT_FOUND_SEGMENT_KEY: null,\n PAGE_SEGMENT_KEY: null,\n addSearchParamsIfPageSegment: null,\n computeSelectedLayoutSegment: null,\n getSegmentValue: null,\n getSelectedLayoutSegmentPath: null,\n isGroupSegment: null,\n isParallelRouteSegment: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n DEFAULT_SEGMENT_KEY: function() {\n return DEFAULT_SEGMENT_KEY;\n },\n NOT_FOUND_SEGMENT_KEY: function() {\n return NOT_FOUND_SEGMENT_KEY;\n },\n PAGE_SEGMENT_KEY: function() {\n return PAGE_SEGMENT_KEY;\n },\n addSearchParamsIfPageSegment: function() {\n return addSearchParamsIfPageSegment;\n },\n computeSelectedLayoutSegment: function() {\n return computeSelectedLayoutSegment;\n },\n getSegmentValue: function() {\n return getSegmentValue;\n },\n getSelectedLayoutSegmentPath: function() {\n return getSelectedLayoutSegmentPath;\n },\n isGroupSegment: function() {\n return isGroupSegment;\n },\n isParallelRouteSegment: function() {\n return isParallelRouteSegment;\n }\n});\nfunction getSegmentValue(segment) {\n return Array.isArray(segment) ? segment[1] : segment;\n}\nfunction isGroupSegment(segment) {\n // Use array[0] for performant purpose\n return segment[0] === '(' && segment.endsWith(')');\n}\nfunction isParallelRouteSegment(segment) {\n return segment.startsWith('@') && segment !== '@children';\n}\nfunction addSearchParamsIfPageSegment(segment, searchParams) {\n const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);\n if (isPageSegment) {\n const stringifiedQuery = JSON.stringify(searchParams);\n return stringifiedQuery !== '{}' ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery : PAGE_SEGMENT_KEY;\n }\n return segment;\n}\nfunction computeSelectedLayoutSegment(segments, parallelRouteKey) {\n if (!segments || segments.length === 0) {\n return null;\n }\n // For 'children', use first segment; for other parallel routes, use last segment\n const rawSegment = parallelRouteKey === 'children' ? segments[0] : segments[segments.length - 1];\n // If the default slot is showing, return null since it's not technically \"selected\" (it's a fallback)\n // Returning an internal value like `__DEFAULT__` would be confusing\n return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;\n}\nfunction getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {\n let node;\n if (first) {\n // Use the provided parallel route key on the first parallel route\n node = tree[1][parallelRouteKey];\n } else {\n // After first parallel route prefer children, if there's no children pick the first parallel route.\n const parallelRoutes = tree[1];\n node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];\n }\n if (!node) return segmentPath;\n const segment = node[0];\n let segmentValue = getSegmentValue(segment);\n if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {\n return segmentPath;\n }\n segmentPath.push(segmentValue);\n return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);\n}\nconst PAGE_SEGMENT_KEY = '__PAGE__';\nconst DEFAULT_SEGMENT_KEY = '__DEFAULT__';\nconst NOT_FOUND_SEGMENT_KEY = '/_not-found';\n\n//# sourceMappingURL=segment.js.map"],"names":["exports"],"mappings":";;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAYF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MA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IAAI,CAAC,CAAC,CAAC;AAC3B,MAAI,IAAI,YAAY,GAAG,eAAe,CAAC,OAAO,CAAC;MAC3C,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;AACpE,UAAQ,OAAO,WAAW;AAC1B,MAAA;AACA,MAAI,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;MAC9B,OAAO,4BAA4B,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,WAAW,CAAC;AACnF,EAAA;EACA,MAAM,gBAAgB,GAAG,UAAU;EACnC,MAAM,mBAAmB,GAAG,aAAa;EACzC,MAAM,qBAAqB,GAAG,aAAa;;AAE3C;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,46 @@
1
+ import { __exports as serverInsertedHtml_sharedRuntime } from '../../../../../_virtual/server-inserted-html.shared-runtime.js';
2
+ import { __require as require_interop_require_wildcard } from '../../../../@swc/helpers/cjs/_interop_require_wildcard.js';
3
+ import React__default from 'react';
4
+
5
+ var hasRequiredServerInsertedHtml_sharedRuntime;
6
+
7
+ function requireServerInsertedHtml_sharedRuntime () {
8
+ if (hasRequiredServerInsertedHtml_sharedRuntime) return serverInsertedHtml_sharedRuntime;
9
+ hasRequiredServerInsertedHtml_sharedRuntime = 1;
10
+ (function (exports$1) {
11
+ 'use client';
12
+ Object.defineProperty(exports$1, "__esModule", {
13
+ value: true
14
+ });
15
+ function _export(target, all) {
16
+ for(var name in all)Object.defineProperty(target, name, {
17
+ enumerable: true,
18
+ get: all[name]
19
+ });
20
+ }
21
+ _export(exports$1, {
22
+ ServerInsertedHTMLContext: function() {
23
+ return ServerInsertedHTMLContext;
24
+ },
25
+ useServerInsertedHTML: function() {
26
+ return useServerInsertedHTML;
27
+ }
28
+ });
29
+ const _interop_require_wildcard = /*@__PURE__*/ require_interop_require_wildcard();
30
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(React__default);
31
+ const ServerInsertedHTMLContext = /*#__PURE__*/ _react.default.createContext(null);
32
+ function useServerInsertedHTML(callback) {
33
+ const addInsertedServerHTMLCallback = (0, _react.useContext)(ServerInsertedHTMLContext);
34
+ // Should have no effects on client where there's no flush effects provider
35
+ if (addInsertedServerHTMLCallback) {
36
+ addInsertedServerHTMLCallback(callback);
37
+ }
38
+ }
39
+
40
+
41
+ } (serverInsertedHtml_sharedRuntime));
42
+ return serverInsertedHtml_sharedRuntime;
43
+ }
44
+
45
+ export { requireServerInsertedHtml_sharedRuntime as __require };
46
+ //# sourceMappingURL=server-inserted-html.shared-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-inserted-html.shared-runtime.js","sources":["../../../../../../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js"],"sourcesContent":["'use client';\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n ServerInsertedHTMLContext: null,\n useServerInsertedHTML: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n ServerInsertedHTMLContext: function() {\n return ServerInsertedHTMLContext;\n },\n useServerInsertedHTML: function() {\n return useServerInsertedHTML;\n }\n});\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst ServerInsertedHTMLContext = /*#__PURE__*/ _react.default.createContext(null);\nfunction useServerInsertedHTML(callback) {\n const addInsertedServerHTMLCallback = (0, _react.useContext)(ServerInsertedHTMLContext);\n // Should have no effects on client where there's no flush effects provider\n if (addInsertedServerHTMLCallback) {\n addInsertedServerHTMLCallback(callback);\n }\n}\n\n//# sourceMappingURL=server-inserted-html.shared-runtime.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;EAAA,YAAY;AAEZ,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAKF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,yBAAyB,EAAE,WAAW;AAC1C,UAAQ,OAAO,yBAAyB;MACxC,CAAK;MACD,qBAAqB,EAAE,WAAW;AACtC,UAAQ,OAAO,qBAAqB;AACpC,MAAA;AACA,GAAC,CAAC;EACF,MAAM,yBAAyB,iBAAGC,gCAAA,EAAmD;EACrF,MAAM,MAAM,iBAAiB,yBAAyB,CAAC,CAAC,CAACC,cAAgB,CAAC;EAC1E,MAAM,yBAAyB,iBAAiB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;EAClF,SAAS,qBAAqB,CAAC,QAAQ,EAAE;MACrC,MAAM,6BAA6B,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,yBAAyB,CAAC;AAC3F;MACI,IAAI,6BAA6B,EAAE;UAC/B,6BAA6B,CAAC,QAAQ,CAAC;AAC/C,MAAA;AACA,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,77 @@
1
+ import { __exports as sideEffect } from '../../../../../_virtual/side-effect.js';
2
+ import React__default from 'react';
3
+
4
+ var hasRequiredSideEffect;
5
+
6
+ function requireSideEffect () {
7
+ if (hasRequiredSideEffect) return sideEffect;
8
+ hasRequiredSideEffect = 1;
9
+ (function (exports$1) {
10
+ Object.defineProperty(exports$1, "__esModule", {
11
+ value: true
12
+ });
13
+ Object.defineProperty(exports$1, "default", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return SideEffect;
17
+ }
18
+ });
19
+ const _react = React__default;
20
+ const isServer = typeof window === 'undefined';
21
+ const useClientOnlyLayoutEffect = isServer ? ()=>{} : _react.useLayoutEffect;
22
+ const useClientOnlyEffect = isServer ? ()=>{} : _react.useEffect;
23
+ function SideEffect(props) {
24
+ const { headManager, reduceComponentsToState } = props;
25
+ function emitChange() {
26
+ if (headManager && headManager.mountedInstances) {
27
+ const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
28
+ headManager.updateHead(reduceComponentsToState(headElements));
29
+ }
30
+ }
31
+ if (isServer) {
32
+ headManager?.mountedInstances?.add(props.children);
33
+ emitChange();
34
+ }
35
+ useClientOnlyLayoutEffect(()=>{
36
+ headManager?.mountedInstances?.add(props.children);
37
+ return ()=>{
38
+ headManager?.mountedInstances?.delete(props.children);
39
+ };
40
+ });
41
+ // We need to call `updateHead` method whenever the `SideEffect` is trigger in all
42
+ // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s
43
+ // being rendered, we only trigger the method from the last one.
44
+ // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`
45
+ // singleton in the layout effect pass, and actually trigger it in the effect pass.
46
+ useClientOnlyLayoutEffect(()=>{
47
+ if (headManager) {
48
+ headManager._pendingUpdate = emitChange;
49
+ }
50
+ return ()=>{
51
+ if (headManager) {
52
+ headManager._pendingUpdate = emitChange;
53
+ }
54
+ };
55
+ });
56
+ useClientOnlyEffect(()=>{
57
+ if (headManager && headManager._pendingUpdate) {
58
+ headManager._pendingUpdate();
59
+ headManager._pendingUpdate = null;
60
+ }
61
+ return ()=>{
62
+ if (headManager && headManager._pendingUpdate) {
63
+ headManager._pendingUpdate();
64
+ headManager._pendingUpdate = null;
65
+ }
66
+ };
67
+ });
68
+ return null;
69
+ }
70
+
71
+
72
+ } (sideEffect));
73
+ return sideEffect;
74
+ }
75
+
76
+ export { requireSideEffect as __require };
77
+ //# sourceMappingURL=side-effect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"side-effect.js","sources":["../../../../../../node_modules/next/dist/shared/lib/side-effect.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return SideEffect;\n }\n});\nconst _react = require(\"react\");\nconst isServer = typeof window === 'undefined';\nconst useClientOnlyLayoutEffect = isServer ? ()=>{} : _react.useLayoutEffect;\nconst useClientOnlyEffect = isServer ? ()=>{} : _react.useEffect;\nfunction SideEffect(props) {\n const { headManager, reduceComponentsToState } = props;\n function emitChange() {\n if (headManager && headManager.mountedInstances) {\n const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));\n headManager.updateHead(reduceComponentsToState(headElements));\n }\n }\n if (isServer) {\n headManager?.mountedInstances?.add(props.children);\n emitChange();\n }\n useClientOnlyLayoutEffect(()=>{\n headManager?.mountedInstances?.add(props.children);\n return ()=>{\n headManager?.mountedInstances?.delete(props.children);\n };\n });\n // We need to call `updateHead` method whenever the `SideEffect` is trigger in all\n // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s\n // being rendered, we only trigger the method from the last one.\n // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`\n // singleton in the layout effect pass, and actually trigger it in the effect pass.\n useClientOnlyLayoutEffect(()=>{\n if (headManager) {\n headManager._pendingUpdate = emitChange;\n }\n return ()=>{\n if (headManager) {\n headManager._pendingUpdate = emitChange;\n }\n };\n });\n useClientOnlyEffect(()=>{\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate();\n headManager._pendingUpdate = null;\n }\n return ()=>{\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate();\n headManager._pendingUpdate = null;\n }\n };\n });\n return null;\n}\n\n//# sourceMappingURL=side-effect.js.map"],"names":["exports","require$$0"],"mappings":";;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,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AE;AACzB,cAAY,WAAW,CAAC,cAAc,GAAG,UAAU;AACnD,UAAA;AACA,UAAQ,OAAO,IAAI;cACP,IAAI,WAAW,EAAE;AAC7B,kBAAgB,WAAW,CAAC,cAAc,GAAG,UAAU;AACvD,cAAA;UACA,CAAS;AACT,MAAA,CAAK,CAAC;MACF,mBAAmB,CAAC,IAAI;AAC5B,UAAQ,IAAI,WAAW,IAAI,WAAW,CAAC,cAAc,EAAE;cAC3C,WAAW,CAAC,cAAc,EAAE;AACxC,cAAY,WAAW,CAAC,cAAc,GAAG,IAAI;AAC7C,UAAA;AACA,UAAQ,OAAO,IAAI;AACnB,cAAY,IAAI,WAAW,IAAI,WAAW,CAAC,cAAc,EAAE;kBAC3C,WAAW,CAAC,cAAc,EAAE;AAC5C,kBAAgB,WAAW,CAAC,cAAc,GAAG,IAAI;AACjD,cAAA;UACA,CAAS;AACT,MAAA,CAAK,CAAC;AACN,MAAI,OAAO,IAAI;AACf,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,35 @@
1
+ import { __exports as errorOnce } from '../../../../../../_virtual/error-once.js';
2
+
3
+ var hasRequiredErrorOnce;
4
+
5
+ function requireErrorOnce () {
6
+ if (hasRequiredErrorOnce) return errorOnce;
7
+ hasRequiredErrorOnce = 1;
8
+ (function (exports$1) {
9
+ Object.defineProperty(exports$1, "__esModule", {
10
+ value: true
11
+ });
12
+ Object.defineProperty(exports$1, "errorOnce", {
13
+ enumerable: true,
14
+ get: function() {
15
+ return errorOnce;
16
+ }
17
+ });
18
+ let errorOnce = (_)=>{};
19
+ if (process.env.NODE_ENV !== 'production') {
20
+ const errors = new Set();
21
+ errorOnce = (msg)=>{
22
+ if (!errors.has(msg)) {
23
+ console.error(msg);
24
+ }
25
+ errors.add(msg);
26
+ };
27
+ }
28
+
29
+
30
+ } (errorOnce));
31
+ return errorOnce;
32
+ }
33
+
34
+ export { requireErrorOnce as __require };
35
+ //# sourceMappingURL=error-once.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-once.js","sources":["../../../../../../../node_modules/next/dist/shared/lib/utils/error-once.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"errorOnce\", {\n enumerable: true,\n get: function() {\n return errorOnce;\n }\n});\nlet errorOnce = (_)=>{};\nif (process.env.NODE_ENV !== 'production') {\n const errors = new Set();\n errorOnce = (msg)=>{\n if (!errors.has(msg)) {\n console.error(msg);\n }\n errors.add(msg);\n };\n}\n\n//# sourceMappingURL=error-once.js.map"],"names":["exports"],"mappings":";;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,WAAW,EAAE;MACxC,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,SAAS;AACxB,MAAA;AACA,GAAC,CAAC;AACF,EAAA,IAAI,SAAS,GAAG,CAAC,CAAC,GAAG,CAAA,CAAE;AACvB,EAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC3C,MAAI,MAAM,MAAM,GAAG,IAAI,GAAG,EAAE;AAC5B,MAAI,SAAS,GAAG,CAAC,GAAG,GAAG;UACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AAC9B,cAAY,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B,UAAA;AACA,UAAQ,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;MACvB,CAAK;AACL,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}