likec4 1.57.0 → 1.59.0

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 (178) hide show
  1. package/__app__/codegen/react.mjs +7 -8
  2. package/__app__/codegen/webcomponent.mjs +78 -889
  3. package/__app__/src/aichat/index.mjs +8 -1
  4. package/__app__/src/chunks/AIChat.mjs +956 -0
  5. package/__app__/src/chunks/LikeC4Styles.mjs +2164 -0
  6. package/__app__/src/chunks/ProjectsOverview.mjs +537 -0
  7. package/__app__/src/chunks/es.mjs +439 -0
  8. package/__app__/src/chunks/hooks.mjs +458 -0
  9. package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
  10. package/__app__/src/chunks/libs/@mantine.mjs +12974 -0
  11. package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
  12. package/__app__/src/chunks/libs/@tanstack.mjs +2693 -0
  13. package/__app__/src/chunks/libs/@xstate/react.mjs +1996 -0
  14. package/__app__/src/chunks/libs/@xyflow/react.mjs +5280 -0
  15. package/__app__/src/chunks/libs/bezier-js.mjs +1006 -0
  16. package/__app__/src/chunks/libs/d3.mjs +2842 -0
  17. package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
  18. package/__app__/src/chunks/libs/framer.mjs +5905 -0
  19. package/__app__/src/chunks/libs/zod.mjs +3173 -0
  20. package/__app__/src/chunks/rolldown-runtime.mjs +30 -0
  21. package/__app__/src/chunks/styled-system.mjs +1047 -0
  22. package/__app__/src/fonts.css +1 -1
  23. package/__app__/src/main.mjs +27659 -14
  24. package/__app__/src/style.css +1 -1
  25. package/dist/chunks/dist.mjs +10 -0
  26. package/dist/chunks/enableServer.mjs +1 -1
  27. package/dist/chunks/filenames.mjs +2 -2
  28. package/dist/chunks/index.d.mts +9 -9
  29. package/dist/chunks/index2.d.mts +2167 -867
  30. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  31. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +1 -1
  32. package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
  33. package/dist/chunks/libs/@ts-graphviz/common.d.mts +1 -2
  34. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
  35. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  36. package/dist/chunks/libs/chevrotain.mjs +25 -25
  37. package/dist/chunks/libs/json5.mjs +1 -1
  38. package/dist/chunks/libs/langium.d.mts +2940 -2914
  39. package/dist/chunks/libs/langium.mjs +9 -9
  40. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  41. package/dist/chunks/libs/p-queue.mjs +1 -1
  42. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  43. package/dist/chunks/libs/pako.mjs +1 -1
  44. package/dist/chunks/libs/picomatch.mjs +1 -1
  45. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  46. package/dist/chunks/libs/remeda.mjs +1 -1
  47. package/dist/chunks/libs/ufo.mjs +1 -1
  48. package/dist/chunks/libs/unstorage.d.mts +1 -0
  49. package/dist/chunks/libs/unstorage.mjs +1 -1
  50. package/dist/chunks/libs/which.mjs +1 -1
  51. package/dist/chunks/libs/zod.d.mts +48 -36
  52. package/dist/chunks/libs/zod.mjs +65 -0
  53. package/dist/chunks/logger.mjs +1 -0
  54. package/dist/chunks/node.mjs +65 -63
  55. package/dist/chunks/rolldown-runtime.mjs +1 -1
  56. package/dist/chunks/sequence-view.mjs +1 -1
  57. package/dist/chunks/{plugin.mjs → vite-plugin.mjs} +41 -41
  58. package/dist/cli/index.mjs +186 -144
  59. package/dist/index.d.mts +3 -4
  60. package/dist/index.mjs +1 -1
  61. package/dist/model/index.d.mts +6 -5
  62. package/dist/vite-plugin/index.d.mts +6 -9
  63. package/dist/vite-plugin/index.mjs +1 -1
  64. package/dist/vite-plugin/internal/index.d.mts +64 -64
  65. package/dist/vite-plugin/internal/index.mjs +946 -1
  66. package/package.json +51 -52
  67. package/react/index.d.mts +853 -134
  68. package/react/index.mjs +49718 -44030
  69. package/__app__/chunks/AIChat2.mjs +0 -2
  70. package/__app__/chunks/DiagramActorProvider.mjs +0 -10
  71. package/__app__/chunks/EmbedPage.mjs +0 -1
  72. package/__app__/chunks/ExportPage.mjs +0 -2
  73. package/__app__/chunks/LikeC4Diagram.mjs +0 -19
  74. package/__app__/chunks/LikeC4Styles.mjs +0 -48
  75. package/__app__/chunks/Markdown.mjs +0 -1
  76. package/__app__/chunks/NavigationPanel.mjs +0 -1
  77. package/__app__/chunks/ViewReact.mjs +0 -1
  78. package/__app__/chunks/adhoc-editor.mjs +0 -1
  79. package/__app__/chunks/aichat.mjs +0 -1
  80. package/__app__/chunks/box.mjs +0 -1
  81. package/__app__/chunks/create-style-context.mjs +0 -1
  82. package/__app__/chunks/css.mjs +0 -1
  83. package/__app__/chunks/factory.mjs +0 -1
  84. package/__app__/chunks/hooks.mjs +0 -1
  85. package/__app__/chunks/hstack.mjs +0 -1
  86. package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
  87. package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
  88. package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
  89. package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
  90. package/__app__/chunks/libs/@mantine/core.mjs +0 -41
  91. package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
  92. package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
  93. package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
  94. package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -358
  95. package/__app__/chunks/libs/@tanstack/ai-client.mjs +0 -2
  96. package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +0 -1
  97. package/__app__/chunks/libs/@tanstack/ai-react.mjs +0 -1
  98. package/__app__/chunks/libs/@tanstack/ai.mjs +0 -2
  99. package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
  100. package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
  101. package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
  102. package/__app__/chunks/libs/@xstate/react.mjs +0 -1
  103. package/__app__/chunks/libs/@xstate/store.mjs +0 -1
  104. package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
  105. package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
  106. package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
  107. package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
  108. package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
  109. package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
  110. package/__app__/chunks/libs/bezier-js.mjs +0 -1
  111. package/__app__/chunks/libs/copy-anything.mjs +0 -1
  112. package/__app__/chunks/libs/d3-path.mjs +0 -1
  113. package/__app__/chunks/libs/d3-shape.mjs +0 -1
  114. package/__app__/chunks/libs/fast-equals.mjs +0 -1
  115. package/__app__/chunks/libs/framer-motion.mjs +0 -9
  116. package/__app__/chunks/libs/html-to-image.mjs +0 -2
  117. package/__app__/chunks/libs/motion-dom.mjs +0 -1
  118. package/__app__/chunks/libs/nanostores.mjs +0 -1
  119. package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
  120. package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
  121. package/__app__/chunks/libs/remeda.mjs +0 -1
  122. package/__app__/chunks/libs/superjson.mjs +0 -1
  123. package/__app__/chunks/libs/zod.mjs +0 -64
  124. package/__app__/chunks/rolldown-runtime.mjs +0 -1
  125. package/__app__/chunks/styles.css.mjs +0 -1
  126. package/__app__/chunks/txt.mjs +0 -1
  127. package/__app__/chunks/useLikeC4Project.mjs +0 -1
  128. package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
  129. package/__app__/src/pages/EmbedPage.mjs +0 -1
  130. package/__app__/src/pages/ExportPage.mjs +0 -1
  131. package/__app__/src/pages/ProjectsOverview.mjs +0 -1
  132. package/__app__/src/pages/ViewAsD2.mjs +0 -1
  133. package/__app__/src/pages/ViewAsDot.mjs +0 -1
  134. package/__app__/src/pages/ViewAsMmd.mjs +0 -1
  135. package/__app__/src/pages/ViewAsPuml.mjs +0 -1
  136. package/__app__/src/pages/ViewEditor.mjs +0 -1
  137. package/__app__/src/pages/ViewReact.mjs +0 -1
  138. package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
  139. package/dist/chunks/libs/@hono/mcp.mjs +0 -70
  140. package/dist/chunks/libs/@hono/node-server.mjs +0 -1
  141. package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
  142. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
  143. package/dist/chunks/libs/ajv.mjs +0 -1
  144. package/dist/chunks/libs/ansi-align.mjs +0 -2
  145. package/dist/chunks/libs/ansi-regex.mjs +0 -1
  146. package/dist/chunks/libs/ansi-styles.mjs +0 -1
  147. package/dist/chunks/libs/atomically.mjs +0 -1
  148. package/dist/chunks/libs/boxen.mjs +0 -22
  149. package/dist/chunks/libs/conf.mjs +0 -1
  150. package/dist/chunks/libs/defu.mjs +0 -1
  151. package/dist/chunks/libs/destr.mjs +0 -1
  152. package/dist/chunks/libs/find-up-simple.mjs +0 -1
  153. package/dist/chunks/libs/get-port.mjs +0 -1
  154. package/dist/chunks/libs/hono.mjs +0 -1
  155. package/dist/chunks/libs/is-docker.mjs +0 -1
  156. package/dist/chunks/libs/is-error-instance.mjs +0 -1
  157. package/dist/chunks/libs/is-inside-container.mjs +0 -1
  158. package/dist/chunks/libs/is-plain-obj.mjs +0 -1
  159. package/dist/chunks/libs/isexe.mjs +0 -1
  160. package/dist/chunks/libs/ky.mjs +0 -3
  161. package/dist/chunks/libs/p-debounce.mjs +0 -1
  162. package/dist/chunks/libs/p-limit.mjs +0 -1
  163. package/dist/chunks/libs/p-timeout.mjs +0 -1
  164. package/dist/chunks/libs/package-up.mjs +0 -1
  165. package/dist/chunks/libs/parse-ms.mjs +0 -1
  166. package/dist/chunks/libs/safe-stringify.mjs +0 -1
  167. package/dist/chunks/libs/strip-indent.mjs +0 -1
  168. package/dist/chunks/libs/tinyrainbow.mjs +0 -1
  169. package/dist/chunks/libs/ts-graphviz.mjs +0 -1
  170. package/dist/chunks/libs/unctx.mjs +0 -1
  171. package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
  172. package/dist/chunks/libs/word-wrap.mjs +0 -12
  173. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
  174. package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
  175. package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
  176. package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
  177. package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
  178. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
@@ -0,0 +1,2693 @@
1
+ import { t as e } from "../rolldown-runtime.mjs";
2
+ import * as t from "react";
3
+ import { useRef as n } from "react";
4
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { useSyncExternalStoreWithSelector as o } from "use-sync-external-store/shim/with-selector";
6
+ import { flushSync as s } from "react-dom";
7
+ //#region ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
8
+ var c = "Invariant failed";
9
+ function invariant(e, t) {
10
+ if (!e) throw Error(c);
11
+ }
12
+ //#endregion
13
+ //#region ../../node_modules/.pnpm/@tanstack+store@0.7.0/node_modules/@tanstack/store/dist/esm/scheduler.js
14
+ var l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = { current: [] }, f = !1, p = 0, m = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
15
+ function __flush_internals(e) {
16
+ let t = Array.from(e).sort((e, t) => e instanceof g && e.options.deps.includes(t) ? 1 : t instanceof g && t.options.deps.includes(e) ? -1 : 0);
17
+ for (let e of t) {
18
+ if (d.current.includes(e)) continue;
19
+ d.current.push(e), e.recompute();
20
+ let t = u.get(e);
21
+ if (t) for (let e of t) {
22
+ let t = l.get(e);
23
+ t && __flush_internals(t);
24
+ }
25
+ }
26
+ }
27
+ function __notifyListeners(e) {
28
+ e.listeners.forEach((t) => t({
29
+ prevVal: e.prevState,
30
+ currentVal: e.state
31
+ }));
32
+ }
33
+ function __notifyDerivedListeners(e) {
34
+ e.listeners.forEach((t) => t({
35
+ prevVal: e.prevState,
36
+ currentVal: e.state
37
+ }));
38
+ }
39
+ function __flush(e) {
40
+ if (p > 0 && !h.has(e) && h.set(e, e.prevState), m.add(e), !(p > 0) && !f) try {
41
+ for (f = !0; m.size > 0;) {
42
+ let e = Array.from(m);
43
+ m.clear();
44
+ for (let t of e) t.prevState = h.get(t) ?? t.prevState, __notifyListeners(t);
45
+ for (let t of e) {
46
+ let e = l.get(t);
47
+ e && (d.current.push(t), __flush_internals(e));
48
+ }
49
+ for (let t of e) {
50
+ let e = l.get(t);
51
+ if (e) for (let t of e) __notifyDerivedListeners(t);
52
+ }
53
+ }
54
+ } finally {
55
+ f = !1, d.current = [], h.clear();
56
+ }
57
+ }
58
+ function batch(e) {
59
+ p++;
60
+ try {
61
+ e();
62
+ } finally {
63
+ if (p--, p === 0) {
64
+ let e = Array.from(m)[0];
65
+ e && __flush(e);
66
+ }
67
+ }
68
+ }
69
+ //#endregion
70
+ //#region ../../node_modules/.pnpm/@tanstack+store@0.7.0/node_modules/@tanstack/store/dist/esm/store.js
71
+ var Store = class {
72
+ constructor(e, t) {
73
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (e) => {
74
+ var t;
75
+ this.listeners.add(e);
76
+ let n = ((t = this.options)?.onSubscribe)?.call(t, e, this);
77
+ return () => {
78
+ this.listeners.delete(e), n?.();
79
+ };
80
+ }, this.setState = (e) => {
81
+ var t, n;
82
+ this.prevState = this.state, this.state = this.options?.updateFn ? this.options.updateFn(this.prevState)(e) : e(this.prevState), (n = (t = this.options)?.onUpdate) == null || n.call(t), __flush(this);
83
+ }, this.prevState = e, this.state = e, this.options = t;
84
+ }
85
+ }, g = class Derived {
86
+ constructor(e) {
87
+ this.listeners = /* @__PURE__ */ new Set(), this._subscriptions = [], this.lastSeenDepValues = [], this.getDepVals = () => {
88
+ let e = [], t = [];
89
+ for (let n of this.options.deps) e.push(n.prevState), t.push(n.state);
90
+ return this.lastSeenDepValues = t, {
91
+ prevDepVals: e,
92
+ currDepVals: t,
93
+ prevVal: this.prevState ?? void 0
94
+ };
95
+ }, this.recompute = () => {
96
+ var e, t;
97
+ this.prevState = this.state;
98
+ let { prevDepVals: n, currDepVals: r, prevVal: i } = this.getDepVals();
99
+ this.state = this.options.fn({
100
+ prevDepVals: n,
101
+ currDepVals: r,
102
+ prevVal: i
103
+ }), (t = (e = this.options).onUpdate) == null || t.call(e);
104
+ }, this.checkIfRecalculationNeededDeeply = () => {
105
+ for (let e of this.options.deps) e instanceof Derived && e.checkIfRecalculationNeededDeeply();
106
+ let e = !1, t = this.lastSeenDepValues, { currDepVals: n } = this.getDepVals();
107
+ for (let r = 0; r < n.length; r++) if (n[r] !== t[r]) {
108
+ e = !0;
109
+ break;
110
+ }
111
+ e && this.recompute();
112
+ }, this.mount = () => (this.registerOnGraph(), this.checkIfRecalculationNeededDeeply(), () => {
113
+ this.unregisterFromGraph();
114
+ for (let e of this._subscriptions) e();
115
+ }), this.subscribe = (e) => {
116
+ var t;
117
+ this.listeners.add(e);
118
+ let n = (t = this.options).onSubscribe?.call(t, e, this);
119
+ return () => {
120
+ this.listeners.delete(e), n?.();
121
+ };
122
+ }, this.options = e, this.state = e.fn({
123
+ prevDepVals: void 0,
124
+ prevVal: void 0,
125
+ currDepVals: this.getDepVals().currDepVals
126
+ });
127
+ }
128
+ registerOnGraph(e = this.options.deps) {
129
+ for (let t of e) if (t instanceof Derived) t.registerOnGraph(), this.registerOnGraph(t.options.deps);
130
+ else if (t instanceof Store) {
131
+ let e = l.get(t);
132
+ e || (e = /* @__PURE__ */ new Set(), l.set(t, e)), e.add(this);
133
+ let n = u.get(this);
134
+ n || (n = /* @__PURE__ */ new Set(), u.set(this, n)), n.add(t);
135
+ }
136
+ }
137
+ unregisterFromGraph(e = this.options.deps) {
138
+ for (let t of e) if (t instanceof Derived) this.unregisterFromGraph(t.options.deps);
139
+ else if (t instanceof Store) {
140
+ let e = l.get(t);
141
+ e && e.delete(this);
142
+ let n = u.get(this);
143
+ n && n.delete(t);
144
+ }
145
+ }
146
+ }, _ = "__TSR_index", v = "popstate", y = "beforeunload";
147
+ function createHistory(e) {
148
+ let t = e.getLocation(), n = /* @__PURE__ */ new Set(), notify = (r) => {
149
+ t = e.getLocation(), n.forEach((e) => e({
150
+ location: t,
151
+ action: r
152
+ }));
153
+ }, handleIndexChange = (n) => {
154
+ e.notifyOnIndexChange ?? !0 ? notify(n) : t = e.getLocation();
155
+ }, tryNavigation = async ({ task: n, navigateOpts: r, ...i }) => {
156
+ var a;
157
+ if (r?.ignoreBlocker ?? !1) {
158
+ n();
159
+ return;
160
+ }
161
+ let o = e.getBlockers?.call(e) ?? [], s = i.type === "PUSH" || i.type === "REPLACE";
162
+ if (typeof document < "u" && o.length && s) for (let n of o) {
163
+ let r = parseHref(i.path, i.state);
164
+ if (await n.blockerFn({
165
+ currentLocation: t,
166
+ nextLocation: r,
167
+ action: i.type
168
+ })) {
169
+ (a = e.onBlocked) == null || a.call(e);
170
+ return;
171
+ }
172
+ }
173
+ n();
174
+ };
175
+ return {
176
+ get location() {
177
+ return t;
178
+ },
179
+ get length() {
180
+ return e.getLength();
181
+ },
182
+ subscribers: n,
183
+ subscribe: (e) => (n.add(e), () => {
184
+ n.delete(e);
185
+ }),
186
+ push: (n, r, i) => {
187
+ let a = t.state[_];
188
+ r = assignKeyAndIndex(a + 1, r), tryNavigation({
189
+ task: () => {
190
+ e.pushState(n, r), notify({ type: "PUSH" });
191
+ },
192
+ navigateOpts: i,
193
+ type: "PUSH",
194
+ path: n,
195
+ state: r
196
+ });
197
+ },
198
+ replace: (n, r, i) => {
199
+ let a = t.state[_];
200
+ r = assignKeyAndIndex(a, r), tryNavigation({
201
+ task: () => {
202
+ e.replaceState(n, r), notify({ type: "REPLACE" });
203
+ },
204
+ navigateOpts: i,
205
+ type: "REPLACE",
206
+ path: n,
207
+ state: r
208
+ });
209
+ },
210
+ go: (t, n) => {
211
+ tryNavigation({
212
+ task: () => {
213
+ e.go(t), handleIndexChange({
214
+ type: "GO",
215
+ index: t
216
+ });
217
+ },
218
+ navigateOpts: n,
219
+ type: "GO"
220
+ });
221
+ },
222
+ back: (t) => {
223
+ tryNavigation({
224
+ task: () => {
225
+ e.back(t?.ignoreBlocker ?? !1), handleIndexChange({ type: "BACK" });
226
+ },
227
+ navigateOpts: t,
228
+ type: "BACK"
229
+ });
230
+ },
231
+ forward: (t) => {
232
+ tryNavigation({
233
+ task: () => {
234
+ e.forward(t?.ignoreBlocker ?? !1), handleIndexChange({ type: "FORWARD" });
235
+ },
236
+ navigateOpts: t,
237
+ type: "FORWARD"
238
+ });
239
+ },
240
+ canGoBack: () => t.state[_] !== 0,
241
+ createHref: (t) => e.createHref(t),
242
+ block: (t) => {
243
+ if (!e.setBlockers) return () => {};
244
+ let n = e.getBlockers?.call(e) ?? [];
245
+ return e.setBlockers([...n, t]), () => {
246
+ var n;
247
+ let r = e.getBlockers?.call(e) ?? [];
248
+ (n = e.setBlockers) == null || n.call(e, r.filter((e) => e !== t));
249
+ };
250
+ },
251
+ flush: () => e.flush?.call(e),
252
+ destroy: () => e.destroy?.call(e),
253
+ notify
254
+ };
255
+ }
256
+ function assignKeyAndIndex(e, t) {
257
+ return t ||= {}, {
258
+ ...t,
259
+ key: createRandomKey(),
260
+ [_]: e
261
+ };
262
+ }
263
+ function createBrowserHistory(e) {
264
+ let t = e?.window ?? (typeof document < "u" ? window : void 0), n = t.history.pushState, r = t.history.replaceState, i = [], _getBlockers = () => i, _setBlockers = (e) => i = e, a = e?.createHref ?? ((e) => e), o = e?.parseLocation ?? (() => parseHref(`${t.location.pathname}${t.location.search}${t.location.hash}`, t.history.state));
265
+ t.history.state?.key || t.history.replaceState({
266
+ [_]: 0,
267
+ key: createRandomKey()
268
+ }, "");
269
+ let s = o(), c, l = !1, u = !1, d = !1, f = !1, getLocation = () => s, p, m, flush = () => {
270
+ p && (h._ignoreSubscribers = !0, (p.isPush ? t.history.pushState : t.history.replaceState)(p.state, "", p.href), h._ignoreSubscribers = !1, p = void 0, m = void 0, c = void 0);
271
+ }, queueHistoryAction = (e, t, n) => {
272
+ let r = a(t);
273
+ m || (c = s), s = parseHref(t, n), p = {
274
+ href: r,
275
+ state: n,
276
+ isPush: p?.isPush || e === "push"
277
+ }, m ||= Promise.resolve().then(() => flush());
278
+ }, onPushPop = (e) => {
279
+ s = o(), h.notify({ type: e });
280
+ }, onPushPopEvent = async () => {
281
+ if (u) {
282
+ u = !1;
283
+ return;
284
+ }
285
+ let e = o(), n = e.state[_] - s.state[_], r = n === 1, i = n === -1, a = !r && !i || l;
286
+ l = !1;
287
+ let c = a ? "GO" : i ? "BACK" : "FORWARD", f = a ? {
288
+ type: "GO",
289
+ index: n
290
+ } : { type: i ? "BACK" : "FORWARD" };
291
+ if (d) d = !1;
292
+ else {
293
+ let n = _getBlockers();
294
+ if (typeof document < "u" && n.length) {
295
+ for (let r of n) if (await r.blockerFn({
296
+ currentLocation: s,
297
+ nextLocation: e,
298
+ action: c
299
+ })) {
300
+ u = !0, t.history.go(1), h.notify(f);
301
+ return;
302
+ }
303
+ }
304
+ }
305
+ s = o(), h.notify(f);
306
+ }, onBeforeUnload = (e) => {
307
+ if (f) {
308
+ f = !1;
309
+ return;
310
+ }
311
+ let t = !1, n = _getBlockers();
312
+ if (typeof document < "u" && n.length) for (let e of n) {
313
+ let n = e.enableBeforeUnload ?? !0;
314
+ if (n === !0) {
315
+ t = !0;
316
+ break;
317
+ }
318
+ if (typeof n == "function" && n() === !0) {
319
+ t = !0;
320
+ break;
321
+ }
322
+ }
323
+ if (t) return e.preventDefault(), e.returnValue = "";
324
+ }, h = createHistory({
325
+ getLocation,
326
+ getLength: () => t.history.length,
327
+ pushState: (e, t) => queueHistoryAction("push", e, t),
328
+ replaceState: (e, t) => queueHistoryAction("replace", e, t),
329
+ back: (e) => (e && (d = !0), f = !0, t.history.back()),
330
+ forward: (e) => {
331
+ e && (d = !0), f = !0, t.history.forward();
332
+ },
333
+ go: (e) => {
334
+ l = !0, t.history.go(e);
335
+ },
336
+ createHref: (e) => a(e),
337
+ flush,
338
+ destroy: () => {
339
+ t.history.pushState = n, t.history.replaceState = r, t.removeEventListener(y, onBeforeUnload, { capture: !0 }), t.removeEventListener(v, onPushPopEvent);
340
+ },
341
+ onBlocked: () => {
342
+ c && s !== c && (s = c);
343
+ },
344
+ getBlockers: _getBlockers,
345
+ setBlockers: _setBlockers,
346
+ notifyOnIndexChange: !1
347
+ });
348
+ return t.addEventListener(y, onBeforeUnload, { capture: !0 }), t.addEventListener(v, onPushPopEvent), t.history.pushState = function(...e) {
349
+ let r = n.apply(t.history, e);
350
+ return h._ignoreSubscribers || onPushPop("PUSH"), r;
351
+ }, t.history.replaceState = function(...e) {
352
+ let n = r.apply(t.history, e);
353
+ return h._ignoreSubscribers || onPushPop("REPLACE"), n;
354
+ }, h;
355
+ }
356
+ function createHashHistory(e) {
357
+ let t = e?.window ?? (typeof document < "u" ? window : void 0);
358
+ return createBrowserHistory({
359
+ window: t,
360
+ parseLocation: () => {
361
+ let e = t.location.hash.split("#").slice(1), n = e[0] ?? "/", r = t.location.search, i = e.slice(1);
362
+ return parseHref(`${n}${r}${i.length === 0 ? "" : `#${i.join("#")}`}`, t.history.state);
363
+ },
364
+ createHref: (e) => `${t.location.pathname}${t.location.search}#${e}`
365
+ });
366
+ }
367
+ function createMemoryHistory(e = { initialEntries: ["/"] }) {
368
+ let t = e.initialEntries, n = e.initialIndex ? Math.min(Math.max(e.initialIndex, 0), t.length - 1) : t.length - 1, r = t.map((e, t) => assignKeyAndIndex(t, void 0)), getLocation = () => parseHref(t[n], r[n]);
369
+ return createHistory({
370
+ getLocation,
371
+ getLength: () => t.length,
372
+ pushState: (e, i) => {
373
+ n < t.length - 1 && (t.splice(n + 1), r.splice(n + 1)), r.push(i), t.push(e), n = Math.max(t.length - 1, 0);
374
+ },
375
+ replaceState: (e, i) => {
376
+ r[n] = i, t[n] = e;
377
+ },
378
+ back: () => {
379
+ n = Math.max(n - 1, 0);
380
+ },
381
+ forward: () => {
382
+ n = Math.min(n + 1, t.length - 1);
383
+ },
384
+ go: (e) => {
385
+ n = Math.min(Math.max(n + e, 0), t.length - 1);
386
+ },
387
+ createHref: (e) => e
388
+ });
389
+ }
390
+ function parseHref(e, t) {
391
+ let n = e.indexOf("#"), r = e.indexOf("?");
392
+ return {
393
+ href: e,
394
+ pathname: e.substring(0, n > 0 ? r > 0 ? Math.min(n, r) : n : r > 0 ? r : e.length),
395
+ hash: n > -1 ? e.substring(n) : "",
396
+ search: r > -1 ? e.slice(r, n === -1 ? void 0 : n) : "",
397
+ state: t || {
398
+ [_]: 0,
399
+ key: createRandomKey()
400
+ }
401
+ };
402
+ }
403
+ function createRandomKey() {
404
+ return (Math.random() + 1).toString(36).substring(7);
405
+ }
406
+ //#endregion
407
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/utils.js
408
+ function last(e) {
409
+ return e[e.length - 1];
410
+ }
411
+ function isFunction(e) {
412
+ return typeof e == "function";
413
+ }
414
+ function functionalUpdate(e, t) {
415
+ return isFunction(e) ? e(t) : e;
416
+ }
417
+ function pick(e, t) {
418
+ return t.reduce((t, n) => (t[n] = e[n], t), {});
419
+ }
420
+ function replaceEqualDeep(e, t) {
421
+ if (e === t) return e;
422
+ let n = t, r = isPlainArray(e) && isPlainArray(n);
423
+ if (r || isPlainObject(e) && isPlainObject(n)) {
424
+ let t = r ? e : Object.keys(e), i = t.length, a = r ? n : Object.keys(n), o = a.length, s = r ? [] : {}, c = 0;
425
+ for (let i = 0; i < o; i++) {
426
+ let o = r ? i : a[i];
427
+ (!r && t.includes(o) || r) && e[o] === void 0 && n[o] === void 0 ? (s[o] = void 0, c++) : (s[o] = replaceEqualDeep(e[o], n[o]), s[o] === e[o] && e[o] !== void 0 && c++);
428
+ }
429
+ return i === o && c === i ? e : s;
430
+ }
431
+ return n;
432
+ }
433
+ function isPlainObject(e) {
434
+ if (!hasObjectPrototype(e)) return !1;
435
+ let t = e.constructor;
436
+ if (t === void 0) return !0;
437
+ let n = t.prototype;
438
+ return !(!hasObjectPrototype(n) || !n.hasOwnProperty("isPrototypeOf"));
439
+ }
440
+ function hasObjectPrototype(e) {
441
+ return Object.prototype.toString.call(e) === "[object Object]";
442
+ }
443
+ function isPlainArray(e) {
444
+ return Array.isArray(e) && e.length === Object.keys(e).length;
445
+ }
446
+ function getObjectKeys(e, t) {
447
+ let n = Object.keys(e);
448
+ return t && (n = n.filter((t) => e[t] !== void 0)), n;
449
+ }
450
+ function deepEqual(e, t, n) {
451
+ if (e === t) return !0;
452
+ if (typeof e != typeof t) return !1;
453
+ if (isPlainObject(e) && isPlainObject(t)) {
454
+ let r = n?.ignoreUndefined ?? !0, i = getObjectKeys(e, r), a = getObjectKeys(t, r);
455
+ return !n?.partial && i.length !== a.length ? !1 : a.every((r) => deepEqual(e[r], t[r], n));
456
+ }
457
+ return Array.isArray(e) && Array.isArray(t) && e.length === t.length ? !e.some((e, r) => !deepEqual(e, t[r], n)) : !1;
458
+ }
459
+ function createControlledPromise(e) {
460
+ let t, n, r = new Promise((e, r) => {
461
+ t = e, n = r;
462
+ });
463
+ return r.status = "pending", r.resolve = (n) => {
464
+ r.status = "resolved", r.value = n, t(n), e?.(n);
465
+ }, r.reject = (e) => {
466
+ r.status = "rejected", n(e);
467
+ }, r;
468
+ }
469
+ function hasUriEncodedChars(e) {
470
+ return /%[0-9A-Fa-f]{2}/.test(e);
471
+ }
472
+ //#endregion
473
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/path.js
474
+ function joinPaths(e) {
475
+ return cleanPath(e.filter((e) => e !== void 0).join("/"));
476
+ }
477
+ function cleanPath(e) {
478
+ return e.replace(/\/{2,}/g, "/");
479
+ }
480
+ function trimPathLeft(e) {
481
+ return e === "/" ? e : e.replace(/^\/{1,}/, "");
482
+ }
483
+ function trimPathRight(e) {
484
+ return e === "/" ? e : e.replace(/\/{1,}$/, "");
485
+ }
486
+ function trimPath(e) {
487
+ return trimPathRight(trimPathLeft(e));
488
+ }
489
+ function removeTrailingSlash(e, t) {
490
+ return e?.endsWith("/") && e !== "/" && e !== `${t}/` ? e.slice(0, -1) : e;
491
+ }
492
+ function exactPathTest(e, t, n) {
493
+ return removeTrailingSlash(e, n) === removeTrailingSlash(t, n);
494
+ }
495
+ function resolvePath({ basepath: e, base: t, to: n, trailingSlash: r = "never", caseSensitive: i }) {
496
+ t = removeBasepath(e, t, i), n = removeBasepath(e, n, i);
497
+ let a = parsePathname(t), o = parsePathname(n);
498
+ return a.length > 1 && last(a)?.value === "/" && a.pop(), o.forEach((e, t) => {
499
+ e.value === "/" ? t ? t === o.length - 1 && a.push(e) : a = [e] : e.value === ".." ? a.pop() : e.value === "." || a.push(e);
500
+ }), a.length > 1 && (last(a)?.value === "/" ? r === "never" && a.pop() : r === "always" && a.push({
501
+ type: "pathname",
502
+ value: "/"
503
+ })), cleanPath(joinPaths([e, ...a.map((e) => e.value)]));
504
+ }
505
+ function parsePathname(e) {
506
+ if (!e) return [];
507
+ e = cleanPath(e);
508
+ let t = [];
509
+ if (e.slice(0, 1) === "/" && (e = e.substring(1), t.push({
510
+ type: "pathname",
511
+ value: "/"
512
+ })), !e) return t;
513
+ let n = e.split("/").filter(Boolean);
514
+ return t.push(...n.map((e) => e === "$" || e === "*" ? {
515
+ type: "wildcard",
516
+ value: e
517
+ } : e.charAt(0) === "$" ? {
518
+ type: "param",
519
+ value: e
520
+ } : {
521
+ type: "pathname",
522
+ value: e.includes("%25") ? e.split("%25").map((e) => decodeURI(e)).join("%25") : decodeURI(e)
523
+ })), e.slice(-1) === "/" && (e = e.substring(1), t.push({
524
+ type: "pathname",
525
+ value: "/"
526
+ })), t;
527
+ }
528
+ function interpolatePath({ path: e, params: t, leaveWildcards: n, leaveParams: r, decodeCharMap: i }) {
529
+ let a = parsePathname(e);
530
+ function encodeParam(e) {
531
+ let n = t[e], r = typeof n == "string";
532
+ return ["*", "_splat"].includes(e) ? r ? encodeURI(n) : n : r ? encodePathParam(n, i) : n;
533
+ }
534
+ let o = {};
535
+ return {
536
+ usedParams: o,
537
+ interpolatedPath: joinPaths(a.map((e) => {
538
+ if (e.type === "wildcard") {
539
+ o._splat = t._splat;
540
+ let r = encodeParam("_splat");
541
+ return n ? `${e.value}${r ?? ""}` : r;
542
+ }
543
+ if (e.type === "param") {
544
+ let n = e.value.substring(1);
545
+ if (o[n] = t[n], r) {
546
+ let t = encodeParam(e.value);
547
+ return `${e.value}${t ?? ""}`;
548
+ }
549
+ return encodeParam(n) ?? "undefined";
550
+ }
551
+ return e.value;
552
+ }))
553
+ };
554
+ }
555
+ function encodePathParam(e, t) {
556
+ let n = encodeURIComponent(e);
557
+ if (t) for (let [e, r] of t) n = n.replaceAll(e, r);
558
+ return n;
559
+ }
560
+ function matchPathname(e, t, n) {
561
+ let r = matchByPath(e, t, n);
562
+ if (!(n.to && !r)) return r ?? {};
563
+ }
564
+ function removeBasepath(e, t, n = !1) {
565
+ let r = n ? e : e.toLowerCase(), i = n ? t : t.toLowerCase();
566
+ switch (!0) {
567
+ case r === "/": return t;
568
+ case i === r: return "";
569
+ case t.length < e.length: return t;
570
+ case i[r.length] !== "/": return t;
571
+ case i.startsWith(r): return t.slice(e.length);
572
+ default: return t;
573
+ }
574
+ }
575
+ function matchByPath(e, t, n) {
576
+ if (e !== "/" && !t.startsWith(e)) return;
577
+ t = removeBasepath(e, t, n.caseSensitive);
578
+ let r = removeBasepath(e, `${n.to ?? "$"}`, n.caseSensitive), i = parsePathname(t), a = parsePathname(r);
579
+ t.startsWith("/") || i.unshift({
580
+ type: "pathname",
581
+ value: "/"
582
+ }), r.startsWith("/") || a.unshift({
583
+ type: "pathname",
584
+ value: "/"
585
+ });
586
+ let o = {};
587
+ return (() => {
588
+ for (let e = 0; e < Math.max(i.length, a.length); e++) {
589
+ let t = i[e], r = a[e], s = e >= i.length - 1, c = e >= a.length - 1;
590
+ if (r) {
591
+ if (r.type === "wildcard") {
592
+ let t = decodeURI(joinPaths(i.slice(e).map((e) => e.value)));
593
+ return o["*"] = t, o._splat = t, !0;
594
+ }
595
+ if (r.type === "pathname") {
596
+ if (r.value === "/" && !t?.value) return !0;
597
+ if (t) {
598
+ if (n.caseSensitive) {
599
+ if (r.value !== t.value) return !1;
600
+ } else if (r.value.toLowerCase() !== t.value.toLowerCase()) return !1;
601
+ }
602
+ }
603
+ if (!t) return !1;
604
+ if (r.type === "param") {
605
+ if (t.value === "/") return !1;
606
+ t.value.charAt(0) !== "$" && (o[r.value.substring(1)] = decodeURIComponent(t.value));
607
+ }
608
+ }
609
+ if (!s && c) return o["**"] = joinPaths(i.slice(e + 1).map((e) => e.value)), !!n.fuzzy && r?.value !== "/";
610
+ }
611
+ return !0;
612
+ })() ? o : void 0;
613
+ }
614
+ //#endregion
615
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/not-found.js
616
+ function notFound(e = {}) {
617
+ if (e.isNotFound = !0, e.throw) throw e;
618
+ return e;
619
+ }
620
+ function isNotFound(e) {
621
+ return !!e?.isNotFound;
622
+ }
623
+ //#endregion
624
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/scroll-restoration.js
625
+ var b = "tsr-scroll-restoration-v1_3", x = !1;
626
+ try {
627
+ x = typeof window < "u" && typeof window.sessionStorage == "object";
628
+ } catch {}
629
+ var throttle = (e, t) => {
630
+ let n;
631
+ return (...r) => {
632
+ n ||= setTimeout(() => {
633
+ e(...r), n = null;
634
+ }, t);
635
+ };
636
+ }, S = x ? {
637
+ state: JSON.parse(window.sessionStorage.getItem("tsr-scroll-restoration-v1_3") || "null") || {},
638
+ set: (e) => (S.state = functionalUpdate(e, S.state) || S.state, window.sessionStorage.setItem(b, JSON.stringify(S.state)))
639
+ } : void 0, defaultGetScrollRestorationKey = (e) => e.state.key || e.href;
640
+ function getCssSelector(e) {
641
+ let t = [], n;
642
+ for (; n = e.parentNode;) t.unshift(`${e.tagName}:nth-child(${[].indexOf.call(n.children, e) + 1})`), e = n;
643
+ return `${t.join(" > ")}`.toLowerCase();
644
+ }
645
+ var C = !1;
646
+ function restoreScroll(e, t, n, r, i) {
647
+ let a;
648
+ try {
649
+ a = JSON.parse(sessionStorage.getItem(e) || "{}");
650
+ } catch (e) {
651
+ console.error(e);
652
+ return;
653
+ }
654
+ let o = t || window.history.state?.key, s = a[o];
655
+ C = !0, (() => {
656
+ if (r && s) {
657
+ for (let e in s) {
658
+ let t = s[e];
659
+ if (e === "window") window.scrollTo({
660
+ top: t.scrollY,
661
+ left: t.scrollX,
662
+ behavior: n
663
+ });
664
+ else if (e) {
665
+ let n = document.querySelector(e);
666
+ n && (n.scrollLeft = t.scrollX, n.scrollTop = t.scrollY);
667
+ }
668
+ }
669
+ return;
670
+ }
671
+ let e = window.location.hash.split("#")[1];
672
+ if (e) {
673
+ let t = (window.history.state || {}).__hashScrollIntoViewOptions ?? !0;
674
+ if (t) {
675
+ let n = document.getElementById(e);
676
+ n && n.scrollIntoView(t);
677
+ }
678
+ return;
679
+ }
680
+ ["window", ...i?.filter((e) => e !== "window") ?? []].forEach((e) => {
681
+ let t = e === "window" ? window : document.querySelector(e);
682
+ t && t.scrollTo({
683
+ top: 0,
684
+ left: 0,
685
+ behavior: n
686
+ });
687
+ });
688
+ })(), C = !1;
689
+ }
690
+ function setupScrollRestoration(e, t) {
691
+ if ((t ?? e.options.scrollRestoration ?? !1) && (e.isScrollRestoring = !0), typeof document > "u" || e.isScrollRestorationSetup) return;
692
+ e.isScrollRestorationSetup = !0, C = !1;
693
+ let n = e.options.getScrollRestorationKey || defaultGetScrollRestorationKey;
694
+ window.history.scrollRestoration = "manual";
695
+ let onScroll = (t) => {
696
+ if (C || !e.isScrollRestoring) return;
697
+ let r = "";
698
+ if (t.target === document || t.target === window) r = "window";
699
+ else {
700
+ let e = t.target.getAttribute("data-scroll-restoration-id");
701
+ r = e ? `[data-scroll-restoration-id="${e}"]` : getCssSelector(t.target);
702
+ }
703
+ let i = n(e.state.location);
704
+ S.set((e) => {
705
+ let t = e[i] = e[i] || {}, n = t[r] = t[r] || {};
706
+ if (r === "window") n.scrollX = window.scrollX || 0, n.scrollY = window.scrollY || 0;
707
+ else if (r) {
708
+ let e = document.querySelector(r);
709
+ e && (n.scrollX = e.scrollLeft || 0, n.scrollY = e.scrollTop || 0);
710
+ }
711
+ return e;
712
+ });
713
+ };
714
+ typeof document < "u" && document.addEventListener("scroll", throttle(onScroll, 100), !0), e.subscribe("onRendered", (t) => {
715
+ let r = n(t.toLocation);
716
+ if (!e.resetNextScroll) {
717
+ e.resetNextScroll = !0;
718
+ return;
719
+ }
720
+ restoreScroll(b, r, e.options.scrollRestorationBehavior || void 0, e.isScrollRestoring || void 0, e.options.scrollToTopSelectors || void 0), e.isScrollRestoring && S.set((e) => (e[r] = e[r] || {}, e));
721
+ });
722
+ }
723
+ //#endregion
724
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/qss.js
725
+ function encode(e, t) {
726
+ let n, r, i, a = "";
727
+ for (n in e) if ((i = e[n]) !== void 0) if (Array.isArray(i)) for (r = 0; r < i.length; r++) a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i[r]);
728
+ else a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i);
729
+ return (t || "") + a;
730
+ }
731
+ function toValue(e) {
732
+ if (!e) return "";
733
+ let t = hasUriEncodedChars(e) ? decodeURIComponent(e) : decodeURIComponent(encodeURIComponent(e));
734
+ return t === "false" ? !1 : t === "true" ? !0 : t * 0 == 0 && +t + "" === t ? +t : t;
735
+ }
736
+ function decode(e, t) {
737
+ let n, r, i = {}, a = (t ? e.substr(t.length) : e).split("&");
738
+ for (; n = a.shift();) {
739
+ let e = n.indexOf("=");
740
+ if (e !== -1) {
741
+ r = n.slice(0, e), r = decodeURIComponent(r);
742
+ let t = n.slice(e + 1);
743
+ i[r] === void 0 ? i[r] = toValue(t) : i[r] = [].concat(i[r], toValue(t));
744
+ } else r = n, r = decodeURIComponent(r), i[r] = "";
745
+ }
746
+ return i;
747
+ }
748
+ //#endregion
749
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/searchParams.js
750
+ var w = parseSearchWith(JSON.parse), T = stringifySearchWith(JSON.stringify, JSON.parse);
751
+ function parseSearchWith(e) {
752
+ return (t) => {
753
+ t.substring(0, 1) === "?" && (t = t.substring(1));
754
+ let n = decode(t);
755
+ for (let t in n) {
756
+ let r = n[t];
757
+ if (typeof r == "string") try {
758
+ n[t] = e(r);
759
+ } catch {}
760
+ }
761
+ return n;
762
+ };
763
+ }
764
+ function stringifySearchWith(e, t) {
765
+ function stringifyValue(n) {
766
+ if (typeof n == "object" && n) try {
767
+ return e(n);
768
+ } catch {}
769
+ else if (typeof n == "string" && typeof t == "function") try {
770
+ return t(n), e(n);
771
+ } catch {}
772
+ return n;
773
+ }
774
+ return (e) => {
775
+ e = { ...e }, Object.keys(e).forEach((t) => {
776
+ let n = e[t];
777
+ n === void 0 || n === void 0 ? delete e[t] : e[t] = stringifyValue(n);
778
+ });
779
+ let t = encode(e).toString();
780
+ return t ? `?${t}` : "";
781
+ };
782
+ }
783
+ //#endregion
784
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/root.js
785
+ var E = "__root__";
786
+ //#endregion
787
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/redirect.js
788
+ function redirect(e) {
789
+ if (e.isRedirect = !0, e.statusCode = e.statusCode || e.code || 307, e.headers = e.headers || {}, !e.reloadDocument) {
790
+ e.reloadDocument = !1;
791
+ try {
792
+ new URL(`${e.href}`), e.reloadDocument = !0;
793
+ } catch {}
794
+ }
795
+ if (e.throw) throw e;
796
+ return e;
797
+ }
798
+ function isRedirect(e) {
799
+ return !!e?.isRedirect;
800
+ }
801
+ function isResolvedRedirect(e) {
802
+ return !!e?.isRedirect && e.href;
803
+ }
804
+ //#endregion
805
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/router.js
806
+ function getLocationChangeInfo(e) {
807
+ let t = e.resolvedLocation, n = e.location;
808
+ return {
809
+ fromLocation: t,
810
+ toLocation: n,
811
+ pathChanged: t?.pathname !== n.pathname,
812
+ hrefChanged: t?.href !== n.href,
813
+ hashChanged: t?.hash !== n.hash
814
+ };
815
+ }
816
+ var RouterCore = class {
817
+ constructor(e) {
818
+ this.tempLocationKey = `${Math.round(Math.random() * 1e7)}`, this.resetNextScroll = !0, this.shouldViewTransition = void 0, this.isViewTransitionTypesSupported = void 0, this.subscribers = /* @__PURE__ */ new Set(), this.isScrollRestoring = !1, this.isScrollRestorationSetup = !1, this.startTransition = (e) => e(), this.update = (e) => {
819
+ e.notFoundRoute && console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");
820
+ let t = this.options;
821
+ this.options = {
822
+ ...this.options,
823
+ ...e
824
+ }, this.isServer = this.options.isServer ?? typeof document > "u", this.pathParamsDecodeCharMap = this.options.pathParamsAllowedCharacters ? new Map(this.options.pathParamsAllowedCharacters.map((e) => [encodeURIComponent(e), e])) : void 0, (!this.basepath || e.basepath && e.basepath !== t.basepath) && (e.basepath === void 0 || e.basepath === "" || e.basepath === "/" ? this.basepath = "/" : this.basepath = `/${trimPath(e.basepath)}`), (!this.history || this.options.history && this.options.history !== this.history) && (this.history = this.options.history ?? (this.isServer ? createMemoryHistory({ initialEntries: [this.basepath || "/"] }) : createBrowserHistory()), this.latestLocation = this.parseLocation()), this.options.routeTree !== this.routeTree && (this.routeTree = this.options.routeTree, this.buildRouteTree()), this.__store || (this.__store = new Store(getInitialRouterState(this.latestLocation), { onUpdate: () => {
825
+ this.__store.state = {
826
+ ...this.state,
827
+ cachedMatches: this.state.cachedMatches.filter((e) => !["redirected"].includes(e.status))
828
+ };
829
+ } }), setupScrollRestoration(this)), typeof window < "u" && "CSS" in window && typeof window.CSS?.supports == "function" && (this.isViewTransitionTypesSupported = window.CSS.supports("selector(:active-view-transition-type(a)"));
830
+ }, this.buildRouteTree = () => {
831
+ this.routesById = {}, this.routesByPath = {};
832
+ let e = this.options.notFoundRoute;
833
+ e && (e.init({
834
+ originalIndex: 99999999999,
835
+ defaultSsr: this.options.defaultSsr
836
+ }), this.routesById[e.id] = e);
837
+ let recurseRoutes = (e) => {
838
+ e.forEach((e, t) => {
839
+ e.init({
840
+ originalIndex: t,
841
+ defaultSsr: this.options.defaultSsr
842
+ });
843
+ let n = this.routesById[e.id];
844
+ if (invariant(!n, `Duplicate routes found with id: ${String(e.id)}`), this.routesById[e.id] = e, !e.isRoot && e.path) {
845
+ let t = trimPathRight(e.fullPath);
846
+ (!this.routesByPath[t] || e.fullPath.endsWith("/")) && (this.routesByPath[t] = e);
847
+ }
848
+ let r = e.children;
849
+ r?.length && recurseRoutes(r);
850
+ });
851
+ };
852
+ recurseRoutes([this.routeTree]);
853
+ let t = [];
854
+ Object.values(this.routesById).forEach((e, n) => {
855
+ if (e.isRoot || !e.path) return;
856
+ let r = trimPathLeft(e.fullPath), i = parsePathname(r);
857
+ for (; i.length > 1 && i[0]?.value === "/";) i.shift();
858
+ let a = i.map((e) => e.value === "/" ? .75 : e.type === "param" ? .5 : e.type === "wildcard" ? .25 : 1);
859
+ t.push({
860
+ child: e,
861
+ trimmed: r,
862
+ parsed: i,
863
+ index: n,
864
+ scores: a
865
+ });
866
+ }), this.flatRoutes = t.sort((e, t) => {
867
+ let n = Math.min(e.scores.length, t.scores.length);
868
+ for (let r = 0; r < n; r++) if (e.scores[r] !== t.scores[r]) return t.scores[r] - e.scores[r];
869
+ if (e.scores.length !== t.scores.length) return t.scores.length - e.scores.length;
870
+ for (let r = 0; r < n; r++) if (e.parsed[r].value !== t.parsed[r].value) return e.parsed[r].value > t.parsed[r].value ? 1 : -1;
871
+ return e.index - t.index;
872
+ }).map((e, t) => (e.child.rank = t, e.child));
873
+ }, this.subscribe = (e, t) => {
874
+ let n = {
875
+ eventType: e,
876
+ fn: t
877
+ };
878
+ return this.subscribers.add(n), () => {
879
+ this.subscribers.delete(n);
880
+ };
881
+ }, this.emit = (e) => {
882
+ this.subscribers.forEach((t) => {
883
+ t.eventType === e.type && t.fn(e);
884
+ });
885
+ }, this.parseLocation = (e, t) => {
886
+ let parse = ({ pathname: t, search: n, hash: r, state: i }) => {
887
+ let a = this.options.parseSearch(n), o = this.options.stringifySearch(a);
888
+ return {
889
+ pathname: t,
890
+ searchStr: o,
891
+ search: replaceEqualDeep(e?.search, a),
892
+ hash: r.split("#").reverse()[0] ?? "",
893
+ href: `${t}${o}${r}`,
894
+ state: replaceEqualDeep(e?.state, i)
895
+ };
896
+ }, n = parse(t ?? this.history.location), { __tempLocation: r, __tempKey: i } = n.state;
897
+ if (r && (!i || i === this.tempLocationKey)) {
898
+ let e = parse(r);
899
+ return e.state.key = n.state.key, delete e.state.__tempLocation, {
900
+ ...e,
901
+ maskedLocation: n
902
+ };
903
+ }
904
+ return n;
905
+ }, this.resolvePathWithBase = (e, t) => resolvePath({
906
+ basepath: this.basepath,
907
+ base: e,
908
+ to: cleanPath(t),
909
+ trailingSlash: this.options.trailingSlash,
910
+ caseSensitive: this.options.caseSensitive
911
+ }), this.matchRoutes = (e, t, n) => typeof e == "string" ? this.matchRoutesInternal({
912
+ pathname: e,
913
+ search: t
914
+ }, n) : this.matchRoutesInternal(e, t), this.getMatchedRoutes = (e, t) => {
915
+ let n = {}, r = trimPathRight(e.pathname), getMatchedParams = (e) => matchPathname(this.basepath, r, {
916
+ to: e.fullPath,
917
+ caseSensitive: e.options.caseSensitive ?? this.options.caseSensitive,
918
+ fuzzy: !0
919
+ }), i = t?.to === void 0 ? void 0 : this.routesByPath[t.to];
920
+ i ? n = getMatchedParams(i) : i = this.flatRoutes.find((e) => {
921
+ let t = getMatchedParams(e);
922
+ return t ? (n = t, !0) : !1;
923
+ });
924
+ let a = i || this.routesById.__root__, o = [a];
925
+ for (; a.parentRoute;) a = a.parentRoute, o.unshift(a);
926
+ return {
927
+ matchedRoutes: o,
928
+ routeParams: n,
929
+ foundRoute: i
930
+ };
931
+ }, this.cancelMatch = (e) => {
932
+ let t = this.getMatch(e);
933
+ t && (t.abortController.abort(), clearTimeout(t.pendingTimeout));
934
+ }, this.cancelMatches = () => {
935
+ var e;
936
+ (e = this.state.pendingMatches) == null || e.forEach((e) => {
937
+ this.cancelMatch(e.id);
938
+ });
939
+ }, this.buildLocation = (e) => {
940
+ let build = (t = {}, n) => {
941
+ let r = t._fromLocation ? this.matchRoutes(t._fromLocation, { _buildLocation: !0 }) : this.state.matches, i = t.from == null ? void 0 : r.find((e) => matchPathname(this.basepath, trimPathRight(e.pathname), {
942
+ to: t.from,
943
+ caseSensitive: !1,
944
+ fuzzy: !1
945
+ })), a = i?.pathname || this.latestLocation.pathname;
946
+ invariant(t.from == null || i != null, "Could not find match for from: " + t.from);
947
+ let o = this.state.pendingMatches?.length ? last(this.state.pendingMatches)?.search : last(r)?.search || this.latestLocation.search, s = n?.matchedRoutes.filter((e) => r.find((t) => t.routeId === e.id)), c;
948
+ if (t.to) {
949
+ let e = i?.fullPath || last(r)?.fullPath || this.latestLocation.pathname;
950
+ c = this.resolvePathWithBase(e, `${t.to}`);
951
+ } else {
952
+ let e = this.routesById[s?.find((e) => {
953
+ let t = interpolatePath({
954
+ path: e.fullPath,
955
+ params: n?.routeParams ?? {},
956
+ decodeCharMap: this.pathParamsDecodeCharMap
957
+ }).interpolatedPath;
958
+ return joinPaths([this.basepath, t]) === a;
959
+ })?.id];
960
+ c = this.resolvePathWithBase(a, e?.to ?? a);
961
+ }
962
+ let l = { ...last(r)?.params }, u = (t.params ?? !0) === !0 ? l : {
963
+ ...l,
964
+ ...functionalUpdate(t.params, l)
965
+ };
966
+ Object.keys(u).length > 0 && n?.matchedRoutes.map((e) => e.options.params?.stringify ?? e.options.stringifyParams).filter(Boolean).forEach((e) => {
967
+ u = {
968
+ ...u,
969
+ ...e(u)
970
+ };
971
+ }), c = interpolatePath({
972
+ path: c,
973
+ params: u ?? {},
974
+ leaveWildcards: !1,
975
+ leaveParams: e.leaveParams,
976
+ decodeCharMap: this.pathParamsDecodeCharMap
977
+ }).interpolatedPath;
978
+ let d = o;
979
+ if (e._includeValidateSearch && this.options.search?.strict) {
980
+ let e = {};
981
+ n?.matchedRoutes.forEach((t) => {
982
+ try {
983
+ t.options.validateSearch && (e = {
984
+ ...e,
985
+ ...validateSearch(t.options.validateSearch, {
986
+ ...e,
987
+ ...d
988
+ }) ?? {}
989
+ });
990
+ } catch {}
991
+ }), d = e;
992
+ }
993
+ let applyMiddlewares = (r) => {
994
+ let i = n?.matchedRoutes.reduce((t, n) => {
995
+ let r = [];
996
+ if ("search" in n.options) n.options.search?.middlewares && r.push(...n.options.search.middlewares);
997
+ else if (n.options.preSearchFilters || n.options.postSearchFilters) {
998
+ let legacyMiddleware = ({ search: e, next: t }) => {
999
+ let r = e;
1000
+ "preSearchFilters" in n.options && n.options.preSearchFilters && (r = n.options.preSearchFilters.reduce((e, t) => t(e), e));
1001
+ let i = t(r);
1002
+ return "postSearchFilters" in n.options && n.options.postSearchFilters ? n.options.postSearchFilters.reduce((e, t) => t(e), i) : i;
1003
+ };
1004
+ r.push(legacyMiddleware);
1005
+ }
1006
+ if (e._includeValidateSearch && n.options.validateSearch) {
1007
+ let validate = ({ search: e, next: t }) => {
1008
+ let r = t(e);
1009
+ try {
1010
+ return {
1011
+ ...r,
1012
+ ...validateSearch(n.options.validateSearch, r) ?? {}
1013
+ };
1014
+ } catch {
1015
+ return r;
1016
+ }
1017
+ };
1018
+ r.push(validate);
1019
+ }
1020
+ return t.concat(r);
1021
+ }, []) ?? [], final = ({ search: e }) => t.search ? t.search === !0 ? e : functionalUpdate(t.search, e) : {};
1022
+ i.push(final);
1023
+ let applyNext = (e, t) => {
1024
+ if (e >= i.length) return t;
1025
+ let n = i[e], next = (t) => applyNext(e + 1, t);
1026
+ return n({
1027
+ search: t,
1028
+ next
1029
+ });
1030
+ };
1031
+ return applyNext(0, r);
1032
+ };
1033
+ d = applyMiddlewares(d), d = replaceEqualDeep(o, d);
1034
+ let f = this.options.stringifySearch(d), p = t.hash === !0 ? this.latestLocation.hash : t.hash ? functionalUpdate(t.hash, this.latestLocation.hash) : void 0, m = p ? `#${p}` : "", h = t.state === !0 ? this.latestLocation.state : t.state ? functionalUpdate(t.state, this.latestLocation.state) : {};
1035
+ return h = replaceEqualDeep(this.latestLocation.state, h), {
1036
+ pathname: c,
1037
+ search: d,
1038
+ searchStr: f,
1039
+ state: h,
1040
+ hash: p ?? "",
1041
+ href: `${c}${f}${m}`,
1042
+ unmaskOnReload: t.unmaskOnReload
1043
+ };
1044
+ }, buildWithMatches = (t = {}, n) => {
1045
+ let r = build(t), i = n ? build(n) : void 0;
1046
+ if (!i) {
1047
+ let t = {}, a = this.options.routeMasks?.find((e) => {
1048
+ let n = matchPathname(this.basepath, r.pathname, {
1049
+ to: e.from,
1050
+ caseSensitive: !1,
1051
+ fuzzy: !1
1052
+ });
1053
+ return n ? (t = n, !0) : !1;
1054
+ });
1055
+ if (a) {
1056
+ let { from: r, ...o } = a;
1057
+ n = {
1058
+ ...pick(e, ["from"]),
1059
+ ...o,
1060
+ params: t
1061
+ }, i = build(n);
1062
+ }
1063
+ }
1064
+ let a = this.getMatchedRoutes(r, t), o = build(t, a);
1065
+ if (i) {
1066
+ let e = this.getMatchedRoutes(i, n);
1067
+ o.maskedLocation = build(n, e);
1068
+ }
1069
+ return o;
1070
+ };
1071
+ return e.mask ? buildWithMatches(e, {
1072
+ ...pick(e, ["from"]),
1073
+ ...e.mask
1074
+ }) : buildWithMatches(e);
1075
+ }, this.commitLocation = ({ viewTransition: e, ignoreBlocker: t, ...n }) => {
1076
+ let isSameState = () => {
1077
+ let e = [
1078
+ "key",
1079
+ "__TSR_index",
1080
+ "__hashScrollIntoViewOptions"
1081
+ ];
1082
+ e.forEach((e) => {
1083
+ n.state[e] = this.latestLocation.state[e];
1084
+ });
1085
+ let t = deepEqual(n.state, this.latestLocation.state);
1086
+ return e.forEach((e) => {
1087
+ delete n.state[e];
1088
+ }), t;
1089
+ }, r = this.latestLocation.href === n.href, i = this.commitLocationPromise;
1090
+ if (this.commitLocationPromise = createControlledPromise(() => {
1091
+ i?.resolve();
1092
+ }), r && isSameState()) this.load();
1093
+ else {
1094
+ let { maskedLocation: r, hashScrollIntoView: i, ...a } = n;
1095
+ r && (a = {
1096
+ ...r,
1097
+ state: {
1098
+ ...r.state,
1099
+ __tempKey: void 0,
1100
+ __tempLocation: {
1101
+ ...a,
1102
+ search: a.searchStr,
1103
+ state: {
1104
+ ...a.state,
1105
+ __tempKey: void 0,
1106
+ __tempLocation: void 0,
1107
+ key: void 0
1108
+ }
1109
+ }
1110
+ }
1111
+ }, (a.unmaskOnReload ?? this.options.unmaskOnReload ?? !1) && (a.state.__tempKey = this.tempLocationKey)), a.state.__hashScrollIntoViewOptions = i ?? this.options.defaultHashScrollIntoView ?? !0, this.shouldViewTransition = e, this.history[n.replace ? "replace" : "push"](a.href, a.state, { ignoreBlocker: t });
1112
+ }
1113
+ return this.resetNextScroll = n.resetScroll ?? !0, this.history.subscribers.size || this.load(), this.commitLocationPromise;
1114
+ }, this.buildAndCommitLocation = ({ replace: e, resetScroll: t, hashScrollIntoView: n, viewTransition: r, ignoreBlocker: i, href: a, ...o } = {}) => {
1115
+ if (a) {
1116
+ let t = this.history.location.state.__TSR_index, n = parseHref(a, { __TSR_index: e ? t : t + 1 });
1117
+ o.to = n.pathname, o.search = this.options.parseSearch(n.search), o.hash = n.hash.slice(1);
1118
+ }
1119
+ let s = this.buildLocation({
1120
+ ...o,
1121
+ _includeValidateSearch: !0
1122
+ });
1123
+ return this.commitLocation({
1124
+ ...s,
1125
+ viewTransition: r,
1126
+ replace: e,
1127
+ resetScroll: t,
1128
+ hashScrollIntoView: n,
1129
+ ignoreBlocker: i
1130
+ });
1131
+ }, this.navigate = ({ to: e, reloadDocument: t, href: n, ...r }) => {
1132
+ if (t) {
1133
+ if (!n) {
1134
+ let t = this.buildLocation({
1135
+ to: e,
1136
+ ...r
1137
+ });
1138
+ n = this.history.createHref(t.href);
1139
+ }
1140
+ r.replace ? window.location.replace(n) : window.location.href = n;
1141
+ return;
1142
+ }
1143
+ return this.buildAndCommitLocation({
1144
+ ...r,
1145
+ href: n,
1146
+ to: e
1147
+ });
1148
+ }, this.load = async (e) => {
1149
+ this.latestLocation = this.parseLocation(this.latestLocation);
1150
+ let t, n, r;
1151
+ for (r = new Promise((i) => {
1152
+ this.startTransition(async () => {
1153
+ var a;
1154
+ try {
1155
+ let t = this.latestLocation, n = this.state.resolvedLocation;
1156
+ this.cancelMatches();
1157
+ let r;
1158
+ batch(() => {
1159
+ r = this.matchRoutes(t), this.__store.setState((e) => ({
1160
+ ...e,
1161
+ status: "pending",
1162
+ isLoading: !0,
1163
+ location: t,
1164
+ pendingMatches: r,
1165
+ cachedMatches: e.cachedMatches.filter((e) => !r.find((t) => t.id === e.id))
1166
+ }));
1167
+ }), this.state.redirect || this.emit({
1168
+ type: "onBeforeNavigate",
1169
+ ...getLocationChangeInfo({
1170
+ resolvedLocation: n,
1171
+ location: t
1172
+ })
1173
+ }), this.emit({
1174
+ type: "onBeforeLoad",
1175
+ ...getLocationChangeInfo({
1176
+ resolvedLocation: n,
1177
+ location: t
1178
+ })
1179
+ }), await this.loadMatches({
1180
+ sync: e?.sync,
1181
+ matches: r,
1182
+ location: t,
1183
+ onReady: async () => {
1184
+ this.startViewTransition(async () => {
1185
+ let e, t, n;
1186
+ batch(() => {
1187
+ this.__store.setState((r) => {
1188
+ let i = r.matches, a = r.pendingMatches || r.matches;
1189
+ return e = i.filter((e) => !a.find((t) => t.id === e.id)), t = a.filter((e) => !i.find((t) => t.id === e.id)), n = i.filter((e) => a.find((t) => t.id === e.id)), {
1190
+ ...r,
1191
+ isLoading: !1,
1192
+ loadedAt: Date.now(),
1193
+ matches: a,
1194
+ pendingMatches: void 0,
1195
+ cachedMatches: [...r.cachedMatches, ...e.filter((e) => e.status !== "error")]
1196
+ };
1197
+ }), this.clearExpiredCache();
1198
+ }), [
1199
+ [e, "onLeave"],
1200
+ [t, "onEnter"],
1201
+ [n, "onStay"]
1202
+ ].forEach(([e, t]) => {
1203
+ e.forEach((e) => {
1204
+ var n, r;
1205
+ (r = (n = this.looseRoutesById[e.routeId].options)[t]) == null || r.call(n, e);
1206
+ });
1207
+ });
1208
+ });
1209
+ }
1210
+ });
1211
+ } catch (e) {
1212
+ isResolvedRedirect(e) ? (t = e, this.isServer || this.navigate({
1213
+ ...t,
1214
+ replace: !0,
1215
+ ignoreBlocker: !0
1216
+ })) : isNotFound(e) && (n = e), this.__store.setState((e) => ({
1217
+ ...e,
1218
+ statusCode: t ? t.statusCode : n ? 404 : e.matches.some((e) => e.status === "error") ? 500 : 200,
1219
+ redirect: t
1220
+ }));
1221
+ }
1222
+ this.latestLoadPromise === r && ((a = this.commitLocationPromise) == null || a.resolve(), this.latestLoadPromise = void 0, this.commitLocationPromise = void 0), i();
1223
+ });
1224
+ }), this.latestLoadPromise = r, await r; this.latestLoadPromise && r !== this.latestLoadPromise;) await this.latestLoadPromise;
1225
+ this.hasNotFoundMatch() && this.__store.setState((e) => ({
1226
+ ...e,
1227
+ statusCode: 404
1228
+ }));
1229
+ }, this.startViewTransition = (e) => {
1230
+ let t = this.shouldViewTransition ?? this.options.defaultViewTransition;
1231
+ if (delete this.shouldViewTransition, t && typeof document < "u" && "startViewTransition" in document && typeof document.startViewTransition == "function") {
1232
+ let n;
1233
+ n = typeof t == "object" && this.isViewTransitionTypesSupported ? {
1234
+ update: e,
1235
+ types: t.types
1236
+ } : e, document.startViewTransition(n);
1237
+ } else e();
1238
+ }, this.updateMatch = (e, t) => {
1239
+ let n, r = this.state.pendingMatches?.find((t) => t.id === e), i = this.state.matches.find((t) => t.id === e), a = this.state.cachedMatches.find((t) => t.id === e), o = r ? "pendingMatches" : i ? "matches" : a ? "cachedMatches" : "";
1240
+ return o && this.__store.setState((r) => ({
1241
+ ...r,
1242
+ [o]: r[o]?.map((r) => r.id === e ? n = t(r) : r)
1243
+ })), n;
1244
+ }, this.getMatch = (e) => [
1245
+ ...this.state.cachedMatches,
1246
+ ...this.state.pendingMatches ?? [],
1247
+ ...this.state.matches
1248
+ ].find((t) => t.id === e), this.loadMatches = async ({ location: e, matches: t, preload: n, onReady: r, updateMatch: i = this.updateMatch, sync: a }) => {
1249
+ let o, s = !1, triggerOnReady = async () => {
1250
+ s || (s = !0, await r?.());
1251
+ }, resolvePreload = (e) => !!(n && !this.state.matches.find((t) => t.id === e));
1252
+ !this.isServer && !this.state.matches.length && triggerOnReady();
1253
+ let handleRedirectAndNotFound = (n, r) => {
1254
+ var a, o, c, l;
1255
+ if (isResolvedRedirect(r) && !r.reloadDocument) throw r;
1256
+ if (isRedirect(r) || isNotFound(r)) {
1257
+ if (i(n.id, (e) => ({
1258
+ ...e,
1259
+ status: isRedirect(r) ? "redirected" : isNotFound(r) ? "notFound" : "error",
1260
+ isFetching: !1,
1261
+ error: r,
1262
+ beforeLoadPromise: void 0,
1263
+ loaderPromise: void 0
1264
+ })), r.routeId ||= n.routeId, (a = n.beforeLoadPromise) == null || a.resolve(), (o = n.loaderPromise) == null || o.resolve(), (c = n.loadPromise) == null || c.resolve(), isRedirect(r)) throw s = !0, r = this.resolveRedirect({
1265
+ ...r,
1266
+ _fromLocation: e
1267
+ }), r;
1268
+ if (isNotFound(r)) throw this._handleNotFound(t, r, { updateMatch: i }), (l = this.serverSsr) == null || l.onMatchSettled({
1269
+ router: this,
1270
+ match: this.getMatch(n.id)
1271
+ }), r;
1272
+ }
1273
+ };
1274
+ try {
1275
+ await new Promise((n, s) => {
1276
+ (async () => {
1277
+ var c;
1278
+ try {
1279
+ let handleSerialError = (e, n, r) => {
1280
+ var a, s;
1281
+ let { id: c, routeId: l } = t[e], u = this.looseRoutesById[l];
1282
+ if (n instanceof Promise) throw n;
1283
+ n.routerCode = r, o ??= e, handleRedirectAndNotFound(this.getMatch(c), n);
1284
+ try {
1285
+ (s = (a = u.options).onError) == null || s.call(a, n);
1286
+ } catch (e) {
1287
+ n = e, handleRedirectAndNotFound(this.getMatch(c), n);
1288
+ }
1289
+ i(c, (e) => {
1290
+ var t, r;
1291
+ return (t = e.beforeLoadPromise) == null || t.resolve(), (r = e.loadPromise) == null || r.resolve(), {
1292
+ ...e,
1293
+ error: n,
1294
+ status: "error",
1295
+ isFetching: !1,
1296
+ updatedAt: Date.now(),
1297
+ abortController: new AbortController(),
1298
+ beforeLoadPromise: void 0
1299
+ };
1300
+ });
1301
+ };
1302
+ for (let [n, { id: a, routeId: o }] of t.entries()) {
1303
+ let s = this.getMatch(a), l = t[n - 1]?.id, u = this.looseRoutesById[o], d = u.options.pendingMs ?? this.options.defaultPendingMs, f = !!(r && !this.isServer && !resolvePreload(a) && (u.options.loader || u.options.beforeLoad) && typeof d == "number" && d !== Infinity && (u.options.pendingComponent ?? this.options?.defaultPendingComponent)), p = !0;
1304
+ if ((s.beforeLoadPromise || s.loaderPromise) && (f && setTimeout(() => {
1305
+ try {
1306
+ triggerOnReady();
1307
+ } catch {}
1308
+ }, d), await s.beforeLoadPromise, p = this.getMatch(a).status !== "success"), p) {
1309
+ try {
1310
+ i(a, (e) => {
1311
+ let t = e.loadPromise;
1312
+ return {
1313
+ ...e,
1314
+ loadPromise: createControlledPromise(() => {
1315
+ t?.resolve();
1316
+ }),
1317
+ beforeLoadPromise: createControlledPromise()
1318
+ };
1319
+ });
1320
+ let r = new AbortController(), o;
1321
+ f && (o = setTimeout(() => {
1322
+ try {
1323
+ triggerOnReady();
1324
+ } catch {}
1325
+ }, d));
1326
+ let { paramsError: s, searchError: p } = this.getMatch(a);
1327
+ s && handleSerialError(n, s, "PARSE_PARAMS"), p && handleSerialError(n, p, "VALIDATE_SEARCH");
1328
+ let getParentMatchContext = () => l ? this.getMatch(l).context : this.options.context ?? {};
1329
+ i(a, (e) => ({
1330
+ ...e,
1331
+ isFetching: "beforeLoad",
1332
+ fetchCount: e.fetchCount + 1,
1333
+ abortController: r,
1334
+ pendingTimeout: o,
1335
+ context: {
1336
+ ...getParentMatchContext(),
1337
+ ...e.__routeContext
1338
+ }
1339
+ }));
1340
+ let { search: m, params: h, context: g, cause: _ } = this.getMatch(a), v = resolvePreload(a), y = {
1341
+ search: m,
1342
+ abortController: r,
1343
+ params: h,
1344
+ preload: v,
1345
+ context: g,
1346
+ location: e,
1347
+ navigate: (t) => this.navigate({
1348
+ ...t,
1349
+ _fromLocation: e
1350
+ }),
1351
+ buildLocation: this.buildLocation,
1352
+ cause: v ? "preload" : _,
1353
+ matches: t
1354
+ }, b = await (c = u.options).beforeLoad?.call(c, y) ?? {};
1355
+ (isRedirect(b) || isNotFound(b)) && handleSerialError(n, b, "BEFORE_LOAD"), i(a, (e) => ({
1356
+ ...e,
1357
+ __beforeLoadContext: b,
1358
+ context: {
1359
+ ...getParentMatchContext(),
1360
+ ...e.__routeContext,
1361
+ ...b
1362
+ },
1363
+ abortController: r
1364
+ }));
1365
+ } catch (e) {
1366
+ handleSerialError(n, e, "BEFORE_LOAD");
1367
+ }
1368
+ i(a, (e) => {
1369
+ var t;
1370
+ return (t = e.beforeLoadPromise) == null || t.resolve(), {
1371
+ ...e,
1372
+ beforeLoadPromise: void 0,
1373
+ isFetching: !1
1374
+ };
1375
+ });
1376
+ }
1377
+ }
1378
+ let s = t.slice(0, o), l = [];
1379
+ s.forEach(({ id: n, routeId: r }, o) => {
1380
+ l.push((async () => {
1381
+ let { loaderPromise: s } = this.getMatch(n), c = !1, u = !1;
1382
+ if (s) {
1383
+ await s;
1384
+ let e = this.getMatch(n);
1385
+ e.error && handleRedirectAndNotFound(e, e.error);
1386
+ } else {
1387
+ let s = l[o - 1], d = this.looseRoutesById[r], getLoaderContext = () => {
1388
+ let { params: t, loaderDeps: r, abortController: i, context: a, cause: o } = this.getMatch(n), c = resolvePreload(n);
1389
+ return {
1390
+ params: t,
1391
+ deps: r,
1392
+ preload: !!c,
1393
+ parentMatchPromise: s,
1394
+ abortController: i,
1395
+ context: a,
1396
+ location: e,
1397
+ navigate: (t) => this.navigate({
1398
+ ...t,
1399
+ _fromLocation: e
1400
+ }),
1401
+ cause: c ? "preload" : o,
1402
+ route: d
1403
+ };
1404
+ }, f = Date.now() - this.getMatch(n).updatedAt, p = resolvePreload(n), m = p ? d.options.preloadStaleTime ?? this.options.defaultPreloadStaleTime ?? 3e4 : d.options.staleTime ?? this.options.defaultStaleTime ?? 0, h = d.options.shouldReload, g = typeof h == "function" ? h(getLoaderContext()) : h;
1405
+ i(n, (e) => ({
1406
+ ...e,
1407
+ loaderPromise: createControlledPromise(),
1408
+ preload: !!p && !this.state.matches.find((e) => e.id === n)
1409
+ }));
1410
+ let runLoader = async () => {
1411
+ var e, r, a, o, s, c, l;
1412
+ try {
1413
+ let potentialPendingMinPromise = async () => {
1414
+ let e = this.getMatch(n);
1415
+ e.minPendingPromise && await e.minPendingPromise;
1416
+ };
1417
+ try {
1418
+ this.loadRouteChunk(d), i(n, (e) => ({
1419
+ ...e,
1420
+ isFetching: "loader"
1421
+ }));
1422
+ let s = await (e = d.options).loader?.call(e, getLoaderContext());
1423
+ handleRedirectAndNotFound(this.getMatch(n), s), await d._lazyPromise, await potentialPendingMinPromise();
1424
+ let c = {
1425
+ matches: t,
1426
+ match: this.getMatch(n),
1427
+ params: this.getMatch(n).params,
1428
+ loaderData: s
1429
+ }, l = (r = d.options).head?.call(r, c), u = l?.meta, f = l?.links, p = l?.scripts, m = (a = d.options).scripts?.call(a, c), h = (o = d.options).headers?.call(o, { loaderData: s });
1430
+ i(n, (e) => ({
1431
+ ...e,
1432
+ error: void 0,
1433
+ status: "success",
1434
+ isFetching: !1,
1435
+ updatedAt: Date.now(),
1436
+ loaderData: s,
1437
+ meta: u,
1438
+ links: f,
1439
+ headScripts: p,
1440
+ headers: h,
1441
+ scripts: m
1442
+ }));
1443
+ } catch (e) {
1444
+ let t = e;
1445
+ await potentialPendingMinPromise(), handleRedirectAndNotFound(this.getMatch(n), e);
1446
+ try {
1447
+ (c = (s = d.options).onError) == null || c.call(s, e);
1448
+ } catch (e) {
1449
+ t = e, handleRedirectAndNotFound(this.getMatch(n), e);
1450
+ }
1451
+ i(n, (e) => ({
1452
+ ...e,
1453
+ error: t,
1454
+ status: "error",
1455
+ isFetching: !1
1456
+ }));
1457
+ }
1458
+ (l = this.serverSsr) == null || l.onMatchSettled({
1459
+ router: this,
1460
+ match: this.getMatch(n)
1461
+ }), await d._componentsPromise;
1462
+ } catch (e) {
1463
+ i(n, (e) => ({
1464
+ ...e,
1465
+ loaderPromise: void 0
1466
+ })), handleRedirectAndNotFound(this.getMatch(n), e);
1467
+ }
1468
+ }, { status: _, invalid: v } = this.getMatch(n);
1469
+ c = _ === "success" && (v || (g ?? f > m)), p && d.options.preload === !1 || (c && !a ? (u = !0, (async () => {
1470
+ try {
1471
+ await runLoader();
1472
+ let { loaderPromise: e, loadPromise: t } = this.getMatch(n);
1473
+ e?.resolve(), t?.resolve(), i(n, (e) => ({
1474
+ ...e,
1475
+ loaderPromise: void 0
1476
+ }));
1477
+ } catch (e) {
1478
+ isResolvedRedirect(e) && await this.navigate(e);
1479
+ }
1480
+ })()) : (_ !== "success" || c && a) && await runLoader());
1481
+ }
1482
+ if (!u) {
1483
+ let { loaderPromise: e, loadPromise: t } = this.getMatch(n);
1484
+ e?.resolve(), t?.resolve();
1485
+ }
1486
+ return i(n, (e) => ({
1487
+ ...e,
1488
+ isFetching: u ? e.isFetching : !1,
1489
+ loaderPromise: u ? e.loaderPromise : void 0,
1490
+ invalid: !1
1491
+ })), this.getMatch(n);
1492
+ })());
1493
+ }), await Promise.all(l), n();
1494
+ } catch (e) {
1495
+ s(e);
1496
+ }
1497
+ })();
1498
+ }), await triggerOnReady();
1499
+ } catch (e) {
1500
+ if (isRedirect(e) || isNotFound(e)) throw isNotFound(e) && !n && await triggerOnReady(), e;
1501
+ }
1502
+ return t;
1503
+ }, this.invalidate = (e) => {
1504
+ let invalidate = (t) => (e?.filter)?.call(e, t) ?? !0 ? {
1505
+ ...t,
1506
+ invalid: !0,
1507
+ ...t.status === "error" ? {
1508
+ status: "pending",
1509
+ error: void 0
1510
+ } : {}
1511
+ } : t;
1512
+ return this.__store.setState((e) => ({
1513
+ ...e,
1514
+ matches: e.matches.map(invalidate),
1515
+ cachedMatches: e.cachedMatches.map(invalidate),
1516
+ pendingMatches: e.pendingMatches?.map(invalidate)
1517
+ })), this.load({ sync: e?.sync });
1518
+ }, this.resolveRedirect = (e) => {
1519
+ let t = e;
1520
+ return t.href ||= this.buildLocation(t).href, t;
1521
+ }, this.clearCache = (e) => {
1522
+ let t = e?.filter;
1523
+ t === void 0 ? this.__store.setState((e) => ({
1524
+ ...e,
1525
+ cachedMatches: []
1526
+ })) : this.__store.setState((e) => ({
1527
+ ...e,
1528
+ cachedMatches: e.cachedMatches.filter((e) => !t(e))
1529
+ }));
1530
+ }, this.clearExpiredCache = () => {
1531
+ let filter = (e) => {
1532
+ let t = this.looseRoutesById[e.routeId];
1533
+ if (!t.options.loader) return !0;
1534
+ let n = (e.preload ? t.options.preloadGcTime ?? this.options.defaultPreloadGcTime : t.options.gcTime ?? this.options.defaultGcTime) ?? 300 * 1e3;
1535
+ return !(e.status !== "error" && Date.now() - e.updatedAt < n);
1536
+ };
1537
+ this.clearCache({ filter });
1538
+ }, this.loadRouteChunk = (e) => (e._lazyPromise === void 0 && (e.lazyFn ? e._lazyPromise = e.lazyFn().then((t) => {
1539
+ let { id: n, ...r } = t.options;
1540
+ Object.assign(e.options, r);
1541
+ }) : e._lazyPromise = Promise.resolve()), e._componentsPromise === void 0 && (e._componentsPromise = e._lazyPromise.then(() => Promise.all(D.map(async (t) => {
1542
+ let n = e.options[t];
1543
+ n?.preload && await n.preload();
1544
+ })))), e._componentsPromise), this.preloadRoute = async (e) => {
1545
+ let t = this.buildLocation(e), n = this.matchRoutes(t, {
1546
+ throwOnError: !0,
1547
+ preload: !0,
1548
+ dest: e
1549
+ }), r = new Set([...this.state.matches, ...this.state.pendingMatches ?? []].map((e) => e.id)), i = /* @__PURE__ */ new Set([...r, ...this.state.cachedMatches.map((e) => e.id)]);
1550
+ batch(() => {
1551
+ n.forEach((e) => {
1552
+ i.has(e.id) || this.__store.setState((t) => ({
1553
+ ...t,
1554
+ cachedMatches: [...t.cachedMatches, e]
1555
+ }));
1556
+ });
1557
+ });
1558
+ try {
1559
+ return n = await this.loadMatches({
1560
+ matches: n,
1561
+ location: t,
1562
+ preload: !0,
1563
+ updateMatch: (e, t) => {
1564
+ r.has(e) ? n = n.map((n) => n.id === e ? t(n) : n) : this.updateMatch(e, t);
1565
+ }
1566
+ }), n;
1567
+ } catch (e) {
1568
+ if (isRedirect(e)) return e.reloadDocument ? void 0 : await this.preloadRoute({
1569
+ ...e,
1570
+ _fromLocation: t
1571
+ });
1572
+ isNotFound(e) || console.error(e);
1573
+ return;
1574
+ }
1575
+ }, this.matchRoute = (e, t) => {
1576
+ let n = {
1577
+ ...e,
1578
+ to: e.to ? this.resolvePathWithBase(e.from || "", e.to) : void 0,
1579
+ params: e.params || {},
1580
+ leaveParams: !0
1581
+ }, r = this.buildLocation(n);
1582
+ if (t?.pending && this.state.status !== "pending") return !1;
1583
+ let i = (t?.pending === void 0 ? !this.state.isLoading : t.pending) ? this.latestLocation : this.state.resolvedLocation || this.state.location, a = matchPathname(this.basepath, i.pathname, {
1584
+ ...t,
1585
+ to: r.pathname
1586
+ });
1587
+ return !a || e.params && !deepEqual(a, e.params, { partial: !0 }) ? !1 : a && (t?.includeSearch ?? !0) ? deepEqual(i.search, r.search, { partial: !0 }) ? a : !1 : a;
1588
+ }, this._handleNotFound = (e, t, { updateMatch: n = this.updateMatch } = {}) => {
1589
+ let r = this.routesById[t.routeId ?? ""] ?? this.routeTree, i = {};
1590
+ for (let t of e) i[t.routeId] = t;
1591
+ !r.options.notFoundComponent && this.options?.defaultNotFoundComponent && (r.options.notFoundComponent = this.options.defaultNotFoundComponent), invariant(r.options.notFoundComponent, "No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.");
1592
+ let a = i[r.id];
1593
+ invariant(a, "Could not find match for route: " + r.id), n(a.id, (e) => ({
1594
+ ...e,
1595
+ status: "notFound",
1596
+ error: t,
1597
+ isFetching: !1
1598
+ })), t.routerCode === "BEFORE_LOAD" && r.parentRoute && (t.routeId = r.parentRoute.id, this._handleNotFound(e, t, { updateMatch: n }));
1599
+ }, this.hasNotFoundMatch = () => this.__store.state.matches.some((e) => e.status === "notFound" || e.globalNotFound), this.update({
1600
+ defaultPreloadDelay: 50,
1601
+ defaultPendingMs: 1e3,
1602
+ defaultPendingMinMs: 500,
1603
+ context: void 0,
1604
+ ...e,
1605
+ caseSensitive: e.caseSensitive ?? !1,
1606
+ notFoundMode: e.notFoundMode ?? "fuzzy",
1607
+ stringifySearch: e.stringifySearch ?? T,
1608
+ parseSearch: e.parseSearch ?? w
1609
+ }), typeof document < "u" && (window.__TSR_ROUTER__ = this);
1610
+ }
1611
+ get state() {
1612
+ return this.__store.state;
1613
+ }
1614
+ get looseRoutesById() {
1615
+ return this.routesById;
1616
+ }
1617
+ matchRoutesInternal(e, t) {
1618
+ let { foundRoute: n, matchedRoutes: r, routeParams: i } = this.getMatchedRoutes(e, t?.dest), a = !1;
1619
+ (n ? n.path !== "/" && i["**"] : trimPathRight(e.pathname)) && (this.options.notFoundRoute ? r.push(this.options.notFoundRoute) : a = !0);
1620
+ let o = (() => {
1621
+ if (a) {
1622
+ if (this.options.notFoundMode !== "root") for (let e = r.length - 1; e >= 0; e--) {
1623
+ let t = r[e];
1624
+ if (t.children) return t.id;
1625
+ }
1626
+ return E;
1627
+ }
1628
+ })(), s = r.map((e) => {
1629
+ let n, r = e.options.params?.parse ?? e.options.parseParams;
1630
+ if (r) try {
1631
+ let e = r(i);
1632
+ Object.assign(i, e);
1633
+ } catch (e) {
1634
+ if (n = new PathParamError(e.message, { cause: e }), t?.throwOnError) throw n;
1635
+ return n;
1636
+ }
1637
+ }), c = [], getParentContext = (e) => e?.id ? e.context ?? this.options.context ?? {} : this.options.context ?? {};
1638
+ return r.forEach((n, r) => {
1639
+ var a;
1640
+ let l = c[r - 1], [u, d, f] = (() => {
1641
+ let r = l?.search ?? e.search, i = l?._strictSearch ?? {};
1642
+ try {
1643
+ let e = validateSearch(n.options.validateSearch, { ...r }) ?? {};
1644
+ return [
1645
+ {
1646
+ ...r,
1647
+ ...e
1648
+ },
1649
+ {
1650
+ ...i,
1651
+ ...e
1652
+ },
1653
+ void 0
1654
+ ];
1655
+ } catch (e) {
1656
+ let n = e;
1657
+ if (e instanceof SearchParamError || (n = new SearchParamError(e.message, { cause: e })), t?.throwOnError) throw n;
1658
+ return [
1659
+ r,
1660
+ {},
1661
+ n
1662
+ ];
1663
+ }
1664
+ })(), p = (a = n.options).loaderDeps?.call(a, { search: u }) ?? "", m = p ? JSON.stringify(p) : "", { usedParams: h, interpolatedPath: g } = interpolatePath({
1665
+ path: n.fullPath,
1666
+ params: i,
1667
+ decodeCharMap: this.pathParamsDecodeCharMap
1668
+ }), _ = interpolatePath({
1669
+ path: n.id,
1670
+ params: i,
1671
+ leaveWildcards: !0,
1672
+ decodeCharMap: this.pathParamsDecodeCharMap
1673
+ }).interpolatedPath + m, v = this.getMatch(_), y = this.state.matches.find((e) => e.routeId === n.id), b = y ? "stay" : "enter", x;
1674
+ if (v) x = {
1675
+ ...v,
1676
+ cause: b,
1677
+ params: y ? replaceEqualDeep(y.params, i) : i,
1678
+ _strictParams: h,
1679
+ search: replaceEqualDeep(y ? y.search : v.search, u),
1680
+ _strictSearch: d
1681
+ };
1682
+ else {
1683
+ let e = n.options.loader || n.options.beforeLoad || n.lazyFn || routeNeedsPreload(n) ? "pending" : "success";
1684
+ x = {
1685
+ id: _,
1686
+ index: r,
1687
+ routeId: n.id,
1688
+ params: y ? replaceEqualDeep(y.params, i) : i,
1689
+ _strictParams: h,
1690
+ pathname: joinPaths([this.basepath, g]),
1691
+ updatedAt: Date.now(),
1692
+ search: y ? replaceEqualDeep(y.search, u) : u,
1693
+ _strictSearch: d,
1694
+ searchError: void 0,
1695
+ status: e,
1696
+ isFetching: !1,
1697
+ error: void 0,
1698
+ paramsError: s[r],
1699
+ __routeContext: {},
1700
+ __beforeLoadContext: {},
1701
+ context: {},
1702
+ abortController: new AbortController(),
1703
+ fetchCount: 0,
1704
+ cause: b,
1705
+ loaderDeps: y ? replaceEqualDeep(y.loaderDeps, p) : p,
1706
+ invalid: !1,
1707
+ preload: !1,
1708
+ links: void 0,
1709
+ scripts: void 0,
1710
+ headScripts: void 0,
1711
+ meta: void 0,
1712
+ staticData: n.options.staticData || {},
1713
+ loadPromise: createControlledPromise(),
1714
+ fullPath: n.fullPath
1715
+ };
1716
+ }
1717
+ t?.preload || (x.globalNotFound = o === n.id), x.searchError = f;
1718
+ let S = getParentContext(l);
1719
+ x.context = {
1720
+ ...S,
1721
+ ...x.__routeContext,
1722
+ ...x.__beforeLoadContext
1723
+ }, c.push(x);
1724
+ }), c.forEach((n, r) => {
1725
+ var i, a, o, s;
1726
+ let l = this.looseRoutesById[n.routeId];
1727
+ if (!this.getMatch(n.id) && t?._buildLocation !== !0) {
1728
+ let t = c[r - 1], a = getParentContext(t), o = {
1729
+ deps: n.loaderDeps,
1730
+ params: n.params,
1731
+ context: a,
1732
+ location: e,
1733
+ navigate: (t) => this.navigate({
1734
+ ...t,
1735
+ _fromLocation: e
1736
+ }),
1737
+ buildLocation: this.buildLocation,
1738
+ cause: n.cause,
1739
+ abortController: n.abortController,
1740
+ preload: !!n.preload,
1741
+ matches: c
1742
+ };
1743
+ n.__routeContext = (i = l.options).context?.call(i, o) ?? {}, n.context = {
1744
+ ...a,
1745
+ ...n.__routeContext,
1746
+ ...n.__beforeLoadContext
1747
+ };
1748
+ }
1749
+ if (n.status === "success") {
1750
+ n.headers = (a = l.options).headers?.call(a, { loaderData: n.loaderData });
1751
+ let e = {
1752
+ matches: c,
1753
+ match: n,
1754
+ params: n.params,
1755
+ loaderData: n.loaderData
1756
+ }, t = (o = l.options).head?.call(o, e);
1757
+ n.links = t?.links, n.headScripts = t?.scripts, n.meta = t?.meta, n.scripts = (s = l.options).scripts?.call(s, e);
1758
+ }
1759
+ }), c;
1760
+ }
1761
+ }, SearchParamError = class extends Error {}, PathParamError = class extends Error {};
1762
+ function getInitialRouterState(e) {
1763
+ return {
1764
+ loadedAt: 0,
1765
+ isLoading: !1,
1766
+ isTransitioning: !1,
1767
+ status: "idle",
1768
+ resolvedLocation: void 0,
1769
+ location: e,
1770
+ matches: [],
1771
+ pendingMatches: [],
1772
+ cachedMatches: [],
1773
+ statusCode: 200
1774
+ };
1775
+ }
1776
+ function validateSearch(e, t) {
1777
+ if (e == null) return {};
1778
+ if ("~standard" in e) {
1779
+ let n = e["~standard"].validate(t);
1780
+ if (n instanceof Promise) throw new SearchParamError("Async validation not supported");
1781
+ if (n.issues) throw new SearchParamError(JSON.stringify(n.issues, void 0, 2), { cause: n });
1782
+ return n.value;
1783
+ }
1784
+ return "parse" in e ? e.parse(t) : typeof e == "function" ? e(t) : {};
1785
+ }
1786
+ var D = [
1787
+ "component",
1788
+ "errorComponent",
1789
+ "pendingComponent",
1790
+ "notFoundComponent"
1791
+ ];
1792
+ function routeNeedsPreload(e) {
1793
+ for (let t of D) if (e.options[t]?.preload) return !0;
1794
+ return !1;
1795
+ }
1796
+ //#endregion
1797
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/link.js
1798
+ var O = "Error preloading route! ☝️", BaseRoute = class {
1799
+ constructor(e) {
1800
+ if (this.init = (e) => {
1801
+ var t;
1802
+ this.originalIndex = e.originalIndex;
1803
+ let n = this.options, r = !n?.path && !n?.id;
1804
+ if (this.parentRoute = (t = this.options).getParentRoute?.call(t), r) this._path = E;
1805
+ else if (!this.parentRoute) throw Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");
1806
+ let i = r ? E : n?.path;
1807
+ i && i !== "/" && (i = trimPathLeft(i));
1808
+ let a = n?.id || i, o = r ? E : joinPaths([this.parentRoute.id === "__root__" ? "" : this.parentRoute.id, a]);
1809
+ i === "__root__" && (i = "/"), o !== "__root__" && (o = joinPaths(["/", o]));
1810
+ let s = o === "__root__" ? "/" : joinPaths([this.parentRoute.fullPath, i]);
1811
+ this._path = i, this._id = o, this._fullPath = s, this._to = s, this._ssr = n?.ssr ?? e.defaultSsr ?? !0;
1812
+ }, this.addChildren = (e) => this._addFileChildren(e), this._addFileChildren = (e) => (Array.isArray(e) && (this.children = e), typeof e == "object" && e && (this.children = Object.values(e)), this), this._addFileTypes = () => this, this.updateLoader = (e) => (Object.assign(this.options, e), this), this.update = (e) => (Object.assign(this.options, e), this), this.lazy = (e) => (this.lazyFn = e, this), this.options = e || {}, this.isRoot = !e?.getParentRoute, e?.id && e?.path) throw Error("Route cannot have both an 'id' and a 'path' option.");
1813
+ }
1814
+ get to() {
1815
+ return this._to;
1816
+ }
1817
+ get id() {
1818
+ return this._id;
1819
+ }
1820
+ get path() {
1821
+ return this._path;
1822
+ }
1823
+ get fullPath() {
1824
+ return this._fullPath;
1825
+ }
1826
+ get ssr() {
1827
+ return this._ssr;
1828
+ }
1829
+ }, BaseRootRoute = class extends BaseRoute {
1830
+ constructor(e) {
1831
+ super(e);
1832
+ }
1833
+ };
1834
+ //#endregion
1835
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/searchMiddleware.js
1836
+ function stripSearchParams(e) {
1837
+ return ({ search: t, next: n }) => {
1838
+ if (e === !0) return {};
1839
+ let r = n(t);
1840
+ return Array.isArray(e) ? e.forEach((e) => {
1841
+ delete r[e];
1842
+ }) : Object.entries(e).forEach(([e, t]) => {
1843
+ deepEqual(r[e], t) && delete r[e];
1844
+ }), r;
1845
+ };
1846
+ }
1847
+ //#endregion
1848
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/CatchBoundary.js
1849
+ function CatchBoundary(e) {
1850
+ let n = e.errorComponent ?? ErrorComponent;
1851
+ return /* @__PURE__ */ i(CatchBoundaryImpl, {
1852
+ getResetKey: e.getResetKey,
1853
+ onCatch: e.onCatch,
1854
+ children: ({ error: r, reset: i }) => r ? t.createElement(n, {
1855
+ error: r,
1856
+ reset: i
1857
+ }) : e.children
1858
+ });
1859
+ }
1860
+ var CatchBoundaryImpl = class extends t.Component {
1861
+ constructor() {
1862
+ super(...arguments), this.state = { error: null };
1863
+ }
1864
+ static getDerivedStateFromProps(e) {
1865
+ return { resetKey: e.getResetKey() };
1866
+ }
1867
+ static getDerivedStateFromError(e) {
1868
+ return { error: e };
1869
+ }
1870
+ reset() {
1871
+ this.setState({ error: null });
1872
+ }
1873
+ componentDidUpdate(e, t) {
1874
+ t.error && t.resetKey !== this.state.resetKey && this.reset();
1875
+ }
1876
+ componentDidCatch(e, t) {
1877
+ this.props.onCatch && this.props.onCatch(e, t);
1878
+ }
1879
+ render() {
1880
+ return this.props.children({
1881
+ error: this.state.resetKey === this.props.getResetKey() ? this.state.error : null,
1882
+ reset: () => {
1883
+ this.reset();
1884
+ }
1885
+ });
1886
+ }
1887
+ };
1888
+ function ErrorComponent({ error: e }) {
1889
+ let [n, r] = t.useState(!1);
1890
+ return /* @__PURE__ */ a("div", {
1891
+ style: {
1892
+ padding: ".5rem",
1893
+ maxWidth: "100%"
1894
+ },
1895
+ children: [
1896
+ /* @__PURE__ */ a("div", {
1897
+ style: {
1898
+ display: "flex",
1899
+ alignItems: "center",
1900
+ gap: ".5rem"
1901
+ },
1902
+ children: [/* @__PURE__ */ i("strong", {
1903
+ style: { fontSize: "1rem" },
1904
+ children: "Something went wrong!"
1905
+ }), /* @__PURE__ */ i("button", {
1906
+ style: {
1907
+ appearance: "none",
1908
+ fontSize: ".6em",
1909
+ border: "1px solid currentColor",
1910
+ padding: ".1rem .2rem",
1911
+ fontWeight: "bold",
1912
+ borderRadius: ".25rem"
1913
+ },
1914
+ onClick: () => r((e) => !e),
1915
+ children: n ? "Hide Error" : "Show Error"
1916
+ })]
1917
+ }),
1918
+ /* @__PURE__ */ i("div", { style: { height: ".25rem" } }),
1919
+ n ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("pre", {
1920
+ style: {
1921
+ fontSize: ".7em",
1922
+ border: "1px solid red",
1923
+ borderRadius: ".25rem",
1924
+ padding: ".3rem",
1925
+ color: "red",
1926
+ overflow: "auto"
1927
+ },
1928
+ children: e.message ? /* @__PURE__ */ i("code", { children: e.message }) : null
1929
+ }) }) : null
1930
+ ]
1931
+ });
1932
+ }
1933
+ //#endregion
1934
+ //#region ../../node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-store/dist/esm/index.js
1935
+ function useStore(e, t = (e) => e) {
1936
+ return o(e.subscribe, () => e.state, () => e.state, t, shallow);
1937
+ }
1938
+ function shallow(e, t) {
1939
+ if (Object.is(e, t)) return !0;
1940
+ if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
1941
+ if (e instanceof Map && t instanceof Map) {
1942
+ if (e.size !== t.size) return !1;
1943
+ for (let [n, r] of e) if (!t.has(n) || !Object.is(r, t.get(n))) return !1;
1944
+ return !0;
1945
+ }
1946
+ if (e instanceof Set && t instanceof Set) {
1947
+ if (e.size !== t.size) return !1;
1948
+ for (let n of e) if (!t.has(n)) return !1;
1949
+ return !0;
1950
+ }
1951
+ let n = Object.keys(e);
1952
+ if (n.length !== Object.keys(t).length) return !1;
1953
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
1954
+ return !0;
1955
+ }
1956
+ //#endregion
1957
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/routerContext.js
1958
+ var k = t.createContext(null);
1959
+ function getRouterContext() {
1960
+ return typeof document > "u" ? k : window.__TSR_ROUTER_CONTEXT__ ? window.__TSR_ROUTER_CONTEXT__ : (window.__TSR_ROUTER_CONTEXT__ = k, k);
1961
+ }
1962
+ //#endregion
1963
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouter.js
1964
+ function useRouter(e) {
1965
+ let n = t.useContext(getRouterContext());
1966
+ return e?.warn, n;
1967
+ }
1968
+ //#endregion
1969
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouterState.js
1970
+ function useRouterState(e) {
1971
+ let t = useRouter({ warn: e?.router === void 0 }), r = e?.router || t, i = n(void 0);
1972
+ return useStore(r.__store, (t) => {
1973
+ if (e?.select) {
1974
+ if (e.structuralSharing ?? r.options.defaultStructuralSharing) {
1975
+ let n = replaceEqualDeep(i.current, e.select(t));
1976
+ return i.current = n, n;
1977
+ }
1978
+ return e.select(t);
1979
+ }
1980
+ return t;
1981
+ });
1982
+ }
1983
+ //#endregion
1984
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/matchContext.js
1985
+ var A = t.createContext(void 0), j = t.createContext(void 0);
1986
+ //#endregion
1987
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useMatch.js
1988
+ function useMatch(e) {
1989
+ let n = t.useContext(e.from ? j : A);
1990
+ return useRouterState({
1991
+ select: (t) => {
1992
+ let r = t.matches.find((t) => e.from ? e.from === t.routeId : t.id === n);
1993
+ if (invariant(!((e.shouldThrow ?? !0) && !r), `Could not find ${e.from ? `an active match from "${e.from}"` : "a nearest match!"}`), r !== void 0) return e.select ? e.select(r) : r;
1994
+ },
1995
+ structuralSharing: e.structuralSharing
1996
+ });
1997
+ }
1998
+ //#endregion
1999
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
2000
+ function useLoaderData(e) {
2001
+ return useMatch({
2002
+ from: e.from,
2003
+ strict: e.strict,
2004
+ structuralSharing: e.structuralSharing,
2005
+ select: (t) => e.select ? e.select(t.loaderData) : t.loaderData
2006
+ });
2007
+ }
2008
+ //#endregion
2009
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
2010
+ function useLoaderDeps(e) {
2011
+ let { select: t, ...n } = e;
2012
+ return useMatch({
2013
+ ...n,
2014
+ select: (e) => t ? t(e.loaderDeps) : e.loaderDeps
2015
+ });
2016
+ }
2017
+ //#endregion
2018
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useParams.js
2019
+ function useParams(e) {
2020
+ return useMatch({
2021
+ from: e.from,
2022
+ strict: e.strict,
2023
+ shouldThrow: e.shouldThrow,
2024
+ structuralSharing: e.structuralSharing,
2025
+ select: (t) => e.select ? e.select(t.params) : t.params
2026
+ });
2027
+ }
2028
+ //#endregion
2029
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useSearch.js
2030
+ function useSearch(e) {
2031
+ return useMatch({
2032
+ from: e.from,
2033
+ strict: e.strict,
2034
+ shouldThrow: e.shouldThrow,
2035
+ structuralSharing: e.structuralSharing,
2036
+ select: (t) => e.select ? e.select(t.search) : t.search
2037
+ });
2038
+ }
2039
+ //#endregion
2040
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useNavigate.js
2041
+ function useNavigate(e) {
2042
+ let { navigate: n } = useRouter();
2043
+ return t.useCallback((t) => n({
2044
+ from: e?.from,
2045
+ ...t
2046
+ }), [e?.from, n]);
2047
+ }
2048
+ function Navigate(e) {
2049
+ let n = useRouter(), r = t.useRef(null);
2050
+ return t.useEffect(() => {
2051
+ r.current !== e && (n.navigate({ ...e }), r.current = e);
2052
+ }, [n, e]), null;
2053
+ }
2054
+ //#endregion
2055
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/route.js
2056
+ var Route = class extends BaseRoute {
2057
+ constructor(e) {
2058
+ super(e), this.useMatch = (e) => useMatch({
2059
+ select: e?.select,
2060
+ from: this.id,
2061
+ structuralSharing: e?.structuralSharing
2062
+ }), this.useRouteContext = (e) => useMatch({
2063
+ ...e,
2064
+ from: this.id,
2065
+ select: (t) => e?.select ? e.select(t.context) : t.context
2066
+ }), this.useSearch = (e) => useSearch({
2067
+ select: e?.select,
2068
+ structuralSharing: e?.structuralSharing,
2069
+ from: this.id
2070
+ }), this.useParams = (e) => useParams({
2071
+ select: e?.select,
2072
+ structuralSharing: e?.structuralSharing,
2073
+ from: this.id
2074
+ }), this.useLoaderDeps = (e) => useLoaderDeps({
2075
+ ...e,
2076
+ from: this.id
2077
+ }), this.useLoaderData = (e) => useLoaderData({
2078
+ ...e,
2079
+ from: this.id
2080
+ }), this.useNavigate = () => useNavigate({ from: this.fullPath }), this.$$typeof = Symbol.for("react.memo");
2081
+ }
2082
+ };
2083
+ function createRoute(e) {
2084
+ return new Route(e);
2085
+ }
2086
+ function createRootRouteWithContext() {
2087
+ return (e) => createRootRoute(e);
2088
+ }
2089
+ var RootRoute = class extends BaseRootRoute {
2090
+ constructor(e) {
2091
+ super(e), this.useMatch = (e) => useMatch({
2092
+ select: e?.select,
2093
+ from: this.id,
2094
+ structuralSharing: e?.structuralSharing
2095
+ }), this.useRouteContext = (e) => useMatch({
2096
+ ...e,
2097
+ from: this.id,
2098
+ select: (t) => e?.select ? e.select(t.context) : t.context
2099
+ }), this.useSearch = (e) => useSearch({
2100
+ select: e?.select,
2101
+ structuralSharing: e?.structuralSharing,
2102
+ from: this.id
2103
+ }), this.useParams = (e) => useParams({
2104
+ select: e?.select,
2105
+ structuralSharing: e?.structuralSharing,
2106
+ from: this.id
2107
+ }), this.useLoaderDeps = (e) => useLoaderDeps({
2108
+ ...e,
2109
+ from: this.id
2110
+ }), this.useLoaderData = (e) => useLoaderData({
2111
+ ...e,
2112
+ from: this.id
2113
+ }), this.useNavigate = () => useNavigate({ from: this.fullPath });
2114
+ }
2115
+ };
2116
+ function createRootRoute(e) {
2117
+ return new RootRoute(e);
2118
+ }
2119
+ //#endregion
2120
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/fileRoute.js
2121
+ function createFileRoute(e) {
2122
+ return new FileRoute(e, { silent: !0 }).createRoute;
2123
+ }
2124
+ var FileRoute = class {
2125
+ constructor(e, t) {
2126
+ this.path = e, this.createRoute = (e) => {
2127
+ this.silent;
2128
+ let t = createRoute(e);
2129
+ return t.isRoot = !1, t;
2130
+ }, this.silent = t?.silent;
2131
+ }
2132
+ };
2133
+ //#endregion
2134
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/not-found.js
2135
+ function CatchNotFound(e) {
2136
+ let t = useRouterState({ select: (e) => `not-found-${e.location.pathname}-${e.status}` });
2137
+ return /* @__PURE__ */ i(CatchBoundary, {
2138
+ getResetKey: () => t,
2139
+ onCatch: (t, n) => {
2140
+ var r;
2141
+ if (isNotFound(t)) (r = e.onCatch) == null || r.call(e, t, n);
2142
+ else throw t;
2143
+ },
2144
+ errorComponent: ({ error: t }) => {
2145
+ if (isNotFound(t)) return e.fallback?.call(e, t);
2146
+ throw t;
2147
+ },
2148
+ children: e.children
2149
+ });
2150
+ }
2151
+ function DefaultGlobalNotFound() {
2152
+ return /* @__PURE__ */ i("p", { children: "Not Found" });
2153
+ }
2154
+ //#endregion
2155
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/SafeFragment.js
2156
+ function SafeFragment(e) {
2157
+ return /* @__PURE__ */ i(r, { children: e.children });
2158
+ }
2159
+ //#endregion
2160
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/renderRouteNotFound.js
2161
+ function renderRouteNotFound(e, t, n) {
2162
+ return t.options.notFoundComponent ? /* @__PURE__ */ i(t.options.notFoundComponent, { data: n }) : e.options.defaultNotFoundComponent ? /* @__PURE__ */ i(e.options.defaultNotFoundComponent, { data: n }) : /* @__PURE__ */ i(DefaultGlobalNotFound, {});
2163
+ }
2164
+ (/* @__PURE__ */ e(((e, t) => {
2165
+ var n = {}, r = n.hasOwnProperty, forOwn = (e, t) => {
2166
+ for (let n in e) r.call(e, n) && t(n, e[n]);
2167
+ }, extend = (e, t) => (t && forOwn(t, (t, n) => {
2168
+ e[t] = n;
2169
+ }), e), forEach = (e, t) => {
2170
+ let n = e.length, r = -1;
2171
+ for (; ++r < n;) t(e[r]);
2172
+ }, fourHexEscape = (e) => "\\u" + ("0000" + e).slice(-4), hexadecimal = (e, t) => {
2173
+ let n = e.toString(16);
2174
+ return t ? n : n.toUpperCase();
2175
+ }, i = n.toString, a = Array.isArray, isBuffer = (e) => typeof Buffer == "function" && Buffer.isBuffer(e), isObject = (e) => i.call(e) == "[object Object]", isString = (e) => typeof e == "string" || i.call(e) == "[object String]", isNumber = (e) => typeof e == "number" || i.call(e) == "[object Number]", isBigInt = (e) => typeof e == "bigint", isFunction = (e) => typeof e == "function", isMap = (e) => i.call(e) == "[object Map]", isSet = (e) => i.call(e) == "[object Set]", o = {
2176
+ "\\": "\\\\",
2177
+ "\b": "\\b",
2178
+ "\f": "\\f",
2179
+ "\n": "\\n",
2180
+ "\r": "\\r",
2181
+ " ": "\\t"
2182
+ }, s = /[\\\b\f\n\r\t]/, c = /[0-9]/, l = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, u = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, d = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, jsesc = (e, t) => {
2183
+ let increaseIndentation = () => {
2184
+ h = m, ++t.indentLevel, m = t.indent.repeat(t.indentLevel);
2185
+ }, n = {
2186
+ escapeEverything: !1,
2187
+ minimal: !1,
2188
+ isScriptContext: !1,
2189
+ quotes: "single",
2190
+ wrap: !1,
2191
+ es6: !1,
2192
+ json: !1,
2193
+ compact: !0,
2194
+ lowercaseHex: !1,
2195
+ numbers: "decimal",
2196
+ indent: " ",
2197
+ indentLevel: 0,
2198
+ __inline1__: !1,
2199
+ __inline2__: !1
2200
+ }, r = t && t.json;
2201
+ r && (n.quotes = "double", n.wrap = !0), t = extend(n, t), t.quotes != "single" && t.quotes != "double" && t.quotes != "backtick" && (t.quotes = "single");
2202
+ let i = t.quotes == "double" ? "\"" : t.quotes == "backtick" ? "`" : "'", f = t.compact, p = t.lowercaseHex, m = t.indent.repeat(t.indentLevel), h = "", g = t.__inline1__, _ = t.__inline2__, v = f ? "" : "\n", y, b = !0, x = t.numbers == "binary", S = t.numbers == "octal", C = t.numbers == "decimal", w = t.numbers == "hexadecimal";
2203
+ if (r && e && isFunction(e.toJSON) && (e = e.toJSON()), !isString(e)) {
2204
+ if (isMap(e)) return e.size == 0 ? "new Map()" : (f || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + jsesc(Array.from(e), t) + ")");
2205
+ if (isSet(e)) return e.size == 0 ? "new Set()" : "new Set(" + jsesc(Array.from(e), t) + ")";
2206
+ if (isBuffer(e)) return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + jsesc(Array.from(e), t) + ")";
2207
+ if (a(e)) return y = [], t.wrap = !0, g && (t.__inline1__ = !1, t.__inline2__ = !0), _ || increaseIndentation(), forEach(e, (e) => {
2208
+ b = !1, _ && (t.__inline2__ = !1), y.push((f || _ ? "" : m) + jsesc(e, t));
2209
+ }), b ? "[]" : _ ? "[" + y.join(", ") + "]" : "[" + v + y.join("," + v) + v + (f ? "" : h) + "]";
2210
+ if (isNumber(e) || isBigInt(e)) {
2211
+ if (r) return JSON.stringify(Number(e));
2212
+ let t;
2213
+ if (C) t = String(e);
2214
+ else if (w) {
2215
+ let n = e.toString(16);
2216
+ p || (n = n.toUpperCase()), t = "0x" + n;
2217
+ } else x ? t = "0b" + e.toString(2) : S && (t = "0o" + e.toString(8));
2218
+ return isBigInt(e) ? t + "n" : t;
2219
+ } else if (isBigInt(e)) return r ? JSON.stringify(Number(e)) : e + "n";
2220
+ else if (isObject(e)) return y = [], t.wrap = !0, increaseIndentation(), forOwn(e, (e, n) => {
2221
+ b = !1, y.push((f ? "" : m) + jsesc(e, t) + ":" + (f ? "" : " ") + jsesc(n, t));
2222
+ }), b ? "{}" : "{" + v + y.join("," + v) + v + (f ? "" : h) + "}";
2223
+ else return r ? JSON.stringify(e) || "null" : String(e);
2224
+ }
2225
+ let T = t.escapeEverything ? u : d;
2226
+ return y = e.replace(T, (e, n, a, u, d, f) => {
2227
+ if (n) {
2228
+ if (t.minimal) return n;
2229
+ let e = n.charCodeAt(0), r = n.charCodeAt(1);
2230
+ return t.es6 ? "\\u{" + hexadecimal((e - 55296) * 1024 + r - 56320 + 65536, p) + "}" : fourHexEscape(hexadecimal(e, p)) + fourHexEscape(hexadecimal(r, p));
2231
+ }
2232
+ if (a) return fourHexEscape(hexadecimal(a.charCodeAt(0), p));
2233
+ if (e == "\0" && !r && !c.test(f.charAt(d + 1))) return "\\0";
2234
+ if (u) return u == i || t.escapeEverything ? "\\" + u : u;
2235
+ if (s.test(e)) return o[e];
2236
+ if (t.minimal && !l.test(e)) return e;
2237
+ let m = hexadecimal(e.charCodeAt(0), p);
2238
+ return r || m.length > 2 ? fourHexEscape(m) : "\\x" + ("00" + m).slice(-2);
2239
+ }), i == "`" && (y = y.replace(/\$\{/g, "\\${")), t.isScriptContext && (y = y.replace(/<\/(script|style)/gi, "<\\/$1").replace(/<!--/g, r ? "\\u003C!--" : "\\x3C!--")), t.wrap && (y = i + y + i), y;
2240
+ };
2241
+ jsesc.version = "3.0.2", t.exports = jsesc;
2242
+ })))();
2243
+ function ScriptOnce({ children: e, log: t }) {
2244
+ return typeof document < "u" ? null : /* @__PURE__ */ i("script", {
2245
+ className: "tsr-once",
2246
+ dangerouslySetInnerHTML: { __html: [
2247
+ e,
2248
+ "",
2249
+ "if (typeof __TSR_SSR__ !== \"undefined\") __TSR_SSR__.cleanScripts()"
2250
+ ].filter(Boolean).join("\n") }
2251
+ });
2252
+ }
2253
+ //#endregion
2254
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/scroll-restoration.js
2255
+ function ScrollRestoration() {
2256
+ let e = useRouter(), t = (e.options.getScrollRestorationKey || defaultGetScrollRestorationKey)(e.latestLocation), n = t === defaultGetScrollRestorationKey(e.latestLocation) ? null : t;
2257
+ return !e.isScrollRestoring || !e.isServer ? null : /* @__PURE__ */ i(ScriptOnce, {
2258
+ children: `(${restoreScroll.toString()})(${JSON.stringify(b)},${JSON.stringify(n)}, undefined, true)`,
2259
+ log: !1
2260
+ });
2261
+ }
2262
+ //#endregion
2263
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Match.js
2264
+ var M = t.memo(function MatchImpl({ matchId: e }) {
2265
+ let n = useRouter(), o = useRouterState({ select: (t) => t.matches.find((t) => t.id === e)?.routeId });
2266
+ invariant(o, `Could not find routeId for matchId "${e}". Please file an issue!`);
2267
+ let s = n.routesById[o], c = s.options.pendingComponent ?? n.options.defaultPendingComponent, l = c ? /* @__PURE__ */ i(c, {}) : null, u = s.options.errorComponent ?? n.options.defaultErrorComponent, d = s.options.onCatch ?? n.options.defaultOnCatch, f = s.isRoot ? s.options.notFoundComponent ?? n.options.notFoundRoute?.options.component : s.options.notFoundComponent, p = (!s.isRoot || s.options.wrapInSuspense) && (s.options.wrapInSuspense ?? c ?? s.options.errorComponent?.preload) ? t.Suspense : SafeFragment, m = u ? CatchBoundary : SafeFragment, h = f ? CatchNotFound : SafeFragment, g = useRouterState({ select: (e) => e.loadedAt }), _ = useRouterState({ select: (t) => {
2268
+ let n = t.matches.findIndex((t) => t.id === e);
2269
+ return t.matches[n - 1]?.routeId;
2270
+ } });
2271
+ return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(A.Provider, {
2272
+ value: e,
2273
+ children: /* @__PURE__ */ i(p, {
2274
+ fallback: l,
2275
+ children: /* @__PURE__ */ i(m, {
2276
+ getResetKey: () => g,
2277
+ errorComponent: u || ErrorComponent,
2278
+ onCatch: (t, n) => {
2279
+ if (isNotFound(t)) throw t;
2280
+ `${e}`, d?.(t, n);
2281
+ },
2282
+ children: /* @__PURE__ */ i(h, {
2283
+ fallback: (e) => {
2284
+ if (!f || e.routeId && e.routeId !== o || !e.routeId && !s.isRoot) throw e;
2285
+ return t.createElement(f, e);
2286
+ },
2287
+ children: /* @__PURE__ */ i(N, { matchId: e })
2288
+ })
2289
+ })
2290
+ })
2291
+ }), _ === "__root__" && n.options.scrollRestoration ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(OnRendered, {}), /* @__PURE__ */ i(ScrollRestoration, {})] }) : null] });
2292
+ });
2293
+ function OnRendered() {
2294
+ let e = useRouter(), n = t.useRef(void 0);
2295
+ return /* @__PURE__ */ i("script", {
2296
+ suppressHydrationWarning: !0,
2297
+ ref: (t) => {
2298
+ t && (n.current === void 0 || n.current.href !== e.state.resolvedLocation?.href) && (e.emit({
2299
+ type: "onRendered",
2300
+ ...getLocationChangeInfo(e.state)
2301
+ }), n.current = e.state.resolvedLocation);
2302
+ }
2303
+ }, e.state.resolvedLocation?.state.key);
2304
+ }
2305
+ var N = t.memo(function MatchInnerImpl({ matchId: e }) {
2306
+ let n = useRouter(), { match: r, key: a, routeId: o } = useRouterState({
2307
+ select: (t) => {
2308
+ let r = t.matches.findIndex((t) => t.id === e), i = t.matches[r], a = i.routeId, o = (n.routesById[a].options.remountDeps ?? n.options.defaultRemountDeps)?.({
2309
+ routeId: a,
2310
+ loaderDeps: i.loaderDeps,
2311
+ params: i._strictParams,
2312
+ search: i._strictSearch
2313
+ });
2314
+ return {
2315
+ key: o ? JSON.stringify(o) : void 0,
2316
+ routeId: a,
2317
+ match: pick(i, [
2318
+ "id",
2319
+ "status",
2320
+ "error"
2321
+ ])
2322
+ };
2323
+ },
2324
+ structuralSharing: !0
2325
+ }), s = n.routesById[o], c = t.useMemo(() => {
2326
+ let e = s.options.component ?? n.options.defaultComponent;
2327
+ return e ? /* @__PURE__ */ i(e, {}, a) : /* @__PURE__ */ i(P, {});
2328
+ }, [
2329
+ a,
2330
+ s.options.component,
2331
+ n.options.defaultComponent
2332
+ ]), l = (s.options.errorComponent ?? n.options.defaultErrorComponent) || ErrorComponent;
2333
+ if (r.status === "notFound") return invariant(isNotFound(r.error), "Expected a notFound error"), renderRouteNotFound(n, s, r.error);
2334
+ if (r.status === "redirected") throw invariant(isRedirect(r.error), "Expected a redirect error"), n.getMatch(r.id)?.loadPromise;
2335
+ if (r.status === "error") {
2336
+ if (n.isServer) return /* @__PURE__ */ i(l, {
2337
+ error: r.error,
2338
+ reset: void 0,
2339
+ info: { componentStack: "" }
2340
+ });
2341
+ throw r.error;
2342
+ }
2343
+ if (r.status === "pending") {
2344
+ let e = s.options.pendingMinMs ?? n.options.defaultPendingMinMs;
2345
+ if (e && !n.getMatch(r.id)?.minPendingPromise && !n.isServer) {
2346
+ let t = createControlledPromise();
2347
+ Promise.resolve().then(() => {
2348
+ n.updateMatch(r.id, (e) => ({
2349
+ ...e,
2350
+ minPendingPromise: t
2351
+ }));
2352
+ }), setTimeout(() => {
2353
+ t.resolve(), n.updateMatch(r.id, (e) => ({
2354
+ ...e,
2355
+ minPendingPromise: void 0
2356
+ }));
2357
+ }, e);
2358
+ }
2359
+ throw n.getMatch(r.id)?.loadPromise;
2360
+ }
2361
+ return c;
2362
+ }), P = t.memo(function OutletImpl() {
2363
+ let e = useRouter(), n = t.useContext(A), r = useRouterState({ select: (e) => e.matches.find((e) => e.id === n)?.routeId }), a = e.routesById[r], o = useRouterState({ select: (e) => {
2364
+ let t = e.matches.find((e) => e.id === n);
2365
+ return invariant(t, `Could not find parent match for matchId "${n}"`), t.globalNotFound;
2366
+ } }), s = useRouterState({ select: (e) => {
2367
+ let t = e.matches;
2368
+ return t[t.findIndex((e) => e.id === n) + 1]?.id;
2369
+ } });
2370
+ if (o) return renderRouteNotFound(e, a, void 0);
2371
+ if (!s) return null;
2372
+ let c = /* @__PURE__ */ i(M, { matchId: s }), l = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null;
2373
+ return n === "__root__" ? /* @__PURE__ */ i(t.Suspense, {
2374
+ fallback: l,
2375
+ children: c
2376
+ }) : c;
2377
+ }), F = typeof window < "u" ? t.useLayoutEffect : t.useEffect;
2378
+ function usePrevious(e) {
2379
+ let n = t.useRef({
2380
+ value: e,
2381
+ prev: null
2382
+ }), r = n.current.value;
2383
+ return e !== r && (n.current = {
2384
+ value: e,
2385
+ prev: r
2386
+ }), n.current.prev;
2387
+ }
2388
+ function useIntersectionObserver(e, n, r = {}, i = {}) {
2389
+ let a = t.useRef(typeof IntersectionObserver == "function"), o = t.useRef(null);
2390
+ return t.useEffect(() => {
2391
+ if (!(!e.current || !a.current || i.disabled)) return o.current = new IntersectionObserver(([e]) => {
2392
+ n(e);
2393
+ }, r), o.current.observe(e.current), () => {
2394
+ var e;
2395
+ (e = o.current) == null || e.disconnect();
2396
+ };
2397
+ }, [
2398
+ n,
2399
+ r,
2400
+ i.disabled,
2401
+ e
2402
+ ]), o.current;
2403
+ }
2404
+ function useForwardedRef(e) {
2405
+ let n = t.useRef(null);
2406
+ return t.useImperativeHandle(e, () => n.current, []), n;
2407
+ }
2408
+ //#endregion
2409
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Transitioner.js
2410
+ function Transitioner() {
2411
+ let e = useRouter(), n = t.useRef({
2412
+ router: e,
2413
+ mounted: !1
2414
+ }), r = useRouterState({ select: ({ isLoading: e }) => e }), [i, a] = t.useState(!1), o = useRouterState({
2415
+ select: (e) => e.matches.some((e) => e.status === "pending"),
2416
+ structuralSharing: !0
2417
+ }), s = usePrevious(r), c = r || i || o, l = usePrevious(c), u = r || o, d = usePrevious(u);
2418
+ return e.isServer || (e.startTransition = (e) => {
2419
+ a(!0), t.startTransition(() => {
2420
+ e(), a(!1);
2421
+ });
2422
+ }), t.useEffect(() => {
2423
+ let t = e.history.subscribe(e.load), n = e.buildLocation({
2424
+ to: e.latestLocation.pathname,
2425
+ search: !0,
2426
+ params: !0,
2427
+ hash: !0,
2428
+ state: !0,
2429
+ _includeValidateSearch: !0
2430
+ });
2431
+ return trimPathRight(e.latestLocation.href) !== trimPathRight(n.href) && e.commitLocation({
2432
+ ...n,
2433
+ replace: !0
2434
+ }), () => {
2435
+ t();
2436
+ };
2437
+ }, [e, e.history]), F(() => {
2438
+ if (typeof window < "u" && e.clientSsr || n.current.router === e && n.current.mounted) return;
2439
+ n.current = {
2440
+ router: e,
2441
+ mounted: !0
2442
+ };
2443
+ let tryLoad = async () => {
2444
+ try {
2445
+ await e.load();
2446
+ } catch (e) {
2447
+ console.error(e);
2448
+ }
2449
+ };
2450
+ tryLoad();
2451
+ }, [e]), F(() => {
2452
+ s && !r && e.emit({
2453
+ type: "onLoad",
2454
+ ...getLocationChangeInfo(e.state)
2455
+ });
2456
+ }, [
2457
+ s,
2458
+ e,
2459
+ r
2460
+ ]), F(() => {
2461
+ d && !u && e.emit({
2462
+ type: "onBeforeRouteMount",
2463
+ ...getLocationChangeInfo(e.state)
2464
+ });
2465
+ }, [
2466
+ u,
2467
+ d,
2468
+ e
2469
+ ]), F(() => {
2470
+ l && !c && (e.emit({
2471
+ type: "onResolved",
2472
+ ...getLocationChangeInfo(e.state)
2473
+ }), e.__store.setState((e) => ({
2474
+ ...e,
2475
+ status: "idle",
2476
+ resolvedLocation: e.location
2477
+ })));
2478
+ }, [
2479
+ c,
2480
+ l,
2481
+ e
2482
+ ]), null;
2483
+ }
2484
+ //#endregion
2485
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Matches.js
2486
+ function Matches() {
2487
+ let e = useRouter(), n = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null, r = /* @__PURE__ */ a(e.isServer || typeof document < "u" && e.clientSsr ? SafeFragment : t.Suspense, {
2488
+ fallback: n,
2489
+ children: [/* @__PURE__ */ i(Transitioner, {}), /* @__PURE__ */ i(MatchesInner, {})]
2490
+ });
2491
+ return e.options.InnerWrap ? /* @__PURE__ */ i(e.options.InnerWrap, { children: r }) : r;
2492
+ }
2493
+ function MatchesInner() {
2494
+ let e = useRouterState({ select: (e) => e.matches[0]?.id }), t = useRouterState({ select: (e) => e.loadedAt });
2495
+ return /* @__PURE__ */ i(A.Provider, {
2496
+ value: e,
2497
+ children: /* @__PURE__ */ i(CatchBoundary, {
2498
+ getResetKey: () => t,
2499
+ errorComponent: ErrorComponent,
2500
+ onCatch: (e) => {
2501
+ e.message || e.toString();
2502
+ },
2503
+ children: e ? /* @__PURE__ */ i(M, { matchId: e }) : null
2504
+ })
2505
+ });
2506
+ }
2507
+ function useMatches(e) {
2508
+ return useRouterState({
2509
+ select: (t) => {
2510
+ let n = t.matches;
2511
+ return e?.select ? e.select(n) : n;
2512
+ },
2513
+ structuralSharing: e?.structuralSharing
2514
+ });
2515
+ }
2516
+ //#endregion
2517
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/link.js
2518
+ function useLinkProps(e, n) {
2519
+ let r = useRouter(), [i, a] = t.useState(!1), o = t.useRef(!1), c = useForwardedRef(n), { activeProps = () => ({ className: "active" }), inactiveProps = () => ({}), activeOptions: l, to: u, preload: d, preloadDelay: f, hashScrollIntoView: p, replace: m, startTransition: h, resetScroll: g, viewTransition: _, children: v, target: y, disabled: b, style: x, className: S, onClick: C, onFocus: w, onMouseEnter: T, onMouseLeave: E, onTouchStart: D, ignoreBlocker: k, ...A } = e, { params: j, search: M, hash: N, state: P, mask: I, reloadDocument: L, ...R } = A, z = t.useMemo(() => {
2520
+ try {
2521
+ return new URL(`${u}`), "external";
2522
+ } catch {}
2523
+ return "internal";
2524
+ }, [u]), B = useRouterState({
2525
+ select: (e) => e.location.search,
2526
+ structuralSharing: !0
2527
+ }), V = useMatches({ select: (t) => e.from ?? t[t.length - 1]?.fullPath }), H = t.useMemo(() => ({
2528
+ ...e,
2529
+ from: V
2530
+ }), [e, V]), U = t.useMemo(() => r.buildLocation(H), [
2531
+ r,
2532
+ H,
2533
+ B
2534
+ ]), W = t.useMemo(() => H.reloadDocument ? !1 : d ?? r.options.defaultPreload, [
2535
+ r.options.defaultPreload,
2536
+ d,
2537
+ H.reloadDocument
2538
+ ]), G = f ?? r.options.defaultPreloadDelay ?? 0, K = useRouterState({ select: (e) => {
2539
+ if (l?.exact) {
2540
+ if (!exactPathTest(e.location.pathname, U.pathname, r.basepath)) return !1;
2541
+ } else {
2542
+ let t = removeTrailingSlash(e.location.pathname, r.basepath).split("/");
2543
+ if (!removeTrailingSlash(U.pathname, r.basepath).split("/").every((e, n) => e === t[n])) return !1;
2544
+ }
2545
+ return (l?.includeSearch ?? !0) && !deepEqual(e.location.search, U.search, {
2546
+ partial: !l?.exact,
2547
+ ignoreUndefined: !l?.explicitUndefined
2548
+ }) ? !1 : l?.includeHash ? e.location.hash === U.hash : !0;
2549
+ } }), q = t.useCallback(() => {
2550
+ r.preloadRoute(H).catch((e) => {
2551
+ console.warn(e), console.warn(O);
2552
+ });
2553
+ }, [H, r]);
2554
+ if (useIntersectionObserver(c, t.useCallback((e) => {
2555
+ e?.isIntersecting && q();
2556
+ }, [q]), { rootMargin: "100px" }, { disabled: !!b || W !== "viewport" }), F(() => {
2557
+ o.current || !b && W === "render" && (q(), o.current = !0);
2558
+ }, [
2559
+ b,
2560
+ q,
2561
+ W
2562
+ ]), z === "external") return {
2563
+ ...R,
2564
+ ref: c,
2565
+ type: z,
2566
+ href: u,
2567
+ ...v && { children: v },
2568
+ ...y && { target: y },
2569
+ ...b && { disabled: b },
2570
+ ...x && { style: x },
2571
+ ...S && { className: S },
2572
+ ...C && { onClick: C },
2573
+ ...w && { onFocus: w },
2574
+ ...T && { onMouseEnter: T },
2575
+ ...E && { onMouseLeave: E },
2576
+ ...D && { onTouchStart: D }
2577
+ };
2578
+ let handleClick = (e) => {
2579
+ if (!b && !isCtrlEvent(e) && !e.defaultPrevented && (!y || y === "_self") && e.button === 0) {
2580
+ e.preventDefault(), s(() => {
2581
+ a(!0);
2582
+ });
2583
+ let t = r.subscribe("onResolved", () => {
2584
+ t(), a(!1);
2585
+ });
2586
+ return r.navigate({
2587
+ ...H,
2588
+ replace: m,
2589
+ resetScroll: g,
2590
+ hashScrollIntoView: p,
2591
+ startTransition: h,
2592
+ viewTransition: _,
2593
+ ignoreBlocker: k
2594
+ });
2595
+ }
2596
+ }, handleFocus = (e) => {
2597
+ b || W && q();
2598
+ }, J = handleFocus, handleEnter = (e) => {
2599
+ if (b) return;
2600
+ let t = e.target || {};
2601
+ if (W) {
2602
+ if (t.preloadTimeout) return;
2603
+ t.preloadTimeout = setTimeout(() => {
2604
+ t.preloadTimeout = null, q();
2605
+ }, G);
2606
+ }
2607
+ }, handleLeave = (e) => {
2608
+ if (b) return;
2609
+ let t = e.target || {};
2610
+ t.preloadTimeout &&= (clearTimeout(t.preloadTimeout), null);
2611
+ }, composeHandlers = (e) => (t) => {
2612
+ var n;
2613
+ (n = t.persist) == null || n.call(t), e.filter(Boolean).forEach((e) => {
2614
+ t.defaultPrevented || e(t);
2615
+ });
2616
+ }, Y = K ? functionalUpdate(activeProps, {}) ?? {} : {}, X = K ? {} : functionalUpdate(inactiveProps, {}), Z = [
2617
+ S,
2618
+ Y.className,
2619
+ X.className
2620
+ ].filter(Boolean).join(" "), Q = {
2621
+ ...x,
2622
+ ...Y.style,
2623
+ ...X.style
2624
+ };
2625
+ return {
2626
+ ...R,
2627
+ ...Y,
2628
+ ...X,
2629
+ href: b ? void 0 : U.maskedLocation ? r.history.createHref(U.maskedLocation.href) : r.history.createHref(U.href),
2630
+ ref: c,
2631
+ onClick: composeHandlers([C, handleClick]),
2632
+ onFocus: composeHandlers([w, handleFocus]),
2633
+ onMouseEnter: composeHandlers([T, handleEnter]),
2634
+ onMouseLeave: composeHandlers([E, handleLeave]),
2635
+ onTouchStart: composeHandlers([D, J]),
2636
+ disabled: !!b,
2637
+ target: y,
2638
+ ...Object.keys(Q).length && { style: Q },
2639
+ ...Z && { className: Z },
2640
+ ...b && {
2641
+ role: "link",
2642
+ "aria-disabled": !0
2643
+ },
2644
+ ...K && {
2645
+ "data-status": "active",
2646
+ "aria-current": "page"
2647
+ },
2648
+ ...i && { "data-transitioning": "transitioning" }
2649
+ };
2650
+ }
2651
+ var I = t.forwardRef((e, n) => {
2652
+ let { _asChild: r, ...i } = e, { type: a, ref: o, ...s } = useLinkProps(i, n), c = typeof i.children == "function" ? i.children({ isActive: s["data-status"] === "active" }) : i.children;
2653
+ return r === void 0 && delete s.disabled, t.createElement(r || "a", {
2654
+ ...s,
2655
+ ref: o
2656
+ }, c);
2657
+ });
2658
+ function isCtrlEvent(e) {
2659
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2660
+ }
2661
+ //#endregion
2662
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/router.js
2663
+ var createRouter = (e) => new Router(e), Router = class extends RouterCore {
2664
+ constructor(e) {
2665
+ super(e);
2666
+ }
2667
+ };
2668
+ //#endregion
2669
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/RouterProvider.js
2670
+ function RouterContextProvider({ router: e, children: t, ...n }) {
2671
+ e.update({
2672
+ ...e.options,
2673
+ ...n,
2674
+ context: {
2675
+ ...e.options.context,
2676
+ ...n.context
2677
+ }
2678
+ });
2679
+ let r = /* @__PURE__ */ i(getRouterContext().Provider, {
2680
+ value: e,
2681
+ children: t
2682
+ });
2683
+ return e.options.Wrap ? /* @__PURE__ */ i(e.options.Wrap, { children: r }) : r;
2684
+ }
2685
+ function RouterProvider({ router: e, ...t }) {
2686
+ return /* @__PURE__ */ i(RouterContextProvider, {
2687
+ router: e,
2688
+ ...t,
2689
+ children: /* @__PURE__ */ i(Matches, {})
2690
+ });
2691
+ }
2692
+ //#endregion
2693
+ export { createBrowserHistory as _, P as a, Navigate as c, useParams as d, useRouter as f, notFound as g, isNotFound as h, useMatches as i, useNavigate as l, redirect as m, createRouter as n, createFileRoute as o, stripSearchParams as p, I as r, createRootRouteWithContext as s, RouterProvider as t, useSearch as u, createHashHistory as v };