zudoku 0.42.0 → 0.42.2

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 (552) hide show
  1. package/dist/app/main.js +0 -6
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +288 -420
  4. package/dist/config/validators/common.js +0 -10
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +108 -161
  7. package/dist/index.d.ts +0 -1
  8. package/dist/index.js +0 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  11. package/dist/lib/authentication/components/SignIn.js +5 -2
  12. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  13. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  14. package/dist/lib/authentication/components/SignUp.js +4 -1
  15. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  16. package/dist/lib/components/Markdown.d.ts +1 -3
  17. package/dist/lib/components/Markdown.js +14 -8
  18. package/dist/lib/components/Markdown.js.map +1 -1
  19. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  20. package/dist/lib/components/index.d.ts +1 -2
  21. package/dist/lib/core/ZudokuContext.d.ts +0 -7
  22. package/dist/lib/core/ZudokuContext.js.map +1 -1
  23. package/dist/lib/errors/ErrorAlert.js +1 -1
  24. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  25. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  26. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  27. package/dist/lib/plugins/openapi/ParameterListItem.js +8 -1
  28. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  30. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  31. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  32. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  33. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +5 -3
  34. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  35. package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
  36. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  37. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  38. package/dist/lib/plugins/openapi/schema/utils.js +3 -0
  39. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  40. package/dist/lib/ui/Callout.js +1 -1
  41. package/dist/lib/ui/Callout.js.map +1 -1
  42. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -10
  43. package/dist/lib/ui/SyntaxHighlight.js +60 -10
  44. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  45. package/dist/lib/util/MdxComponents.d.ts +3 -9
  46. package/dist/lib/util/MdxComponents.js +10 -9
  47. package/dist/lib/util/MdxComponents.js.map +1 -1
  48. package/dist/vite/config.js +0 -34
  49. package/dist/vite/config.js.map +1 -1
  50. package/dist/vite/plugin-mdx.js +11 -4
  51. package/dist/vite/plugin-mdx.js.map +1 -1
  52. package/dist/vite/plugin.js +0 -2
  53. package/dist/vite/plugin.js.map +1 -1
  54. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  55. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  56. package/lib/{Button-Bdk_Ij3U.js → Button-BBNrKpQd.js} +3 -3
  57. package/lib/{Button-Bdk_Ij3U.js.map → Button-BBNrKpQd.js.map} +1 -1
  58. package/lib/{Callout-XadUe37J.js → Callout-D3Ja4OPX.js} +12 -12
  59. package/lib/{Callout-XadUe37J.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  60. package/lib/Card-BtheiD7j.js +61 -0
  61. package/lib/Card-BtheiD7j.js.map +1 -0
  62. package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-D06WK_Wo.js} +2 -2
  63. package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  64. package/lib/{Dialog-CNf2oWXG.js → Dialog-ByYz4ABw.js} +2 -2
  65. package/lib/{Dialog-CNf2oWXG.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  66. package/lib/{Drawer-BPBxzel2.js → Drawer-CEwbkLDb.js} +25 -25
  67. package/lib/{Drawer-BPBxzel2.js.map → Drawer-CEwbkLDb.js.map} +1 -1
  68. package/lib/Markdown-mFpg_n9p.js +17125 -0
  69. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  70. package/lib/MdxPage-Cm7atiW3.js +85 -0
  71. package/lib/{MdxPage-Dxbq6lFr.js.map → MdxPage-Cm7atiW3.js.map} +1 -1
  72. package/lib/{OasProvider-DKpTJMH2.js → OasProvider-CDtbrUG_.js} +4 -4
  73. package/lib/{OasProvider-DKpTJMH2.js.map → OasProvider-CDtbrUG_.js.map} +1 -1
  74. package/lib/{OperationList-DVOyNeno.js → OperationList-DTyJIxKW.js} +1967 -1914
  75. package/lib/OperationList-DTyJIxKW.js.map +1 -0
  76. package/lib/{Pagination-COMmV-g9.js → Pagination-DLPL5z77.js} +4 -4
  77. package/lib/{Pagination-COMmV-g9.js.map → Pagination-DLPL5z77.js.map} +1 -1
  78. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  79. package/lib/{RouteGuard-CGqivwrh.js.map → RouteGuard-DRtEu9nh.js.map} +1 -1
  80. package/lib/{SchemaList-BTWzXyYQ.js → SchemaList-B9lvArDe.js} +44 -43
  81. package/lib/{SchemaList-BTWzXyYQ.js.map → SchemaList-B9lvArDe.js.map} +1 -1
  82. package/lib/{SchemaView-DNKKW3nB.js → SchemaView-DXjql-Bl.js} +111 -108
  83. package/lib/SchemaView-DXjql-Bl.js.map +1 -0
  84. package/lib/Select-CT64Ou40.js +223 -0
  85. package/lib/{Select-m-ITdvFa.js.map → Select-CT64Ou40.js.map} +1 -1
  86. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  87. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  88. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  89. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  90. package/lib/{Toc-CzMOgcPS.js → Toc-D_tV8_Ri.js} +3 -3
  91. package/lib/{Toc-CzMOgcPS.js.map → Toc-D_tV8_Ri.js.map} +1 -1
  92. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js → chunk-BAXFHI7N-BVBOl9s0.js} +264 -257
  93. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js.map → chunk-BAXFHI7N-BVBOl9s0.js.map} +1 -1
  94. package/lib/{circular-D__GEK2G.js → circular-ByJI6Mci.js} +47 -47
  95. package/lib/{circular-D__GEK2G.js.map → circular-ByJI6Mci.js.map} +1 -1
  96. package/lib/{cn-CwJPJKOE.js → cn-qaFjX9_3.js} +29 -28
  97. package/lib/{cn-CwJPJKOE.js.map → cn-qaFjX9_3.js.map} +1 -1
  98. package/lib/{createServer-B4l2NSkt.js → createServer-IW7v5hWm.js} +3868 -3724
  99. package/lib/{createServer-B4l2NSkt.js.map → createServer-IW7v5hWm.js.map} +1 -1
  100. package/lib/hook-CldJlP5c.js +1478 -0
  101. package/lib/{hook-CyNmcNr8.js.map → hook-CldJlP5c.js.map} +1 -1
  102. package/lib/{index-Z13x6tPX.js → index-CPNSgwSb.js} +5 -5
  103. package/lib/{index-Z13x6tPX.js.map → index-CPNSgwSb.js.map} +1 -1
  104. package/lib/{index-CCS3ifKs.js → index-Ckl3s_w-.js} +763 -769
  105. package/lib/index-Ckl3s_w-.js.map +1 -0
  106. package/lib/{index-CrcNWbel.js → index-CuBIgTKC.js} +9 -9
  107. package/lib/{index-CrcNWbel.js.map → index-CuBIgTKC.js.map} +1 -1
  108. package/lib/{index-zddirpDj.js → index-DcHeSvkE.js} +609 -581
  109. package/lib/{index-zddirpDj.js.map → index-DcHeSvkE.js.map} +1 -1
  110. package/lib/index-DnQftvP4.js +5031 -0
  111. package/lib/{index-BcMPFdRU.js.map → index-DnQftvP4.js.map} +1 -1
  112. package/lib/{index--oeBayMa.js → index-DwT-v3zK.js} +2 -2
  113. package/lib/{index--oeBayMa.js.map → index-DwT-v3zK.js.map} +1 -1
  114. package/lib/{index-BvvmIczU.js → index-LNp6rxyU.js} +2 -2
  115. package/lib/{index-BvvmIczU.js.map → index-LNp6rxyU.js.map} +1 -1
  116. package/lib/invariant-Caa8-XvF.js +26 -0
  117. package/lib/{invariant-D3QcI9fa.js.map → invariant-Caa8-XvF.js.map} +1 -1
  118. package/lib/mutation-DBQh7AOZ.js +211 -0
  119. package/lib/{mutation-narTVsCe.js.map → mutation-DBQh7AOZ.js.map} +1 -1
  120. package/lib/prism-bash.min-HHIMdNJ_.js +7 -0
  121. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -0
  122. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  123. package/lib/prism-csharp.min-C43x1RY2.js.map +1 -0
  124. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  125. package/lib/prism-java.min-CQzr40NQ.js.map +1 -0
  126. package/lib/prism-javascript.min-CEqHqgbm.js +9 -0
  127. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -0
  128. package/lib/prism-json.min-B1GJqK1k.js +2 -0
  129. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  130. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  131. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  132. package/lib/prism-markdown.min-C0Qn0m-5.js +61 -0
  133. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -0
  134. package/lib/prism-markup-BNGj0Tvm.js +174 -0
  135. package/lib/prism-markup-BNGj0Tvm.js.map +1 -0
  136. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  137. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  138. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  139. package/lib/prism-ruby.min-L9OdQ6tU.js.map +1 -0
  140. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  141. package/lib/prism-typescript.min-qTySPvCh.js.map +1 -0
  142. package/lib/processors/removeParameters.js +28 -27
  143. package/lib/processors/removeParameters.js.map +1 -1
  144. package/lib/processors/removePaths.js +17 -17
  145. package/lib/processors/removePaths.js.map +1 -1
  146. package/lib/ui/Accordion.js +1 -1
  147. package/lib/ui/ActionButton.js +2 -2
  148. package/lib/ui/Alert.js +2 -2
  149. package/lib/ui/AlertDialog.js +1 -1
  150. package/lib/ui/Badge.js +2 -2
  151. package/lib/ui/Breadcrumb.js +1 -1
  152. package/lib/ui/Button.js +2 -2
  153. package/lib/ui/Callout.js +7 -7
  154. package/lib/ui/Callout.js.map +1 -1
  155. package/lib/ui/Card.js +1 -1
  156. package/lib/ui/Carousel.js +175 -175
  157. package/lib/ui/Carousel.js.map +1 -1
  158. package/lib/ui/Checkbox.js +1 -1
  159. package/lib/ui/Command.js +58 -58
  160. package/lib/ui/Command.js.map +1 -1
  161. package/lib/ui/Dialog.js +1 -1
  162. package/lib/ui/Drawer.js +2 -2
  163. package/lib/ui/DropdownMenu.js +1 -1
  164. package/lib/ui/Form.js +1 -1
  165. package/lib/ui/HoverCard.js +1 -1
  166. package/lib/ui/Input.js +1 -1
  167. package/lib/ui/Label.js +2 -2
  168. package/lib/ui/Pagination.js +1 -1
  169. package/lib/ui/Popover.js +1 -1
  170. package/lib/ui/Progress.js +1 -1
  171. package/lib/ui/RadioGroup.js +1 -1
  172. package/lib/ui/ScrollArea.js +1 -1
  173. package/lib/ui/Select.js +1 -1
  174. package/lib/ui/Skeleton.js +1 -1
  175. package/lib/ui/Slider.js +1 -1
  176. package/lib/ui/Switch.js +1 -1
  177. package/lib/ui/SyntaxHighlight.js +6 -4
  178. package/lib/ui/SyntaxHighlight.js.map +1 -1
  179. package/lib/ui/Tabs.js +1 -1
  180. package/lib/ui/Textarea.js +1 -1
  181. package/lib/ui/Toggle.js +2 -2
  182. package/lib/ui/ToggleGroup.js +1 -1
  183. package/lib/ui/Tooltip.js +1 -1
  184. package/lib/ui/util.js +1 -1
  185. package/lib/{useExposedProps-n1u49409.js → useExposedProps-DbIZXspi.js} +2 -2
  186. package/lib/{useExposedProps-n1u49409.js.map → useExposedProps-DbIZXspi.js.map} +1 -1
  187. package/lib/zudoku.auth-auth0.js +31 -28
  188. package/lib/zudoku.auth-auth0.js.map +1 -1
  189. package/lib/zudoku.auth-clerk.js +68 -62
  190. package/lib/zudoku.auth-clerk.js.map +1 -1
  191. package/lib/zudoku.auth-openid.js +483 -475
  192. package/lib/zudoku.auth-openid.js.map +1 -1
  193. package/lib/zudoku.components.js +7 -7
  194. package/lib/zudoku.hooks.js +2 -2
  195. package/lib/zudoku.plugin-api-catalog.js +45 -45
  196. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  197. package/lib/zudoku.plugin-api-keys.js +6 -6
  198. package/lib/zudoku.plugin-custom-pages.js +3 -3
  199. package/lib/zudoku.plugin-markdown.js +28 -25
  200. package/lib/zudoku.plugin-markdown.js.map +1 -1
  201. package/lib/zudoku.plugin-openapi.js +3 -3
  202. package/lib/zudoku.plugin-redirect.js +1 -1
  203. package/lib/zudoku.plugin-search-inkeep.js +27 -26
  204. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  205. package/lib/zudoku.plugin-search-pagefind.js +110 -107
  206. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  207. package/package.json +7 -17
  208. package/src/app/main.css +3 -53
  209. package/src/app/main.tsx +0 -7
  210. package/src/lib/authentication/components/SignIn.tsx +35 -2
  211. package/src/lib/authentication/components/SignUp.tsx +35 -1
  212. package/src/lib/components/Markdown.tsx +24 -29
  213. package/src/lib/core/ZudokuContext.ts +0 -4
  214. package/src/lib/errors/ErrorAlert.tsx +1 -1
  215. package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -5
  216. package/src/lib/plugins/openapi/ParameterListItem.tsx +30 -0
  217. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  218. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  219. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +7 -4
  220. package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -6
  221. package/src/lib/plugins/openapi/schema/utils.ts +5 -0
  222. package/src/lib/ui/Callout.tsx +1 -1
  223. package/src/lib/ui/SyntaxHighlight.tsx +182 -18
  224. package/src/lib/util/MdxComponents.tsx +14 -27
  225. package/dist/lib/shiki.d.ts +0 -35
  226. package/dist/lib/shiki.js +0 -103
  227. package/dist/lib/shiki.js.map +0 -1
  228. package/dist/lib/ui/CodeBlock.d.ts +0 -16
  229. package/dist/lib/ui/CodeBlock.js +0 -18
  230. package/dist/lib/ui/CodeBlock.js.map +0 -1
  231. package/dist/vite/plugin-shiki-register.d.ts +0 -3
  232. package/dist/vite/plugin-shiki-register.js +0 -38
  233. package/dist/vite/plugin-shiki-register.js.map +0 -1
  234. package/lib/AuthenticationPlugin-EeQpQI3D.js +0 -55
  235. package/lib/AuthenticationPlugin-EeQpQI3D.js.map +0 -1
  236. package/lib/Markdown-1l-DtDbF.js +0 -7688
  237. package/lib/Markdown-1l-DtDbF.js.map +0 -1
  238. package/lib/MdxPage-Dxbq6lFr.js +0 -84
  239. package/lib/OperationList-DVOyNeno.js.map +0 -1
  240. package/lib/RouteGuard-CGqivwrh.js +0 -733
  241. package/lib/SchemaView-DNKKW3nB.js.map +0 -1
  242. package/lib/Select-m-ITdvFa.js +0 -211
  243. package/lib/SlotletProvider-DhK1Fmm9.js +0 -254
  244. package/lib/SlotletProvider-DhK1Fmm9.js.map +0 -1
  245. package/lib/SyntaxHighlight-CJ6FoYvt.js +0 -9104
  246. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +0 -1
  247. package/lib/hook-CyNmcNr8.js +0 -1443
  248. package/lib/index-BcMPFdRU.js +0 -4975
  249. package/lib/index-CCS3ifKs.js.map +0 -1
  250. package/lib/invariant-D3QcI9fa.js +0 -22
  251. package/lib/mutation-narTVsCe.js +0 -196
  252. package/lib/ui/CodeBlock.js +0 -83
  253. package/lib/ui/CodeBlock.js.map +0 -1
  254. package/src/lib/shiki.ts +0 -129
  255. package/src/lib/ui/CodeBlock.tsx +0 -102
  256. package/src/shiki/langs/abap.js +0 -1
  257. package/src/shiki/langs/actionscript-3.js +0 -1
  258. package/src/shiki/langs/ada.js +0 -1
  259. package/src/shiki/langs/angular-expression.js +0 -1
  260. package/src/shiki/langs/angular-html.js +0 -1
  261. package/src/shiki/langs/angular-inline-style.js +0 -1
  262. package/src/shiki/langs/angular-inline-template.js +0 -1
  263. package/src/shiki/langs/angular-let-declaration.js +0 -1
  264. package/src/shiki/langs/angular-template-blocks.js +0 -1
  265. package/src/shiki/langs/angular-template.js +0 -1
  266. package/src/shiki/langs/angular-ts.js +0 -1
  267. package/src/shiki/langs/apache.js +0 -1
  268. package/src/shiki/langs/apex.js +0 -1
  269. package/src/shiki/langs/apl.js +0 -1
  270. package/src/shiki/langs/applescript.js +0 -1
  271. package/src/shiki/langs/ara.js +0 -1
  272. package/src/shiki/langs/asciidoc.js +0 -1
  273. package/src/shiki/langs/asm.js +0 -1
  274. package/src/shiki/langs/astro.js +0 -1
  275. package/src/shiki/langs/awk.js +0 -1
  276. package/src/shiki/langs/ballerina.js +0 -1
  277. package/src/shiki/langs/bat.js +0 -1
  278. package/src/shiki/langs/beancount.js +0 -1
  279. package/src/shiki/langs/berry.js +0 -1
  280. package/src/shiki/langs/bibtex.js +0 -1
  281. package/src/shiki/langs/bicep.js +0 -1
  282. package/src/shiki/langs/blade.js +0 -1
  283. package/src/shiki/langs/bsl.js +0 -1
  284. package/src/shiki/langs/c.js +0 -1
  285. package/src/shiki/langs/cadence.js +0 -1
  286. package/src/shiki/langs/cairo.js +0 -1
  287. package/src/shiki/langs/clarity.js +0 -1
  288. package/src/shiki/langs/clojure.js +0 -1
  289. package/src/shiki/langs/cmake.js +0 -1
  290. package/src/shiki/langs/cobol.js +0 -1
  291. package/src/shiki/langs/codeowners.js +0 -1
  292. package/src/shiki/langs/codeql.js +0 -1
  293. package/src/shiki/langs/coffee.js +0 -1
  294. package/src/shiki/langs/common-lisp.js +0 -1
  295. package/src/shiki/langs/coq.js +0 -1
  296. package/src/shiki/langs/cpp-macro.js +0 -1
  297. package/src/shiki/langs/cpp.js +0 -1
  298. package/src/shiki/langs/crystal.js +0 -1
  299. package/src/shiki/langs/csharp.js +0 -1
  300. package/src/shiki/langs/css.js +0 -1
  301. package/src/shiki/langs/csv.js +0 -1
  302. package/src/shiki/langs/cue.js +0 -1
  303. package/src/shiki/langs/cypher.js +0 -1
  304. package/src/shiki/langs/d.js +0 -1
  305. package/src/shiki/langs/dart.js +0 -1
  306. package/src/shiki/langs/dax.js +0 -1
  307. package/src/shiki/langs/desktop.js +0 -1
  308. package/src/shiki/langs/diff.js +0 -1
  309. package/src/shiki/langs/docker.js +0 -1
  310. package/src/shiki/langs/dotenv.js +0 -1
  311. package/src/shiki/langs/dream-maker.js +0 -1
  312. package/src/shiki/langs/edge.js +0 -1
  313. package/src/shiki/langs/elixir.js +0 -1
  314. package/src/shiki/langs/elm.js +0 -1
  315. package/src/shiki/langs/emacs-lisp.js +0 -1
  316. package/src/shiki/langs/erb.js +0 -1
  317. package/src/shiki/langs/erlang.js +0 -1
  318. package/src/shiki/langs/es-tag-css.js +0 -1
  319. package/src/shiki/langs/es-tag-glsl.js +0 -1
  320. package/src/shiki/langs/es-tag-html.js +0 -1
  321. package/src/shiki/langs/es-tag-sql.js +0 -1
  322. package/src/shiki/langs/es-tag-xml.js +0 -1
  323. package/src/shiki/langs/fennel.js +0 -1
  324. package/src/shiki/langs/fish.js +0 -1
  325. package/src/shiki/langs/fluent.js +0 -1
  326. package/src/shiki/langs/fortran-fixed-form.js +0 -1
  327. package/src/shiki/langs/fortran-free-form.js +0 -1
  328. package/src/shiki/langs/fsharp.js +0 -1
  329. package/src/shiki/langs/gdresource.js +0 -1
  330. package/src/shiki/langs/gdscript.js +0 -1
  331. package/src/shiki/langs/gdshader.js +0 -1
  332. package/src/shiki/langs/genie.js +0 -1
  333. package/src/shiki/langs/gherkin.js +0 -1
  334. package/src/shiki/langs/git-commit.js +0 -1
  335. package/src/shiki/langs/git-rebase.js +0 -1
  336. package/src/shiki/langs/gleam.js +0 -1
  337. package/src/shiki/langs/glimmer-js.js +0 -1
  338. package/src/shiki/langs/glimmer-ts.js +0 -1
  339. package/src/shiki/langs/glsl.js +0 -1
  340. package/src/shiki/langs/gnuplot.js +0 -1
  341. package/src/shiki/langs/go.js +0 -1
  342. package/src/shiki/langs/graphql.js +0 -1
  343. package/src/shiki/langs/groovy.js +0 -1
  344. package/src/shiki/langs/hack.js +0 -1
  345. package/src/shiki/langs/haml.js +0 -1
  346. package/src/shiki/langs/handlebars.js +0 -1
  347. package/src/shiki/langs/haskell.js +0 -1
  348. package/src/shiki/langs/haxe.js +0 -1
  349. package/src/shiki/langs/hcl.js +0 -1
  350. package/src/shiki/langs/hjson.js +0 -1
  351. package/src/shiki/langs/hlsl.js +0 -1
  352. package/src/shiki/langs/html-derivative.js +0 -1
  353. package/src/shiki/langs/html.js +0 -1
  354. package/src/shiki/langs/http.js +0 -1
  355. package/src/shiki/langs/hxml.js +0 -1
  356. package/src/shiki/langs/hy.js +0 -1
  357. package/src/shiki/langs/imba.js +0 -1
  358. package/src/shiki/langs/ini.js +0 -1
  359. package/src/shiki/langs/java.js +0 -1
  360. package/src/shiki/langs/javascript.js +0 -1
  361. package/src/shiki/langs/jinja-html.js +0 -1
  362. package/src/shiki/langs/jinja.js +0 -1
  363. package/src/shiki/langs/jison.js +0 -1
  364. package/src/shiki/langs/json.js +0 -1
  365. package/src/shiki/langs/json5.js +0 -1
  366. package/src/shiki/langs/jsonc.js +0 -1
  367. package/src/shiki/langs/jsonl.js +0 -1
  368. package/src/shiki/langs/jsonnet.js +0 -1
  369. package/src/shiki/langs/jssm.js +0 -1
  370. package/src/shiki/langs/jsx.js +0 -1
  371. package/src/shiki/langs/julia.js +0 -1
  372. package/src/shiki/langs/kotlin.js +0 -1
  373. package/src/shiki/langs/kusto.js +0 -1
  374. package/src/shiki/langs/latex.js +0 -1
  375. package/src/shiki/langs/lean.js +0 -1
  376. package/src/shiki/langs/less.js +0 -1
  377. package/src/shiki/langs/liquid.js +0 -1
  378. package/src/shiki/langs/llvm.js +0 -1
  379. package/src/shiki/langs/log.js +0 -1
  380. package/src/shiki/langs/logo.js +0 -1
  381. package/src/shiki/langs/lua.js +0 -1
  382. package/src/shiki/langs/luau.js +0 -1
  383. package/src/shiki/langs/make.js +0 -1
  384. package/src/shiki/langs/markdown-vue.js +0 -1
  385. package/src/shiki/langs/markdown.js +0 -1
  386. package/src/shiki/langs/marko.js +0 -1
  387. package/src/shiki/langs/matlab.js +0 -1
  388. package/src/shiki/langs/mdc.js +0 -1
  389. package/src/shiki/langs/mdx.js +0 -1
  390. package/src/shiki/langs/mermaid.js +0 -1
  391. package/src/shiki/langs/mipsasm.js +0 -1
  392. package/src/shiki/langs/mojo.js +0 -1
  393. package/src/shiki/langs/move.js +0 -1
  394. package/src/shiki/langs/narrat.js +0 -1
  395. package/src/shiki/langs/nextflow.js +0 -1
  396. package/src/shiki/langs/nginx.js +0 -1
  397. package/src/shiki/langs/nim.js +0 -1
  398. package/src/shiki/langs/nix.js +0 -1
  399. package/src/shiki/langs/nushell.js +0 -1
  400. package/src/shiki/langs/objective-c.js +0 -1
  401. package/src/shiki/langs/objective-cpp.js +0 -1
  402. package/src/shiki/langs/ocaml.js +0 -1
  403. package/src/shiki/langs/pascal.js +0 -1
  404. package/src/shiki/langs/perl.js +0 -1
  405. package/src/shiki/langs/php.js +0 -1
  406. package/src/shiki/langs/plsql.js +0 -1
  407. package/src/shiki/langs/po.js +0 -1
  408. package/src/shiki/langs/polar.js +0 -1
  409. package/src/shiki/langs/postcss.js +0 -1
  410. package/src/shiki/langs/powerquery.js +0 -1
  411. package/src/shiki/langs/powershell.js +0 -1
  412. package/src/shiki/langs/prisma.js +0 -1
  413. package/src/shiki/langs/prolog.js +0 -1
  414. package/src/shiki/langs/proto.js +0 -1
  415. package/src/shiki/langs/pug.js +0 -1
  416. package/src/shiki/langs/puppet.js +0 -1
  417. package/src/shiki/langs/purescript.js +0 -1
  418. package/src/shiki/langs/python.js +0 -1
  419. package/src/shiki/langs/qml.js +0 -1
  420. package/src/shiki/langs/qmldir.js +0 -1
  421. package/src/shiki/langs/qss.js +0 -1
  422. package/src/shiki/langs/r.js +0 -1
  423. package/src/shiki/langs/racket.js +0 -1
  424. package/src/shiki/langs/raku.js +0 -1
  425. package/src/shiki/langs/razor.js +0 -1
  426. package/src/shiki/langs/reg.js +0 -1
  427. package/src/shiki/langs/regexp.js +0 -1
  428. package/src/shiki/langs/rel.js +0 -1
  429. package/src/shiki/langs/riscv.js +0 -1
  430. package/src/shiki/langs/rst.js +0 -1
  431. package/src/shiki/langs/ruby.js +0 -1
  432. package/src/shiki/langs/rust.js +0 -1
  433. package/src/shiki/langs/sas.js +0 -1
  434. package/src/shiki/langs/sass.js +0 -1
  435. package/src/shiki/langs/scala.js +0 -1
  436. package/src/shiki/langs/scheme.js +0 -1
  437. package/src/shiki/langs/scss.js +0 -1
  438. package/src/shiki/langs/sdbl.js +0 -1
  439. package/src/shiki/langs/shaderlab.js +0 -1
  440. package/src/shiki/langs/shellscript.js +0 -1
  441. package/src/shiki/langs/shellsession.js +0 -1
  442. package/src/shiki/langs/smalltalk.js +0 -1
  443. package/src/shiki/langs/solidity.js +0 -1
  444. package/src/shiki/langs/soy.js +0 -1
  445. package/src/shiki/langs/sparql.js +0 -1
  446. package/src/shiki/langs/splunk.js +0 -1
  447. package/src/shiki/langs/sql.js +0 -1
  448. package/src/shiki/langs/ssh-config.js +0 -1
  449. package/src/shiki/langs/stata.js +0 -1
  450. package/src/shiki/langs/stylus.js +0 -1
  451. package/src/shiki/langs/svelte.js +0 -1
  452. package/src/shiki/langs/swift.js +0 -1
  453. package/src/shiki/langs/system-verilog.js +0 -1
  454. package/src/shiki/langs/systemd.js +0 -1
  455. package/src/shiki/langs/talonscript.js +0 -1
  456. package/src/shiki/langs/tasl.js +0 -1
  457. package/src/shiki/langs/tcl.js +0 -1
  458. package/src/shiki/langs/templ.js +0 -1
  459. package/src/shiki/langs/terraform.js +0 -1
  460. package/src/shiki/langs/tex.js +0 -1
  461. package/src/shiki/langs/toml.js +0 -1
  462. package/src/shiki/langs/ts-tags.js +0 -1
  463. package/src/shiki/langs/tsv.js +0 -1
  464. package/src/shiki/langs/tsx.js +0 -1
  465. package/src/shiki/langs/turtle.js +0 -1
  466. package/src/shiki/langs/twig.js +0 -1
  467. package/src/shiki/langs/typescript.js +0 -1
  468. package/src/shiki/langs/typespec.js +0 -1
  469. package/src/shiki/langs/typst.js +0 -1
  470. package/src/shiki/langs/v.js +0 -1
  471. package/src/shiki/langs/vala.js +0 -1
  472. package/src/shiki/langs/vb.js +0 -1
  473. package/src/shiki/langs/verilog.js +0 -1
  474. package/src/shiki/langs/vhdl.js +0 -1
  475. package/src/shiki/langs/viml.js +0 -1
  476. package/src/shiki/langs/vue-directives.js +0 -1
  477. package/src/shiki/langs/vue-html.js +0 -1
  478. package/src/shiki/langs/vue-interpolations.js +0 -1
  479. package/src/shiki/langs/vue-sfc-style-variable-injection.js +0 -1
  480. package/src/shiki/langs/vue.js +0 -1
  481. package/src/shiki/langs/vyper.js +0 -1
  482. package/src/shiki/langs/wasm.js +0 -1
  483. package/src/shiki/langs/wenyan.js +0 -1
  484. package/src/shiki/langs/wgsl.js +0 -1
  485. package/src/shiki/langs/wikitext.js +0 -1
  486. package/src/shiki/langs/wit.js +0 -1
  487. package/src/shiki/langs/wolfram.js +0 -1
  488. package/src/shiki/langs/xml.js +0 -1
  489. package/src/shiki/langs/xsl.js +0 -1
  490. package/src/shiki/langs/yaml.js +0 -1
  491. package/src/shiki/langs/zenscript.js +0 -1
  492. package/src/shiki/langs/zig.js +0 -1
  493. package/src/shiki/themes/andromeeda.js +0 -1
  494. package/src/shiki/themes/aurora-x.js +0 -1
  495. package/src/shiki/themes/ayu-dark.js +0 -1
  496. package/src/shiki/themes/catppuccin-frappe.js +0 -1
  497. package/src/shiki/themes/catppuccin-latte.js +0 -1
  498. package/src/shiki/themes/catppuccin-macchiato.js +0 -1
  499. package/src/shiki/themes/catppuccin-mocha.js +0 -1
  500. package/src/shiki/themes/dark-plus.js +0 -1
  501. package/src/shiki/themes/dracula-soft.js +0 -1
  502. package/src/shiki/themes/dracula.js +0 -1
  503. package/src/shiki/themes/everforest-dark.js +0 -1
  504. package/src/shiki/themes/everforest-light.js +0 -1
  505. package/src/shiki/themes/github-dark-default.js +0 -1
  506. package/src/shiki/themes/github-dark-dimmed.js +0 -1
  507. package/src/shiki/themes/github-dark-high-contrast.js +0 -1
  508. package/src/shiki/themes/github-dark.js +0 -1
  509. package/src/shiki/themes/github-light-default.js +0 -1
  510. package/src/shiki/themes/github-light-high-contrast.js +0 -1
  511. package/src/shiki/themes/github-light.js +0 -1
  512. package/src/shiki/themes/gruvbox-dark-hard.js +0 -1
  513. package/src/shiki/themes/gruvbox-dark-medium.js +0 -1
  514. package/src/shiki/themes/gruvbox-dark-soft.js +0 -1
  515. package/src/shiki/themes/gruvbox-light-hard.js +0 -1
  516. package/src/shiki/themes/gruvbox-light-medium.js +0 -1
  517. package/src/shiki/themes/gruvbox-light-soft.js +0 -1
  518. package/src/shiki/themes/houston.js +0 -1
  519. package/src/shiki/themes/kanagawa-dragon.js +0 -1
  520. package/src/shiki/themes/kanagawa-lotus.js +0 -1
  521. package/src/shiki/themes/kanagawa-wave.js +0 -1
  522. package/src/shiki/themes/laserwave.js +0 -1
  523. package/src/shiki/themes/light-plus.js +0 -1
  524. package/src/shiki/themes/material-theme-darker.js +0 -1
  525. package/src/shiki/themes/material-theme-lighter.js +0 -1
  526. package/src/shiki/themes/material-theme-ocean.js +0 -1
  527. package/src/shiki/themes/material-theme-palenight.js +0 -1
  528. package/src/shiki/themes/material-theme.js +0 -1
  529. package/src/shiki/themes/min-dark.js +0 -1
  530. package/src/shiki/themes/min-light.js +0 -1
  531. package/src/shiki/themes/monokai.js +0 -1
  532. package/src/shiki/themes/night-owl.js +0 -1
  533. package/src/shiki/themes/nord.js +0 -1
  534. package/src/shiki/themes/one-dark-pro.js +0 -1
  535. package/src/shiki/themes/one-light.js +0 -1
  536. package/src/shiki/themes/plastic.js +0 -1
  537. package/src/shiki/themes/poimandres.js +0 -1
  538. package/src/shiki/themes/red.js +0 -1
  539. package/src/shiki/themes/rose-pine-dawn.js +0 -1
  540. package/src/shiki/themes/rose-pine-moon.js +0 -1
  541. package/src/shiki/themes/rose-pine.js +0 -1
  542. package/src/shiki/themes/slack-dark.js +0 -1
  543. package/src/shiki/themes/slack-ochin.js +0 -1
  544. package/src/shiki/themes/snazzy-light.js +0 -1
  545. package/src/shiki/themes/solarized-dark.js +0 -1
  546. package/src/shiki/themes/solarized-light.js +0 -1
  547. package/src/shiki/themes/synthwave-84.js +0 -1
  548. package/src/shiki/themes/tokyo-night.js +0 -1
  549. package/src/shiki/themes/vesper.js +0 -1
  550. package/src/shiki/themes/vitesse-black.js +0 -1
  551. package/src/shiki/themes/vitesse-dark.js +0 -1
  552. package/src/shiki/themes/vitesse-light.js +0 -1
@@ -1,35 +1,35 @@
1
- import * as i from "react";
1
+ import * as o from "react";
2
2
  var F = {}, ue;
3
3
  function Me() {
4
4
  if (ue) return F;
5
5
  ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = c, F.serialize = s;
6
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, o = /* @__PURE__ */ (() => {
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
7
7
  const d = function() {
8
8
  };
9
9
  return d.prototype = /* @__PURE__ */ Object.create(null), d;
10
10
  })();
11
11
  function c(d, v) {
12
- const f = new o(), w = d.length;
12
+ const f = new i(), w = d.length;
13
13
  if (w < 2)
14
14
  return f;
15
- const E = v?.decode || h;
15
+ const E = (v == null ? void 0 : v.decode) || h;
16
16
  let m = 0;
17
17
  do {
18
18
  const g = d.indexOf("=", m);
19
19
  if (g === -1)
20
20
  break;
21
- const y = d.indexOf(";", m), b = y === -1 ? w : y;
22
- if (g > b) {
21
+ const y = d.indexOf(";", m), R = y === -1 ? w : y;
22
+ if (g > R) {
23
23
  m = d.lastIndexOf(";", g - 1) + 1;
24
24
  continue;
25
25
  }
26
26
  const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
27
27
  if (f[$] === void 0) {
28
- let S = u(d, g + 1, b), P = l(d, b, S);
28
+ let S = u(d, g + 1, R), P = l(d, R, S);
29
29
  const D = E(d.slice(S, P));
30
30
  f[$] = D;
31
31
  }
32
- m = b + 1;
32
+ m = R + 1;
33
33
  } while (m < w);
34
34
  return f;
35
35
  }
@@ -50,7 +50,7 @@ function Me() {
50
50
  return f;
51
51
  }
52
52
  function s(d, v, f) {
53
- const w = f?.encode || encodeURIComponent;
53
+ const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
54
54
  if (!e.test(d))
55
55
  throw new TypeError(`argument name is invalid: ${d}`);
56
56
  const E = w(v);
@@ -135,7 +135,7 @@ Me();
135
135
  *
136
136
  * @license MIT
137
137
  */
138
- function R(e, t) {
138
+ function b(e, t) {
139
139
  if (e === !1 || e === null || typeof e > "u")
140
140
  throw new Error(t);
141
141
  }
@@ -169,14 +169,14 @@ function pe(e, t, n = "/") {
169
169
  return De(e, t, n, !1);
170
170
  }
171
171
  function De(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, o = M(r.pathname || "/", n);
173
- if (o == null)
172
+ let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
173
+ if (i == null)
174
174
  return null;
175
175
  let c = ve(e);
176
176
  Oe(c);
177
177
  let u = null;
178
178
  for (let l = 0; u == null && l < c.length; ++l) {
179
- let s = ye(o);
179
+ let s = ye(i);
180
180
  u = Ve(
181
181
  c[l],
182
182
  s,
@@ -186,47 +186,48 @@ function De(e, t, n, a) {
186
186
  return u;
187
187
  }
188
188
  function ve(e, t = [], n = [], a = "") {
189
- let r = (o, c, u) => {
189
+ let r = (i, c, u) => {
190
190
  let l = {
191
- relativePath: u === void 0 ? o.path || "" : u,
192
- caseSensitive: o.caseSensitive === !0,
191
+ relativePath: u === void 0 ? i.path || "" : u,
192
+ caseSensitive: i.caseSensitive === !0,
193
193
  childrenIndex: c,
194
- route: o
194
+ route: i
195
195
  };
196
- l.relativePath.startsWith("/") && (R(
196
+ l.relativePath.startsWith("/") && (b(
197
197
  l.relativePath.startsWith(a),
198
198
  `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
199
  ), l.relativePath = l.relativePath.slice(a.length));
200
200
  let s = A([a, l.relativePath]), h = n.concat(l);
201
- o.children && o.children.length > 0 && (R(
201
+ i.children && i.children.length > 0 && (b(
202
202
  // Our types know better, but runtime JS may not!
203
203
  // @ts-expect-error
204
- o.index !== !0,
204
+ i.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
206
- ), ve(o.children, t, h, s)), !(o.path == null && !o.index) && t.push({
206
+ ), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
207
207
  path: s,
208
- score: We(s, o.index),
208
+ score: We(s, i.index),
209
209
  routesMeta: h
210
210
  });
211
211
  };
212
- return e.forEach((o, c) => {
213
- if (o.path === "" || !o.path?.includes("?"))
214
- r(o, c);
212
+ return e.forEach((i, c) => {
213
+ var u;
214
+ if (i.path === "" || !((u = i.path) != null && u.includes("?")))
215
+ r(i, c);
215
216
  else
216
- for (let u of ge(o.path))
217
- r(o, c, u);
217
+ for (let l of ge(i.path))
218
+ r(i, c, l);
218
219
  }), t;
219
220
  }
220
221
  function ge(e) {
221
222
  let t = e.split("/");
222
223
  if (t.length === 0) return [];
223
- let [n, ...a] = t, r = n.endsWith("?"), o = n.replace(/\?$/, "");
224
+ let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
224
225
  if (a.length === 0)
225
- return r ? [o, ""] : [o];
226
+ return r ? [i, ""] : [i];
226
227
  let c = ge(a.join("/")), u = [];
227
228
  return u.push(
228
229
  ...c.map(
229
- (l) => l === "" ? o : [o, l].join("/")
230
+ (l) => l === "" ? i : [i, l].join("/")
230
231
  )
231
232
  ), r && u.push(...c), u.map(
232
233
  (l) => e.startsWith("/") && l === "" ? "/" : l
@@ -244,7 +245,7 @@ var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e ==
244
245
  function We(e, t) {
245
246
  let n = e.split("/"), a = n.length;
246
247
  return n.some(ce) && (a += He), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
247
- (r, o) => r + (Ie.test(o) ? _e : o === "" ? Ue : Be),
248
+ (r, i) => r + (Ie.test(i) ? _e : i === "" ? Ue : Be),
248
249
  a
249
250
  );
250
251
  }
@@ -262,9 +263,9 @@ function ze(e, t) {
262
263
  );
263
264
  }
264
265
  function Ve(e, t, n = !1) {
265
- let { routesMeta: a } = e, r = {}, o = "/", c = [];
266
+ let { routesMeta: a } = e, r = {}, i = "/", c = [];
266
267
  for (let u = 0; u < a.length; ++u) {
267
- let l = a[u], s = u === a.length - 1, h = o === "/" ? t : t.slice(o.length) || "/", p = H(
268
+ let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
268
269
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: s },
269
270
  h
270
271
  ), d = l.route;
@@ -280,12 +281,12 @@ function Ve(e, t, n = !1) {
280
281
  Object.assign(r, p.params), c.push({
281
282
  // TODO: Can this as be avoided?
282
283
  params: r,
283
- pathname: A([o, p.pathname]),
284
+ pathname: A([i, p.pathname]),
284
285
  pathnameBase: qe(
285
- A([o, p.pathnameBase])
286
+ A([i, p.pathnameBase])
286
287
  ),
287
288
  route: d
288
- }), p.pathnameBase !== "/" && (o = A([o, p.pathnameBase]));
289
+ }), p.pathnameBase !== "/" && (i = A([i, p.pathnameBase]));
289
290
  }
290
291
  return c;
291
292
  }
@@ -297,20 +298,20 @@ function H(e, t) {
297
298
  e.end
298
299
  ), r = t.match(n);
299
300
  if (!r) return null;
300
- let o = r[0], c = o.replace(/(.)\/+$/, "$1"), u = r.slice(1);
301
+ let i = r[0], c = i.replace(/(.)\/+$/, "$1"), u = r.slice(1);
301
302
  return {
302
303
  params: a.reduce(
303
304
  (s, { paramName: h, isOptional: p }, d) => {
304
305
  if (h === "*") {
305
306
  let f = u[d] || "";
306
- c = o.slice(0, o.length - f.length).replace(/(.)\/+$/, "$1");
307
+ c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
307
308
  }
308
309
  const v = u[d];
309
310
  return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
310
311
  },
311
312
  {}
312
313
  ),
313
- pathname: o,
314
+ pathname: i,
314
315
  pathnameBase: c,
315
316
  pattern: e
316
317
  };
@@ -379,17 +380,17 @@ function Z(e) {
379
380
  }
380
381
  function ee(e, t, n, a = !1) {
381
382
  let r;
382
- typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
383
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
383
384
  !r.pathname || !r.pathname.includes("?"),
384
385
  G("?", "pathname", "search", r)
385
- ), R(
386
+ ), b(
386
387
  !r.pathname || !r.pathname.includes("#"),
387
388
  G("#", "pathname", "hash", r)
388
- ), R(
389
+ ), b(
389
390
  !r.search || !r.search.includes("#"),
390
391
  G("#", "search", "hash", r)
391
392
  ));
392
- let o = e === "" || r.pathname === "", c = o ? "/" : r.pathname, u;
393
+ let i = e === "" || r.pathname === "", c = i ? "/" : r.pathname, u;
393
394
  if (c == null)
394
395
  u = n;
395
396
  else {
@@ -402,7 +403,7 @@ function ee(e, t, n, a = !1) {
402
403
  }
403
404
  u = p >= 0 ? t[p] : "/";
404
405
  }
405
- let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (o || c === ".") && n.endsWith("/");
406
+ let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
406
407
  return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
407
408
  }
408
409
  var A = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, on = (e, t = 302) => {
@@ -428,89 +429,89 @@ var Qe = [
428
429
  ...Ee
429
430
  ];
430
431
  new Set(Qe);
431
- var O = i.createContext(null);
432
+ var O = o.createContext(null);
432
433
  O.displayName = "DataRouter";
433
- var _ = i.createContext(null);
434
+ var _ = o.createContext(null);
434
435
  _.displayName = "DataRouterState";
435
- var J = i.createContext({
436
+ var J = o.createContext({
436
437
  isTransitioning: !1
437
438
  });
438
439
  J.displayName = "ViewTransition";
439
- var te = i.createContext(
440
+ var te = o.createContext(
440
441
  /* @__PURE__ */ new Map()
441
442
  );
442
443
  te.displayName = "Fetchers";
443
- var Ze = i.createContext(null);
444
+ var Ze = o.createContext(null);
444
445
  Ze.displayName = "Await";
445
- var T = i.createContext(
446
+ var T = o.createContext(
446
447
  null
447
448
  );
448
449
  T.displayName = "Navigation";
449
- var K = i.createContext(
450
+ var K = o.createContext(
450
451
  null
451
452
  );
452
453
  K.displayName = "Location";
453
- var k = i.createContext({
454
+ var k = o.createContext({
454
455
  outlet: null,
455
456
  matches: [],
456
457
  isDataRoute: !1
457
458
  });
458
459
  k.displayName = "Route";
459
- var ne = i.createContext(null);
460
+ var ne = o.createContext(null);
460
461
  ne.displayName = "RouteError";
461
462
  function et(e, { relative: t } = {}) {
462
- R(
463
+ b(
463
464
  I(),
464
465
  // TODO: This error is probably because they somehow have 2 versions of the
465
466
  // router loaded. We can help them understand how to avoid that.
466
467
  "useHref() may be used only in the context of a <Router> component."
467
468
  );
468
- let { basename: n, navigator: a } = i.useContext(T), { hash: r, pathname: o, search: c } = W(e, { relative: t }), u = o;
469
- return n !== "/" && (u = o === "/" ? n : A([n, o])), a.createHref({ pathname: u, search: c, hash: r });
469
+ let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: c } = W(e, { relative: t }), u = i;
470
+ return n !== "/" && (u = i === "/" ? n : A([n, i])), a.createHref({ pathname: u, search: c, hash: r });
470
471
  }
471
472
  function I() {
472
- return i.useContext(K) != null;
473
+ return o.useContext(K) != null;
473
474
  }
474
475
  function N() {
475
- return R(
476
+ return b(
476
477
  I(),
477
478
  // TODO: This error is probably because they somehow have 2 versions of the
478
479
  // router loaded. We can help them understand how to avoid that.
479
480
  "useLocation() may be used only in the context of a <Router> component."
480
- ), i.useContext(K).location;
481
+ ), o.useContext(K).location;
481
482
  }
482
483
  function ln(e) {
483
- R(
484
+ b(
484
485
  I(),
485
486
  // TODO: This error is probably because they somehow have 2 versions of the
486
487
  // router loaded. We can help them understand how to avoid that.
487
488
  "useMatch() may be used only in the context of a <Router> component."
488
489
  );
489
490
  let { pathname: t } = N();
490
- return i.useMemo(
491
+ return o.useMemo(
491
492
  () => H(e, ye(t)),
492
493
  [t, e]
493
494
  );
494
495
  }
495
496
  var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
496
497
  function Re(e) {
497
- i.useContext(T).static || i.useLayoutEffect(e);
498
+ o.useContext(T).static || o.useLayoutEffect(e);
498
499
  }
499
500
  function re() {
500
- let { isDataRoute: e } = i.useContext(k);
501
+ let { isDataRoute: e } = o.useContext(k);
501
502
  return e ? ht() : tt();
502
503
  }
503
504
  function tt() {
504
- R(
505
+ b(
505
506
  I(),
506
507
  // TODO: This error is probably because they somehow have 2 versions of the
507
508
  // router loaded. We can help them understand how to avoid that.
508
509
  "useNavigate() may be used only in the context of a <Router> component."
509
510
  );
510
- let e = i.useContext(O), { basename: t, navigator: n } = i.useContext(T), { matches: a } = i.useContext(k), { pathname: r } = N(), o = JSON.stringify(Z(a)), c = i.useRef(!1);
511
+ let e = o.useContext(O), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), c = o.useRef(!1);
511
512
  return Re(() => {
512
513
  c.current = !0;
513
- }), i.useCallback(
514
+ }), o.useCallback(
514
515
  (l, s = {}) => {
515
516
  if (L(c.current, xe), !c.current) return;
516
517
  if (typeof l == "number") {
@@ -519,7 +520,7 @@ function tt() {
519
520
  }
520
521
  let h = ee(
521
522
  l,
522
- JSON.parse(o),
523
+ JSON.parse(i),
523
524
  r,
524
525
  s.relative === "path"
525
526
  );
@@ -532,24 +533,24 @@ function tt() {
532
533
  [
533
534
  t,
534
535
  n,
535
- o,
536
+ i,
536
537
  r,
537
538
  e
538
539
  ]
539
540
  );
540
541
  }
541
- var nt = i.createContext(null);
542
+ var nt = o.createContext(null);
542
543
  function rt(e) {
543
- let t = i.useContext(k).outlet;
544
- return t && /* @__PURE__ */ i.createElement(nt.Provider, { value: e }, t);
544
+ let t = o.useContext(k).outlet;
545
+ return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
545
546
  }
546
547
  function sn() {
547
- let { matches: e } = i.useContext(k), t = e[e.length - 1];
548
+ let { matches: e } = o.useContext(k), t = e[e.length - 1];
548
549
  return t ? t.params : {};
549
550
  }
550
551
  function W(e, { relative: t } = {}) {
551
- let { matches: n } = i.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
552
- return i.useMemo(
552
+ let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
553
+ return o.useMemo(
553
554
  () => ee(
554
555
  e,
555
556
  JSON.parse(r),
@@ -560,13 +561,13 @@ function W(e, { relative: t } = {}) {
560
561
  );
561
562
  }
562
563
  function be(e, t, n, a) {
563
- R(
564
+ b(
564
565
  I(),
565
566
  // TODO: This error is probably because they somehow have 2 versions of the
566
567
  // router loaded. We can help them understand how to avoid that.
567
568
  "useRoutes() may be used only in the context of a <Router> component."
568
569
  );
569
- let { navigator: r, static: o } = i.useContext(T), { matches: c } = i.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
570
+ let { navigator: r, static: i } = o.useContext(T), { matches: c } = o.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
570
571
  {
571
572
  let g = p && p.path || "";
572
573
  Se(
@@ -584,7 +585,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
584
585
  let g = h.replace(/^\//, "").split("/");
585
586
  w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
586
587
  }
587
- let E = !o && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
588
+ let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
588
589
  return L(
589
590
  p || E != null,
590
591
  `No routes matched location "${v.pathname}${v.search}${v.hash}" `
@@ -613,13 +614,13 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
613
614
  );
614
615
  }
615
616
  function at() {
616
- let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, c = null;
617
+ let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, c = null;
617
618
  return console.error(
618
619
  "Error handled by React Router default ErrorBoundary:",
619
620
  e
620
- ), c = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ i.createElement("pre", { style: r }, n) : null, c);
621
+ ), c = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ o.createElement("pre", { style: r }, n) : null, c);
621
622
  }
622
- var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Component {
623
+ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
623
624
  constructor(e) {
624
625
  super(e), this.state = {
625
626
  location: e.location,
@@ -649,7 +650,7 @@ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Compone
649
650
  );
650
651
  }
651
652
  render() {
652
- return this.state.error !== void 0 ? /* @__PURE__ */ i.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(
653
+ return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
653
654
  ne.Provider,
654
655
  {
655
656
  value: this.state.error,
@@ -659,8 +660,8 @@ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Compone
659
660
  }
660
661
  };
661
662
  function lt({ routeContext: e, match: t, children: n }) {
662
- let a = i.useContext(O);
663
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, n);
663
+ let a = o.useContext(O);
664
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, n);
664
665
  }
665
666
  function st(e, t = [], n = null, a = null) {
666
667
  if (e == null) {
@@ -673,15 +674,15 @@ function st(e, t = [], n = null, a = null) {
673
674
  else
674
675
  return null;
675
676
  }
676
- let r = e, o = n?.errors;
677
- if (o != null) {
677
+ let r = e, i = n == null ? void 0 : n.errors;
678
+ if (i != null) {
678
679
  let l = r.findIndex(
679
- (s) => s.route.id && o?.[s.route.id] !== void 0
680
+ (s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
680
681
  );
681
- R(
682
+ b(
682
683
  l >= 0,
683
684
  `Could not find a matching route for errors on route IDs: ${Object.keys(
684
- o
685
+ i
685
686
  ).join(",")}`
686
687
  ), r = r.slice(
687
688
  0,
@@ -702,14 +703,14 @@ function st(e, t = [], n = null, a = null) {
702
703
  }
703
704
  return r.reduceRight((l, s, h) => {
704
705
  let p, d = !1, v = null, f = null;
705
- n && (p = o && s.route.id ? o[s.route.id] : void 0, v = s.route.errorElement || ot, c && (u < 0 && h === 0 ? (Se(
706
+ n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Se(
706
707
  "route-fallback",
707
708
  !1,
708
709
  "No `HydrateFallback` element provided to render during initial hydration"
709
710
  ), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
710
711
  let w = t.concat(r.slice(0, h + 1)), E = () => {
711
712
  let m;
712
- return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ i.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ i.createElement(
713
+ return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ o.createElement(
713
714
  lt,
714
715
  {
715
716
  match: s,
@@ -722,8 +723,8 @@ function st(e, t = [], n = null, a = null) {
722
723
  }
723
724
  );
724
725
  };
725
- return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ i.createElement(
726
- it,
726
+ return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
727
+ ot,
727
728
  {
728
729
  location: n.location,
729
730
  revalidation: n.revalidation,
@@ -739,26 +740,26 @@ function ae(e) {
739
740
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
740
741
  }
741
742
  function ut(e) {
742
- let t = i.useContext(O);
743
- return R(t, ae(e)), t;
743
+ let t = o.useContext(O);
744
+ return b(t, ae(e)), t;
744
745
  }
745
746
  function Ce(e) {
746
- let t = i.useContext(_);
747
- return R(t, ae(e)), t;
747
+ let t = o.useContext(_);
748
+ return b(t, ae(e)), t;
748
749
  }
749
750
  function ct(e) {
750
- let t = i.useContext(k);
751
- return R(t, ae(e)), t;
751
+ let t = o.useContext(k);
752
+ return b(t, ae(e)), t;
752
753
  }
753
- function oe(e) {
754
+ function ie(e) {
754
755
  let t = ct(e), n = t.matches[t.matches.length - 1];
755
- return R(
756
+ return b(
756
757
  n.route.id,
757
758
  `${e} can only be used on routes that contain a unique "id"`
758
759
  ), n.route.id;
759
760
  }
760
761
  function ft() {
761
- return oe(
762
+ return ie(
762
763
  "useRouteId"
763
764
  /* UseRouteId */
764
765
  );
@@ -770,28 +771,29 @@ function un() {
770
771
  ).navigation;
771
772
  }
772
773
  function dt() {
773
- let e = i.useContext(ne), t = Ce(
774
+ var a;
775
+ let e = o.useContext(ne), t = Ce(
774
776
  "useRouteError"
775
777
  /* UseRouteError */
776
- ), n = oe(
778
+ ), n = ie(
777
779
  "useRouteError"
778
780
  /* UseRouteError */
779
781
  );
780
- return e !== void 0 ? e : t.errors?.[n];
782
+ return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
781
783
  }
782
784
  function ht() {
783
785
  let { router: e } = ut(
784
786
  "useNavigate"
785
787
  /* UseNavigateStable */
786
- ), t = oe(
788
+ ), t = ie(
787
789
  "useNavigate"
788
790
  /* UseNavigateStable */
789
- ), n = i.useRef(!1);
791
+ ), n = o.useRef(!1);
790
792
  return Re(() => {
791
793
  n.current = !0;
792
- }), i.useCallback(
793
- async (r, o = {}) => {
794
- L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...o }));
794
+ }), o.useCallback(
795
+ async (r, i = {}) => {
796
+ L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
795
797
  },
796
798
  [e, t]
797
799
  );
@@ -819,13 +821,13 @@ function cn({
819
821
  router: e,
820
822
  flushSync: t
821
823
  }) {
822
- let [n, a] = i.useState(e.state), [r, o] = i.useState(), [c, u] = i.useState({
824
+ let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
823
825
  isTransitioning: !1
824
- }), [l, s] = i.useState(), [h, p] = i.useState(), [d, v] = i.useState(), f = i.useRef(/* @__PURE__ */ new Map()), w = i.useCallback(
825
- (y, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
826
+ }), [l, s] = o.useState(), [h, p] = o.useState(), [d, v] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
827
+ (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
826
828
  y.fetchers.forEach((S, P) => {
827
829
  S.data !== void 0 && f.current.set(P, S.data);
828
- }), b.forEach((S) => f.current.delete(S)), he(
830
+ }), R.forEach((S) => f.current.delete(S)), he(
829
831
  x === !1 || t != null,
830
832
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
831
833
  );
@@ -834,7 +836,7 @@ function cn({
834
836
  C == null || $,
835
837
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
836
838
  ), !C || !$) {
837
- t && x ? t(() => a(y)) : i.startTransition(() => a(y));
839
+ t && x ? t(() => a(y)) : o.startTransition(() => a(y));
838
840
  return;
839
841
  }
840
842
  if (t && x) {
@@ -851,7 +853,7 @@ function cn({
851
853
  });
852
854
  S.finished.finally(() => {
853
855
  t(() => {
854
- s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
856
+ s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
855
857
  });
856
858
  }), t(() => p(S));
857
859
  return;
@@ -860,7 +862,7 @@ function cn({
860
862
  state: y,
861
863
  currentLocation: C.currentLocation,
862
864
  nextLocation: C.nextLocation
863
- })) : (o(y), u({
865
+ })) : (i(y), u({
864
866
  isTransitioning: !0,
865
867
  flushSync: !1,
866
868
  currentLocation: C.currentLocation,
@@ -869,41 +871,41 @@ function cn({
869
871
  },
870
872
  [e.window, t, h, l]
871
873
  );
872
- i.useLayoutEffect(() => e.subscribe(w), [e, w]), i.useEffect(() => {
874
+ o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
873
875
  c.isTransitioning && !c.flushSync && s(new mt());
874
- }, [c]), i.useEffect(() => {
876
+ }, [c]), o.useEffect(() => {
875
877
  if (l && r && e.window) {
876
- let y = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
877
- i.startTransition(() => a(y)), await b;
878
+ let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
879
+ o.startTransition(() => a(y)), await R;
878
880
  });
879
881
  x.finished.finally(() => {
880
- s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
882
+ s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
881
883
  }), p(x);
882
884
  }
883
- }, [r, l, e.window]), i.useEffect(() => {
885
+ }, [r, l, e.window]), o.useEffect(() => {
884
886
  l && r && n.location.key === r.location.key && l.resolve();
885
- }, [l, h, n.location, r]), i.useEffect(() => {
886
- !c.isTransitioning && d && (o(d.state), u({
887
+ }, [l, h, n.location, r]), o.useEffect(() => {
888
+ !c.isTransitioning && d && (i(d.state), u({
887
889
  isTransitioning: !0,
888
890
  flushSync: !1,
889
891
  currentLocation: d.currentLocation,
890
892
  nextLocation: d.nextLocation
891
893
  }), v(void 0));
892
894
  }, [c.isTransitioning, d]);
893
- let E = i.useMemo(() => ({
895
+ let E = o.useMemo(() => ({
894
896
  createHref: e.createHref,
895
897
  encodeLocation: e.encodeLocation,
896
898
  go: (y) => e.navigate(y),
897
- push: (y, b, x) => e.navigate(y, {
898
- state: b,
899
- preventScrollReset: x?.preventScrollReset
899
+ push: (y, R, x) => e.navigate(y, {
900
+ state: R,
901
+ preventScrollReset: x == null ? void 0 : x.preventScrollReset
900
902
  }),
901
- replace: (y, b, x) => e.navigate(y, {
903
+ replace: (y, R, x) => e.navigate(y, {
902
904
  replace: !0,
903
- state: b,
904
- preventScrollReset: x?.preventScrollReset
905
+ state: R,
906
+ preventScrollReset: x == null ? void 0 : x.preventScrollReset
905
907
  })
906
- }), [e]), m = e.basename || "/", g = i.useMemo(
908
+ }), [e]), m = e.basename || "/", g = o.useMemo(
907
909
  () => ({
908
910
  router: e,
909
911
  navigator: E,
@@ -912,7 +914,7 @@ function cn({
912
914
  }),
913
915
  [e, E, m]
914
916
  );
915
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: g }, /* @__PURE__ */ i.createElement(_.Provider, { value: n }, /* @__PURE__ */ i.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ i.createElement(J.Provider, { value: c }, /* @__PURE__ */ i.createElement(
917
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: g }, /* @__PURE__ */ o.createElement(_.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
916
918
  Pe,
917
919
  {
918
920
  basename: m,
@@ -920,7 +922,7 @@ function cn({
920
922
  navigationType: n.historyAction,
921
923
  navigator: E
922
924
  },
923
- /* @__PURE__ */ i.createElement(
925
+ /* @__PURE__ */ o.createElement(
924
926
  pt,
925
927
  {
926
928
  routes: e.routes,
@@ -930,7 +932,7 @@ function cn({
930
932
  )
931
933
  ))))), null);
932
934
  }
933
- var pt = i.memo(vt);
935
+ var pt = o.memo(vt);
934
936
  function vt({
935
937
  routes: e,
936
938
  future: t,
@@ -944,24 +946,24 @@ function fn({
944
946
  state: n,
945
947
  relative: a
946
948
  }) {
947
- R(
949
+ b(
948
950
  I(),
949
951
  // TODO: This error is probably because they somehow have 2 versions of
950
952
  // the router loaded. We can help them understand how to avoid that.
951
953
  "<Navigate> may be used only in the context of a <Router> component."
952
954
  );
953
- let { static: r } = i.useContext(T);
955
+ let { static: r } = o.useContext(T);
954
956
  L(
955
957
  !r,
956
958
  "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change."
957
959
  );
958
- let { matches: o } = i.useContext(k), { pathname: c } = N(), u = re(), l = ee(
960
+ let { matches: i } = o.useContext(k), { pathname: c } = N(), u = re(), l = ee(
959
961
  e,
960
- Z(o),
962
+ Z(i),
961
963
  c,
962
964
  a === "path"
963
965
  ), s = JSON.stringify(l);
964
- return i.useEffect(() => {
966
+ return o.useEffect(() => {
965
967
  u(JSON.parse(s), { replace: t, state: n, relative: a });
966
968
  }, [u, s, a, t, n]), null;
967
969
  }
@@ -974,20 +976,20 @@ function Pe({
974
976
  location: n,
975
977
  navigationType: a = "POP",
976
978
  navigator: r,
977
- static: o = !1
979
+ static: i = !1
978
980
  }) {
979
- R(
981
+ b(
980
982
  !I(),
981
983
  "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
982
984
  );
983
- let c = e.replace(/^\/*/, "/"), u = i.useMemo(
985
+ let c = e.replace(/^\/*/, "/"), u = o.useMemo(
984
986
  () => ({
985
987
  basename: c,
986
988
  navigator: r,
987
- static: o,
989
+ static: i,
988
990
  future: {}
989
991
  }),
990
- [c, r, o]
992
+ [c, r, i]
991
993
  );
992
994
  typeof n == "string" && (n = Y(n));
993
995
  let {
@@ -996,7 +998,7 @@ function Pe({
996
998
  hash: h = "",
997
999
  state: p = null,
998
1000
  key: d = "default"
999
- } = n, v = i.useMemo(() => {
1001
+ } = n, v = o.useMemo(() => {
1000
1002
  let f = M(l, c);
1001
1003
  return f == null ? null : {
1002
1004
  location: {
@@ -1012,7 +1014,7 @@ function Pe({
1012
1014
  return L(
1013
1015
  v != null,
1014
1016
  `<Router basename="${c}"> is not able to match the URL "${l}${s}${h}" because it does not start with the basename, so the <Router> won't render anything.`
1015
- ), v == null ? null : /* @__PURE__ */ i.createElement(T.Provider, { value: u }, /* @__PURE__ */ i.createElement(K.Provider, { children: t, value: v }));
1017
+ ), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
1016
1018
  }
1017
1019
  var V = "get", j = "application/x-www-form-urlencoded";
1018
1020
  function q(e) {
@@ -1048,8 +1050,8 @@ function Q(e = "") {
1048
1050
  function Rt(e, t) {
1049
1051
  let n = Q(e);
1050
1052
  return t && t.forEach((a, r) => {
1051
- n.has(r) || t.getAll(r).forEach((o) => {
1052
- n.append(r, o);
1053
+ n.has(r) || t.getAll(r).forEach((i) => {
1054
+ n.append(r, i);
1053
1055
  });
1054
1056
  }), n;
1055
1057
  }
@@ -1079,10 +1081,10 @@ function X(e) {
1079
1081
  ), null) : e;
1080
1082
  }
1081
1083
  function St(e, t) {
1082
- let n, a, r, o, c;
1084
+ let n, a, r, i, c;
1083
1085
  if (yt(e)) {
1084
1086
  let u = e.getAttribute("action");
1085
- a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, o = new FormData(e);
1087
+ a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1086
1088
  } else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1087
1089
  let u = e.form;
1088
1090
  if (u == null)
@@ -1090,12 +1092,12 @@ function St(e, t) {
1090
1092
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1091
1093
  );
1092
1094
  let l = e.getAttribute("formaction") || u.getAttribute("action");
1093
- if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, o = new FormData(u, e), !bt()) {
1095
+ if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, i = new FormData(u, e), !bt()) {
1094
1096
  let { name: s, type: h, value: p } = e;
1095
1097
  if (h === "image") {
1096
1098
  let d = s ? `${s}.` : "";
1097
- o.append(`${d}x`, "0"), o.append(`${d}y`, "0");
1098
- } else s && o.append(s, p);
1099
+ i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
1100
+ } else s && i.append(s, p);
1099
1101
  }
1100
1102
  } else {
1101
1103
  if (q(e))
@@ -1104,9 +1106,9 @@ function St(e, t) {
1104
1106
  );
1105
1107
  n = V, a = null, r = j, c = e;
1106
1108
  }
1107
- return o && r === "text/plain" && (c = o, o = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: o, body: c };
1109
+ return i && r === "text/plain" && (c = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: c };
1108
1110
  }
1109
- function ie(e, t) {
1111
+ function oe(e, t) {
1110
1112
  if (e === !1 || e === null || typeof e > "u")
1111
1113
  throw new Error(t);
1112
1114
  }
@@ -1133,9 +1135,9 @@ function Lt(e) {
1133
1135
  async function kt(e, t, n) {
1134
1136
  let a = await Promise.all(
1135
1137
  e.map(async (r) => {
1136
- let o = t.routes[r.route.id];
1137
- if (o) {
1138
- let c = await Pt(o, n);
1138
+ let i = t.routes[r.route.id];
1139
+ if (i) {
1140
+ let c = await Pt(i, n);
1139
1141
  return c.links ? c.links() : [];
1140
1142
  }
1141
1143
  return [];
@@ -1147,34 +1149,38 @@ async function kt(e, t, n) {
1147
1149
  )
1148
1150
  );
1149
1151
  }
1150
- function me(e, t, n, a, r, o) {
1151
- let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => (
1152
- // param change, /users/123 -> /users/456
1153
- n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1154
- // e.g. /files/images/avatar.jpg -> files/finances.xls
1155
- n[s].route.path?.endsWith("*") && n[s].params["*"] !== l.params["*"]
1156
- );
1157
- return o === "assets" ? t.filter(
1152
+ function me(e, t, n, a, r, i) {
1153
+ let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => {
1154
+ var h;
1155
+ return (
1156
+ // param change, /users/123 -> /users/456
1157
+ n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1158
+ // e.g. /files/images/avatar.jpg -> files/finances.xls
1159
+ ((h = n[s].route.path) == null ? void 0 : h.endsWith("*")) && n[s].params["*"] !== l.params["*"]
1160
+ );
1161
+ };
1162
+ return i === "assets" ? t.filter(
1158
1163
  (l, s) => c(l, s) || u(l, s)
1159
- ) : o === "data" ? t.filter((l, s) => {
1164
+ ) : i === "data" ? t.filter((l, s) => {
1165
+ var p;
1160
1166
  let h = a.routes[l.route.id];
1161
1167
  if (!h || !h.hasLoader)
1162
1168
  return !1;
1163
1169
  if (c(l, s) || u(l, s))
1164
1170
  return !0;
1165
1171
  if (l.route.shouldRevalidate) {
1166
- let p = l.route.shouldRevalidate({
1172
+ let d = l.route.shouldRevalidate({
1167
1173
  currentUrl: new URL(
1168
1174
  r.pathname + r.search + r.hash,
1169
1175
  window.origin
1170
1176
  ),
1171
- currentParams: n[0]?.params || {},
1177
+ currentParams: ((p = n[0]) == null ? void 0 : p.params) || {},
1172
1178
  nextUrl: new URL(e, window.origin),
1173
1179
  nextParams: l.params,
1174
1180
  defaultShouldRevalidate: !0
1175
1181
  });
1176
- if (typeof p == "boolean")
1177
- return p;
1182
+ if (typeof d == "boolean")
1183
+ return d;
1178
1184
  }
1179
1185
  return !0;
1180
1186
  }) : [];
@@ -1184,8 +1190,8 @@ function $t(e, t, { includeHydrateFallback: n } = {}) {
1184
1190
  e.map((a) => {
1185
1191
  let r = t.routes[a.route.id];
1186
1192
  if (!r) return [];
1187
- let o = [r.module];
1188
- return r.clientActionModule && (o = o.concat(r.clientActionModule)), r.clientLoaderModule && (o = o.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (o = o.concat(r.hydrateFallbackModule)), r.imports && (o = o.concat(r.imports)), o;
1193
+ let i = [r.module];
1194
+ return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1189
1195
  }).flat(1)
1190
1196
  );
1191
1197
  }
@@ -1201,8 +1207,8 @@ function Nt(e) {
1201
1207
  function At(e, t) {
1202
1208
  let n = /* @__PURE__ */ new Set();
1203
1209
  return new Set(t), e.reduce((a, r) => {
1204
- let o = JSON.stringify(Nt(r));
1205
- return n.has(o) || (n.add(o), a.push({ key: o, link: r })), a;
1210
+ let i = JSON.stringify(Nt(r));
1211
+ return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1206
1212
  }, []);
1207
1213
  }
1208
1214
  var Mt = /* @__PURE__ */ new Set([100, 101, 204, 205]);
@@ -1216,31 +1222,31 @@ function Dt(e, t) {
1216
1222
  return n.pathname === "/" ? n.pathname = "_root.data" : t && M(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
1217
1223
  }
1218
1224
  function Le() {
1219
- let e = i.useContext(O);
1220
- return ie(
1225
+ let e = o.useContext(O);
1226
+ return oe(
1221
1227
  e,
1222
1228
  "You must render this element inside a <DataRouterContext.Provider> element"
1223
1229
  ), e;
1224
1230
  }
1225
1231
  function Ot() {
1226
- let e = i.useContext(_);
1227
- return ie(
1232
+ let e = o.useContext(_);
1233
+ return oe(
1228
1234
  e,
1229
1235
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1230
1236
  ), e;
1231
1237
  }
1232
- var le = i.createContext(void 0);
1238
+ var le = o.createContext(void 0);
1233
1239
  le.displayName = "FrameworkContext";
1234
1240
  function ke() {
1235
- let e = i.useContext(le);
1236
- return ie(
1241
+ let e = o.useContext(le);
1242
+ return oe(
1237
1243
  e,
1238
1244
  "You must render this element inside a <HydratedRouter> element"
1239
1245
  ), e;
1240
1246
  }
1241
1247
  function It(e, t) {
1242
- let n = i.useContext(le), [a, r] = i.useState(!1), [o, c] = i.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = i.useRef(null);
1243
- i.useEffect(() => {
1248
+ let n = o.useContext(le), [a, r] = o.useState(!1), [i, c] = o.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = o.useRef(null);
1249
+ o.useEffect(() => {
1244
1250
  if (e === "render" && c(!0), e === "viewport") {
1245
1251
  let w = (m) => {
1246
1252
  m.forEach((g) => {
@@ -1251,7 +1257,7 @@ function It(e, t) {
1251
1257
  E.disconnect();
1252
1258
  };
1253
1259
  }
1254
- }, [e]), i.useEffect(() => {
1260
+ }, [e]), o.useEffect(() => {
1255
1261
  if (a) {
1256
1262
  let w = setTimeout(() => {
1257
1263
  c(!0);
@@ -1266,8 +1272,8 @@ function It(e, t) {
1266
1272
  }, f = () => {
1267
1273
  r(!1), c(!1);
1268
1274
  };
1269
- return n ? e !== "intent" ? [o, d, {}] : [
1270
- o,
1275
+ return n ? e !== "intent" ? [i, d, {}] : [
1276
+ i,
1271
1277
  d,
1272
1278
  {
1273
1279
  onFocus: U(u, v),
@@ -1287,22 +1293,22 @@ function _t({
1287
1293
  page: e,
1288
1294
  ...t
1289
1295
  }) {
1290
- let { router: n } = Le(), a = i.useMemo(
1296
+ let { router: n } = Le(), a = o.useMemo(
1291
1297
  () => pe(n.routes, e, n.basename),
1292
1298
  [n.routes, e, n.basename]
1293
1299
  );
1294
- return a ? /* @__PURE__ */ i.createElement(Ut, { page: e, matches: a, ...t }) : null;
1300
+ return a ? /* @__PURE__ */ o.createElement(Ut, { page: e, matches: a, ...t }) : null;
1295
1301
  }
1296
1302
  function Ft(e) {
1297
- let { manifest: t, routeModules: n } = ke(), [a, r] = i.useState([]);
1298
- return i.useEffect(() => {
1299
- let o = !1;
1303
+ let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
1304
+ return o.useEffect(() => {
1305
+ let i = !1;
1300
1306
  return kt(e, t, n).then(
1301
1307
  (c) => {
1302
- o || r(c);
1308
+ i || r(c);
1303
1309
  }
1304
1310
  ), () => {
1305
- o = !0;
1311
+ i = !0;
1306
1312
  };
1307
1313
  }, [e, t, n]), a;
1308
1314
  }
@@ -1311,7 +1317,7 @@ function Ut({
1311
1317
  matches: t,
1312
1318
  ...n
1313
1319
  }) {
1314
- let a = N(), { manifest: r, routeModules: o } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = i.useMemo(
1320
+ let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = o.useMemo(
1315
1321
  () => me(
1316
1322
  e,
1317
1323
  t,
@@ -1321,7 +1327,7 @@ function Ut({
1321
1327
  "data"
1322
1328
  ),
1323
1329
  [e, t, l, r, a]
1324
- ), h = i.useMemo(
1330
+ ), h = o.useMemo(
1325
1331
  () => me(
1326
1332
  e,
1327
1333
  t,
@@ -1331,13 +1337,14 @@ function Ut({
1331
1337
  "assets"
1332
1338
  ),
1333
1339
  [e, t, l, r, a]
1334
- ), p = i.useMemo(() => {
1340
+ ), p = o.useMemo(() => {
1335
1341
  if (e === a.pathname + a.search + a.hash)
1336
1342
  return [];
1337
1343
  let f = /* @__PURE__ */ new Set(), w = !1;
1338
1344
  if (t.forEach((m) => {
1345
+ var y;
1339
1346
  let g = r.routes[m.route.id];
1340
- !g || !g.hasLoader || (!s.some((y) => y.route.id === m.route.id) && m.route.id in u && o[m.route.id]?.shouldRevalidate || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1347
+ !g || !g.hasLoader || (!s.some((R) => R.route.id === m.route.id) && m.route.id in u && ((y = i[m.route.id]) != null && y.shouldRevalidate) || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1341
1348
  }), f.size === 0)
1342
1349
  return [];
1343
1350
  let E = Dt(e, c);
@@ -1353,15 +1360,15 @@ function Ut({
1353
1360
  s,
1354
1361
  t,
1355
1362
  e,
1356
- o
1357
- ]), d = i.useMemo(
1363
+ i
1364
+ ]), d = o.useMemo(
1358
1365
  () => $t(h, r),
1359
1366
  [h, r]
1360
1367
  ), v = Ft(h);
1361
- return /* @__PURE__ */ i.createElement(i.Fragment, null, p.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1368
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, p.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1362
1369
  // these don't spread `linkProps` because they are full link descriptors
1363
1370
  // already with their own props
1364
- /* @__PURE__ */ i.createElement("link", { key: f, ...w })
1371
+ /* @__PURE__ */ o.createElement("link", { key: f, ...w })
1365
1372
  )));
1366
1373
  }
1367
1374
  function Bt(...e) {
@@ -1376,13 +1383,13 @@ try {
1376
1383
  $e && (window.__reactRouterVersion = "7.5.2");
1377
1384
  } catch {
1378
1385
  }
1379
- var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1386
+ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1380
1387
  function({
1381
1388
  onClick: t,
1382
1389
  discover: n = "render",
1383
1390
  prefetch: a = "none",
1384
1391
  relative: r,
1385
- reloadDocument: o,
1392
+ reloadDocument: i,
1386
1393
  replace: c,
1387
1394
  state: u,
1388
1395
  target: l,
@@ -1391,7 +1398,7 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1391
1398
  viewTransition: p,
1392
1399
  ...d
1393
1400
  }, v) {
1394
- let { basename: f } = i.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1401
+ let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1395
1402
  if (typeof s == "string" && w && (E = s, $e))
1396
1403
  try {
1397
1404
  let P = new URL(window.location.href), D = s.startsWith("//") ? new URL(P.protocol + s) : new URL(s), se = M(D.pathname, f);
@@ -1402,7 +1409,7 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1402
1409
  `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1403
1410
  );
1404
1411
  }
1405
- let g = et(s, { relative: r }), [y, b, x] = It(
1412
+ let g = et(s, { relative: r }), [y, R, x] = It(
1406
1413
  a,
1407
1414
  d
1408
1415
  ), C = Vt(s, {
@@ -1418,41 +1425,41 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1418
1425
  }
1419
1426
  let S = (
1420
1427
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1421
- /* @__PURE__ */ i.createElement(
1428
+ /* @__PURE__ */ o.createElement(
1422
1429
  "a",
1423
1430
  {
1424
1431
  ...d,
1425
1432
  ...x,
1426
1433
  href: E || g,
1427
- onClick: m || o ? t : $,
1428
- ref: Bt(v, b),
1434
+ onClick: m || i ? t : $,
1435
+ ref: Bt(v, R),
1429
1436
  target: l,
1430
1437
  "data-discover": !w && n === "render" ? "true" : void 0
1431
1438
  }
1432
1439
  )
1433
1440
  );
1434
- return y && !w ? /* @__PURE__ */ i.createElement(i.Fragment, null, S, /* @__PURE__ */ i.createElement(_t, { page: g })) : S;
1441
+ return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(_t, { page: g })) : S;
1435
1442
  }
1436
1443
  );
1437
1444
  Ne.displayName = "Link";
1438
- var Ht = i.forwardRef(
1445
+ var Ht = o.forwardRef(
1439
1446
  function({
1440
1447
  "aria-current": t = "page",
1441
1448
  caseSensitive: n = !1,
1442
1449
  className: a = "",
1443
1450
  end: r = !1,
1444
- style: o,
1451
+ style: i,
1445
1452
  to: c,
1446
1453
  viewTransition: u,
1447
1454
  children: l,
1448
1455
  ...s
1449
1456
  }, h) {
1450
- let p = W(c, { relative: s.relative }), d = N(), v = i.useContext(_), { navigator: f, basename: w } = i.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1457
+ let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(_), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1451
1458
  // eslint-disable-next-line react-hooks/rules-of-hooks
1452
1459
  qt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1453
1460
  n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
1454
- const b = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1455
- let x = g === m || !r && g.startsWith(m) && g.charAt(b) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1461
+ const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1462
+ let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1456
1463
  isActive: x,
1457
1464
  isPending: C,
1458
1465
  isTransitioning: E
@@ -1463,8 +1470,8 @@ var Ht = i.forwardRef(
1463
1470
  C ? "pending" : null,
1464
1471
  E ? "transitioning" : null
1465
1472
  ].filter(Boolean).join(" ");
1466
- let D = typeof o == "function" ? o($) : o;
1467
- return /* @__PURE__ */ i.createElement(
1473
+ let D = typeof i == "function" ? i($) : i;
1474
+ return /* @__PURE__ */ o.createElement(
1468
1475
  Ne,
1469
1476
  {
1470
1477
  ...s,
@@ -1480,14 +1487,14 @@ var Ht = i.forwardRef(
1480
1487
  }
1481
1488
  );
1482
1489
  Ht.displayName = "NavLink";
1483
- var Wt = i.forwardRef(
1490
+ var Wt = o.forwardRef(
1484
1491
  ({
1485
1492
  discover: e = "render",
1486
1493
  fetcherKey: t,
1487
1494
  navigate: n,
1488
1495
  reloadDocument: a,
1489
1496
  replace: r,
1490
- state: o,
1497
+ state: i,
1491
1498
  method: c = V,
1492
1499
  action: u,
1493
1500
  onSubmit: l,
@@ -1499,19 +1506,19 @@ var Wt = i.forwardRef(
1499
1506
  let f = Jt(), w = Kt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1500
1507
  if (l && l(y), y.defaultPrevented) return;
1501
1508
  y.preventDefault();
1502
- let b = y.nativeEvent.submitter, x = b?.getAttribute("formmethod") || c;
1503
- f(b || y.currentTarget, {
1509
+ let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
1510
+ f(R || y.currentTarget, {
1504
1511
  fetcherKey: t,
1505
1512
  method: x,
1506
1513
  navigate: n,
1507
1514
  replace: r,
1508
- state: o,
1515
+ state: i,
1509
1516
  relative: s,
1510
1517
  preventScrollReset: h,
1511
1518
  viewTransition: p
1512
1519
  });
1513
1520
  };
1514
- return /* @__PURE__ */ i.createElement(
1521
+ return /* @__PURE__ */ o.createElement(
1515
1522
  "form",
1516
1523
  {
1517
1524
  ref: v,
@@ -1529,19 +1536,19 @@ function zt(e) {
1529
1536
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1530
1537
  }
1531
1538
  function Ae(e) {
1532
- let t = i.useContext(O);
1533
- return R(t, zt(e)), t;
1539
+ let t = o.useContext(O);
1540
+ return b(t, zt(e)), t;
1534
1541
  }
1535
1542
  function Vt(e, {
1536
1543
  target: t,
1537
1544
  replace: n,
1538
1545
  state: a,
1539
1546
  preventScrollReset: r,
1540
- relative: o,
1547
+ relative: i,
1541
1548
  viewTransition: c
1542
1549
  } = {}) {
1543
- let u = re(), l = N(), s = W(e, { relative: o });
1544
- return i.useCallback(
1550
+ let u = re(), l = N(), s = W(e, { relative: i });
1551
+ return o.useCallback(
1545
1552
  (h) => {
1546
1553
  if (xt(h, t)) {
1547
1554
  h.preventDefault();
@@ -1550,7 +1557,7 @@ function Vt(e, {
1550
1557
  replace: p,
1551
1558
  state: a,
1552
1559
  preventScrollReset: r,
1553
- relative: o,
1560
+ relative: i,
1554
1561
  viewTransition: c
1555
1562
  });
1556
1563
  }
@@ -1564,7 +1571,7 @@ function Vt(e, {
1564
1571
  t,
1565
1572
  e,
1566
1573
  r,
1567
- o,
1574
+ i,
1568
1575
  c
1569
1576
  ]
1570
1577
  );
@@ -1574,7 +1581,7 @@ function hn(e) {
1574
1581
  typeof URLSearchParams < "u",
1575
1582
  "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
1576
1583
  );
1577
- let t = i.useRef(Q(e)), n = i.useRef(!1), a = N(), r = i.useMemo(
1584
+ let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1578
1585
  () => (
1579
1586
  // Only merge in the defaults if we haven't yet called setSearchParams.
1580
1587
  // Once we call that we want those to take precedence, otherwise you can't
@@ -1585,14 +1592,14 @@ function hn(e) {
1585
1592
  )
1586
1593
  ),
1587
1594
  [a.search]
1588
- ), o = re(), c = i.useCallback(
1595
+ ), i = re(), c = o.useCallback(
1589
1596
  (u, l) => {
1590
1597
  const s = Q(
1591
1598
  typeof u == "function" ? u(r) : u
1592
1599
  );
1593
- n.current = !0, o("?" + s, l);
1600
+ n.current = !0, i("?" + s, l);
1594
1601
  },
1595
- [o, r]
1602
+ [i, r]
1596
1603
  );
1597
1604
  return [r, c];
1598
1605
  }
@@ -1601,16 +1608,16 @@ function Jt() {
1601
1608
  let { router: e } = Ae(
1602
1609
  "useSubmit"
1603
1610
  /* UseSubmit */
1604
- ), { basename: t } = i.useContext(T), n = ft();
1605
- return i.useCallback(
1611
+ ), { basename: t } = o.useContext(T), n = ft();
1612
+ return o.useCallback(
1606
1613
  async (a, r = {}) => {
1607
- let { action: o, method: c, encType: u, formData: l, body: s } = St(
1614
+ let { action: i, method: c, encType: u, formData: l, body: s } = St(
1608
1615
  a,
1609
1616
  t
1610
1617
  );
1611
1618
  if (r.navigate === !1) {
1612
1619
  let h = r.fetcherKey || Yt();
1613
- await e.fetch(h, n, r.action || o, {
1620
+ await e.fetch(h, n, r.action || i, {
1614
1621
  preventScrollReset: r.preventScrollReset,
1615
1622
  formData: l,
1616
1623
  body: s,
@@ -1619,7 +1626,7 @@ function Jt() {
1619
1626
  flushSync: r.flushSync
1620
1627
  });
1621
1628
  } else
1622
- await e.navigate(r.action || o, {
1629
+ await e.navigate(r.action || i, {
1623
1630
  preventScrollReset: r.preventScrollReset,
1624
1631
  formData: l,
1625
1632
  body: s,
@@ -1636,23 +1643,23 @@ function Jt() {
1636
1643
  );
1637
1644
  }
1638
1645
  function Kt(e, { relative: t } = {}) {
1639
- let { basename: n } = i.useContext(T), a = i.useContext(k);
1640
- R(a, "useFormAction must be used inside a RouteContext");
1641
- let [r] = a.matches.slice(-1), o = { ...W(e || ".", { relative: t }) }, c = N();
1646
+ let { basename: n } = o.useContext(T), a = o.useContext(k);
1647
+ b(a, "useFormAction must be used inside a RouteContext");
1648
+ let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
1642
1649
  if (e == null) {
1643
- o.search = c.search;
1644
- let u = new URLSearchParams(o.search), l = u.getAll("index");
1650
+ i.search = c.search;
1651
+ let u = new URLSearchParams(i.search), l = u.getAll("index");
1645
1652
  if (l.some((h) => h === "")) {
1646
1653
  u.delete("index"), l.filter((p) => p).forEach((p) => u.append("index", p));
1647
1654
  let h = u.toString();
1648
- o.search = h ? `?${h}` : "";
1655
+ i.search = h ? `?${h}` : "";
1649
1656
  }
1650
1657
  }
1651
- return (!e || e === ".") && r.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : A([n, o.pathname])), B(o);
1658
+ return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (i.pathname = i.pathname === "/" ? n : A([n, i.pathname])), B(i);
1652
1659
  }
1653
1660
  function qt(e, t = {}) {
1654
- let n = i.useContext(J);
1655
- R(
1661
+ let n = o.useContext(J);
1662
+ b(
1656
1663
  n != null,
1657
1664
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1658
1665
  );
@@ -1662,8 +1669,8 @@ function qt(e, t = {}) {
1662
1669
  ), r = W(e, { relative: t.relative });
1663
1670
  if (!n.isTransitioning)
1664
1671
  return !1;
1665
- let o = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1666
- return H(r.pathname, c) != null || H(r.pathname, o) != null;
1672
+ let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1673
+ return H(r.pathname, c) != null || H(r.pathname, i) != null;
1667
1674
  }
1668
1675
  function mn({
1669
1676
  context: e,
@@ -1671,7 +1678,7 @@ function mn({
1671
1678
  hydrate: n = !0,
1672
1679
  nonce: a
1673
1680
  }) {
1674
- R(
1681
+ b(
1675
1682
  t && e,
1676
1683
  "You must provide `router` and `context` to <StaticRouterProvider>"
1677
1684
  );
@@ -1681,7 +1688,7 @@ function mn({
1681
1688
  static: !0,
1682
1689
  staticContext: e,
1683
1690
  basename: e.basename || "/"
1684
- }, o = /* @__PURE__ */ new Map(), c = "";
1691
+ }, i = /* @__PURE__ */ new Map(), c = "";
1685
1692
  if (n !== !1) {
1686
1693
  let l = {
1687
1694
  loaderData: e.loaderData,
@@ -1691,7 +1698,7 @@ function mn({
1691
1698
  c = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
1692
1699
  }
1693
1700
  let { state: u } = r.router;
1694
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: r }, /* @__PURE__ */ i.createElement(_.Provider, { value: u }, /* @__PURE__ */ i.createElement(te.Provider, { value: o }, /* @__PURE__ */ i.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ i.createElement(
1701
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(_.Provider, { value: u }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1695
1702
  Pe,
1696
1703
  {
1697
1704
  basename: r.basename,
@@ -1700,7 +1707,7 @@ function mn({
1700
1707
  navigator: r.navigator,
1701
1708
  static: r.static
1702
1709
  },
1703
- /* @__PURE__ */ i.createElement(
1710
+ /* @__PURE__ */ o.createElement(
1704
1711
  Gt,
1705
1712
  {
1706
1713
  routes: t.routes,
@@ -1708,7 +1715,7 @@ function mn({
1708
1715
  state: u
1709
1716
  }
1710
1717
  )
1711
- ))))), c ? /* @__PURE__ */ i.createElement(
1718
+ ))))), c ? /* @__PURE__ */ o.createElement(
1712
1719
  "script",
1713
1720
  {
1714
1721
  suppressHydrationWarning: !0,
@@ -1816,4 +1823,4 @@ export {
1816
1823
  on as r,
1817
1824
  N as u
1818
1825
  };
1819
- //# sourceMappingURL=chunk-BAXFHI7N-CFrZQ7Oh.js.map
1826
+ //# sourceMappingURL=chunk-BAXFHI7N-BVBOl9s0.js.map