zudoku 0.39.5 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/app/entry.client.js +2 -0
  2. package/dist/app/entry.client.js.map +1 -1
  3. package/dist/config/config.d.ts +3 -1
  4. package/dist/config/loader.d.ts +1 -0
  5. package/dist/config/loader.js +1 -1
  6. package/dist/config/loader.js.map +1 -1
  7. package/dist/config/validators/BuildSchema.d.ts +60 -0
  8. package/dist/config/validators/BuildSchema.js +31 -0
  9. package/dist/config/validators/BuildSchema.js.map +1 -0
  10. package/dist/config/validators/common.d.ts +7 -51
  11. package/dist/config/validators/common.js +1 -7
  12. package/dist/config/validators/common.js.map +1 -1
  13. package/dist/config/validators/icon-types.d.ts +1 -1
  14. package/dist/config/validators/validate.d.ts +2 -18
  15. package/dist/index.d.ts +1 -1
  16. package/dist/lib/authentication/providers/clerk.js +2 -2
  17. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  18. package/dist/lib/components/Footer.js +2 -2
  19. package/dist/lib/components/Footer.js.map +1 -1
  20. package/dist/lib/components/Layout.js +2 -1
  21. package/dist/lib/components/Layout.js.map +1 -1
  22. package/dist/lib/components/Search.js +7 -1
  23. package/dist/lib/components/Search.js.map +1 -1
  24. package/dist/lib/components/navigation/Sidebar.js +3 -1
  25. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  26. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  27. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  28. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  29. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  30. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  31. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  32. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  33. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  34. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  35. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  36. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  37. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  38. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  39. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  40. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  41. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  42. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  43. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  44. package/dist/lib/ui/Callout.js +1 -1
  45. package/dist/lib/ui/Callout.js.map +1 -1
  46. package/dist/lib/ui/Form.d.ts +1 -1
  47. package/dist/lib/util/MdxComponents.d.ts +1 -0
  48. package/dist/lib/util/MdxComponents.js +2 -0
  49. package/dist/lib/util/MdxComponents.js.map +1 -1
  50. package/dist/lib/util/detectOS.d.ts +1 -0
  51. package/dist/lib/util/detectOS.js +11 -0
  52. package/dist/lib/util/detectOS.js.map +1 -0
  53. package/dist/vite/plugin-api.js +33 -18
  54. package/dist/vite/plugin-api.js.map +1 -1
  55. package/dist/vite/plugin-sidebar.js +1 -1
  56. package/dist/vite/plugin-sidebar.js.map +1 -1
  57. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  58. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  59. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  60. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  61. package/dist/zuplo/with-zuplo-processors.js +6 -6
  62. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  63. package/dist/zuplo/with-zuplo.d.ts +1 -1
  64. package/lib/{AuthenticationPlugin-foqdvvkf.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
  65. package/lib/{AuthenticationPlugin-foqdvvkf.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
  66. package/lib/{Button-Fp19CMUr.js → Button-BBNrKpQd.js} +2 -2
  67. package/lib/{Button-Fp19CMUr.js.map → Button-BBNrKpQd.js.map} +1 -1
  68. package/lib/{Callout-B2vsR09t.js → Callout-D3Ja4OPX.js} +14 -13
  69. package/lib/{Callout-B2vsR09t.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  70. package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-D06WK_Wo.js} +2 -2
  71. package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  72. package/lib/{Dialog-sbgekbjb.js → Dialog-ByYz4ABw.js} +2 -2
  73. package/lib/{Dialog-sbgekbjb.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  74. package/lib/{Drawer-kDAfOq_2.js → Drawer-CEwbkLDb.js} +2 -2
  75. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  76. package/lib/{Markdown-aF5FdsNi.js → Markdown-C5h6bxbE.js} +4239 -4073
  77. package/lib/Markdown-C5h6bxbE.js.map +1 -0
  78. package/lib/{MdxPage-Vw_dc9Yz.js → MdxPage-B66ht0D_.js} +9 -9
  79. package/lib/{MdxPage-Vw_dc9Yz.js.map → MdxPage-B66ht0D_.js.map} +1 -1
  80. package/lib/{OasProvider-C5paEivQ.js → OasProvider-BKPF0Pbt.js} +6 -6
  81. package/lib/{OasProvider-C5paEivQ.js.map → OasProvider-BKPF0Pbt.js.map} +1 -1
  82. package/lib/{OperationList-Ds9Izgkn.js → OperationList-0bhBU7ME.js} +16 -16
  83. package/lib/{OperationList-Ds9Izgkn.js.map → OperationList-0bhBU7ME.js.map} +1 -1
  84. package/lib/{Pagination-SdlocK96.js → Pagination-Bt1czAiJ.js} +4 -4
  85. package/lib/{Pagination-SdlocK96.js.map → Pagination-Bt1czAiJ.js.map} +1 -1
  86. package/lib/{RouteGuard-CqZPoZYJ.js → RouteGuard-BZ_VsiXc.js} +6 -6
  87. package/lib/{RouteGuard-CqZPoZYJ.js.map → RouteGuard-BZ_VsiXc.js.map} +1 -1
  88. package/lib/{SchemaList-NZbDXAV5.js → SchemaList-CsTIT1pi.js} +10 -10
  89. package/lib/{SchemaList-NZbDXAV5.js.map → SchemaList-CsTIT1pi.js.map} +1 -1
  90. package/lib/{SchemaView-B3fOPR4V.js → SchemaView-DCSWtnYr.js} +5 -5
  91. package/lib/{SchemaView-B3fOPR4V.js.map → SchemaView-DCSWtnYr.js.map} +1 -1
  92. package/lib/{Select-DVFRKf1R.js → Select-Dg5R11Dx.js} +4 -4
  93. package/lib/{Select-DVFRKf1R.js.map → Select-Dg5R11Dx.js.map} +1 -1
  94. package/lib/{SlotletProvider-DXvc0aY6.js → SlotletProvider-VUmTNmLZ.js} +41 -39
  95. package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
  96. package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
  97. package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  98. package/lib/{SyntaxHighlight-BEoSoPEo.js → SyntaxHighlight-CxhyyMkF.js} +6 -6
  99. package/lib/{SyntaxHighlight-BEoSoPEo.js.map → SyntaxHighlight-CxhyyMkF.js.map} +1 -1
  100. package/lib/{Toc-YBsgI72s.js → Toc-BK39DQvI.js} +3 -3
  101. package/lib/{Toc-YBsgI72s.js.map → Toc-BK39DQvI.js.map} +1 -1
  102. package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
  103. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  104. package/lib/{chunk-HA7DTUK3-C4gP41vD.js → chunk-KNED5TY2-BUPjb3LQ.js} +314 -313
  105. package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
  106. package/lib/{context-DLCwaMXN.js → context-Lrf2Y9bR.js} +2 -2
  107. package/lib/{context-DLCwaMXN.js.map → context-Lrf2Y9bR.js.map} +1 -1
  108. package/lib/{createServer-mYvGvmc0.js → createServer-DLN7APz_.js} +5381 -5517
  109. package/lib/createServer-DLN7APz_.js.map +1 -0
  110. package/lib/{hook-CqpVYDqN.js → hook-pPrHCB6G.js} +460 -465
  111. package/lib/hook-pPrHCB6G.js.map +1 -0
  112. package/lib/{index-PGJOZ6R-.js → index-Ba_X7EnR.js} +16 -16
  113. package/lib/{index-PGJOZ6R-.js.map → index-Ba_X7EnR.js.map} +1 -1
  114. package/lib/index-CuBIgTKC.js +316 -0
  115. package/lib/index-CuBIgTKC.js.map +1 -0
  116. package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
  117. package/lib/index-DcHeSvkE.js.map +1 -0
  118. package/lib/index-DwT-v3zK.js.map +1 -1
  119. package/lib/{index-D48iOQvJ.js → index-tpbiZmWp.js} +586 -543
  120. package/lib/index-tpbiZmWp.js.map +1 -0
  121. package/lib/index.esm-D2ZUREQN.js +1216 -0
  122. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  123. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  124. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  125. package/lib/{mutation-8LjrN7uz.js → mutation-Csa9eQDM.js} +70 -67
  126. package/lib/mutation-Csa9eQDM.js.map +1 -0
  127. package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
  128. package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  129. package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
  130. package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  131. package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
  132. package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  133. package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
  134. package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  135. package/lib/{post-processors → processors}/removeExtensions.js +1 -1
  136. package/lib/processors/removeExtensions.js.map +1 -0
  137. package/lib/{post-processors → processors}/removeParameters.js +1 -1
  138. package/lib/processors/removeParameters.js.map +1 -0
  139. package/lib/{post-processors → processors}/removePaths.js +1 -1
  140. package/lib/processors/removePaths.js.map +1 -0
  141. package/lib/ui/Accordion.js +1 -1
  142. package/lib/ui/ActionButton.js +3 -3
  143. package/lib/ui/Alert.js +1 -1
  144. package/lib/ui/AlertDialog.js +1 -1
  145. package/lib/ui/Badge.js +1 -1
  146. package/lib/ui/Breadcrumb.js +1 -1
  147. package/lib/ui/Button.js +1 -1
  148. package/lib/ui/Callout.js +10 -9
  149. package/lib/ui/Callout.js.map +1 -1
  150. package/lib/ui/Card.js +1 -1
  151. package/lib/ui/Carousel.js +207 -207
  152. package/lib/ui/Carousel.js.map +1 -1
  153. package/lib/ui/Checkbox.js +1 -1
  154. package/lib/ui/Command.js +3 -3
  155. package/lib/ui/Dialog.js +1 -1
  156. package/lib/ui/Drawer.js +2 -2
  157. package/lib/ui/DropdownMenu.js +1 -1
  158. package/lib/ui/Form.js +2 -2
  159. package/lib/ui/HoverCard.js +1 -1
  160. package/lib/ui/Input.js +1 -1
  161. package/lib/ui/Label.js +1 -1
  162. package/lib/ui/Pagination.js +1 -1
  163. package/lib/ui/Popover.js +1 -1
  164. package/lib/ui/Progress.js +1 -1
  165. package/lib/ui/RadioGroup.js +1 -1
  166. package/lib/ui/ScrollArea.js +1 -1
  167. package/lib/ui/Select.js +1 -1
  168. package/lib/ui/Skeleton.js +1 -1
  169. package/lib/ui/Slider.js +1 -1
  170. package/lib/ui/Stepper.js +1 -1
  171. package/lib/ui/Switch.js +1 -1
  172. package/lib/ui/SyntaxHighlight.js +2 -2
  173. package/lib/ui/Tabs.js +1 -1
  174. package/lib/ui/Textarea.js +1 -1
  175. package/lib/ui/Toggle.js +1 -1
  176. package/lib/ui/ToggleGroup.js +1 -1
  177. package/lib/ui/Tooltip.js +1 -1
  178. package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-Dq2yUQIG.js} +2 -2
  179. package/lib/{useExposedProps-B9qXJedG.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
  180. package/lib/zudoku.auth-auth0.js +1 -1
  181. package/lib/zudoku.auth-clerk.js +4 -4
  182. package/lib/zudoku.auth-clerk.js.map +1 -1
  183. package/lib/zudoku.auth-openid.js +5 -5
  184. package/lib/zudoku.components.js +7 -7
  185. package/lib/zudoku.hooks.js +1 -1
  186. package/lib/zudoku.icons.js +1 -1
  187. package/lib/zudoku.plugin-api-catalog.js +6 -6
  188. package/lib/zudoku.plugin-api-keys.js +6 -6
  189. package/lib/zudoku.plugin-custom-pages.js +3 -3
  190. package/lib/zudoku.plugin-markdown.js +2 -2
  191. package/lib/zudoku.plugin-openapi.js +4 -4
  192. package/lib/zudoku.plugin-redirect.js +1 -1
  193. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  194. package/lib/zudoku.plugin-search-pagefind.js +7 -7
  195. package/package.json +61 -62
  196. package/src/app/entry.client.tsx +2 -0
  197. package/src/app/main.css +8 -2
  198. package/src/lib/authentication/providers/clerk.tsx +2 -2
  199. package/src/lib/components/Footer.tsx +6 -3
  200. package/src/lib/components/Layout.tsx +8 -1
  201. package/src/lib/components/Search.tsx +14 -3
  202. package/src/lib/components/navigation/Sidebar.tsx +8 -1
  203. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  204. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  205. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  206. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  207. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  208. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  209. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  210. package/src/lib/ui/Callout.tsx +1 -0
  211. package/src/lib/util/MdxComponents.tsx +2 -0
  212. package/src/lib/util/detectOS.ts +9 -0
  213. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  214. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  215. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  216. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  217. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  218. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  219. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  220. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  221. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  222. package/lib/Drawer-kDAfOq_2.js.map +0 -1
  223. package/lib/Markdown-aF5FdsNi.js.map +0 -1
  224. package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
  225. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  226. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
  227. package/lib/createServer-mYvGvmc0.js.map +0 -1
  228. package/lib/hook-CqpVYDqN.js.map +0 -1
  229. package/lib/index-D48iOQvJ.js.map +0 -1
  230. package/lib/index-Dl3Yl0yb.js.map +0 -1
  231. package/lib/index-gQD2h1wX.js +0 -447
  232. package/lib/index-gQD2h1wX.js.map +0 -1
  233. package/lib/index.esm--gIChbWs.js +0 -1207
  234. package/lib/index.esm--gIChbWs.js.map +0 -1
  235. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  236. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  237. package/lib/mutation-8LjrN7uz.js.map +0 -1
  238. package/lib/post-processors/removeExtensions.js.map +0 -1
  239. package/lib/post-processors/removeParameters.js.map +0 -1
  240. package/lib/post-processors/removePaths.js.map +0 -1
  241. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  242. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  243. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  244. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  245. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  246. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  247. /package/lib/{post-processors → processors}/traverse.js +0 -0
  248. /package/lib/{post-processors → processors}/traverse.js.map +0 -0
  249. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as o from "react";
2
2
  var _ = {}, ue;
3
- function Ae() {
3
+ function Me() {
4
4
  if (ue) return _;
5
5
  ue = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = c, _.serialize = s;
6
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__ */ (() => {
@@ -8,87 +8,87 @@ function Ae() {
8
8
  };
9
9
  return d.prototype = /* @__PURE__ */ Object.create(null), d;
10
10
  })();
11
- function c(d, m) {
12
- const f = new i(), E = d.length;
13
- if (E < 2)
11
+ function c(d, v) {
12
+ const f = new i(), w = d.length;
13
+ if (w < 2)
14
14
  return f;
15
- const g = (m == null ? void 0 : m.decode) || h;
16
- let v = 0;
15
+ const E = (v == null ? void 0 : v.decode) || h;
16
+ let m = 0;
17
17
  do {
18
- const y = d.indexOf("=", v);
19
- if (y === -1)
18
+ const g = d.indexOf("=", m);
19
+ if (g === -1)
20
20
  break;
21
- const w = d.indexOf(";", v), b = w === -1 ? E : w;
22
- if (y > b) {
23
- v = d.lastIndexOf(";", y - 1) + 1;
21
+ const y = d.indexOf(";", m), R = y === -1 ? w : y;
22
+ if (g > R) {
23
+ m = d.lastIndexOf(";", g - 1) + 1;
24
24
  continue;
25
25
  }
26
- const x = u(d, v, y), C = l(d, y, x), $ = d.slice(x, C);
26
+ const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
27
27
  if (f[$] === void 0) {
28
- let P = u(d, y + 1, b), S = l(d, b, P);
29
- const M = g(d.slice(P, S));
30
- f[$] = M;
28
+ let P = u(d, g + 1, R), S = l(d, R, P);
29
+ const D = E(d.slice(P, S));
30
+ f[$] = D;
31
31
  }
32
- v = b + 1;
33
- } while (v < E);
32
+ m = R + 1;
33
+ } while (m < w);
34
34
  return f;
35
35
  }
36
- function u(d, m, f) {
36
+ function u(d, v, f) {
37
37
  do {
38
- const E = d.charCodeAt(m);
39
- if (E !== 32 && E !== 9)
40
- return m;
41
- } while (++m < f);
38
+ const w = d.charCodeAt(v);
39
+ if (w !== 32 && w !== 9)
40
+ return v;
41
+ } while (++v < f);
42
42
  return f;
43
43
  }
44
- function l(d, m, f) {
45
- for (; m > f; ) {
46
- const E = d.charCodeAt(--m);
47
- if (E !== 32 && E !== 9)
48
- return m + 1;
44
+ function l(d, v, f) {
45
+ for (; v > f; ) {
46
+ const w = d.charCodeAt(--v);
47
+ if (w !== 32 && w !== 9)
48
+ return v + 1;
49
49
  }
50
50
  return f;
51
51
  }
52
- function s(d, m, f) {
53
- const E = (f == null ? void 0 : f.encode) || encodeURIComponent;
52
+ function s(d, v, f) {
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
- const g = E(m);
57
- if (!t.test(g))
58
- throw new TypeError(`argument val is invalid: ${m}`);
59
- let v = d + "=" + g;
56
+ const E = w(v);
57
+ if (!t.test(E))
58
+ throw new TypeError(`argument val is invalid: ${v}`);
59
+ let m = d + "=" + E;
60
60
  if (!f)
61
- return v;
61
+ return m;
62
62
  if (f.maxAge !== void 0) {
63
63
  if (!Number.isInteger(f.maxAge))
64
64
  throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
65
- v += "; Max-Age=" + f.maxAge;
65
+ m += "; Max-Age=" + f.maxAge;
66
66
  }
67
67
  if (f.domain) {
68
68
  if (!n.test(f.domain))
69
69
  throw new TypeError(`option domain is invalid: ${f.domain}`);
70
- v += "; Domain=" + f.domain;
70
+ m += "; Domain=" + f.domain;
71
71
  }
72
72
  if (f.path) {
73
73
  if (!a.test(f.path))
74
74
  throw new TypeError(`option path is invalid: ${f.path}`);
75
- v += "; Path=" + f.path;
75
+ m += "; Path=" + f.path;
76
76
  }
77
77
  if (f.expires) {
78
78
  if (!p(f.expires) || !Number.isFinite(f.expires.valueOf()))
79
79
  throw new TypeError(`option expires is invalid: ${f.expires}`);
80
- v += "; Expires=" + f.expires.toUTCString();
80
+ m += "; Expires=" + f.expires.toUTCString();
81
81
  }
82
- if (f.httpOnly && (v += "; HttpOnly"), f.secure && (v += "; Secure"), f.partitioned && (v += "; Partitioned"), f.priority)
82
+ if (f.httpOnly && (m += "; HttpOnly"), f.secure && (m += "; Secure"), f.partitioned && (m += "; Partitioned"), f.priority)
83
83
  switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
84
84
  case "low":
85
- v += "; Priority=Low";
85
+ m += "; Priority=Low";
86
86
  break;
87
87
  case "medium":
88
- v += "; Priority=Medium";
88
+ m += "; Priority=Medium";
89
89
  break;
90
90
  case "high":
91
- v += "; Priority=High";
91
+ m += "; Priority=High";
92
92
  break;
93
93
  default:
94
94
  throw new TypeError(`option priority is invalid: ${f.priority}`);
@@ -97,18 +97,18 @@ function Ae() {
97
97
  switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
98
98
  case !0:
99
99
  case "strict":
100
- v += "; SameSite=Strict";
100
+ m += "; SameSite=Strict";
101
101
  break;
102
102
  case "lax":
103
- v += "; SameSite=Lax";
103
+ m += "; SameSite=Lax";
104
104
  break;
105
105
  case "none":
106
- v += "; SameSite=None";
106
+ m += "; SameSite=None";
107
107
  break;
108
108
  default:
109
109
  throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
110
110
  }
111
- return v;
111
+ return m;
112
112
  }
113
113
  function h(d) {
114
114
  if (d.indexOf("%") === -1)
@@ -124,9 +124,9 @@ function Ae() {
124
124
  }
125
125
  return _;
126
126
  }
127
- Ae();
127
+ Me();
128
128
  /**
129
- * react-router v7.2.0
129
+ * react-router v7.5.0
130
130
  *
131
131
  * Copyright (c) Remix Software Inc.
132
132
  *
@@ -135,7 +135,7 @@ Ae();
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
  }
@@ -166,18 +166,18 @@ function Y(e) {
166
166
  return t;
167
167
  }
168
168
  function pe(e, t, n = "/") {
169
- return Me(e, t, n, !1);
169
+ return De(e, t, n, !1);
170
170
  }
171
- function Me(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, i = D(r.pathname || "/", n);
171
+ function De(e, t, n, a) {
172
+ let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
173
173
  if (i == null)
174
174
  return null;
175
175
  let c = ve(e);
176
- De(c);
176
+ Ie(c);
177
177
  let u = null;
178
178
  for (let l = 0; u == null && l < c.length; ++l) {
179
179
  let s = ye(i);
180
- u = ze(
180
+ u = Ve(
181
181
  c[l],
182
182
  s,
183
183
  a
@@ -193,19 +193,19 @@ function ve(e, t = [], n = [], a = "") {
193
193
  childrenIndex: c,
194
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
- i.children && i.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
204
  i.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
206
206
  ), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
207
207
  path: s,
208
- score: He(s, i.index),
208
+ score: We(s, i.index),
209
209
  routesMeta: h
210
210
  });
211
211
  };
@@ -233,23 +233,23 @@ function ge(e) {
233
233
  (l) => e.startsWith("/") && l === "" ? "/" : l
234
234
  );
235
235
  }
236
- function De(e) {
236
+ function Ie(e) {
237
237
  e.sort(
238
- (t, n) => t.score !== n.score ? n.score - t.score : We(
238
+ (t, n) => t.score !== n.score ? n.score - t.score : ze(
239
239
  t.routesMeta.map((a) => a.childrenIndex),
240
240
  n.routesMeta.map((a) => a.childrenIndex)
241
241
  )
242
242
  );
243
243
  }
244
- var Ie = /^:[\w-]+$/, Oe = 3, Fe = 2, _e = 1, Ue = 10, Be = -2, ce = (e) => e === "*";
245
- function He(e, t) {
244
+ var Oe = /^:[\w-]+$/, Fe = 3, _e = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e === "*";
245
+ function We(e, t) {
246
246
  let n = e.split("/"), a = n.length;
247
- return n.some(ce) && (a += Be), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
248
- (r, i) => r + (Ie.test(i) ? Oe : i === "" ? _e : Ue),
247
+ return n.some(ce) && (a += He), t && (a += _e), n.filter((r) => !ce(r)).reduce(
248
+ (r, i) => r + (Oe.test(i) ? Fe : i === "" ? Ue : Be),
249
249
  a
250
250
  );
251
251
  }
252
- function We(e, t) {
252
+ function ze(e, t) {
253
253
  return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
254
254
  // If two routes are siblings, we should try to match the earlier sibling
255
255
  // first. This allows people to have fine-grained control over the matching
@@ -262,7 +262,7 @@ function We(e, t) {
262
262
  0
263
263
  );
264
264
  }
265
- function ze(e, t, n = !1) {
265
+ function Ve(e, t, n = !1) {
266
266
  let { routesMeta: a } = e, r = {}, i = "/", c = [];
267
267
  for (let u = 0; u < a.length; ++u) {
268
268
  let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
@@ -282,7 +282,7 @@ function ze(e, t, n = !1) {
282
282
  // TODO: Can this as be avoided?
283
283
  params: r,
284
284
  pathname: A([i, p.pathname]),
285
- pathnameBase: Ke(
285
+ pathnameBase: qe(
286
286
  A([i, p.pathnameBase])
287
287
  ),
288
288
  route: d
@@ -292,7 +292,7 @@ function ze(e, t, n = !1) {
292
292
  }
293
293
  function H(e, t) {
294
294
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
295
- let [n, a] = Ve(
295
+ let [n, a] = je(
296
296
  e.path,
297
297
  e.caseSensitive,
298
298
  e.end
@@ -306,8 +306,8 @@ function H(e, t) {
306
306
  let f = u[d] || "";
307
307
  c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
308
308
  }
309
- const m = u[d];
310
- return p && !m ? s[h] = void 0 : s[h] = (m || "").replace(/%2F/g, "/"), s;
309
+ const v = u[d];
310
+ return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
311
311
  },
312
312
  {}
313
313
  ),
@@ -316,7 +316,7 @@ function H(e, t) {
316
316
  pattern: e
317
317
  };
318
318
  }
319
- function Ve(e, t = !1, n = !0) {
319
+ function je(e, t = !1, n = !0) {
320
320
  L(
321
321
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
322
322
  `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
@@ -337,26 +337,26 @@ function ye(e) {
337
337
  ), e;
338
338
  }
339
339
  }
340
- function D(e, t) {
340
+ function M(e, t) {
341
341
  if (t === "/") return e;
342
342
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
343
343
  return null;
344
344
  let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
345
345
  return a && a !== "/" ? null : e.slice(n) || "/";
346
346
  }
347
- function je(e, t = "/") {
347
+ function Ye(e, t = "/") {
348
348
  let {
349
349
  pathname: n,
350
350
  search: a = "",
351
351
  hash: r = ""
352
352
  } = typeof e == "string" ? Y(e) : e;
353
353
  return {
354
- pathname: n ? n.startsWith("/") ? n : Ye(n, t) : t,
355
- search: qe(a),
356
- hash: Ge(r)
354
+ pathname: n ? n.startsWith("/") ? n : Je(n, t) : t,
355
+ search: Ge(a),
356
+ hash: Xe(r)
357
357
  };
358
358
  }
359
- function Ye(e, t) {
359
+ function Je(e, t) {
360
360
  let n = t.replace(/\/+$/, "").split("/");
361
361
  return e.split("/").forEach((r) => {
362
362
  r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
@@ -367,26 +367,26 @@ function G(e, t, n, a) {
367
367
  a
368
368
  )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
369
369
  }
370
- function Je(e) {
370
+ function Ke(e) {
371
371
  return e.filter(
372
372
  (t, n) => n === 0 || t.route.path && t.route.path.length > 0
373
373
  );
374
374
  }
375
375
  function Z(e) {
376
- let t = Je(e);
376
+ let t = Ke(e);
377
377
  return t.map(
378
378
  (n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
379
379
  );
380
380
  }
381
381
  function ee(e, t, n, a = !1) {
382
382
  let r;
383
- typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
383
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
384
384
  !r.pathname || !r.pathname.includes("?"),
385
385
  G("?", "pathname", "search", r)
386
- ), R(
386
+ ), b(
387
387
  !r.pathname || !r.pathname.includes("#"),
388
388
  G("#", "pathname", "hash", r)
389
- ), R(
389
+ ), b(
390
390
  !r.search || !r.search.includes("#"),
391
391
  G("#", "search", "hash", r)
392
392
  ));
@@ -403,10 +403,10 @@ function ee(e, t, n, a = !1) {
403
403
  }
404
404
  u = p >= 0 ? t[p] : "/";
405
405
  }
406
- let l = je(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
406
+ let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
407
407
  return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
408
408
  }
409
- var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ke = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), qe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ge = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, an = (e, t = 302) => {
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, an = (e, t = 302) => {
410
410
  let n = t;
411
411
  typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
412
412
  let a = new Headers(n.headers);
@@ -424,11 +424,11 @@ var Ee = [
424
424
  new Set(
425
425
  Ee
426
426
  );
427
- var Xe = [
427
+ var Qe = [
428
428
  "GET",
429
429
  ...Ee
430
430
  ];
431
- new Set(Xe);
431
+ new Set(Qe);
432
432
  var I = o.createContext(null);
433
433
  I.displayName = "DataRouter";
434
434
  var F = o.createContext(null);
@@ -441,8 +441,8 @@ var te = o.createContext(
441
441
  /* @__PURE__ */ new Map()
442
442
  );
443
443
  te.displayName = "Fetchers";
444
- var Qe = o.createContext(null);
445
- Qe.displayName = "Await";
444
+ var Ze = o.createContext(null);
445
+ Ze.displayName = "Await";
446
446
  var T = o.createContext(
447
447
  null
448
448
  );
@@ -459,8 +459,8 @@ var k = o.createContext({
459
459
  k.displayName = "Route";
460
460
  var ne = o.createContext(null);
461
461
  ne.displayName = "RouteError";
462
- function Ze(e, { relative: t } = {}) {
463
- R(
462
+ function et(e, { relative: t } = {}) {
463
+ b(
464
464
  O(),
465
465
  // TODO: This error is probably because they somehow have 2 versions of the
466
466
  // router loaded. We can help them understand how to avoid that.
@@ -473,7 +473,7 @@ function O() {
473
473
  return o.useContext(K) != null;
474
474
  }
475
475
  function N() {
476
- return R(
476
+ return b(
477
477
  O(),
478
478
  // TODO: This error is probably because they somehow have 2 versions of the
479
479
  // router loaded. We can help them understand how to avoid that.
@@ -481,7 +481,7 @@ function N() {
481
481
  ), o.useContext(K).location;
482
482
  }
483
483
  function on(e) {
484
- R(
484
+ b(
485
485
  O(),
486
486
  // TODO: This error is probably because they somehow have 2 versions of the
487
487
  // router loaded. We can help them understand how to avoid that.
@@ -494,22 +494,22 @@ function on(e) {
494
494
  );
495
495
  }
496
496
  var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
497
- function be(e) {
497
+ function Re(e) {
498
498
  o.useContext(T).static || o.useLayoutEffect(e);
499
499
  }
500
500
  function re() {
501
501
  let { isDataRoute: e } = o.useContext(k);
502
- return e ? dt() : et();
502
+ return e ? ht() : tt();
503
503
  }
504
- function et() {
505
- R(
504
+ function tt() {
505
+ b(
506
506
  O(),
507
507
  // TODO: This error is probably because they somehow have 2 versions of the
508
508
  // router loaded. We can help them understand how to avoid that.
509
509
  "useNavigate() may be used only in the context of a <Router> component."
510
510
  );
511
511
  let e = o.useContext(I), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), c = o.useRef(!1);
512
- return be(() => {
512
+ return Re(() => {
513
513
  c.current = !0;
514
514
  }), o.useCallback(
515
515
  (l, s = {}) => {
@@ -539,10 +539,10 @@ function et() {
539
539
  ]
540
540
  );
541
541
  }
542
- var tt = o.createContext(null);
543
- function nt(e) {
542
+ var nt = o.createContext(null);
543
+ function rt(e) {
544
544
  let t = o.useContext(k).outlet;
545
- return t && /* @__PURE__ */ o.createElement(tt.Provider, { value: e }, t);
545
+ return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
546
546
  }
547
547
  function ln() {
548
548
  let { matches: e } = o.useContext(k), t = e[e.length - 1];
@@ -560,8 +560,8 @@ function W(e, { relative: t } = {}) {
560
560
  [e, r, a, t]
561
561
  );
562
562
  }
563
- function Re(e, t, n, a) {
564
- R(
563
+ function be(e, t, n, a) {
564
+ b(
565
565
  O(),
566
566
  // TODO: This error is probably because they somehow have 2 versions of the
567
567
  // router loaded. We can help them understand how to avoid that.
@@ -569,42 +569,42 @@ function Re(e, t, n, a) {
569
569
  );
570
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;
571
571
  {
572
- let y = p && p.path || "";
572
+ let g = p && p.path || "";
573
573
  Pe(
574
574
  s,
575
- !p || y.endsWith("*") || y.endsWith("*?"),
576
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
575
+ !p || g.endsWith("*") || g.endsWith("*?"),
576
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
577
577
 
578
- Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" : `${y}/*`}">.`
578
+ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
579
579
  );
580
580
  }
581
- let d = N(), m;
582
- m = d;
583
- let f = m.pathname || "/", E = f;
581
+ let d = N(), v;
582
+ v = d;
583
+ let f = v.pathname || "/", w = f;
584
584
  if (h !== "/") {
585
- let y = h.replace(/^\//, "").split("/");
586
- E = "/" + f.replace(/^\//, "").split("/").slice(y.length).join("/");
585
+ let g = h.replace(/^\//, "").split("/");
586
+ w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
587
587
  }
588
- let g = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: E });
588
+ let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
589
589
  return L(
590
- p || g != null,
591
- `No routes matched location "${m.pathname}${m.search}${m.hash}" `
590
+ p || E != null,
591
+ `No routes matched location "${v.pathname}${v.search}${v.hash}" `
592
592
  ), L(
593
- g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0,
594
- `Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
595
- ), lt(
596
- g && g.map(
597
- (y) => Object.assign({}, y, {
598
- params: Object.assign({}, l, y.params),
593
+ E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
594
+ `Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
595
+ ), st(
596
+ E && E.map(
597
+ (g) => Object.assign({}, g, {
598
+ params: Object.assign({}, l, g.params),
599
599
  pathname: A([
600
600
  h,
601
601
  // Re-encode pathnames that were decoded inside matchRoutes
602
- r.encodeLocation ? r.encodeLocation(y.pathname).pathname : y.pathname
602
+ r.encodeLocation ? r.encodeLocation(g.pathname).pathname : g.pathname
603
603
  ]),
604
- pathnameBase: y.pathnameBase === "/" ? h : A([
604
+ pathnameBase: g.pathnameBase === "/" ? h : A([
605
605
  h,
606
606
  // Re-encode pathnames that were decoded inside matchRoutes
607
- r.encodeLocation ? r.encodeLocation(y.pathnameBase).pathname : y.pathnameBase
607
+ r.encodeLocation ? r.encodeLocation(g.pathnameBase).pathname : g.pathnameBase
608
608
  ])
609
609
  })
610
610
  ),
@@ -613,14 +613,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
613
613
  a
614
614
  );
615
615
  }
616
- function rt() {
617
- let e = ft(), 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;
616
+ function at() {
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;
618
618
  return console.error(
619
619
  "Error handled by React Router default ErrorBoundary:",
620
620
  e
621
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);
622
622
  }
623
- var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Component {
623
+ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
624
624
  constructor(e) {
625
625
  super(e), this.state = {
626
626
  location: e.location,
@@ -659,11 +659,11 @@ var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Compone
659
659
  )) : this.props.children;
660
660
  }
661
661
  };
662
- function ot({ routeContext: e, match: t, children: n }) {
662
+ function lt({ routeContext: e, match: t, children: n }) {
663
663
  let a = o.useContext(I);
664
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);
665
665
  }
666
- function lt(e, t = [], n = null, a = null) {
666
+ function st(e, t = [], n = null, a = null) {
667
667
  if (e == null) {
668
668
  if (!n)
669
669
  return null;
@@ -679,7 +679,7 @@ function lt(e, t = [], n = null, a = null) {
679
679
  let l = r.findIndex(
680
680
  (s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
681
681
  );
682
- R(
682
+ b(
683
683
  l >= 0,
684
684
  `Could not find a matching route for errors on route IDs: ${Object.keys(
685
685
  i
@@ -702,63 +702,63 @@ function lt(e, t = [], n = null, a = null) {
702
702
  }
703
703
  }
704
704
  return r.reduceRight((l, s, h) => {
705
- let p, d = !1, m = null, f = null;
706
- n && (p = i && s.route.id ? i[s.route.id] : void 0, m = s.route.errorElement || at, c && (u < 0 && h === 0 ? (Pe(
705
+ let p, d = !1, v = null, f = null;
706
+ n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Pe(
707
707
  "route-fallback",
708
708
  !1,
709
709
  "No `HydrateFallback` element provided to render during initial hydration"
710
710
  ), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
711
- let E = t.concat(r.slice(0, h + 1)), g = () => {
712
- let v;
713
- return p ? v = m : d ? v = f : s.route.Component ? v = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? v = s.route.element : v = l, /* @__PURE__ */ o.createElement(
714
- ot,
711
+ let w = t.concat(r.slice(0, h + 1)), E = () => {
712
+ let m;
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(
714
+ lt,
715
715
  {
716
716
  match: s,
717
717
  routeContext: {
718
718
  outlet: l,
719
- matches: E,
719
+ matches: w,
720
720
  isDataRoute: n != null
721
721
  },
722
- children: v
722
+ children: m
723
723
  }
724
724
  );
725
725
  };
726
726
  return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
727
- it,
727
+ ot,
728
728
  {
729
729
  location: n.location,
730
730
  revalidation: n.revalidation,
731
- component: m,
731
+ component: v,
732
732
  error: p,
733
- children: g(),
734
- routeContext: { outlet: null, matches: E, isDataRoute: !0 }
733
+ children: E(),
734
+ routeContext: { outlet: null, matches: w, isDataRoute: !0 }
735
735
  }
736
- ) : g();
736
+ ) : E();
737
737
  }, null);
738
738
  }
739
739
  function ae(e) {
740
740
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
741
741
  }
742
- function st(e) {
742
+ function ut(e) {
743
743
  let t = o.useContext(I);
744
- return R(t, ae(e)), t;
744
+ return b(t, ae(e)), t;
745
745
  }
746
746
  function Ce(e) {
747
747
  let t = o.useContext(F);
748
- return R(t, ae(e)), t;
748
+ return b(t, ae(e)), t;
749
749
  }
750
- function ut(e) {
750
+ function ct(e) {
751
751
  let t = o.useContext(k);
752
- return R(t, ae(e)), t;
752
+ return b(t, ae(e)), t;
753
753
  }
754
754
  function ie(e) {
755
- let t = ut(e), n = t.matches[t.matches.length - 1];
756
- return R(
755
+ let t = ct(e), n = t.matches[t.matches.length - 1];
756
+ return b(
757
757
  n.route.id,
758
758
  `${e} can only be used on routes that contain a unique "id"`
759
759
  ), n.route.id;
760
760
  }
761
- function ct() {
761
+ function ft() {
762
762
  return ie(
763
763
  "useRouteId"
764
764
  /* UseRouteId */
@@ -770,7 +770,7 @@ function sn() {
770
770
  /* UseNavigation */
771
771
  ).navigation;
772
772
  }
773
- function ft() {
773
+ function dt() {
774
774
  var a;
775
775
  let e = o.useContext(ne), t = Ce(
776
776
  "useRouteError"
@@ -781,15 +781,15 @@ function ft() {
781
781
  );
782
782
  return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
783
783
  }
784
- function dt() {
785
- let { router: e } = st(
784
+ function ht() {
785
+ let { router: e } = ut(
786
786
  "useNavigate"
787
787
  /* UseNavigateStable */
788
788
  ), t = ie(
789
789
  "useNavigate"
790
790
  /* UseNavigateStable */
791
791
  ), n = o.useRef(!1);
792
- return be(() => {
792
+ return Re(() => {
793
793
  n.current = !0;
794
794
  }), o.useCallback(
795
795
  async (r, i = {}) => {
@@ -806,7 +806,7 @@ var de = {};
806
806
  function he(e, t) {
807
807
  !e && !de[t] && (de[t] = !0, console.warn(t));
808
808
  }
809
- var ht = class {
809
+ var mt = class {
810
810
  constructor() {
811
811
  this.status = "pending", this.promise = new Promise((e, t) => {
812
812
  this.resolve = (n) => {
@@ -823,11 +823,11 @@ function un({
823
823
  }) {
824
824
  let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
825
825
  isTransitioning: !1
826
- }), [l, s] = o.useState(), [h, p] = o.useState(), [d, m] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), E = o.useCallback(
827
- (w, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
828
- w.fetchers.forEach((P, S) => {
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 }) => {
828
+ y.fetchers.forEach((P, S) => {
829
829
  P.data !== void 0 && f.current.set(S, P.data);
830
- }), b.forEach((P) => f.current.delete(P)), he(
830
+ }), R.forEach((P) => f.current.delete(P)), he(
831
831
  x === !1 || t != null,
832
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.'
833
833
  );
@@ -836,7 +836,7 @@ function un({
836
836
  C == null || $,
837
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."
838
838
  ), !C || !$) {
839
- t && x ? t(() => a(w)) : o.startTransition(() => a(w));
839
+ t && x ? t(() => a(y)) : o.startTransition(() => a(y));
840
840
  return;
841
841
  }
842
842
  if (t && x) {
@@ -849,7 +849,7 @@ function un({
849
849
  });
850
850
  });
851
851
  let P = e.window.document.startViewTransition(() => {
852
- t(() => a(w));
852
+ t(() => a(y));
853
853
  });
854
854
  P.finished.finally(() => {
855
855
  t(() => {
@@ -858,11 +858,11 @@ function un({
858
858
  }), t(() => p(P));
859
859
  return;
860
860
  }
861
- h ? (l && l.resolve(), h.skipTransition(), m({
862
- state: w,
861
+ h ? (l && l.resolve(), h.skipTransition(), v({
862
+ state: y,
863
863
  currentLocation: C.currentLocation,
864
864
  nextLocation: C.nextLocation
865
- })) : (i(w), u({
865
+ })) : (i(y), u({
866
866
  isTransitioning: !0,
867
867
  flushSync: !1,
868
868
  currentLocation: C.currentLocation,
@@ -871,12 +871,12 @@ function un({
871
871
  },
872
872
  [e.window, t, h, l]
873
873
  );
874
- o.useLayoutEffect(() => e.subscribe(E), [e, E]), o.useEffect(() => {
875
- c.isTransitioning && !c.flushSync && s(new ht());
874
+ o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
875
+ c.isTransitioning && !c.flushSync && s(new mt());
876
876
  }, [c]), o.useEffect(() => {
877
877
  if (l && r && e.window) {
878
- let w = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
879
- o.startTransition(() => a(w)), await b;
878
+ let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
879
+ o.startTransition(() => a(y)), await R;
880
880
  });
881
881
  x.finished.finally(() => {
882
882
  s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
@@ -890,40 +890,40 @@ function un({
890
890
  flushSync: !1,
891
891
  currentLocation: d.currentLocation,
892
892
  nextLocation: d.nextLocation
893
- }), m(void 0));
893
+ }), v(void 0));
894
894
  }, [c.isTransitioning, d]);
895
- let g = o.useMemo(() => ({
895
+ let E = o.useMemo(() => ({
896
896
  createHref: e.createHref,
897
897
  encodeLocation: e.encodeLocation,
898
- go: (w) => e.navigate(w),
899
- push: (w, b, x) => e.navigate(w, {
900
- state: b,
898
+ go: (y) => e.navigate(y),
899
+ push: (y, R, x) => e.navigate(y, {
900
+ state: R,
901
901
  preventScrollReset: x == null ? void 0 : x.preventScrollReset
902
902
  }),
903
- replace: (w, b, x) => e.navigate(w, {
903
+ replace: (y, R, x) => e.navigate(y, {
904
904
  replace: !0,
905
- state: b,
905
+ state: R,
906
906
  preventScrollReset: x == null ? void 0 : x.preventScrollReset
907
907
  })
908
- }), [e]), v = e.basename || "/", y = o.useMemo(
908
+ }), [e]), m = e.basename || "/", g = o.useMemo(
909
909
  () => ({
910
910
  router: e,
911
- navigator: g,
911
+ navigator: E,
912
912
  static: !1,
913
- basename: v
913
+ basename: m
914
914
  }),
915
- [e, g, v]
915
+ [e, E, m]
916
916
  );
917
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value: y }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
917
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value: g }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
918
918
  Se,
919
919
  {
920
- basename: v,
920
+ basename: m,
921
921
  location: n.location,
922
922
  navigationType: n.historyAction,
923
- navigator: g
923
+ navigator: E
924
924
  },
925
925
  /* @__PURE__ */ o.createElement(
926
- mt,
926
+ pt,
927
927
  {
928
928
  routes: e.routes,
929
929
  future: e.future,
@@ -932,13 +932,13 @@ function un({
932
932
  )
933
933
  ))))), null);
934
934
  }
935
- var mt = o.memo(pt);
936
- function pt({
935
+ var pt = o.memo(vt);
936
+ function vt({
937
937
  routes: e,
938
938
  future: t,
939
939
  state: n
940
940
  }) {
941
- return Re(e, void 0, n, t);
941
+ return be(e, void 0, n, t);
942
942
  }
943
943
  function cn({
944
944
  to: e,
@@ -946,7 +946,7 @@ function cn({
946
946
  state: n,
947
947
  relative: a
948
948
  }) {
949
- R(
949
+ b(
950
950
  O(),
951
951
  // TODO: This error is probably because they somehow have 2 versions of
952
952
  // the router loaded. We can help them understand how to avoid that.
@@ -968,7 +968,7 @@ function cn({
968
968
  }, [u, s, a, t, n]), null;
969
969
  }
970
970
  function fn(e) {
971
- return nt(e.context);
971
+ return rt(e.context);
972
972
  }
973
973
  function Se({
974
974
  basename: e = "/",
@@ -978,7 +978,7 @@ function Se({
978
978
  navigator: r,
979
979
  static: i = !1
980
980
  }) {
981
- R(
981
+ b(
982
982
  !O(),
983
983
  "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
984
984
  );
@@ -998,8 +998,8 @@ function Se({
998
998
  hash: h = "",
999
999
  state: p = null,
1000
1000
  key: d = "default"
1001
- } = n, m = o.useMemo(() => {
1002
- let f = D(l, c);
1001
+ } = n, v = o.useMemo(() => {
1002
+ let f = M(l, c);
1003
1003
  return f == null ? null : {
1004
1004
  location: {
1005
1005
  pathname: f,
@@ -1012,30 +1012,30 @@ function Se({
1012
1012
  };
1013
1013
  }, [c, l, s, h, p, d, a]);
1014
1014
  return L(
1015
- m != null,
1015
+ v != null,
1016
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.`
1017
- ), m == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: m }));
1017
+ ), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
1018
1018
  }
1019
1019
  var V = "get", j = "application/x-www-form-urlencoded";
1020
1020
  function q(e) {
1021
1021
  return e != null && typeof e.tagName == "string";
1022
1022
  }
1023
- function vt(e) {
1023
+ function gt(e) {
1024
1024
  return q(e) && e.tagName.toLowerCase() === "button";
1025
1025
  }
1026
- function gt(e) {
1026
+ function yt(e) {
1027
1027
  return q(e) && e.tagName.toLowerCase() === "form";
1028
1028
  }
1029
- function yt(e) {
1029
+ function wt(e) {
1030
1030
  return q(e) && e.tagName.toLowerCase() === "input";
1031
1031
  }
1032
- function wt(e) {
1032
+ function Et(e) {
1033
1033
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1034
1034
  }
1035
- function Et(e, t) {
1035
+ function xt(e, t) {
1036
1036
  return e.button === 0 && // Ignore everything but left clicks
1037
1037
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
1038
- !wt(e);
1038
+ !Et(e);
1039
1039
  }
1040
1040
  function Q(e = "") {
1041
1041
  return new URLSearchParams(
@@ -1047,7 +1047,7 @@ function Q(e = "") {
1047
1047
  }, [])
1048
1048
  );
1049
1049
  }
1050
- function xt(e, t) {
1050
+ function Rt(e, t) {
1051
1051
  let n = Q(e);
1052
1052
  return t && t.forEach((a, r) => {
1053
1053
  n.has(r) || t.getAll(r).forEach((i) => {
@@ -1069,30 +1069,30 @@ function bt() {
1069
1069
  }
1070
1070
  return z;
1071
1071
  }
1072
- var Rt = /* @__PURE__ */ new Set([
1072
+ var Ct = /* @__PURE__ */ new Set([
1073
1073
  "application/x-www-form-urlencoded",
1074
1074
  "multipart/form-data",
1075
1075
  "text/plain"
1076
1076
  ]);
1077
1077
  function X(e) {
1078
- return e != null && !Rt.has(e) ? (L(
1078
+ return e != null && !Ct.has(e) ? (L(
1079
1079
  !1,
1080
1080
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
1081
1081
  ), null) : e;
1082
1082
  }
1083
- function Ct(e, t) {
1083
+ function Pt(e, t) {
1084
1084
  let n, a, r, i, c;
1085
- if (gt(e)) {
1085
+ if (yt(e)) {
1086
1086
  let u = e.getAttribute("action");
1087
- a = u ? D(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1088
- } else if (vt(e) || yt(e) && (e.type === "submit" || e.type === "image")) {
1087
+ a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1088
+ } else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1089
1089
  let u = e.form;
1090
1090
  if (u == null)
1091
1091
  throw new Error(
1092
1092
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1093
1093
  );
1094
1094
  let l = e.getAttribute("formaction") || u.getAttribute("action");
1095
- if (a = l ? D(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()) {
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()) {
1096
1096
  let { name: s, type: h, value: p } = e;
1097
1097
  if (h === "image") {
1098
1098
  let d = s ? `${s}.` : "";
@@ -1112,7 +1112,7 @@ function oe(e, t) {
1112
1112
  if (e === !1 || e === null || typeof e > "u")
1113
1113
  throw new Error(t);
1114
1114
  }
1115
- async function Pt(e, t) {
1115
+ async function St(e, t) {
1116
1116
  if (e.id in t)
1117
1117
  return t[e.id];
1118
1118
  try {
@@ -1129,22 +1129,22 @@ async function Pt(e, t) {
1129
1129
  });
1130
1130
  }
1131
1131
  }
1132
- function St(e) {
1132
+ function Lt(e) {
1133
1133
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1134
1134
  }
1135
- async function Lt(e, t, n) {
1135
+ async function kt(e, t, n) {
1136
1136
  let a = await Promise.all(
1137
1137
  e.map(async (r) => {
1138
1138
  let i = t.routes[r.route.id];
1139
1139
  if (i) {
1140
- let c = await Pt(i, n);
1140
+ let c = await St(i, n);
1141
1141
  return c.links ? c.links() : [];
1142
1142
  }
1143
1143
  return [];
1144
1144
  })
1145
1145
  );
1146
- return Nt(
1147
- a.flat(1).filter(St).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1146
+ return At(
1147
+ a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1148
1148
  (r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
1149
1149
  )
1150
1150
  );
@@ -1185,8 +1185,8 @@ function me(e, t, n, a, r, i) {
1185
1185
  return !0;
1186
1186
  }) : [];
1187
1187
  }
1188
- function kt(e, t, { includeHydrateFallback: n } = {}) {
1189
- return $t(
1188
+ function $t(e, t, { includeHydrateFallback: n } = {}) {
1189
+ return Tt(
1190
1190
  e.map((a) => {
1191
1191
  let r = t.routes[a.route.id];
1192
1192
  if (!r) return [];
@@ -1195,32 +1195,32 @@ function kt(e, t, { includeHydrateFallback: n } = {}) {
1195
1195
  }).flat(1)
1196
1196
  );
1197
1197
  }
1198
- function $t(e) {
1198
+ function Tt(e) {
1199
1199
  return [...new Set(e)];
1200
1200
  }
1201
- function Tt(e) {
1201
+ function Nt(e) {
1202
1202
  let t = {}, n = Object.keys(e).sort();
1203
1203
  for (let a of n)
1204
1204
  t[a] = e[a];
1205
1205
  return t;
1206
1206
  }
1207
- function Nt(e, t) {
1207
+ function At(e, t) {
1208
1208
  let n = /* @__PURE__ */ new Set();
1209
1209
  return new Set(t), e.reduce((a, r) => {
1210
- let i = JSON.stringify(Tt(r));
1210
+ let i = JSON.stringify(Nt(r));
1211
1211
  return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1212
1212
  }, []);
1213
1213
  }
1214
- function At(e) {
1215
- let t = typeof e == "string" ? new URL(
1214
+ function Mt(e, t) {
1215
+ let n = typeof e == "string" ? new URL(
1216
1216
  e,
1217
1217
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
1218
1218
  // don't assume window is available
1219
1219
  typeof window > "u" ? "server://singlefetch/" : window.location.origin
1220
1220
  ) : e;
1221
- return t.pathname === "/" ? t.pathname = "_root.data" : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
1221
+ 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;
1222
1222
  }
1223
- function Mt() {
1223
+ function Le() {
1224
1224
  let e = o.useContext(I);
1225
1225
  return oe(
1226
1226
  e,
@@ -1236,7 +1236,7 @@ function Dt() {
1236
1236
  }
1237
1237
  var le = o.createContext(void 0);
1238
1238
  le.displayName = "FrameworkContext";
1239
- function Le() {
1239
+ function ke() {
1240
1240
  let e = o.useContext(le);
1241
1241
  return oe(
1242
1242
  e,
@@ -1247,26 +1247,26 @@ function It(e, t) {
1247
1247
  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);
1248
1248
  o.useEffect(() => {
1249
1249
  if (e === "render" && c(!0), e === "viewport") {
1250
- let E = (v) => {
1251
- v.forEach((y) => {
1252
- c(y.isIntersecting);
1250
+ let w = (m) => {
1251
+ m.forEach((g) => {
1252
+ c(g.isIntersecting);
1253
1253
  });
1254
- }, g = new IntersectionObserver(E, { threshold: 0.5 });
1255
- return d.current && g.observe(d.current), () => {
1256
- g.disconnect();
1254
+ }, E = new IntersectionObserver(w, { threshold: 0.5 });
1255
+ return d.current && E.observe(d.current), () => {
1256
+ E.disconnect();
1257
1257
  };
1258
1258
  }
1259
1259
  }, [e]), o.useEffect(() => {
1260
1260
  if (a) {
1261
- let E = setTimeout(() => {
1261
+ let w = setTimeout(() => {
1262
1262
  c(!0);
1263
1263
  }, 100);
1264
1264
  return () => {
1265
- clearTimeout(E);
1265
+ clearTimeout(w);
1266
1266
  };
1267
1267
  }
1268
1268
  }, [a]);
1269
- let m = () => {
1269
+ let v = () => {
1270
1270
  r(!0);
1271
1271
  }, f = () => {
1272
1272
  r(!1), c(!1);
@@ -1275,11 +1275,11 @@ function It(e, t) {
1275
1275
  i,
1276
1276
  d,
1277
1277
  {
1278
- onFocus: U(u, m),
1278
+ onFocus: U(u, v),
1279
1279
  onBlur: U(l, f),
1280
- onMouseEnter: U(s, m),
1280
+ onMouseEnter: U(s, v),
1281
1281
  onMouseLeave: U(h, f),
1282
- onTouchStart: U(p, m)
1282
+ onTouchStart: U(p, v)
1283
1283
  }
1284
1284
  ] : [!1, d, {}];
1285
1285
  }
@@ -1292,17 +1292,17 @@ function Ot({
1292
1292
  page: e,
1293
1293
  ...t
1294
1294
  }) {
1295
- let { router: n } = Mt(), a = o.useMemo(
1295
+ let { router: n } = Le(), a = o.useMemo(
1296
1296
  () => pe(n.routes, e, n.basename),
1297
1297
  [n.routes, e, n.basename]
1298
1298
  );
1299
1299
  return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : null;
1300
1300
  }
1301
1301
  function Ft(e) {
1302
- let { manifest: t, routeModules: n } = Le(), [a, r] = o.useState([]);
1302
+ let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
1303
1303
  return o.useEffect(() => {
1304
1304
  let i = !1;
1305
- return Lt(e, t, n).then(
1305
+ return kt(e, t, n).then(
1306
1306
  (c) => {
1307
1307
  i || r(c);
1308
1308
  }
@@ -1316,57 +1316,58 @@ function _t({
1316
1316
  matches: t,
1317
1317
  ...n
1318
1318
  }) {
1319
- let a = N(), { manifest: r, routeModules: i } = Le(), { loaderData: c, matches: u } = Dt(), l = o.useMemo(
1319
+ let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Dt(), s = o.useMemo(
1320
1320
  () => me(
1321
1321
  e,
1322
1322
  t,
1323
- u,
1323
+ l,
1324
1324
  r,
1325
1325
  a,
1326
1326
  "data"
1327
1327
  ),
1328
- [e, t, u, r, a]
1329
- ), s = o.useMemo(
1328
+ [e, t, l, r, a]
1329
+ ), h = o.useMemo(
1330
1330
  () => me(
1331
1331
  e,
1332
1332
  t,
1333
- u,
1333
+ l,
1334
1334
  r,
1335
1335
  a,
1336
1336
  "assets"
1337
1337
  ),
1338
- [e, t, u, r, a]
1339
- ), h = o.useMemo(() => {
1338
+ [e, t, l, r, a]
1339
+ ), p = o.useMemo(() => {
1340
1340
  if (e === a.pathname + a.search + a.hash)
1341
1341
  return [];
1342
- let m = /* @__PURE__ */ new Set(), f = !1;
1343
- if (t.forEach((g) => {
1342
+ let f = /* @__PURE__ */ new Set(), w = !1;
1343
+ if (t.forEach((m) => {
1344
1344
  var y;
1345
- let v = r.routes[g.route.id];
1346
- !v || !v.hasLoader || (!l.some((w) => w.route.id === g.route.id) && g.route.id in c && ((y = i[g.route.id]) != null && y.shouldRevalidate) || v.hasClientLoader ? f = !0 : m.add(g.route.id));
1347
- }), m.size === 0)
1345
+ let g = r.routes[m.route.id];
1346
+ !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));
1347
+ }), f.size === 0)
1348
1348
  return [];
1349
- let E = At(e);
1350
- return f && m.size > 0 && E.searchParams.set(
1349
+ let E = Mt(e, c);
1350
+ return w && f.size > 0 && E.searchParams.set(
1351
1351
  "_routes",
1352
- t.filter((g) => m.has(g.route.id)).map((g) => g.route.id).join(",")
1352
+ t.filter((m) => f.has(m.route.id)).map((m) => m.route.id).join(",")
1353
1353
  ), [E.pathname + E.search];
1354
1354
  }, [
1355
1355
  c,
1356
+ u,
1356
1357
  a,
1357
1358
  r,
1358
- l,
1359
+ s,
1359
1360
  t,
1360
1361
  e,
1361
1362
  i
1362
- ]), p = o.useMemo(
1363
- () => kt(s, r),
1364
- [s, r]
1365
- ), d = Ft(s);
1366
- return /* @__PURE__ */ o.createElement(o.Fragment, null, h.map((m) => /* @__PURE__ */ o.createElement("link", { key: m, rel: "prefetch", as: "fetch", href: m, ...n })), p.map((m) => /* @__PURE__ */ o.createElement("link", { key: m, rel: "modulepreload", href: m, ...n })), d.map(({ key: m, link: f }) => (
1363
+ ]), d = o.useMemo(
1364
+ () => $t(h, r),
1365
+ [h, r]
1366
+ ), v = Ft(h);
1367
+ 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 }) => (
1367
1368
  // these don't spread `linkProps` because they are full link descriptors
1368
1369
  // already with their own props
1369
- /* @__PURE__ */ o.createElement("link", { key: m, ...f })
1370
+ /* @__PURE__ */ o.createElement("link", { key: f, ...w })
1370
1371
  )));
1371
1372
  }
1372
1373
  function Ut(...e) {
@@ -1376,12 +1377,12 @@ function Ut(...e) {
1376
1377
  });
1377
1378
  };
1378
1379
  }
1379
- var ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1380
+ var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1380
1381
  try {
1381
- ke && (window.__reactRouterVersion = "7.2.0");
1382
+ $e && (window.__reactRouterVersion = "7.5.0");
1382
1383
  } catch {
1383
1384
  }
1384
- var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1385
+ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1385
1386
  function({
1386
1387
  onClick: t,
1387
1388
  discover: n = "render",
@@ -1395,19 +1396,19 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1395
1396
  preventScrollReset: h,
1396
1397
  viewTransition: p,
1397
1398
  ...d
1398
- }, m) {
1399
- let { basename: f } = o.useContext(T), E = typeof s == "string" && $e.test(s), g, v = !1;
1400
- if (typeof s == "string" && E && (g = s, ke))
1399
+ }, v) {
1400
+ let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1401
+ if (typeof s == "string" && w && (E = s, $e))
1401
1402
  try {
1402
- let S = new URL(window.location.href), M = s.startsWith("//") ? new URL(S.protocol + s) : new URL(s), se = D(M.pathname, f);
1403
- M.origin === S.origin && se != null ? s = se + M.search + M.hash : v = !0;
1403
+ let S = new URL(window.location.href), D = s.startsWith("//") ? new URL(S.protocol + s) : new URL(s), se = M(D.pathname, f);
1404
+ D.origin === S.origin && se != null ? s = se + D.search + D.hash : m = !0;
1404
1405
  } catch {
1405
1406
  L(
1406
1407
  !1,
1407
1408
  `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1408
1409
  );
1409
1410
  }
1410
- let y = Ze(s, { relative: r }), [w, b, x] = It(
1411
+ let g = et(s, { relative: r }), [y, R, x] = It(
1411
1412
  a,
1412
1413
  d
1413
1414
  ), C = zt(s, {
@@ -1428,18 +1429,18 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1428
1429
  {
1429
1430
  ...d,
1430
1431
  ...x,
1431
- href: g || y,
1432
- onClick: v || i ? t : $,
1433
- ref: Ut(m, b),
1432
+ href: E || g,
1433
+ onClick: m || i ? t : $,
1434
+ ref: Ut(v, R),
1434
1435
  target: l,
1435
- "data-discover": !E && n === "render" ? "true" : void 0
1436
+ "data-discover": !w && n === "render" ? "true" : void 0
1436
1437
  }
1437
1438
  )
1438
1439
  );
1439
- return w && !E ? /* @__PURE__ */ o.createElement(o.Fragment, null, P, /* @__PURE__ */ o.createElement(Ot, { page: y })) : P;
1440
+ return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, P, /* @__PURE__ */ o.createElement(Ot, { page: g })) : P;
1440
1441
  }
1441
1442
  );
1442
- Te.displayName = "Link";
1443
+ Ne.displayName = "Link";
1443
1444
  var Bt = o.forwardRef(
1444
1445
  function({
1445
1446
  "aria-current": t = "page",
@@ -1452,31 +1453,31 @@ var Bt = o.forwardRef(
1452
1453
  children: l,
1453
1454
  ...s
1454
1455
  }, h) {
1455
- let p = W(c, { relative: s.relative }), d = N(), m = o.useContext(F), { navigator: f, basename: E } = o.useContext(T), g = m != null && // Conditional usage is OK here because the usage of a data router is static
1456
+ let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(F), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1456
1457
  // eslint-disable-next-line react-hooks/rules-of-hooks
1457
- Kt(p) && u === !0, v = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, y = d.pathname, w = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
1458
- n || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, v = v.toLowerCase()), w && E && (w = D(w, E) || w);
1459
- const b = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1460
- let x = y === v || !r && y.startsWith(v) && y.charAt(b) === "/", C = w != null && (w === v || !r && w.startsWith(v) && w.charAt(v.length) === "/"), $ = {
1458
+ Kt(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;
1459
+ n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
1460
+ const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1461
+ let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1461
1462
  isActive: x,
1462
1463
  isPending: C,
1463
- isTransitioning: g
1464
+ isTransitioning: E
1464
1465
  }, P = x ? t : void 0, S;
1465
1466
  typeof a == "function" ? S = a($) : S = [
1466
1467
  a,
1467
1468
  x ? "active" : null,
1468
1469
  C ? "pending" : null,
1469
- g ? "transitioning" : null
1470
+ E ? "transitioning" : null
1470
1471
  ].filter(Boolean).join(" ");
1471
- let M = typeof i == "function" ? i($) : i;
1472
+ let D = typeof i == "function" ? i($) : i;
1472
1473
  return /* @__PURE__ */ o.createElement(
1473
- Te,
1474
+ Ne,
1474
1475
  {
1475
1476
  ...s,
1476
1477
  "aria-current": P,
1477
1478
  className: S,
1478
1479
  ref: h,
1479
- style: M,
1480
+ style: D,
1480
1481
  to: c,
1481
1482
  viewTransition: u
1482
1483
  },
@@ -1500,12 +1501,12 @@ var Ht = o.forwardRef(
1500
1501
  preventScrollReset: h,
1501
1502
  viewTransition: p,
1502
1503
  ...d
1503
- }, m) => {
1504
- let f = Yt(), E = Jt(u, { relative: s }), g = c.toLowerCase() === "get" ? "get" : "post", v = typeof u == "string" && $e.test(u), y = (w) => {
1505
- if (l && l(w), w.defaultPrevented) return;
1506
- w.preventDefault();
1507
- let b = w.nativeEvent.submitter, x = (b == null ? void 0 : b.getAttribute("formmethod")) || c;
1508
- f(b || w.currentTarget, {
1504
+ }, v) => {
1505
+ let f = Yt(), w = Jt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1506
+ if (l && l(y), y.defaultPrevented) return;
1507
+ y.preventDefault();
1508
+ let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
1509
+ f(R || y.currentTarget, {
1509
1510
  fetcherKey: t,
1510
1511
  method: x,
1511
1512
  navigate: n,
@@ -1519,12 +1520,12 @@ var Ht = o.forwardRef(
1519
1520
  return /* @__PURE__ */ o.createElement(
1520
1521
  "form",
1521
1522
  {
1522
- ref: m,
1523
- method: g,
1524
- action: E,
1525
- onSubmit: a ? l : y,
1523
+ ref: v,
1524
+ method: E,
1525
+ action: w,
1526
+ onSubmit: a ? l : g,
1526
1527
  ...d,
1527
- "data-discover": !v && e === "render" ? "true" : void 0
1528
+ "data-discover": !m && e === "render" ? "true" : void 0
1528
1529
  }
1529
1530
  );
1530
1531
  }
@@ -1533,9 +1534,9 @@ Ht.displayName = "Form";
1533
1534
  function Wt(e) {
1534
1535
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1535
1536
  }
1536
- function Ne(e) {
1537
+ function Ae(e) {
1537
1538
  let t = o.useContext(I);
1538
- return R(t, Wt(e)), t;
1539
+ return b(t, Wt(e)), t;
1539
1540
  }
1540
1541
  function zt(e, {
1541
1542
  target: t,
@@ -1548,7 +1549,7 @@ function zt(e, {
1548
1549
  let u = re(), l = N(), s = W(e, { relative: i });
1549
1550
  return o.useCallback(
1550
1551
  (h) => {
1551
- if (Et(h, t)) {
1552
+ if (xt(h, t)) {
1552
1553
  h.preventDefault();
1553
1554
  let p = n !== void 0 ? n : B(l) === B(s);
1554
1555
  u(e, {
@@ -1584,7 +1585,7 @@ function dn(e) {
1584
1585
  // Only merge in the defaults if we haven't yet called setSearchParams.
1585
1586
  // Once we call that we want those to take precedence, otherwise you can't
1586
1587
  // remove a param with setSearchParams({}) if it has an initial value
1587
- xt(
1588
+ Rt(
1588
1589
  a.search,
1589
1590
  n.current ? null : t.current
1590
1591
  )
@@ -1603,13 +1604,13 @@ function dn(e) {
1603
1604
  }
1604
1605
  var Vt = 0, jt = () => `__${String(++Vt)}__`;
1605
1606
  function Yt() {
1606
- let { router: e } = Ne(
1607
+ let { router: e } = Ae(
1607
1608
  "useSubmit"
1608
1609
  /* UseSubmit */
1609
- ), { basename: t } = o.useContext(T), n = ct();
1610
+ ), { basename: t } = o.useContext(T), n = ft();
1610
1611
  return o.useCallback(
1611
1612
  async (a, r = {}) => {
1612
- let { action: i, method: c, encType: u, formData: l, body: s } = Ct(
1613
+ let { action: i, method: c, encType: u, formData: l, body: s } = Pt(
1613
1614
  a,
1614
1615
  t
1615
1616
  );
@@ -1642,7 +1643,7 @@ function Yt() {
1642
1643
  }
1643
1644
  function Jt(e, { relative: t } = {}) {
1644
1645
  let { basename: n } = o.useContext(T), a = o.useContext(k);
1645
- R(a, "useFormAction must be used inside a RouteContext");
1646
+ b(a, "useFormAction must be used inside a RouteContext");
1646
1647
  let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
1647
1648
  if (e == null) {
1648
1649
  i.search = c.search;
@@ -1657,17 +1658,17 @@ function Jt(e, { relative: t } = {}) {
1657
1658
  }
1658
1659
  function Kt(e, t = {}) {
1659
1660
  let n = o.useContext(J);
1660
- R(
1661
+ b(
1661
1662
  n != null,
1662
1663
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1663
1664
  );
1664
- let { basename: a } = Ne(
1665
+ let { basename: a } = Ae(
1665
1666
  "useViewTransitionState"
1666
1667
  /* useViewTransitionState */
1667
1668
  ), r = W(e, { relative: t.relative });
1668
1669
  if (!n.isTransitioning)
1669
1670
  return !1;
1670
- let i = D(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = D(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1671
+ let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1671
1672
  return H(r.pathname, c) != null || H(r.pathname, i) != null;
1672
1673
  }
1673
1674
  function hn({
@@ -1676,7 +1677,7 @@ function hn({
1676
1677
  hydrate: n = !0,
1677
1678
  nonce: a
1678
1679
  }) {
1679
- R(
1680
+ b(
1680
1681
  t && e,
1681
1682
  "You must provide `router` and `context` to <StaticRouterProvider>"
1682
1683
  );
@@ -1727,7 +1728,7 @@ function qt({
1727
1728
  future: t,
1728
1729
  state: n
1729
1730
  }) {
1730
- return Re(e, void 0, n, t);
1731
+ return be(e, void 0, n, t);
1731
1732
  }
1732
1733
  function Gt(e) {
1733
1734
  if (!e) return null;
@@ -1800,7 +1801,7 @@ function rn(e) {
1800
1801
  }
1801
1802
  new TextEncoder();
1802
1803
  export {
1803
- Te as L,
1804
+ Ne as L,
1804
1805
  cn as N,
1805
1806
  fn as O,
1806
1807
  un as R,
@@ -1809,13 +1810,13 @@ export {
1809
1810
  dn as b,
1810
1811
  ln as c,
1811
1812
  on as d,
1812
- ft as e,
1813
+ dt as e,
1813
1814
  sn as f,
1814
1815
  Bt as g,
1815
- Ze as h,
1816
+ et as h,
1816
1817
  we as i,
1817
1818
  H as m,
1818
1819
  an as r,
1819
1820
  N as u
1820
1821
  };
1821
- //# sourceMappingURL=chunk-HA7DTUK3-C4gP41vD.js.map
1822
+ //# sourceMappingURL=chunk-KNED5TY2-BUPjb3LQ.js.map