@benjavicente/angular-router-experimental 1.142.14 → 1.142.15

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.
@@ -90,7 +90,7 @@ function k(e, t, n) {
90
90
  }
91
91
  return !1;
92
92
  }
93
- function A(e) {
93
+ function ce(e) {
94
94
  let t, n, r = new Promise((e, r) => {
95
95
  t = e, n = r;
96
96
  });
@@ -100,19 +100,19 @@ function A(e) {
100
100
  r.status = "rejected", n(e);
101
101
  }, r;
102
102
  }
103
- function j(e) {
103
+ function A(e) {
104
104
  return !!(e && typeof e == "object" && typeof e.then == "function");
105
105
  }
106
- function ce(e, t) {
106
+ function le(e, t) {
107
107
  for (let n = e.length - 1; n >= 0; n--) {
108
108
  let r = e[n];
109
109
  if (t(r)) return r;
110
110
  }
111
111
  }
112
- function le(e) {
112
+ function ue(e) {
113
113
  return e.replace(/[\x00-\x1f\x7f]/g, "");
114
114
  }
115
- function ue(e) {
115
+ function de(e) {
116
116
  let t;
117
117
  try {
118
118
  t = decodeURI(e);
@@ -125,15 +125,15 @@ function ue(e) {
125
125
  }
126
126
  });
127
127
  }
128
- return le(t);
128
+ return ue(t);
129
129
  }
130
- var de = [
130
+ var fe = [
131
131
  "http:",
132
132
  "https:",
133
133
  "mailto:",
134
134
  "tel:"
135
135
  ];
136
- function fe(e, t) {
136
+ function pe(e, t) {
137
137
  if (!e) return !1;
138
138
  try {
139
139
  let n = new URL(e);
@@ -142,24 +142,24 @@ function fe(e, t) {
142
142
  return !1;
143
143
  }
144
144
  }
145
- var pe = {
145
+ var me = {
146
146
  "&": "\\u0026",
147
147
  ">": "\\u003e",
148
148
  "<": "\\u003c",
149
149
  "\u2028": "\\u2028",
150
150
  "\u2029": "\\u2029"
151
- }, me = /[&><\u2028\u2029]/g;
152
- function he(e) {
153
- return e.replace(me, (e) => pe[e]);
154
- }
151
+ }, he = /[&><\u2028\u2029]/g;
155
152
  function ge(e) {
153
+ return e.replace(he, (e) => me[e]);
154
+ }
155
+ function j(e) {
156
156
  if (!e || !/[%\\\x00-\x1f\x7f]/.test(e) && !e.startsWith("//")) return {
157
157
  path: e,
158
158
  handledProtocolRelativeURL: !1
159
159
  };
160
160
  let t = /%25|%5C/gi, n = 0, r = "", i;
161
- for (; (i = t.exec(e)) !== null;) r += ue(e.slice(n, i.index)) + i[0], n = t.lastIndex;
162
- r += ue(n ? e.slice(n) : e);
161
+ for (; (i = t.exec(e)) !== null;) r += de(e.slice(n, i.index)) + i[0], n = t.lastIndex;
162
+ r += de(n ? e.slice(n) : e);
163
163
  let a = !1;
164
164
  return r.startsWith("//") && (a = !0, r = "/" + r.replace(/^\/+/, "")), {
165
165
  path: r,
@@ -182,7 +182,7 @@ function ye() {
182
182
  }
183
183
  //#endregion
184
184
  //#region ../router-core/dist/esm/lru-cache.js
185
- function be(e) {
185
+ function M(e) {
186
186
  let t = /* @__PURE__ */ new Map(), n, r, i = (e) => {
187
187
  e.next && (e.prev ? (e.prev.next = e.next, e.next.prev = e.prev, e.next = void 0, r && (r.next = e, e.prev = r)) : (e.next.prev = void 0, n = e.next, e.next = void 0, r && (e.prev = r, r.next = e)), r = e);
188
188
  };
@@ -214,14 +214,14 @@ function be(e) {
214
214
  }
215
215
  //#endregion
216
216
  //#region ../router-core/dist/esm/new-process-route-tree.js
217
- var M = 4, xe = 5;
218
- function Se(e) {
217
+ var N = 4, be = 5;
218
+ function xe(e) {
219
219
  let t = e.indexOf("{");
220
220
  if (t === -1) return null;
221
221
  let n = e.indexOf("}", t);
222
222
  return n === -1 || t + 1 >= e.length ? null : [t, n];
223
223
  }
224
- function Ce(e, t, n = new Uint16Array(6)) {
224
+ function Se(e, t, n = new Uint16Array(6)) {
225
225
  let r = e.indexOf("/", t), i = r === -1 ? e.length : r, a = e.substring(t, i);
226
226
  if (!a || !a.includes("$")) return n[0] = 0, n[1] = t, n[2] = t, n[3] = i, n[4] = i, n[5] = i, n;
227
227
  if (a === "$") {
@@ -229,7 +229,7 @@ function Ce(e, t, n = new Uint16Array(6)) {
229
229
  return n[0] = 2, n[1] = t, n[2] = t, n[3] = r, n[4] = r, n[5] = r, n;
230
230
  }
231
231
  if (a.charCodeAt(0) === 36) return n[0] = 1, n[1] = t, n[2] = t + 1, n[3] = i, n[4] = i, n[5] = i, n;
232
- let o = Se(a);
232
+ let o = xe(a);
233
233
  if (o) {
234
234
  let [r, s] = o, c = a.charCodeAt(r + 1);
235
235
  if (c === 45) {
@@ -244,13 +244,13 @@ function Ce(e, t, n = new Uint16Array(6)) {
244
244
  }
245
245
  return n[0] = 0, n[1] = t, n[2] = t, n[3] = i, n[4] = i, n[5] = i, n;
246
246
  }
247
- function we(e, t, n, r, i, a, o) {
247
+ function Ce(e, t, n, r, i, a, o) {
248
248
  o?.(n);
249
249
  let s = r;
250
250
  {
251
251
  let r = n.fullPath ?? n.from, o = r.length, c = n.options?.caseSensitive ?? e, l = n.options?.params?.parse ?? n.options?.parseParams;
252
252
  for (; s < o;) {
253
- let e = Ce(r, s, t), o, u = s, d = e[5];
253
+ let e = Se(r, s, t), o, u = s, d = e[5];
254
254
  switch (s = d + 1, a++, e[0]) {
255
255
  case 0: {
256
256
  let t = r.substring(e[2], e[3]);
@@ -259,7 +259,7 @@ function we(e, t, n, r, i, a, o) {
259
259
  if (e) o = e;
260
260
  else {
261
261
  i.static ??= /* @__PURE__ */ new Map();
262
- let e = P(n.fullPath ?? n.from);
262
+ let e = F(n.fullPath ?? n.from);
263
263
  e.parent = i, e.depth = a, o = e, i.static.set(t, e);
264
264
  }
265
265
  } else {
@@ -267,7 +267,7 @@ function we(e, t, n, r, i, a, o) {
267
267
  if (r) o = r;
268
268
  else {
269
269
  i.staticInsensitive ??= /* @__PURE__ */ new Map();
270
- let t = P(n.fullPath ?? n.from);
270
+ let t = F(n.fullPath ?? n.from);
271
271
  t.parent = i, t.depth = a, o = t, i.staticInsensitive.set(e, t);
272
272
  }
273
273
  }
@@ -277,7 +277,7 @@ function we(e, t, n, r, i, a, o) {
277
277
  let t = r.substring(u, e[1]), s = r.substring(e[4], d), f = c && !!(t || s), p = t ? f ? t : t.toLowerCase() : void 0, m = s ? f ? s : s.toLowerCase() : void 0, h = !l && i.dynamic?.find((e) => !e.parse && e.caseSensitive === f && e.prefix === p && e.suffix === m);
278
278
  if (h) o = h;
279
279
  else {
280
- let e = Ee(1, n.fullPath ?? n.from, f, p, m);
280
+ let e = Te(1, n.fullPath ?? n.from, f, p, m);
281
281
  o = e, e.depth = a, e.parent = i, i.dynamic ??= [], i.dynamic.push(e);
282
282
  }
283
283
  break;
@@ -286,32 +286,32 @@ function we(e, t, n, r, i, a, o) {
286
286
  let t = r.substring(u, e[1]), s = r.substring(e[4], d), f = c && !!(t || s), p = t ? f ? t : t.toLowerCase() : void 0, m = s ? f ? s : s.toLowerCase() : void 0, h = !l && i.optional?.find((e) => !e.parse && e.caseSensitive === f && e.prefix === p && e.suffix === m);
287
287
  if (h) o = h;
288
288
  else {
289
- let e = Ee(3, n.fullPath ?? n.from, f, p, m);
289
+ let e = Te(3, n.fullPath ?? n.from, f, p, m);
290
290
  o = e, e.parent = i, e.depth = a, i.optional ??= [], i.optional.push(e);
291
291
  }
292
292
  break;
293
293
  }
294
294
  case 2: {
295
- let t = r.substring(u, e[1]), s = r.substring(e[4], d), l = c && !!(t || s), f = t ? l ? t : t.toLowerCase() : void 0, p = s ? l ? s : s.toLowerCase() : void 0, m = Ee(2, n.fullPath ?? n.from, l, f, p);
295
+ let t = r.substring(u, e[1]), s = r.substring(e[4], d), l = c && !!(t || s), f = t ? l ? t : t.toLowerCase() : void 0, p = s ? l ? s : s.toLowerCase() : void 0, m = Te(2, n.fullPath ?? n.from, l, f, p);
296
296
  o = m, m.parent = i, m.depth = a, i.wildcard ??= [], i.wildcard.push(m);
297
297
  }
298
298
  }
299
299
  i = o;
300
300
  }
301
301
  if (l && n.children && !n.isRoot && n.id && n.id.charCodeAt(n.id.lastIndexOf("/") + 1) === 95) {
302
- let e = P(n.fullPath ?? n.from);
303
- e.kind = xe, e.parent = i, a++, e.depth = a, i.pathless ??= [], i.pathless.push(e), i = e;
302
+ let e = F(n.fullPath ?? n.from);
303
+ e.kind = be, e.parent = i, a++, e.depth = a, i.pathless ??= [], i.pathless.push(e), i = e;
304
304
  }
305
305
  let u = (n.path || !n.children) && !n.isRoot;
306
306
  if (u && r.endsWith("/")) {
307
- let e = P(n.fullPath ?? n.from);
308
- e.kind = M, e.parent = i, a++, e.depth = a, i.index = e, i = e;
307
+ let e = F(n.fullPath ?? n.from);
308
+ e.kind = N, e.parent = i, a++, e.depth = a, i.index = e, i = e;
309
309
  }
310
310
  i.parse = l ?? null, u && !i.route && (i.route = n, i.fullPath = n.fullPath ?? n.from);
311
311
  }
312
- if (n.children) for (let r of n.children) we(e, t, r, s, i, a, o);
312
+ if (n.children) for (let r of n.children) Ce(e, t, r, s, i, a, o);
313
313
  }
314
- function Te(e, t) {
314
+ function we(e, t) {
315
315
  if (e.parse && !t.parse) return -1;
316
316
  if (!e.parse && t.parse) return 1;
317
317
  if (e.prefix && t.prefix && e.prefix !== t.prefix) {
@@ -324,24 +324,24 @@ function Te(e, t) {
324
324
  }
325
325
  return e.prefix && !t.prefix ? -1 : !e.prefix && t.prefix ? 1 : e.suffix && !t.suffix ? -1 : !e.suffix && t.suffix ? 1 : e.caseSensitive && !t.caseSensitive ? -1 : !e.caseSensitive && t.caseSensitive ? 1 : 0;
326
326
  }
327
- function N(e) {
328
- if (e.pathless) for (let t of e.pathless) N(t);
329
- if (e.static) for (let t of e.static.values()) N(t);
330
- if (e.staticInsensitive) for (let t of e.staticInsensitive.values()) N(t);
327
+ function P(e) {
328
+ if (e.pathless) for (let t of e.pathless) P(t);
329
+ if (e.static) for (let t of e.static.values()) P(t);
330
+ if (e.staticInsensitive) for (let t of e.staticInsensitive.values()) P(t);
331
331
  if (e.dynamic?.length) {
332
- e.dynamic.sort(Te);
333
- for (let t of e.dynamic) N(t);
332
+ e.dynamic.sort(we);
333
+ for (let t of e.dynamic) P(t);
334
334
  }
335
335
  if (e.optional?.length) {
336
- e.optional.sort(Te);
337
- for (let t of e.optional) N(t);
336
+ e.optional.sort(we);
337
+ for (let t of e.optional) P(t);
338
338
  }
339
339
  if (e.wildcard?.length) {
340
- e.wildcard.sort(Te);
341
- for (let t of e.wildcard) N(t);
340
+ e.wildcard.sort(we);
341
+ for (let t of e.wildcard) P(t);
342
342
  }
343
343
  }
344
- function P(e) {
344
+ function F(e) {
345
345
  return {
346
346
  kind: 0,
347
347
  depth: 0,
@@ -358,7 +358,7 @@ function P(e) {
358
358
  parse: null
359
359
  };
360
360
  }
361
- function Ee(e, t, n, r, i) {
361
+ function Te(e, t, n, r, i) {
362
362
  return {
363
363
  kind: e,
364
364
  depth: 0,
@@ -378,56 +378,56 @@ function Ee(e, t, n, r, i) {
378
378
  suffix: i
379
379
  };
380
380
  }
381
- function De(e, t) {
382
- let n = P("/"), r = new Uint16Array(6);
383
- for (let t of e) we(!1, r, t, 1, n, 0);
384
- N(n), t.masksTree = n, t.flatCache = be(1e3);
381
+ function Ee(e, t) {
382
+ let n = F("/"), r = new Uint16Array(6);
383
+ for (let t of e) Ce(!1, r, t, 1, n, 0);
384
+ P(n), t.masksTree = n, t.flatCache = M(1e3);
385
385
  }
386
- function Oe(e, t) {
386
+ function De(e, t) {
387
387
  e ||= "/";
388
388
  let n = t.flatCache.get(e);
389
389
  if (n) return n;
390
- let r = Ne(e, t.masksTree);
390
+ let r = Me(e, t.masksTree);
391
391
  return t.flatCache.set(e, r), r;
392
392
  }
393
- function ke(e, t, n, r, i) {
393
+ function Oe(e, t, n, r, i) {
394
394
  e ||= "/", r ||= "/";
395
395
  let a = t ? `case\0${e}` : e, o = i.singleCache.get(a);
396
- return o || (o = P("/"), we(t, new Uint16Array(6), { from: e }, 1, o, 0), i.singleCache.set(a, o)), Ne(r, o, n);
396
+ return o || (o = F("/"), Ce(t, new Uint16Array(6), { from: e }, 1, o, 0), i.singleCache.set(a, o)), Me(r, o, n);
397
397
  }
398
- function Ae(e, t, n = !1) {
398
+ function ke(e, t, n = !1) {
399
399
  let r = n ? e : `nofuzz\0${e}`, i = t.matchCache.get(r);
400
400
  if (i !== void 0) return i;
401
401
  e ||= "/";
402
402
  let a;
403
403
  try {
404
- a = Ne(e, t.segmentTree, n);
404
+ a = Me(e, t.segmentTree, n);
405
405
  } catch (e) {
406
406
  if (e instanceof URIError) a = null;
407
407
  else throw e;
408
408
  }
409
- return a && (a.branch = Fe(a.route)), t.matchCache.set(r, a), a;
409
+ return a && (a.branch = Pe(a.route)), t.matchCache.set(r, a), a;
410
410
  }
411
- function je(e) {
411
+ function Ae(e) {
412
412
  return e === "/" ? e : e.replace(/\/{1,}$/, "");
413
413
  }
414
- function Me(e, t = !1, n) {
415
- let r = P(e.fullPath), i = new Uint16Array(6), a = {}, o = {}, s = 0;
416
- return we(t, i, e, 1, r, 0, (e) => {
414
+ function je(e, t = !1, n) {
415
+ let r = F(e.fullPath), i = new Uint16Array(6), a = {}, o = {}, s = 0;
416
+ return Ce(t, i, e, 1, r, 0, (e) => {
417
417
  if (n?.(e, s), e.id in a) {
418
418
  if (process.env.NODE_ENV !== "production") throw Error(`Invariant failed: Duplicate routes found with id: ${String(e.id)}`);
419
419
  ye();
420
420
  }
421
421
  if (a[e.id] = e, s !== 0 && e.path) {
422
- let t = je(e.fullPath);
422
+ let t = Ae(e.fullPath);
423
423
  (!o[t] || e.fullPath.endsWith("/")) && (o[t] = e);
424
424
  }
425
425
  s++;
426
- }), N(r), {
426
+ }), P(r), {
427
427
  processedTree: {
428
428
  segmentTree: r,
429
- singleCache: be(1e3),
430
- matchCache: be(1e3),
429
+ singleCache: M(1e3),
430
+ matchCache: M(1e3),
431
431
  flatCache: null,
432
432
  masksTree: null
433
433
  },
@@ -435,21 +435,21 @@ function Me(e, t = !1, n) {
435
435
  routesByPath: o
436
436
  };
437
437
  }
438
- function Ne(e, t, n = !1) {
439
- let r = e.split("/"), i = Le(e, r, t, n);
438
+ function Me(e, t, n = !1) {
439
+ let r = e.split("/"), i = Ie(e, r, t, n);
440
440
  if (!i) return null;
441
- let [a] = Pe(e, r, i);
441
+ let [a] = Ne(e, r, i);
442
442
  return {
443
443
  route: i.node.route,
444
444
  rawParams: a
445
445
  };
446
446
  }
447
- function Pe(e, t, n) {
448
- let r = Ie(n.node), i = null, a = Object.create(null), o = n.extract?.part ?? 0, s = n.extract?.node ?? 0, c = n.extract?.path ?? 0, l = n.extract?.segment ?? 0;
447
+ function Ne(e, t, n) {
448
+ let r = Fe(n.node), i = null, a = Object.create(null), o = n.extract?.part ?? 0, s = n.extract?.node ?? 0, c = n.extract?.path ?? 0, l = n.extract?.segment ?? 0;
449
449
  for (; s < r.length; o++, s++, c++, l++) {
450
450
  let u = r[s];
451
- if (u.kind === M) break;
452
- if (u.kind === xe) {
451
+ if (u.kind === N) break;
452
+ if (u.kind === be) {
453
453
  l--, o--, c--;
454
454
  continue;
455
455
  }
@@ -485,19 +485,19 @@ function Pe(e, t, n) {
485
485
  segment: l
486
486
  }];
487
487
  }
488
- function Fe(e) {
488
+ function Pe(e) {
489
489
  let t = [e];
490
490
  for (; e.parentRoute;) e = e.parentRoute, t.push(e);
491
491
  return t.reverse(), t;
492
492
  }
493
- function Ie(e) {
493
+ function Fe(e) {
494
494
  let t = Array(e.depth + 1);
495
495
  do
496
496
  t[e.depth] = e, e = e.parent;
497
497
  while (e);
498
498
  return t;
499
499
  }
500
- function Le(e, t, n, r) {
500
+ function Ie(e, t, n, r) {
501
501
  if (e === "/" && n.index) return {
502
502
  node: n.index,
503
503
  skipped: 0
@@ -513,14 +513,14 @@ function Le(e, t, n, r) {
513
513
  }], c = null, l = null;
514
514
  for (; s.length;) {
515
515
  let n = s.pop(), { node: i, index: u, skipped: d, depth: f, statics: p, dynamics: m, optionals: h } = n, { extract: g, rawParams: _ } = n;
516
- if (i.kind === 2 && i.route && !Ve(l, n)) continue;
516
+ if (i.kind === 2 && i.route && !Be(l, n)) continue;
517
517
  if (i.parse) {
518
- if (!Be(e, t, n)) continue;
518
+ if (!ze(e, t, n)) continue;
519
519
  _ = n.rawParams, g = n.extract;
520
520
  }
521
- r && i.route && i.kind !== M && Ve(c, n) && (c = n);
521
+ r && i.route && i.kind !== N && Be(c, n) && (c = n);
522
522
  let v = u === o;
523
- if (v && (i.route && (!a || i.kind === M || i.kind === 2) && Ve(l, n) && (l = n), !i.optional && !i.wildcard && !i.index && !i.pathless)) continue;
523
+ if (v && (i.route && (!a || i.kind === N || i.kind === 2) && Be(l, n) && (l = n), !i.optional && !i.wildcard && !i.index && !i.pathless)) continue;
524
524
  let y = v ? void 0 : t[u], b;
525
525
  if (v && i.index) {
526
526
  let n = {
@@ -534,9 +534,9 @@ function Le(e, t, n, r) {
534
534
  extract: g,
535
535
  rawParams: _
536
536
  }, r = !0;
537
- if (i.index.parse && (Be(e, t, n) || (r = !1)), r) {
538
- if (!m && !h && !d && ze(p, o)) return n;
539
- Ve(l, n) && (l = n);
537
+ if (i.index.parse && (ze(e, t, n) || (r = !1)), r) {
538
+ if (!m && !h && !d && Re(p, o)) return n;
539
+ Be(l, n) && (l = n);
540
540
  }
541
541
  }
542
542
  if (i.wildcard) for (let e = i.wildcard.length - 1; e >= 0; e--) {
@@ -589,7 +589,7 @@ function Le(e, t, n, r) {
589
589
  depth: t,
590
590
  statics: p,
591
591
  dynamics: m,
592
- optionals: h + Re(o, u),
592
+ optionals: h + Le(o, u),
593
593
  extract: g,
594
594
  rawParams: _
595
595
  });
@@ -607,7 +607,7 @@ function Le(e, t, n, r) {
607
607
  skipped: d,
608
608
  depth: f + 1,
609
609
  statics: p,
610
- dynamics: m + Re(o, u),
610
+ dynamics: m + Le(o, u),
611
611
  optionals: h,
612
612
  extract: g,
613
613
  rawParams: _
@@ -620,7 +620,7 @@ function Le(e, t, n, r) {
620
620
  index: u + 1,
621
621
  skipped: d,
622
622
  depth: f + 1,
623
- statics: p + Re(o, u),
623
+ statics: p + Le(o, u),
624
624
  dynamics: m,
625
625
  optionals: h,
626
626
  extract: g,
@@ -634,7 +634,7 @@ function Le(e, t, n, r) {
634
634
  index: u + 1,
635
635
  skipped: d,
636
636
  depth: f + 1,
637
- statics: p + Re(o, u),
637
+ statics: p + Le(o, u),
638
638
  dynamics: m,
639
639
  optionals: h,
640
640
  extract: g,
@@ -668,16 +668,16 @@ function Le(e, t, n, r) {
668
668
  }
669
669
  return null;
670
670
  }
671
- function Re(e, t) {
671
+ function Le(e, t) {
672
672
  return 2 ** (e - t - 1);
673
673
  }
674
- function ze(e, t) {
674
+ function Re(e, t) {
675
675
  return e === 2 ** (t - 1) - 1;
676
676
  }
677
- function Be(e, t, n) {
677
+ function ze(e, t, n) {
678
678
  let r, i;
679
679
  try {
680
- [r, i] = Pe(e, t, n);
680
+ [r, i] = Ne(e, t, n);
681
681
  } catch {
682
682
  return null;
683
683
  }
@@ -687,34 +687,34 @@ function Be(e, t, n) {
687
687
  } catch {}
688
688
  return !0;
689
689
  }
690
- function Ve(e, t) {
691
- return e ? t.statics > e.statics || t.statics === e.statics && (t.dynamics > e.dynamics || t.dynamics === e.dynamics && (t.optionals > e.optionals || t.optionals === e.optionals && ((t.node.kind === M) > (e.node.kind === M) || t.node.kind === M == (e.node.kind === M) && t.depth > e.depth))) : !0;
690
+ function Be(e, t) {
691
+ return e ? t.statics > e.statics || t.statics === e.statics && (t.dynamics > e.dynamics || t.dynamics === e.dynamics && (t.optionals > e.optionals || t.optionals === e.optionals && ((t.node.kind === N) > (e.node.kind === N) || t.node.kind === N == (e.node.kind === N) && t.depth > e.depth))) : !0;
692
692
  }
693
693
  //#endregion
694
694
  //#region ../router-core/dist/esm/path.js
695
- function He(e) {
696
- return Ue(e.filter((e) => e !== void 0).join("/"));
695
+ function Ve(e) {
696
+ return He(e.filter((e) => e !== void 0).join("/"));
697
697
  }
698
- function Ue(e) {
698
+ function He(e) {
699
699
  return e.replace(/\/{2,}/g, "/");
700
700
  }
701
- function We(e) {
701
+ function Ue(e) {
702
702
  return e === "/" ? e : e.replace(/^\/{1,}/, "");
703
703
  }
704
- function F(e) {
704
+ function I(e) {
705
705
  let t = e.length;
706
706
  return t > 1 && e[t - 1] === "/" ? e.replace(/\/{1,}$/, "") : e;
707
707
  }
708
- function Ge(e) {
709
- return F(We(e));
708
+ function We(e) {
709
+ return I(Ue(e));
710
710
  }
711
- function Ke(e, t) {
711
+ function Ge(e, t) {
712
712
  return e?.endsWith("/") && e !== "/" && e !== `${t}/` ? e.slice(0, -1) : e;
713
713
  }
714
- function qe(e, t, n) {
715
- return Ke(e, n) === Ke(t, n);
714
+ function Ke(e, t, n) {
715
+ return Ge(e, n) === Ge(t, n);
716
716
  }
717
- function Je({ base: e, to: t, trailingSlash: n = "never", cache: r }) {
717
+ function qe({ base: e, to: t, trailingSlash: n = "never", cache: r }) {
718
718
  let i = t.startsWith("/"), a = !i && t === ".", o;
719
719
  if (r) {
720
720
  o = i ? t : a ? e : e + "\0" + t;
@@ -733,18 +733,18 @@ function Je({ base: e, to: t, trailingSlash: n = "never", cache: r }) {
733
733
  }
734
734
  }
735
735
  s.length > 1 && (w(s) === "" ? n === "never" && s.pop() : n === "always" && s.push(""));
736
- let c = Ue(s.join("/")) || "/";
736
+ let c = He(s.join("/")) || "/";
737
737
  return o && r && r.set(o, c), c;
738
738
  }
739
- function Ye(e) {
739
+ function Je(e) {
740
740
  let t = new Map(e.map((e) => [encodeURIComponent(e), e])), n = Array.from(t.keys()).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), r = new RegExp(n, "g");
741
741
  return (e) => e.replace(r, (e) => t.get(e) ?? e);
742
742
  }
743
- function Xe(e, t, n) {
743
+ function Ye(e, t, n) {
744
744
  let r = t[e];
745
- return typeof r == "string" ? e === "_splat" ? /^[a-zA-Z0-9\-._~!/]*$/.test(r) ? r : r.split("/").map((e) => Qe(e, n)).join("/") : Qe(r, n) : r;
745
+ return typeof r == "string" ? e === "_splat" ? /^[a-zA-Z0-9\-._~!/]*$/.test(r) ? r : r.split("/").map((e) => Ze(e, n)).join("/") : Ze(r, n) : r;
746
746
  }
747
- function Ze({ path: e, params: t, decoder: n, ...r }) {
747
+ function Xe({ path: e, params: t, decoder: n, ...r }) {
748
748
  let i = !1, a = Object.create(null);
749
749
  if (!e || e === "/") return {
750
750
  interpolatedPath: "/",
@@ -759,7 +759,7 @@ function Ze({ path: e, params: t, decoder: n, ...r }) {
759
759
  let o = e.length, s = 0, c, l = "";
760
760
  for (; s < o;) {
761
761
  let r = s;
762
- c = Ce(e, r, c);
762
+ c = Se(e, r, c);
763
763
  let o = c[5];
764
764
  if (s = o + 1, r === o) continue;
765
765
  let u = c[0];
@@ -775,14 +775,14 @@ function Ze({ path: e, params: t, decoder: n, ...r }) {
775
775
  i = !0, (u || d) && (l += "/" + u + d);
776
776
  continue;
777
777
  }
778
- let f = Xe("_splat", t, n);
778
+ let f = Ye("_splat", t, n);
779
779
  l += "/" + u + f + d;
780
780
  continue;
781
781
  }
782
782
  if (u === 1) {
783
783
  let s = e.substring(c[2], c[3]);
784
784
  !i && !(s in t) && (i = !0), a[s] = t[s];
785
- let u = e.substring(r, c[1]), d = e.substring(c[4], o), f = Xe(s, t, n) ?? "undefined";
785
+ let u = e.substring(r, c[1]), d = e.substring(c[4], o), f = Ye(s, t, n) ?? "undefined";
786
786
  l += "/" + u + f + d;
787
787
  continue;
788
788
  }
@@ -790,7 +790,7 @@ function Ze({ path: e, params: t, decoder: n, ...r }) {
790
790
  let i = e.substring(c[2], c[3]), s = t[i];
791
791
  if (s == null) continue;
792
792
  a[i] = s;
793
- let u = e.substring(r, c[1]), d = e.substring(c[4], o), f = Xe(i, t, n) ?? "";
793
+ let u = e.substring(r, c[1]), d = e.substring(c[4], o), f = Ye(i, t, n) ?? "";
794
794
  l += "/" + u + f + d;
795
795
  continue;
796
796
  }
@@ -801,31 +801,31 @@ function Ze({ path: e, params: t, decoder: n, ...r }) {
801
801
  isMissingParams: i
802
802
  };
803
803
  }
804
- function Qe(e, t) {
804
+ function Ze(e, t) {
805
805
  let n = encodeURIComponent(e);
806
806
  return t?.(n) ?? n;
807
807
  }
808
808
  //#endregion
809
809
  //#region ../router-core/dist/esm/not-found.js
810
- function $e(e = {}) {
810
+ function Qe(e = {}) {
811
811
  if (e.isNotFound = !0, e.throw) throw e;
812
812
  return e;
813
813
  }
814
- function I(e) {
814
+ function L(e) {
815
815
  return e?.isNotFound === !0;
816
816
  }
817
817
  //#endregion
818
818
  //#region ../router-core/dist/esm/scroll-restoration.js
819
- function et() {
819
+ function $e() {
820
820
  try {
821
821
  return typeof window < "u" && typeof window.sessionStorage == "object" ? window.sessionStorage : void 0;
822
822
  } catch {
823
823
  return;
824
824
  }
825
825
  }
826
- var tt = "tsr-scroll-restoration-v1_3";
827
- function nt() {
828
- let e = et();
826
+ var et = "tsr-scroll-restoration-v1_3";
827
+ function tt() {
828
+ let e = $e();
829
829
  if (!e) return null;
830
830
  let t = {};
831
831
  try {
@@ -841,29 +841,29 @@ function nt() {
841
841
  },
842
842
  persist: () => {
843
843
  try {
844
- e.setItem(tt, JSON.stringify(t));
844
+ e.setItem(et, JSON.stringify(t));
845
845
  } catch {
846
846
  process.env.NODE_ENV !== "production" && console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.");
847
847
  }
848
848
  }
849
849
  };
850
850
  }
851
- var rt = nt(), it = (e) => e.state.__TSR_key || e.href;
852
- function at(e) {
851
+ var nt = tt(), rt = (e) => e.state.__TSR_key || e.href;
852
+ function it(e) {
853
853
  let t = [], n;
854
854
  for (; n = e.parentNode;) t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children, e) + 1})`), e = n;
855
855
  return `${t.reverse().join(" > ")}`.toLowerCase();
856
856
  }
857
- var ot = !1, st = "window", ct = "data-scroll-restoration-id";
858
- function lt(e, t) {
859
- if (!rt) return;
860
- let n = rt;
857
+ var at = !1, R = "window", ot = "data-scroll-restoration-id";
858
+ function st(e, t) {
859
+ if (!nt) return;
860
+ let n = nt;
861
861
  if ((t ?? e.options.scrollRestoration ?? !1) && (e.isScrollRestoring = !0), e.isScrollRestorationSetup || !n) return;
862
- e.isScrollRestorationSetup = !0, ot = !1;
863
- let r = e.options.getScrollRestorationKey || it, i = /* @__PURE__ */ new Map();
862
+ e.isScrollRestorationSetup = !0, at = !1;
863
+ let r = e.options.getScrollRestorationKey || rt, i = /* @__PURE__ */ new Map();
864
864
  window.history.scrollRestoration = "manual";
865
865
  let a = (t) => {
866
- if (!(ot || !e.isScrollRestoring)) if (t.target === document || t.target === window) i.set(st, {
866
+ if (!(at || !e.isScrollRestoring)) if (t.target === document || t.target === window) i.set(R, {
867
867
  scrollX: window.scrollX || 0,
868
868
  scrollY: window.scrollY || 0
869
869
  });
@@ -879,10 +879,10 @@ function lt(e, t) {
879
879
  let r = n.state[t] ||= {};
880
880
  for (let [e, t] of i) {
881
881
  let n;
882
- if (e === st) n = st;
882
+ if (e === R) n = R;
883
883
  else if (e.isConnected) {
884
- let t = e.getAttribute(ct);
885
- n = t ? `[${ct}="${t}"]` : at(e);
884
+ let t = e.getAttribute(ot);
885
+ n = t ? `[${ot}="${t}"]` : it(e);
886
886
  }
887
887
  n && (r[n] = t);
888
888
  }
@@ -898,7 +898,7 @@ function lt(e, t) {
898
898
  return;
899
899
  }
900
900
  if (!(typeof e.options.scrollRestoration == "function" && !e.options.scrollRestoration({ location: e.latestLocation }))) {
901
- ot = !0;
901
+ at = !0;
902
902
  try {
903
903
  let t = e.isScrollRestoring ? n.state[a] : void 0, r = !1;
904
904
  if (t) for (let e in t) {
@@ -906,7 +906,7 @@ function lt(e, t) {
906
906
  if (!O(n)) continue;
907
907
  let { scrollX: i, scrollY: a } = n;
908
908
  if (!(!Number.isFinite(i) || !Number.isFinite(a))) {
909
- if (e === st) window.scrollTo({
909
+ if (e === R) window.scrollTo({
910
910
  top: a,
911
911
  left: i,
912
912
  behavior: o
@@ -937,14 +937,14 @@ function lt(e, t) {
937
937
  behavior: o
938
938
  };
939
939
  if (window.scrollTo(e), s) for (let t of s) {
940
- if (t === st) continue;
940
+ if (t === R) continue;
941
941
  let n = typeof t == "function" ? t() : document.querySelector(t);
942
942
  n && n.scrollTo(e);
943
943
  }
944
944
  }
945
945
  }
946
946
  } finally {
947
- ot = !1;
947
+ at = !1;
948
948
  }
949
949
  e.isScrollRestoring && n.set((e) => (e[a] ||= {}, e));
950
950
  }
@@ -952,7 +952,7 @@ function lt(e, t) {
952
952
  }
953
953
  //#endregion
954
954
  //#region ../router-core/dist/esm/qss.js
955
- function ut(e, t = String) {
955
+ function ct(e, t = String) {
956
956
  let n = new URLSearchParams();
957
957
  for (let r in e) {
958
958
  let i = e[r];
@@ -960,24 +960,24 @@ function ut(e, t = String) {
960
960
  }
961
961
  return n.toString();
962
962
  }
963
- function dt(e) {
963
+ function lt(e) {
964
964
  return e ? e === "false" ? !1 : e === "true" ? !0 : e * 0 == 0 && +e + "" === e ? +e : e : "";
965
965
  }
966
- function ft(e) {
966
+ function ut(e) {
967
967
  let t = new URLSearchParams(e), n = Object.create(null);
968
968
  for (let [e, r] of t.entries()) {
969
969
  let t = n[e];
970
- t == null ? n[e] = dt(r) : Array.isArray(t) ? t.push(dt(r)) : n[e] = [t, dt(r)];
970
+ t == null ? n[e] = lt(r) : Array.isArray(t) ? t.push(lt(r)) : n[e] = [t, lt(r)];
971
971
  }
972
972
  return n;
973
973
  }
974
974
  //#endregion
975
975
  //#region ../router-core/dist/esm/searchParams.js
976
- var pt = ht(JSON.parse), mt = gt(JSON.stringify, JSON.parse);
977
- function ht(e) {
976
+ var dt = pt(JSON.parse), ft = mt(JSON.stringify, JSON.parse);
977
+ function pt(e) {
978
978
  return (t) => {
979
979
  t[0] === "?" && (t = t.substring(1));
980
- let n = ft(t);
980
+ let n = ut(t);
981
981
  for (let t in n) {
982
982
  let r = n[t];
983
983
  if (typeof r == "string") try {
@@ -987,7 +987,7 @@ function ht(e) {
987
987
  return n;
988
988
  };
989
989
  }
990
- function gt(e, t) {
990
+ function mt(e, t) {
991
991
  let n = typeof t == "function";
992
992
  function r(r) {
993
993
  if (typeof r == "object" && r) try {
@@ -999,16 +999,16 @@ function gt(e, t) {
999
999
  return r;
1000
1000
  }
1001
1001
  return (e) => {
1002
- let t = ut(e, r);
1002
+ let t = ct(e, r);
1003
1003
  return t ? `?${t}` : "";
1004
1004
  };
1005
1005
  }
1006
1006
  //#endregion
1007
1007
  //#region ../router-core/dist/esm/root.js
1008
- var L = "__root__";
1008
+ var z = "__root__";
1009
1009
  //#endregion
1010
1010
  //#region ../router-core/dist/esm/redirect.js
1011
- function _t(e) {
1011
+ function ht(e) {
1012
1012
  if (e.statusCode = e.statusCode || e.code || 307, !e._builtLocation && !e.reloadDocument && typeof e.href == "string") try {
1013
1013
  new URL(e.href), e.reloadDocument = !0;
1014
1014
  } catch {}
@@ -1021,38 +1021,38 @@ function _t(e) {
1021
1021
  if (n.options = e, e.throw) throw n;
1022
1022
  return n;
1023
1023
  }
1024
- function R(e) {
1024
+ function B(e) {
1025
1025
  return e instanceof Response && !!e.options;
1026
1026
  }
1027
1027
  //#endregion
1028
1028
  //#region ../router-core/dist/esm/rewrite.js
1029
- function vt(e) {
1029
+ function gt(e) {
1030
1030
  return {
1031
1031
  input: ({ url: t }) => {
1032
- for (let n of e) t = bt(n, t);
1032
+ for (let n of e) t = vt(n, t);
1033
1033
  return t;
1034
1034
  },
1035
1035
  output: ({ url: t }) => {
1036
- for (let n = e.length - 1; n >= 0; n--) t = xt(e[n], t);
1036
+ for (let n = e.length - 1; n >= 0; n--) t = yt(e[n], t);
1037
1037
  return t;
1038
1038
  }
1039
1039
  };
1040
1040
  }
1041
- function yt(e) {
1042
- let t = Ge(e.basepath), n = `/${t}`, r = `${n}/`, i = e.caseSensitive ? n : n.toLowerCase(), a = e.caseSensitive ? r : r.toLowerCase();
1041
+ function _t(e) {
1042
+ let t = We(e.basepath), n = `/${t}`, r = `${n}/`, i = e.caseSensitive ? n : n.toLowerCase(), a = e.caseSensitive ? r : r.toLowerCase();
1043
1043
  return {
1044
1044
  input: ({ url: t }) => {
1045
1045
  let r = e.caseSensitive ? t.pathname : t.pathname.toLowerCase();
1046
1046
  return r === i ? t.pathname = "/" : r.startsWith(a) && (t.pathname = t.pathname.slice(n.length)), t;
1047
1047
  },
1048
- output: ({ url: e }) => (e.pathname = He([
1048
+ output: ({ url: e }) => (e.pathname = Ve([
1049
1049
  "/",
1050
1050
  t,
1051
1051
  e.pathname
1052
1052
  ]), e)
1053
1053
  };
1054
1054
  }
1055
- function bt(e, t) {
1055
+ function vt(e, t) {
1056
1056
  let n = e?.input?.({ url: t });
1057
1057
  if (n) {
1058
1058
  if (typeof n == "string") return new URL(n);
@@ -1060,7 +1060,7 @@ function bt(e, t) {
1060
1060
  }
1061
1061
  return t;
1062
1062
  }
1063
- function xt(e, t) {
1063
+ function yt(e, t) {
1064
1064
  let n = e?.output?.({ url: t });
1065
1065
  if (n) {
1066
1066
  if (typeof n == "string") return new URL(n);
@@ -1068,8 +1068,8 @@ function xt(e, t) {
1068
1068
  }
1069
1069
  return t;
1070
1070
  }
1071
- function St(e, t) {
1072
- let { createMutableStore: n, createReadonlyStore: r, batch: i, init: a } = t, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = n(e.status), u = n(e.loadedAt), d = n(e.isLoading), f = n(e.isTransitioning), p = n(e.location), m = n(e.resolvedLocation), h = n(e.statusCode), g = n(e.redirect), _ = n([]), v = n([]), y = n([]), b = r(() => Ct(o, _.get())), x = r(() => Ct(s, v.get())), S = r(() => Ct(c, y.get())), C = r(() => _.get()[0]), w = r(() => _.get().some((e) => o.get(e)?.get().status === "pending")), ee = r(() => ({
1071
+ function bt(e, t) {
1072
+ let { createMutableStore: n, createReadonlyStore: r, batch: i, init: a } = t, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = n(e.status), u = n(e.loadedAt), d = n(e.isLoading), f = n(e.isTransitioning), p = n(e.location), m = n(e.resolvedLocation), h = n(e.statusCode), g = n(e.redirect), _ = n([]), v = n([]), y = n([]), b = r(() => xt(o, _.get())), x = r(() => xt(s, v.get())), S = r(() => xt(c, y.get())), C = r(() => _.get()[0]), w = r(() => _.get().some((e) => o.get(e)?.get().status === "pending")), ee = r(() => ({
1073
1073
  locationHref: p.get().href,
1074
1074
  resolvedLocationHref: m.get()?.href,
1075
1075
  status: l.get()
@@ -1083,7 +1083,7 @@ function St(e, t) {
1083
1083
  resolvedLocation: m.get(),
1084
1084
  statusCode: h.get(),
1085
1085
  redirect: g.get()
1086
- })), te = be(64);
1086
+ })), te = M(64);
1087
1087
  function ne(e) {
1088
1088
  let t = te.get(e);
1089
1089
  return t || (t = r(() => {
@@ -1123,17 +1123,17 @@ function St(e, t) {
1123
1123
  };
1124
1124
  ie(e.matches), a?.(re);
1125
1125
  function ie(e) {
1126
- wt(e, o, _, n, i);
1126
+ St(e, o, _, n, i);
1127
1127
  }
1128
1128
  function E(e) {
1129
- wt(e, s, v, n, i);
1129
+ St(e, s, v, n, i);
1130
1130
  }
1131
1131
  function D(e) {
1132
- wt(e, c, y, n, i);
1132
+ St(e, c, y, n, i);
1133
1133
  }
1134
1134
  return re;
1135
1135
  }
1136
- function Ct(e, t) {
1136
+ function xt(e, t) {
1137
1137
  let n = [];
1138
1138
  for (let r of t) {
1139
1139
  let t = e.get(r);
@@ -1141,7 +1141,7 @@ function Ct(e, t) {
1141
1141
  }
1142
1142
  return n;
1143
1143
  }
1144
- function wt(e, t, n, r, i) {
1144
+ function St(e, t, n, r, i) {
1145
1145
  let a = e.map((e) => e.id), o = new Set(a);
1146
1146
  i(() => {
1147
1147
  for (let e of t.keys()) o.has(e) || t.delete(e);
@@ -1159,9 +1159,9 @@ function wt(e, t, n, r, i) {
1159
1159
  }
1160
1160
  //#endregion
1161
1161
  //#region ../router-core/dist/esm/load-matches.js
1162
- var Tt = (e) => {
1162
+ var Ct = (e) => {
1163
1163
  if (!e.rendered) return e.rendered = !0, e.onReady?.();
1164
- }, Et = (e) => e.stores.matchesId.get().some((t) => e.stores.matchStores.get(t)?.get()._forcePending), Dt = (e, t) => !!(e.preload && !e.router.stores.matchStores.has(t)), z = (e, t, n = !0) => {
1164
+ }, wt = (e) => e.stores.matchesId.get().some((t) => e.stores.matchStores.get(t)?.get()._forcePending), Tt = (e, t) => !!(e.preload && !e.router.stores.matchStores.has(t)), V = (e, t, n = !0) => {
1165
1165
  let r = { ...e.router.options.context ?? {} }, i = n ? t : t - 1;
1166
1166
  for (let t = 0; t <= i; t++) {
1167
1167
  let n = e.matches[t];
@@ -1170,7 +1170,7 @@ var Tt = (e) => {
1170
1170
  i && Object.assign(r, i.__routeContext, i.__beforeLoadContext);
1171
1171
  }
1172
1172
  return r;
1173
- }, Ot = (e, t) => {
1173
+ }, Et = (e, t) => {
1174
1174
  if (!e.matches.length) return;
1175
1175
  let n = t.routeId, r = e.matches.findIndex((t) => t.routeId === e.router.routeTree.id), i = r >= 0 ? r : 0, a = n ? e.matches.findIndex((e) => e.routeId === n) : e.firstBadMatchIndex ?? e.matches.length - 1;
1176
1176
  a < 0 && (a = i);
@@ -1179,31 +1179,31 @@ var Tt = (e) => {
1179
1179
  if (e.router.looseRoutesById[n.routeId].options.notFoundComponent) return t;
1180
1180
  }
1181
1181
  return n ? a : i;
1182
- }, B = (e, t, n) => {
1183
- if (!(!R(n) && !I(n))) throw R(n) && n.redirectHandled && !n.options.reloadDocument ? n : (t && (t._nonReactive.beforeLoadPromise?.resolve(), t._nonReactive.loaderPromise?.resolve(), t._nonReactive.beforeLoadPromise = void 0, t._nonReactive.loaderPromise = void 0, t._nonReactive.error = n, e.updateMatch(t.id, (r) => ({
1182
+ }, H = (e, t, n) => {
1183
+ if (!(!B(n) && !L(n))) throw B(n) && n.redirectHandled && !n.options.reloadDocument ? n : (t && (t._nonReactive.beforeLoadPromise?.resolve(), t._nonReactive.loaderPromise?.resolve(), t._nonReactive.beforeLoadPromise = void 0, t._nonReactive.loaderPromise = void 0, t._nonReactive.error = n, e.updateMatch(t.id, (r) => ({
1184
1184
  ...r,
1185
- status: R(n) ? "redirected" : I(n) ? "notFound" : r.status === "pending" ? "success" : r.status,
1186
- context: z(e, t.index),
1185
+ status: B(n) ? "redirected" : L(n) ? "notFound" : r.status === "pending" ? "success" : r.status,
1186
+ context: V(e, t.index),
1187
1187
  isFetching: !1,
1188
1188
  error: n
1189
- })), I(n) && !n.routeId && (n.routeId = t.routeId), t._nonReactive.loadPromise?.resolve()), R(n) && (e.rendered = !0, n.options._fromLocation = e.location, n.redirectHandled = !0, n = e.router.resolveRedirect(n)), n);
1190
- }, kt = (e, t) => {
1189
+ })), L(n) && !n.routeId && (n.routeId = t.routeId), t._nonReactive.loadPromise?.resolve()), B(n) && (e.rendered = !0, n.options._fromLocation = e.location, n.redirectHandled = !0, n = e.router.resolveRedirect(n)), n);
1190
+ }, Dt = (e, t) => {
1191
1191
  let n = e.router.getMatch(t);
1192
1192
  return !!(!n || n._nonReactive.dehydrated);
1193
- }, At = (e, t, n) => {
1194
- let r = z(e, n);
1193
+ }, Ot = (e, t, n) => {
1194
+ let r = V(e, n);
1195
1195
  e.updateMatch(t, (e) => ({
1196
1196
  ...e,
1197
1197
  context: r
1198
1198
  }));
1199
- }, V = (e, t, n, r) => {
1199
+ }, U = (e, t, n, r) => {
1200
1200
  let { id: i, routeId: a } = e.matches[t], o = e.router.looseRoutesById[a];
1201
1201
  if (n instanceof Promise) throw n;
1202
- n.routerCode = r, e.firstBadMatchIndex ??= t, B(e, e.router.getMatch(i), n);
1202
+ n.routerCode = r, e.firstBadMatchIndex ??= t, H(e, e.router.getMatch(i), n);
1203
1203
  try {
1204
1204
  o.options.onError?.(n);
1205
1205
  } catch (t) {
1206
- n = t, B(e, e.router.getMatch(i), n);
1206
+ n = t, H(e, e.router.getMatch(i), n);
1207
1207
  }
1208
1208
  e.updateMatch(i, (e) => (e._nonReactive.beforeLoadPromise?.resolve(), e._nonReactive.beforeLoadPromise = void 0, e._nonReactive.loadPromise?.resolve(), {
1209
1209
  ...e,
@@ -1212,32 +1212,32 @@ var Tt = (e) => {
1212
1212
  isFetching: !1,
1213
1213
  updatedAt: Date.now(),
1214
1214
  abortController: new AbortController()
1215
- })), !e.preload && !R(n) && !I(n) && (e.serialError ??= n);
1216
- }, jt = (e, t, n, r) => {
1215
+ })), !e.preload && !B(n) && !L(n) && (e.serialError ??= n);
1216
+ }, kt = (e, t, n, r) => {
1217
1217
  if (r._nonReactive.pendingTimeout !== void 0) return;
1218
1218
  let i = n.options.pendingMs ?? e.router.options.defaultPendingMs;
1219
- if (e.onReady && !Dt(e, t) && (n.options.loader || n.options.beforeLoad || Vt(n)) && typeof i == "number" && i !== Infinity && (n.options.pendingComponent ?? e.router.options?.defaultPendingComponent)) {
1219
+ if (e.onReady && !Tt(e, t) && (n.options.loader || n.options.beforeLoad || Bt(n)) && typeof i == "number" && i !== Infinity && (n.options.pendingComponent ?? e.router.options?.defaultPendingComponent)) {
1220
1220
  let t = setTimeout(() => {
1221
- Tt(e);
1221
+ Ct(e);
1222
1222
  }, i);
1223
1223
  r._nonReactive.pendingTimeout = t;
1224
1224
  }
1225
- }, Mt = (e, t, n) => {
1225
+ }, At = (e, t, n) => {
1226
1226
  let r = e.router.getMatch(t);
1227
1227
  if (!r._nonReactive.beforeLoadPromise && !r._nonReactive.loaderPromise) return;
1228
- jt(e, t, n, r);
1228
+ kt(e, t, n, r);
1229
1229
  let i = () => {
1230
1230
  let n = e.router.getMatch(t);
1231
- n.preload && (n.status === "redirected" || n.status === "notFound") && B(e, n, n.error);
1231
+ n.preload && (n.status === "redirected" || n.status === "notFound") && H(e, n, n.error);
1232
1232
  };
1233
1233
  return r._nonReactive.beforeLoadPromise ? r._nonReactive.beforeLoadPromise.then(i) : i();
1234
- }, Nt = (e, t, n, r) => {
1234
+ }, jt = (e, t, n, r) => {
1235
1235
  let i = e.router.getMatch(t), a = i._nonReactive.loadPromise;
1236
- i._nonReactive.loadPromise = A(() => {
1236
+ i._nonReactive.loadPromise = ce(() => {
1237
1237
  a?.resolve(), a = void 0;
1238
1238
  });
1239
1239
  let { paramsError: o, searchError: s } = i;
1240
- o && V(e, n, o, "PARSE_PARAMS"), s && V(e, n, s, "VALIDATE_SEARCH"), jt(e, t, r, i);
1240
+ o && U(e, n, o, "PARSE_PARAMS"), s && U(e, n, s, "VALIDATE_SEARCH"), kt(e, t, r, i);
1241
1241
  let c = new AbortController(), l = !1, u = () => {
1242
1242
  l || (l = !0, e.updateMatch(t, (e) => ({
1243
1243
  ...e,
@@ -1257,11 +1257,11 @@ var Tt = (e) => {
1257
1257
  });
1258
1258
  return;
1259
1259
  }
1260
- i._nonReactive.beforeLoadPromise = A();
1260
+ i._nonReactive.beforeLoadPromise = ce();
1261
1261
  let f = {
1262
- ...z(e, n, !1),
1262
+ ...V(e, n, !1),
1263
1263
  ...i.__routeContext
1264
- }, { search: p, params: m, cause: h } = i, g = Dt(e, t), _ = {
1264
+ }, { search: p, params: m, cause: h } = i, g = Tt(e, t), _ = {
1265
1265
  search: p,
1266
1266
  abortController: c,
1267
1267
  params: m,
@@ -1284,7 +1284,7 @@ var Tt = (e) => {
1284
1284
  });
1285
1285
  return;
1286
1286
  }
1287
- (R(r) || I(r)) && (u(), V(e, n, r, "BEFORE_LOAD")), e.router.batch(() => {
1287
+ (B(r) || L(r)) && (u(), U(e, n, r, "BEFORE_LOAD")), e.router.batch(() => {
1288
1288
  u(), e.updateMatch(t, (e) => ({
1289
1289
  ...e,
1290
1290
  __beforeLoadContext: r
@@ -1292,21 +1292,21 @@ var Tt = (e) => {
1292
1292
  });
1293
1293
  }, y;
1294
1294
  try {
1295
- if (y = r.options.beforeLoad(_), j(y)) return u(), y.catch((t) => {
1296
- V(e, n, t, "BEFORE_LOAD");
1295
+ if (y = r.options.beforeLoad(_), A(y)) return u(), y.catch((t) => {
1296
+ U(e, n, t, "BEFORE_LOAD");
1297
1297
  }).then(v);
1298
1298
  } catch (t) {
1299
- u(), V(e, n, t, "BEFORE_LOAD");
1299
+ u(), U(e, n, t, "BEFORE_LOAD");
1300
1300
  }
1301
1301
  v(y);
1302
- }, Pt = (e, t) => {
1303
- let { id: n, routeId: r } = e.matches[t], i = e.router.looseRoutesById[r], a = () => s(), o = () => Nt(e, n, t, i), s = () => {
1304
- if (kt(e, n)) return;
1305
- let t = Mt(e, n, i);
1306
- return j(t) ? t.then(o) : o();
1302
+ }, Mt = (e, t) => {
1303
+ let { id: n, routeId: r } = e.matches[t], i = e.router.looseRoutesById[r], a = () => s(), o = () => jt(e, n, t, i), s = () => {
1304
+ if (Dt(e, n)) return;
1305
+ let t = At(e, n, i);
1306
+ return A(t) ? t.then(o) : o();
1307
1307
  };
1308
1308
  return a();
1309
- }, Ft = (e, t, n) => {
1309
+ }, Nt = (e, t, n) => {
1310
1310
  let r = e.router.getMatch(t);
1311
1311
  if (!r || !n.options.head && !n.options.scripts && !n.options.headers) return;
1312
1312
  let i = {
@@ -1328,8 +1328,8 @@ var Tt = (e) => {
1328
1328
  scripts: t,
1329
1329
  styles: e?.styles
1330
1330
  }));
1331
- }, It = (e, t, n, r, i) => {
1332
- let a = t[r - 1], { params: o, loaderDeps: s, abortController: c, cause: l } = e.router.getMatch(n), u = z(e, r), d = Dt(e, n);
1331
+ }, Pt = (e, t, n, r, i) => {
1332
+ let a = t[r - 1], { params: o, loaderDeps: s, abortController: c, cause: l } = e.router.getMatch(n), u = V(e, r), d = Tt(e, n);
1333
1333
  return {
1334
1334
  params: o,
1335
1335
  deps: s,
@@ -1346,18 +1346,18 @@ var Tt = (e) => {
1346
1346
  route: i,
1347
1347
  ...e.router.options.additionalContext
1348
1348
  };
1349
- }, Lt = async (e, t, n, r, i) => {
1349
+ }, Ft = async (e, t, n, r, i) => {
1350
1350
  try {
1351
1351
  let a = e.router.getMatch(n);
1352
1352
  try {
1353
- H(i);
1354
- let o = i.options.loader, s = typeof o == "function" ? o : o?.handler, c = s?.(It(e, t, n, r, i)), l = !!s && j(c);
1353
+ zt(i);
1354
+ let o = i.options.loader, s = typeof o == "function" ? o : o?.handler, c = s?.(Pt(e, t, n, r, i)), l = !!s && A(c);
1355
1355
  if ((l || i._lazyPromise || i._componentsPromise || i.options.head || i.options.scripts || i.options.headers || a._nonReactive.minPendingPromise) && e.updateMatch(n, (e) => ({
1356
1356
  ...e,
1357
1357
  isFetching: "loader"
1358
1358
  })), s) {
1359
1359
  let t = l ? await c : c;
1360
- B(e, e.router.getMatch(n), t), t !== void 0 && e.updateMatch(n, (e) => ({
1360
+ H(e, e.router.getMatch(n), t), t !== void 0 && e.updateMatch(n, (e) => ({
1361
1361
  ...e,
1362
1362
  loaderData: t
1363
1363
  }));
@@ -1367,7 +1367,7 @@ var Tt = (e) => {
1367
1367
  u && await u, i._componentsPromise && await i._componentsPromise, e.updateMatch(n, (t) => ({
1368
1368
  ...t,
1369
1369
  error: void 0,
1370
- context: z(e, r),
1370
+ context: V(e, r),
1371
1371
  status: "success",
1372
1372
  isFetching: !1,
1373
1373
  updatedAt: Date.now()
@@ -1383,56 +1383,56 @@ var Tt = (e) => {
1383
1383
  ...t,
1384
1384
  status: t.status === "pending" ? "success" : t.status,
1385
1385
  isFetching: !1,
1386
- context: z(e, r)
1386
+ context: V(e, r)
1387
1387
  }));
1388
1388
  return;
1389
1389
  }
1390
1390
  let s = a._nonReactive.minPendingPromise;
1391
- s && await s, I(t) && await i.options.notFoundComponent?.preload?.(), B(e, e.router.getMatch(n), t);
1391
+ s && await s, L(t) && await i.options.notFoundComponent?.preload?.(), H(e, e.router.getMatch(n), t);
1392
1392
  try {
1393
1393
  i.options.onError?.(t);
1394
1394
  } catch (t) {
1395
- o = t, B(e, e.router.getMatch(n), t);
1395
+ o = t, H(e, e.router.getMatch(n), t);
1396
1396
  }
1397
- !R(o) && !I(o) && await H(i, ["errorComponent"]), e.updateMatch(n, (t) => ({
1397
+ !B(o) && !L(o) && await zt(i, ["errorComponent"]), e.updateMatch(n, (t) => ({
1398
1398
  ...t,
1399
1399
  error: o,
1400
- context: z(e, r),
1400
+ context: V(e, r),
1401
1401
  status: "error",
1402
1402
  isFetching: !1
1403
1403
  }));
1404
1404
  }
1405
1405
  } catch (t) {
1406
1406
  let r = e.router.getMatch(n);
1407
- r && (r._nonReactive.loaderPromise = void 0), B(e, r, t);
1407
+ r && (r._nonReactive.loaderPromise = void 0), H(e, r, t);
1408
1408
  }
1409
- }, Rt = async (e, t, n) => {
1409
+ }, It = async (e, t, n) => {
1410
1410
  async function r(r, a, c, l, d) {
1411
- let f = Date.now() - a.updatedAt, p = r ? d.options.preloadStaleTime ?? e.router.options.defaultPreloadStaleTime ?? 3e4 : d.options.staleTime ?? e.router.options.defaultStaleTime ?? 0, m = d.options.shouldReload, h = typeof m == "function" ? m(It(e, t, i, n, d)) : m, { status: g, invalid: _ } = l, v = f >= p && (!!e.forceStaleReload || l.cause === "enter" || c !== void 0 && c !== l.id);
1411
+ let f = Date.now() - a.updatedAt, p = r ? d.options.preloadStaleTime ?? e.router.options.defaultPreloadStaleTime ?? 3e4 : d.options.staleTime ?? e.router.options.defaultStaleTime ?? 0, m = d.options.shouldReload, h = typeof m == "function" ? m(Pt(e, t, i, n, d)) : m, { status: g, invalid: _ } = l, v = f >= p && (!!e.forceStaleReload || l.cause === "enter" || c !== void 0 && c !== l.id);
1412
1412
  o = g === "success" && (_ || (h ?? v)), r && d.options.preload === !1 || (o && !e.sync && u ? (s = !0, (async () => {
1413
1413
  try {
1414
- await Lt(e, t, i, n, d);
1414
+ await Ft(e, t, i, n, d);
1415
1415
  let r = e.router.getMatch(i);
1416
1416
  r._nonReactive.loaderPromise?.resolve(), r._nonReactive.loadPromise?.resolve(), r._nonReactive.loaderPromise = void 0, r._nonReactive.loadPromise = void 0;
1417
1417
  } catch (t) {
1418
- R(t) && await e.router.navigate(t.options);
1418
+ B(t) && await e.router.navigate(t.options);
1419
1419
  }
1420
- })()) : g !== "success" || o ? await Lt(e, t, i, n, d) : At(e, i, n));
1420
+ })()) : g !== "success" || o ? await Ft(e, t, i, n, d) : Ot(e, i, n));
1421
1421
  }
1422
1422
  let { id: i, routeId: a } = e.matches[n], o = !1, s = !1, c = e.router.looseRoutesById[a], l = c.options.loader, u = ((typeof l == "function" ? void 0 : l?.staleReloadMode) ?? e.router.options.defaultStaleReloadMode) !== "blocking";
1423
- if (kt(e, i)) {
1423
+ if (Dt(e, i)) {
1424
1424
  if (!e.router.getMatch(i)) return e.matches[n];
1425
- At(e, i, n);
1425
+ Ot(e, i, n);
1426
1426
  } else {
1427
- let t = e.router.getMatch(i), o = e.router.stores.matchesId.get()[n], s = (o && e.router.stores.matchStores.get(o) || null)?.routeId === a ? o : e.router.stores.matches.get().find((e) => e.routeId === a)?.id, l = Dt(e, i);
1427
+ let t = e.router.getMatch(i), o = e.router.stores.matchesId.get()[n], s = (o && e.router.stores.matchStores.get(o) || null)?.routeId === a ? o : e.router.stores.matches.get().find((e) => e.routeId === a)?.id, l = Tt(e, i);
1428
1428
  if (t._nonReactive.loaderPromise) {
1429
1429
  if (t.status === "success" && !e.sync && !t.preload && u) return t;
1430
1430
  await t._nonReactive.loaderPromise;
1431
1431
  let n = e.router.getMatch(i), a = n._nonReactive.error || n.error;
1432
- a && B(e, n, a), n.status === "pending" && await r(l, t, s, n, c);
1432
+ a && H(e, n, a), n.status === "pending" && await r(l, t, s, n, c);
1433
1433
  } else {
1434
1434
  let n = l && !e.router.stores.matchStores.has(i), a = e.router.getMatch(i);
1435
- a._nonReactive.loaderPromise = A(), n !== a.preload && e.updateMatch(i, (e) => ({
1435
+ a._nonReactive.loaderPromise = ce(), n !== a.preload && e.updateMatch(i, (e) => ({
1436
1436
  ...e,
1437
1437
  preload: n
1438
1438
  })), await r(l, t, s, a, c);
@@ -1447,24 +1447,24 @@ var Tt = (e) => {
1447
1447
  invalid: !1
1448
1448
  })), e.router.getMatch(i)) : d;
1449
1449
  };
1450
- async function zt(e) {
1450
+ async function Lt(e) {
1451
1451
  let t = e, n = [];
1452
- Et(t.router) && Tt(t);
1452
+ wt(t.router) && Ct(t);
1453
1453
  let r;
1454
1454
  for (let e = 0; e < t.matches.length; e++) {
1455
1455
  try {
1456
- let n = Pt(t, e);
1457
- j(n) && await n;
1456
+ let n = Mt(t, e);
1457
+ A(n) && await n;
1458
1458
  } catch (e) {
1459
- if (R(e)) throw e;
1460
- if (I(e)) r = e;
1459
+ if (B(e)) throw e;
1460
+ if (L(e)) r = e;
1461
1461
  else if (!t.preload) throw e;
1462
1462
  break;
1463
1463
  }
1464
1464
  if (t.serialError || t.firstBadMatchIndex != null) break;
1465
1465
  }
1466
- let i = t.firstBadMatchIndex ?? t.matches.length, a = r && !t.preload ? Ot(t, r) : void 0, o = r && t.preload ? 0 : a === void 0 ? i : Math.min(a + 1, i), s, c;
1467
- for (let e = 0; e < o; e++) n.push(Rt(t, n, e));
1466
+ let i = t.firstBadMatchIndex ?? t.matches.length, a = r && !t.preload ? Et(t, r) : void 0, o = r && t.preload ? 0 : a === void 0 ? i : Math.min(a + 1, i), s, c;
1467
+ for (let e = 0; e < o; e++) n.push(It(t, n, e));
1468
1468
  try {
1469
1469
  await Promise.all(n);
1470
1470
  } catch {
@@ -1472,15 +1472,15 @@ async function zt(e) {
1472
1472
  for (let t of e) {
1473
1473
  if (t.status !== "rejected") continue;
1474
1474
  let e = t.reason;
1475
- if (R(e)) throw e;
1476
- I(e) ? s ??= e : c ??= e;
1475
+ if (B(e)) throw e;
1476
+ L(e) ? s ??= e : c ??= e;
1477
1477
  }
1478
1478
  if (c !== void 0) throw c;
1479
1479
  }
1480
1480
  let l = s ?? (r && !t.preload ? r : void 0), u = t.firstBadMatchIndex === void 0 ? t.matches.length - 1 : t.firstBadMatchIndex;
1481
1481
  if (!l && r && t.preload) return t.matches;
1482
1482
  if (l) {
1483
- let e = Ot(t, l);
1483
+ let e = Et(t, l);
1484
1484
  if (e === void 0) {
1485
1485
  if (process.env.NODE_ENV !== "production") throw Error("Invariant failed: Could not find match for notFound boundary");
1486
1486
  ye();
@@ -1499,7 +1499,7 @@ async function zt(e) {
1499
1499
  error: l
1500
1500
  },
1501
1501
  isFetching: !1
1502
- })), u = e, await H(r, ["notFoundComponent"]);
1502
+ })), u = e, await zt(r, ["notFoundComponent"]);
1503
1503
  } else if (!t.preload) {
1504
1504
  let e = t.matches[0];
1505
1505
  e.globalNotFound || t.router.getMatch(e.id)?.globalNotFound && t.updateMatch(e.id, (e) => ({
@@ -1510,12 +1510,12 @@ async function zt(e) {
1510
1510
  }
1511
1511
  if (t.serialError && t.firstBadMatchIndex !== void 0) {
1512
1512
  let e = t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];
1513
- await H(e, ["errorComponent"]);
1513
+ await zt(e, ["errorComponent"]);
1514
1514
  }
1515
1515
  for (let e = 0; e <= u; e++) {
1516
1516
  let { id: n, routeId: r } = t.matches[e], i = t.router.looseRoutesById[r];
1517
1517
  try {
1518
- let e = Ft(t, n, i);
1518
+ let e = Nt(t, n, i);
1519
1519
  if (e) {
1520
1520
  let r = await e;
1521
1521
  t.updateMatch(n, (e) => ({
@@ -1527,42 +1527,42 @@ async function zt(e) {
1527
1527
  console.error(`Error executing head for route ${r}:`, e);
1528
1528
  }
1529
1529
  }
1530
- let d = Tt(t);
1531
- if (j(d) && await d, l) throw l;
1530
+ let d = Ct(t);
1531
+ if (A(d) && await d, l) throw l;
1532
1532
  if (t.serialError && !t.preload && !t.onReady) throw t.serialError;
1533
1533
  return t.matches;
1534
1534
  }
1535
- function Bt(e, t) {
1535
+ function Rt(e, t) {
1536
1536
  let n = t.map((t) => e.options[t]?.preload?.()).filter(Boolean);
1537
1537
  if (n.length !== 0) return Promise.all(n);
1538
1538
  }
1539
- function H(e, t = Ht) {
1539
+ function zt(e, t = Vt) {
1540
1540
  !e._lazyLoaded && e._lazyPromise === void 0 && (e.lazyFn ? e._lazyPromise = e.lazyFn().then((t) => {
1541
1541
  let { id: n, ...r } = t.options;
1542
1542
  Object.assign(e.options, r), e._lazyLoaded = !0, e._lazyPromise = void 0;
1543
1543
  }) : e._lazyLoaded = !0);
1544
- let n = () => e._componentsLoaded ? void 0 : t === Ht ? (() => {
1544
+ let n = () => e._componentsLoaded ? void 0 : t === Vt ? (() => {
1545
1545
  if (e._componentsPromise === void 0) {
1546
- let t = Bt(e, Ht);
1546
+ let t = Rt(e, Vt);
1547
1547
  t ? e._componentsPromise = t.then(() => {
1548
1548
  e._componentsLoaded = !0, e._componentsPromise = void 0;
1549
1549
  }) : e._componentsLoaded = !0;
1550
1550
  }
1551
1551
  return e._componentsPromise;
1552
- })() : Bt(e, t);
1552
+ })() : Rt(e, t);
1553
1553
  return e._lazyPromise ? e._lazyPromise.then(n) : n();
1554
1554
  }
1555
- function Vt(e) {
1556
- for (let t of Ht) if (e.options[t]?.preload) return !0;
1555
+ function Bt(e) {
1556
+ for (let t of Vt) if (e.options[t]?.preload) return !0;
1557
1557
  return !1;
1558
1558
  }
1559
- var Ht = [
1559
+ var Vt = [
1560
1560
  "component",
1561
1561
  "errorComponent",
1562
1562
  "pendingComponent",
1563
1563
  "notFoundComponent"
1564
- ], U = "__TSR_index", Ut = "popstate", Wt = "beforeunload";
1565
- function Gt(e) {
1564
+ ], W = "__TSR_index", Ht = "popstate", Ut = "beforeunload";
1565
+ function Wt(e) {
1566
1566
  let t = e.getLocation(), n = /* @__PURE__ */ new Set(), r = (r) => {
1567
1567
  t = e.getLocation(), n.forEach((e) => e({
1568
1568
  location: t,
@@ -1577,7 +1577,7 @@ function Gt(e) {
1577
1577
  }
1578
1578
  let a = e.getBlockers?.() ?? [], o = i.type === "PUSH" || i.type === "REPLACE";
1579
1579
  if (typeof document < "u" && a.length && o) for (let n of a) {
1580
- let r = W(i.path, i.state);
1580
+ let r = G(i.path, i.state);
1581
1581
  if (await n.blockerFn({
1582
1582
  currentLocation: t,
1583
1583
  nextLocation: r,
@@ -1601,8 +1601,8 @@ function Gt(e) {
1601
1601
  n.delete(e);
1602
1602
  }),
1603
1603
  push: (n, i, o) => {
1604
- let s = t.state[U];
1605
- i = Kt(s + 1, i), a({
1604
+ let s = t.state[W];
1605
+ i = Gt(s + 1, i), a({
1606
1606
  task: () => {
1607
1607
  e.pushState(n, i), r({ type: "PUSH" });
1608
1608
  },
@@ -1613,8 +1613,8 @@ function Gt(e) {
1613
1613
  });
1614
1614
  },
1615
1615
  replace: (n, i, o) => {
1616
- let s = t.state[U];
1617
- i = Kt(s, i), a({
1616
+ let s = t.state[W];
1617
+ i = Gt(s, i), a({
1618
1618
  task: () => {
1619
1619
  e.replaceState(n, i), r({ type: "REPLACE" });
1620
1620
  },
@@ -1654,7 +1654,7 @@ function Gt(e) {
1654
1654
  type: "FORWARD"
1655
1655
  });
1656
1656
  },
1657
- canGoBack: () => t.state[U] !== 0,
1657
+ canGoBack: () => t.state[W] !== 0,
1658
1658
  createHref: (t) => e.createHref(t),
1659
1659
  block: (t) => {
1660
1660
  if (!e.setBlockers) return () => {};
@@ -1669,22 +1669,22 @@ function Gt(e) {
1669
1669
  notify: r
1670
1670
  };
1671
1671
  }
1672
- function Kt(e, t) {
1672
+ function Gt(e, t) {
1673
1673
  t ||= {};
1674
- let n = Zt();
1674
+ let n = Xt();
1675
1675
  return {
1676
1676
  ...t,
1677
1677
  key: n,
1678
1678
  __TSR_key: n,
1679
- [U]: e
1679
+ [W]: e
1680
1680
  };
1681
1681
  }
1682
- function qt(e) {
1683
- let t = e?.window ?? (typeof window < "u" ? window : void 0), n = t.history.pushState, r = t.history.replaceState, i = [], a = () => i, o = (e) => i = e, s = e?.createHref ?? ((e) => e), c = e?.parseLocation ?? (() => W(`${t.location.pathname}${t.location.search}${t.location.hash}`, t.history.state));
1682
+ function Kt(e) {
1683
+ let t = e?.window ?? (typeof window < "u" ? window : void 0), n = t.history.pushState, r = t.history.replaceState, i = [], a = () => i, o = (e) => i = e, s = e?.createHref ?? ((e) => e), c = e?.parseLocation ?? (() => G(`${t.location.pathname}${t.location.search}${t.location.hash}`, t.history.state));
1684
1684
  if (!t.history.state?.__TSR_key && !t.history.state?.key) {
1685
- let e = Zt();
1685
+ let e = Xt();
1686
1686
  t.history.replaceState({
1687
- [U]: 0,
1687
+ [W]: 0,
1688
1688
  key: e,
1689
1689
  __TSR_key: e
1690
1690
  }, "");
@@ -1693,7 +1693,7 @@ function qt(e) {
1693
1693
  g && (C._ignoreSubscribers = !0, (g.isPush ? t.history.pushState : t.history.replaceState)(g.state, "", g.href), C._ignoreSubscribers = !1, g = void 0, _ = void 0, u = void 0);
1694
1694
  }, y = (e, t, n) => {
1695
1695
  let r = s(t);
1696
- _ || (u = l), l = W(t, n), g = {
1696
+ _ || (u = l), l = G(t, n), g = {
1697
1697
  href: r,
1698
1698
  state: n,
1699
1699
  isPush: g?.isPush || e === "push"
@@ -1705,7 +1705,7 @@ function qt(e) {
1705
1705
  f = !1;
1706
1706
  return;
1707
1707
  }
1708
- let e = c(), n = e.state[U] - l.state[U], r = n === 1, i = n === -1, o = !r && !i || d;
1708
+ let e = c(), n = e.state[W] - l.state[W], r = n === 1, i = n === -1, o = !r && !i || d;
1709
1709
  d = !1;
1710
1710
  let s = o ? "GO" : i ? "BACK" : "FORWARD", u = o ? {
1711
1711
  type: "GO",
@@ -1744,7 +1744,7 @@ function qt(e) {
1744
1744
  }
1745
1745
  }
1746
1746
  if (t) return e.preventDefault(), e.returnValue = "";
1747
- }, C = Gt({
1747
+ }, C = Wt({
1748
1748
  getLocation: h,
1749
1749
  getLength: () => t.history.length,
1750
1750
  pushState: (e, t) => y("push", e, t),
@@ -1759,7 +1759,7 @@ function qt(e) {
1759
1759
  createHref: (e) => s(e),
1760
1760
  flush: v,
1761
1761
  destroy: () => {
1762
- t.history.pushState = n, t.history.replaceState = r, t.removeEventListener(Wt, S, { capture: !0 }), t.removeEventListener(Ut, x);
1762
+ t.history.pushState = n, t.history.replaceState = r, t.removeEventListener(Ut, S, { capture: !0 }), t.removeEventListener(Ht, x);
1763
1763
  },
1764
1764
  onBlocked: () => {
1765
1765
  u && l !== u && (l = u);
@@ -1768,7 +1768,7 @@ function qt(e) {
1768
1768
  setBlockers: o,
1769
1769
  notifyOnIndexChange: !1
1770
1770
  });
1771
- return t.addEventListener(Wt, S, { capture: !0 }), t.addEventListener(Ut, x), t.history.pushState = function(...e) {
1771
+ return t.addEventListener(Ut, S, { capture: !0 }), t.addEventListener(Ht, x), t.history.pushState = function(...e) {
1772
1772
  let r = n.apply(t.history, e);
1773
1773
  return C._ignoreSubscribers || b("PUSH"), r;
1774
1774
  }, t.history.replaceState = function(...e) {
@@ -1776,20 +1776,20 @@ function qt(e) {
1776
1776
  return C._ignoreSubscribers || b("REPLACE"), n;
1777
1777
  }, C;
1778
1778
  }
1779
- function Jt(e) {
1779
+ function qt(e) {
1780
1780
  let t = e?.window ?? (typeof window < "u" ? window : void 0);
1781
- return qt({
1781
+ return Kt({
1782
1782
  window: t,
1783
1783
  parseLocation: () => {
1784
1784
  let e = t.location.hash.split("#").slice(1), n = e[0] ?? "/", r = t.location.search, i = e.slice(1);
1785
- return W(`${n}${r}${i.length === 0 ? "" : `#${i.join("#")}`}`, t.history.state);
1785
+ return G(`${n}${r}${i.length === 0 ? "" : `#${i.join("#")}`}`, t.history.state);
1786
1786
  },
1787
1787
  createHref: (e) => `${t.location.pathname}${t.location.search}#${e}`
1788
1788
  });
1789
1789
  }
1790
- function Yt(e = { initialEntries: ["/"] }) {
1791
- 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) => Kt(t, void 0)), i = () => W(t[n], r[n]), a = [];
1792
- return Gt({
1790
+ function Jt(e = { initialEntries: ["/"] }) {
1791
+ 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) => Gt(t, void 0)), i = () => G(t[n], r[n]), a = [];
1792
+ return Wt({
1793
1793
  getLocation: i,
1794
1794
  getLength: () => t.length,
1795
1795
  pushState: (e, i) => {
@@ -1812,30 +1812,30 @@ function Yt(e = { initialEntries: ["/"] }) {
1812
1812
  setBlockers: (e) => a = e
1813
1813
  });
1814
1814
  }
1815
- function Xt(e) {
1815
+ function Yt(e) {
1816
1816
  let t = e.replace(/[\x00-\x1f\x7f]/g, "");
1817
1817
  return t.startsWith("//") && (t = "/" + t.replace(/^\/+/, "")), t;
1818
1818
  }
1819
- function W(e, t) {
1820
- let n = Xt(e), r = n.indexOf("#"), i = n.indexOf("?"), a = Zt();
1819
+ function G(e, t) {
1820
+ let n = Yt(e), r = n.indexOf("#"), i = n.indexOf("?"), a = Xt();
1821
1821
  return {
1822
1822
  href: n,
1823
1823
  pathname: n.substring(0, r > 0 ? i > 0 ? Math.min(r, i) : r : i > 0 ? i : n.length),
1824
1824
  hash: r > -1 ? n.substring(r) : "",
1825
1825
  search: i > -1 ? n.slice(i, r === -1 ? void 0 : r) : "",
1826
1826
  state: t || {
1827
- [U]: 0,
1827
+ [W]: 0,
1828
1828
  key: a,
1829
1829
  __TSR_key: a
1830
1830
  }
1831
1831
  };
1832
1832
  }
1833
- function Zt() {
1833
+ function Xt() {
1834
1834
  return (Math.random() + 1).toString(36).substring(7);
1835
1835
  }
1836
1836
  //#endregion
1837
1837
  //#region ../router-core/dist/esm/router.js
1838
- function G(e, t) {
1838
+ function K(e, t) {
1839
1839
  let n = t, r = e;
1840
1840
  return {
1841
1841
  fromLocation: n,
@@ -1845,7 +1845,7 @@ function G(e, t) {
1845
1845
  hashChanged: n?.hash !== r.hash
1846
1846
  };
1847
1847
  }
1848
- var Qt = class {
1848
+ var Zt = class {
1849
1849
  constructor(e, t) {
1850
1850
  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.routeBranchCache = /* @__PURE__ */ new WeakMap(), this.startTransition = (e) => e(), this.update = (e) => {
1851
1851
  process.env.NODE_ENV !== "production" && 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.");
@@ -1853,33 +1853,33 @@ var Qt = class {
1853
1853
  if (this.options = {
1854
1854
  ...t,
1855
1855
  ...e
1856
- }, this.isServer = this.options.isServer ?? typeof document > "u", this.protocolAllowlist = new Set(this.options.protocolAllowlist), this.options.pathParamsAllowedCharacters && (this.pathParamsDecoder = Ye(this.options.pathParamsAllowedCharacters)), (!this.history || this.options.history && this.options.history !== this.history) && (this.options.history ? this.history = this.options.history : typeof window < "u" && (this.history = qt())), this.origin = this.options.origin, !this.origin) {
1856
+ }, this.isServer = this.options.isServer ?? typeof document > "u", this.protocolAllowlist = new Set(this.options.protocolAllowlist), this.options.pathParamsAllowedCharacters && (this.pathParamsDecoder = Je(this.options.pathParamsAllowedCharacters)), (!this.history || this.options.history && this.options.history !== this.history) && (this.options.history ? this.history = this.options.history : typeof window < "u" && (this.history = Kt())), this.origin = this.options.origin, !this.origin) {
1857
1857
  let e = globalThis.window;
1858
1858
  e && e.origin && e.origin !== "null" ? this.origin = e.origin : this.origin = "http://localhost";
1859
1859
  }
1860
1860
  if (this.history && this.updateLatestLocation(), this.options.routeTree !== this.routeTree) {
1861
1861
  this.routeTree = this.options.routeTree;
1862
1862
  let e;
1863
- this.resolvePathCache = be(1e3), e = this.buildRouteTree(), this.setRoutes(e);
1863
+ this.resolvePathCache = M(1e3), e = this.buildRouteTree(), this.setRoutes(e);
1864
1864
  }
1865
1865
  if (!this.stores && this.latestLocation) {
1866
1866
  let e = this.getStoreConfig(this);
1867
- this.batch = e.batch, this.stores = St(an(this.latestLocation), e), lt(this);
1867
+ this.batch = e.batch, this.stores = bt(rn(this.latestLocation), e), st(this);
1868
1868
  }
1869
1869
  let a = !1, o = this.options.basepath ?? "/", s = this.options.rewrite;
1870
1870
  if (r || n !== o || i !== s) {
1871
1871
  this.basepath = o;
1872
- let e = [], t = Ge(o);
1873
- t && t !== "/" && e.push(yt({ basepath: o })), s && e.push(s), this.rewrite = e.length === 0 ? void 0 : e.length === 1 ? e[0] : vt(e), this.history && this.updateLatestLocation(), a = !0;
1872
+ let e = [], t = We(o);
1873
+ t && t !== "/" && e.push(_t({ basepath: o })), s && e.push(s), this.rewrite = e.length === 0 ? void 0 : e.length === 1 ? e[0] : gt(e), this.history && this.updateLatestLocation(), a = !0;
1874
1874
  }
1875
1875
  a && this.stores && this.stores.location.set(this.latestLocation), typeof window < "u" && "CSS" in window && typeof window.CSS?.supports == "function" && (this.isViewTransitionTypesSupported = window.CSS.supports("selector(:active-view-transition-type(a))"));
1876
1876
  }, this.updateLatestLocation = () => {
1877
1877
  this.latestLocation = this.parseLocation(this.history.location, this.latestLocation);
1878
1878
  }, this.buildRouteTree = () => {
1879
- let e = Me(this.routeTree, this.options.caseSensitive, (e, t) => {
1879
+ let e = je(this.routeTree, this.options.caseSensitive, (e, t) => {
1880
1880
  e.init({ originalIndex: t });
1881
1881
  });
1882
- return this.options.routeMasks && De(this.options.routeMasks, e.processedTree), e;
1882
+ return this.options.routeMasks && Ee(this.options.routeMasks, e.processedTree), e;
1883
1883
  }, this.subscribe = (e, t) => {
1884
1884
  let n = {
1885
1885
  eventType: e,
@@ -1899,23 +1899,23 @@ var Qt = class {
1899
1899
  return {
1900
1900
  href: e + o + r,
1901
1901
  publicHref: e + o + r,
1902
- pathname: ge(e).path,
1902
+ pathname: j(e).path,
1903
1903
  external: !1,
1904
1904
  searchStr: o,
1905
1905
  search: E(t?.search, i),
1906
- hash: ge(r.slice(1)).path,
1906
+ hash: j(r.slice(1)).path,
1907
1907
  state: D(t?.state, a)
1908
1908
  };
1909
1909
  }
1910
- let o = new URL(i, this.origin), s = bt(this.rewrite, o), c = this.options.parseSearch(s.search), l = this.options.stringifySearch(c);
1910
+ let o = new URL(i, this.origin), s = vt(this.rewrite, o), c = this.options.parseSearch(s.search), l = this.options.stringifySearch(c);
1911
1911
  return s.search = l, {
1912
1912
  href: s.href.replace(s.origin, ""),
1913
1913
  publicHref: i,
1914
- pathname: ge(s.pathname).path,
1914
+ pathname: j(s.pathname).path,
1915
1915
  external: !!this.rewrite && s.origin !== this.origin,
1916
1916
  searchStr: l,
1917
1917
  search: E(t?.search, c),
1918
- hash: ge(s.hash.slice(1)).path,
1918
+ hash: j(s.hash.slice(1)).path,
1919
1919
  state: D(t?.state, a)
1920
1920
  };
1921
1921
  }, r = n(e), { __tempLocation: i, __tempKey: a } = r.state;
@@ -1927,15 +1927,15 @@ var Qt = class {
1927
1927
  };
1928
1928
  }
1929
1929
  return r;
1930
- }, this.resolvePathWithBase = (e, t) => Je({
1930
+ }, this.resolvePathWithBase = (e, t) => qe({
1931
1931
  base: e,
1932
- to: t.includes("//") ? Ue(t) : t,
1932
+ to: t.includes("//") ? He(t) : t,
1933
1933
  trailingSlash: this.options.trailingSlash,
1934
1934
  cache: this.resolvePathCache
1935
1935
  }), this.matchRoutes = (e, t, n) => typeof e == "string" ? this.matchRoutesInternal({
1936
1936
  pathname: e,
1937
1937
  search: t
1938
- }, n) : this.matchRoutesInternal(e, t), this.getMatchedRoutes = (e) => sn({
1938
+ }, n) : this.matchRoutesInternal(e, t), this.getMatchedRoutes = (e) => on({
1939
1939
  pathname: e,
1940
1940
  routesById: this.routesById,
1941
1941
  processedTree: this.processedTree
@@ -1954,10 +1954,10 @@ var Qt = class {
1954
1954
  let t = (t = {}) => {
1955
1955
  let n = t._fromLocation || this.pendingBuiltLocation || this.latestLocation, r = this.matchRoutesLightweight(n);
1956
1956
  if (t.from && process.env.NODE_ENV !== "production" && t._isNavigate) {
1957
- let e = this.getMatchedRoutes(t.from).matchedRoutes, n = ce(r.matchedRoutes, (e) => nn(e.fullPath, t.from)), i = ce(e, (e) => nn(e.fullPath, r.fullPath));
1957
+ let e = this.getMatchedRoutes(t.from).matchedRoutes, n = le(r.matchedRoutes, (e) => tn(e.fullPath, t.from)), i = le(e, (e) => tn(e.fullPath, r.fullPath));
1958
1958
  !n && !i && console.warn(`Could not find match for from: ${t.from}`);
1959
1959
  }
1960
- let i = t.unsafeRelative === "path" ? n.pathname : t.from ?? r.fullPath, a = t.to ? `${t.to}` : void 0, o = r.search, s = Object.assign(Object.create(null), r.params), c = a?.charCodeAt(0) === 47 ? "/" : this.resolvePathWithBase(i, "."), l = a ? this.resolvePathWithBase(c, a) : c, u = t.params === !1 || t.params === null ? Object.create(null) : (t.params ?? !0) === !0 ? s : Object.assign(s, T(t.params, s)), d = this.routesByPath[F(l)], f;
1960
+ let i = t.unsafeRelative === "path" ? n.pathname : t.from ?? r.fullPath, a = t.to ? `${t.to}` : void 0, o = r.search, s = Object.assign(Object.create(null), r.params), c = a?.charCodeAt(0) === 47 ? "/" : this.resolvePathWithBase(i, "."), l = a ? this.resolvePathWithBase(c, a) : c, u = t.params === !1 || t.params === null ? Object.create(null) : (t.params ?? !0) === !0 ? s : Object.assign(s, T(t.params, s)), d = this.routesByPath[I(l)], f;
1961
1961
  if (d) f = this.getRouteBranch(d);
1962
1962
  else if (l.includes("$")) f = [];
1963
1963
  else {
@@ -1970,7 +1970,7 @@ var Qt = class {
1970
1970
  Object.assign(u, t(u));
1971
1971
  } catch {}
1972
1972
  }
1973
- let p = e.leaveParams ? l : ge(Ze({
1973
+ let p = e.leaveParams ? l : j(Xe({
1974
1974
  path: l,
1975
1975
  params: u,
1976
1976
  decoder: this.pathParamsDecoder,
@@ -1984,14 +1984,14 @@ var Qt = class {
1984
1984
  let e = {};
1985
1985
  f.forEach((t) => {
1986
1986
  if (t.options.validateSearch) try {
1987
- Object.assign(e, on(t.options.validateSearch, {
1987
+ Object.assign(e, an(t.options.validateSearch, {
1988
1988
  ...e,
1989
1989
  ...m
1990
1990
  }));
1991
1991
  } catch {}
1992
1992
  }), m = e;
1993
1993
  }
1994
- m = cn({
1994
+ m = sn({
1995
1995
  search: m,
1996
1996
  dest: t,
1997
1997
  destRoutes: f,
@@ -2001,7 +2001,7 @@ var Qt = class {
2001
2001
  v = D(n.state, v);
2002
2002
  let y = `${p}${h}${_}`, b, x, S = !1;
2003
2003
  if (this.rewrite) {
2004
- let e = new URL(y, this.origin), t = xt(this.rewrite, e);
2004
+ let e = new URL(y, this.origin), t = yt(this.rewrite, e);
2005
2005
  b = e.href.replace(e.origin, ""), t.origin === this.origin ? x = t.pathname + t.search + t.hash : (x = t.href, S = !0);
2006
2006
  } else b = _e(y), x = b;
2007
2007
  return {
@@ -2020,7 +2020,7 @@ var Qt = class {
2020
2020
  if (!a) {
2021
2021
  let n = Object.create(null);
2022
2022
  if (this.options.routeMasks) {
2023
- let o = Oe(i.pathname, this.processedTree);
2023
+ let o = De(i.pathname, this.processedTree);
2024
2024
  if (o) {
2025
2025
  Object.assign(n, o.rawParams);
2026
2026
  let { from: i, params: s, ...c } = o.route, l = s === !1 || s === null ? Object.create(null) : (s ?? !0) === !0 ? n : Object.assign(n, T(s, n));
@@ -2053,8 +2053,8 @@ var Qt = class {
2053
2053
  return e.forEach((e) => {
2054
2054
  delete n.state[e];
2055
2055
  }), t;
2056
- }, i = F(this.latestLocation.href) === F(n.href), a = this.commitLocationPromise;
2057
- if (this.commitLocationPromise = A(() => {
2056
+ }, i = I(this.latestLocation.href) === I(n.href), a = this.commitLocationPromise;
2057
+ if (this.commitLocationPromise = ce(() => {
2058
2058
  a?.resolve(), a = void 0;
2059
2059
  }), i && r()) this.load();
2060
2060
  else {
@@ -2081,8 +2081,8 @@ var Qt = class {
2081
2081
  return this.resetNextScroll = n.resetScroll ?? !0, this.history.subscribers.size || this.load(), this.commitLocationPromise;
2082
2082
  }, this.buildAndCommitLocation = ({ replace: e, resetScroll: t, hashScrollIntoView: n, viewTransition: r, ignoreBlocker: i, href: a, ...o } = {}) => {
2083
2083
  if (a) {
2084
- let t = this.history.location.state.__TSR_index, n = W(a, { __TSR_index: e ? t : t + 1 }), r = new URL(n.pathname, this.origin);
2085
- o.to = bt(this.rewrite, r).pathname, o.search = this.options.parseSearch(n.search), o.hash = n.hash.slice(1);
2084
+ let t = this.history.location.state.__TSR_index, n = G(a, { __TSR_index: e ? t : t + 1 }), r = new URL(n.pathname, this.origin);
2085
+ o.to = vt(this.rewrite, r).pathname, o.search = this.options.parseSearch(n.search), o.hash = n.hash.slice(1);
2086
2086
  }
2087
2087
  let s = this.buildLocation({
2088
2088
  ...o,
@@ -2114,7 +2114,7 @@ var Qt = class {
2114
2114
  n ??= t.publicHref, r ??= t.publicHref;
2115
2115
  }
2116
2116
  let t = !a && r ? r : n;
2117
- if (fe(t, this.protocolAllowlist)) return process.env.NODE_ENV !== "production" && console.warn(`Blocked navigation to dangerous protocol: ${t}`), Promise.resolve();
2117
+ if (pe(t, this.protocolAllowlist)) return process.env.NODE_ENV !== "production" && console.warn(`Blocked navigation to dangerous protocol: ${t}`), Promise.resolve();
2118
2118
  if (!i.ignoreBlocker) {
2119
2119
  let e = this.history.getBlockers?.() ?? [];
2120
2120
  for (let t of e) if (t?.blockerFn && await t.blockerFn({
@@ -2143,14 +2143,14 @@ var Qt = class {
2143
2143
  this.startTransition(async () => {
2144
2144
  try {
2145
2145
  this.beforeLoad();
2146
- let t = this.latestLocation, n = G(t, this.stores.resolvedLocation.get());
2146
+ let t = this.latestLocation, n = K(t, this.stores.resolvedLocation.get());
2147
2147
  this.stores.redirect.get() || this.emit({
2148
2148
  type: "onBeforeNavigate",
2149
2149
  ...n
2150
2150
  }), this.emit({
2151
2151
  type: "onBeforeLoad",
2152
2152
  ...n
2153
- }), await zt({
2153
+ }), await Lt({
2154
2154
  router: this,
2155
2155
  sync: e?.sync,
2156
2156
  forceStaleReload: i.href === t.href,
@@ -2180,11 +2180,11 @@ var Qt = class {
2180
2180
  }
2181
2181
  });
2182
2182
  } catch (e) {
2183
- R(e) ? (t = e, this.navigate({
2183
+ B(e) ? (t = e, this.navigate({
2184
2184
  ...t.options,
2185
2185
  replace: !0,
2186
2186
  ignoreBlocker: !0
2187
- })) : I(e) && (n = e);
2187
+ })) : L(e) && (n = e);
2188
2188
  let r = t ? t.status : n ? 404 : this.stores.matches.get().some((e) => e.status === "error") ? 500 : 200;
2189
2189
  this.batch(() => {
2190
2190
  this.stores.statusCode.set(r), this.stores.redirect.set(t);
@@ -2200,7 +2200,7 @@ var Qt = class {
2200
2200
  if (this.shouldViewTransition = void 0, t && typeof document < "u" && "startViewTransition" in document && typeof document.startViewTransition == "function") {
2201
2201
  let n;
2202
2202
  if (typeof t == "object" && this.isViewTransitionTypesSupported) {
2203
- let r = this.latestLocation, i = this.stores.resolvedLocation.get(), a = typeof t.types == "function" ? t.types(G(r, i)) : t.types;
2203
+ let r = this.latestLocation, i = this.stores.resolvedLocation.get(), a = typeof t.types == "function" ? t.types(K(r, i)) : t.types;
2204
2204
  if (a === !1) {
2205
2205
  e();
2206
2206
  return;
@@ -2254,7 +2254,7 @@ var Qt = class {
2254
2254
  e.options.href = t, e.headers.set("Location", t);
2255
2255
  }
2256
2256
  } catch {}
2257
- if (e.options.href && !e.options._builtLocation && fe(e.options.href, this.protocolAllowlist)) throw Error(process.env.NODE_ENV === "production" ? "Redirect blocked: unsafe protocol" : `Redirect blocked: unsafe protocol in href "${e.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);
2257
+ if (e.options.href && !e.options._builtLocation && pe(e.options.href, this.protocolAllowlist)) throw Error(process.env.NODE_ENV === "production" ? "Redirect blocked: unsafe protocol" : `Redirect blocked: unsafe protocol in href "${e.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);
2258
2258
  return e.headers.get("Location") || e.headers.set("Location", e.options.href), e;
2259
2259
  }, this.clearCache = (e) => {
2260
2260
  let t = e?.filter;
@@ -2267,7 +2267,7 @@ var Qt = class {
2267
2267
  let r = (t.preload ? n.options.preloadGcTime ?? this.options.defaultPreloadGcTime : n.options.gcTime ?? this.options.defaultGcTime) ?? 300 * 1e3;
2268
2268
  return t.status === "error" ? !0 : e - t.updatedAt >= r;
2269
2269
  } });
2270
- }, this.loadRouteChunk = H, this.preloadRoute = async (e) => {
2270
+ }, this.loadRouteChunk = zt, this.preloadRoute = async (e) => {
2271
2271
  let t = e._builtLocation ?? this.buildLocation(e), n = this.matchRoutes(t, {
2272
2272
  throwOnError: !0,
2273
2273
  preload: !0,
@@ -2278,7 +2278,7 @@ var Qt = class {
2278
2278
  this.stores.setCached([...e, ...a]);
2279
2279
  }
2280
2280
  try {
2281
- return n = await zt({
2281
+ return n = await Lt({
2282
2282
  router: this,
2283
2283
  matches: n,
2284
2284
  location: t,
@@ -2288,11 +2288,11 @@ var Qt = class {
2288
2288
  }
2289
2289
  }), n;
2290
2290
  } catch (e) {
2291
- if (R(e)) return e.options.reloadDocument ? void 0 : await this.preloadRoute({
2291
+ if (B(e)) return e.options.reloadDocument ? void 0 : await this.preloadRoute({
2292
2292
  ...e.options,
2293
2293
  _fromLocation: t
2294
2294
  });
2295
- I(e) || console.error(e);
2295
+ L(e) || console.error(e);
2296
2296
  return;
2297
2297
  }
2298
2298
  }, this.matchRoute = (e, t) => {
@@ -2303,7 +2303,7 @@ var Qt = class {
2303
2303
  leaveParams: !0
2304
2304
  }, r = this.buildLocation(n);
2305
2305
  if (t?.pending && this.stores.status.get() !== "pending") return !1;
2306
- let i = (t?.pending === void 0 ? !this.stores.isLoading.get() : t.pending) ? this.latestLocation : this.stores.resolvedLocation.get() || this.stores.location.get(), a = ke(r.pathname, t?.caseSensitive ?? !1, t?.fuzzy ?? !1, i.pathname, this.processedTree);
2306
+ let i = (t?.pending === void 0 ? !this.stores.isLoading.get() : t.pending) ? this.latestLocation : this.stores.resolvedLocation.get() || this.stores.location.get(), a = Oe(r.pathname, t?.caseSensitive ?? !1, t?.fuzzy ?? !1, i.pathname, this.processedTree);
2307
2307
  return !a || e.params && !k(a.rawParams, e.params, { partial: !0 }) ? !1 : t?.includeSearch ?? !0 ? k(i.search, r.search, { partial: !0 }) ? a.rawParams : !1 : a.rawParams;
2308
2308
  }, this.hasNotFoundMatch = () => this.stores.matches.get().some((e) => e.status === "notFound" || e.globalNotFound), this.getStoreConfig = t, this.update({
2309
2309
  defaultPreloadDelay: 50,
@@ -2313,9 +2313,9 @@ var Qt = class {
2313
2313
  ...e,
2314
2314
  caseSensitive: e.caseSensitive ?? !1,
2315
2315
  notFoundMode: e.notFoundMode ?? "fuzzy",
2316
- stringifySearch: e.stringifySearch ?? mt,
2317
- parseSearch: e.parseSearch ?? pt,
2318
- protocolAllowlist: e.protocolAllowlist ?? de
2316
+ stringifySearch: e.stringifySearch ?? ft,
2317
+ parseSearch: e.parseSearch ?? dt,
2318
+ protocolAllowlist: e.protocolAllowlist ?? fe
2319
2319
  }), typeof document < "u" && (self.__TSR_ROUTER__ = this);
2320
2320
  }
2321
2321
  isShell() {
@@ -2334,7 +2334,7 @@ var Qt = class {
2334
2334
  }
2335
2335
  getRouteBranch(e) {
2336
2336
  let t = this.routeBranchCache.get(e);
2337
- return t || (t = Fe(e), this.routeBranchCache.set(e, t)), t;
2337
+ return t || (t = Pe(e), this.routeBranchCache.set(e, t)), t;
2338
2338
  }
2339
2339
  get looseRoutesById() {
2340
2340
  return this.routesById;
@@ -2344,15 +2344,15 @@ var Qt = class {
2344
2344
  }
2345
2345
  matchRoutesInternal(e, t) {
2346
2346
  let n = this.getMatchedRoutes(e.pathname), { foundRoute: r, routeParams: i } = n, { matchedRoutes: a } = n, o = !1;
2347
- (r ? r.path !== "/" && i["**"] : F(e.pathname)) && (this.options.notFoundRoute ? a = [...a, this.options.notFoundRoute] : o = !0);
2348
- let s = o ? un(this.options.notFoundMode, a) : void 0, c = Array(a.length), l = /* @__PURE__ */ new Map();
2347
+ (r ? r.path !== "/" && i["**"] : I(e.pathname)) && (this.options.notFoundRoute ? a = [...a, this.options.notFoundRoute] : o = !0);
2348
+ let s = o ? ln(this.options.notFoundMode, a) : void 0, c = Array(a.length), l = /* @__PURE__ */ new Map();
2349
2349
  for (let e of this.stores.matchStores.values()) e.routeId && l.set(e.routeId, e.get());
2350
2350
  for (let n = 0; n < a.length; n++) {
2351
2351
  let r = a[n], o = c[n - 1], u, d, f;
2352
2352
  {
2353
2353
  let n = o?.search ?? e.search, i = o?._strictSearch ?? void 0;
2354
2354
  try {
2355
- let e = on(r.options.validateSearch, { ...n }) ?? void 0;
2355
+ let e = an(r.options.validateSearch, { ...n }) ?? void 0;
2356
2356
  u = {
2357
2357
  ...n,
2358
2358
  ...e
@@ -2362,20 +2362,20 @@ var Qt = class {
2362
2362
  }, f = void 0;
2363
2363
  } catch (e) {
2364
2364
  let r = e;
2365
- if (e instanceof $t || (r = new $t(e.message, { cause: e })), t?.throwOnError) throw r;
2365
+ if (e instanceof Qt || (r = new Qt(e.message, { cause: e })), t?.throwOnError) throw r;
2366
2366
  u = n, d = {}, f = r;
2367
2367
  }
2368
2368
  }
2369
- let p = r.options.loaderDeps?.({ search: u }) ?? "", m = p ? JSON.stringify(p) : "", { interpolatedPath: h, usedParams: g } = Ze({
2369
+ let p = r.options.loaderDeps?.({ search: u }) ?? "", m = p ? JSON.stringify(p) : "", { interpolatedPath: h, usedParams: g } = Xe({
2370
2370
  path: r.fullPath,
2371
2371
  params: i,
2372
2372
  decoder: this.pathParamsDecoder,
2373
2373
  server: this.isServer
2374
2374
  }), _ = r.id + h + m, v = this.getMatch(_), y = l.get(r.id), b = v?._strictParams ?? g, x;
2375
2375
  if (!v) try {
2376
- dn(r, b);
2376
+ un(r, b);
2377
2377
  } catch (e) {
2378
- if (x = I(e) || R(e) ? e : new en(e.message, { cause: e }), t?.throwOnError) throw x;
2378
+ if (x = L(e) || B(e) ? e : new $t(e.message, { cause: e }), t?.throwOnError) throw x;
2379
2379
  }
2380
2380
  Object.assign(i, b);
2381
2381
  let S = y ? "stay" : "enter", C;
@@ -2388,7 +2388,7 @@ var Qt = class {
2388
2388
  _strictSearch: d
2389
2389
  };
2390
2390
  else {
2391
- let e = r.options.loader || r.options.beforeLoad || r.lazyFn || Vt(r) ? "pending" : "success";
2391
+ let e = r.options.loader || r.options.beforeLoad || r.lazyFn || Bt(r) ? "pending" : "success";
2392
2392
  C = {
2393
2393
  id: _,
2394
2394
  ssr: r.options.ssr,
@@ -2406,7 +2406,7 @@ var Qt = class {
2406
2406
  error: void 0,
2407
2407
  paramsError: x,
2408
2408
  __routeContext: void 0,
2409
- _nonReactive: { loadPromise: A() },
2409
+ _nonReactive: { loadPromise: ce() },
2410
2410
  __beforeLoadContext: void 0,
2411
2411
  context: {},
2412
2412
  abortController: new AbortController(),
@@ -2466,14 +2466,14 @@ var Qt = class {
2466
2466
  matchRoutesLightweight(e) {
2467
2467
  let { matchedRoutes: t, routeParams: n } = this.getMatchedRoutes(e.pathname), r = w(t), i = { ...e.search };
2468
2468
  for (let e of t) try {
2469
- Object.assign(i, on(e.options.validateSearch, i));
2469
+ Object.assign(i, an(e.options.validateSearch, i));
2470
2470
  } catch {}
2471
2471
  let a = w(this.stores.matchesId.get()), o = a && this.stores.matchStores.get(a)?.get(), s = o && o.routeId === r.id && o.pathname === e.pathname, c;
2472
2472
  if (s) c = o.params;
2473
2473
  else {
2474
2474
  let e = Object.assign(Object.create(null), n);
2475
2475
  for (let n of t) try {
2476
- dn(n, e);
2476
+ un(n, e);
2477
2477
  } catch {}
2478
2478
  c = e;
2479
2479
  }
@@ -2484,14 +2484,14 @@ var Qt = class {
2484
2484
  params: c
2485
2485
  };
2486
2486
  }
2487
- }, $t = class extends Error {}, en = class extends Error {}, tn = (e) => e.endsWith("/") && e.length > 1 ? e.slice(0, -1) : e;
2488
- function nn(e, t) {
2489
- return tn(e) === tn(t);
2487
+ }, Qt = class extends Error {}, $t = class extends Error {}, en = (e) => e.endsWith("/") && e.length > 1 ? e.slice(0, -1) : e;
2488
+ function tn(e, t) {
2489
+ return en(e) === en(t);
2490
2490
  }
2491
- function rn(e, t) {
2491
+ function nn(e, t) {
2492
2492
  return async (...n) => (await e())[t || "default"](...n);
2493
2493
  }
2494
- function an(e) {
2494
+ function rn(e) {
2495
2495
  return {
2496
2496
  loadedAt: 0,
2497
2497
  isLoading: !1,
@@ -2503,28 +2503,28 @@ function an(e) {
2503
2503
  statusCode: 200
2504
2504
  };
2505
2505
  }
2506
- function on(e, t) {
2506
+ function an(e, t) {
2507
2507
  if (e == null) return {};
2508
2508
  if ("~standard" in e) {
2509
2509
  let n = e["~standard"].validate(t);
2510
- if (n instanceof Promise) throw new $t("Async validation not supported");
2511
- if (n.issues) throw new $t(JSON.stringify(n.issues, void 0, 2), { cause: n });
2510
+ if (n instanceof Promise) throw new Qt("Async validation not supported");
2511
+ if (n.issues) throw new Qt(JSON.stringify(n.issues, void 0, 2), { cause: n });
2512
2512
  return n.value;
2513
2513
  }
2514
2514
  return "parse" in e ? e.parse(t) : typeof e == "function" ? e(t) : {};
2515
2515
  }
2516
- function sn({ pathname: e, routesById: t, processedTree: n }) {
2517
- let r = Object.create(null), i = F(e), a, o = Ae(i, n, !0);
2516
+ function on({ pathname: e, routesById: t, processedTree: n }) {
2517
+ let r = Object.create(null), i = I(e), a, o = ke(i, n, !0);
2518
2518
  return o && (a = o.route, Object.assign(r, o.rawParams)), {
2519
2519
  matchedRoutes: o?.branch || [t.__root__],
2520
2520
  routeParams: r,
2521
2521
  foundRoute: a
2522
2522
  };
2523
2523
  }
2524
- function cn({ search: e, dest: t, destRoutes: n, _includeValidateSearch: r }) {
2525
- return ln(n)(e, t, r ?? !1);
2524
+ function sn({ search: e, dest: t, destRoutes: n, _includeValidateSearch: r }) {
2525
+ return cn(n)(e, t, r ?? !1);
2526
2526
  }
2527
- function ln(e) {
2527
+ function cn(e) {
2528
2528
  let t = {
2529
2529
  dest: null,
2530
2530
  _includeValidateSearch: !1,
@@ -2541,7 +2541,7 @@ function ln(e) {
2541
2541
  try {
2542
2542
  return {
2543
2543
  ...i,
2544
- ...on(n.options.validateSearch, i) ?? void 0
2544
+ ...an(n.options.validateSearch, i) ?? void 0
2545
2545
  };
2546
2546
  } catch {
2547
2547
  return i;
@@ -2563,14 +2563,14 @@ function ln(e) {
2563
2563
  return t.dest = r, t._includeValidateSearch = i, n(0, e, t.middlewares);
2564
2564
  };
2565
2565
  }
2566
- function un(e, t) {
2566
+ function ln(e, t) {
2567
2567
  if (e !== "root") for (let e = t.length - 1; e >= 0; e--) {
2568
2568
  let n = t[e];
2569
2569
  if (n.children) return n.id;
2570
2570
  }
2571
- return L;
2571
+ return z;
2572
2572
  }
2573
- function dn(e, t) {
2573
+ function un(e, t) {
2574
2574
  let n = e.options.params?.parse ?? e.options.parseParams;
2575
2575
  if (n) {
2576
2576
  let e = n(t);
@@ -2580,7 +2580,7 @@ function dn(e, t) {
2580
2580
  }
2581
2581
  //#endregion
2582
2582
  //#region ../router-core/dist/esm/link.js
2583
- var fn = "Error preloading route! ☝️", pn = class {
2583
+ var dn = "Error preloading route! ☝️", fn = class {
2584
2584
  get to() {
2585
2585
  return this._to;
2586
2586
  }
@@ -2597,43 +2597,43 @@ var fn = "Error preloading route! ☝️", pn = class {
2597
2597
  if (this.init = (e) => {
2598
2598
  this.originalIndex = e.originalIndex;
2599
2599
  let t = this.options, n = !t?.path && !t?.id;
2600
- if (this.parentRoute = this.options.getParentRoute?.(), n) this._path = L;
2600
+ if (this.parentRoute = this.options.getParentRoute?.(), n) this._path = z;
2601
2601
  else if (!this.parentRoute) {
2602
2602
  if (process.env.NODE_ENV !== "production") throw Error("Invariant failed: Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");
2603
2603
  ye();
2604
2604
  }
2605
- let r = n ? L : t?.path;
2606
- r && r !== "/" && (r = We(r));
2607
- let i = t?.id || r, a = n ? L : He([this.parentRoute.id === "__root__" ? "" : this.parentRoute.id, i]);
2608
- r === "__root__" && (r = "/"), a !== "__root__" && (a = He(["/", a]));
2609
- let o = a === "__root__" ? "/" : He([this.parentRoute.fullPath, r]);
2610
- this._path = r, this._id = a, this._fullPath = o, this._to = F(o);
2611
- }, 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.redirect = (e) => _t({
2605
+ let r = n ? z : t?.path;
2606
+ r && r !== "/" && (r = Ue(r));
2607
+ let i = t?.id || r, a = n ? z : Ve([this.parentRoute.id === "__root__" ? "" : this.parentRoute.id, i]);
2608
+ r === "__root__" && (r = "/"), a !== "__root__" && (a = Ve(["/", a]));
2609
+ let o = a === "__root__" ? "/" : Ve([this.parentRoute.fullPath, r]);
2610
+ this._path = r, this._id = a, this._fullPath = o, this._to = I(o);
2611
+ }, 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.redirect = (e) => ht({
2612
2612
  from: this.fullPath,
2613
2613
  ...e
2614
2614
  }), this.options = e || {}, this.isRoot = !e?.getParentRoute, e?.id && e?.path) throw Error("Route cannot have both an 'id' and a 'path' option.");
2615
2615
  }
2616
- }, mn = class {
2616
+ }, pn = class {
2617
2617
  constructor({ id: e }) {
2618
- this.notFound = (e) => $e({
2618
+ this.notFound = (e) => Qe({
2619
2619
  routeId: this.id,
2620
2620
  ...e
2621
- }), this.redirect = (e) => _t({
2621
+ }), this.redirect = (e) => ht({
2622
2622
  from: this.id,
2623
2623
  ...e
2624
2624
  }), this.id = e;
2625
2625
  }
2626
- }, hn = class extends pn {
2626
+ }, mn = class extends fn {
2627
2627
  constructor(e) {
2628
2628
  super(e);
2629
2629
  }
2630
- }, gn = (e) => ({
2630
+ }, hn = (e) => ({
2631
2631
  serializationAdapters: e.serializationAdapters,
2632
2632
  defaultSsr: e.defaultSsr
2633
2633
  });
2634
2634
  //#endregion
2635
2635
  //#region ../router-core/dist/esm/searchMiddleware.js
2636
- function _n(e) {
2636
+ function gn(e) {
2637
2637
  return ({ search: t, next: n }) => {
2638
2638
  let r = n(t);
2639
2639
  if (e === !0) return {
@@ -2648,7 +2648,7 @@ function _n(e) {
2648
2648
  }
2649
2649
  //#endregion
2650
2650
  //#region ../router-core/dist/esm/hash-scroll.js
2651
- function vn(e) {
2651
+ function _n(e) {
2652
2652
  if (typeof document < "u" && document.querySelector) {
2653
2653
  let t = e.stores.location.get(), n = t.state.__hashScrollIntoViewOptions ?? !0;
2654
2654
  if (n && t.hash !== "") {
@@ -2659,7 +2659,7 @@ function vn(e) {
2659
2659
  }
2660
2660
  //#endregion
2661
2661
  //#region src/routerStores.ts
2662
- function yn(e, t) {
2662
+ function vn(e, t) {
2663
2663
  e.childMatchIdByRouteId = t(() => {
2664
2664
  let t = e.matchesId.get(), n = {};
2665
2665
  for (let r = 0; r < t.length - 1; r++) {
@@ -2676,40 +2676,40 @@ function yn(e, t) {
2676
2676
  return n;
2677
2677
  });
2678
2678
  }
2679
- var bn = (n) => ({
2679
+ var yn = (n) => ({
2680
2680
  createMutableStore: t,
2681
2681
  createReadonlyStore: t,
2682
2682
  batch: e,
2683
- init: (e) => yn(e, t)
2684
- }), xn = (e) => new Sn(e), Sn = class extends Qt {
2683
+ init: (e) => vn(e, t)
2684
+ }), bn = (e) => new xn(e), xn = class extends Zt {
2685
2685
  constructor(e) {
2686
- super(e, bn);
2686
+ super(e, yn);
2687
2687
  }
2688
- }, Cn = {
2688
+ }, Sn = {
2689
2689
  matchId: () => void 0,
2690
2690
  routeId: () => void 0,
2691
2691
  match: () => void 0,
2692
2692
  hasPending: () => !1
2693
- }, K = new n.InjectionToken("MATCH_CONTEXT_INJECTOR", {
2693
+ }, q = new n.InjectionToken("MATCH_CONTEXT_INJECTOR", {
2694
2694
  providedIn: "root",
2695
- factory: () => Cn
2696
- }), wn = new n.InjectionToken("ROUTER");
2697
- function Tn() {
2698
- return typeof document > "u" ? wn : window.__TSR_ROUTER_INJECTION_KEY__ ? window.__TSR_ROUTER_INJECTION_KEY__ : (window.__TSR_ROUTER_INJECTION_KEY__ = wn, wn);
2695
+ factory: () => Sn
2696
+ }), Cn = new n.InjectionToken("ROUTER");
2697
+ function wn() {
2698
+ return typeof document > "u" ? Cn : window.__TSR_ROUTER_INJECTION_KEY__ ? window.__TSR_ROUTER_INJECTION_KEY__ : (window.__TSR_ROUTER_INJECTION_KEY__ = Cn, Cn);
2699
2699
  }
2700
2700
  //#endregion
2701
2701
  //#region src/injectRouter.ts
2702
- function q(e) {
2703
- let t = n.inject(Tn(), { optional: !0 });
2702
+ function J(e) {
2703
+ let t = n.inject(wn(), { optional: !0 });
2704
2704
  return process.env.NODE_ENV !== "production" && (e?.warn ?? !0) && !t && console.warn("Warning: injectRouter must be used inside a <router-provider> component!"), t;
2705
2705
  }
2706
2706
  //#endregion
2707
2707
  //#region src/store/injectSelector.ts
2708
- function En(e, t) {
2708
+ function Tn(e, t) {
2709
2709
  return t || (p(e), g(l));
2710
2710
  }
2711
- function Dn(e, t = (e) => e, n) {
2712
- return x(En(Dn, n?.injector), () => {
2711
+ function En(e, t = (e) => e, n) {
2712
+ return x(Tn(En, n?.injector), () => {
2713
2713
  let r = typeof e == "function" ? e : () => e, i = b(() => t(r().get()), { equal: n?.compare });
2714
2714
  return h((e) => {
2715
2715
  let { unsubscribe: n } = r().subscribe((e) => {
@@ -2721,9 +2721,9 @@ function Dn(e, t = (e) => e, n) {
2721
2721
  }
2722
2722
  //#endregion
2723
2723
  //#region src/store/injectStore.ts
2724
- function J(e, t = (e) => e, n) {
2724
+ function Y(e, t = (e) => e, n) {
2725
2725
  let { equal: r, injector: i, ...a } = n ?? {};
2726
- return Dn(e, t, {
2726
+ return En(e, t, {
2727
2727
  ...a,
2728
2728
  compare: r,
2729
2729
  injector: i
@@ -2731,15 +2731,15 @@ function J(e, t = (e) => e, n) {
2731
2731
  }
2732
2732
  //#endregion
2733
2733
  //#region src/injectMatch.ts
2734
- var On = {
2734
+ var Dn = {
2735
2735
  get: () => void 0,
2736
2736
  subscribe: () => ({ unsubscribe: () => {} })
2737
2737
  };
2738
- function Y(e) {
2739
- let t = q(), r = e.from ? void 0 : n.inject(K), i = J(e.from ? t.stores.getRouteMatchStore(e.from) : () => {
2738
+ function X(e) {
2739
+ let t = J(), r = e.from ? void 0 : n.inject(q), i = Y(e.from ? t.stores.getRouteMatchStore(e.from) : () => {
2740
2740
  let e = r?.matchId();
2741
- return e ? t.stores.matchStores.get(e) ?? On : On;
2742
- }, (e) => e), a = J(t.stores.pendingRouteIds, (e) => e), o = J(t.stores.isTransitioning, (e) => e);
2741
+ return e ? t.stores.matchStores.get(e) ?? Dn : Dn;
2742
+ }, (e) => e), a = Y(t.stores.pendingRouteIds, (e) => e), o = Y(t.stores.isTransitioning, (e) => e);
2743
2743
  return n.computed(() => {
2744
2744
  let t = i();
2745
2745
  if (t !== void 0) return e.select ? e.select(t) : t;
@@ -2751,8 +2751,8 @@ function Y(e) {
2751
2751
  }
2752
2752
  //#endregion
2753
2753
  //#region src/injectLoaderData.ts
2754
- function kn(e) {
2755
- return Y({
2754
+ function On(e) {
2755
+ return X({
2756
2756
  from: e.from,
2757
2757
  strict: e.strict,
2758
2758
  select: (t) => e.select ? e.select(t.loaderData) : t.loaderData
@@ -2760,17 +2760,17 @@ function kn(e) {
2760
2760
  }
2761
2761
  //#endregion
2762
2762
  //#region src/injectLoaderDeps.ts
2763
- function An(e) {
2763
+ function kn(e) {
2764
2764
  let { select: t, ...n } = e;
2765
- return Y({
2765
+ return X({
2766
2766
  ...n,
2767
2767
  select: (e) => t ? t(e.loaderDeps) : e.loaderDeps
2768
2768
  });
2769
2769
  }
2770
2770
  //#endregion
2771
2771
  //#region src/injectNavigate.ts
2772
- function X(e) {
2773
- let t = q();
2772
+ function An(e) {
2773
+ let t = J();
2774
2774
  return ((n) => t.navigate({
2775
2775
  ...n,
2776
2776
  from: n.from ?? e?.from
@@ -2779,7 +2779,7 @@ function X(e) {
2779
2779
  //#endregion
2780
2780
  //#region src/injectParams.ts
2781
2781
  function jn(e) {
2782
- return Y({
2782
+ return X({
2783
2783
  from: e.from,
2784
2784
  strict: e.strict,
2785
2785
  shouldThrow: e.shouldThrow,
@@ -2789,7 +2789,7 @@ function jn(e) {
2789
2789
  //#endregion
2790
2790
  //#region src/injectRouteContext.ts
2791
2791
  function Mn(e) {
2792
- return Y({
2792
+ return X({
2793
2793
  ...e,
2794
2794
  select: (t) => e.select ? e.select(t.context) : t.context
2795
2795
  });
@@ -2797,7 +2797,7 @@ function Mn(e) {
2797
2797
  //#endregion
2798
2798
  //#region src/injectSearch.ts
2799
2799
  function Nn(e) {
2800
- return Y({
2800
+ return X({
2801
2801
  from: e.from,
2802
2802
  strict: e.strict,
2803
2803
  shouldThrow: e.shouldThrow,
@@ -2809,9 +2809,9 @@ function Nn(e) {
2809
2809
  function Pn(e) {
2810
2810
  return new Fn({ id: e });
2811
2811
  }
2812
- var Fn = class extends mn {
2812
+ var Fn = class extends pn {
2813
2813
  constructor({ id: e }) {
2814
- super({ id: e }), this.injectMatch = (e) => Y({
2814
+ super({ id: e }), this.injectMatch = (e) => X({
2815
2815
  select: e?.select,
2816
2816
  from: this.id
2817
2817
  }), this.injectRouteContext = (e) => Mn({
@@ -2823,25 +2823,25 @@ var Fn = class extends mn {
2823
2823
  }), this.injectParams = (e) => jn({
2824
2824
  select: e?.select,
2825
2825
  from: this.id
2826
- }), this.injectLoaderDeps = (e) => An({
2826
+ }), this.injectLoaderDeps = (e) => kn({
2827
2827
  ...e,
2828
2828
  from: this.id,
2829
2829
  strict: !1
2830
- }), this.injectLoaderData = (e) => kn({
2830
+ }), this.injectLoaderData = (e) => On({
2831
2831
  ...e,
2832
2832
  from: this.id,
2833
2833
  strict: !1
2834
- }), this.injectNavigate = () => X({ from: q().routesById[this.id].fullPath }), this.notFound = (e) => $e({
2834
+ }), this.injectNavigate = () => An({ from: J().routesById[this.id].fullPath }), this.notFound = (e) => Qe({
2835
2835
  routeId: this.id,
2836
2836
  ...e
2837
2837
  });
2838
2838
  }
2839
- }, In = class extends pn {
2839
+ }, In = class extends fn {
2840
2840
  constructor(e) {
2841
- super(e), this.injectMatch = (e) => Y({
2841
+ super(e), this.injectMatch = (e) => X({
2842
2842
  select: e?.select,
2843
2843
  from: this.id
2844
- }), this.injectRouteContext = (e) => Y({
2844
+ }), this.injectRouteContext = (e) => X({
2845
2845
  ...e,
2846
2846
  from: this.id,
2847
2847
  select: (t) => e?.select ? e.select(t.context) : t.context
@@ -2851,13 +2851,13 @@ var Fn = class extends mn {
2851
2851
  }), this.injectParams = (e) => jn({
2852
2852
  select: e?.select,
2853
2853
  from: this.id
2854
- }), this.injectLoaderDeps = (e) => An({
2854
+ }), this.injectLoaderDeps = (e) => kn({
2855
2855
  ...e,
2856
2856
  from: this.id
2857
- }), this.injectLoaderData = (e) => kn({
2857
+ }), this.injectLoaderData = (e) => On({
2858
2858
  ...e,
2859
2859
  from: this.id
2860
- }), this.injectNavigate = () => X({ from: this.fullPath });
2860
+ }), this.injectNavigate = () => An({ from: this.fullPath });
2861
2861
  }
2862
2862
  };
2863
2863
  function Ln(e) {
@@ -2866,12 +2866,12 @@ function Ln(e) {
2866
2866
  function Rn() {
2867
2867
  return (e) => Hn(e);
2868
2868
  }
2869
- var zn = class extends hn {
2869
+ var zn = class extends mn {
2870
2870
  constructor(e) {
2871
- super(e), this.injectMatch = (e) => Y({
2871
+ super(e), this.injectMatch = (e) => X({
2872
2872
  select: e?.select,
2873
2873
  from: this.id
2874
- }), this.injectRouteContext = (e) => Y({
2874
+ }), this.injectRouteContext = (e) => X({
2875
2875
  ...e,
2876
2876
  from: this.id,
2877
2877
  select: (t) => e?.select ? e.select(t.context) : t.context
@@ -2881,13 +2881,13 @@ var zn = class extends hn {
2881
2881
  }), this.injectParams = (e) => jn({
2882
2882
  select: e?.select,
2883
2883
  from: this.id
2884
- }), this.injectLoaderDeps = (e) => An({
2884
+ }), this.injectLoaderDeps = (e) => kn({
2885
2885
  ...e,
2886
2886
  from: this.id
2887
- }), this.injectLoaderData = (e) => kn({
2887
+ }), this.injectLoaderData = (e) => On({
2888
2888
  ...e,
2889
2889
  from: this.id
2890
- }), this.injectNavigate = () => X({ from: this.fullPath });
2890
+ }), this.injectNavigate = () => An({ from: this.fullPath });
2891
2891
  }
2892
2892
  };
2893
2893
  function Bn(e) {
@@ -2918,7 +2918,7 @@ var Wn = class {
2918
2918
  }
2919
2919
  }, Gn = class {
2920
2920
  constructor(e) {
2921
- this.injectMatch = (e) => Y({
2921
+ this.injectMatch = (e) => X({
2922
2922
  select: e?.select,
2923
2923
  from: this.options.id
2924
2924
  }), this.injectRouteContext = (e) => Mn({
@@ -2930,13 +2930,13 @@ var Wn = class {
2930
2930
  }), this.injectParams = (e) => jn({
2931
2931
  select: e?.select,
2932
2932
  from: this.options.id
2933
- }), this.injectLoaderDeps = (e) => An({
2933
+ }), this.injectLoaderDeps = (e) => kn({
2934
2934
  ...e,
2935
2935
  from: this.options.id
2936
- }), this.injectLoaderData = (e) => kn({
2936
+ }), this.injectLoaderData = (e) => On({
2937
2937
  ...e,
2938
2938
  from: this.options.id
2939
- }), this.injectNavigate = () => X({ from: q().routesById[this.options.id].fullPath }), this.options = e;
2939
+ }), this.injectNavigate = () => An({ from: J().routesById[this.options.id].fullPath }), this.options = e;
2940
2940
  }
2941
2941
  };
2942
2942
  function Kn(e) {
@@ -3017,13 +3017,13 @@ function $n() {
3017
3017
  //#endregion
3018
3018
  //#region src/injectRouterState.ts
3019
3019
  function er(e) {
3020
- let t = q({ warn: e?.router === void 0 }), n = e?.router ?? t;
3021
- return e?.select ? J(n.stores.__store, e.select, { equal: k }) : J(n.stores.__store);
3020
+ let t = J({ warn: e?.router === void 0 }), n = e?.router ?? t;
3021
+ return e?.select ? Y(n.stores.__store, e.select, { equal: k }) : Y(n.stores.__store);
3022
3022
  }
3023
3023
  //#endregion
3024
3024
  //#region src/renderer/injectIsCatchingError.ts
3025
3025
  function tr({ matchId: e }) {
3026
- let t = q(), r = er({ select: (e) => e.matches }), i = n.computed(() => r().findIndex((t) => t.id === e()));
3026
+ let t = J(), r = er({ select: (e) => e.matches }), i = n.computed(() => r().findIndex((t) => t.id === e()));
3027
3027
  return n.computed(() => {
3028
3028
  if (t.options.defaultErrorComponent != null) return;
3029
3029
  let e = i();
@@ -3068,7 +3068,7 @@ var nr = {
3068
3068
  }
3069
3069
  };
3070
3070
  function ir({ parentRouteIsRoot: e }) {
3071
- let t = q({ warn: !1 }), n = g(s), r = g(a), i = J(t.stores.resolvedLocation, (e) => e?.state?.__TSR_key), o = J(t.stores.loadedAt, (e) => e), c, l = 0;
3071
+ let t = J({ warn: !1 }), n = g(s), r = g(a), i = Y(t.stores.resolvedLocation, (e) => e?.state?.__TSR_key), o = Y(t.stores.loadedAt, (e) => e), c, l = 0;
3072
3072
  r.onDestroy(() => {
3073
3073
  l++;
3074
3074
  }), h(() => {
@@ -3080,14 +3080,14 @@ function ir({ parentRouteIsRoot: e }) {
3080
3080
  let n = t.latestLocation.href;
3081
3081
  c !== void 0 && c === n || (c = n, t.emit({
3082
3082
  type: "onRendered",
3083
- ...G(t.stores.location.get(), t.stores.resolvedLocation.get())
3083
+ ...K(t.stores.location.get(), t.stores.resolvedLocation.get())
3084
3084
  }));
3085
3085
  } }, { injector: n });
3086
3086
  });
3087
3087
  }
3088
3088
  var ar = class e {
3089
3089
  constructor() {
3090
- this.matchId = _.required(), this.router = q(), this.match = m(() => this.matchSignal()), this.matchSignal = J(() => this.router.stores.matchStores.get(this.matchId()) ?? nr, (e) => e), this.matchData = m(() => {
3090
+ this.matchId = _.required(), this.router = J(), this.match = m(() => this.matchSignal()), this.matchSignal = Y(() => this.router.stores.matchStores.get(this.matchId()) ?? nr, (e) => e), this.matchData = m(() => {
3091
3091
  let e = this.match();
3092
3092
  if (!e) return null;
3093
3093
  let t = e.routeId, n = this.router.routesById[t], r = n.parentRoute?.id ?? null, i = (n.options.remountDeps ?? this.router.options.defaultRemountDeps)?.({
@@ -3102,16 +3102,16 @@ var ar = class e {
3102
3102
  match: e,
3103
3103
  parentRouteId: r
3104
3104
  };
3105
- }), this.isFistRouteInRouteTree = m(() => this.matchData()?.parentRouteId === L), this.resolvedNoSsr = m(() => {
3105
+ }), this.isFistRouteInRouteTree = m(() => this.matchData()?.parentRouteId === z), this.resolvedNoSsr = m(() => {
3106
3106
  let e = this.matchData()?.match;
3107
3107
  return e ? e.ssr === !1 || e.ssr === "data-only" : !0;
3108
3108
  }), this.shouldClientOnly = m(() => {
3109
3109
  let e = this.matchData()?.match;
3110
3110
  return e ? this.resolvedNoSsr() || !!e._displayPending : !0;
3111
- }), this.parentRouteIdSignal = m(() => this.matchData()?.parentRouteId ?? ""), this.rootRouteIdSignal = m(() => L), this.hasPendingMatch = m(() => {
3111
+ }), this.parentRouteIdSignal = m(() => this.matchData()?.parentRouteId ?? ""), this.rootRouteIdSignal = m(() => z), this.hasPendingMatch = m(() => {
3112
3112
  let e = this.matchData()?.route.id;
3113
3113
  return e ? !!this.pendingRouteIds()[e] : !1;
3114
- }), this.pendingRouteIds = J(this.router.stores.pendingRouteIds, (e) => e), this.nearestMatchContext = {
3114
+ }), this.pendingRouteIds = Y(this.router.stores.pendingRouteIds, (e) => e), this.nearestMatchContext = {
3115
3115
  matchId: this.matchId,
3116
3116
  routeId: m(() => this.matchData()?.route.id),
3117
3117
  match: this.match,
@@ -3146,7 +3146,7 @@ var ar = class e {
3146
3146
  key: e.key,
3147
3147
  component: t,
3148
3148
  providers: [{
3149
- provide: K,
3149
+ provide: q,
3150
3150
  useValue: this.nearestMatchContext
3151
3151
  }]
3152
3152
  } : { component: Z(n.options.pendingComponent) ?? Z(this.router.options.defaultPendingComponent) };
@@ -3156,12 +3156,12 @@ var ar = class e {
3156
3156
  key: e.key,
3157
3157
  component: t,
3158
3158
  providers: [{
3159
- provide: K,
3159
+ provide: q,
3160
3160
  useValue: this.nearestMatchContext
3161
3161
  }]
3162
3162
  };
3163
3163
  }
3164
- }), this.onRendered = ir({ parentRouteIsRoot: m(() => this.parentRouteIdSignal() === L) });
3164
+ }), this.onRendered = ir({ parentRouteIsRoot: m(() => this.parentRouteIdSignal() === z) });
3165
3165
  }
3166
3166
  static {
3167
3167
  this.ɵfac = function(t) {
@@ -3190,10 +3190,10 @@ var ar = class e {
3190
3190
  }
3191
3191
  }, or = class e {
3192
3192
  constructor() {
3193
- this.router = q(), this.nearestMatch = g(K), this.currentMatch = J(() => {
3193
+ this.router = J(), this.nearestMatch = g(q), this.currentMatch = Y(() => {
3194
3194
  let e = this.nearestMatch.matchId();
3195
3195
  return e ? this.router.stores.matchStores.get(e) ?? nr : nr;
3196
- }, (e) => e), this.routeId = m(() => this.currentMatch()?.routeId), this.route = m(() => this.router.routesById[this.routeId()]), this.parentGlobalNotFound = m(() => this.currentMatch()?.globalNotFound ?? !1), this.childMatchIdByRouteId = J(this.router.stores.childMatchIdByRouteId, (e) => e), this.childMatchId = m(() => {
3196
+ }, (e) => e), this.routeId = m(() => this.currentMatch()?.routeId), this.route = m(() => this.router.routesById[this.routeId()]), this.parentGlobalNotFound = m(() => this.currentMatch()?.globalNotFound ?? !1), this.childMatchIdByRouteId = Y(this.router.stores.childMatchIdByRouteId, (e) => e), this.childMatchId = m(() => {
3197
3197
  let e = this.routeId();
3198
3198
  return e ? this.childMatchIdByRouteId()[e] ?? null : null;
3199
3199
  }), this.render = Jn(() => this.parentGlobalNotFound() ? { component: sr(this.router, this.route()) } : this.childMatchId() ? {
@@ -3240,7 +3240,7 @@ function lr(e) {
3240
3240
  //#region src/ssr-scroll-restoration.ts
3241
3241
  var ur = "data-tsr-scroll-restoration-inline";
3242
3242
  function dr() {
3243
- let e = q(), t = g(i), n = g(s);
3243
+ let e = J(), t = g(i), n = g(s);
3244
3244
  e.isServer && f(() => {
3245
3245
  let n = e.options.scrollRestoration;
3246
3246
  if (!n || typeof n == "function" && !n({ location: e.latestLocation }) || t.querySelector(`script[${ur}]`)) return;
@@ -3259,9 +3259,9 @@ var fr = {
3259
3259
  mounted: !1
3260
3260
  };
3261
3261
  function pr() {
3262
- let e = q(), t = n.inject(n.EnvironmentInjector);
3262
+ let e = J(), t = n.inject(n.EnvironmentInjector);
3263
3263
  if (e.isServer) return;
3264
- let r = n.inject(n.DestroyRef), i = !1, a = J(e.stores.isLoading, (e) => e), o = J(e.stores.isTransitioning, (e) => e), s = J(e.stores.hasPending, (e) => e), c = J(e.stores.status, (e) => e), l = J(e.stores.location, (e) => e), u = J(e.stores.resolvedLocation, (e) => e), d = n.computed(() => a() || o() || s()), f = n.computed(() => a() || s()), p = mr(() => a()), m = mr(() => d()), h = mr(() => f());
3264
+ let r = n.inject(n.DestroyRef), i = !1, a = Y(e.stores.isLoading, (e) => e), o = Y(e.stores.isTransitioning, (e) => e), s = Y(e.stores.hasPending, (e) => e), c = Y(e.stores.status, (e) => e), l = Y(e.stores.location, (e) => e), u = Y(e.stores.resolvedLocation, (e) => e), d = n.computed(() => a() || o() || s()), f = n.computed(() => a() || s()), p = mr(() => a()), m = mr(() => d()), h = mr(() => f());
3265
3265
  e.startTransition = (r) => {
3266
3266
  e.stores.isTransitioning.set(!0);
3267
3267
  let a = () => {
@@ -3284,7 +3284,7 @@ function pr() {
3284
3284
  state: !0,
3285
3285
  _includeValidateSearch: !0
3286
3286
  });
3287
- F(e.latestLocation.href) !== F(t.href) && e.commitLocation({
3287
+ I(e.latestLocation.href) !== I(t.href) && e.commitLocation({
3288
3288
  ...t,
3289
3289
  replace: !0
3290
3290
  });
@@ -3309,24 +3309,24 @@ function pr() {
3309
3309
  if (_()) try {
3310
3310
  p() && !a() && e.emit({
3311
3311
  type: "onLoad",
3312
- ...G(l(), u())
3312
+ ...K(l(), u())
3313
3313
  });
3314
3314
  } catch {}
3315
3315
  }), n.effect(() => {
3316
3316
  if (_()) try {
3317
3317
  h() && !f() && e.emit({
3318
3318
  type: "onBeforeRouteMount",
3319
- ...G(l(), u())
3319
+ ...K(l(), u())
3320
3320
  });
3321
3321
  } catch {}
3322
3322
  }), n.effect(() => {
3323
3323
  if (_()) try {
3324
3324
  if (m() && !d() && c() === "pending" && (e.stores.status.set("idle"), e.stores.resolvedLocation.set(l())), m() && !d()) {
3325
- let t = G(l(), u());
3325
+ let t = K(l(), u());
3326
3326
  e.emit({
3327
3327
  type: "onResolved",
3328
3328
  ...t
3329
- }), t.hrefChanged && vn(e);
3329
+ }), t.hrefChanged && _n(e);
3330
3330
  }
3331
3331
  } catch {}
3332
3332
  });
@@ -3342,7 +3342,7 @@ function mr(e) {
3342
3342
  //#region src/Matches.ts
3343
3343
  var hr = class e {
3344
3344
  constructor() {
3345
- this.router = q(), this.matchId = J(this.router.stores.firstId, (e) => e), this.ssrScrollRestoration = dr(), this.transitioner = pr(), this.render = Jn(() => {
3345
+ this.router = J(), this.matchId = Y(this.router.stores.firstId, (e) => e), this.ssrScrollRestoration = dr(), this.transitioner = pr(), this.render = Jn(() => {
3346
3346
  let e = this.matchId();
3347
3347
  return e ? {
3348
3348
  component: ar,
@@ -3383,7 +3383,7 @@ function vr(e) {
3383
3383
  function yr({ router: e, context: t, options: n }) {
3384
3384
  return [
3385
3385
  {
3386
- provide: Tn(),
3386
+ provide: wn(),
3387
3387
  useValue: e
3388
3388
  },
3389
3389
  {
@@ -3398,7 +3398,7 @@ function yr({ router: e, context: t, options: n }) {
3398
3398
  }
3399
3399
  var br = class e {
3400
3400
  constructor() {
3401
- this.injectedContext = g(gr), this.injectedOptions = g(_r), this.injectedRouter = g(Tn(), { optional: !0 }), this.context = _(this.injectedContext), this.options = _(this.injectedOptions), this.routerInput = _(void 0, { alias: "router" }), this.router = m(() => {
3401
+ this.injectedContext = g(gr), this.injectedOptions = g(_r), this.injectedRouter = g(wn(), { optional: !0 }), this.context = _(this.injectedContext), this.options = _(this.injectedOptions), this.routerInput = _(void 0, { alias: "router" }), this.router = m(() => {
3402
3402
  let e = this.routerInput();
3403
3403
  if (e) return e;
3404
3404
  if (this.injectedRouter) return this.injectedRouter;
@@ -3418,7 +3418,7 @@ var br = class e {
3418
3418
  return {
3419
3419
  component: hr,
3420
3420
  providers: [{
3421
- provide: Tn(),
3421
+ provide: wn(),
3422
3422
  useValue: e
3423
3423
  }]
3424
3424
  };
@@ -3629,7 +3629,7 @@ function Br(e, t) {
3629
3629
  type: "application/ld+json",
3630
3630
  nonce: t
3631
3631
  },
3632
- children: he(e)
3632
+ children: ge(e)
3633
3633
  });
3634
3634
  } catch {}
3635
3635
  continue;
@@ -3744,11 +3744,16 @@ function Xr(e, t) {
3744
3744
  }
3745
3745
  //#endregion
3746
3746
  //#region src/document/install-unified-document-sync.ts
3747
- function Zr({ document: e, initialTitle: t, headCollection: n, bodyCollection: r, nextContent: i }) {
3747
+ function Zr(e) {
3748
+ return !!e?.head && !!e?.body;
3749
+ }
3750
+ function Qr({ document: e, initialTitle: t, headCollection: n, bodyCollection: r, nextContent: i }) {
3748
3751
  i.title === void 0 ? e.title = t : e.title = i.title, n.sync(i.head), r.sync(i.body);
3749
3752
  }
3750
- function Qr(e) {
3751
- let t = n.inject(n.DOCUMENT), r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = J(e.stores.matches, (e) => e), o = r?.createRenderer(null, null) ?? null, s = t.title, c = Dr({
3753
+ function $r(e) {
3754
+ let t = n.inject(n.DOCUMENT);
3755
+ if (!Zr(t)) return;
3756
+ let r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = Y(e.stores.matches, (e) => e), o = r?.createRenderer(null, null) ?? null, s = t.title, c = Dr({
3752
3757
  root: t.head,
3753
3758
  bucket: "head",
3754
3759
  renderer: o
@@ -3759,7 +3764,7 @@ function Qr(e) {
3759
3764
  }), u = Ir(e), d = () => Lr($(e), u);
3760
3765
  c.mount(), l.mount();
3761
3766
  let f = d();
3762
- Zr({
3767
+ Qr({
3763
3768
  document: t,
3764
3769
  initialTitle: s,
3765
3770
  headCollection: c,
@@ -3769,7 +3774,7 @@ function Qr(e) {
3769
3774
  let p = n.effect(() => {
3770
3775
  a();
3771
3776
  let e = d();
3772
- Yr(f, e) || (f = e, Zr({
3777
+ Yr(f, e) || (f = e, Qr({
3773
3778
  document: t,
3774
3779
  initialTitle: s,
3775
3780
  headCollection: c,
@@ -3783,8 +3788,10 @@ function Qr(e) {
3783
3788
  }
3784
3789
  //#endregion
3785
3790
  //#region src/document/provide-tanstack-body-managed-tags.ts
3786
- function $r(e) {
3787
- let t = n.inject(n.DOCUMENT), r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = J(e.stores.matches, (e) => e), o = Ir(e), s = () => o.length === 0 ? $(e).body : Tr([...o, ...$(e).body]), c = r?.createRenderer(null, null) ?? null, l = Dr({
3791
+ function ei(e) {
3792
+ let t = n.inject(n.DOCUMENT);
3793
+ if (!t.body) return;
3794
+ let r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = Y(e.stores.matches, (e) => e), o = Ir(e), s = () => o.length === 0 ? $(e).body : Tr([...o, ...$(e).body]), c = r?.createRenderer(null, null) ?? null, l = Dr({
3788
3795
  root: t.body,
3789
3796
  bucket: "body",
3790
3797
  renderer: c
@@ -3801,19 +3808,19 @@ function $r(e) {
3801
3808
  d.destroy(), l.destroy();
3802
3809
  });
3803
3810
  }
3804
- function ei() {
3805
- $r(n.inject(Q));
3811
+ function ti() {
3812
+ ei(n.inject(Q));
3806
3813
  }
3807
- function ti(e) {
3814
+ function ni(e) {
3808
3815
  return n.makeEnvironmentProviders([{
3809
3816
  provide: Q,
3810
3817
  useValue: e
3811
- }, n.provideEnvironmentInitializer(ei)]);
3818
+ }, n.provideEnvironmentInitializer(ti)]);
3812
3819
  }
3813
3820
  //#endregion
3814
3821
  //#region src/document/provide-tanstack-document-title.ts
3815
- function ni(e) {
3816
- let t = n.inject(n.DOCUMENT), r = n.inject(n.DestroyRef), i = J(e.stores.matches, (e) => e), a = t.title, o = $(e).title, s = (e) => {
3822
+ function ri(e) {
3823
+ let t = n.inject(n.DOCUMENT), r = n.inject(n.DestroyRef), i = Y(e.stores.matches, (e) => e), a = t.title, o = $(e).title, s = (e) => {
3817
3824
  e === void 0 ? t.title = a : t.title = e;
3818
3825
  };
3819
3826
  s(o);
@@ -3826,19 +3833,21 @@ function ni(e) {
3826
3833
  c.destroy(), t.title = a;
3827
3834
  });
3828
3835
  }
3829
- function ri() {
3830
- ni(n.inject(Q));
3836
+ function ii() {
3837
+ ri(n.inject(Q));
3831
3838
  }
3832
- function ii(e) {
3839
+ function ai(e) {
3833
3840
  return n.makeEnvironmentProviders([{
3834
3841
  provide: Q,
3835
3842
  useValue: e
3836
- }, n.provideEnvironmentInitializer(ri)]);
3843
+ }, n.provideEnvironmentInitializer(ii)]);
3837
3844
  }
3838
3845
  //#endregion
3839
3846
  //#region src/document/provide-tanstack-head-managed-tags.ts
3840
- function ai(e) {
3841
- let t = n.inject(n.DOCUMENT), r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = J(e.stores.matches, (e) => e), o = r?.createRenderer(null, null) ?? null, s = Dr({
3847
+ function oi(e) {
3848
+ let t = n.inject(n.DOCUMENT);
3849
+ if (!t.head) return;
3850
+ let r = n.inject(n.RendererFactory2, { optional: !0 }), i = n.inject(n.DestroyRef), a = Y(e.stores.matches, (e) => e), o = r?.createRenderer(null, null) ?? null, s = Dr({
3842
3851
  root: t.head,
3843
3852
  bucket: "head",
3844
3853
  renderer: o
@@ -3855,25 +3864,25 @@ function ai(e) {
3855
3864
  l.destroy(), s.destroy();
3856
3865
  });
3857
3866
  }
3858
- function oi() {
3859
- ai(n.inject(Q));
3867
+ function si() {
3868
+ oi(n.inject(Q));
3860
3869
  }
3861
- function si(e) {
3870
+ function ci(e) {
3862
3871
  return n.makeEnvironmentProviders([{
3863
3872
  provide: Q,
3864
3873
  useValue: e
3865
- }, n.provideEnvironmentInitializer(oi)]);
3874
+ }, n.provideEnvironmentInitializer(si)]);
3866
3875
  }
3867
3876
  //#endregion
3868
3877
  //#region src/document/provide-tanstack-document.ts
3869
- var ci = {
3878
+ var li = {
3870
3879
  title: !0,
3871
3880
  headTags: !0,
3872
3881
  bodyScripts: !0
3873
3882
  };
3874
- function li(e, t = {}) {
3883
+ function ui(e, t = {}) {
3875
3884
  let r = {
3876
- ...ci,
3885
+ ...li,
3877
3886
  ...t
3878
3887
  }, i = r.title && r.headTags && r.bodyScripts;
3879
3888
  return n.makeEnvironmentProviders([{
@@ -3881,41 +3890,41 @@ function li(e, t = {}) {
3881
3890
  useValue: e
3882
3891
  }, n.provideEnvironmentInitializer(() => {
3883
3892
  if (i) {
3884
- Qr(e);
3893
+ $r(e);
3885
3894
  return;
3886
3895
  }
3887
- r.title && ni(e), r.headTags && ai(e), r.bodyScripts && $r(e);
3896
+ r.title && ri(e), r.headTags && oi(e), r.bodyScripts && ei(e);
3888
3897
  })]);
3889
3898
  }
3890
- function ui(e) {
3891
- return li(e);
3899
+ function di(e) {
3900
+ return ui(e);
3892
3901
  }
3893
3902
  //#endregion
3894
3903
  //#region src/injectMatches.ts
3895
- function di(e) {
3896
- return J(q().stores.matches, (t) => {
3904
+ function fi(e) {
3905
+ return Y(J().stores.matches, (t) => {
3897
3906
  let n = t;
3898
3907
  return e?.select ? e.select(n) : n;
3899
3908
  }, { equal: k });
3900
3909
  }
3901
- function fi(e) {
3902
- let t = n.inject(K);
3903
- return di({ select: (n) => {
3910
+ function pi(e) {
3911
+ let t = n.inject(q);
3912
+ return fi({ select: (n) => {
3904
3913
  let r = n.slice(0, n.findIndex((e) => e.id === t.matchId()));
3905
3914
  return e?.select ? e.select(r) : r;
3906
3915
  } });
3907
3916
  }
3908
- function pi(e) {
3909
- let t = n.inject(K);
3910
- return di({ select: (n) => {
3917
+ function mi(e) {
3918
+ let t = n.inject(q);
3919
+ return fi({ select: (n) => {
3911
3920
  let r = n.slice(n.findIndex((e) => e.id === t.matchId()) + 1);
3912
3921
  return e?.select ? e.select(r) : r;
3913
3922
  } });
3914
3923
  }
3915
3924
  //#endregion
3916
3925
  //#region src/injectMatchRoute.ts
3917
- function mi() {
3918
- let e = q(), t = J(e.stores.matchRouteDeps, (e) => e);
3926
+ function hi() {
3927
+ let e = J(), t = Y(e.stores.matchRouteDeps, (e) => e);
3919
3928
  return (r) => n.computed(() => {
3920
3929
  let { pending: n, caseSensitive: i, fuzzy: a, includeSearch: o, ...s } = r;
3921
3930
  return t(), e.matchRoute(s, {
@@ -3928,20 +3937,20 @@ function mi() {
3928
3937
  }
3929
3938
  //#endregion
3930
3939
  //#region src/injectIsShell.ts
3931
- function hi() {
3932
- let e = q();
3940
+ function gi() {
3941
+ let e = J();
3933
3942
  return m(() => e.isShell());
3934
3943
  }
3935
3944
  //#endregion
3936
3945
  //#region src/injectLocation.ts
3937
- function gi(e) {
3938
- let t = q();
3939
- return e?.select ? J(t.stores.location, e.select, { equal: k }) : J(t.stores.location);
3946
+ function _i(e) {
3947
+ let t = J();
3948
+ return e?.select ? Y(t.stores.location, e.select, { equal: k }) : Y(t.stores.location);
3940
3949
  }
3941
3950
  //#endregion
3942
3951
  //#region src/injectBlocker.ts
3943
- function _i(e) {
3944
- let { shouldBlockFn: t, enableBeforeUnload: r = !0, disabled: i = !1, withResolver: a = !1 } = e, o = q(), { history: s } = o, c = n.signal({
3952
+ function vi(e) {
3953
+ let { shouldBlockFn: t, enableBeforeUnload: r = !0, disabled: i = !1, withResolver: a = !1 } = e, o = J(), { history: s } = o, c = n.signal({
3945
3954
  status: "idle",
3946
3955
  current: void 0,
3947
3956
  next: void 0,
@@ -4003,12 +4012,12 @@ function _i(e) {
4003
4012
  }
4004
4013
  //#endregion
4005
4014
  //#region src/injectCanGoBack.ts
4006
- function vi() {
4007
- return J(q().stores.location, (e) => (e.state?.__TSR_index ?? 0) !== 0);
4015
+ function yi() {
4016
+ return Y(J().stores.location, (e) => (e.state?.__TSR_index ?? 0) !== 0);
4008
4017
  }
4009
4018
  //#endregion
4010
4019
  //#region src/injectIntersectionObserver.ts
4011
- function yi(e, t, r) {
4020
+ function bi(e, t, r) {
4012
4021
  let i = n.inject(n.ElementRef);
4013
4022
  n.afterRenderEffect((n) => {
4014
4023
  let a = typeof IntersectionObserver == "function", o = i.nativeElement;
@@ -4021,9 +4030,9 @@ function yi(e, t, r) {
4021
4030
  }
4022
4031
  //#endregion
4023
4032
  //#region src/Link.ts
4024
- var bi = class e {
4033
+ var xi = class e {
4025
4034
  constructor() {
4026
- this.passiveEvents = Si(() => ({ touchstart: this.handleTouchStart })), this.options = _.required({ alias: "link" }), this.router = q(), this.isTransitioning = S(!1), this.from = m(() => C(() => this.options().from)), this.disabled = m(() => this._options().disabled ?? !1), this.target = m(() => this._options().target), this._options = m(() => ({
4035
+ this.passiveEvents = Ci(() => ({ touchstart: this.handleTouchStart })), this.options = _.required({ alias: "link" }), this.router = J(), this.isTransitioning = S(!1), this.from = m(() => C(() => this.options().from)), this.disabled = m(() => this._options().disabled ?? !1), this.target = m(() => this._options().target), this._options = m(() => ({
4027
4036
  ...this.options(),
4028
4037
  from: this.from()
4029
4038
  })), this.nextLocation = m(() => {
@@ -4045,16 +4054,16 @@ var bi = class e {
4045
4054
  try {
4046
4055
  return new URL(this.options().to), this.options().to;
4047
4056
  } catch {}
4048
- }), this.preload = m(() => this.options().reloadDocument ? !1 : this.options().preload ?? this.router.options.defaultPreload), this.preloadDelay = m(() => this.options().preloadDelay ?? this.router.options.defaultPreloadDelay ?? 0), this.location = gi(), this.isActiveProps = m(() => {
4057
+ }), this.preload = m(() => this.options().reloadDocument ? !1 : this.options().preload ?? this.router.options.defaultPreload), this.preloadDelay = m(() => this.options().preloadDelay ?? this.router.options.defaultPreloadDelay ?? 0), this.location = _i(), this.isActiveProps = m(() => {
4049
4058
  let e = this.options(), t = this.isActive() ? e.activeProps : e.inactiveProps;
4050
4059
  if (!(!t || typeof t != "object")) return t;
4051
4060
  }), this.isActive = m(() => {
4052
4061
  if (this.externalLink()) return !1;
4053
4062
  let e = this.options().activeOptions;
4054
4063
  if (e?.exact) {
4055
- if (!qe(this.location().pathname, this.nextLocation().pathname, this.router.basepath)) return !1;
4064
+ if (!Ke(this.location().pathname, this.nextLocation().pathname, this.router.basepath)) return !1;
4056
4065
  } else {
4057
- let e = Ke(this.location().pathname, this.router.basepath), t = Ke(this.nextLocation().pathname, this.router.basepath);
4066
+ let e = Ge(this.location().pathname, this.router.basepath), t = Ge(this.nextLocation().pathname, this.router.basepath);
4058
4067
  if (!(e.startsWith(t) && (e.length === t.length || e[t.length] === "/"))) return !1;
4059
4068
  }
4060
4069
  return (e?.includeSearch ?? !0) && !k(this.location().search, this.nextLocation().search, {
@@ -4063,15 +4072,15 @@ var bi = class e {
4063
4072
  }) ? !1 : e?.includeHash ? this.location().hash === this.nextLocation().hash : !0;
4064
4073
  }), this.doPreload = () => {
4065
4074
  this.router.preloadRoute(this.options()).catch((e) => {
4066
- console.warn(e), console.warn(fn);
4075
+ console.warn(e), console.warn(dn);
4067
4076
  });
4068
4077
  }, this.preloadViewportIoCallback = (e) => {
4069
4078
  e?.isIntersecting && this.doPreload();
4070
- }, this.viewportPreloader = yi(this.preloadViewportIoCallback, { rootMargin: "100px" }, () => !!this._options().disabled || this.preload() !== "viewport"), this.hasRenderFetched = !1, this.rendererPreloader = h(() => {
4079
+ }, this.viewportPreloader = bi(this.preloadViewportIoCallback, { rootMargin: "100px" }, () => !!this._options().disabled || this.preload() !== "viewport"), this.hasRenderFetched = !1, this.rendererPreloader = h(() => {
4071
4080
  this.hasRenderFetched || !this._options().disabled && this.preload() === "render" && (this.doPreload(), this.hasRenderFetched = !0);
4072
4081
  }), this.handleClick = (e) => {
4073
4082
  let t = e.currentTarget.getAttribute("target"), n = this._options().target, r = n === void 0 ? t : n;
4074
- if (!this._options().disabled && !xi(e) && !e.defaultPrevented && (!r || r === "_self") && e.button === 0) {
4083
+ if (!this._options().disabled && !Si(e) && !e.defaultPrevented && (!r || r === "_self") && e.button === 0) {
4075
4084
  e.preventDefault(), this.isTransitioning.set(!0);
4076
4085
  let t = this.router.subscribe("onResolved", () => {
4077
4086
  t(), this.isTransitioning.set(!1);
@@ -4136,10 +4145,10 @@ var bi = class e {
4136
4145
  });
4137
4146
  }
4138
4147
  };
4139
- function xi(e) {
4148
+ function Si(e) {
4140
4149
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
4141
4150
  }
4142
- function Si(e) {
4151
+ function Ci(e) {
4143
4152
  let t = g(o).nativeElement, n = g(a), r = g(u), i = [];
4144
4153
  f(() => {
4145
4154
  for (let [n, a] of Object.entries(e())) {
@@ -4151,4 +4160,4 @@ function Si(e) {
4151
4160
  });
4152
4161
  }
4153
4162
  //#endregion
4154
- export { Gn as LazyRoute, bi as Link, hr as Matches, Vn as NotFoundRoute, or as Outlet, zn as RootRoute, In as Route, Fn as RouteApi, ar as RouteMatch, Sn as Router, br as RouterProvider, Rr as buildManagedDocumentContent, $ as buildMatchManagedDocumentContent, qt as createBrowserHistory, Un as createFileRoute, Jt as createHashHistory, Gt as createHistory, qn as createLazyFileRoute, Kn as createLazyRoute, Yt as createMemoryHistory, Hn as createRootRoute, Rn as createRootRouteWithContext, Ln as createRoute, Bn as createRouteMask, xn as createRouter, gn as createRouterConfig, Pn as getRouteApi, _i as injectBlocker, vi as injectCanGoBack, pi as injectChildMatches, $n as injectErrorState, hi as injectIsShell, kn as injectLoaderData, An as injectLoaderDeps, gi as injectLocation, Y as injectMatch, mi as injectMatchRoute, di as injectMatches, X as injectNavigate, jn as injectParams, fi as injectParentMatches, Mn as injectRouteContext, q as injectRouter, er as injectRouterState, Nn as injectSearch, dr as injectSsrScrollRestorationScript, J as injectStore, R as isRedirect, rn as lazyFn, $e as notFound, ui as provideHeadContent, ti as provideTanstackBodyManagedTags, li as provideTanstackDocument, ii as provideTanstackDocumentTitle, si as provideTanstackHeadManagedTags, yr as provideTanstackRouter, _t as redirect, _n as retainSearchParams };
4163
+ export { Gn as LazyRoute, xi as Link, hr as Matches, Vn as NotFoundRoute, or as Outlet, zn as RootRoute, In as Route, Fn as RouteApi, ar as RouteMatch, xn as Router, br as RouterProvider, Rr as buildManagedDocumentContent, $ as buildMatchManagedDocumentContent, Kt as createBrowserHistory, Un as createFileRoute, qt as createHashHistory, Wt as createHistory, qn as createLazyFileRoute, Kn as createLazyRoute, Jt as createMemoryHistory, Hn as createRootRoute, Rn as createRootRouteWithContext, Ln as createRoute, Bn as createRouteMask, bn as createRouter, hn as createRouterConfig, Pn as getRouteApi, vi as injectBlocker, yi as injectCanGoBack, mi as injectChildMatches, $n as injectErrorState, gi as injectIsShell, On as injectLoaderData, kn as injectLoaderDeps, _i as injectLocation, X as injectMatch, hi as injectMatchRoute, fi as injectMatches, An as injectNavigate, jn as injectParams, pi as injectParentMatches, Mn as injectRouteContext, J as injectRouter, er as injectRouterState, Nn as injectSearch, dr as injectSsrScrollRestorationScript, Y as injectStore, B as isRedirect, nn as lazyFn, Qe as notFound, di as provideHeadContent, ni as provideTanstackBodyManagedTags, ui as provideTanstackDocument, ai as provideTanstackDocumentTitle, ci as provideTanstackHeadManagedTags, yr as provideTanstackRouter, ht as redirect, gn as retainSearchParams };