likec4 1.59.2 → 1.59.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/__app__/src/chunks/AIChat.mjs +118 -123
  2. package/__app__/src/chunks/LikeC4Styles.mjs +828 -686
  3. package/__app__/src/chunks/ProjectsOverview.mjs +82 -82
  4. package/__app__/src/chunks/es.mjs +1 -1
  5. package/__app__/src/chunks/hooks.mjs +164 -135
  6. package/__app__/src/chunks/libs/@floating-ui.mjs +649 -335
  7. package/__app__/src/chunks/libs/@mantine.mjs +2934 -2040
  8. package/__app__/src/chunks/libs/@tanstack-ai.mjs +28 -28
  9. package/__app__/src/chunks/libs/@tanstack.mjs +46 -51
  10. package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
  11. package/__app__/src/chunks/libs/@xyflow/react.mjs +535 -448
  12. package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
  13. package/__app__/src/chunks/libs/d3.mjs +20 -45
  14. package/__app__/src/chunks/libs/fast-equals.mjs +62 -50
  15. package/__app__/src/chunks/libs/framer.mjs +300 -279
  16. package/__app__/src/chunks/libs/zod.mjs +17 -14
  17. package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
  18. package/__app__/src/chunks/styled-system.mjs +2580 -132
  19. package/__app__/src/main.mjs +24925 -23485
  20. package/__app__/src/style.css +1 -1
  21. package/config/schema.json +49 -0
  22. package/dist/app/render-view-client.css +1 -0
  23. package/dist/app/render-view-client.js +739 -0
  24. package/dist/chunks/enableServer.mjs +1 -1
  25. package/dist/chunks/filenames.mjs +7 -6
  26. package/dist/chunks/index.d.mts +18 -1
  27. package/dist/chunks/index2.d.mts +79 -26
  28. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  29. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
  30. package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
  31. package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
  32. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  33. package/dist/chunks/libs/birpc.mjs +1 -1
  34. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  35. package/dist/chunks/libs/chevrotain.mjs +16 -16
  36. package/dist/chunks/libs/json5.mjs +3 -3
  37. package/dist/chunks/libs/langium.d.mts +1777 -16
  38. package/dist/chunks/libs/langium.mjs +11 -11
  39. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  40. package/dist/chunks/libs/p-queue.mjs +1 -1
  41. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  42. package/dist/chunks/libs/pako.mjs +2 -2
  43. package/dist/chunks/libs/picomatch.mjs +1 -1
  44. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  45. package/dist/chunks/libs/remeda.mjs +1 -1
  46. package/dist/chunks/libs/ufo.mjs +1 -1
  47. package/dist/chunks/libs/unstorage.mjs +1 -1
  48. package/dist/chunks/libs/zod.d.mts +1717 -17
  49. package/dist/chunks/libs/zod.mjs +4 -4
  50. package/dist/chunks/node.mjs +68 -57
  51. package/dist/chunks/rolldown-runtime.mjs +1 -1
  52. package/dist/chunks/sequence-view.mjs +1 -1
  53. package/dist/chunks/vite-plugin.mjs +168 -54
  54. package/dist/cli/index.d.mts +1 -1
  55. package/dist/cli/index.mjs +291 -165
  56. package/dist/config/index.d.mts +7 -1
  57. package/dist/config/index.mjs +1 -1
  58. package/dist/index.d.mts +3 -3
  59. package/dist/index.mjs +1 -1
  60. package/dist/model/index.d.mts +4 -4
  61. package/dist/vite-plugin/index.d.mts +2 -2
  62. package/dist/vite-plugin/internal/index.d.mts +72 -35
  63. package/dist/vite-plugin/internal/index.mjs +125 -44
  64. package/package.json +47 -47
  65. package/react/index.d.mts +22767 -1432
  66. package/react/index.mjs +38152 -32309
  67. package/vite-plugin-modules.d.ts +21 -1
  68. package/dist/chunks/dist.mjs +0 -10
  69. package/dist/chunks/logger.mjs +0 -1
@@ -186,13 +186,11 @@ function buildAssistantMessages(e) {
186
186
  }
187
187
  });
188
188
  break;
189
- case "tool-result":
190
- flushSegment(), (i.state === "complete" || i.state === "error") && !r.has(i.toolCallId) && (t.push({
191
- role: "tool",
192
- content: i.content,
193
- toolCallId: i.toolCallId
194
- }), r.add(i.toolCallId));
195
- break;
189
+ case "tool-result": flushSegment(), (i.state === "complete" || i.state === "error") && !r.has(i.toolCallId) && (t.push({
190
+ role: "tool",
191
+ content: i.content,
192
+ toolCallId: i.toolCallId
193
+ }), r.add(i.toolCallId));
196
194
  }
197
195
  flushSegment();
198
196
  for (let n of e.parts) if (n.type === "tool-call" && (n.output !== void 0 && !r.has(n.id) && (t.push({
@@ -339,7 +337,7 @@ var f = /* @__PURE__ */ e(((e) => {
339
337
  throw new MalformedJSON(`${e} at position ${i}`);
340
338
  }, parseAny = () => (skipBlank(), i >= n && markPartialJSON("Unexpected end of input"), e[i] === "\"" ? parseStr() : e[i] === "{" ? parseObj() : e[i] === "[" ? parseArr() : e.substring(i, i + 4) === "null" || r.Allow.NULL & t && n - i < 4 && "null".startsWith(e.substring(i)) ? (i += 4, null) : e.substring(i, i + 4) === "true" || r.Allow.BOOL & t && n - i < 4 && "true".startsWith(e.substring(i)) ? (i += 4, !0) : e.substring(i, i + 5) === "false" || r.Allow.BOOL & t && n - i < 5 && "false".startsWith(e.substring(i)) ? (i += 5, !1) : e.substring(i, i + 8) === "Infinity" || r.Allow.INFINITY & t && n - i < 8 && "Infinity".startsWith(e.substring(i)) ? (i += 8, Infinity) : e.substring(i, i + 9) === "-Infinity" || r.Allow._INFINITY & t && 1 < n - i && n - i < 9 && "-Infinity".startsWith(e.substring(i)) ? (i += 9, -Infinity) : e.substring(i, i + 3) === "NaN" || r.Allow.NAN & t && n - i < 3 && "NaN".startsWith(e.substring(i)) ? (i += 3, NaN) : parseNum()), parseStr = () => {
341
339
  let a = i, o = !1;
342
- for (i++; i < n && (e[i] !== "\"" || o && e[i - 1] === "\\");) o = e[i] === "\\" ? !o : !1, i++;
340
+ for (i++; i < n && (e[i] !== "\"" || o && e[i - 1] === "\\");) o = e[i] === "\\" && !o, i++;
343
341
  if (e.charAt(i) == "\"") try {
344
342
  return JSON.parse(e.substring(a, ++i - Number(o)));
345
343
  } catch (e) {
@@ -415,7 +413,7 @@ var f = /* @__PURE__ */ e(((e) => {
415
413
  e.parse = parseJSON;
416
414
  })))(), PartialJSONParser = class {
417
415
  parse(e) {
418
- if (!(!e || e.trim() === "")) try {
416
+ if (e && e.trim() !== "") try {
419
417
  return (0, p.parse)(e);
420
418
  } catch {
421
419
  return;
@@ -490,7 +488,7 @@ function updateToolCallApproval(e, t, n, r) {
490
488
  function updateToolCallWithOutput(e, t, n, r, i) {
491
489
  return e.map((e) => {
492
490
  let a = [...e.parts], o = a.find((e) => e.type === "tool-call" && e.id === t);
493
- return o && (o.output = i ? { error: i } : n, r ? o.state = r : o.state = "input-complete"), {
491
+ return o && (o.output = i ? { error: i } : n, o.state = r || "input-complete"), {
494
492
  ...e,
495
493
  parts: a
496
494
  };
@@ -644,9 +642,7 @@ var ImmediateStrategy = class {
644
642
  case "REASONING_MESSAGE_CONTENT":
645
643
  this.handleReasoningMessageContentEvent(e);
646
644
  break;
647
- case "TOOL_CALL_RESULT":
648
- this.handleToolCallResultEvent(e);
649
- break;
645
+ case "TOOL_CALL_RESULT": this.handleToolCallResultEvent(e);
650
646
  }
651
647
  }
652
648
  createMessageState(e, t) {
@@ -983,7 +979,7 @@ var ImmediateStrategy = class {
983
979
  this.resetStreamState(), this.messages = [];
984
980
  }
985
981
  isWhitespaceOnlyMessage(e) {
986
- return e.parts.length === 0 ? !1 : e.parts.every((e) => e.type === "text" && e.content.trim() === "");
982
+ return e.parts.length !== 0 && e.parts.every((e) => e.type === "text" && e.content.trim() === "");
987
983
  }
988
984
  static async replay(e, t) {
989
985
  return new StreamProcessor(t).process(createReplayStream(e));
@@ -1434,7 +1430,7 @@ var ChatClient = class {
1434
1430
  }
1435
1431
  subscribe(e) {
1436
1432
  let t = e?.restart === !0;
1437
- this.isSubscribed && !t || (this.isSubscribed && t && this.abortSubscriptionLoop(), this.setIsSubscribed(!0), this.setConnectionStatus("connecting"), this.startSubscription());
1433
+ (!this.isSubscribed || t) && (this.isSubscribed && t && this.abortSubscriptionLoop(), this.setIsSubscribed(!0), this.setConnectionStatus("connecting"), this.startSubscription());
1438
1434
  }
1439
1435
  unsubscribe() {
1440
1436
  this.cancelInFlightStream({
@@ -1554,7 +1550,7 @@ function clientTools(...e) {
1554
1550
  return e;
1555
1551
  }
1556
1552
  //#endregion
1557
- //#region ../../node_modules/.pnpm/@tanstack+ai-react@0.8.0_@tanstack+ai@0.14.0_@types+react@19.2.17_react@19.2.7/node_modules/@tanstack/ai-react/dist/esm/use-chat.js
1553
+ //#region ../../node_modules/.pnpm/@tanstack+ai-react@0.8.0_@tanstack+ai@0.14.0_@types+react@19.2.18_react@19.2.8/node_modules/@tanstack/ai-react/dist/esm/use-chat.js
1558
1554
  function useChat(e) {
1559
1555
  let t = i(), c = e.id || t, [l, u] = s(e.initialMessages || []), [d, f] = s(!1), [p, m] = s(void 0), [h, g] = s("ready"), [_, v] = s(!1), [y, b] = s("disconnected"), [x, S] = s(!1), C = o(e.initialMessages || []), w = o(!0);
1560
1556
  C.current = l;
@@ -1647,7 +1643,7 @@ function useChat(e) {
1647
1643
  }
1648
1644
  (/* @__PURE__ */ new Uint8Array(128)).fill(128), t(null);
1649
1645
  //#endregion
1650
- //#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_b3b413828c62030231ee8f54b1bb33f9/node_modules/@tanstack/ai-react-ui/dist/esm/thinking-part.js
1646
+ //#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_faab93d927ce4b35707b996a3d98975c/node_modules/@tanstack/ai-react-ui/dist/esm/thinking-part.js
1651
1647
  function ThinkingPart({ content: e, className: t = "", isComplete: n = !1 }) {
1652
1648
  let [i, a] = s(!1);
1653
1649
  return r(() => {
@@ -1682,22 +1678,26 @@ function ThinkingPart({ content: e, className: t = "", isComplete: n = !1 }) {
1682
1678
  });
1683
1679
  }
1684
1680
  //#endregion
1685
- //#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_b3b413828c62030231ee8f54b1bb33f9/node_modules/@tanstack/ai-react-ui/dist/esm/chat-message.js
1681
+ //#region ../../node_modules/.pnpm/@tanstack+ai-react-ui@0.6.2_@tanstack+ai-client@0.8.0_@tanstack+ai-react@0.8.0_@tanstac_faab93d927ce4b35707b996a3d98975c/node_modules/@tanstack/ai-react-ui/dist/esm/chat-message.js
1686
1682
  function ChatMessage({ message: e, className: t = "", userClassName: n = "", assistantClassName: r = "", textPartRenderer: i, thinkingPartRenderer: a, toolsRenderer: o, defaultToolRenderer: s, toolResultRenderer: c }) {
1683
+ let u = [t, e.role === "user" ? n : r].filter(Boolean).join(" ");
1687
1684
  return /* @__PURE__ */ l("div", {
1688
- className: [t, e.role === "user" ? n : r].filter(Boolean).join(" ") || void 0,
1685
+ className: u || void 0,
1689
1686
  "data-message-id": e.id,
1690
1687
  "data-message-role": e.role,
1691
1688
  "data-message-created": e.createdAt?.toISOString(),
1692
- children: e.parts.map((t, n) => /* @__PURE__ */ l(MessagePart, {
1693
- part: t,
1694
- isThinkingComplete: t.type === "thinking" && e.parts.slice(n + 1).some((e) => e.type === "text"),
1695
- textPartRenderer: i,
1696
- thinkingPartRenderer: a,
1697
- toolsRenderer: o,
1698
- defaultToolRenderer: s,
1699
- toolResultRenderer: c
1700
- }, `${e.id}-part-${n}`))
1689
+ children: e.parts.map((t, n) => {
1690
+ let r = t.type === "thinking" && e.parts.slice(n + 1).some((e) => e.type === "text");
1691
+ return /* @__PURE__ */ l(MessagePart, {
1692
+ part: t,
1693
+ isThinkingComplete: r,
1694
+ textPartRenderer: i,
1695
+ thinkingPartRenderer: a,
1696
+ toolsRenderer: o,
1697
+ defaultToolRenderer: s,
1698
+ toolResultRenderer: c
1699
+ }, `${e.id}-part-${n}`);
1700
+ })
1701
1701
  });
1702
1702
  }
1703
1703
  function MessagePart({ part: e, isThinkingComplete: t, textPartRenderer: n, thinkingPartRenderer: r, toolsRenderer: i, defaultToolRenderer: a, toolResultRenderer: o }) {
@@ -454,7 +454,7 @@ function deepEqual(e, t, n) {
454
454
  let r = n?.ignoreUndefined ?? !0, i = getObjectKeys(e, r), a = getObjectKeys(t, r);
455
455
  return !n?.partial && i.length !== a.length ? !1 : a.every((r) => deepEqual(e[r], t[r], n));
456
456
  }
457
- return Array.isArray(e) && Array.isArray(t) && e.length === t.length ? !e.some((e, r) => !deepEqual(e, t[r], n)) : !1;
457
+ return Array.isArray(e) && Array.isArray(t) ? e.length === t.length && !e.some((e, r) => !deepEqual(e, t[r], n)) : !1;
458
458
  }
459
459
  function createControlledPromise(e) {
460
460
  let t, n, r = new Promise((e, r) => {
@@ -559,7 +559,7 @@ function encodePathParam(e, t) {
559
559
  }
560
560
  function matchPathname(e, t, n) {
561
561
  let r = matchByPath(e, t, n);
562
- if (!(n.to && !r)) return r ?? {};
562
+ if (!n.to || r) return r ?? {};
563
563
  }
564
564
  function removeBasepath(e, t, n = !1) {
565
565
  let r = n ? e : e.toLowerCase(), i = n ? t : t.toLowerCase();
@@ -724,8 +724,10 @@ function setupScrollRestoration(e, t) {
724
724
  //#region ../../node_modules/.pnpm/@tanstack+router-core@1.114.25/node_modules/@tanstack/router-core/dist/esm/qss.js
725
725
  function encode(e, t) {
726
726
  let n, r, i, a = "";
727
- for (n in e) if ((i = e[n]) !== void 0) if (Array.isArray(i)) for (r = 0; r < i.length; r++) a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i[r]);
728
- else a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i);
727
+ for (n in e) if ((i = e[n]) !== void 0) {
728
+ if (Array.isArray(i)) for (r = 0; r < i.length; r++) a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i[r]);
729
+ else a && (a += "&"), a += encodeURIComponent(n) + "=" + encodeURIComponent(i);
730
+ }
729
731
  return (t || "") + a;
730
732
  }
731
733
  function toValue(e) {
@@ -821,7 +823,7 @@ var RouterCore = class {
821
823
  this.options = {
822
824
  ...this.options,
823
825
  ...e
824
- }, this.isServer = this.options.isServer ?? typeof document > "u", this.pathParamsDecodeCharMap = this.options.pathParamsAllowedCharacters ? new Map(this.options.pathParamsAllowedCharacters.map((e) => [encodeURIComponent(e), e])) : void 0, (!this.basepath || e.basepath && e.basepath !== t.basepath) && (e.basepath === void 0 || e.basepath === "" || e.basepath === "/" ? this.basepath = "/" : this.basepath = `/${trimPath(e.basepath)}`), (!this.history || this.options.history && this.options.history !== this.history) && (this.history = this.options.history ?? (this.isServer ? createMemoryHistory({ initialEntries: [this.basepath || "/"] }) : createBrowserHistory()), this.latestLocation = this.parseLocation()), this.options.routeTree !== this.routeTree && (this.routeTree = this.options.routeTree, this.buildRouteTree()), this.__store || (this.__store = new Store(getInitialRouterState(this.latestLocation), { onUpdate: () => {
826
+ }, this.isServer = this.options.isServer ?? typeof document > "u", this.pathParamsDecodeCharMap = this.options.pathParamsAllowedCharacters ? new Map(this.options.pathParamsAllowedCharacters.map((e) => [encodeURIComponent(e), e])) : void 0, (!this.basepath || e.basepath && e.basepath !== t.basepath) && (this.basepath = e.basepath === void 0 || e.basepath === "" || e.basepath === "/" ? "/" : `/${trimPath(e.basepath)}`), (!this.history || this.options.history && this.options.history !== this.history) && (this.history = this.options.history ?? (this.isServer ? createMemoryHistory({ initialEntries: [this.basepath || "/"] }) : createBrowserHistory()), this.latestLocation = this.parseLocation()), this.options.routeTree !== this.routeTree && (this.routeTree = this.options.routeTree, this.buildRouteTree()), this.__store || (this.__store = new Store(getInitialRouterState(this.latestLocation), { onUpdate: () => {
825
827
  this.__store.state = {
826
828
  ...this.state,
827
829
  cachedMatches: this.state.cachedMatches.filter((e) => !["redirected"].includes(e.status))
@@ -1248,7 +1250,7 @@ var RouterCore = class {
1248
1250
  ].find((t) => t.id === e), this.loadMatches = async ({ location: e, matches: t, preload: n, onReady: r, updateMatch: i = this.updateMatch, sync: a }) => {
1249
1251
  let o, s = !1, triggerOnReady = async () => {
1250
1252
  s || (s = !0, await r?.());
1251
- }, resolvePreload = (e) => !!(n && !this.state.matches.find((t) => t.id === e));
1253
+ }, resolvePreload = (e) => !(!n || this.state.matches.find((t) => t.id === e));
1252
1254
  !this.isServer && !this.state.matches.length && triggerOnReady();
1253
1255
  let handleRedirectAndNotFound = (n, r) => {
1254
1256
  var a, o, c, l;
@@ -1261,7 +1263,7 @@ var RouterCore = class {
1261
1263
  error: r,
1262
1264
  beforeLoadPromise: void 0,
1263
1265
  loaderPromise: void 0
1264
- })), r.routeId ||= n.routeId, (a = n.beforeLoadPromise) == null || a.resolve(), (o = n.loaderPromise) == null || o.resolve(), (c = n.loadPromise) == null || c.resolve(), isRedirect(r)) throw s = !0, r = this.resolveRedirect({
1266
+ })), r.routeId || (r.routeId = n.routeId), (a = n.beforeLoadPromise) == null || a.resolve(), (o = n.loaderPromise) == null || o.resolve(), (c = n.loadPromise) == null || c.resolve(), isRedirect(r)) throw s = !0, r = this.resolveRedirect({
1265
1267
  ...r,
1266
1268
  _fromLocation: e
1267
1269
  }), r;
@@ -1531,14 +1533,14 @@ var RouterCore = class {
1531
1533
  let filter = (e) => {
1532
1534
  let t = this.looseRoutesById[e.routeId];
1533
1535
  if (!t.options.loader) return !0;
1534
- let n = (e.preload ? t.options.preloadGcTime ?? this.options.defaultPreloadGcTime : t.options.gcTime ?? this.options.defaultGcTime) ?? 300 * 1e3;
1536
+ let n = (e.preload ? t.options.preloadGcTime ?? this.options.defaultPreloadGcTime : t.options.gcTime ?? this.options.defaultGcTime) ?? 3e5;
1535
1537
  return !(e.status !== "error" && Date.now() - e.updatedAt < n);
1536
1538
  };
1537
1539
  this.clearCache({ filter });
1538
- }, this.loadRouteChunk = (e) => (e._lazyPromise === void 0 && (e.lazyFn ? e._lazyPromise = e.lazyFn().then((t) => {
1540
+ }, this.loadRouteChunk = (e) => (e._lazyPromise === void 0 && (e._lazyPromise = e.lazyFn ? e.lazyFn().then((t) => {
1539
1541
  let { id: n, ...r } = t.options;
1540
1542
  Object.assign(e.options, r);
1541
- }) : e._lazyPromise = Promise.resolve()), e._componentsPromise === void 0 && (e._componentsPromise = e._lazyPromise.then(() => Promise.all(D.map(async (t) => {
1543
+ }) : Promise.resolve()), e._componentsPromise === void 0 && (e._componentsPromise = e._lazyPromise.then(() => Promise.all(D.map(async (t) => {
1542
1544
  let n = e.options[t];
1543
1545
  n?.preload && await n.preload();
1544
1546
  })))), e._componentsPromise), this.preloadRoute = async (e) => {
@@ -1845,7 +1847,7 @@ function stripSearchParams(e) {
1845
1847
  };
1846
1848
  }
1847
1849
  //#endregion
1848
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/CatchBoundary.js
1850
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/CatchBoundary.js
1849
1851
  function CatchBoundary(e) {
1850
1852
  let n = e.errorComponent ?? ErrorComponent;
1851
1853
  return /* @__PURE__ */ i(CatchBoundaryImpl, {
@@ -1931,7 +1933,7 @@ function ErrorComponent({ error: e }) {
1931
1933
  });
1932
1934
  }
1933
1935
  //#endregion
1934
- //#region ../../node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-store/dist/esm/index.js
1936
+ //#region ../../node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-store/dist/esm/index.js
1935
1937
  function useStore(e, t = (e) => e) {
1936
1938
  return o(e.subscribe, () => e.state, () => e.state, t, shallow);
1937
1939
  }
@@ -1954,19 +1956,19 @@ function shallow(e, t) {
1954
1956
  return !0;
1955
1957
  }
1956
1958
  //#endregion
1957
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/routerContext.js
1959
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/routerContext.js
1958
1960
  var k = t.createContext(null);
1959
1961
  function getRouterContext() {
1960
1962
  return typeof document > "u" ? k : window.__TSR_ROUTER_CONTEXT__ ? window.__TSR_ROUTER_CONTEXT__ : (window.__TSR_ROUTER_CONTEXT__ = k, k);
1961
1963
  }
1962
1964
  //#endregion
1963
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouter.js
1965
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useRouter.js
1964
1966
  function useRouter(e) {
1965
1967
  let n = t.useContext(getRouterContext());
1966
1968
  return e?.warn, n;
1967
1969
  }
1968
1970
  //#endregion
1969
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouterState.js
1971
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useRouterState.js
1970
1972
  function useRouterState(e) {
1971
1973
  let t = useRouter({ warn: e?.router === void 0 }), r = e?.router || t, i = n(void 0);
1972
1974
  return useStore(r.__store, (t) => {
@@ -1981,10 +1983,10 @@ function useRouterState(e) {
1981
1983
  });
1982
1984
  }
1983
1985
  //#endregion
1984
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/matchContext.js
1986
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/matchContext.js
1985
1987
  var A = t.createContext(void 0), j = t.createContext(void 0);
1986
1988
  //#endregion
1987
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useMatch.js
1989
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useMatch.js
1988
1990
  function useMatch(e) {
1989
1991
  let n = t.useContext(e.from ? j : A);
1990
1992
  return useRouterState({
@@ -1996,7 +1998,7 @@ function useMatch(e) {
1996
1998
  });
1997
1999
  }
1998
2000
  //#endregion
1999
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
2001
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
2000
2002
  function useLoaderData(e) {
2001
2003
  return useMatch({
2002
2004
  from: e.from,
@@ -2006,7 +2008,7 @@ function useLoaderData(e) {
2006
2008
  });
2007
2009
  }
2008
2010
  //#endregion
2009
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
2011
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
2010
2012
  function useLoaderDeps(e) {
2011
2013
  let { select: t, ...n } = e;
2012
2014
  return useMatch({
@@ -2015,7 +2017,7 @@ function useLoaderDeps(e) {
2015
2017
  });
2016
2018
  }
2017
2019
  //#endregion
2018
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useParams.js
2020
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useParams.js
2019
2021
  function useParams(e) {
2020
2022
  return useMatch({
2021
2023
  from: e.from,
@@ -2026,7 +2028,7 @@ function useParams(e) {
2026
2028
  });
2027
2029
  }
2028
2030
  //#endregion
2029
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useSearch.js
2031
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useSearch.js
2030
2032
  function useSearch(e) {
2031
2033
  return useMatch({
2032
2034
  from: e.from,
@@ -2037,7 +2039,7 @@ function useSearch(e) {
2037
2039
  });
2038
2040
  }
2039
2041
  //#endregion
2040
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useNavigate.js
2042
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/useNavigate.js
2041
2043
  function useNavigate(e) {
2042
2044
  let { navigate: n } = useRouter();
2043
2045
  return t.useCallback((t) => n({
@@ -2045,14 +2047,8 @@ function useNavigate(e) {
2045
2047
  ...t
2046
2048
  }), [e?.from, n]);
2047
2049
  }
2048
- function Navigate(e) {
2049
- let n = useRouter(), r = t.useRef(null);
2050
- return t.useEffect(() => {
2051
- r.current !== e && (n.navigate({ ...e }), r.current = e);
2052
- }, [n, e]), null;
2053
- }
2054
2050
  //#endregion
2055
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/route.js
2051
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/route.js
2056
2052
  var Route = class extends BaseRoute {
2057
2053
  constructor(e) {
2058
2054
  super(e), this.useMatch = (e) => useMatch({
@@ -2117,7 +2113,7 @@ function createRootRoute(e) {
2117
2113
  return new RootRoute(e);
2118
2114
  }
2119
2115
  //#endregion
2120
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/fileRoute.js
2116
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/fileRoute.js
2121
2117
  function createFileRoute(e) {
2122
2118
  return new FileRoute(e, { silent: !0 }).createRoute;
2123
2119
  }
@@ -2131,7 +2127,7 @@ var FileRoute = class {
2131
2127
  }
2132
2128
  };
2133
2129
  //#endregion
2134
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/not-found.js
2130
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/not-found.js
2135
2131
  function CatchNotFound(e) {
2136
2132
  let t = useRouterState({ select: (e) => `not-found-${e.location.pathname}-${e.status}` });
2137
2133
  return /* @__PURE__ */ i(CatchBoundary, {
@@ -2152,12 +2148,12 @@ function DefaultGlobalNotFound() {
2152
2148
  return /* @__PURE__ */ i("p", { children: "Not Found" });
2153
2149
  }
2154
2150
  //#endregion
2155
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/SafeFragment.js
2151
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/SafeFragment.js
2156
2152
  function SafeFragment(e) {
2157
2153
  return /* @__PURE__ */ i(r, { children: e.children });
2158
2154
  }
2159
2155
  //#endregion
2160
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/renderRouteNotFound.js
2156
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/renderRouteNotFound.js
2161
2157
  function renderRouteNotFound(e, t, n) {
2162
2158
  return t.options.notFoundComponent ? /* @__PURE__ */ i(t.options.notFoundComponent, { data: n }) : e.options.defaultNotFoundComponent ? /* @__PURE__ */ i(e.options.defaultNotFoundComponent, { data: n }) : /* @__PURE__ */ i(DefaultGlobalNotFound, {});
2163
2159
  }
@@ -2216,11 +2212,10 @@ function renderRouteNotFound(e, t, n) {
2216
2212
  p || (n = n.toUpperCase()), t = "0x" + n;
2217
2213
  } else x ? t = "0b" + e.toString(2) : S && (t = "0o" + e.toString(8));
2218
2214
  return isBigInt(e) ? t + "n" : t;
2219
- } else if (isBigInt(e)) return r ? JSON.stringify(Number(e)) : e + "n";
2220
- else if (isObject(e)) return y = [], t.wrap = !0, increaseIndentation(), forOwn(e, (e, n) => {
2215
+ }
2216
+ return isBigInt(e) ? r ? JSON.stringify(Number(e)) : e + "n" : isObject(e) ? (y = [], t.wrap = !0, increaseIndentation(), forOwn(e, (e, n) => {
2221
2217
  b = !1, y.push((f ? "" : m) + jsesc(e, t) + ":" + (f ? "" : " ") + jsesc(n, t));
2222
- }), b ? "{}" : "{" + v + y.join("," + v) + v + (f ? "" : h) + "}";
2223
- else return r ? JSON.stringify(e) || "null" : String(e);
2218
+ }), b ? "{}" : "{" + v + y.join("," + v) + v + (f ? "" : h) + "}") : r ? JSON.stringify(e) || "null" : String(e);
2224
2219
  }
2225
2220
  let T = t.escapeEverything ? u : d;
2226
2221
  return y = e.replace(T, (e, n, a, u, d, f) => {
@@ -2251,7 +2246,7 @@ function ScriptOnce({ children: e, log: t }) {
2251
2246
  });
2252
2247
  }
2253
2248
  //#endregion
2254
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/scroll-restoration.js
2249
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/scroll-restoration.js
2255
2250
  function ScrollRestoration() {
2256
2251
  let e = useRouter(), t = (e.options.getScrollRestorationKey || defaultGetScrollRestorationKey)(e.latestLocation), n = t === defaultGetScrollRestorationKey(e.latestLocation) ? null : t;
2257
2252
  return !e.isScrollRestoring || !e.isServer ? null : /* @__PURE__ */ i(ScriptOnce, {
@@ -2260,7 +2255,7 @@ function ScrollRestoration() {
2260
2255
  });
2261
2256
  }
2262
2257
  //#endregion
2263
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Match.js
2258
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Match.js
2264
2259
  var M = t.memo(function MatchImpl({ matchId: e }) {
2265
2260
  let n = useRouter(), o = useRouterState({ select: (t) => t.matches.find((t) => t.id === e)?.routeId });
2266
2261
  invariant(o, `Could not find routeId for matchId "${e}". Please file an issue!`);
@@ -2388,7 +2383,7 @@ function usePrevious(e) {
2388
2383
  function useIntersectionObserver(e, n, r = {}, i = {}) {
2389
2384
  let a = t.useRef(typeof IntersectionObserver == "function"), o = t.useRef(null);
2390
2385
  return t.useEffect(() => {
2391
- if (!(!e.current || !a.current || i.disabled)) return o.current = new IntersectionObserver(([e]) => {
2386
+ if (e.current && a.current && !i.disabled) return o.current = new IntersectionObserver(([e]) => {
2392
2387
  n(e);
2393
2388
  }, r), o.current.observe(e.current), () => {
2394
2389
  var e;
@@ -2406,7 +2401,7 @@ function useForwardedRef(e) {
2406
2401
  return t.useImperativeHandle(e, () => n.current, []), n;
2407
2402
  }
2408
2403
  //#endregion
2409
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Transitioner.js
2404
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Transitioner.js
2410
2405
  function Transitioner() {
2411
2406
  let e = useRouter(), n = t.useRef({
2412
2407
  router: e,
@@ -2482,13 +2477,13 @@ function Transitioner() {
2482
2477
  ]), null;
2483
2478
  }
2484
2479
  //#endregion
2485
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/Matches.js
2480
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/Matches.js
2486
2481
  function Matches() {
2487
- let e = useRouter(), n = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null, r = /* @__PURE__ */ a(e.isServer || typeof document < "u" && e.clientSsr ? SafeFragment : t.Suspense, {
2482
+ let e = useRouter(), n = e.options.defaultPendingComponent ? /* @__PURE__ */ i(e.options.defaultPendingComponent, {}) : null, r = e.isServer || typeof document < "u" && e.clientSsr ? SafeFragment : t.Suspense, o = /* @__PURE__ */ a(r, {
2488
2483
  fallback: n,
2489
2484
  children: [/* @__PURE__ */ i(Transitioner, {}), /* @__PURE__ */ i(MatchesInner, {})]
2490
2485
  });
2491
- return e.options.InnerWrap ? /* @__PURE__ */ i(e.options.InnerWrap, { children: r }) : r;
2486
+ return e.options.InnerWrap ? /* @__PURE__ */ i(e.options.InnerWrap, { children: o }) : o;
2492
2487
  }
2493
2488
  function MatchesInner() {
2494
2489
  let e = useRouterState({ select: (e) => e.matches[0]?.id }), t = useRouterState({ select: (e) => e.loadedAt });
@@ -2514,7 +2509,7 @@ function useMatches(e) {
2514
2509
  });
2515
2510
  }
2516
2511
  //#endregion
2517
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/link.js
2512
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/link.js
2518
2513
  function useLinkProps(e, n) {
2519
2514
  let r = useRouter(), [i, a] = t.useState(!1), o = t.useRef(!1), c = useForwardedRef(n), { activeProps = () => ({ className: "active" }), inactiveProps = () => ({}), activeOptions: l, to: u, preload: d, preloadDelay: f, hashScrollIntoView: p, replace: m, startTransition: h, resetScroll: g, viewTransition: _, children: v, target: y, disabled: b, style: x, className: S, onClick: C, onFocus: w, onMouseEnter: T, onMouseLeave: E, onTouchStart: D, ignoreBlocker: k, ...A } = e, { params: j, search: M, hash: N, state: P, mask: I, reloadDocument: L, ...R } = A, z = t.useMemo(() => {
2520
2515
  try {
@@ -2545,7 +2540,7 @@ function useLinkProps(e, n) {
2545
2540
  return (l?.includeSearch ?? !0) && !deepEqual(e.location.search, U.search, {
2546
2541
  partial: !l?.exact,
2547
2542
  ignoreUndefined: !l?.explicitUndefined
2548
- }) ? !1 : l?.includeHash ? e.location.hash === U.hash : !0;
2543
+ }) ? !1 : !l?.includeHash || e.location.hash === U.hash;
2549
2544
  } }), q = t.useCallback(() => {
2550
2545
  r.preloadRoute(H).catch((e) => {
2551
2546
  console.warn(e), console.warn(O);
@@ -2659,14 +2654,14 @@ function isCtrlEvent(e) {
2659
2654
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2660
2655
  }
2661
2656
  //#endregion
2662
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/router.js
2657
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/router.js
2663
2658
  var createRouter = (e) => new Router(e), Router = class extends RouterCore {
2664
2659
  constructor(e) {
2665
2660
  super(e);
2666
2661
  }
2667
2662
  };
2668
2663
  //#endregion
2669
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/RouterProvider.js
2664
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/RouterProvider.js
2670
2665
  function RouterContextProvider({ router: e, children: t, ...n }) {
2671
2666
  e.update({
2672
2667
  ...e.options,
@@ -2676,11 +2671,11 @@ function RouterContextProvider({ router: e, children: t, ...n }) {
2676
2671
  ...n.context
2677
2672
  }
2678
2673
  });
2679
- let r = /* @__PURE__ */ i(getRouterContext().Provider, {
2674
+ let r = getRouterContext(), a = /* @__PURE__ */ i(r.Provider, {
2680
2675
  value: e,
2681
2676
  children: t
2682
2677
  });
2683
- return e.options.Wrap ? /* @__PURE__ */ i(e.options.Wrap, { children: r }) : r;
2678
+ return e.options.Wrap ? /* @__PURE__ */ i(e.options.Wrap, { children: a }) : a;
2684
2679
  }
2685
2680
  function RouterProvider({ router: e, ...t }) {
2686
2681
  return /* @__PURE__ */ i(RouterContextProvider, {
@@ -2690,4 +2685,4 @@ function RouterProvider({ router: e, ...t }) {
2690
2685
  });
2691
2686
  }
2692
2687
  //#endregion
2693
- export { createBrowserHistory as _, P as a, Navigate as c, useParams as d, useRouter as f, notFound as g, isNotFound as h, useMatches as i, useNavigate as l, redirect as m, createRouter as n, createFileRoute as o, stripSearchParams as p, I as r, createRootRouteWithContext as s, RouterProvider as t, useSearch as u, createHashHistory as v };
2688
+ export { createHashHistory as _, P as a, useNavigate as c, useRouter as d, stripSearchParams as f, createBrowserHistory as g, notFound as h, useMatches as i, useSearch as l, isNotFound as m, createRouter as n, createFileRoute as o, redirect as p, I as r, createRootRouteWithContext as s, RouterProvider as t, useParams as u };