boreal-ui 0.0.39 → 0.0.41

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 (461) hide show
  1. package/dist/core/{Badge-DOn6E2bS.cjs → Badge-CyGz8K5W.cjs} +4 -1
  2. package/dist/core/Badge-CyGz8K5W.cjs.map +1 -0
  3. package/dist/core/{Badge-Dpjq6lUF.js → Badge-DnE8lt7-.js} +4 -1
  4. package/dist/core/Badge-DnE8lt7-.js.map +1 -0
  5. package/dist/core/Badge.cjs.js +1 -1
  6. package/dist/core/Badge.js +1 -1
  7. package/dist/core/{Card-D-GQwaUJ.js → Card-CbGHr_tX.js} +6 -5
  8. package/dist/core/Card-CbGHr_tX.js.map +1 -0
  9. package/dist/core/{Card-DftqfPue.cjs → Card-De2epy0R.cjs} +6 -5
  10. package/dist/core/Card-De2epy0R.cjs.map +1 -0
  11. package/dist/core/Card.cjs.js +1 -1
  12. package/dist/core/Card.js +1 -1
  13. package/dist/core/{Chip-D4vbSudX.js → Chip-BjbtoFKm.js} +2 -2
  14. package/dist/core/{Chip-D4vbSudX.js.map → Chip-BjbtoFKm.js.map} +1 -1
  15. package/dist/core/{Chip-CWsfLyyU.cjs → Chip-c2mN7R-R.cjs} +2 -2
  16. package/dist/core/{Chip-CWsfLyyU.cjs.map → Chip-c2mN7R-R.cjs.map} +1 -1
  17. package/dist/core/Chip.cjs.js +1 -1
  18. package/dist/core/Chip.js +1 -1
  19. package/dist/core/{CommandPalette-CXKBDCbP.cjs → CommandPalette-CPhVbQAc.cjs} +2 -2
  20. package/dist/core/{CommandPalette-CXKBDCbP.cjs.map → CommandPalette-CPhVbQAc.cjs.map} +1 -1
  21. package/dist/core/{CommandPalette-N556smLj.js → CommandPalette-Df69KRv4.js} +2 -2
  22. package/dist/core/{CommandPalette-N556smLj.js.map → CommandPalette-Df69KRv4.js.map} +1 -1
  23. package/dist/core/CommandPalette.cjs.js +1 -1
  24. package/dist/core/CommandPalette.js +1 -1
  25. package/dist/core/{Dropdown-CwofYHjq.js → Dropdown-CR3xr5K-.js} +2 -2
  26. package/dist/core/{Dropdown-CwofYHjq.js.map → Dropdown-CR3xr5K-.js.map} +1 -1
  27. package/dist/core/{Dropdown-DvwHouyC.cjs → Dropdown-CjPfU1K-.cjs} +2 -2
  28. package/dist/core/{Dropdown-DvwHouyC.cjs.map → Dropdown-CjPfU1K-.cjs.map} +1 -1
  29. package/dist/core/Dropdown.cjs.js +1 -1
  30. package/dist/core/Dropdown.js +1 -1
  31. package/dist/core/{FileUpload-Du7vDDdf.cjs → FileUpload-BJ3RJxT3.cjs} +3 -3
  32. package/dist/core/{FileUpload-Du7vDDdf.cjs.map → FileUpload-BJ3RJxT3.cjs.map} +1 -1
  33. package/dist/core/{FileUpload-Q8aDsaFs.js → FileUpload-C0eHx1h8.js} +3 -3
  34. package/dist/core/{FileUpload-Q8aDsaFs.js.map → FileUpload-C0eHx1h8.js.map} +1 -1
  35. package/dist/core/FileUpload.cjs.js +1 -1
  36. package/dist/core/FileUpload.js +1 -1
  37. package/dist/core/{Footer-DMOA1W7N.cjs → Footer-CYIUIgV1.cjs} +3 -3
  38. package/dist/core/Footer-CYIUIgV1.cjs.map +1 -0
  39. package/dist/core/{Footer-zO4RGjCl.js → Footer-D9RimHx9.js} +3 -3
  40. package/dist/core/Footer-D9RimHx9.js.map +1 -0
  41. package/dist/core/Footer.cjs.js +1 -1
  42. package/dist/core/Footer.js +1 -1
  43. package/dist/core/{FormGroup-C2TWC17P.cjs → FormGroup-Cit_2_Wo.cjs} +5 -8
  44. package/dist/core/FormGroup-Cit_2_Wo.cjs.map +1 -0
  45. package/dist/core/{FormGroup-tSK_NN0-.js → FormGroup-DDZ1D_CI.js} +5 -8
  46. package/dist/core/FormGroup-DDZ1D_CI.js.map +1 -0
  47. package/dist/core/FormGroup.cjs.js +1 -1
  48. package/dist/core/FormGroup.js +1 -1
  49. package/dist/core/{IconButton-_lxTppua.js → IconButton-BMZhwYXB.js} +2 -2
  50. package/dist/core/IconButton-BMZhwYXB.js.map +1 -0
  51. package/dist/core/{IconButton-CR9bTZoJ.cjs → IconButton-Bio6Azm-.cjs} +2 -2
  52. package/dist/core/IconButton-Bio6Azm-.cjs.map +1 -0
  53. package/dist/core/IconButton.cjs.js +1 -1
  54. package/dist/core/IconButton.js +1 -1
  55. package/dist/core/{MarkdownRenderer-LUXCa_a8.cjs → MarkdownRenderer-Bn6vcfSd.cjs} +3 -2
  56. package/dist/core/MarkdownRenderer-Bn6vcfSd.cjs.map +1 -0
  57. package/dist/core/{MarkdownRenderer-B1LmmpZm.js → MarkdownRenderer-Co787hku.js} +3 -2
  58. package/dist/core/MarkdownRenderer-Co787hku.js.map +1 -0
  59. package/dist/core/MarkdownRenderer.cjs.js +1 -1
  60. package/dist/core/MarkdownRenderer.js +1 -1
  61. package/dist/core/MessagePopUp.cjs.js +1 -1
  62. package/dist/core/MessagePopUp.js +1 -1
  63. package/dist/core/{MessagePopup-BlbPMecd.js → MessagePopup-B3lEfar7.js} +2 -2
  64. package/dist/core/{MessagePopup-BlbPMecd.js.map → MessagePopup-B3lEfar7.js.map} +1 -1
  65. package/dist/core/{MessagePopup-hxloT7aK.cjs → MessagePopup-CtdpuRFv.cjs} +2 -2
  66. package/dist/core/{MessagePopup-hxloT7aK.cjs.map → MessagePopup-CtdpuRFv.cjs.map} +1 -1
  67. package/dist/core/{MetricBox-Dh911MS2.js → MetricBox-CPug-nxo.js} +11 -2
  68. package/dist/core/MetricBox-CPug-nxo.js.map +1 -0
  69. package/dist/core/{MetricBox-BcOdQM-l.cjs → MetricBox-DVo4UUQv.cjs} +11 -2
  70. package/dist/core/MetricBox-DVo4UUQv.cjs.map +1 -0
  71. package/dist/core/MetricBox.cjs.js +1 -1
  72. package/dist/core/MetricBox.js +1 -1
  73. package/dist/core/{Modal-D1G1Csp9.js → Modal-DFhYDYb9.js} +2 -2
  74. package/dist/core/{Modal-D1G1Csp9.js.map → Modal-DFhYDYb9.js.map} +1 -1
  75. package/dist/core/{Modal-D-ZoA_xx.cjs → Modal-FB4mTmQW.cjs} +2 -2
  76. package/dist/core/{Modal-D-ZoA_xx.cjs.map → Modal-FB4mTmQW.cjs.map} +1 -1
  77. package/dist/core/Modal.cjs.js +1 -1
  78. package/dist/core/Modal.js +1 -1
  79. package/dist/core/{NotificationCenter-BrUNpJAx.js → NotificationCenter-DLCzWNve.js} +2 -2
  80. package/dist/core/{NotificationCenter-BrUNpJAx.js.map → NotificationCenter-DLCzWNve.js.map} +1 -1
  81. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs → NotificationCenter-DfOOEt9N.cjs} +2 -2
  82. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs.map → NotificationCenter-DfOOEt9N.cjs.map} +1 -1
  83. package/dist/core/NotificationCenter.cjs.js +1 -1
  84. package/dist/core/NotificationCenter.js +1 -1
  85. package/dist/core/{Pager-CZF6O7rq.js → Pager-DBHI7yRW.js} +2 -2
  86. package/dist/core/{Pager-CZF6O7rq.js.map → Pager-DBHI7yRW.js.map} +1 -1
  87. package/dist/core/{Pager-C_SG4CIc.cjs → Pager-Dv6D3kXa.cjs} +2 -2
  88. package/dist/core/{Pager-C_SG4CIc.cjs.map → Pager-Dv6D3kXa.cjs.map} +1 -1
  89. package/dist/core/Pager.cjs.js +1 -1
  90. package/dist/core/Pager.js +1 -1
  91. package/dist/core/{Skeleton-Cwn3_gc7.js → Skeleton-BjpQHG5i.js} +2 -2
  92. package/dist/core/{Skeleton-Cwn3_gc7.js.map → Skeleton-BjpQHG5i.js.map} +1 -1
  93. package/dist/core/{Skeleton-BLVD5mDI.cjs → Skeleton-tetAZCSl.cjs} +2 -2
  94. package/dist/core/{Skeleton-BLVD5mDI.cjs.map → Skeleton-tetAZCSl.cjs.map} +1 -1
  95. package/dist/core/Skeleton.cjs.js +1 -1
  96. package/dist/core/Skeleton.js +1 -1
  97. package/dist/core/{Spinner-D81UG24n.js → Spinner-D1CHbKYU.js} +2 -2
  98. package/dist/core/Spinner-D1CHbKYU.js.map +1 -0
  99. package/dist/core/{Spinner-CEIk_hpT.cjs → Spinner-JTcQ_d4T.cjs} +2 -2
  100. package/dist/core/Spinner-JTcQ_d4T.cjs.map +1 -0
  101. package/dist/core/Spinner.cjs.js +1 -1
  102. package/dist/core/Spinner.js +1 -1
  103. package/dist/core/{Stepper-Cjb7ckXo.js → Stepper-C6xjvhZJ.js} +2 -2
  104. package/dist/core/{Stepper-Cjb7ckXo.js.map → Stepper-C6xjvhZJ.js.map} +1 -1
  105. package/dist/core/{Stepper-BuCLqbtQ.cjs → Stepper-JNVBVHc3.cjs} +2 -2
  106. package/dist/core/{Stepper-BuCLqbtQ.cjs.map → Stepper-JNVBVHc3.cjs.map} +1 -1
  107. package/dist/core/Stepper.cjs.js +1 -1
  108. package/dist/core/Stepper.js +1 -1
  109. package/dist/core/TagInput.cjs.js +1 -1
  110. package/dist/core/TagInput.js +1 -1
  111. package/dist/core/{Taginput-DgbxDttA.cjs → Taginput-BXCxdLf0.cjs} +3 -3
  112. package/dist/core/{Taginput-DgbxDttA.cjs.map → Taginput-BXCxdLf0.cjs.map} +1 -1
  113. package/dist/core/{Taginput-CKekAR72.js → Taginput-CoxxwLXg.js} +3 -3
  114. package/dist/core/{Taginput-CKekAR72.js.map → Taginput-CoxxwLXg.js.map} +1 -1
  115. package/dist/core/{TextInput-DFOjxri2.cjs → TextInput-DYALlUc_.cjs} +2 -2
  116. package/dist/core/{TextInput-DFOjxri2.cjs.map → TextInput-DYALlUc_.cjs.map} +1 -1
  117. package/dist/core/{TextInput-7kV66ccj.js → TextInput-qw-jAx_3.js} +2 -2
  118. package/dist/core/{TextInput-7kV66ccj.js.map → TextInput-qw-jAx_3.js.map} +1 -1
  119. package/dist/core/TextInput.cjs.js +1 -1
  120. package/dist/core/TextInput.js +1 -1
  121. package/dist/core/{style.css → boreal-ui.css} +6976 -6974
  122. package/dist/core/index.cjs.js +20 -20
  123. package/dist/core/index.js +20 -20
  124. package/dist/next/{Accordion-DKNh8FaP.cjs → Accordion-BPWTEHym.cjs} +50 -50
  125. package/dist/next/{Accordion-DKNh8FaP.cjs.map → Accordion-BPWTEHym.cjs.map} +1 -1
  126. package/dist/next/{Accordion-BkiAI6vY.js → Accordion-DY243Bq9.js} +50 -50
  127. package/dist/next/{Accordion-BkiAI6vY.js.map → Accordion-DY243Bq9.js.map} +1 -1
  128. package/dist/next/Accordion.cjs.js +1 -1
  129. package/dist/next/Accordion.js +1 -1
  130. package/dist/next/{Avatar-ijMVfQpY.js → Avatar-B-Ws4Ueo.js} +42 -42
  131. package/dist/next/{Avatar-ijMVfQpY.js.map → Avatar-B-Ws4Ueo.js.map} +1 -1
  132. package/dist/next/{Avatar-Ctm74prt.cjs → Avatar-B9sMyRWr.cjs} +42 -42
  133. package/dist/next/{Avatar-Ctm74prt.cjs.map → Avatar-B9sMyRWr.cjs.map} +1 -1
  134. package/dist/next/Avatar.cjs.js +1 -1
  135. package/dist/next/Avatar.js +1 -1
  136. package/dist/next/{Badge-k6Dk5S_p.js → Badge-BZNYm0IU.js} +34 -31
  137. package/dist/next/Badge-BZNYm0IU.js.map +1 -0
  138. package/dist/next/{Badge-DbmM5wGc.cjs → Badge-dTyh833r.cjs} +34 -31
  139. package/dist/next/Badge-dTyh833r.cjs.map +1 -0
  140. package/dist/next/Badge.cjs.js +1 -1
  141. package/dist/next/Badge.js +1 -1
  142. package/dist/next/{Breadcrumbs-CWv3TrV_.js → Breadcrumbs-BPWmV24h.js} +39 -39
  143. package/dist/next/{Breadcrumbs-CWv3TrV_.js.map → Breadcrumbs-BPWmV24h.js.map} +1 -1
  144. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs → Breadcrumbs-BcXj2PgR.cjs} +39 -39
  145. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs.map → Breadcrumbs-BcXj2PgR.cjs.map} +1 -1
  146. package/dist/next/Breadcrumbs.cjs.js +1 -1
  147. package/dist/next/Breadcrumbs.js +1 -1
  148. package/dist/next/{Button-D8Kff8sN.cjs → Button-B1Fh4G0_.cjs} +47 -47
  149. package/dist/next/{Button-D8Kff8sN.cjs.map → Button-B1Fh4G0_.cjs.map} +1 -1
  150. package/dist/next/{Button-BjY7f3mw.js → Button-uZ3xTOOt.js} +47 -47
  151. package/dist/next/{Button-BjY7f3mw.js.map → Button-uZ3xTOOt.js.map} +1 -1
  152. package/dist/next/Button.cjs.js +1 -1
  153. package/dist/next/Button.js +1 -1
  154. package/dist/next/{Card-DhxLw6XZ.js → Card-B_qtwaqj.js} +68 -67
  155. package/dist/next/Card-B_qtwaqj.js.map +1 -0
  156. package/dist/next/{Card-BFmGnvxN.cjs → Card-CqXJPdqV.cjs} +68 -67
  157. package/dist/next/Card-CqXJPdqV.cjs.map +1 -0
  158. package/dist/next/Card.cjs.js +1 -1
  159. package/dist/next/Card.js +1 -1
  160. package/dist/next/CheckBox.cjs.js +1 -1
  161. package/dist/next/CheckBox.js +1 -1
  162. package/dist/next/{Checkbox-DVr6H6mN.js → Checkbox-BJ0rBZLF.js} +44 -44
  163. package/dist/next/{Checkbox-DVr6H6mN.js.map → Checkbox-BJ0rBZLF.js.map} +1 -1
  164. package/dist/next/{Checkbox-B-y0lEjJ.cjs → Checkbox-Ch7osD3y.cjs} +44 -44
  165. package/dist/next/{Checkbox-B-y0lEjJ.cjs.map → Checkbox-Ch7osD3y.cjs.map} +1 -1
  166. package/dist/next/{Chip-C8ayWG9-.js → Chip-BB3Awc2g.js} +51 -51
  167. package/dist/next/{Chip-C8ayWG9-.js.map → Chip-BB3Awc2g.js.map} +1 -1
  168. package/dist/next/{Chip-C4-KUcHh.cjs → Chip-DzFaUPed.cjs} +51 -51
  169. package/dist/next/{Chip-C4-KUcHh.cjs.map → Chip-DzFaUPed.cjs.map} +1 -1
  170. package/dist/next/Chip.cjs.js +1 -1
  171. package/dist/next/Chip.js +1 -1
  172. package/dist/next/{CircularProgress-Cz9G0WeQ.js → CircularProgress-BUqdguII.js} +37 -37
  173. package/dist/next/{CircularProgress-Cz9G0WeQ.js.map → CircularProgress-BUqdguII.js.map} +1 -1
  174. package/dist/next/{CircularProgress-UhpLA94q.cjs → CircularProgress-Cp2pGFmc.cjs} +37 -37
  175. package/dist/next/{CircularProgress-UhpLA94q.cjs.map → CircularProgress-Cp2pGFmc.cjs.map} +1 -1
  176. package/dist/next/CircularProgress.cjs.js +1 -1
  177. package/dist/next/CircularProgress.js +1 -1
  178. package/dist/next/{ColorPicker-DvgeIT_p.cjs → ColorPicker-BHtO2mbU.cjs} +38 -38
  179. package/dist/next/{ColorPicker-DvgeIT_p.cjs.map → ColorPicker-BHtO2mbU.cjs.map} +1 -1
  180. package/dist/next/{ColorPicker-1naDOGhp.js → ColorPicker-ChWOekWP.js} +38 -38
  181. package/dist/next/{ColorPicker-1naDOGhp.js.map → ColorPicker-ChWOekWP.js.map} +1 -1
  182. package/dist/next/ColorPicker.cjs.js +1 -1
  183. package/dist/next/ColorPicker.js +1 -1
  184. package/dist/next/{CommandPalette-ypXbi8zW.cjs → CommandPalette-BT9X_yL0.cjs} +42 -42
  185. package/dist/next/{CommandPalette-ypXbi8zW.cjs.map → CommandPalette-BT9X_yL0.cjs.map} +1 -1
  186. package/dist/next/{CommandPalette-XP4v5FE6.js → CommandPalette-DEf12Et3.js} +42 -42
  187. package/dist/next/{CommandPalette-XP4v5FE6.js.map → CommandPalette-DEf12Et3.js.map} +1 -1
  188. package/dist/next/CommandPalette.cjs.js +1 -1
  189. package/dist/next/CommandPalette.js +1 -1
  190. package/dist/next/{DataTable-jUelgv2H.js → DataTable-CnvOkZrU.js} +40 -40
  191. package/dist/next/{DataTable-jUelgv2H.js.map → DataTable-CnvOkZrU.js.map} +1 -1
  192. package/dist/next/{DataTable-jq0suGoA.cjs → DataTable-DQ1QRyZw.cjs} +40 -40
  193. package/dist/next/{DataTable-jq0suGoA.cjs.map → DataTable-DQ1QRyZw.cjs.map} +1 -1
  194. package/dist/next/DataTable.cjs.js +1 -1
  195. package/dist/next/DataTable.js +1 -1
  196. package/dist/next/{DateTimePicker-D5gEfxvd.cjs → DateTimePicker-2M4AJJXm.cjs} +46 -46
  197. package/dist/next/{DateTimePicker-D5gEfxvd.cjs.map → DateTimePicker-2M4AJJXm.cjs.map} +1 -1
  198. package/dist/next/{DateTimePicker-BTm6T3-E.js → DateTimePicker-IvBWNgkK.js} +46 -46
  199. package/dist/next/{DateTimePicker-BTm6T3-E.js.map → DateTimePicker-IvBWNgkK.js.map} +1 -1
  200. package/dist/next/DateTimePicker.cjs.js +1 -1
  201. package/dist/next/DateTimePicker.js +1 -1
  202. package/dist/next/{Divider-BYKFFi3a.js → Divider-BCCzNbAE.js} +28 -28
  203. package/dist/next/{Divider-BYKFFi3a.js.map → Divider-BCCzNbAE.js.map} +1 -1
  204. package/dist/next/{Divider-CczNc7mx.cjs → Divider-ByDYa4v6.cjs} +28 -28
  205. package/dist/next/{Divider-CczNc7mx.cjs.map → Divider-ByDYa4v6.cjs.map} +1 -1
  206. package/dist/next/Divider.cjs.js +1 -1
  207. package/dist/next/Divider.js +1 -1
  208. package/dist/next/{Dropdown-yaMx19im.cjs → Dropdown-DEdk2QjS.cjs} +22 -22
  209. package/dist/next/{Dropdown-yaMx19im.cjs.map → Dropdown-DEdk2QjS.cjs.map} +1 -1
  210. package/dist/next/{Dropdown-CJGb6wyQ.js → Dropdown-qdxH-NQR.js} +22 -22
  211. package/dist/next/{Dropdown-CJGb6wyQ.js.map → Dropdown-qdxH-NQR.js.map} +1 -1
  212. package/dist/next/Dropdown.cjs.js +1 -1
  213. package/dist/next/Dropdown.js +1 -1
  214. package/dist/next/{EmptyState-DIymA2cZ.js → EmptyState-BNzFHAk3.js} +31 -31
  215. package/dist/next/{EmptyState-DIymA2cZ.js.map → EmptyState-BNzFHAk3.js.map} +1 -1
  216. package/dist/next/{EmptyState-CGPIGpz2.cjs → EmptyState-CXyx1WlG.cjs} +31 -31
  217. package/dist/next/{EmptyState-CGPIGpz2.cjs.map → EmptyState-CXyx1WlG.cjs.map} +1 -1
  218. package/dist/next/EmptyState.cjs.js +1 -1
  219. package/dist/next/EmptyState.js +1 -1
  220. package/dist/next/{FileUpload-CIued3w1.js → FileUpload-DBSXPL55.js} +52 -52
  221. package/dist/next/{FileUpload-CIued3w1.js.map → FileUpload-DBSXPL55.js.map} +1 -1
  222. package/dist/next/{FileUpload-MVXOV0j9.cjs → FileUpload-DwlqapHn.cjs} +52 -52
  223. package/dist/next/{FileUpload-MVXOV0j9.cjs.map → FileUpload-DwlqapHn.cjs.map} +1 -1
  224. package/dist/next/FileUpload.cjs.js +1 -1
  225. package/dist/next/FileUpload.js +1 -1
  226. package/dist/next/{Footer-DAZLz11H.cjs → Footer-BxrsmJyY.cjs} +45 -45
  227. package/dist/next/Footer-BxrsmJyY.cjs.map +1 -0
  228. package/dist/next/{Footer-BSEbf6CL.js → Footer-CP_PaLon.js} +45 -45
  229. package/dist/next/Footer-CP_PaLon.js.map +1 -0
  230. package/dist/next/Footer.cjs.js +1 -1
  231. package/dist/next/Footer.js +1 -1
  232. package/dist/next/{FormGroup-DbUqgg_b.js → FormGroup-QfUhtyhx.js} +34 -37
  233. package/dist/next/FormGroup-QfUhtyhx.js.map +1 -0
  234. package/dist/next/{FormGroup-6Ss6pNqV.cjs → FormGroup-U3EwnB0M.cjs} +34 -37
  235. package/dist/next/FormGroup-U3EwnB0M.cjs.map +1 -0
  236. package/dist/next/FormGroup.cjs.js +1 -1
  237. package/dist/next/FormGroup.js +1 -1
  238. package/dist/next/{IconButton-VSz8qAIg.cjs → IconButton-2l-_HOMB.cjs} +31 -31
  239. package/dist/next/IconButton-2l-_HOMB.cjs.map +1 -0
  240. package/dist/next/{IconButton-qQljwBB2.js → IconButton-BTUFKRZt.js} +31 -31
  241. package/dist/next/IconButton-BTUFKRZt.js.map +1 -0
  242. package/dist/next/IconButton.cjs.js +1 -1
  243. package/dist/next/IconButton.js +1 -1
  244. package/dist/next/{MarkdownRenderer-B7lwemDw.js → MarkdownRenderer-B8_D0j7d.js} +14 -13
  245. package/dist/next/{MarkdownRenderer-B7lwemDw.js.map → MarkdownRenderer-B8_D0j7d.js.map} +1 -1
  246. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs → MarkdownRenderer-l6hdKOt0.cjs} +14 -13
  247. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs.map → MarkdownRenderer-l6hdKOt0.cjs.map} +1 -1
  248. package/dist/next/MarkdownRenderer.cjs.js +1 -1
  249. package/dist/next/MarkdownRenderer.js +1 -1
  250. package/dist/next/MessagePopUp.cjs.js +1 -1
  251. package/dist/next/MessagePopUp.js +1 -1
  252. package/dist/next/{MessagePopup-B5OaSUBr.js → MessagePopup-N2n3NvgX.js} +19 -19
  253. package/dist/next/{MessagePopup-B5OaSUBr.js.map → MessagePopup-N2n3NvgX.js.map} +1 -1
  254. package/dist/next/{MessagePopup-BQ4OFvwo.cjs → MessagePopup-PB3e2lTg.cjs} +19 -19
  255. package/dist/next/{MessagePopup-BQ4OFvwo.cjs.map → MessagePopup-PB3e2lTg.cjs.map} +1 -1
  256. package/dist/next/{MetricBox-Dl3iruBZ.js → MetricBox-BjdAzOrZ.js} +57 -48
  257. package/dist/next/MetricBox-BjdAzOrZ.js.map +1 -0
  258. package/dist/next/{MetricBox-BylPOvoO.cjs → MetricBox-C3B6Bkcb.cjs} +57 -48
  259. package/dist/next/MetricBox-C3B6Bkcb.cjs.map +1 -0
  260. package/dist/next/MetricBox.cjs.js +1 -1
  261. package/dist/next/MetricBox.js +1 -1
  262. package/dist/next/{Modal-CevpqeOy.cjs → Modal-DHTrvNfc.cjs} +17 -17
  263. package/dist/next/{Modal-CevpqeOy.cjs.map → Modal-DHTrvNfc.cjs.map} +1 -1
  264. package/dist/next/{Modal-BARibygG.js → Modal-QTq5IcKa.js} +17 -17
  265. package/dist/next/{Modal-BARibygG.js.map → Modal-QTq5IcKa.js.map} +1 -1
  266. package/dist/next/Modal.cjs.js +1 -1
  267. package/dist/next/Modal.js +1 -1
  268. package/dist/next/{NavBar-C5FBdZT6.cjs → NavBar-Ds_02bAe.cjs} +40 -40
  269. package/dist/next/{NavBar-C5FBdZT6.cjs.map → NavBar-Ds_02bAe.cjs.map} +1 -1
  270. package/dist/next/{NavBar-Bucpo8_3.js → NavBar-v_ckzQIo.js} +40 -40
  271. package/dist/next/{NavBar-Bucpo8_3.js.map → NavBar-v_ckzQIo.js.map} +1 -1
  272. package/dist/next/NavBar.cjs.js +1 -1
  273. package/dist/next/NavBar.js +1 -1
  274. package/dist/next/{NotificationCenter-BD58bbOZ.cjs → NotificationCenter-DbYxpoy6.cjs} +43 -43
  275. package/dist/next/{NotificationCenter-BD58bbOZ.cjs.map → NotificationCenter-DbYxpoy6.cjs.map} +1 -1
  276. package/dist/next/{NotificationCenter-CSwbscYh.js → NotificationCenter-DxK09uJd.js} +43 -43
  277. package/dist/next/{NotificationCenter-CSwbscYh.js.map → NotificationCenter-DxK09uJd.js.map} +1 -1
  278. package/dist/next/NotificationCenter.cjs.js +1 -1
  279. package/dist/next/NotificationCenter.js +1 -1
  280. package/dist/next/{Pager-B-xaM28_.cjs → Pager-BU5RjNwR.cjs} +7 -7
  281. package/dist/next/{Pager-B-xaM28_.cjs.map → Pager-BU5RjNwR.cjs.map} +1 -1
  282. package/dist/next/{Pager-DWzCtb2Q.js → Pager-CtzyTqIl.js} +7 -7
  283. package/dist/next/{Pager-DWzCtb2Q.js.map → Pager-CtzyTqIl.js.map} +1 -1
  284. package/dist/next/Pager.cjs.js +1 -1
  285. package/dist/next/Pager.js +1 -1
  286. package/dist/next/{PopOver-QAYHaYcd.js → PopOver-CmPp9PkL.js} +40 -40
  287. package/dist/next/{PopOver-QAYHaYcd.js.map → PopOver-CmPp9PkL.js.map} +1 -1
  288. package/dist/next/{PopOver-Dp4eqN8G.cjs → PopOver-ixERZLpM.cjs} +40 -40
  289. package/dist/next/{PopOver-Dp4eqN8G.cjs.map → PopOver-ixERZLpM.cjs.map} +1 -1
  290. package/dist/next/PopOver.cjs.js +1 -1
  291. package/dist/next/PopOver.js +1 -1
  292. package/dist/next/{ProgressBar-BrO0fvaM.js → ProgressBar-BoU2HJv3.js} +42 -42
  293. package/dist/next/{ProgressBar-BrO0fvaM.js.map → ProgressBar-BoU2HJv3.js.map} +1 -1
  294. package/dist/next/{ProgressBar-DfXSlpKX.cjs → ProgressBar-C6zKbiq5.cjs} +42 -42
  295. package/dist/next/{ProgressBar-DfXSlpKX.cjs.map → ProgressBar-C6zKbiq5.cjs.map} +1 -1
  296. package/dist/next/ProgressBar.cjs.js +1 -1
  297. package/dist/next/ProgressBar.js +1 -1
  298. package/dist/next/{RadioButton-6cb-ZRjy.cjs → RadioButton-BCu934Uo.cjs} +38 -38
  299. package/dist/next/{RadioButton-6cb-ZRjy.cjs.map → RadioButton-BCu934Uo.cjs.map} +1 -1
  300. package/dist/next/{RadioButton-Dz_e0WUT.js → RadioButton-C14Rsx9o.js} +38 -38
  301. package/dist/next/{RadioButton-Dz_e0WUT.js.map → RadioButton-C14Rsx9o.js.map} +1 -1
  302. package/dist/next/RadioButton.cjs.js +1 -1
  303. package/dist/next/RadioButton.js +1 -1
  304. package/dist/next/{Rating-C4pqzKNQ.cjs → Rating-C9BgQANc.cjs} +34 -34
  305. package/dist/next/{Rating-C4pqzKNQ.cjs.map → Rating-C9BgQANc.cjs.map} +1 -1
  306. package/dist/next/{Rating-DbQ61tMY.js → Rating-aheV3uZJ.js} +34 -34
  307. package/dist/next/{Rating-DbQ61tMY.js.map → Rating-aheV3uZJ.js.map} +1 -1
  308. package/dist/next/Rating.cjs.js +1 -1
  309. package/dist/next/Rating.js +1 -1
  310. package/dist/next/{STT-CCzJFcVP.js → STT-CFFr1_Ls.js} +14 -14
  311. package/dist/next/{STT-CCzJFcVP.js.map → STT-CFFr1_Ls.js.map} +1 -1
  312. package/dist/next/{STT-C6kV0zwW.cjs → STT-GyAuX3-m.cjs} +14 -14
  313. package/dist/next/{STT-C6kV0zwW.cjs.map → STT-GyAuX3-m.cjs.map} +1 -1
  314. package/dist/next/ScrollToTop.cjs.js +1 -1
  315. package/dist/next/ScrollToTop.js +1 -1
  316. package/dist/next/{Select-CZivQIlV.js → Select-CPwU0IV9.js} +32 -32
  317. package/dist/next/{Select-CZivQIlV.js.map → Select-CPwU0IV9.js.map} +1 -1
  318. package/dist/next/{Select-CSAN6B98.cjs → Select-Dgcy2vVe.cjs} +32 -32
  319. package/dist/next/{Select-CSAN6B98.cjs.map → Select-Dgcy2vVe.cjs.map} +1 -1
  320. package/dist/next/Select.cjs.js +1 -1
  321. package/dist/next/Select.js +1 -1
  322. package/dist/next/{Sidebar-BVeRWv61.js → Sidebar-CJ4VrQIW.js} +38 -38
  323. package/dist/next/{Sidebar-BVeRWv61.js.map → Sidebar-CJ4VrQIW.js.map} +1 -1
  324. package/dist/next/{Sidebar-DcDJjNrK.cjs → Sidebar-DajVSn82.cjs} +38 -38
  325. package/dist/next/{Sidebar-DcDJjNrK.cjs.map → Sidebar-DajVSn82.cjs.map} +1 -1
  326. package/dist/next/Sidebar.cjs.js +1 -1
  327. package/dist/next/Sidebar.js +1 -1
  328. package/dist/next/{Skeleton-rSW1X4hk.js → Skeleton-D8C29p3K.js} +27 -27
  329. package/dist/next/{Skeleton-rSW1X4hk.js.map → Skeleton-D8C29p3K.js.map} +1 -1
  330. package/dist/next/{Skeleton-JgU17y-3.cjs → Skeleton-Dmz7m0dj.cjs} +27 -27
  331. package/dist/next/{Skeleton-JgU17y-3.cjs.map → Skeleton-Dmz7m0dj.cjs.map} +1 -1
  332. package/dist/next/Skeleton.cjs.js +1 -1
  333. package/dist/next/Skeleton.js +1 -1
  334. package/dist/next/{Slider-CdSPPw1x.js → Slider-BOAgWYkH.js} +43 -43
  335. package/dist/next/{Slider-CdSPPw1x.js.map → Slider-BOAgWYkH.js.map} +1 -1
  336. package/dist/next/{Slider-B8e96nMm.cjs → Slider-DQM9nV1P.cjs} +43 -43
  337. package/dist/next/{Slider-B8e96nMm.cjs.map → Slider-DQM9nV1P.cjs.map} +1 -1
  338. package/dist/next/Slider.cjs.js +1 -1
  339. package/dist/next/Slider.js +1 -1
  340. package/dist/next/{Spinner-B89FhxVt.cjs → Spinner-0GZngKjG.cjs} +38 -38
  341. package/dist/next/Spinner-0GZngKjG.cjs.map +1 -0
  342. package/dist/next/{Spinner-ChiOXzru.js → Spinner-BFAOf4tt.js} +38 -38
  343. package/dist/next/Spinner-BFAOf4tt.js.map +1 -0
  344. package/dist/next/Spinner.cjs.js +1 -1
  345. package/dist/next/Spinner.js +1 -1
  346. package/dist/next/{Stepper-9uHSgp7y.js → Stepper-B03bz8wT.js} +40 -40
  347. package/dist/next/{Stepper-9uHSgp7y.js.map → Stepper-B03bz8wT.js.map} +1 -1
  348. package/dist/next/{Stepper-UwSloxRf.cjs → Stepper-XZSIlydV.cjs} +40 -40
  349. package/dist/next/{Stepper-UwSloxRf.cjs.map → Stepper-XZSIlydV.cjs.map} +1 -1
  350. package/dist/next/Stepper.cjs.js +1 -1
  351. package/dist/next/Stepper.js +1 -1
  352. package/dist/next/{Tabs-D2jqRrxR.cjs → Tabs-D8Efg8wn.cjs} +44 -44
  353. package/dist/next/{Tabs-D2jqRrxR.cjs.map → Tabs-D8Efg8wn.cjs.map} +1 -1
  354. package/dist/next/{Tabs-CvYx2xtH.js → Tabs-DmrS_FUa.js} +44 -44
  355. package/dist/next/{Tabs-CvYx2xtH.js.map → Tabs-DmrS_FUa.js.map} +1 -1
  356. package/dist/next/Tabs.cjs.js +1 -1
  357. package/dist/next/Tabs.js +1 -1
  358. package/dist/next/{TagInput-Dym0BPK1.cjs → TagInput-Bfjg9pZQ.cjs} +48 -48
  359. package/dist/next/{TagInput-Dym0BPK1.cjs.map → TagInput-Bfjg9pZQ.cjs.map} +1 -1
  360. package/dist/next/{TagInput-DUWgLslk.js → TagInput-CtYKwhEi.js} +48 -48
  361. package/dist/next/{TagInput-DUWgLslk.js.map → TagInput-CtYKwhEi.js.map} +1 -1
  362. package/dist/next/TagInput.cjs.js +1 -1
  363. package/dist/next/TagInput.js +1 -1
  364. package/dist/next/{TextArea-xg4t0Lzo.js → TextArea-n9HgwyJE.js} +25 -25
  365. package/dist/next/{TextArea-xg4t0Lzo.js.map → TextArea-n9HgwyJE.js.map} +1 -1
  366. package/dist/next/{TextArea-9AvILSCY.cjs → TextArea-rwkjK4Rf.cjs} +25 -25
  367. package/dist/next/{TextArea-9AvILSCY.cjs.map → TextArea-rwkjK4Rf.cjs.map} +1 -1
  368. package/dist/next/TextArea.cjs.js +1 -1
  369. package/dist/next/TextArea.js +1 -1
  370. package/dist/next/{TextInput-D9dzooMU.js → TextInput-ChmIMzj2.js} +26 -26
  371. package/dist/next/{TextInput-D9dzooMU.js.map → TextInput-ChmIMzj2.js.map} +1 -1
  372. package/dist/next/{TextInput-Cr0WjibW.cjs → TextInput-Z2izAjJj.cjs} +26 -26
  373. package/dist/next/{TextInput-Cr0WjibW.cjs.map → TextInput-Z2izAjJj.cjs.map} +1 -1
  374. package/dist/next/TextInput.cjs.js +1 -1
  375. package/dist/next/TextInput.js +1 -1
  376. package/dist/next/{Timeline-DXSXZumg.cjs → Timeline-3bNOgI6C.cjs} +28 -28
  377. package/dist/next/{Timeline-DXSXZumg.cjs.map → Timeline-3bNOgI6C.cjs.map} +1 -1
  378. package/dist/next/{Timeline-Cg0FWWVc.js → Timeline-9947mxJO.js} +28 -28
  379. package/dist/next/{Timeline-Cg0FWWVc.js.map → Timeline-9947mxJO.js.map} +1 -1
  380. package/dist/next/Timeline.cjs.js +1 -1
  381. package/dist/next/Timeline.js +1 -1
  382. package/dist/next/{Toggle-CnpONDwl.js → Toggle-C60HtU15.js} +30 -30
  383. package/dist/next/{Toggle-CnpONDwl.js.map → Toggle-C60HtU15.js.map} +1 -1
  384. package/dist/next/{Toggle-BNK7uC_N.cjs → Toggle-XcxNC4zl.cjs} +30 -30
  385. package/dist/next/{Toggle-BNK7uC_N.cjs.map → Toggle-XcxNC4zl.cjs.map} +1 -1
  386. package/dist/next/Toggle.cjs.js +1 -1
  387. package/dist/next/Toggle.js +1 -1
  388. package/dist/next/{Toolbar-DHUozW08.cjs → Toolbar-C45B_I44.cjs} +35 -35
  389. package/dist/next/{Toolbar-DHUozW08.cjs.map → Toolbar-C45B_I44.cjs.map} +1 -1
  390. package/dist/next/{Toolbar-007Q19jl.js → Toolbar-Dq1qqx4P.js} +35 -35
  391. package/dist/next/{Toolbar-007Q19jl.js.map → Toolbar-Dq1qqx4P.js.map} +1 -1
  392. package/dist/next/Toolbar.cjs.js +1 -1
  393. package/dist/next/Toolbar.js +1 -1
  394. package/dist/next/{Tooltip-2XEuDIAw.js → Tooltip-BHIA1zE1.js} +39 -39
  395. package/dist/next/{Tooltip-2XEuDIAw.js.map → Tooltip-BHIA1zE1.js.map} +1 -1
  396. package/dist/next/{Tooltip-FCqrcC7D.cjs → Tooltip-BXd5FXXv.cjs} +39 -39
  397. package/dist/next/{Tooltip-FCqrcC7D.cjs.map → Tooltip-BXd5FXXv.cjs.map} +1 -1
  398. package/dist/next/Tooltip.cjs.js +1 -1
  399. package/dist/next/Tooltip.js +1 -1
  400. package/dist/next/{style.css → boreal-ui.css} +9636 -9636
  401. package/dist/next/{image-VX9Ty9NQ.cjs → image-A4nTeRaX.cjs} +1079 -1025
  402. package/dist/next/image-A4nTeRaX.cjs.map +1 -0
  403. package/dist/next/{image-CEz9QtOW.js → image-BBS8QO15.js} +1083 -1029
  404. package/dist/next/image-BBS8QO15.js.map +1 -0
  405. package/dist/next/index.cjs.js +69 -69
  406. package/dist/next/index.js +69 -69
  407. package/dist/next/link-CxWP3aXr.js +3829 -0
  408. package/dist/next/link-CxWP3aXr.js.map +1 -0
  409. package/dist/next/link-lNk_lOdS.cjs +3828 -0
  410. package/dist/next/link-lNk_lOdS.cjs.map +1 -0
  411. package/dist/next/navigation-CZU71Pmb.cjs +2443 -0
  412. package/dist/next/navigation-CZU71Pmb.cjs.map +1 -0
  413. package/dist/next/navigation-DxXFNXZM.js +2444 -0
  414. package/dist/next/navigation-DxXFNXZM.js.map +1 -0
  415. package/dist/tsconfig.build.tsbuildinfo +1 -1
  416. package/dist/types/components/Badge/BadgeBase.d.ts.map +1 -1
  417. package/dist/types/components/Card/CardBase.d.ts.map +1 -1
  418. package/dist/types/components/FormGroup/FormGroupBase.d.ts.map +1 -1
  419. package/dist/types/components/MarkdownRenderer/MarkdownRendererBase.d.ts.map +1 -1
  420. package/dist/types/components/MetricBox/MetricBoxBase.d.ts.map +1 -1
  421. package/package.json +12 -11
  422. package/dist/core/Badge-DOn6E2bS.cjs.map +0 -1
  423. package/dist/core/Badge-Dpjq6lUF.js.map +0 -1
  424. package/dist/core/Card-D-GQwaUJ.js.map +0 -1
  425. package/dist/core/Card-DftqfPue.cjs.map +0 -1
  426. package/dist/core/Footer-DMOA1W7N.cjs.map +0 -1
  427. package/dist/core/Footer-zO4RGjCl.js.map +0 -1
  428. package/dist/core/FormGroup-C2TWC17P.cjs.map +0 -1
  429. package/dist/core/FormGroup-tSK_NN0-.js.map +0 -1
  430. package/dist/core/IconButton-CR9bTZoJ.cjs.map +0 -1
  431. package/dist/core/IconButton-_lxTppua.js.map +0 -1
  432. package/dist/core/MarkdownRenderer-B1LmmpZm.js.map +0 -1
  433. package/dist/core/MarkdownRenderer-LUXCa_a8.cjs.map +0 -1
  434. package/dist/core/MetricBox-BcOdQM-l.cjs.map +0 -1
  435. package/dist/core/MetricBox-Dh911MS2.js.map +0 -1
  436. package/dist/core/Spinner-CEIk_hpT.cjs.map +0 -1
  437. package/dist/core/Spinner-D81UG24n.js.map +0 -1
  438. package/dist/next/Badge-DbmM5wGc.cjs.map +0 -1
  439. package/dist/next/Badge-k6Dk5S_p.js.map +0 -1
  440. package/dist/next/Card-BFmGnvxN.cjs.map +0 -1
  441. package/dist/next/Card-DhxLw6XZ.js.map +0 -1
  442. package/dist/next/Footer-BSEbf6CL.js.map +0 -1
  443. package/dist/next/Footer-DAZLz11H.cjs.map +0 -1
  444. package/dist/next/FormGroup-6Ss6pNqV.cjs.map +0 -1
  445. package/dist/next/FormGroup-DbUqgg_b.js.map +0 -1
  446. package/dist/next/IconButton-VSz8qAIg.cjs.map +0 -1
  447. package/dist/next/IconButton-qQljwBB2.js.map +0 -1
  448. package/dist/next/MetricBox-BylPOvoO.cjs.map +0 -1
  449. package/dist/next/MetricBox-Dl3iruBZ.js.map +0 -1
  450. package/dist/next/Spinner-B89FhxVt.cjs.map +0 -1
  451. package/dist/next/Spinner-ChiOXzru.js.map +0 -1
  452. package/dist/next/image-CEz9QtOW.js.map +0 -1
  453. package/dist/next/image-VX9Ty9NQ.cjs.map +0 -1
  454. package/dist/next/link-Bik5xH00.js +0 -2878
  455. package/dist/next/link-Bik5xH00.js.map +0 -1
  456. package/dist/next/link-hxAaLm0Q.cjs +0 -2877
  457. package/dist/next/link-hxAaLm0Q.cjs.map +0 -1
  458. package/dist/next/navigation-DTwYCgCL.js +0 -1991
  459. package/dist/next/navigation-DTwYCgCL.js.map +0 -1
  460. package/dist/next/navigation-m012syo9.cjs +0 -1990
  461. package/dist/next/navigation-m012syo9.cjs.map +0 -1
@@ -1,2878 +0,0 @@
1
- import require$$2 from "react/jsx-runtime";
2
- import React from "react";
3
- function getDefaultExportFromCjs(x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
- }
6
- var _interop_require_default$1 = {};
7
- function _interop_require_default(obj) {
8
- return obj && obj.__esModule ? obj : { default: obj };
9
- }
10
- _interop_require_default$1._ = _interop_require_default;
11
- var _interop_require_wildcard$1 = {};
12
- function _getRequireWildcardCache(nodeInterop) {
13
- if (typeof WeakMap !== "function") return null;
14
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
15
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
16
- return (_getRequireWildcardCache = function(nodeInterop2) {
17
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
18
- })(nodeInterop);
19
- }
20
- function _interop_require_wildcard(obj, nodeInterop) {
21
- if (!nodeInterop && obj && obj.__esModule) return obj;
22
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
23
- var cache = _getRequireWildcardCache(nodeInterop);
24
- if (cache && cache.has(obj)) return cache.get(obj);
25
- var newObj = { __proto__: null };
26
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
27
- for (var key in obj) {
28
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
29
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
30
- if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
31
- else newObj[key] = obj[key];
32
- }
33
- }
34
- newObj.default = obj;
35
- if (cache) cache.set(obj, newObj);
36
- return newObj;
37
- }
38
- _interop_require_wildcard$1._ = _interop_require_wildcard;
39
- var routerContext_sharedRuntime = {};
40
- var hasRequiredRouterContext_sharedRuntime;
41
- function requireRouterContext_sharedRuntime() {
42
- if (hasRequiredRouterContext_sharedRuntime) return routerContext_sharedRuntime;
43
- hasRequiredRouterContext_sharedRuntime = 1;
44
- (function(exports) {
45
- Object.defineProperty(exports, "__esModule", {
46
- value: true
47
- });
48
- Object.defineProperty(exports, "RouterContext", {
49
- enumerable: true,
50
- get: function() {
51
- return RouterContext;
52
- }
53
- });
54
- const _interop_require_default2 = _interop_require_default$1;
55
- const _react = /* @__PURE__ */ _interop_require_default2._(React);
56
- const RouterContext = _react.default.createContext(null);
57
- if (process.env.NODE_ENV !== "production") {
58
- RouterContext.displayName = "RouterContext";
59
- }
60
- })(routerContext_sharedRuntime);
61
- return routerContext_sharedRuntime;
62
- }
63
- var useMergedRef = { exports: {} };
64
- var hasRequiredUseMergedRef;
65
- function requireUseMergedRef() {
66
- if (hasRequiredUseMergedRef) return useMergedRef.exports;
67
- hasRequiredUseMergedRef = 1;
68
- (function(module, exports) {
69
- Object.defineProperty(exports, "__esModule", {
70
- value: true
71
- });
72
- Object.defineProperty(exports, "useMergedRef", {
73
- enumerable: true,
74
- get: function() {
75
- return useMergedRef2;
76
- }
77
- });
78
- const _react = React;
79
- function useMergedRef2(refA, refB) {
80
- const cleanupA = (0, _react.useRef)(null);
81
- const cleanupB = (0, _react.useRef)(null);
82
- return (0, _react.useCallback)((current) => {
83
- if (current === null) {
84
- const cleanupFnA = cleanupA.current;
85
- if (cleanupFnA) {
86
- cleanupA.current = null;
87
- cleanupFnA();
88
- }
89
- const cleanupFnB = cleanupB.current;
90
- if (cleanupFnB) {
91
- cleanupB.current = null;
92
- cleanupFnB();
93
- }
94
- } else {
95
- if (refA) {
96
- cleanupA.current = applyRef(refA, current);
97
- }
98
- if (refB) {
99
- cleanupB.current = applyRef(refB, current);
100
- }
101
- }
102
- }, [
103
- refA,
104
- refB
105
- ]);
106
- }
107
- function applyRef(refA, current) {
108
- if (typeof refA === "function") {
109
- const cleanup = refA(current);
110
- if (typeof cleanup === "function") {
111
- return cleanup;
112
- } else {
113
- return () => refA(null);
114
- }
115
- } else {
116
- refA.current = current;
117
- return () => {
118
- refA.current = null;
119
- };
120
- }
121
- }
122
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
123
- Object.defineProperty(exports.default, "__esModule", { value: true });
124
- Object.assign(exports.default, exports);
125
- module.exports = exports.default;
126
- }
127
- })(useMergedRef, useMergedRef.exports);
128
- return useMergedRef.exports;
129
- }
130
- var link$1 = { exports: {} };
131
- var resolveHref = { exports: {} };
132
- var querystring = {};
133
- var hasRequiredQuerystring;
134
- function requireQuerystring() {
135
- if (hasRequiredQuerystring) return querystring;
136
- hasRequiredQuerystring = 1;
137
- (function(exports) {
138
- Object.defineProperty(exports, "__esModule", {
139
- value: true
140
- });
141
- function _export(target, all) {
142
- for (var name in all) Object.defineProperty(target, name, {
143
- enumerable: true,
144
- get: all[name]
145
- });
146
- }
147
- _export(exports, {
148
- assign: function() {
149
- return assign;
150
- },
151
- searchParamsToUrlQuery: function() {
152
- return searchParamsToUrlQuery;
153
- },
154
- urlQueryToSearchParams: function() {
155
- return urlQueryToSearchParams;
156
- }
157
- });
158
- function searchParamsToUrlQuery(searchParams) {
159
- const query = {};
160
- for (const [key, value] of searchParams.entries()) {
161
- const existing = query[key];
162
- if (typeof existing === "undefined") {
163
- query[key] = value;
164
- } else if (Array.isArray(existing)) {
165
- existing.push(value);
166
- } else {
167
- query[key] = [
168
- existing,
169
- value
170
- ];
171
- }
172
- }
173
- return query;
174
- }
175
- function stringifyUrlQueryParam(param) {
176
- if (typeof param === "string") {
177
- return param;
178
- }
179
- if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") {
180
- return String(param);
181
- } else {
182
- return "";
183
- }
184
- }
185
- function urlQueryToSearchParams(query) {
186
- const searchParams = new URLSearchParams();
187
- for (const [key, value] of Object.entries(query)) {
188
- if (Array.isArray(value)) {
189
- for (const item of value) {
190
- searchParams.append(key, stringifyUrlQueryParam(item));
191
- }
192
- } else {
193
- searchParams.set(key, stringifyUrlQueryParam(value));
194
- }
195
- }
196
- return searchParams;
197
- }
198
- function assign(target) {
199
- for (var _len = arguments.length, searchParamsList = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
200
- searchParamsList[_key - 1] = arguments[_key];
201
- }
202
- for (const searchParams of searchParamsList) {
203
- for (const key of searchParams.keys()) {
204
- target.delete(key);
205
- }
206
- for (const [key, value] of searchParams.entries()) {
207
- target.append(key, value);
208
- }
209
- }
210
- return target;
211
- }
212
- })(querystring);
213
- return querystring;
214
- }
215
- var formatUrl = {};
216
- var hasRequiredFormatUrl;
217
- function requireFormatUrl() {
218
- if (hasRequiredFormatUrl) return formatUrl;
219
- hasRequiredFormatUrl = 1;
220
- (function(exports) {
221
- Object.defineProperty(exports, "__esModule", {
222
- value: true
223
- });
224
- function _export(target, all) {
225
- for (var name in all) Object.defineProperty(target, name, {
226
- enumerable: true,
227
- get: all[name]
228
- });
229
- }
230
- _export(exports, {
231
- formatUrl: function() {
232
- return formatUrl2;
233
- },
234
- formatWithValidation: function() {
235
- return formatWithValidation;
236
- },
237
- urlObjectKeys: function() {
238
- return urlObjectKeys;
239
- }
240
- });
241
- const _interop_require_wildcard2 = _interop_require_wildcard$1;
242
- const _querystring = /* @__PURE__ */ _interop_require_wildcard2._(requireQuerystring());
243
- const slashedProtocols = /https?|ftp|gopher|file/;
244
- function formatUrl2(urlObj) {
245
- let { auth, hostname } = urlObj;
246
- let protocol = urlObj.protocol || "";
247
- let pathname = urlObj.pathname || "";
248
- let hash = urlObj.hash || "";
249
- let query = urlObj.query || "";
250
- let host = false;
251
- auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
252
- if (urlObj.host) {
253
- host = auth + urlObj.host;
254
- } else if (hostname) {
255
- host = auth + (~hostname.indexOf(":") ? "[" + hostname + "]" : hostname);
256
- if (urlObj.port) {
257
- host += ":" + urlObj.port;
258
- }
259
- }
260
- if (query && typeof query === "object") {
261
- query = String(_querystring.urlQueryToSearchParams(query));
262
- }
263
- let search = urlObj.search || query && "?" + query || "";
264
- if (protocol && !protocol.endsWith(":")) protocol += ":";
265
- if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
266
- host = "//" + (host || "");
267
- if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
268
- } else if (!host) {
269
- host = "";
270
- }
271
- if (hash && hash[0] !== "#") hash = "#" + hash;
272
- if (search && search[0] !== "?") search = "?" + search;
273
- pathname = pathname.replace(/[?#]/g, encodeURIComponent);
274
- search = search.replace("#", "%23");
275
- return "" + protocol + host + pathname + search + hash;
276
- }
277
- const urlObjectKeys = [
278
- "auth",
279
- "hash",
280
- "host",
281
- "hostname",
282
- "href",
283
- "path",
284
- "pathname",
285
- "port",
286
- "protocol",
287
- "query",
288
- "search",
289
- "slashes"
290
- ];
291
- function formatWithValidation(url) {
292
- if (process.env.NODE_ENV === "development") {
293
- if (url !== null && typeof url === "object") {
294
- Object.keys(url).forEach((key) => {
295
- if (!urlObjectKeys.includes(key)) {
296
- console.warn("Unknown key passed via urlObject into url.format: " + key);
297
- }
298
- });
299
- }
300
- }
301
- return formatUrl2(url);
302
- }
303
- })(formatUrl);
304
- return formatUrl;
305
- }
306
- var omit = {};
307
- var hasRequiredOmit;
308
- function requireOmit() {
309
- if (hasRequiredOmit) return omit;
310
- hasRequiredOmit = 1;
311
- (function(exports) {
312
- Object.defineProperty(exports, "__esModule", {
313
- value: true
314
- });
315
- Object.defineProperty(exports, "omit", {
316
- enumerable: true,
317
- get: function() {
318
- return omit2;
319
- }
320
- });
321
- function omit2(object, keys) {
322
- const omitted = {};
323
- Object.keys(object).forEach((key) => {
324
- if (!keys.includes(key)) {
325
- omitted[key] = object[key];
326
- }
327
- });
328
- return omitted;
329
- }
330
- })(omit);
331
- return omit;
332
- }
333
- var utils$1 = {};
334
- var hasRequiredUtils$1;
335
- function requireUtils$1() {
336
- if (hasRequiredUtils$1) return utils$1;
337
- hasRequiredUtils$1 = 1;
338
- (function(exports) {
339
- Object.defineProperty(exports, "__esModule", {
340
- value: true
341
- });
342
- function _export(target, all) {
343
- for (var name in all) Object.defineProperty(target, name, {
344
- enumerable: true,
345
- get: all[name]
346
- });
347
- }
348
- _export(exports, {
349
- DecodeError: function() {
350
- return DecodeError;
351
- },
352
- MiddlewareNotFoundError: function() {
353
- return MiddlewareNotFoundError;
354
- },
355
- MissingStaticPage: function() {
356
- return MissingStaticPage;
357
- },
358
- NormalizeError: function() {
359
- return NormalizeError;
360
- },
361
- PageNotFoundError: function() {
362
- return PageNotFoundError;
363
- },
364
- SP: function() {
365
- return SP;
366
- },
367
- ST: function() {
368
- return ST;
369
- },
370
- WEB_VITALS: function() {
371
- return WEB_VITALS;
372
- },
373
- execOnce: function() {
374
- return execOnce;
375
- },
376
- getDisplayName: function() {
377
- return getDisplayName;
378
- },
379
- getLocationOrigin: function() {
380
- return getLocationOrigin;
381
- },
382
- getURL: function() {
383
- return getURL;
384
- },
385
- isAbsoluteUrl: function() {
386
- return isAbsoluteUrl;
387
- },
388
- isResSent: function() {
389
- return isResSent;
390
- },
391
- loadGetInitialProps: function() {
392
- return loadGetInitialProps;
393
- },
394
- normalizeRepeatedSlashes: function() {
395
- return normalizeRepeatedSlashes;
396
- },
397
- stringifyError: function() {
398
- return stringifyError;
399
- }
400
- });
401
- const WEB_VITALS = [
402
- "CLS",
403
- "FCP",
404
- "FID",
405
- "INP",
406
- "LCP",
407
- "TTFB"
408
- ];
409
- function execOnce(fn) {
410
- let used = false;
411
- let result;
412
- return function() {
413
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
414
- args[_key] = arguments[_key];
415
- }
416
- if (!used) {
417
- used = true;
418
- result = fn(...args);
419
- }
420
- return result;
421
- };
422
- }
423
- const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
424
- const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
425
- function getLocationOrigin() {
426
- const { protocol, hostname, port } = window.location;
427
- return protocol + "//" + hostname + (port ? ":" + port : "");
428
- }
429
- function getURL() {
430
- const { href } = window.location;
431
- const origin = getLocationOrigin();
432
- return href.substring(origin.length);
433
- }
434
- function getDisplayName(Component) {
435
- return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
436
- }
437
- function isResSent(res) {
438
- return res.finished || res.headersSent;
439
- }
440
- function normalizeRepeatedSlashes(url) {
441
- const urlParts = url.split("?");
442
- const urlNoQuery = urlParts[0];
443
- return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?" + urlParts.slice(1).join("?") : "");
444
- }
445
- async function loadGetInitialProps(App, ctx) {
446
- if (process.env.NODE_ENV !== "production") {
447
- var _App_prototype;
448
- if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) {
449
- const message = '"' + getDisplayName(App) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
450
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
451
- value: "E394",
452
- enumerable: false,
453
- configurable: true
454
- });
455
- }
456
- }
457
- const res = ctx.res || ctx.ctx && ctx.ctx.res;
458
- if (!App.getInitialProps) {
459
- if (ctx.ctx && ctx.Component) {
460
- return {
461
- pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
462
- };
463
- }
464
- return {};
465
- }
466
- const props = await App.getInitialProps(ctx);
467
- if (res && isResSent(res)) {
468
- return props;
469
- }
470
- if (!props) {
471
- const message = '"' + getDisplayName(App) + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';
472
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
473
- value: "E394",
474
- enumerable: false,
475
- configurable: true
476
- });
477
- }
478
- if (process.env.NODE_ENV !== "production") {
479
- if (Object.keys(props).length === 0 && !ctx.ctx) {
480
- console.warn("" + getDisplayName(App) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps");
481
- }
482
- }
483
- return props;
484
- }
485
- const SP = typeof performance !== "undefined";
486
- const ST = SP && [
487
- "mark",
488
- "measure",
489
- "getEntriesByName"
490
- ].every((method) => typeof performance[method] === "function");
491
- class DecodeError extends Error {
492
- }
493
- class NormalizeError extends Error {
494
- }
495
- class PageNotFoundError extends Error {
496
- constructor(page) {
497
- super();
498
- this.code = "ENOENT";
499
- this.name = "PageNotFoundError";
500
- this.message = "Cannot find module for page: " + page;
501
- }
502
- }
503
- class MissingStaticPage extends Error {
504
- constructor(page, message) {
505
- super();
506
- this.message = "Failed to load static file for page: " + page + " " + message;
507
- }
508
- }
509
- class MiddlewareNotFoundError extends Error {
510
- constructor() {
511
- super();
512
- this.code = "ENOENT";
513
- this.message = "Cannot find the middleware module";
514
- }
515
- }
516
- function stringifyError(error) {
517
- return JSON.stringify({
518
- message: error.message,
519
- stack: error.stack
520
- });
521
- }
522
- })(utils$1);
523
- return utils$1;
524
- }
525
- var normalizeTrailingSlash = { exports: {} };
526
- var removeTrailingSlash = {};
527
- var hasRequiredRemoveTrailingSlash;
528
- function requireRemoveTrailingSlash() {
529
- if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash;
530
- hasRequiredRemoveTrailingSlash = 1;
531
- (function(exports) {
532
- Object.defineProperty(exports, "__esModule", {
533
- value: true
534
- });
535
- Object.defineProperty(exports, "removeTrailingSlash", {
536
- enumerable: true,
537
- get: function() {
538
- return removeTrailingSlash2;
539
- }
540
- });
541
- function removeTrailingSlash2(route) {
542
- return route.replace(/\/$/, "") || "/";
543
- }
544
- })(removeTrailingSlash);
545
- return removeTrailingSlash;
546
- }
547
- var parsePath = {};
548
- var hasRequiredParsePath;
549
- function requireParsePath() {
550
- if (hasRequiredParsePath) return parsePath;
551
- hasRequiredParsePath = 1;
552
- (function(exports) {
553
- Object.defineProperty(exports, "__esModule", {
554
- value: true
555
- });
556
- Object.defineProperty(exports, "parsePath", {
557
- enumerable: true,
558
- get: function() {
559
- return parsePath2;
560
- }
561
- });
562
- function parsePath2(path) {
563
- const hashIndex = path.indexOf("#");
564
- const queryIndex = path.indexOf("?");
565
- const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
566
- if (hasQuery || hashIndex > -1) {
567
- return {
568
- pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
569
- query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
570
- hash: hashIndex > -1 ? path.slice(hashIndex) : ""
571
- };
572
- }
573
- return {
574
- pathname: path,
575
- query: "",
576
- hash: ""
577
- };
578
- }
579
- })(parsePath);
580
- return parsePath;
581
- }
582
- var hasRequiredNormalizeTrailingSlash;
583
- function requireNormalizeTrailingSlash() {
584
- if (hasRequiredNormalizeTrailingSlash) return normalizeTrailingSlash.exports;
585
- hasRequiredNormalizeTrailingSlash = 1;
586
- (function(module, exports) {
587
- Object.defineProperty(exports, "__esModule", {
588
- value: true
589
- });
590
- Object.defineProperty(exports, "normalizePathTrailingSlash", {
591
- enumerable: true,
592
- get: function() {
593
- return normalizePathTrailingSlash;
594
- }
595
- });
596
- const _removetrailingslash = requireRemoveTrailingSlash();
597
- const _parsepath = requireParsePath();
598
- const normalizePathTrailingSlash = (path) => {
599
- if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
600
- return path;
601
- }
602
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
603
- if (process.env.__NEXT_TRAILING_SLASH) {
604
- if (/\.[^/]+\/?$/.test(pathname)) {
605
- return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
606
- } else if (pathname.endsWith("/")) {
607
- return "" + pathname + query + hash;
608
- } else {
609
- return pathname + "/" + query + hash;
610
- }
611
- }
612
- return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
613
- };
614
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
615
- Object.defineProperty(exports.default, "__esModule", { value: true });
616
- Object.assign(exports.default, exports);
617
- module.exports = exports.default;
618
- }
619
- })(normalizeTrailingSlash, normalizeTrailingSlash.exports);
620
- return normalizeTrailingSlash.exports;
621
- }
622
- var isLocalUrl = {};
623
- var hasBasePath = { exports: {} };
624
- var pathHasPrefix = {};
625
- var hasRequiredPathHasPrefix;
626
- function requirePathHasPrefix() {
627
- if (hasRequiredPathHasPrefix) return pathHasPrefix;
628
- hasRequiredPathHasPrefix = 1;
629
- (function(exports) {
630
- Object.defineProperty(exports, "__esModule", {
631
- value: true
632
- });
633
- Object.defineProperty(exports, "pathHasPrefix", {
634
- enumerable: true,
635
- get: function() {
636
- return pathHasPrefix2;
637
- }
638
- });
639
- const _parsepath = requireParsePath();
640
- function pathHasPrefix2(path, prefix) {
641
- if (typeof path !== "string") {
642
- return false;
643
- }
644
- const { pathname } = (0, _parsepath.parsePath)(path);
645
- return pathname === prefix || pathname.startsWith(prefix + "/");
646
- }
647
- })(pathHasPrefix);
648
- return pathHasPrefix;
649
- }
650
- var hasRequiredHasBasePath;
651
- function requireHasBasePath() {
652
- if (hasRequiredHasBasePath) return hasBasePath.exports;
653
- hasRequiredHasBasePath = 1;
654
- (function(module, exports) {
655
- Object.defineProperty(exports, "__esModule", {
656
- value: true
657
- });
658
- Object.defineProperty(exports, "hasBasePath", {
659
- enumerable: true,
660
- get: function() {
661
- return hasBasePath2;
662
- }
663
- });
664
- const _pathhasprefix = requirePathHasPrefix();
665
- const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
666
- function hasBasePath2(path) {
667
- return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
668
- }
669
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
670
- Object.defineProperty(exports.default, "__esModule", { value: true });
671
- Object.assign(exports.default, exports);
672
- module.exports = exports.default;
673
- }
674
- })(hasBasePath, hasBasePath.exports);
675
- return hasBasePath.exports;
676
- }
677
- var hasRequiredIsLocalUrl;
678
- function requireIsLocalUrl() {
679
- if (hasRequiredIsLocalUrl) return isLocalUrl;
680
- hasRequiredIsLocalUrl = 1;
681
- (function(exports) {
682
- Object.defineProperty(exports, "__esModule", {
683
- value: true
684
- });
685
- Object.defineProperty(exports, "isLocalURL", {
686
- enumerable: true,
687
- get: function() {
688
- return isLocalURL;
689
- }
690
- });
691
- const _utils = requireUtils$1();
692
- const _hasbasepath = requireHasBasePath();
693
- function isLocalURL(url) {
694
- if (!(0, _utils.isAbsoluteUrl)(url)) return true;
695
- try {
696
- const locationOrigin = (0, _utils.getLocationOrigin)();
697
- const resolved = new URL(url, locationOrigin);
698
- return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
699
- } catch (_) {
700
- return false;
701
- }
702
- }
703
- })(isLocalUrl);
704
- return isLocalUrl;
705
- }
706
- var utils = {};
707
- var sortedRoutes = {};
708
- var hasRequiredSortedRoutes;
709
- function requireSortedRoutes() {
710
- if (hasRequiredSortedRoutes) return sortedRoutes;
711
- hasRequiredSortedRoutes = 1;
712
- (function(exports) {
713
- Object.defineProperty(exports, "__esModule", {
714
- value: true
715
- });
716
- function _export(target, all) {
717
- for (var name in all) Object.defineProperty(target, name, {
718
- enumerable: true,
719
- get: all[name]
720
- });
721
- }
722
- _export(exports, {
723
- getSortedRouteObjects: function() {
724
- return getSortedRouteObjects;
725
- },
726
- getSortedRoutes: function() {
727
- return getSortedRoutes;
728
- }
729
- });
730
- class UrlNode {
731
- insert(urlPath) {
732
- this._insert(urlPath.split("/").filter(Boolean), [], false);
733
- }
734
- smoosh() {
735
- return this._smoosh();
736
- }
737
- _smoosh(prefix) {
738
- if (prefix === void 0) prefix = "/";
739
- const childrenPaths = [
740
- ...this.children.keys()
741
- ].sort();
742
- if (this.slugName !== null) {
743
- childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
744
- }
745
- if (this.restSlugName !== null) {
746
- childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
747
- }
748
- if (this.optionalRestSlugName !== null) {
749
- childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
750
- }
751
- const routes = childrenPaths.map((c) => this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr) => [
752
- ...prev,
753
- ...curr
754
- ], []);
755
- if (this.slugName !== null) {
756
- routes.push(...this.children.get("[]")._smoosh(prefix + "[" + this.slugName + "]/"));
757
- }
758
- if (!this.placeholder) {
759
- const r = prefix === "/" ? "/" : prefix.slice(0, -1);
760
- if (this.optionalRestSlugName != null) {
761
- 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", {
762
- value: "E458",
763
- enumerable: false,
764
- configurable: true
765
- });
766
- }
767
- routes.unshift(r);
768
- }
769
- if (this.restSlugName !== null) {
770
- routes.push(...this.children.get("[...]")._smoosh(prefix + "[..." + this.restSlugName + "]/"));
771
- }
772
- if (this.optionalRestSlugName !== null) {
773
- routes.push(...this.children.get("[[...]]")._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
774
- }
775
- return routes;
776
- }
777
- _insert(urlPaths, slugNames, isCatchAll) {
778
- if (urlPaths.length === 0) {
779
- this.placeholder = false;
780
- return;
781
- }
782
- if (isCatchAll) {
783
- throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
784
- value: "E392",
785
- enumerable: false,
786
- configurable: true
787
- });
788
- }
789
- let nextSegment = urlPaths[0];
790
- if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
791
- let handleSlug = function(previousSlug, nextSlug) {
792
- if (previousSlug !== null) {
793
- if (previousSlug !== nextSlug) {
794
- throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
795
- value: "E337",
796
- enumerable: false,
797
- configurable: true
798
- });
799
- }
800
- }
801
- slugNames.forEach((slug) => {
802
- if (slug === nextSlug) {
803
- throw Object.defineProperty(new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
804
- value: "E247",
805
- enumerable: false,
806
- configurable: true
807
- });
808
- }
809
- if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
810
- 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", {
811
- value: "E499",
812
- enumerable: false,
813
- configurable: true
814
- });
815
- }
816
- });
817
- slugNames.push(nextSlug);
818
- };
819
- let segmentName = nextSegment.slice(1, -1);
820
- let isOptional = false;
821
- if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
822
- segmentName = segmentName.slice(1, -1);
823
- isOptional = true;
824
- }
825
- if (segmentName.startsWith("…")) {
826
- throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
827
- value: "E147",
828
- enumerable: false,
829
- configurable: true
830
- });
831
- }
832
- if (segmentName.startsWith("...")) {
833
- segmentName = segmentName.substring(3);
834
- isCatchAll = true;
835
- }
836
- if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
837
- throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
838
- value: "E421",
839
- enumerable: false,
840
- configurable: true
841
- });
842
- }
843
- if (segmentName.startsWith(".")) {
844
- throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
845
- value: "E288",
846
- enumerable: false,
847
- configurable: true
848
- });
849
- }
850
- if (isCatchAll) {
851
- if (isOptional) {
852
- if (this.restSlugName != null) {
853
- 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", {
854
- value: "E299",
855
- enumerable: false,
856
- configurable: true
857
- });
858
- }
859
- handleSlug(this.optionalRestSlugName, segmentName);
860
- this.optionalRestSlugName = segmentName;
861
- nextSegment = "[[...]]";
862
- } else {
863
- if (this.optionalRestSlugName != null) {
864
- 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", {
865
- value: "E300",
866
- enumerable: false,
867
- configurable: true
868
- });
869
- }
870
- handleSlug(this.restSlugName, segmentName);
871
- this.restSlugName = segmentName;
872
- nextSegment = "[...]";
873
- }
874
- } else {
875
- if (isOptional) {
876
- throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
877
- value: "E435",
878
- enumerable: false,
879
- configurable: true
880
- });
881
- }
882
- handleSlug(this.slugName, segmentName);
883
- this.slugName = segmentName;
884
- nextSegment = "[]";
885
- }
886
- }
887
- if (!this.children.has(nextSegment)) {
888
- this.children.set(nextSegment, new UrlNode());
889
- }
890
- this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
891
- }
892
- constructor() {
893
- this.placeholder = true;
894
- this.children = /* @__PURE__ */ new Map();
895
- this.slugName = null;
896
- this.restSlugName = null;
897
- this.optionalRestSlugName = null;
898
- }
899
- }
900
- function getSortedRoutes(normalizedPages) {
901
- const root = new UrlNode();
902
- normalizedPages.forEach((pagePath) => root.insert(pagePath));
903
- return root.smoosh();
904
- }
905
- function getSortedRouteObjects(objects, getter) {
906
- const indexes = {};
907
- const pathnames = [];
908
- for (let i = 0; i < objects.length; i++) {
909
- const pathname = getter(objects[i]);
910
- indexes[pathname] = i;
911
- pathnames[i] = pathname;
912
- }
913
- const sorted = getSortedRoutes(pathnames);
914
- return sorted.map((pathname) => objects[indexes[pathname]]);
915
- }
916
- })(sortedRoutes);
917
- return sortedRoutes;
918
- }
919
- var isDynamic = {};
920
- var interceptionRoutes = {};
921
- var appPaths = {};
922
- var ensureLeadingSlash = {};
923
- var hasRequiredEnsureLeadingSlash;
924
- function requireEnsureLeadingSlash() {
925
- if (hasRequiredEnsureLeadingSlash) return ensureLeadingSlash;
926
- hasRequiredEnsureLeadingSlash = 1;
927
- (function(exports) {
928
- Object.defineProperty(exports, "__esModule", {
929
- value: true
930
- });
931
- Object.defineProperty(exports, "ensureLeadingSlash", {
932
- enumerable: true,
933
- get: function() {
934
- return ensureLeadingSlash2;
935
- }
936
- });
937
- function ensureLeadingSlash2(path) {
938
- return path.startsWith("/") ? path : "/" + path;
939
- }
940
- })(ensureLeadingSlash);
941
- return ensureLeadingSlash;
942
- }
943
- var segment = {};
944
- (function(exports) {
945
- Object.defineProperty(exports, "__esModule", {
946
- value: true
947
- });
948
- function _export(target, all) {
949
- for (var name in all) Object.defineProperty(target, name, {
950
- enumerable: true,
951
- get: all[name]
952
- });
953
- }
954
- _export(exports, {
955
- DEFAULT_SEGMENT_KEY: function() {
956
- return DEFAULT_SEGMENT_KEY;
957
- },
958
- PAGE_SEGMENT_KEY: function() {
959
- return PAGE_SEGMENT_KEY;
960
- },
961
- addSearchParamsIfPageSegment: function() {
962
- return addSearchParamsIfPageSegment;
963
- },
964
- isGroupSegment: function() {
965
- return isGroupSegment;
966
- },
967
- isParallelRouteSegment: function() {
968
- return isParallelRouteSegment;
969
- }
970
- });
971
- function isGroupSegment(segment2) {
972
- return segment2[0] === "(" && segment2.endsWith(")");
973
- }
974
- function isParallelRouteSegment(segment2) {
975
- return segment2.startsWith("@") && segment2 !== "@children";
976
- }
977
- function addSearchParamsIfPageSegment(segment2, searchParams) {
978
- const isPageSegment = segment2.includes(PAGE_SEGMENT_KEY);
979
- if (isPageSegment) {
980
- const stringifiedQuery = JSON.stringify(searchParams);
981
- return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
982
- }
983
- return segment2;
984
- }
985
- const PAGE_SEGMENT_KEY = "__PAGE__";
986
- const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
987
- })(segment);
988
- var hasRequiredAppPaths;
989
- function requireAppPaths() {
990
- if (hasRequiredAppPaths) return appPaths;
991
- hasRequiredAppPaths = 1;
992
- (function(exports) {
993
- Object.defineProperty(exports, "__esModule", {
994
- value: true
995
- });
996
- function _export(target, all) {
997
- for (var name in all) Object.defineProperty(target, name, {
998
- enumerable: true,
999
- get: all[name]
1000
- });
1001
- }
1002
- _export(exports, {
1003
- normalizeAppPath: function() {
1004
- return normalizeAppPath;
1005
- },
1006
- normalizeRscURL: function() {
1007
- return normalizeRscURL;
1008
- }
1009
- });
1010
- const _ensureleadingslash = requireEnsureLeadingSlash();
1011
- const _segment = segment;
1012
- function normalizeAppPath(route) {
1013
- return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment2, index, segments) => {
1014
- if (!segment2) {
1015
- return pathname;
1016
- }
1017
- if ((0, _segment.isGroupSegment)(segment2)) {
1018
- return pathname;
1019
- }
1020
- if (segment2[0] === "@") {
1021
- return pathname;
1022
- }
1023
- if ((segment2 === "page" || segment2 === "route") && index === segments.length - 1) {
1024
- return pathname;
1025
- }
1026
- return pathname + "/" + segment2;
1027
- }, ""));
1028
- }
1029
- function normalizeRscURL(url) {
1030
- return url.replace(
1031
- /\.rsc($|\?)/,
1032
- // $1 ensures `?` is preserved
1033
- "$1"
1034
- );
1035
- }
1036
- })(appPaths);
1037
- return appPaths;
1038
- }
1039
- var hasRequiredInterceptionRoutes;
1040
- function requireInterceptionRoutes() {
1041
- if (hasRequiredInterceptionRoutes) return interceptionRoutes;
1042
- hasRequiredInterceptionRoutes = 1;
1043
- (function(exports) {
1044
- Object.defineProperty(exports, "__esModule", {
1045
- value: true
1046
- });
1047
- function _export(target, all) {
1048
- for (var name in all) Object.defineProperty(target, name, {
1049
- enumerable: true,
1050
- get: all[name]
1051
- });
1052
- }
1053
- _export(exports, {
1054
- INTERCEPTION_ROUTE_MARKERS: function() {
1055
- return INTERCEPTION_ROUTE_MARKERS;
1056
- },
1057
- extractInterceptionRouteInformation: function() {
1058
- return extractInterceptionRouteInformation;
1059
- },
1060
- isInterceptionRouteAppPath: function() {
1061
- return isInterceptionRouteAppPath;
1062
- }
1063
- });
1064
- const _apppaths = requireAppPaths();
1065
- const INTERCEPTION_ROUTE_MARKERS = [
1066
- "(..)(..)",
1067
- "(.)",
1068
- "(..)",
1069
- "(...)"
1070
- ];
1071
- function isInterceptionRouteAppPath(path) {
1072
- return path.split("/").find((segment2) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m))) !== void 0;
1073
- }
1074
- function extractInterceptionRouteInformation(path) {
1075
- let interceptingRoute, marker, interceptedRoute;
1076
- for (const segment2 of path.split("/")) {
1077
- marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
1078
- if (marker) {
1079
- [interceptingRoute, interceptedRoute] = path.split(marker, 2);
1080
- break;
1081
- }
1082
- }
1083
- if (!interceptingRoute || !marker || !interceptedRoute) {
1084
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
1085
- value: "E269",
1086
- enumerable: false,
1087
- configurable: true
1088
- });
1089
- }
1090
- interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
1091
- switch (marker) {
1092
- case "(.)":
1093
- if (interceptingRoute === "/") {
1094
- interceptedRoute = "/" + interceptedRoute;
1095
- } else {
1096
- interceptedRoute = interceptingRoute + "/" + interceptedRoute;
1097
- }
1098
- break;
1099
- case "(..)":
1100
- if (interceptingRoute === "/") {
1101
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
1102
- value: "E207",
1103
- enumerable: false,
1104
- configurable: true
1105
- });
1106
- }
1107
- interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
1108
- break;
1109
- case "(...)":
1110
- interceptedRoute = "/" + interceptedRoute;
1111
- break;
1112
- case "(..)(..)":
1113
- const splitInterceptingRoute = interceptingRoute.split("/");
1114
- if (splitInterceptingRoute.length <= 2) {
1115
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
1116
- value: "E486",
1117
- enumerable: false,
1118
- configurable: true
1119
- });
1120
- }
1121
- interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
1122
- break;
1123
- default:
1124
- throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
1125
- value: "E112",
1126
- enumerable: false,
1127
- configurable: true
1128
- });
1129
- }
1130
- return {
1131
- interceptingRoute,
1132
- interceptedRoute
1133
- };
1134
- }
1135
- })(interceptionRoutes);
1136
- return interceptionRoutes;
1137
- }
1138
- var hasRequiredIsDynamic;
1139
- function requireIsDynamic() {
1140
- if (hasRequiredIsDynamic) return isDynamic;
1141
- hasRequiredIsDynamic = 1;
1142
- (function(exports) {
1143
- Object.defineProperty(exports, "__esModule", {
1144
- value: true
1145
- });
1146
- Object.defineProperty(exports, "isDynamicRoute", {
1147
- enumerable: true,
1148
- get: function() {
1149
- return isDynamicRoute;
1150
- }
1151
- });
1152
- const _interceptionroutes = requireInterceptionRoutes();
1153
- const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
1154
- const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
1155
- function isDynamicRoute(route, strict) {
1156
- if (strict === void 0) strict = true;
1157
- if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
1158
- route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
1159
- }
1160
- if (strict) {
1161
- return TEST_STRICT_ROUTE.test(route);
1162
- }
1163
- return TEST_ROUTE.test(route);
1164
- }
1165
- })(isDynamic);
1166
- return isDynamic;
1167
- }
1168
- var hasRequiredUtils;
1169
- function requireUtils() {
1170
- if (hasRequiredUtils) return utils;
1171
- hasRequiredUtils = 1;
1172
- (function(exports) {
1173
- Object.defineProperty(exports, "__esModule", {
1174
- value: true
1175
- });
1176
- function _export(target, all) {
1177
- for (var name in all) Object.defineProperty(target, name, {
1178
- enumerable: true,
1179
- get: all[name]
1180
- });
1181
- }
1182
- _export(exports, {
1183
- getSortedRouteObjects: function() {
1184
- return _sortedroutes.getSortedRouteObjects;
1185
- },
1186
- getSortedRoutes: function() {
1187
- return _sortedroutes.getSortedRoutes;
1188
- },
1189
- isDynamicRoute: function() {
1190
- return _isdynamic.isDynamicRoute;
1191
- }
1192
- });
1193
- const _sortedroutes = requireSortedRoutes();
1194
- const _isdynamic = requireIsDynamic();
1195
- })(utils);
1196
- return utils;
1197
- }
1198
- var interpolateAs = {};
1199
- var routeMatcher = {};
1200
- var hasRequiredRouteMatcher;
1201
- function requireRouteMatcher() {
1202
- if (hasRequiredRouteMatcher) return routeMatcher;
1203
- hasRequiredRouteMatcher = 1;
1204
- (function(exports) {
1205
- Object.defineProperty(exports, "__esModule", {
1206
- value: true
1207
- });
1208
- Object.defineProperty(exports, "getRouteMatcher", {
1209
- enumerable: true,
1210
- get: function() {
1211
- return getRouteMatcher;
1212
- }
1213
- });
1214
- const _utils = requireUtils$1();
1215
- function getRouteMatcher(param) {
1216
- let { re, groups } = param;
1217
- return (pathname) => {
1218
- const routeMatch = re.exec(pathname);
1219
- if (!routeMatch) return false;
1220
- const decode = (param2) => {
1221
- try {
1222
- return decodeURIComponent(param2);
1223
- } catch (e) {
1224
- throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
1225
- value: "E528",
1226
- enumerable: false,
1227
- configurable: true
1228
- });
1229
- }
1230
- };
1231
- const params = {};
1232
- for (const [key, group] of Object.entries(groups)) {
1233
- const match = routeMatch[group.pos];
1234
- if (match !== void 0) {
1235
- if (group.repeat) {
1236
- params[key] = match.split("/").map((entry) => decode(entry));
1237
- } else {
1238
- params[key] = decode(match);
1239
- }
1240
- }
1241
- }
1242
- return params;
1243
- };
1244
- }
1245
- })(routeMatcher);
1246
- return routeMatcher;
1247
- }
1248
- var routeRegex = {};
1249
- var constants = {};
1250
- var hasRequiredConstants;
1251
- function requireConstants() {
1252
- if (hasRequiredConstants) return constants;
1253
- hasRequiredConstants = 1;
1254
- (function(exports) {
1255
- Object.defineProperty(exports, "__esModule", {
1256
- value: true
1257
- });
1258
- function _export(target, all) {
1259
- for (var name in all) Object.defineProperty(target, name, {
1260
- enumerable: true,
1261
- get: all[name]
1262
- });
1263
- }
1264
- _export(exports, {
1265
- ACTION_SUFFIX: function() {
1266
- return ACTION_SUFFIX;
1267
- },
1268
- APP_DIR_ALIAS: function() {
1269
- return APP_DIR_ALIAS;
1270
- },
1271
- CACHE_ONE_YEAR: function() {
1272
- return CACHE_ONE_YEAR;
1273
- },
1274
- DOT_NEXT_ALIAS: function() {
1275
- return DOT_NEXT_ALIAS;
1276
- },
1277
- ESLINT_DEFAULT_DIRS: function() {
1278
- return ESLINT_DEFAULT_DIRS;
1279
- },
1280
- GSP_NO_RETURNED_VALUE: function() {
1281
- return GSP_NO_RETURNED_VALUE;
1282
- },
1283
- GSSP_COMPONENT_MEMBER_ERROR: function() {
1284
- return GSSP_COMPONENT_MEMBER_ERROR;
1285
- },
1286
- GSSP_NO_RETURNED_VALUE: function() {
1287
- return GSSP_NO_RETURNED_VALUE;
1288
- },
1289
- INFINITE_CACHE: function() {
1290
- return INFINITE_CACHE;
1291
- },
1292
- INSTRUMENTATION_HOOK_FILENAME: function() {
1293
- return INSTRUMENTATION_HOOK_FILENAME;
1294
- },
1295
- MATCHED_PATH_HEADER: function() {
1296
- return MATCHED_PATH_HEADER;
1297
- },
1298
- MIDDLEWARE_FILENAME: function() {
1299
- return MIDDLEWARE_FILENAME;
1300
- },
1301
- MIDDLEWARE_LOCATION_REGEXP: function() {
1302
- return MIDDLEWARE_LOCATION_REGEXP;
1303
- },
1304
- NEXT_BODY_SUFFIX: function() {
1305
- return NEXT_BODY_SUFFIX;
1306
- },
1307
- NEXT_CACHE_IMPLICIT_TAG_ID: function() {
1308
- return NEXT_CACHE_IMPLICIT_TAG_ID;
1309
- },
1310
- NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
1311
- return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
1312
- },
1313
- NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
1314
- return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
1315
- },
1316
- NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
1317
- return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
1318
- },
1319
- NEXT_CACHE_TAGS_HEADER: function() {
1320
- return NEXT_CACHE_TAGS_HEADER;
1321
- },
1322
- NEXT_CACHE_TAG_MAX_ITEMS: function() {
1323
- return NEXT_CACHE_TAG_MAX_ITEMS;
1324
- },
1325
- NEXT_CACHE_TAG_MAX_LENGTH: function() {
1326
- return NEXT_CACHE_TAG_MAX_LENGTH;
1327
- },
1328
- NEXT_DATA_SUFFIX: function() {
1329
- return NEXT_DATA_SUFFIX;
1330
- },
1331
- NEXT_INTERCEPTION_MARKER_PREFIX: function() {
1332
- return NEXT_INTERCEPTION_MARKER_PREFIX;
1333
- },
1334
- NEXT_META_SUFFIX: function() {
1335
- return NEXT_META_SUFFIX;
1336
- },
1337
- NEXT_QUERY_PARAM_PREFIX: function() {
1338
- return NEXT_QUERY_PARAM_PREFIX;
1339
- },
1340
- NEXT_RESUME_HEADER: function() {
1341
- return NEXT_RESUME_HEADER;
1342
- },
1343
- NON_STANDARD_NODE_ENV: function() {
1344
- return NON_STANDARD_NODE_ENV;
1345
- },
1346
- PAGES_DIR_ALIAS: function() {
1347
- return PAGES_DIR_ALIAS;
1348
- },
1349
- PRERENDER_REVALIDATE_HEADER: function() {
1350
- return PRERENDER_REVALIDATE_HEADER;
1351
- },
1352
- PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
1353
- return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
1354
- },
1355
- PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
1356
- return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
1357
- },
1358
- ROOT_DIR_ALIAS: function() {
1359
- return ROOT_DIR_ALIAS;
1360
- },
1361
- RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
1362
- return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
1363
- },
1364
- RSC_ACTION_ENCRYPTION_ALIAS: function() {
1365
- return RSC_ACTION_ENCRYPTION_ALIAS;
1366
- },
1367
- RSC_ACTION_PROXY_ALIAS: function() {
1368
- return RSC_ACTION_PROXY_ALIAS;
1369
- },
1370
- RSC_ACTION_VALIDATE_ALIAS: function() {
1371
- return RSC_ACTION_VALIDATE_ALIAS;
1372
- },
1373
- RSC_CACHE_WRAPPER_ALIAS: function() {
1374
- return RSC_CACHE_WRAPPER_ALIAS;
1375
- },
1376
- RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
1377
- return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
1378
- },
1379
- RSC_MOD_REF_PROXY_ALIAS: function() {
1380
- return RSC_MOD_REF_PROXY_ALIAS;
1381
- },
1382
- RSC_PREFETCH_SUFFIX: function() {
1383
- return RSC_PREFETCH_SUFFIX;
1384
- },
1385
- RSC_SEGMENTS_DIR_SUFFIX: function() {
1386
- return RSC_SEGMENTS_DIR_SUFFIX;
1387
- },
1388
- RSC_SEGMENT_SUFFIX: function() {
1389
- return RSC_SEGMENT_SUFFIX;
1390
- },
1391
- RSC_SUFFIX: function() {
1392
- return RSC_SUFFIX;
1393
- },
1394
- SERVER_PROPS_EXPORT_ERROR: function() {
1395
- return SERVER_PROPS_EXPORT_ERROR;
1396
- },
1397
- SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
1398
- return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
1399
- },
1400
- SERVER_PROPS_SSG_CONFLICT: function() {
1401
- return SERVER_PROPS_SSG_CONFLICT;
1402
- },
1403
- SERVER_RUNTIME: function() {
1404
- return SERVER_RUNTIME;
1405
- },
1406
- SSG_FALLBACK_EXPORT_ERROR: function() {
1407
- return SSG_FALLBACK_EXPORT_ERROR;
1408
- },
1409
- SSG_GET_INITIAL_PROPS_CONFLICT: function() {
1410
- return SSG_GET_INITIAL_PROPS_CONFLICT;
1411
- },
1412
- STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
1413
- return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
1414
- },
1415
- UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
1416
- return UNSTABLE_REVALIDATE_RENAME_ERROR;
1417
- },
1418
- WEBPACK_LAYERS: function() {
1419
- return WEBPACK_LAYERS;
1420
- },
1421
- WEBPACK_RESOURCE_QUERIES: function() {
1422
- return WEBPACK_RESOURCE_QUERIES;
1423
- }
1424
- });
1425
- const NEXT_QUERY_PARAM_PREFIX = "nxtP";
1426
- const NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
1427
- const MATCHED_PATH_HEADER = "x-matched-path";
1428
- const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
1429
- const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
1430
- const RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
1431
- const RSC_SEGMENTS_DIR_SUFFIX = ".segments";
1432
- const RSC_SEGMENT_SUFFIX = ".segment.rsc";
1433
- const RSC_SUFFIX = ".rsc";
1434
- const ACTION_SUFFIX = ".action";
1435
- const NEXT_DATA_SUFFIX = ".json";
1436
- const NEXT_META_SUFFIX = ".meta";
1437
- const NEXT_BODY_SUFFIX = ".body";
1438
- const NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
1439
- const NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
1440
- const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
1441
- const NEXT_RESUME_HEADER = "next-resume";
1442
- const NEXT_CACHE_TAG_MAX_ITEMS = 128;
1443
- const NEXT_CACHE_TAG_MAX_LENGTH = 256;
1444
- const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
1445
- const NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
1446
- const CACHE_ONE_YEAR = 31536e3;
1447
- const INFINITE_CACHE = 4294967294;
1448
- const MIDDLEWARE_FILENAME = "middleware";
1449
- const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
1450
- const INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
1451
- const PAGES_DIR_ALIAS = "private-next-pages";
1452
- const DOT_NEXT_ALIAS = "private-dot-next";
1453
- const ROOT_DIR_ALIAS = "private-next-root-dir";
1454
- const APP_DIR_ALIAS = "private-next-app-dir";
1455
- const RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
1456
- const RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
1457
- const RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
1458
- const RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
1459
- const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
1460
- const RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
1461
- const RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
1462
- const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
1463
- const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
1464
- const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
1465
- const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
1466
- const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
1467
- const SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
1468
- const GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
1469
- const GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
1470
- const UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
1471
- const GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`;
1472
- const NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`;
1473
- const SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
1474
- const ESLINT_DEFAULT_DIRS = [
1475
- "app",
1476
- "pages",
1477
- "components",
1478
- "lib",
1479
- "src"
1480
- ];
1481
- const SERVER_RUNTIME = {
1482
- edge: "edge",
1483
- experimentalEdge: "experimental-edge",
1484
- nodejs: "nodejs"
1485
- };
1486
- const WEBPACK_LAYERS_NAMES = {
1487
- /**
1488
- * The layer for the shared code between the client and server bundles.
1489
- */
1490
- shared: "shared",
1491
- /**
1492
- * The layer for server-only runtime and picking up `react-server` export conditions.
1493
- * Including app router RSC pages and app router custom routes and metadata routes.
1494
- */
1495
- reactServerComponents: "rsc",
1496
- /**
1497
- * Server Side Rendering layer for app (ssr).
1498
- */
1499
- serverSideRendering: "ssr",
1500
- /**
1501
- * The browser client bundle layer for actions.
1502
- */
1503
- actionBrowser: "action-browser",
1504
- /**
1505
- * The Node.js bundle layer for the API routes.
1506
- */
1507
- apiNode: "api-node",
1508
- /**
1509
- * The Edge Lite bundle layer for the API routes.
1510
- */
1511
- apiEdge: "api-edge",
1512
- /**
1513
- * The layer for the middleware code.
1514
- */
1515
- middleware: "middleware",
1516
- /**
1517
- * The layer for the instrumentation hooks.
1518
- */
1519
- instrument: "instrument",
1520
- /**
1521
- * The layer for assets on the edge.
1522
- */
1523
- edgeAsset: "edge-asset",
1524
- /**
1525
- * The browser client bundle layer for App directory.
1526
- */
1527
- appPagesBrowser: "app-pages-browser",
1528
- /**
1529
- * The browser client bundle layer for Pages directory.
1530
- */
1531
- pagesDirBrowser: "pages-dir-browser",
1532
- /**
1533
- * The Edge Lite bundle layer for Pages directory.
1534
- */
1535
- pagesDirEdge: "pages-dir-edge",
1536
- /**
1537
- * The Node.js bundle layer for Pages directory.
1538
- */
1539
- pagesDirNode: "pages-dir-node"
1540
- };
1541
- const WEBPACK_LAYERS = {
1542
- ...WEBPACK_LAYERS_NAMES,
1543
- GROUP: {
1544
- builtinReact: [
1545
- WEBPACK_LAYERS_NAMES.reactServerComponents,
1546
- WEBPACK_LAYERS_NAMES.actionBrowser
1547
- ],
1548
- serverOnly: [
1549
- WEBPACK_LAYERS_NAMES.reactServerComponents,
1550
- WEBPACK_LAYERS_NAMES.actionBrowser,
1551
- WEBPACK_LAYERS_NAMES.instrument,
1552
- WEBPACK_LAYERS_NAMES.middleware
1553
- ],
1554
- neutralTarget: [
1555
- // pages api
1556
- WEBPACK_LAYERS_NAMES.apiNode,
1557
- WEBPACK_LAYERS_NAMES.apiEdge
1558
- ],
1559
- clientOnly: [
1560
- WEBPACK_LAYERS_NAMES.serverSideRendering,
1561
- WEBPACK_LAYERS_NAMES.appPagesBrowser
1562
- ],
1563
- bundled: [
1564
- WEBPACK_LAYERS_NAMES.reactServerComponents,
1565
- WEBPACK_LAYERS_NAMES.actionBrowser,
1566
- WEBPACK_LAYERS_NAMES.serverSideRendering,
1567
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
1568
- WEBPACK_LAYERS_NAMES.shared,
1569
- WEBPACK_LAYERS_NAMES.instrument,
1570
- WEBPACK_LAYERS_NAMES.middleware
1571
- ],
1572
- appPages: [
1573
- // app router pages and layouts
1574
- WEBPACK_LAYERS_NAMES.reactServerComponents,
1575
- WEBPACK_LAYERS_NAMES.serverSideRendering,
1576
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
1577
- WEBPACK_LAYERS_NAMES.actionBrowser
1578
- ]
1579
- }
1580
- };
1581
- const WEBPACK_RESOURCE_QUERIES = {
1582
- edgeSSREntry: "__next_edge_ssr_entry__",
1583
- metadata: "__next_metadata__",
1584
- metadataRoute: "__next_metadata_route__",
1585
- metadataImageMeta: "__next_metadata_image_meta__"
1586
- };
1587
- })(constants);
1588
- return constants;
1589
- }
1590
- var escapeRegexp = {};
1591
- var hasRequiredEscapeRegexp;
1592
- function requireEscapeRegexp() {
1593
- if (hasRequiredEscapeRegexp) return escapeRegexp;
1594
- hasRequiredEscapeRegexp = 1;
1595
- (function(exports) {
1596
- Object.defineProperty(exports, "__esModule", {
1597
- value: true
1598
- });
1599
- Object.defineProperty(exports, "escapeStringRegexp", {
1600
- enumerable: true,
1601
- get: function() {
1602
- return escapeStringRegexp;
1603
- }
1604
- });
1605
- const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
1606
- const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
1607
- function escapeStringRegexp(str) {
1608
- if (reHasRegExp.test(str)) {
1609
- return str.replace(reReplaceRegExp, "\\$&");
1610
- }
1611
- return str;
1612
- }
1613
- })(escapeRegexp);
1614
- return escapeRegexp;
1615
- }
1616
- var hasRequiredRouteRegex;
1617
- function requireRouteRegex() {
1618
- if (hasRequiredRouteRegex) return routeRegex;
1619
- hasRequiredRouteRegex = 1;
1620
- (function(exports) {
1621
- Object.defineProperty(exports, "__esModule", {
1622
- value: true
1623
- });
1624
- function _export(target, all) {
1625
- for (var name in all) Object.defineProperty(target, name, {
1626
- enumerable: true,
1627
- get: all[name]
1628
- });
1629
- }
1630
- _export(exports, {
1631
- getNamedMiddlewareRegex: function() {
1632
- return getNamedMiddlewareRegex;
1633
- },
1634
- getNamedRouteRegex: function() {
1635
- return getNamedRouteRegex;
1636
- },
1637
- getRouteRegex: function() {
1638
- return getRouteRegex;
1639
- },
1640
- parseParameter: function() {
1641
- return parseParameter;
1642
- }
1643
- });
1644
- const _constants = requireConstants();
1645
- const _interceptionroutes = requireInterceptionRoutes();
1646
- const _escaperegexp = requireEscapeRegexp();
1647
- const _removetrailingslash = requireRemoveTrailingSlash();
1648
- const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
1649
- function parseParameter(param) {
1650
- const match = param.match(PARAMETER_PATTERN);
1651
- if (!match) {
1652
- return parseMatchedParameter(param);
1653
- }
1654
- return parseMatchedParameter(match[2]);
1655
- }
1656
- function parseMatchedParameter(param) {
1657
- const optional = param.startsWith("[") && param.endsWith("]");
1658
- if (optional) {
1659
- param = param.slice(1, -1);
1660
- }
1661
- const repeat = param.startsWith("...");
1662
- if (repeat) {
1663
- param = param.slice(3);
1664
- }
1665
- return {
1666
- key: param,
1667
- repeat,
1668
- optional
1669
- };
1670
- }
1671
- function getParametrizedRoute(route, includeSuffix, includePrefix) {
1672
- const groups = {};
1673
- let groupIndex = 1;
1674
- const segments = [];
1675
- for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
1676
- const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
1677
- const paramMatches = segment2.match(PARAMETER_PATTERN);
1678
- if (markerMatch && paramMatches && paramMatches[2]) {
1679
- const { key, optional, repeat } = parseMatchedParameter(paramMatches[2]);
1680
- groups[key] = {
1681
- pos: groupIndex++,
1682
- repeat,
1683
- optional
1684
- };
1685
- segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(markerMatch) + "([^/]+?)");
1686
- } else if (paramMatches && paramMatches[2]) {
1687
- const { key, repeat, optional } = parseMatchedParameter(paramMatches[2]);
1688
- groups[key] = {
1689
- pos: groupIndex++,
1690
- repeat,
1691
- optional
1692
- };
1693
- if (includePrefix && paramMatches[1]) {
1694
- segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
1695
- }
1696
- let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
1697
- if (includePrefix && paramMatches[1]) {
1698
- s = s.substring(1);
1699
- }
1700
- segments.push(s);
1701
- } else {
1702
- segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment2));
1703
- }
1704
- if (includeSuffix && paramMatches && paramMatches[3]) {
1705
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
1706
- }
1707
- }
1708
- return {
1709
- parameterizedRoute: segments.join(""),
1710
- groups
1711
- };
1712
- }
1713
- function getRouteRegex(normalizedRoute, param) {
1714
- let { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = param === void 0 ? {} : param;
1715
- const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
1716
- let re = parameterizedRoute;
1717
- if (!excludeOptionalTrailingSlash) {
1718
- re += "(?:/)?";
1719
- }
1720
- return {
1721
- re: new RegExp("^" + re + "$"),
1722
- groups
1723
- };
1724
- }
1725
- function buildGetSafeRouteKey() {
1726
- let i = 0;
1727
- return () => {
1728
- let routeKey = "";
1729
- let j = ++i;
1730
- while (j > 0) {
1731
- routeKey += String.fromCharCode(97 + (j - 1) % 26);
1732
- j = Math.floor((j - 1) / 26);
1733
- }
1734
- return routeKey;
1735
- };
1736
- }
1737
- function getSafeKeyFromSegment(param) {
1738
- let { interceptionMarker, getSafeRouteKey, segment: segment2, routeKeys, keyPrefix, backreferenceDuplicateKeys } = param;
1739
- const { key, optional, repeat } = parseMatchedParameter(segment2);
1740
- let cleanedKey = key.replace(/\W/g, "");
1741
- if (keyPrefix) {
1742
- cleanedKey = "" + keyPrefix + cleanedKey;
1743
- }
1744
- let invalidKey = false;
1745
- if (cleanedKey.length === 0 || cleanedKey.length > 30) {
1746
- invalidKey = true;
1747
- }
1748
- if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
1749
- invalidKey = true;
1750
- }
1751
- if (invalidKey) {
1752
- cleanedKey = getSafeRouteKey();
1753
- }
1754
- const duplicateKey = cleanedKey in routeKeys;
1755
- if (keyPrefix) {
1756
- routeKeys[cleanedKey] = "" + keyPrefix + key;
1757
- } else {
1758
- routeKeys[cleanedKey] = key;
1759
- }
1760
- const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
1761
- let pattern;
1762
- if (duplicateKey && backreferenceDuplicateKeys) {
1763
- pattern = "\\k<" + cleanedKey + ">";
1764
- } else if (repeat) {
1765
- pattern = "(?<" + cleanedKey + ">.+?)";
1766
- } else {
1767
- pattern = "(?<" + cleanedKey + ">[^/]+?)";
1768
- }
1769
- return optional ? "(?:/" + interceptionPrefix + pattern + ")?" : "/" + interceptionPrefix + pattern;
1770
- }
1771
- function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys) {
1772
- const getSafeRouteKey = buildGetSafeRouteKey();
1773
- const routeKeys = {};
1774
- const segments = [];
1775
- for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
1776
- const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment2.startsWith(m));
1777
- const paramMatches = segment2.match(PARAMETER_PATTERN);
1778
- if (hasInterceptionMarker && paramMatches && paramMatches[2]) {
1779
- segments.push(getSafeKeyFromSegment({
1780
- getSafeRouteKey,
1781
- interceptionMarker: paramMatches[1],
1782
- segment: paramMatches[2],
1783
- routeKeys,
1784
- keyPrefix: prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
1785
- backreferenceDuplicateKeys
1786
- }));
1787
- } else if (paramMatches && paramMatches[2]) {
1788
- if (includePrefix && paramMatches[1]) {
1789
- segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
1790
- }
1791
- let s = getSafeKeyFromSegment({
1792
- getSafeRouteKey,
1793
- segment: paramMatches[2],
1794
- routeKeys,
1795
- keyPrefix: prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0,
1796
- backreferenceDuplicateKeys
1797
- });
1798
- if (includePrefix && paramMatches[1]) {
1799
- s = s.substring(1);
1800
- }
1801
- segments.push(s);
1802
- } else {
1803
- segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment2));
1804
- }
1805
- if (includeSuffix && paramMatches && paramMatches[3]) {
1806
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
1807
- }
1808
- }
1809
- return {
1810
- namedParameterizedRoute: segments.join(""),
1811
- routeKeys
1812
- };
1813
- }
1814
- function getNamedRouteRegex(normalizedRoute, options) {
1815
- var _options_includeSuffix, _options_includePrefix, _options_backreferenceDuplicateKeys;
1816
- const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_options_includeSuffix = options.includeSuffix) != null ? _options_includeSuffix : false, (_options_includePrefix = options.includePrefix) != null ? _options_includePrefix : false, (_options_backreferenceDuplicateKeys = options.backreferenceDuplicateKeys) != null ? _options_backreferenceDuplicateKeys : false);
1817
- let namedRegex = result.namedParameterizedRoute;
1818
- if (!options.excludeOptionalTrailingSlash) {
1819
- namedRegex += "(?:/)?";
1820
- }
1821
- return {
1822
- ...getRouteRegex(normalizedRoute, options),
1823
- namedRegex: "^" + namedRegex + "$",
1824
- routeKeys: result.routeKeys
1825
- };
1826
- }
1827
- function getNamedMiddlewareRegex(normalizedRoute, options) {
1828
- const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
1829
- const { catchAll = true } = options;
1830
- if (parameterizedRoute === "/") {
1831
- let catchAllRegex = catchAll ? ".*" : "";
1832
- return {
1833
- namedRegex: "^/" + catchAllRegex + "$"
1834
- };
1835
- }
1836
- const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false);
1837
- let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
1838
- return {
1839
- namedRegex: "^" + namedParameterizedRoute + catchAllGroupedRegex + "$"
1840
- };
1841
- }
1842
- })(routeRegex);
1843
- return routeRegex;
1844
- }
1845
- var hasRequiredInterpolateAs;
1846
- function requireInterpolateAs() {
1847
- if (hasRequiredInterpolateAs) return interpolateAs;
1848
- hasRequiredInterpolateAs = 1;
1849
- (function(exports) {
1850
- Object.defineProperty(exports, "__esModule", {
1851
- value: true
1852
- });
1853
- Object.defineProperty(exports, "interpolateAs", {
1854
- enumerable: true,
1855
- get: function() {
1856
- return interpolateAs2;
1857
- }
1858
- });
1859
- const _routematcher = requireRouteMatcher();
1860
- const _routeregex = requireRouteRegex();
1861
- function interpolateAs2(route, asPathname, query) {
1862
- let interpolatedRoute = "";
1863
- const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
1864
- const dynamicGroups = dynamicRegex.groups;
1865
- const dynamicMatches = (
1866
- // Try to match the dynamic route against the asPath
1867
- (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
1868
- // TODO: should this take priority; also need to change in the router.
1869
- query
1870
- );
1871
- interpolatedRoute = route;
1872
- const params = Object.keys(dynamicGroups);
1873
- if (!params.every((param) => {
1874
- let value = dynamicMatches[param] || "";
1875
- const { repeat, optional } = dynamicGroups[param];
1876
- let replaced = "[" + (repeat ? "..." : "") + param + "]";
1877
- if (optional) {
1878
- replaced = (!value ? "/" : "") + "[" + replaced + "]";
1879
- }
1880
- if (repeat && !Array.isArray(value)) value = [
1881
- value
1882
- ];
1883
- return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
1884
- (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(
1885
- // these values should be fully encoded instead of just
1886
- // path delimiter escaped since they are being inserted
1887
- // into the URL and we expect URL encoded segments
1888
- // when parsing dynamic route params
1889
- (segment2) => encodeURIComponent(segment2)
1890
- ).join("/") : encodeURIComponent(value)) || "/");
1891
- })) {
1892
- interpolatedRoute = "";
1893
- }
1894
- return {
1895
- params,
1896
- result: interpolatedRoute
1897
- };
1898
- }
1899
- })(interpolateAs);
1900
- return interpolateAs;
1901
- }
1902
- var hasRequiredResolveHref;
1903
- function requireResolveHref() {
1904
- if (hasRequiredResolveHref) return resolveHref.exports;
1905
- hasRequiredResolveHref = 1;
1906
- (function(module, exports) {
1907
- Object.defineProperty(exports, "__esModule", {
1908
- value: true
1909
- });
1910
- Object.defineProperty(exports, "resolveHref", {
1911
- enumerable: true,
1912
- get: function() {
1913
- return resolveHref2;
1914
- }
1915
- });
1916
- const _querystring = requireQuerystring();
1917
- const _formaturl = requireFormatUrl();
1918
- const _omit = requireOmit();
1919
- const _utils = requireUtils$1();
1920
- const _normalizetrailingslash = requireNormalizeTrailingSlash();
1921
- const _islocalurl = requireIsLocalUrl();
1922
- const _utils1 = requireUtils();
1923
- const _interpolateas = requireInterpolateAs();
1924
- function resolveHref2(router, href, resolveAs) {
1925
- let base;
1926
- let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
1927
- const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
1928
- const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
1929
- const urlParts = urlAsStringNoProto.split("?", 1);
1930
- if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
1931
- console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
1932
- const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
1933
- urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
1934
- }
1935
- if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
1936
- return resolveAs ? [
1937
- urlAsString
1938
- ] : urlAsString;
1939
- }
1940
- try {
1941
- base = new URL(urlAsString.startsWith("#") ? router.asPath : router.pathname, "http://n");
1942
- } catch (_) {
1943
- base = new URL("/", "http://n");
1944
- }
1945
- try {
1946
- const finalUrl = new URL(urlAsString, base);
1947
- finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
1948
- let interpolatedAs = "";
1949
- if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
1950
- const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
1951
- const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
1952
- if (result) {
1953
- interpolatedAs = (0, _formaturl.formatWithValidation)({
1954
- pathname: result,
1955
- hash: finalUrl.hash,
1956
- query: (0, _omit.omit)(query, params)
1957
- });
1958
- }
1959
- }
1960
- const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
1961
- return resolveAs ? [
1962
- resolvedHref,
1963
- interpolatedAs || resolvedHref
1964
- ] : resolvedHref;
1965
- } catch (_) {
1966
- return resolveAs ? [
1967
- urlAsString
1968
- ] : urlAsString;
1969
- }
1970
- }
1971
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
1972
- Object.defineProperty(exports.default, "__esModule", { value: true });
1973
- Object.assign(exports.default, exports);
1974
- module.exports = exports.default;
1975
- }
1976
- })(resolveHref, resolveHref.exports);
1977
- return resolveHref.exports;
1978
- }
1979
- var addLocale$1 = { exports: {} };
1980
- var addLocale = {};
1981
- var addPathPrefix = {};
1982
- var hasRequiredAddPathPrefix;
1983
- function requireAddPathPrefix() {
1984
- if (hasRequiredAddPathPrefix) return addPathPrefix;
1985
- hasRequiredAddPathPrefix = 1;
1986
- (function(exports) {
1987
- Object.defineProperty(exports, "__esModule", {
1988
- value: true
1989
- });
1990
- Object.defineProperty(exports, "addPathPrefix", {
1991
- enumerable: true,
1992
- get: function() {
1993
- return addPathPrefix2;
1994
- }
1995
- });
1996
- const _parsepath = requireParsePath();
1997
- function addPathPrefix2(path, prefix) {
1998
- if (!path.startsWith("/") || !prefix) {
1999
- return path;
2000
- }
2001
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
2002
- return "" + prefix + pathname + query + hash;
2003
- }
2004
- })(addPathPrefix);
2005
- return addPathPrefix;
2006
- }
2007
- var hasRequiredAddLocale$1;
2008
- function requireAddLocale$1() {
2009
- if (hasRequiredAddLocale$1) return addLocale;
2010
- hasRequiredAddLocale$1 = 1;
2011
- (function(exports) {
2012
- Object.defineProperty(exports, "__esModule", {
2013
- value: true
2014
- });
2015
- Object.defineProperty(exports, "addLocale", {
2016
- enumerable: true,
2017
- get: function() {
2018
- return addLocale2;
2019
- }
2020
- });
2021
- const _addpathprefix = requireAddPathPrefix();
2022
- const _pathhasprefix = requirePathHasPrefix();
2023
- function addLocale2(path, locale, defaultLocale, ignorePrefix) {
2024
- if (!locale || locale === defaultLocale) return path;
2025
- const lower = path.toLowerCase();
2026
- if (!ignorePrefix) {
2027
- if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
2028
- if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
2029
- }
2030
- return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
2031
- }
2032
- })(addLocale);
2033
- return addLocale;
2034
- }
2035
- var hasRequiredAddLocale;
2036
- function requireAddLocale() {
2037
- if (hasRequiredAddLocale) return addLocale$1.exports;
2038
- hasRequiredAddLocale = 1;
2039
- (function(module, exports) {
2040
- Object.defineProperty(exports, "__esModule", {
2041
- value: true
2042
- });
2043
- Object.defineProperty(exports, "addLocale", {
2044
- enumerable: true,
2045
- get: function() {
2046
- return addLocale2;
2047
- }
2048
- });
2049
- const _normalizetrailingslash = requireNormalizeTrailingSlash();
2050
- const addLocale2 = function(path) {
2051
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2052
- args[_key - 1] = arguments[_key];
2053
- }
2054
- if (process.env.__NEXT_I18N_SUPPORT) {
2055
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(requireAddLocale$1().addLocale(path, ...args));
2056
- }
2057
- return path;
2058
- };
2059
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2060
- Object.defineProperty(exports.default, "__esModule", { value: true });
2061
- Object.assign(exports.default, exports);
2062
- module.exports = exports.default;
2063
- }
2064
- })(addLocale$1, addLocale$1.exports);
2065
- return addLocale$1.exports;
2066
- }
2067
- var useIntersection = { exports: {} };
2068
- var requestIdleCallback = { exports: {} };
2069
- var hasRequiredRequestIdleCallback;
2070
- function requireRequestIdleCallback() {
2071
- if (hasRequiredRequestIdleCallback) return requestIdleCallback.exports;
2072
- hasRequiredRequestIdleCallback = 1;
2073
- (function(module, exports) {
2074
- Object.defineProperty(exports, "__esModule", {
2075
- value: true
2076
- });
2077
- function _export(target, all) {
2078
- for (var name in all) Object.defineProperty(target, name, {
2079
- enumerable: true,
2080
- get: all[name]
2081
- });
2082
- }
2083
- _export(exports, {
2084
- cancelIdleCallback: function() {
2085
- return cancelIdleCallback;
2086
- },
2087
- requestIdleCallback: function() {
2088
- return requestIdleCallback2;
2089
- }
2090
- });
2091
- const requestIdleCallback2 = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
2092
- let start = Date.now();
2093
- return self.setTimeout(function() {
2094
- cb({
2095
- didTimeout: false,
2096
- timeRemaining: function() {
2097
- return Math.max(0, 50 - (Date.now() - start));
2098
- }
2099
- });
2100
- }, 1);
2101
- };
2102
- const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
2103
- return clearTimeout(id);
2104
- };
2105
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2106
- Object.defineProperty(exports.default, "__esModule", { value: true });
2107
- Object.assign(exports.default, exports);
2108
- module.exports = exports.default;
2109
- }
2110
- })(requestIdleCallback, requestIdleCallback.exports);
2111
- return requestIdleCallback.exports;
2112
- }
2113
- var hasRequiredUseIntersection;
2114
- function requireUseIntersection() {
2115
- if (hasRequiredUseIntersection) return useIntersection.exports;
2116
- hasRequiredUseIntersection = 1;
2117
- (function(module, exports) {
2118
- Object.defineProperty(exports, "__esModule", {
2119
- value: true
2120
- });
2121
- Object.defineProperty(exports, "useIntersection", {
2122
- enumerable: true,
2123
- get: function() {
2124
- return useIntersection2;
2125
- }
2126
- });
2127
- const _react = React;
2128
- const _requestidlecallback = requireRequestIdleCallback();
2129
- const hasIntersectionObserver = typeof IntersectionObserver === "function";
2130
- const observers = /* @__PURE__ */ new Map();
2131
- const idList = [];
2132
- function createObserver(options) {
2133
- const id = {
2134
- root: options.root || null,
2135
- margin: options.rootMargin || ""
2136
- };
2137
- const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
2138
- let instance;
2139
- if (existing) {
2140
- instance = observers.get(existing);
2141
- if (instance) {
2142
- return instance;
2143
- }
2144
- }
2145
- const elements = /* @__PURE__ */ new Map();
2146
- const observer = new IntersectionObserver((entries) => {
2147
- entries.forEach((entry) => {
2148
- const callback = elements.get(entry.target);
2149
- const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
2150
- if (callback && isVisible) {
2151
- callback(isVisible);
2152
- }
2153
- });
2154
- }, options);
2155
- instance = {
2156
- id,
2157
- observer,
2158
- elements
2159
- };
2160
- idList.push(id);
2161
- observers.set(id, instance);
2162
- return instance;
2163
- }
2164
- function observe(element, callback, options) {
2165
- const { id, observer, elements } = createObserver(options);
2166
- elements.set(element, callback);
2167
- observer.observe(element);
2168
- return function unobserve() {
2169
- elements.delete(element);
2170
- observer.unobserve(element);
2171
- if (elements.size === 0) {
2172
- observer.disconnect();
2173
- observers.delete(id);
2174
- const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
2175
- if (index > -1) {
2176
- idList.splice(index, 1);
2177
- }
2178
- }
2179
- };
2180
- }
2181
- function useIntersection2(param) {
2182
- let { rootRef, rootMargin, disabled } = param;
2183
- const isDisabled = disabled || !hasIntersectionObserver;
2184
- const [visible, setVisible] = (0, _react.useState)(false);
2185
- const elementRef = (0, _react.useRef)(null);
2186
- const setElement = (0, _react.useCallback)((element) => {
2187
- elementRef.current = element;
2188
- }, []);
2189
- (0, _react.useEffect)(() => {
2190
- if (hasIntersectionObserver) {
2191
- if (isDisabled || visible) return;
2192
- const element = elementRef.current;
2193
- if (element && element.tagName) {
2194
- const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
2195
- root: rootRef == null ? void 0 : rootRef.current,
2196
- rootMargin
2197
- });
2198
- return unobserve;
2199
- }
2200
- } else {
2201
- if (!visible) {
2202
- const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
2203
- return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
2204
- }
2205
- }
2206
- }, [
2207
- isDisabled,
2208
- rootMargin,
2209
- rootRef,
2210
- visible,
2211
- elementRef.current
2212
- ]);
2213
- const resetVisible = (0, _react.useCallback)(() => {
2214
- setVisible(false);
2215
- }, []);
2216
- return [
2217
- setElement,
2218
- visible,
2219
- resetVisible
2220
- ];
2221
- }
2222
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2223
- Object.defineProperty(exports.default, "__esModule", { value: true });
2224
- Object.assign(exports.default, exports);
2225
- module.exports = exports.default;
2226
- }
2227
- })(useIntersection, useIntersection.exports);
2228
- return useIntersection.exports;
2229
- }
2230
- var getDomainLocale = { exports: {} };
2231
- var normalizeLocalePath$1 = { exports: {} };
2232
- var normalizeLocalePath = {};
2233
- var hasRequiredNormalizeLocalePath$1;
2234
- function requireNormalizeLocalePath$1() {
2235
- if (hasRequiredNormalizeLocalePath$1) return normalizeLocalePath;
2236
- hasRequiredNormalizeLocalePath$1 = 1;
2237
- (function(exports) {
2238
- Object.defineProperty(exports, "__esModule", {
2239
- value: true
2240
- });
2241
- Object.defineProperty(exports, "normalizeLocalePath", {
2242
- enumerable: true,
2243
- get: function() {
2244
- return normalizeLocalePath2;
2245
- }
2246
- });
2247
- const cache = /* @__PURE__ */ new WeakMap();
2248
- function normalizeLocalePath2(pathname, locales) {
2249
- if (!locales) return {
2250
- pathname
2251
- };
2252
- let lowercasedLocales = cache.get(locales);
2253
- if (!lowercasedLocales) {
2254
- lowercasedLocales = locales.map((locale) => locale.toLowerCase());
2255
- cache.set(locales, lowercasedLocales);
2256
- }
2257
- let detectedLocale;
2258
- const segments = pathname.split("/", 2);
2259
- if (!segments[1]) return {
2260
- pathname
2261
- };
2262
- const segment2 = segments[1].toLowerCase();
2263
- const index = lowercasedLocales.indexOf(segment2);
2264
- if (index < 0) return {
2265
- pathname
2266
- };
2267
- detectedLocale = locales[index];
2268
- pathname = pathname.slice(detectedLocale.length + 1) || "/";
2269
- return {
2270
- pathname,
2271
- detectedLocale
2272
- };
2273
- }
2274
- })(normalizeLocalePath);
2275
- return normalizeLocalePath;
2276
- }
2277
- var hasRequiredNormalizeLocalePath;
2278
- function requireNormalizeLocalePath() {
2279
- if (hasRequiredNormalizeLocalePath) return normalizeLocalePath$1.exports;
2280
- hasRequiredNormalizeLocalePath = 1;
2281
- (function(module, exports) {
2282
- Object.defineProperty(exports, "__esModule", {
2283
- value: true
2284
- });
2285
- Object.defineProperty(exports, "normalizeLocalePath", {
2286
- enumerable: true,
2287
- get: function() {
2288
- return normalizeLocalePath2;
2289
- }
2290
- });
2291
- const normalizeLocalePath2 = (pathname, locales) => {
2292
- if (process.env.__NEXT_I18N_SUPPORT) {
2293
- return requireNormalizeLocalePath$1().normalizeLocalePath(pathname, locales);
2294
- }
2295
- return {
2296
- pathname,
2297
- detectedLocale: void 0
2298
- };
2299
- };
2300
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2301
- Object.defineProperty(exports.default, "__esModule", { value: true });
2302
- Object.assign(exports.default, exports);
2303
- module.exports = exports.default;
2304
- }
2305
- })(normalizeLocalePath$1, normalizeLocalePath$1.exports);
2306
- return normalizeLocalePath$1.exports;
2307
- }
2308
- var detectDomainLocale$1 = { exports: {} };
2309
- var detectDomainLocale = {};
2310
- var hasRequiredDetectDomainLocale$1;
2311
- function requireDetectDomainLocale$1() {
2312
- if (hasRequiredDetectDomainLocale$1) return detectDomainLocale;
2313
- hasRequiredDetectDomainLocale$1 = 1;
2314
- (function(exports) {
2315
- Object.defineProperty(exports, "__esModule", {
2316
- value: true
2317
- });
2318
- Object.defineProperty(exports, "detectDomainLocale", {
2319
- enumerable: true,
2320
- get: function() {
2321
- return detectDomainLocale2;
2322
- }
2323
- });
2324
- function detectDomainLocale2(domainItems, hostname, detectedLocale) {
2325
- if (!domainItems) return;
2326
- if (detectedLocale) {
2327
- detectedLocale = detectedLocale.toLowerCase();
2328
- }
2329
- for (const item of domainItems) {
2330
- var _item_domain, _item_locales;
2331
- const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":", 1)[0].toLowerCase();
2332
- if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) {
2333
- return item;
2334
- }
2335
- }
2336
- }
2337
- })(detectDomainLocale);
2338
- return detectDomainLocale;
2339
- }
2340
- var hasRequiredDetectDomainLocale;
2341
- function requireDetectDomainLocale() {
2342
- if (hasRequiredDetectDomainLocale) return detectDomainLocale$1.exports;
2343
- hasRequiredDetectDomainLocale = 1;
2344
- (function(module, exports) {
2345
- Object.defineProperty(exports, "__esModule", {
2346
- value: true
2347
- });
2348
- Object.defineProperty(exports, "detectDomainLocale", {
2349
- enumerable: true,
2350
- get: function() {
2351
- return detectDomainLocale2;
2352
- }
2353
- });
2354
- const detectDomainLocale2 = function() {
2355
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2356
- args[_key] = arguments[_key];
2357
- }
2358
- if (process.env.__NEXT_I18N_SUPPORT) {
2359
- return requireDetectDomainLocale$1().detectDomainLocale(...args);
2360
- }
2361
- };
2362
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2363
- Object.defineProperty(exports.default, "__esModule", { value: true });
2364
- Object.assign(exports.default, exports);
2365
- module.exports = exports.default;
2366
- }
2367
- })(detectDomainLocale$1, detectDomainLocale$1.exports);
2368
- return detectDomainLocale$1.exports;
2369
- }
2370
- var hasRequiredGetDomainLocale;
2371
- function requireGetDomainLocale() {
2372
- if (hasRequiredGetDomainLocale) return getDomainLocale.exports;
2373
- hasRequiredGetDomainLocale = 1;
2374
- (function(module, exports) {
2375
- Object.defineProperty(exports, "__esModule", {
2376
- value: true
2377
- });
2378
- Object.defineProperty(exports, "getDomainLocale", {
2379
- enumerable: true,
2380
- get: function() {
2381
- return getDomainLocale2;
2382
- }
2383
- });
2384
- const _normalizetrailingslash = requireNormalizeTrailingSlash();
2385
- const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
2386
- function getDomainLocale2(path, locale, locales, domainLocales) {
2387
- if (process.env.__NEXT_I18N_SUPPORT) {
2388
- const normalizeLocalePath2 = requireNormalizeLocalePath().normalizeLocalePath;
2389
- const detectDomainLocale2 = requireDetectDomainLocale().detectDomainLocale;
2390
- const target = locale || normalizeLocalePath2(path, locales).detectedLocale;
2391
- const domain = detectDomainLocale2(domainLocales, void 0, target);
2392
- if (domain) {
2393
- const proto = "http" + (domain.http ? "" : "s") + "://";
2394
- const finalLocale = target === domain.defaultLocale ? "" : "/" + target;
2395
- return "" + proto + domain.domain + (0, _normalizetrailingslash.normalizePathTrailingSlash)("" + basePath + finalLocale + path);
2396
- }
2397
- return false;
2398
- } else {
2399
- return false;
2400
- }
2401
- }
2402
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2403
- Object.defineProperty(exports.default, "__esModule", { value: true });
2404
- Object.assign(exports.default, exports);
2405
- module.exports = exports.default;
2406
- }
2407
- })(getDomainLocale, getDomainLocale.exports);
2408
- return getDomainLocale.exports;
2409
- }
2410
- var addBasePath = { exports: {} };
2411
- var hasRequiredAddBasePath;
2412
- function requireAddBasePath() {
2413
- if (hasRequiredAddBasePath) return addBasePath.exports;
2414
- hasRequiredAddBasePath = 1;
2415
- (function(module, exports) {
2416
- Object.defineProperty(exports, "__esModule", {
2417
- value: true
2418
- });
2419
- Object.defineProperty(exports, "addBasePath", {
2420
- enumerable: true,
2421
- get: function() {
2422
- return addBasePath2;
2423
- }
2424
- });
2425
- const _addpathprefix = requireAddPathPrefix();
2426
- const _normalizetrailingslash = requireNormalizeTrailingSlash();
2427
- const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
2428
- function addBasePath2(path, required) {
2429
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
2430
- }
2431
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2432
- Object.defineProperty(exports.default, "__esModule", { value: true });
2433
- Object.assign(exports.default, exports);
2434
- module.exports = exports.default;
2435
- }
2436
- })(addBasePath, addBasePath.exports);
2437
- return addBasePath.exports;
2438
- }
2439
- var errorOnce = {};
2440
- var hasRequiredErrorOnce;
2441
- function requireErrorOnce() {
2442
- if (hasRequiredErrorOnce) return errorOnce;
2443
- hasRequiredErrorOnce = 1;
2444
- (function(exports) {
2445
- Object.defineProperty(exports, "__esModule", {
2446
- value: true
2447
- });
2448
- Object.defineProperty(exports, "errorOnce", {
2449
- enumerable: true,
2450
- get: function() {
2451
- return errorOnce2;
2452
- }
2453
- });
2454
- let errorOnce2 = (_) => {
2455
- };
2456
- if (process.env.NODE_ENV !== "production") {
2457
- const errors = /* @__PURE__ */ new Set();
2458
- errorOnce2 = (msg) => {
2459
- if (!errors.has(msg)) {
2460
- console.error(msg);
2461
- }
2462
- errors.add(msg);
2463
- };
2464
- }
2465
- })(errorOnce);
2466
- return errorOnce;
2467
- }
2468
- (function(module, exports) {
2469
- "use client";
2470
- Object.defineProperty(exports, "__esModule", {
2471
- value: true
2472
- });
2473
- function _export(target, all) {
2474
- for (var name in all) Object.defineProperty(target, name, {
2475
- enumerable: true,
2476
- get: all[name]
2477
- });
2478
- }
2479
- _export(exports, {
2480
- default: function() {
2481
- return _default;
2482
- },
2483
- useLinkStatus: function() {
2484
- return useLinkStatus;
2485
- }
2486
- });
2487
- const _interop_require_wildcard2 = _interop_require_wildcard$1;
2488
- const _jsxruntime = require$$2;
2489
- const _react = /* @__PURE__ */ _interop_require_wildcard2._(React);
2490
- const _resolvehref = requireResolveHref();
2491
- const _islocalurl = requireIsLocalUrl();
2492
- const _formaturl = requireFormatUrl();
2493
- const _utils = requireUtils$1();
2494
- const _addlocale = requireAddLocale();
2495
- const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
2496
- const _useintersection = requireUseIntersection();
2497
- const _getdomainlocale = requireGetDomainLocale();
2498
- const _addbasepath = requireAddBasePath();
2499
- const _usemergedref = requireUseMergedRef();
2500
- const _erroronce = requireErrorOnce();
2501
- const prefetched = /* @__PURE__ */ new Set();
2502
- function prefetch(router, href, as, options) {
2503
- if (typeof window === "undefined") {
2504
- return;
2505
- }
2506
- if (!(0, _islocalurl.isLocalURL)(href)) {
2507
- return;
2508
- }
2509
- if (!options.bypassPrefetchedCheck) {
2510
- const locale = (
2511
- // Let the link's locale prop override the default router locale.
2512
- typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0
2513
- );
2514
- const prefetchedKey = href + "%" + as + "%" + locale;
2515
- if (prefetched.has(prefetchedKey)) {
2516
- return;
2517
- }
2518
- prefetched.add(prefetchedKey);
2519
- }
2520
- router.prefetch(href, as, options).catch((err) => {
2521
- if (process.env.NODE_ENV !== "production") {
2522
- throw err;
2523
- }
2524
- });
2525
- }
2526
- function isModifiedEvent(event) {
2527
- const eventTarget = event.currentTarget;
2528
- const target = eventTarget.getAttribute("target");
2529
- return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
2530
- event.nativeEvent && event.nativeEvent.which === 2;
2531
- }
2532
- function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
2533
- const { nodeName } = e.currentTarget;
2534
- const isAnchorNodeName = nodeName.toUpperCase() === "A";
2535
- if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) {
2536
- return;
2537
- }
2538
- if (!(0, _islocalurl.isLocalURL)(href)) {
2539
- if (replace) {
2540
- e.preventDefault();
2541
- location.replace(href);
2542
- }
2543
- return;
2544
- }
2545
- e.preventDefault();
2546
- const navigate = () => {
2547
- if (onNavigate) {
2548
- let isDefaultPrevented = false;
2549
- onNavigate({
2550
- preventDefault: () => {
2551
- isDefaultPrevented = true;
2552
- }
2553
- });
2554
- if (isDefaultPrevented) {
2555
- return;
2556
- }
2557
- }
2558
- const routerScroll = scroll != null ? scroll : true;
2559
- if ("beforePopState" in router) {
2560
- router[replace ? "replace" : "push"](href, as, {
2561
- shallow,
2562
- locale,
2563
- scroll: routerScroll
2564
- });
2565
- } else {
2566
- router[replace ? "replace" : "push"](as || href, {
2567
- scroll: routerScroll
2568
- });
2569
- }
2570
- };
2571
- navigate();
2572
- }
2573
- function formatStringOrUrl(urlObjOrString) {
2574
- if (typeof urlObjOrString === "string") {
2575
- return urlObjOrString;
2576
- }
2577
- return (0, _formaturl.formatUrl)(urlObjOrString);
2578
- }
2579
- const Link2 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
2580
- let children;
2581
- const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, ...restProps } = props;
2582
- children = childrenProp;
2583
- if (legacyBehavior && (typeof children === "string" || typeof children === "number")) {
2584
- children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
2585
- children
2586
- });
2587
- }
2588
- const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
2589
- const prefetchEnabled = prefetchProp !== false;
2590
- if (process.env.NODE_ENV !== "production") {
2591
- let createPropError = function(args) {
2592
- return Object.defineProperty(new Error("Failed prop type: The prop `" + args.key + "` expects a " + args.expected + " in `<Link>`, but got `" + args.actual + "` instead." + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
2593
- value: "E319",
2594
- enumerable: false,
2595
- configurable: true
2596
- });
2597
- };
2598
- const requiredPropsGuard = {
2599
- href: true
2600
- };
2601
- const requiredProps = Object.keys(requiredPropsGuard);
2602
- requiredProps.forEach((key) => {
2603
- if (key === "href") {
2604
- if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") {
2605
- throw createPropError({
2606
- key,
2607
- expected: "`string` or `object`",
2608
- actual: props[key] === null ? "null" : typeof props[key]
2609
- });
2610
- }
2611
- }
2612
- });
2613
- const optionalPropsGuard = {
2614
- as: true,
2615
- replace: true,
2616
- scroll: true,
2617
- shallow: true,
2618
- passHref: true,
2619
- prefetch: true,
2620
- locale: true,
2621
- onClick: true,
2622
- onMouseEnter: true,
2623
- onTouchStart: true,
2624
- legacyBehavior: true,
2625
- onNavigate: true
2626
- };
2627
- const optionalProps = Object.keys(optionalPropsGuard);
2628
- optionalProps.forEach((key) => {
2629
- const valType = typeof props[key];
2630
- if (key === "as") {
2631
- if (props[key] && valType !== "string" && valType !== "object") {
2632
- throw createPropError({
2633
- key,
2634
- expected: "`string` or `object`",
2635
- actual: valType
2636
- });
2637
- }
2638
- } else if (key === "locale") {
2639
- if (props[key] && valType !== "string") {
2640
- throw createPropError({
2641
- key,
2642
- expected: "`string`",
2643
- actual: valType
2644
- });
2645
- }
2646
- } else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
2647
- if (props[key] && valType !== "function") {
2648
- throw createPropError({
2649
- key,
2650
- expected: "`function`",
2651
- actual: valType
2652
- });
2653
- }
2654
- } else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
2655
- if (props[key] != null && valType !== "boolean") {
2656
- throw createPropError({
2657
- key,
2658
- expected: "`boolean`",
2659
- actual: valType
2660
- });
2661
- }
2662
- } else if (key === "prefetch") {
2663
- if (props[key] != null && valType !== "boolean" && props[key] !== "auto") {
2664
- throw createPropError({
2665
- key,
2666
- expected: '`boolean | "auto"`',
2667
- actual: valType
2668
- });
2669
- }
2670
- } else ;
2671
- });
2672
- }
2673
- const { href, as } = _react.default.useMemo(() => {
2674
- if (!router) {
2675
- const resolvedHref2 = formatStringOrUrl(hrefProp);
2676
- return {
2677
- href: resolvedHref2,
2678
- as: asProp ? formatStringOrUrl(asProp) : resolvedHref2
2679
- };
2680
- }
2681
- const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
2682
- return {
2683
- href: resolvedHref,
2684
- as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
2685
- };
2686
- }, [
2687
- router,
2688
- hrefProp,
2689
- asProp
2690
- ]);
2691
- const previousHref = _react.default.useRef(href);
2692
- const previousAs = _react.default.useRef(as);
2693
- let child;
2694
- if (legacyBehavior) {
2695
- if (process.env.NODE_ENV === "development") {
2696
- if (onClick) {
2697
- console.warn('"onClick" was passed to <Link> with `href` of `' + hrefProp + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link');
2698
- }
2699
- if (onMouseEnterProp) {
2700
- console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + hrefProp + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
2701
- }
2702
- try {
2703
- child = _react.default.Children.only(children);
2704
- } catch (err) {
2705
- if (!children) {
2706
- throw Object.defineProperty(new Error("No children were passed to <Link> with `href` of `" + hrefProp + "` but one child is required https://nextjs.org/docs/messages/link-no-children"), "__NEXT_ERROR_CODE", {
2707
- value: "E320",
2708
- enumerable: false,
2709
- configurable: true
2710
- });
2711
- }
2712
- throw Object.defineProperty(new Error("Multiple children were passed to <Link> with `href` of `" + hrefProp + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
2713
- value: "E266",
2714
- enumerable: false,
2715
- configurable: true
2716
- });
2717
- }
2718
- } else {
2719
- child = _react.default.Children.only(children);
2720
- }
2721
- } else {
2722
- if (process.env.NODE_ENV === "development") {
2723
- if ((children == null ? void 0 : children.type) === "a") {
2724
- throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
2725
- value: "E209",
2726
- enumerable: false,
2727
- configurable: true
2728
- });
2729
- }
2730
- }
2731
- }
2732
- const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
2733
- const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({
2734
- rootMargin: "200px"
2735
- });
2736
- const setIntersectionWithResetRef = _react.default.useCallback((el) => {
2737
- if (previousAs.current !== as || previousHref.current !== href) {
2738
- resetVisible();
2739
- previousAs.current = as;
2740
- previousHref.current = href;
2741
- }
2742
- setIntersectionRef(el);
2743
- }, [
2744
- as,
2745
- href,
2746
- resetVisible,
2747
- setIntersectionRef
2748
- ]);
2749
- const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
2750
- _react.default.useEffect(() => {
2751
- if (process.env.NODE_ENV !== "production") {
2752
- return;
2753
- }
2754
- if (!router) {
2755
- return;
2756
- }
2757
- if (!isVisible || !prefetchEnabled) {
2758
- return;
2759
- }
2760
- prefetch(router, href, as, {
2761
- locale
2762
- });
2763
- }, [
2764
- as,
2765
- href,
2766
- isVisible,
2767
- locale,
2768
- prefetchEnabled,
2769
- router == null ? void 0 : router.locale,
2770
- router
2771
- ]);
2772
- const childProps = {
2773
- ref: setRef,
2774
- onClick(e) {
2775
- if (process.env.NODE_ENV !== "production") {
2776
- if (!e) {
2777
- throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'), "__NEXT_ERROR_CODE", {
2778
- value: "E312",
2779
- enumerable: false,
2780
- configurable: true
2781
- });
2782
- }
2783
- }
2784
- if (!legacyBehavior && typeof onClick === "function") {
2785
- onClick(e);
2786
- }
2787
- if (legacyBehavior && child.props && typeof child.props.onClick === "function") {
2788
- child.props.onClick(e);
2789
- }
2790
- if (!router) {
2791
- return;
2792
- }
2793
- if (e.defaultPrevented) {
2794
- return;
2795
- }
2796
- linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
2797
- },
2798
- onMouseEnter(e) {
2799
- if (!legacyBehavior && typeof onMouseEnterProp === "function") {
2800
- onMouseEnterProp(e);
2801
- }
2802
- if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") {
2803
- child.props.onMouseEnter(e);
2804
- }
2805
- if (!router) {
2806
- return;
2807
- }
2808
- prefetch(router, href, as, {
2809
- locale,
2810
- priority: true,
2811
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
2812
- bypassPrefetchedCheck: true
2813
- });
2814
- },
2815
- onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
2816
- if (!legacyBehavior && typeof onTouchStartProp === "function") {
2817
- onTouchStartProp(e);
2818
- }
2819
- if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") {
2820
- child.props.onTouchStart(e);
2821
- }
2822
- if (!router) {
2823
- return;
2824
- }
2825
- prefetch(router, href, as, {
2826
- locale,
2827
- priority: true,
2828
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
2829
- bypassPrefetchedCheck: true
2830
- });
2831
- }
2832
- };
2833
- if ((0, _utils.isAbsoluteUrl)(as)) {
2834
- childProps.href = as;
2835
- } else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
2836
- const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
2837
- const localeDomain = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales);
2838
- childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
2839
- }
2840
- if (legacyBehavior) {
2841
- if (process.env.NODE_ENV === "development") {
2842
- (0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
2843
- }
2844
- return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
2845
- }
2846
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
2847
- ...restProps,
2848
- ...childProps,
2849
- children
2850
- });
2851
- });
2852
- const LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({
2853
- // We do not support link status in the Pages Router, so we always return false
2854
- pending: false
2855
- });
2856
- const useLinkStatus = () => {
2857
- return (0, _react.useContext)(LinkStatusContext);
2858
- };
2859
- const _default = Link2;
2860
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2861
- Object.defineProperty(exports.default, "__esModule", { value: true });
2862
- Object.assign(exports.default, exports);
2863
- module.exports = exports.default;
2864
- }
2865
- })(link$1, link$1.exports);
2866
- var linkExports = link$1.exports;
2867
- var link = linkExports;
2868
- const Link = /* @__PURE__ */ getDefaultExportFromCjs(link);
2869
- export {
2870
- Link as L,
2871
- _interop_require_default$1 as _,
2872
- _interop_require_wildcard$1 as a,
2873
- requireUseMergedRef as b,
2874
- getDefaultExportFromCjs as g,
2875
- requireRouterContext_sharedRuntime as r,
2876
- segment as s
2877
- };
2878
- //# sourceMappingURL=link-Bik5xH00.js.map