zudoku 0.3.0-dev.54 → 0.3.0-dev.55

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 (121) hide show
  1. package/lib/AnchorLink-BaXHjhF-.js +989 -0
  2. package/lib/{AnchorLink-BCN_a_Uz.js.map → AnchorLink-BaXHjhF-.js.map} +1 -1
  3. package/lib/Combination-BfufJFkX.js +1365 -0
  4. package/lib/{Combination-B0Iu6mhJ.js.map → Combination-BfufJFkX.js.map} +1 -1
  5. package/lib/DevPortalProvider-GjdO0Xr-.js +1610 -0
  6. package/lib/{DevPortalProvider-Do9oJqme.js.map → DevPortalProvider-GjdO0Xr-.js.map} +1 -1
  7. package/lib/Markdown-B8nPVql1.js +19708 -0
  8. package/lib/Markdown-B8nPVql1.js.map +1 -0
  9. package/lib/MdxPage-Dlujuj-J.js +223 -0
  10. package/lib/{MdxPage-Bsc79cD-.js.map → MdxPage-Dlujuj-J.js.map} +1 -1
  11. package/lib/OperationList-krPgt6sE.js +8041 -0
  12. package/lib/{OperationList-K-JWBxau.js.map → OperationList-krPgt6sE.js.map} +1 -1
  13. package/lib/Playground-DOHxca0P.js +539 -0
  14. package/lib/{Playground-Czy7ha9z.js.map → Playground-DOHxca0P.js.map} +1 -1
  15. package/lib/Route-CR6TEwVC.js +13 -0
  16. package/lib/{Route-D-egsGHx.js.map → Route-CR6TEwVC.js.map} +1 -1
  17. package/lib/Select-Boi_pe3L.js +5298 -0
  18. package/lib/{Select-CcBbwJ2R.js.map → Select-Boi_pe3L.js.map} +1 -1
  19. package/lib/Spinner-oU0QJmi_.js +16 -0
  20. package/lib/{Spinner-C9_Opdev.js.map → Spinner-oU0QJmi_.js.map} +1 -1
  21. package/lib/_commonjsHelpers-BxmBWJD2.js +34 -0
  22. package/lib/_commonjsHelpers-BxmBWJD2.js.map +1 -0
  23. package/lib/assets/index-CpIig0AX.js +6341 -0
  24. package/lib/{index-pI9JkN46.js.map → assets/index-CpIig0AX.js.map} +1 -1
  25. package/lib/assets/worker-B5k2aBV9.js +18921 -0
  26. package/lib/assets/{worker-BjPv-hjP.js.map → worker-B5k2aBV9.js.map} +1 -1
  27. package/lib/context-BoN_3uxi.js +17 -0
  28. package/lib/{context-_fYfJFgk.js.map → context-BoN_3uxi.js.map} +1 -1
  29. package/lib/hook-CIuFuyBT.js +90 -0
  30. package/lib/{hook-CKqQERWo.js.map → hook-CIuFuyBT.js.map} +1 -1
  31. package/lib/index-BL1P4Gqq.js +280 -0
  32. package/lib/{index-ByHya67R.js.map → index-BL1P4Gqq.js.map} +1 -1
  33. package/lib/index-Bn03IPZt.js +6341 -0
  34. package/lib/{assets/index-BPdJm2ty.js.map → index-Bn03IPZt.js.map} +1 -1
  35. package/lib/{index-jsFBaizC.js → index-Dih8IAqw.js} +103 -83
  36. package/lib/{index-jsFBaizC.js.map → index-Dih8IAqw.js.map} +1 -1
  37. package/lib/index-FprhHF51.js +253 -0
  38. package/lib/{index-DseBZFJ-.js.map → index-FprhHF51.js.map} +1 -1
  39. package/lib/jsx-runtime-DvZ6OKMM.js +2110 -0
  40. package/lib/{jsx-runtime-CJZJivg2.js.map → jsx-runtime-DvZ6OKMM.js.map} +1 -1
  41. package/lib/mutation-DWY9x2Uc.js +250 -0
  42. package/lib/{mutation-DjbQSHzT.js.map → mutation-DWY9x2Uc.js.map} +1 -1
  43. package/lib/prism-bash.min-BtBk0onv.js +7 -0
  44. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-BtBk0onv.js.map} +1 -1
  45. package/lib/prism-csharp.min-Cv7D49bv.js +30 -0
  46. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-Cv7D49bv.js.map} +1 -1
  47. package/lib/prism-java.min-tNK-JX6x.js +7 -0
  48. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-tNK-JX6x.js.map} +1 -1
  49. package/lib/prism-json.min-Cdtv-CME.js +2 -0
  50. package/lib/{prism-json.min-B1GJqK1k.js.map → prism-json.min-Cdtv-CME.js.map} +1 -1
  51. package/lib/prism-markup-templating-iotg2sCU.js +94 -0
  52. package/lib/{prism-markup-templating-DZrrEs0A.js.map → prism-markup-templating-iotg2sCU.js.map} +1 -1
  53. package/lib/prism-objectivec.min-CY4WGixz.js +2 -0
  54. package/lib/{prism-objectivec.min-BXSWqpJJ.js.map → prism-objectivec.min-CY4WGixz.js.map} +1 -1
  55. package/lib/prism-php.min-T6sIVgED.js +11 -0
  56. package/lib/{prism-php.min-o7FpoMP_.js.map → prism-php.min-T6sIVgED.js.map} +1 -1
  57. package/lib/prism-ruby.min-B-2KAa4y.js +8 -0
  58. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-B-2KAa4y.js.map} +1 -1
  59. package/lib/router-ButO1QyY.js +4062 -0
  60. package/lib/{router-CBw2vqJE.js.map → router-ButO1QyY.js.map} +1 -1
  61. package/lib/slugify-CmS97Vy8.js +50 -0
  62. package/lib/{slugify-CiPVjteN.js.map → slugify-CmS97Vy8.js.map} +1 -1
  63. package/lib/state-CmGfNKhR.js +436 -0
  64. package/lib/{state-DKdaQzvh.js.map → state-CmGfNKhR.js.map} +1 -1
  65. package/lib/urql-DtVKPBx_.js +2567 -0
  66. package/lib/{urql-DEKdguFl.js.map → urql-DtVKPBx_.js.map} +1 -1
  67. package/lib/util-B5KX4h4M.js +55 -0
  68. package/lib/{util-_jwUlTBU.js.map → util-B5KX4h4M.js.map} +1 -1
  69. package/lib/zudoku.auth-auth0.js +24 -18
  70. package/lib/zudoku.auth-auth0.js.map +1 -1
  71. package/lib/zudoku.auth-clerk.js +43 -34
  72. package/lib/zudoku.auth-clerk.js.map +1 -1
  73. package/lib/zudoku.auth-openid.js +1121 -734
  74. package/lib/zudoku.auth-openid.js.map +1 -1
  75. package/lib/zudoku.components.js +1076 -823
  76. package/lib/zudoku.components.js.map +1 -1
  77. package/lib/zudoku.openapi-worker.js +13776 -9681
  78. package/lib/zudoku.openapi-worker.js.map +1 -1
  79. package/lib/zudoku.plugin-api-keys.js +206 -165
  80. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  81. package/lib/zudoku.plugin-markdown.js +41 -33
  82. package/lib/zudoku.plugin-markdown.js.map +1 -1
  83. package/lib/zudoku.plugin-openapi.js +6 -6
  84. package/lib/zudoku.plugin-redirect.js +10 -8
  85. package/lib/zudoku.plugin-redirect.js.map +1 -1
  86. package/package.json +1 -1
  87. package/lib/AnchorLink-BCN_a_Uz.js +0 -705
  88. package/lib/Combination-B0Iu6mhJ.js +0 -915
  89. package/lib/DevPortalProvider-Do9oJqme.js +0 -1081
  90. package/lib/Markdown-aE_XoLNs.js +0 -15030
  91. package/lib/Markdown-aE_XoLNs.js.map +0 -1
  92. package/lib/MdxPage-Bsc79cD-.js +0 -190
  93. package/lib/OperationList-K-JWBxau.js +0 -5091
  94. package/lib/Playground-Czy7ha9z.js +0 -502
  95. package/lib/Route-D-egsGHx.js +0 -13
  96. package/lib/Select-CcBbwJ2R.js +0 -3667
  97. package/lib/Spinner-C9_Opdev.js +0 -15
  98. package/lib/_commonjsHelpers-BVfed4GL.js +0 -29
  99. package/lib/_commonjsHelpers-BVfed4GL.js.map +0 -1
  100. package/lib/assets/index-BPdJm2ty.js +0 -4765
  101. package/lib/assets/worker-BjPv-hjP.js +0 -14897
  102. package/lib/context-_fYfJFgk.js +0 -14
  103. package/lib/hook-CKqQERWo.js +0 -77
  104. package/lib/index-ByHya67R.js +0 -207
  105. package/lib/index-DseBZFJ-.js +0 -170
  106. package/lib/index-pI9JkN46.js +0 -4765
  107. package/lib/jsx-runtime-CJZJivg2.js +0 -1526
  108. package/lib/mutation-DjbQSHzT.js +0 -208
  109. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  110. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  111. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  112. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  113. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  114. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  115. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  116. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  117. package/lib/router-CBw2vqJE.js +0 -2973
  118. package/lib/slugify-CiPVjteN.js +0 -28
  119. package/lib/state-DKdaQzvh.js +0 -288
  120. package/lib/urql-DEKdguFl.js +0 -1592
  121. package/lib/util-_jwUlTBU.js +0 -41
@@ -1,37 +1,41 @@
1
- var $e = Object.defineProperty;
2
- var ce = (t) => {
3
- throw TypeError(t);
1
+ var __defProp = Object.defineProperty;
2
+ var __typeError = (msg) => {
3
+ throw TypeError(msg);
4
4
  };
5
- var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
- var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
- var L = (t, e, r, a) => ({
9
- set _(s) {
10
- f(t, e, s, r);
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
8
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
+ var __privateWrapper = (obj, member, setter, getter) => ({
12
+ set _(value) {
13
+ __privateSet(obj, member, value, setter);
11
14
  },
12
15
  get _() {
13
- return l(t, e, a);
16
+ return __privateGet(obj, member, getter);
14
17
  }
15
18
  });
16
- import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as W, e as F, f as tt, C as rt, L as at } from "./Markdown-aE_XoLNs.js";
17
- import { E as Ee, u as st, R as nt } from "./hook-CKqQERWo.js";
18
- import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
19
- import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-BCN_a_Uz.js";
20
- import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
- import { g as G } from "./_commonjsHelpers-BVfed4GL.js";
22
- import { r as yt } from "./router-CBw2vqJE.js";
23
- import { S as Oe, h as Ae, Q as bt, n as m, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
- import { M as Rt } from "./mutation-DjbQSHzT.js";
25
- import { R as Re, T as ke, C as Me } from "./index-DseBZFJ-.js";
26
- import { c as ee, i as X, j as De, a as kt } from "./util-_jwUlTBU.js";
27
- import { S as Mt } from "./Spinner-C9_Opdev.js";
19
+ var _queries, _a, _mutations, _mutationId, _b, _queryCache, _mutationCache, _defaultOptions, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _c;
20
+ import { c as createLucideIcon, d as dist$1, R as RouterProvider, N as NavLink, a as cx, u as useTheme, M as MdxComponents, T as ThemeProvider, V as ViewportAnchorProvider, b as useViewportAnchor, e as cn, f as cva, C as Callout$1, L as Link$1 } from "./Markdown-B8nPVql1.js";
21
+ import { E as ErrorAlert, u as useAuth, R as RouterError$1 } from "./hook-CIuFuyBT.js";
22
+ import { j as jsxRuntimeExports, d as dist, u as useLocation, O as Outlet } from "./jsx-runtime-DvZ6OKMM.js";
23
+ import { H as HelmetProvider, a as Helmet, M as MDXProvider, A as AnchorLink, u as useMDXComponents$1 } from "./AnchorLink-BaXHjhF-.js";
24
+ import React__default, { StrictMode, createContext, Component, createElement, isValidElement, memo, useMemo, useEffect, Fragment, useRef, useState, forwardRef, Suspense } from "react";
25
+ import { g as getAugmentedNamespace } from "./_commonjsHelpers-BxmBWJD2.js";
26
+ import { r as router$1 } from "./router-ButO1QyY.js";
27
+ import { S as Subscribable, h as hashQueryKeyByOptions, Q as Query, n as notifyManager, m as matchQuery, a as matchMutation, b as noop, e as ensureQueryFn, c as addToStart, d as addToEnd, f as focusManager, o as onlineManager, r as resolveStaleTime, g as functionalUpdate, i as hashKey, p as partialMatchKey, s as skipToken, u as useDevPortal, j as QueryClientProvider, D as DevPortalProvider, k as useTopNavigationItem, l as useNavigation } from "./DevPortalProvider-GjdO0Xr-.js";
28
+ import { M as Mutation } from "./mutation-DWY9x2Uc.js";
29
+ import { R as Root, T as Trigger, C as Content } from "./index-FprhHF51.js";
30
+ import { c as checkHasActiveItem, i as isPathItem, j as joinPath, a as isLinkItem } from "./util-B5KX4h4M.js";
31
+ import { S as Spinner } from "./Spinner-oU0QJmi_.js";
28
32
  /**
29
33
  * @license lucide-react v0.378.0 - ISC
30
34
  *
31
35
  * This source code is licensed under the ISC license.
32
36
  * See the LICENSE file in the root directory of this source tree.
33
37
  */
34
- const _e = U("ChevronRight", [
38
+ const ChevronRight = createLucideIcon("ChevronRight", [
35
39
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
36
40
  ]);
37
41
  /**
@@ -40,7 +44,7 @@ const _e = U("ChevronRight", [
40
44
  * This source code is licensed under the ISC license.
41
45
  * See the LICENSE file in the root directory of this source tree.
42
46
  */
43
- const Dt = U("ExternalLink", [
47
+ const ExternalLink = createLucideIcon("ExternalLink", [
44
48
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
45
49
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
46
50
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -51,7 +55,7 @@ const Dt = U("ExternalLink", [
51
55
  * This source code is licensed under the ISC license.
52
56
  * See the LICENSE file in the root directory of this source tree.
53
57
  */
54
- const _t = U("MoonStar", [
58
+ const MoonStar = createLucideIcon("MoonStar", [
55
59
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
56
60
  ["path", { d: "M20 3v4", key: "1olli1" }],
57
61
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -62,7 +66,7 @@ const _t = U("MoonStar", [
62
66
  * This source code is licensed under the ISC license.
63
67
  * See the LICENSE file in the root directory of this source tree.
64
68
  */
65
- const Tt = U("Sun", [
69
+ const Sun = createLucideIcon("Sun", [
66
70
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
67
71
  ["path", { d: "M12 2v2", key: "tus03m" }],
68
72
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -73,973 +77,1193 @@ const Tt = U("Sun", [
73
77
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
74
78
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
75
79
  ]);
76
- function Ft({ error: t }) {
77
- return /* @__PURE__ */ n.jsx(Ee, { error: t });
80
+ function ServerError$1({ error }) {
81
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorAlert, { error });
78
82
  }
79
- var q = {};
80
- const Qt = /* @__PURE__ */ G(yt), It = /* @__PURE__ */ G(it), qt = /* @__PURE__ */ G(Ye);
81
- Object.defineProperty(q, "__esModule", { value: !0 });
82
- var Ht = ht, E = Qt, te = It, j = qt;
83
- function Lt(t) {
84
- if (t && t.__esModule) return t;
85
- var e = /* @__PURE__ */ Object.create(null);
86
- return t && Object.keys(t).forEach(function(r) {
87
- if (r !== "default") {
88
- var a = Object.getOwnPropertyDescriptor(t, r);
89
- Object.defineProperty(e, r, a.get ? a : {
90
- enumerable: !0,
91
- get: function() {
92
- return t[r];
93
- }
94
- });
95
- }
96
- }), e.default = t, Object.freeze(e);
83
+ var server = {};
84
+ const require$$1 = /* @__PURE__ */ getAugmentedNamespace(router$1);
85
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(dist);
86
+ const require$$3 = /* @__PURE__ */ getAugmentedNamespace(dist$1);
87
+ Object.defineProperty(server, "__esModule", { value: true });
88
+ var React = React__default;
89
+ var router = require$$1;
90
+ var reactRouter = require$$2;
91
+ var reactRouterDom = require$$3;
92
+ function _interopNamespace(e) {
93
+ if (e && e.__esModule) return e;
94
+ var n = /* @__PURE__ */ Object.create(null);
95
+ if (e) {
96
+ Object.keys(e).forEach(function(k) {
97
+ if (k !== "default") {
98
+ var d = Object.getOwnPropertyDescriptor(e, k);
99
+ Object.defineProperty(n, k, d.get ? d : {
100
+ enumerable: true,
101
+ get: function() {
102
+ return e[k];
103
+ }
104
+ });
105
+ }
106
+ });
107
+ }
108
+ n["default"] = e;
109
+ return Object.freeze(n);
97
110
  }
98
- var x = /* @__PURE__ */ Lt(Ht);
99
- function Bt({
100
- basename: t,
101
- children: e,
102
- location: r = "/",
103
- future: a
111
+ var React__namespace = /* @__PURE__ */ _interopNamespace(React);
112
+ function StaticRouter({
113
+ basename,
114
+ children,
115
+ location: locationProp = "/",
116
+ future
104
117
  }) {
105
- typeof r == "string" && (r = j.parsePath(r));
106
- let s = E.Action.Pop, o = {
107
- pathname: r.pathname || "/",
108
- search: r.search || "",
109
- hash: r.hash || "",
110
- state: r.state != null ? r.state : null,
111
- key: r.key || "default"
112
- }, i = Te();
113
- return /* @__PURE__ */ x.createElement(j.Router, {
114
- basename: t,
115
- children: e,
116
- location: o,
117
- navigationType: s,
118
- navigator: i,
119
- future: a,
120
- static: !0
118
+ if (typeof locationProp === "string") {
119
+ locationProp = reactRouterDom.parsePath(locationProp);
120
+ }
121
+ let action = router.Action.Pop;
122
+ let location = {
123
+ pathname: locationProp.pathname || "/",
124
+ search: locationProp.search || "",
125
+ hash: locationProp.hash || "",
126
+ state: locationProp.state != null ? locationProp.state : null,
127
+ key: locationProp.key || "default"
128
+ };
129
+ let staticNavigator = getStatelessNavigator();
130
+ return /* @__PURE__ */ React__namespace.createElement(reactRouterDom.Router, {
131
+ basename,
132
+ children,
133
+ location,
134
+ navigationType: action,
135
+ navigator: staticNavigator,
136
+ future,
137
+ static: true
121
138
  });
122
139
  }
123
- function zt({
124
- context: t,
125
- router: e,
126
- hydrate: r = !0,
127
- nonce: a
140
+ function StaticRouterProvider({
141
+ context,
142
+ router: router$12,
143
+ hydrate = true,
144
+ nonce
128
145
  }) {
129
- e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
130
- let s = {
131
- router: e,
132
- navigator: Te(),
133
- static: !0,
134
- staticContext: t,
135
- basename: t.basename || "/"
136
- }, o = /* @__PURE__ */ new Map(), i = "";
137
- if (r !== !1) {
138
- let u = {
139
- loaderData: t.loaderData,
140
- actionData: t.actionData,
141
- errors: Kt(t.errors)
146
+ !(router$12 && context) ? process.env.NODE_ENV !== "production" ? router.UNSAFE_invariant(false, "You must provide `router` and `context` to <StaticRouterProvider>") : router.UNSAFE_invariant(false) : void 0;
147
+ let dataRouterContext = {
148
+ router: router$12,
149
+ navigator: getStatelessNavigator(),
150
+ static: true,
151
+ staticContext: context,
152
+ basename: context.basename || "/"
153
+ };
154
+ let fetchersContext = /* @__PURE__ */ new Map();
155
+ let hydrateScript = "";
156
+ if (hydrate !== false) {
157
+ let data = {
158
+ loaderData: context.loaderData,
159
+ actionData: context.actionData,
160
+ errors: serializeErrors(context.errors)
142
161
  };
143
- i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(u)))});`;
162
+ let json = htmlEscape(JSON.stringify(JSON.stringify(data)));
163
+ hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
144
164
  }
145
165
  let {
146
- state: c
147
- } = s.router;
148
- return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
149
- value: s
150
- }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
151
- value: c
152
- }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
153
- value: o
154
- }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
166
+ state
167
+ } = dataRouterContext.router;
168
+ return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_DataRouterContext.Provider, {
169
+ value: dataRouterContext
170
+ }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_DataRouterStateContext.Provider, {
171
+ value: state
172
+ }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_FetchersContext.Provider, {
173
+ value: fetchersContext
174
+ }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_ViewTransitionContext.Provider, {
155
175
  value: {
156
- isTransitioning: !1
176
+ isTransitioning: false
157
177
  }
158
- }, /* @__PURE__ */ x.createElement(j.Router, {
159
- basename: s.basename,
160
- location: c.location,
161
- navigationType: c.historyAction,
162
- navigator: s.navigator,
163
- static: s.static,
178
+ }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.Router, {
179
+ basename: dataRouterContext.basename,
180
+ location: state.location,
181
+ navigationType: state.historyAction,
182
+ navigator: dataRouterContext.navigator,
183
+ static: dataRouterContext.static,
164
184
  future: {
165
- v7_relativeSplatPath: e.future.v7_relativeSplatPath
185
+ v7_relativeSplatPath: router$12.future.v7_relativeSplatPath
166
186
  }
167
- }, /* @__PURE__ */ x.createElement(Ut, {
168
- routes: e.routes,
169
- future: e.future,
170
- state: c
171
- })))))), i ? /* @__PURE__ */ x.createElement("script", {
172
- suppressHydrationWarning: !0,
173
- nonce: a,
187
+ }, /* @__PURE__ */ React__namespace.createElement(DataRoutes, {
188
+ routes: router$12.routes,
189
+ future: router$12.future,
190
+ state
191
+ })))))), hydrateScript ? /* @__PURE__ */ React__namespace.createElement("script", {
192
+ suppressHydrationWarning: true,
193
+ nonce,
174
194
  dangerouslySetInnerHTML: {
175
- __html: i
195
+ __html: hydrateScript
176
196
  }
177
197
  }) : null);
178
198
  }
179
- function Ut({
180
- routes: t,
181
- future: e,
182
- state: r
199
+ function DataRoutes({
200
+ routes,
201
+ future,
202
+ state
183
203
  }) {
184
- return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
204
+ return reactRouter.UNSAFE_useRoutesImpl(routes, void 0, state, future);
185
205
  }
186
- function Kt(t) {
187
- if (!t) return null;
188
- let e = Object.entries(t), r = {};
189
- for (let [a, s] of e)
190
- E.isRouteErrorResponse(s) ? r[a] = {
191
- ...s,
192
- __type: "RouteErrorResponse"
193
- } : s instanceof Error ? r[a] = {
194
- message: s.message,
195
- __type: "Error",
196
- // If this is a subclass (i.e., ReferenceError), send up the type so we
197
- // can re-create the same type during hydration.
198
- ...s.name !== "Error" ? {
199
- __subType: s.name
200
- } : {}
201
- } : r[a] = s;
202
- return r;
206
+ function serializeErrors(errors) {
207
+ if (!errors) return null;
208
+ let entries = Object.entries(errors);
209
+ let serialized = {};
210
+ for (let [key, val] of entries) {
211
+ if (router.isRouteErrorResponse(val)) {
212
+ serialized[key] = {
213
+ ...val,
214
+ __type: "RouteErrorResponse"
215
+ };
216
+ } else if (val instanceof Error) {
217
+ serialized[key] = {
218
+ message: val.message,
219
+ __type: "Error",
220
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
221
+ // can re-create the same type during hydration.
222
+ ...val.name !== "Error" ? {
223
+ __subType: val.name
224
+ } : {}
225
+ };
226
+ } else {
227
+ serialized[key] = val;
228
+ }
229
+ }
230
+ return serialized;
203
231
  }
204
- function Te() {
232
+ function getStatelessNavigator() {
205
233
  return {
206
- createHref: Fe,
207
- encodeLocation: Qe,
208
- push(t) {
209
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
234
+ createHref,
235
+ encodeLocation,
236
+ push(to) {
237
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(to)})\` somewhere in your app.`);
210
238
  },
211
- replace(t) {
212
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
239
+ replace(to) {
240
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(to)}, { replace: true })\` somewhere in your app.`);
213
241
  },
214
- go(t) {
215
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
242
+ go(delta) {
243
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${delta})\` somewhere in your app.`);
216
244
  },
217
245
  back() {
218
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
246
+ throw new Error(`You cannot use navigator.back() on the server because it is a stateless environment.`);
219
247
  },
220
248
  forward() {
221
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
249
+ throw new Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`);
222
250
  }
223
251
  };
224
252
  }
225
- function $t(t, e) {
226
- return E.createStaticHandler(t, {
227
- ...e,
228
- mapRouteProperties: te.UNSAFE_mapRouteProperties
253
+ function createStaticHandler(routes, opts) {
254
+ return router.createStaticHandler(routes, {
255
+ ...opts,
256
+ mapRouteProperties: reactRouter.UNSAFE_mapRouteProperties
229
257
  });
230
258
  }
231
- function Vt(t, e, r = {}) {
232
- let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
233
- let u = a[c.route.id] || c.route;
259
+ function createStaticRouter(routes, context, opts = {}) {
260
+ let manifest = {};
261
+ let dataRoutes = router.UNSAFE_convertRoutesToDataRoutes(routes, reactRouter.UNSAFE_mapRouteProperties, void 0, manifest);
262
+ let matches = context.matches.map((match) => {
263
+ let route = manifest[match.route.id] || match.route;
234
264
  return {
235
- ...c,
236
- route: u
265
+ ...match,
266
+ route
237
267
  };
238
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
268
+ });
269
+ let msg = (method) => `You cannot use router.${method}() on the server because it is a stateless environment`;
239
270
  return {
240
271
  get basename() {
241
- return e.basename;
272
+ return context.basename;
242
273
  },
243
274
  get future() {
244
- var c, u;
275
+ var _a2, _b2;
245
276
  return {
246
- v7_fetcherPersist: !1,
247
- v7_normalizeFormMethod: !1,
248
- v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
249
- v7_prependBasename: !1,
250
- v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
251
- unstable_skipActionErrorRevalidation: !1
277
+ v7_fetcherPersist: false,
278
+ v7_normalizeFormMethod: false,
279
+ v7_partialHydration: ((_a2 = opts.future) == null ? void 0 : _a2.v7_partialHydration) === true,
280
+ v7_prependBasename: false,
281
+ v7_relativeSplatPath: ((_b2 = opts.future) == null ? void 0 : _b2.v7_relativeSplatPath) === true,
282
+ unstable_skipActionErrorRevalidation: false
252
283
  };
253
284
  },
254
285
  get state() {
255
286
  return {
256
- historyAction: E.Action.Pop,
257
- location: e.location,
258
- matches: o,
259
- loaderData: e.loaderData,
260
- actionData: e.actionData,
261
- errors: e.errors,
262
- initialized: !0,
263
- navigation: E.IDLE_NAVIGATION,
287
+ historyAction: router.Action.Pop,
288
+ location: context.location,
289
+ matches,
290
+ loaderData: context.loaderData,
291
+ actionData: context.actionData,
292
+ errors: context.errors,
293
+ initialized: true,
294
+ navigation: router.IDLE_NAVIGATION,
264
295
  restoreScrollPosition: null,
265
- preventScrollReset: !1,
296
+ preventScrollReset: false,
266
297
  revalidation: "idle",
267
298
  fetchers: /* @__PURE__ */ new Map(),
268
299
  blockers: /* @__PURE__ */ new Map()
269
300
  };
270
301
  },
271
302
  get routes() {
272
- return s;
303
+ return dataRoutes;
273
304
  },
274
305
  get window() {
306
+ return void 0;
275
307
  },
276
308
  initialize() {
277
- throw i("initialize");
309
+ throw msg("initialize");
278
310
  },
279
311
  subscribe() {
280
- throw i("subscribe");
312
+ throw msg("subscribe");
281
313
  },
282
314
  enableScrollRestoration() {
283
- throw i("enableScrollRestoration");
315
+ throw msg("enableScrollRestoration");
284
316
  },
285
317
  navigate() {
286
- throw i("navigate");
318
+ throw msg("navigate");
287
319
  },
288
320
  fetch() {
289
- throw i("fetch");
321
+ throw msg("fetch");
290
322
  },
291
323
  revalidate() {
292
- throw i("revalidate");
324
+ throw msg("revalidate");
293
325
  },
294
- createHref: Fe,
295
- encodeLocation: Qe,
326
+ createHref,
327
+ encodeLocation,
296
328
  getFetcher() {
297
- return E.IDLE_FETCHER;
329
+ return router.IDLE_FETCHER;
298
330
  },
299
331
  deleteFetcher() {
300
- throw i("deleteFetcher");
332
+ throw msg("deleteFetcher");
301
333
  },
302
334
  dispose() {
303
- throw i("dispose");
335
+ throw msg("dispose");
304
336
  },
305
337
  getBlocker() {
306
- return E.IDLE_BLOCKER;
338
+ return router.IDLE_BLOCKER;
307
339
  },
308
340
  deleteBlocker() {
309
- throw i("deleteBlocker");
341
+ throw msg("deleteBlocker");
310
342
  },
311
343
  patchRoutes() {
312
- throw i("patchRoutes");
344
+ throw msg("patchRoutes");
313
345
  },
314
346
  _internalFetchControllers: /* @__PURE__ */ new Map(),
315
347
  _internalActiveDeferreds: /* @__PURE__ */ new Map(),
316
348
  _internalSetRoutes() {
317
- throw i("_internalSetRoutes");
349
+ throw msg("_internalSetRoutes");
318
350
  }
319
351
  };
320
352
  }
321
- function Fe(t) {
322
- return typeof t == "string" ? t : j.createPath(t);
353
+ function createHref(to) {
354
+ return typeof to === "string" ? to : reactRouterDom.createPath(to);
323
355
  }
324
- function Qe(t) {
325
- let e = typeof t == "string" ? t : j.createPath(t);
326
- e = e.replace(/ $/, "%20");
327
- let r = Yt.test(e) ? new URL(e) : new URL(e, "http://localhost");
356
+ function encodeLocation(to) {
357
+ let href = typeof to === "string" ? to : reactRouterDom.createPath(to);
358
+ href = href.replace(/ $/, "%20");
359
+ let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
328
360
  return {
329
- pathname: r.pathname,
330
- search: r.search,
331
- hash: r.hash
361
+ pathname: encoded.pathname,
362
+ search: encoded.search,
363
+ hash: encoded.hash
332
364
  };
333
365
  }
334
- const Yt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jt = {
366
+ const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
367
+ const ESCAPE_LOOKUP = {
335
368
  "&": "\\u0026",
336
369
  ">": "\\u003e",
337
370
  "<": "\\u003c",
338
371
  "\u2028": "\\u2028",
339
372
  "\u2029": "\\u2029"
340
- }, Xt = /[&><\u2028\u2029]/g;
341
- function Wt(t) {
342
- return t.replace(Xt, (e) => Jt[e]);
373
+ };
374
+ const ESCAPE_REGEX = /[&><\u2028\u2029]/g;
375
+ function htmlEscape(str) {
376
+ return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
343
377
  }
344
- q.StaticRouter = Bt;
345
- var Gt = q.StaticRouterProvider = zt;
346
- q.createStaticHandler = $t;
347
- q.createStaticRouter = Vt;
348
- const Zt = ({
349
- router: t
350
- }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), er = ({
351
- router: t,
352
- context: e,
353
- helmetContext: r
354
- }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Gt, { router: t, context: e }) }) });
355
- var w, be, tr = (be = class extends Oe {
356
- constructor(e = {}) {
378
+ server.StaticRouter = StaticRouter;
379
+ var StaticRouterProvider_1 = server.StaticRouterProvider = StaticRouterProvider;
380
+ server.createStaticHandler = createStaticHandler;
381
+ server.createStaticRouter = createStaticRouter;
382
+ const Bootstrap$1 = ({
383
+ router: router2
384
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelmetProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RouterProvider, { router: router2 }) }) });
385
+ const BootstrapStatic$1 = ({
386
+ router: router2,
387
+ context,
388
+ helmetContext
389
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelmetProvider, { context: helmetContext, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticRouterProvider_1, { router: router2, context }) }) });
390
+ var QueryCache = (_a = class extends Subscribable {
391
+ constructor(config = {}) {
357
392
  super();
358
- y(this, w);
359
- this.config = e, f(this, w, /* @__PURE__ */ new Map());
360
- }
361
- build(e, r, a) {
362
- const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
363
- let i = this.get(o);
364
- return i || (i = new bt({
365
- cache: this,
366
- queryKey: s,
367
- queryHash: o,
368
- options: e.defaultQueryOptions(r),
369
- state: a,
370
- defaultOptions: e.getQueryDefaults(s)
371
- }), this.add(i)), i;
372
- }
373
- add(e) {
374
- l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
375
- type: "added",
376
- query: e
377
- }));
393
+ __privateAdd(this, _queries);
394
+ this.config = config;
395
+ __privateSet(this, _queries, /* @__PURE__ */ new Map());
396
+ }
397
+ build(client, options, state) {
398
+ const queryKey = options.queryKey;
399
+ const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);
400
+ let query = this.get(queryHash);
401
+ if (!query) {
402
+ query = new Query({
403
+ cache: this,
404
+ queryKey,
405
+ queryHash,
406
+ options: client.defaultQueryOptions(options),
407
+ state,
408
+ defaultOptions: client.getQueryDefaults(queryKey)
409
+ });
410
+ this.add(query);
411
+ }
412
+ return query;
413
+ }
414
+ add(query) {
415
+ if (!__privateGet(this, _queries).has(query.queryHash)) {
416
+ __privateGet(this, _queries).set(query.queryHash, query);
417
+ this.notify({
418
+ type: "added",
419
+ query
420
+ });
421
+ }
378
422
  }
379
- remove(e) {
380
- const r = l(this, w).get(e.queryHash);
381
- r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
423
+ remove(query) {
424
+ const queryInMap = __privateGet(this, _queries).get(query.queryHash);
425
+ if (queryInMap) {
426
+ query.destroy();
427
+ if (queryInMap === query) {
428
+ __privateGet(this, _queries).delete(query.queryHash);
429
+ }
430
+ this.notify({ type: "removed", query });
431
+ }
382
432
  }
383
433
  clear() {
384
- m.batch(() => {
385
- this.getAll().forEach((e) => {
386
- this.remove(e);
434
+ notifyManager.batch(() => {
435
+ this.getAll().forEach((query) => {
436
+ this.remove(query);
387
437
  });
388
438
  });
389
439
  }
390
- get(e) {
391
- return l(this, w).get(e);
440
+ get(queryHash) {
441
+ return __privateGet(this, _queries).get(queryHash);
392
442
  }
393
443
  getAll() {
394
- return [...l(this, w).values()];
444
+ return [...__privateGet(this, _queries).values()];
395
445
  }
396
- find(e) {
397
- const r = { exact: !0, ...e };
446
+ find(filters) {
447
+ const defaultedFilters = { exact: true, ...filters };
398
448
  return this.getAll().find(
399
- (a) => de(r, a)
449
+ (query) => matchQuery(defaultedFilters, query)
400
450
  );
401
451
  }
402
- findAll(e = {}) {
403
- const r = this.getAll();
404
- return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
452
+ findAll(filters = {}) {
453
+ const queries = this.getAll();
454
+ return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
405
455
  }
406
- notify(e) {
407
- m.batch(() => {
408
- this.listeners.forEach((r) => {
409
- r(e);
456
+ notify(event) {
457
+ notifyManager.batch(() => {
458
+ this.listeners.forEach((listener) => {
459
+ listener(event);
410
460
  });
411
461
  });
412
462
  }
413
463
  onFocus() {
414
- m.batch(() => {
415
- this.getAll().forEach((e) => {
416
- e.onFocus();
464
+ notifyManager.batch(() => {
465
+ this.getAll().forEach((query) => {
466
+ query.onFocus();
417
467
  });
418
468
  });
419
469
  }
420
470
  onOnline() {
421
- m.batch(() => {
422
- this.getAll().forEach((e) => {
423
- e.onOnline();
471
+ notifyManager.batch(() => {
472
+ this.getAll().forEach((query) => {
473
+ query.onOnline();
424
474
  });
425
475
  });
426
476
  }
427
- }, w = new WeakMap(), be), p, Q, xe, rr = (xe = class extends Oe {
428
- constructor(e = {}) {
477
+ }, _queries = new WeakMap(), _a);
478
+ var MutationCache = (_b = class extends Subscribable {
479
+ constructor(config = {}) {
429
480
  super();
430
- y(this, p);
431
- y(this, Q);
432
- this.config = e, f(this, p, /* @__PURE__ */ new Map()), f(this, Q, Date.now());
433
- }
434
- build(e, r, a) {
435
- const s = new Rt({
481
+ __privateAdd(this, _mutations);
482
+ __privateAdd(this, _mutationId);
483
+ this.config = config;
484
+ __privateSet(this, _mutations, /* @__PURE__ */ new Map());
485
+ __privateSet(this, _mutationId, Date.now());
486
+ }
487
+ build(client, options, state) {
488
+ const mutation = new Mutation({
436
489
  mutationCache: this,
437
- mutationId: ++L(this, Q)._,
438
- options: e.defaultMutationOptions(r),
439
- state: a
490
+ mutationId: ++__privateWrapper(this, _mutationId)._,
491
+ options: client.defaultMutationOptions(options),
492
+ state
440
493
  });
441
- return this.add(s), s;
442
- }
443
- add(e) {
444
- const r = B(e), a = l(this, p).get(r) ?? [];
445
- a.push(e), l(this, p).set(r, a), this.notify({ type: "added", mutation: e });
446
- }
447
- remove(e) {
448
- var a;
449
- const r = B(e);
450
- if (l(this, p).has(r)) {
451
- const s = (a = l(this, p).get(r)) == null ? void 0 : a.filter((o) => o !== e);
452
- s && (s.length === 0 ? l(this, p).delete(r) : l(this, p).set(r, s));
494
+ this.add(mutation);
495
+ return mutation;
496
+ }
497
+ add(mutation) {
498
+ const scope = scopeFor(mutation);
499
+ const mutations = __privateGet(this, _mutations).get(scope) ?? [];
500
+ mutations.push(mutation);
501
+ __privateGet(this, _mutations).set(scope, mutations);
502
+ this.notify({ type: "added", mutation });
503
+ }
504
+ remove(mutation) {
505
+ var _a2;
506
+ const scope = scopeFor(mutation);
507
+ if (__privateGet(this, _mutations).has(scope)) {
508
+ const mutations = (_a2 = __privateGet(this, _mutations).get(scope)) == null ? void 0 : _a2.filter((x) => x !== mutation);
509
+ if (mutations) {
510
+ if (mutations.length === 0) {
511
+ __privateGet(this, _mutations).delete(scope);
512
+ } else {
513
+ __privateGet(this, _mutations).set(scope, mutations);
514
+ }
515
+ }
453
516
  }
454
- this.notify({ type: "removed", mutation: e });
517
+ this.notify({ type: "removed", mutation });
455
518
  }
456
- canRun(e) {
457
- var a;
458
- const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
459
- return !r || r === e;
519
+ canRun(mutation) {
520
+ var _a2;
521
+ const firstPendingMutation = (_a2 = __privateGet(this, _mutations).get(scopeFor(mutation))) == null ? void 0 : _a2.find((m) => m.state.status === "pending");
522
+ return !firstPendingMutation || firstPendingMutation === mutation;
460
523
  }
461
- runNext(e) {
462
- var a;
463
- const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
464
- return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
524
+ runNext(mutation) {
525
+ var _a2;
526
+ const foundMutation = (_a2 = __privateGet(this, _mutations).get(scopeFor(mutation))) == null ? void 0 : _a2.find((m) => m !== mutation && m.state.isPaused);
527
+ return (foundMutation == null ? void 0 : foundMutation.continue()) ?? Promise.resolve();
465
528
  }
466
529
  clear() {
467
- m.batch(() => {
468
- this.getAll().forEach((e) => {
469
- this.remove(e);
530
+ notifyManager.batch(() => {
531
+ this.getAll().forEach((mutation) => {
532
+ this.remove(mutation);
470
533
  });
471
534
  });
472
535
  }
473
536
  getAll() {
474
- return [...l(this, p).values()].flat();
537
+ return [...__privateGet(this, _mutations).values()].flat();
475
538
  }
476
- find(e) {
477
- const r = { exact: !0, ...e };
539
+ find(filters) {
540
+ const defaultedFilters = { exact: true, ...filters };
478
541
  return this.getAll().find(
479
- (a) => fe(r, a)
542
+ (mutation) => matchMutation(defaultedFilters, mutation)
480
543
  );
481
544
  }
482
- findAll(e = {}) {
483
- return this.getAll().filter((r) => fe(e, r));
545
+ findAll(filters = {}) {
546
+ return this.getAll().filter((mutation) => matchMutation(filters, mutation));
484
547
  }
485
- notify(e) {
486
- m.batch(() => {
487
- this.listeners.forEach((r) => {
488
- r(e);
548
+ notify(event) {
549
+ notifyManager.batch(() => {
550
+ this.listeners.forEach((listener) => {
551
+ listener(event);
489
552
  });
490
553
  });
491
554
  }
492
555
  resumePausedMutations() {
493
- const e = this.getAll().filter((r) => r.state.isPaused);
494
- return m.batch(
556
+ const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
557
+ return notifyManager.batch(
495
558
  () => Promise.all(
496
- e.map((r) => r.continue().catch(P))
559
+ pausedMutations.map((mutation) => mutation.continue().catch(noop))
497
560
  )
498
561
  );
499
562
  }
500
- }, p = new WeakMap(), Q = new WeakMap(), xe);
501
- function B(t) {
502
- var e;
503
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
563
+ }, _mutations = new WeakMap(), _mutationId = new WeakMap(), _b);
564
+ function scopeFor(mutation) {
565
+ var _a2;
566
+ return ((_a2 = mutation.options.scope) == null ? void 0 : _a2.id) ?? String(mutation.mutationId);
504
567
  }
505
- function ar(t) {
568
+ function infiniteQueryBehavior(pages) {
506
569
  return {
507
- onFetch: (e, r) => {
508
- const a = async () => {
509
- var re, ae, se, ne, ie;
510
- const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
511
- let g = !1;
512
- const d = (b) => {
513
- Object.defineProperty(b, "signal", {
514
- enumerable: !0,
515
- get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
516
- g = !0;
517
- }), e.signal)
570
+ onFetch: (context, query) => {
571
+ const fetchFn = async () => {
572
+ var _a2, _b2, _c2, _d, _e;
573
+ const options = context.options;
574
+ const direction = (_c2 = (_b2 = (_a2 = context.fetchOptions) == null ? void 0 : _a2.meta) == null ? void 0 : _b2.fetchMore) == null ? void 0 : _c2.direction;
575
+ const oldPages = ((_d = context.state.data) == null ? void 0 : _d.pages) || [];
576
+ const oldPageParams = ((_e = context.state.data) == null ? void 0 : _e.pageParams) || [];
577
+ const empty = { pages: [], pageParams: [] };
578
+ let cancelled = false;
579
+ const addSignalProperty = (object) => {
580
+ Object.defineProperty(object, "signal", {
581
+ enumerable: true,
582
+ get: () => {
583
+ if (context.signal.aborted) {
584
+ cancelled = true;
585
+ } else {
586
+ context.signal.addEventListener("abort", () => {
587
+ cancelled = true;
588
+ });
589
+ }
590
+ return context.signal;
591
+ }
518
592
  });
519
- }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
520
- if (g)
593
+ };
594
+ const queryFn = ensureQueryFn(context.options, context.fetchOptions);
595
+ const fetchPage = async (data, param, previous) => {
596
+ if (cancelled) {
521
597
  return Promise.reject();
522
- if (S == null && b.pages.length)
523
- return Promise.resolve(b);
524
- const H = {
525
- queryKey: e.queryKey,
526
- pageParam: S,
527
- direction: A ? "backward" : "forward",
528
- meta: e.options.meta
598
+ }
599
+ if (param == null && data.pages.length) {
600
+ return Promise.resolve(data);
601
+ }
602
+ const queryFnContext = {
603
+ queryKey: context.queryKey,
604
+ pageParam: param,
605
+ direction: previous ? "backward" : "forward",
606
+ meta: context.options.meta
529
607
  };
530
- d(H);
531
- const Ke = await Ue(
532
- H
533
- ), { maxPages: oe } = e.options, le = A ? wt : Et;
608
+ addSignalProperty(queryFnContext);
609
+ const page = await queryFn(
610
+ queryFnContext
611
+ );
612
+ const { maxPages } = context.options;
613
+ const addTo = previous ? addToStart : addToEnd;
534
614
  return {
535
- pages: le(b.pages, Ke, oe),
536
- pageParams: le(b.pageParams, S, oe)
615
+ pages: addTo(data.pages, page, maxPages),
616
+ pageParams: addTo(data.pageParams, param, maxPages)
537
617
  };
538
618
  };
539
- let R;
540
- if (o && i.length) {
541
- const b = o === "backward", S = b ? sr : ye, A = {
542
- pages: i,
543
- pageParams: c
544
- }, H = S(s, A);
545
- R = await $(A, H, b);
619
+ let result;
620
+ if (direction && oldPages.length) {
621
+ const previous = direction === "backward";
622
+ const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
623
+ const oldData = {
624
+ pages: oldPages,
625
+ pageParams: oldPageParams
626
+ };
627
+ const param = pageParamFn(options, oldData);
628
+ result = await fetchPage(oldData, param, previous);
546
629
  } else {
547
- R = await $(
548
- u,
549
- c[0] ?? s.initialPageParam
630
+ result = await fetchPage(
631
+ empty,
632
+ oldPageParams[0] ?? options.initialPageParam
550
633
  );
551
- const b = t ?? i.length;
552
- for (let S = 1; S < b; S++) {
553
- const A = ye(s, R);
554
- R = await $(R, A);
634
+ const remainingPages = pages ?? oldPages.length;
635
+ for (let i = 1; i < remainingPages; i++) {
636
+ const param = getNextPageParam(options, result);
637
+ result = await fetchPage(result, param);
555
638
  }
556
639
  }
557
- return R;
640
+ return result;
558
641
  };
559
- e.options.persister ? e.fetchFn = () => {
560
- var s, o;
561
- return (o = (s = e.options).persister) == null ? void 0 : o.call(
562
- s,
563
- a,
564
- {
565
- queryKey: e.queryKey,
566
- meta: e.options.meta,
567
- signal: e.signal
568
- },
569
- r
570
- );
571
- } : e.fetchFn = a;
642
+ if (context.options.persister) {
643
+ context.fetchFn = () => {
644
+ var _a2, _b2;
645
+ return (_b2 = (_a2 = context.options).persister) == null ? void 0 : _b2.call(
646
+ _a2,
647
+ fetchFn,
648
+ {
649
+ queryKey: context.queryKey,
650
+ meta: context.options.meta,
651
+ signal: context.signal
652
+ },
653
+ query
654
+ );
655
+ };
656
+ } else {
657
+ context.fetchFn = fetchFn;
658
+ }
572
659
  }
573
660
  };
574
661
  }
575
- function ye(t, { pages: e, pageParams: r }) {
576
- const a = e.length - 1;
577
- return t.getNextPageParam(
578
- e[a],
579
- e,
580
- r[a],
581
- r
662
+ function getNextPageParam(options, { pages, pageParams }) {
663
+ const lastIndex = pages.length - 1;
664
+ return options.getNextPageParam(
665
+ pages[lastIndex],
666
+ pages,
667
+ pageParams[lastIndex],
668
+ pageParams
582
669
  );
583
670
  }
584
- function sr(t, { pages: e, pageParams: r }) {
585
- var a;
586
- return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
587
- t,
588
- e[0],
589
- e,
590
- r[0],
591
- r
671
+ function getPreviousPageParam(options, { pages, pageParams }) {
672
+ var _a2;
673
+ return (_a2 = options.getPreviousPageParam) == null ? void 0 : _a2.call(
674
+ options,
675
+ pages[0],
676
+ pages,
677
+ pageParams[0],
678
+ pageParams
592
679
  );
593
680
  }
594
- var h, N, C, k, M, O, D, _, we, nr = (we = class {
595
- constructor(t = {}) {
596
- y(this, h);
597
- y(this, N);
598
- y(this, C);
599
- y(this, k);
600
- y(this, M);
601
- y(this, O);
602
- y(this, D);
603
- y(this, _);
604
- f(this, h, t.queryCache || new tr()), f(this, N, t.mutationCache || new rr()), f(this, C, t.defaultOptions || {}), f(this, k, /* @__PURE__ */ new Map()), f(this, M, /* @__PURE__ */ new Map()), f(this, O, 0);
681
+ var QueryClient = (_c = class {
682
+ constructor(config = {}) {
683
+ __privateAdd(this, _queryCache);
684
+ __privateAdd(this, _mutationCache);
685
+ __privateAdd(this, _defaultOptions);
686
+ __privateAdd(this, _queryDefaults);
687
+ __privateAdd(this, _mutationDefaults);
688
+ __privateAdd(this, _mountCount);
689
+ __privateAdd(this, _unsubscribeFocus);
690
+ __privateAdd(this, _unsubscribeOnline);
691
+ __privateSet(this, _queryCache, config.queryCache || new QueryCache());
692
+ __privateSet(this, _mutationCache, config.mutationCache || new MutationCache());
693
+ __privateSet(this, _defaultOptions, config.defaultOptions || {});
694
+ __privateSet(this, _queryDefaults, /* @__PURE__ */ new Map());
695
+ __privateSet(this, _mutationDefaults, /* @__PURE__ */ new Map());
696
+ __privateSet(this, _mountCount, 0);
605
697
  }
606
698
  mount() {
607
- L(this, O)._++, l(this, O) === 1 && (f(this, D, Pt.subscribe(async (t) => {
608
- t && (await this.resumePausedMutations(), l(this, h).onFocus());
609
- })), f(this, _, pe.subscribe(async (t) => {
610
- t && (await this.resumePausedMutations(), l(this, h).onOnline());
611
- })));
699
+ __privateWrapper(this, _mountCount)._++;
700
+ if (__privateGet(this, _mountCount) !== 1)
701
+ return;
702
+ __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
703
+ if (focused) {
704
+ await this.resumePausedMutations();
705
+ __privateGet(this, _queryCache).onFocus();
706
+ }
707
+ }));
708
+ __privateSet(this, _unsubscribeOnline, onlineManager.subscribe(async (online) => {
709
+ if (online) {
710
+ await this.resumePausedMutations();
711
+ __privateGet(this, _queryCache).onOnline();
712
+ }
713
+ }));
612
714
  }
613
715
  unmount() {
614
- var t, e;
615
- L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), f(this, D, void 0), (e = l(this, _)) == null || e.call(this), f(this, _, void 0));
616
- }
617
- isFetching(t) {
618
- return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
619
- }
620
- isMutating(t) {
621
- return l(this, N).findAll({ ...t, status: "pending" }).length;
622
- }
623
- getQueryData(t) {
624
- var r;
625
- const e = this.defaultQueryOptions({ queryKey: t });
626
- return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
627
- }
628
- ensureQueryData(t) {
629
- const e = this.getQueryData(t.queryKey);
630
- if (e === void 0)
631
- return this.fetchQuery(t);
632
- {
633
- const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
634
- return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
716
+ var _a2, _b2;
717
+ __privateWrapper(this, _mountCount)._--;
718
+ if (__privateGet(this, _mountCount) !== 0)
719
+ return;
720
+ (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
721
+ __privateSet(this, _unsubscribeFocus, void 0);
722
+ (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
723
+ __privateSet(this, _unsubscribeOnline, void 0);
724
+ }
725
+ isFetching(filters) {
726
+ return __privateGet(this, _queryCache).findAll({ ...filters, fetchStatus: "fetching" }).length;
727
+ }
728
+ isMutating(filters) {
729
+ return __privateGet(this, _mutationCache).findAll({ ...filters, status: "pending" }).length;
730
+ }
731
+ getQueryData(queryKey) {
732
+ var _a2;
733
+ const options = this.defaultQueryOptions({ queryKey });
734
+ return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state.data;
735
+ }
736
+ ensureQueryData(options) {
737
+ const cachedData = this.getQueryData(options.queryKey);
738
+ if (cachedData === void 0)
739
+ return this.fetchQuery(options);
740
+ else {
741
+ const defaultedOptions = this.defaultQueryOptions(options);
742
+ const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
743
+ if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {
744
+ void this.prefetchQuery(defaultedOptions);
745
+ }
746
+ return Promise.resolve(cachedData);
635
747
  }
636
748
  }
637
- getQueriesData(t) {
638
- return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
639
- const a = r.data;
640
- return [e, a];
749
+ getQueriesData(filters) {
750
+ return __privateGet(this, _queryCache).findAll(filters).map(({ queryKey, state }) => {
751
+ const data = state.data;
752
+ return [queryKey, data];
641
753
  });
642
754
  }
643
- setQueryData(t, e, r) {
644
- const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
645
- a.queryHash
646
- ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
647
- if (i !== void 0)
648
- return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
649
- }
650
- setQueriesData(t, e, r) {
651
- return m.batch(
652
- () => l(this, h).findAll(t).map(({ queryKey: a }) => [
653
- a,
654
- this.setQueryData(a, e, r)
755
+ setQueryData(queryKey, updater, options) {
756
+ const defaultedOptions = this.defaultQueryOptions({ queryKey });
757
+ const query = __privateGet(this, _queryCache).get(
758
+ defaultedOptions.queryHash
759
+ );
760
+ const prevData = query == null ? void 0 : query.state.data;
761
+ const data = functionalUpdate(updater, prevData);
762
+ if (data === void 0) {
763
+ return void 0;
764
+ }
765
+ return __privateGet(this, _queryCache).build(this, defaultedOptions).setData(data, { ...options, manual: true });
766
+ }
767
+ setQueriesData(filters, updater, options) {
768
+ return notifyManager.batch(
769
+ () => __privateGet(this, _queryCache).findAll(filters).map(({ queryKey }) => [
770
+ queryKey,
771
+ this.setQueryData(queryKey, updater, options)
655
772
  ])
656
773
  );
657
774
  }
658
- getQueryState(t) {
659
- var r;
660
- const e = this.defaultQueryOptions({ queryKey: t });
661
- return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
775
+ getQueryState(queryKey) {
776
+ var _a2;
777
+ const options = this.defaultQueryOptions({ queryKey });
778
+ return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state;
662
779
  }
663
- removeQueries(t) {
664
- const e = l(this, h);
665
- m.batch(() => {
666
- e.findAll(t).forEach((r) => {
667
- e.remove(r);
780
+ removeQueries(filters) {
781
+ const queryCache = __privateGet(this, _queryCache);
782
+ notifyManager.batch(() => {
783
+ queryCache.findAll(filters).forEach((query) => {
784
+ queryCache.remove(query);
668
785
  });
669
786
  });
670
787
  }
671
- resetQueries(t, e) {
672
- const r = l(this, h), a = {
788
+ resetQueries(filters, options) {
789
+ const queryCache = __privateGet(this, _queryCache);
790
+ const refetchFilters = {
673
791
  type: "active",
674
- ...t
792
+ ...filters
675
793
  };
676
- return m.batch(() => (r.findAll(t).forEach((s) => {
677
- s.reset();
678
- }), this.refetchQueries(a, e)));
794
+ return notifyManager.batch(() => {
795
+ queryCache.findAll(filters).forEach((query) => {
796
+ query.reset();
797
+ });
798
+ return this.refetchQueries(refetchFilters, options);
799
+ });
679
800
  }
680
- cancelQueries(t = {}, e = {}) {
681
- const r = { revert: !0, ...e }, a = m.batch(
682
- () => l(this, h).findAll(t).map((s) => s.cancel(r))
801
+ cancelQueries(filters = {}, cancelOptions = {}) {
802
+ const defaultedCancelOptions = { revert: true, ...cancelOptions };
803
+ const promises = notifyManager.batch(
804
+ () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
683
805
  );
684
- return Promise.all(a).then(P).catch(P);
806
+ return Promise.all(promises).then(noop).catch(noop);
685
807
  }
686
- invalidateQueries(t = {}, e = {}) {
687
- return m.batch(() => {
688
- if (l(this, h).findAll(t).forEach((a) => {
689
- a.invalidate();
690
- }), t.refetchType === "none")
808
+ invalidateQueries(filters = {}, options = {}) {
809
+ return notifyManager.batch(() => {
810
+ __privateGet(this, _queryCache).findAll(filters).forEach((query) => {
811
+ query.invalidate();
812
+ });
813
+ if (filters.refetchType === "none") {
691
814
  return Promise.resolve();
692
- const r = {
693
- ...t,
694
- type: t.refetchType ?? t.type ?? "active"
815
+ }
816
+ const refetchFilters = {
817
+ ...filters,
818
+ type: filters.refetchType ?? filters.type ?? "active"
695
819
  };
696
- return this.refetchQueries(r, e);
820
+ return this.refetchQueries(refetchFilters, options);
697
821
  });
698
822
  }
699
- refetchQueries(t = {}, e) {
700
- const r = {
701
- ...e,
702
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
703
- }, a = m.batch(
704
- () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
705
- let o = s.fetch(void 0, r);
706
- return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
823
+ refetchQueries(filters = {}, options) {
824
+ const fetchOptions = {
825
+ ...options,
826
+ cancelRefetch: (options == null ? void 0 : options.cancelRefetch) ?? true
827
+ };
828
+ const promises = notifyManager.batch(
829
+ () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
830
+ let promise = query.fetch(void 0, fetchOptions);
831
+ if (!fetchOptions.throwOnError) {
832
+ promise = promise.catch(noop);
833
+ }
834
+ return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
707
835
  })
708
836
  );
709
- return Promise.all(a).then(P);
837
+ return Promise.all(promises).then(noop);
710
838
  }
711
- fetchQuery(t) {
712
- const e = this.defaultQueryOptions(t);
713
- e.retry === void 0 && (e.retry = !1);
714
- const r = l(this, h).build(this, e);
715
- return r.isStaleByTime(
716
- me(e.staleTime, r)
717
- ) ? r.fetch(e) : Promise.resolve(r.state.data);
839
+ fetchQuery(options) {
840
+ const defaultedOptions = this.defaultQueryOptions(options);
841
+ if (defaultedOptions.retry === void 0) {
842
+ defaultedOptions.retry = false;
843
+ }
844
+ const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
845
+ return query.isStaleByTime(
846
+ resolveStaleTime(defaultedOptions.staleTime, query)
847
+ ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
718
848
  }
719
- prefetchQuery(t) {
720
- return this.fetchQuery(t).then(P).catch(P);
849
+ prefetchQuery(options) {
850
+ return this.fetchQuery(options).then(noop).catch(noop);
721
851
  }
722
- fetchInfiniteQuery(t) {
723
- return t.behavior = ar(t.pages), this.fetchQuery(t);
852
+ fetchInfiniteQuery(options) {
853
+ options.behavior = infiniteQueryBehavior(options.pages);
854
+ return this.fetchQuery(options);
724
855
  }
725
- prefetchInfiniteQuery(t) {
726
- return this.fetchInfiniteQuery(t).then(P).catch(P);
856
+ prefetchInfiniteQuery(options) {
857
+ return this.fetchInfiniteQuery(options).then(noop).catch(noop);
727
858
  }
728
859
  resumePausedMutations() {
729
- return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
860
+ if (onlineManager.isOnline()) {
861
+ return __privateGet(this, _mutationCache).resumePausedMutations();
862
+ }
863
+ return Promise.resolve();
730
864
  }
731
865
  getQueryCache() {
732
- return l(this, h);
866
+ return __privateGet(this, _queryCache);
733
867
  }
734
868
  getMutationCache() {
735
- return l(this, N);
869
+ return __privateGet(this, _mutationCache);
736
870
  }
737
871
  getDefaultOptions() {
738
- return l(this, C);
872
+ return __privateGet(this, _defaultOptions);
739
873
  }
740
- setDefaultOptions(t) {
741
- f(this, C, t);
874
+ setDefaultOptions(options) {
875
+ __privateSet(this, _defaultOptions, options);
742
876
  }
743
- setQueryDefaults(t, e) {
744
- l(this, k).set(ge(t), {
745
- queryKey: t,
746
- defaultOptions: e
877
+ setQueryDefaults(queryKey, options) {
878
+ __privateGet(this, _queryDefaults).set(hashKey(queryKey), {
879
+ queryKey,
880
+ defaultOptions: options
747
881
  });
748
882
  }
749
- getQueryDefaults(t) {
750
- const e = [...l(this, k).values()];
751
- let r = {};
752
- return e.forEach((a) => {
753
- ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
754
- }), r;
755
- }
756
- setMutationDefaults(t, e) {
757
- l(this, M).set(ge(t), {
758
- mutationKey: t,
759
- defaultOptions: e
883
+ getQueryDefaults(queryKey) {
884
+ const defaults = [...__privateGet(this, _queryDefaults).values()];
885
+ let result = {};
886
+ defaults.forEach((queryDefault) => {
887
+ if (partialMatchKey(queryKey, queryDefault.queryKey)) {
888
+ result = { ...result, ...queryDefault.defaultOptions };
889
+ }
890
+ });
891
+ return result;
892
+ }
893
+ setMutationDefaults(mutationKey, options) {
894
+ __privateGet(this, _mutationDefaults).set(hashKey(mutationKey), {
895
+ mutationKey,
896
+ defaultOptions: options
760
897
  });
761
898
  }
762
- getMutationDefaults(t) {
763
- const e = [...l(this, M).values()];
764
- let r = {};
765
- return e.forEach((a) => {
766
- ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
767
- }), r;
768
- }
769
- defaultQueryOptions(t) {
770
- if (t._defaulted)
771
- return t;
772
- const e = {
773
- ...l(this, C).queries,
774
- ...this.getQueryDefaults(t.queryKey),
775
- ...t,
776
- _defaulted: !0
899
+ getMutationDefaults(mutationKey) {
900
+ const defaults = [...__privateGet(this, _mutationDefaults).values()];
901
+ let result = {};
902
+ defaults.forEach((queryDefault) => {
903
+ if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
904
+ result = { ...result, ...queryDefault.defaultOptions };
905
+ }
906
+ });
907
+ return result;
908
+ }
909
+ defaultQueryOptions(options) {
910
+ if (options._defaulted) {
911
+ return options;
912
+ }
913
+ const defaultedOptions = {
914
+ ...__privateGet(this, _defaultOptions).queries,
915
+ ...this.getQueryDefaults(options.queryKey),
916
+ ...options,
917
+ _defaulted: true
777
918
  };
778
- return e.queryHash || (e.queryHash = Ae(
779
- e.queryKey,
780
- e
781
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === St && (e.enabled = !1), e;
782
- }
783
- defaultMutationOptions(t) {
784
- return t != null && t._defaulted ? t : {
785
- ...l(this, C).mutations,
786
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
787
- ...t,
788
- _defaulted: !0
919
+ if (!defaultedOptions.queryHash) {
920
+ defaultedOptions.queryHash = hashQueryKeyByOptions(
921
+ defaultedOptions.queryKey,
922
+ defaultedOptions
923
+ );
924
+ }
925
+ if (defaultedOptions.refetchOnReconnect === void 0) {
926
+ defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
927
+ }
928
+ if (defaultedOptions.throwOnError === void 0) {
929
+ defaultedOptions.throwOnError = !!defaultedOptions.suspense;
930
+ }
931
+ if (!defaultedOptions.networkMode && defaultedOptions.persister) {
932
+ defaultedOptions.networkMode = "offlineFirst";
933
+ }
934
+ if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === skipToken) {
935
+ defaultedOptions.enabled = false;
936
+ }
937
+ return defaultedOptions;
938
+ }
939
+ defaultMutationOptions(options) {
940
+ if (options == null ? void 0 : options._defaulted) {
941
+ return options;
942
+ }
943
+ return {
944
+ ...__privateGet(this, _defaultOptions).mutations,
945
+ ...(options == null ? void 0 : options.mutationKey) && this.getMutationDefaults(options.mutationKey),
946
+ ...options,
947
+ _defaulted: true
789
948
  };
790
949
  }
791
950
  clear() {
792
- l(this, h).clear(), l(this, N).clear();
951
+ __privateGet(this, _queryCache).clear();
952
+ __privateGet(this, _mutationCache).clear();
793
953
  }
794
- }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
795
- const ir = Ne(null), Y = {
796
- didCatch: !1,
954
+ }, _queryCache = new WeakMap(), _mutationCache = new WeakMap(), _defaultOptions = new WeakMap(), _queryDefaults = new WeakMap(), _mutationDefaults = new WeakMap(), _mountCount = new WeakMap(), _unsubscribeFocus = new WeakMap(), _unsubscribeOnline = new WeakMap(), _c);
955
+ const ErrorBoundaryContext = createContext(null);
956
+ const initialState = {
957
+ didCatch: false,
797
958
  error: null
798
959
  };
799
- class or extends dt {
800
- constructor(e) {
801
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
960
+ class ErrorBoundary extends Component {
961
+ constructor(props) {
962
+ super(props);
963
+ this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
964
+ this.state = initialState;
802
965
  }
803
- static getDerivedStateFromError(e) {
966
+ static getDerivedStateFromError(error) {
804
967
  return {
805
- didCatch: !0,
806
- error: e
968
+ didCatch: true,
969
+ error
807
970
  };
808
971
  }
809
972
  resetErrorBoundary() {
810
973
  const {
811
- error: e
974
+ error
812
975
  } = this.state;
813
- if (e !== null) {
814
- for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
815
- o[i] = arguments[i];
816
- (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
817
- args: o,
976
+ if (error !== null) {
977
+ var _this$props$onReset, _this$props;
978
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
979
+ args[_key] = arguments[_key];
980
+ }
981
+ (_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
982
+ args,
818
983
  reason: "imperative-api"
819
- }), this.setState(Y);
984
+ });
985
+ this.setState(initialState);
820
986
  }
821
987
  }
822
- componentDidCatch(e, r) {
823
- var a, s;
824
- (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
988
+ componentDidCatch(error, info) {
989
+ var _this$props$onError, _this$props2;
990
+ (_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);
825
991
  }
826
- componentDidUpdate(e, r) {
992
+ componentDidUpdate(prevProps, prevState) {
827
993
  const {
828
- didCatch: a
829
- } = this.state, {
830
- resetKeys: s
994
+ didCatch
995
+ } = this.state;
996
+ const {
997
+ resetKeys
831
998
  } = this.props;
832
- if (a && r.error !== null && lr(e.resetKeys, s)) {
833
- var o, i;
834
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
835
- next: s,
836
- prev: e.resetKeys,
999
+ if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
1000
+ var _this$props$onReset2, _this$props3;
1001
+ (_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {
1002
+ next: resetKeys,
1003
+ prev: prevProps.resetKeys,
837
1004
  reason: "keys"
838
- }), this.setState(Y);
1005
+ });
1006
+ this.setState(initialState);
839
1007
  }
840
1008
  }
841
1009
  render() {
842
1010
  const {
843
- children: e,
844
- fallbackRender: r,
845
- FallbackComponent: a,
846
- fallback: s
847
- } = this.props, {
848
- didCatch: o,
849
- error: i
1011
+ children,
1012
+ fallbackRender,
1013
+ FallbackComponent,
1014
+ fallback
1015
+ } = this.props;
1016
+ const {
1017
+ didCatch,
1018
+ error
850
1019
  } = this.state;
851
- let c = e;
852
- if (o) {
853
- const u = {
854
- error: i,
1020
+ let childToRender = children;
1021
+ if (didCatch) {
1022
+ const props = {
1023
+ error,
855
1024
  resetErrorBoundary: this.resetErrorBoundary
856
1025
  };
857
- if (typeof r == "function")
858
- c = r(u);
859
- else if (a)
860
- c = he(a, u);
861
- else if (s === null || ft(s))
862
- c = s;
863
- else
864
- throw i;
1026
+ if (typeof fallbackRender === "function") {
1027
+ childToRender = fallbackRender(props);
1028
+ } else if (FallbackComponent) {
1029
+ childToRender = createElement(FallbackComponent, props);
1030
+ } else if (fallback === null || isValidElement(fallback)) {
1031
+ childToRender = fallback;
1032
+ } else {
1033
+ throw error;
1034
+ }
865
1035
  }
866
- return he(ir.Provider, {
1036
+ return createElement(ErrorBoundaryContext.Provider, {
867
1037
  value: {
868
- didCatch: o,
869
- error: i,
1038
+ didCatch,
1039
+ error,
870
1040
  resetErrorBoundary: this.resetErrorBoundary
871
1041
  }
872
- }, c);
1042
+ }, childToRender);
873
1043
  }
874
1044
  }
875
- function lr() {
876
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
877
- return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
1045
+ function hasArrayChanged() {
1046
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1047
+ let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1048
+ return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));
878
1049
  }
879
- const cr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", ur = (t) => "initialize" in t && typeof t.initialize == "function", hr = (t) => "getHead" in t && typeof t.getHead == "function", dr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new nr();
880
- class fr {
881
- constructor(e) {
882
- v(this, "plugins", []);
883
- v(this, "navigation");
884
- v(this, "meta");
885
- v(this, "page");
886
- v(this, "authentication");
887
- v(this, "navigationPlugins");
888
- v(this, "initialize", async () => {
1050
+ const isNavigationPlugin = (obj) => "getRoutes" in obj && typeof obj.getRoutes === "function";
1051
+ const needsInitialization = (obj) => "initialize" in obj && typeof obj.initialize === "function";
1052
+ const hasHead = (obj) => "getHead" in obj && typeof obj.getHead === "function";
1053
+ const isApiIdentityPlugin = (obj) => "getIdentities" in obj && typeof obj.getIdentities === "function";
1054
+ const queryClient = new QueryClient();
1055
+ class DevPortalContext {
1056
+ constructor(config) {
1057
+ __publicField(this, "plugins", []);
1058
+ __publicField(this, "navigation");
1059
+ __publicField(this, "meta");
1060
+ __publicField(this, "page");
1061
+ __publicField(this, "authentication");
1062
+ __publicField(this, "navigationPlugins");
1063
+ __publicField(this, "initialize", async () => {
889
1064
  await Promise.all([
890
- this.plugins.filter(ur).map((e) => {
891
- var r;
892
- return (r = e.initialize) == null ? void 0 : r.call(e, this);
1065
+ this.plugins.filter(needsInitialization).map((plugin) => {
1066
+ var _a2;
1067
+ return (_a2 = plugin.initialize) == null ? void 0 : _a2.call(plugin, this);
893
1068
  })
894
1069
  ]);
895
1070
  });
896
- v(this, "invalidateCache", async (e) => {
897
- await Ie.invalidateQueries({ queryKey: e });
1071
+ __publicField(this, "invalidateCache", async (key) => {
1072
+ await queryClient.invalidateQueries({ queryKey: key });
898
1073
  });
899
- v(this, "getApiIdentities", async () => (await Promise.all(
900
- this.plugins.filter(dr).map((r) => r.getIdentities(this))
901
- )).flat());
902
- v(this, "getNavigation", async (e) => (await Promise.all(
903
- this.navigationPlugins.map(
904
- async (a) => {
905
- var s;
906
- return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
907
- }
908
- )
909
- )).flatMap((a) => a ?? []));
910
- v(this, "signRequest", async (e) => {
911
- if (!this.authentication)
1074
+ __publicField(this, "getApiIdentities", async () => {
1075
+ const keys = await Promise.all(
1076
+ this.plugins.filter(isApiIdentityPlugin).map((plugin) => plugin.getIdentities(this))
1077
+ );
1078
+ return keys.flat();
1079
+ });
1080
+ __publicField(this, "getNavigation", async (path) => {
1081
+ const navigations = await Promise.all(
1082
+ this.navigationPlugins.map(
1083
+ async (plugin) => {
1084
+ var _a2;
1085
+ return (_a2 = plugin.getNavigation) == null ? void 0 : _a2.call(plugin, path);
1086
+ }
1087
+ )
1088
+ );
1089
+ return navigations.flatMap((nav) => nav ?? []);
1090
+ });
1091
+ __publicField(this, "signRequest", async (request) => {
1092
+ if (!this.authentication) {
912
1093
  throw new Error("No authentication provider configured");
913
- const r = await this.authentication.getAccessToken();
914
- return e.headers.set("Authorization", `Bearer ${r}`), e;
1094
+ }
1095
+ const accessToken = await this.authentication.getAccessToken();
1096
+ request.headers.set("Authorization", `Bearer ${accessToken}`);
1097
+ return request;
915
1098
  });
916
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(cr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1099
+ this.plugins = config.plugins ?? [];
1100
+ this.navigation = config.navigation;
1101
+ this.navigationPlugins = this.plugins.filter(isNavigationPlugin);
1102
+ this.authentication = config.authentication;
1103
+ this.meta = config.metadata;
1104
+ this.page = config.page;
917
1105
  }
918
1106
  }
919
- function pr({ error: t, resetErrorBoundary: e }) {
920
- return /* @__PURE__ */ n.jsx(Ee, { error: t });
1107
+ function TopLevelError({ error, resetErrorBoundary }) {
1108
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorAlert, { error });
921
1109
  }
922
- const mr = () => {
923
- const { navigation: t } = Z();
924
- return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
925
- J,
1110
+ const TopNavigation = () => {
1111
+ const { navigation } = useDevPortal();
1112
+ if (navigation.length <= 1) {
1113
+ return null;
1114
+ }
1115
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "flex flex-row items-center gap-8", children: navigation.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1116
+ NavLink,
926
1117
  {
927
- className: ({ isActive: r }) => Xe(
1118
+ className: ({ isActive }) => cx(
928
1119
  "block py-3.5 font-medium -mb-px border-b-2",
929
- r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1120
+ isActive ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
930
1121
  ),
931
- to: e.path,
932
- children: e.label
1122
+ to: item.path,
1123
+ children: item.label
933
1124
  }
934
- ) }, e.label)) }) });
935
- }, qe = Ce(function() {
936
- const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), g = e ? _t : Tt;
937
- return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
938
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
939
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
940
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
941
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
1125
+ ) }, item.label)) }) });
1126
+ };
1127
+ const Header = memo(function HeaderInner() {
1128
+ const [isDark, toggleTheme] = useTheme();
1129
+ const { isAuthenticated, profile, isAuthEnabled, login, logout } = useAuth();
1130
+ const { page } = useDevPortal();
1131
+ const ThemeIcon = isDark ? MoonStar : Sun;
1132
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1133
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
1134
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3.5", children: [
1135
+ (page == null ? void 0 : page.logo) && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: page.logo, alt: page.pageTitle, className: "h-10" }),
1136
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: page == null ? void 0 : page.pageTitle })
942
1137
  ] }),
943
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
944
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
945
- /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
946
- o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
1138
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1139
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full max-w-prose" }),
1140
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
1141
+ isAuthEnabled && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isAuthenticated ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
947
1142
  "button",
948
1143
  {
949
1144
  type: "button",
950
1145
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
951
- onClick: c,
1146
+ onClick: logout,
952
1147
  children: [
953
1148
  "Logout ",
954
- s != null && s.email ? `(${s.email})` : null
1149
+ (profile == null ? void 0 : profile.email) ? `(${profile.email})` : null
955
1150
  ]
956
1151
  }
957
- ) : /* @__PURE__ */ n.jsx(
1152
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
958
1153
  "button",
959
1154
  {
960
1155
  type: "button",
961
1156
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
962
- onClick: i,
1157
+ onClick: login,
963
1158
  children: "Login"
964
1159
  }
965
1160
  ) }),
966
- /* @__PURE__ */ n.jsx(
1161
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
967
1162
  "button",
968
1163
  {
969
1164
  type: "button",
970
- "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
1165
+ "aria-label": isDark ? "Switch to light mode" : "Switch to dark mode",
971
1166
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
972
- onClick: r,
973
- children: /* @__PURE__ */ n.jsx(g, { size: 18 })
1167
+ onClick: toggleTheme,
1168
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeIcon, { size: 18 })
974
1169
  }
975
1170
  )
976
1171
  ] })
977
1172
  ] })
978
1173
  ] }),
979
- /* @__PURE__ */ n.jsx(mr, {})
1174
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TopNavigation, {})
980
1175
  ] }) });
981
- }), He = {
982
- Header: qe
983
- }, gr = Ne(He), vr = gr.Provider, yr = ({
984
- children: t,
985
- ...e
1176
+ });
1177
+ const DEFAULT_COMPONENTS = {
1178
+ Header
1179
+ };
1180
+ const ComponentsContext = createContext(DEFAULT_COMPONENTS);
1181
+ const ComponentsProvider = ComponentsContext.Provider;
1182
+ const DevPortalInner = ({
1183
+ children,
1184
+ ...props
986
1185
  }) => {
987
- var i, c;
988
- const r = V(
989
- () => ({ ...He, ...e.overrides }),
990
- [e.overrides]
991
- ), a = V(
1186
+ var _a2, _b2;
1187
+ const components = useMemo(
1188
+ () => ({ ...DEFAULT_COMPONENTS, ...props.overrides }),
1189
+ [props.overrides]
1190
+ );
1191
+ const mdxComponents = useMemo(
992
1192
  () => {
993
- var u;
994
- return { ...Ge, ...(u = e.mdx) == null ? void 0 : u.components };
1193
+ var _a3;
1194
+ return { ...MdxComponents, ...(_a3 = props.mdx) == null ? void 0 : _a3.components };
995
1195
  },
996
- [(i = e.mdx) == null ? void 0 : i.components]
997
- ), s = V(() => new fr(e), [e]);
998
- I(() => {
999
- s.initialize();
1000
- }, [s]);
1001
- const o = (c = e.plugins) == null ? void 0 : c.filter(hr).map((u, g) => {
1002
- var d;
1003
- return /* @__PURE__ */ n.jsx(pt, { children: (d = u.getHead) == null ? void 0 : d.call(u) }, g);
1196
+ [(_a2 = props.mdx) == null ? void 0 : _a2.components]
1197
+ );
1198
+ const devPortalContext = useMemo(() => new DevPortalContext(props), [props]);
1199
+ useEffect(() => {
1200
+ void devPortalContext.initialize();
1201
+ }, [devPortalContext]);
1202
+ const heads = (_b2 = props.plugins) == null ? void 0 : _b2.filter(hasHead).map((plugin, i) => {
1203
+ var _a3;
1204
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Fragment, { children: (_a3 = plugin.getHead) == null ? void 0 : _a3.call(plugin) }, i);
1004
1205
  });
1005
- return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1006
- /* @__PURE__ */ n.jsx(je, { children: o }),
1007
- /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(vr, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1206
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(QueryClientProvider, { client: queryClient, children: [
1207
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Helmet, { children: heads }),
1208
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DevPortalProvider, { value: devPortalContext, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MDXProvider, { components: mdxComponents, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentsProvider, { value: components, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ViewportAnchorProvider, { children }) }) }) }) })
1008
1209
  ] });
1009
- }, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
1010
- Le.displayName = "DevPortal";
1011
- const xr = () => {
1012
- const t = T(), { setActiveAnchor: e } = W();
1013
- I(() => {
1014
- if (!t.hash) return;
1015
- const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
1016
- if (a) {
1210
+ };
1211
+ const Inner = memo(DevPortalInner);
1212
+ const DevPortal$1 = (props) => {
1213
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { FallbackComponent: TopLevelError, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Inner, { ...props }) });
1214
+ };
1215
+ DevPortal$1.displayName = "DevPortal";
1216
+ const useScrollToAnchor = () => {
1217
+ const location = useLocation();
1218
+ const { setActiveAnchor } = useViewportAnchor();
1219
+ useEffect(() => {
1220
+ if (!location.hash) return;
1221
+ const hash = location.hash.split("/")[0].slice(1);
1222
+ const element = document.getElementById(decodeURIComponent(hash));
1223
+ if (element) {
1017
1224
  requestAnimationFrame(() => {
1018
- a.scrollIntoView(), requestIdleCallback(() => e(r));
1225
+ element.scrollIntoView();
1226
+ requestIdleCallback(() => setActiveAnchor(hash));
1019
1227
  });
1020
1228
  return;
1021
1229
  }
1022
- const s = new MutationObserver((o, i) => {
1023
- const c = document.getElementById(decodeURIComponent(r));
1024
- c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
1230
+ const observer = new MutationObserver((_mutations2, obs) => {
1231
+ const element2 = document.getElementById(decodeURIComponent(hash));
1232
+ if (!element2) return;
1233
+ element2.scrollIntoView();
1234
+ requestIdleCallback(() => setActiveAnchor(hash));
1235
+ obs.disconnect();
1025
1236
  });
1026
- return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
1027
- }, [t.hash, e]);
1028
- }, wr = () => {
1029
- const t = T(), e = K(t.pathname);
1030
- I(() => {
1031
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1032
- }, [t.pathname]);
1033
- }, Be = ({
1034
- item: t,
1035
- defaultOpen: e,
1036
- path: r
1237
+ observer.observe(document.body, { childList: true, subtree: true });
1238
+ return () => observer.disconnect();
1239
+ }, [location.hash, setActiveAnchor]);
1240
+ };
1241
+ const useScrollToTop = () => {
1242
+ const location = useLocation();
1243
+ const previousPath = useRef(location.pathname);
1244
+ useEffect(() => {
1245
+ if (previousPath.current === location.pathname) return;
1246
+ window.scrollTo(0, 0);
1247
+ previousPath.current = location.pathname;
1248
+ }, [location.pathname]);
1249
+ };
1250
+ const useNavigationCollapsibleState = ({
1251
+ item,
1252
+ defaultOpen,
1253
+ path
1037
1254
  }) => {
1038
- const [a, s] = mt(e), o = T(), i = K(o.pathname);
1039
- return I(() => {
1040
- !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1041
- }, [a, t, r, o.pathname]), [a, s];
1042
- }, z = tt(
1255
+ const [isOpen, setIsOpen] = useState(defaultOpen);
1256
+ const location = useLocation();
1257
+ const previousLocationPath = useRef(location.pathname);
1258
+ useEffect(() => {
1259
+ if (!isOpen && previousLocationPath.current !== location.pathname) {
1260
+ setIsOpen(checkHasActiveItem(item, location.pathname, path));
1261
+ }
1262
+ previousLocationPath.current = location.pathname;
1263
+ }, [isOpen, item, path, location.pathname]);
1264
+ return [isOpen, setIsOpen];
1265
+ };
1266
+ const navigationListItem = cva(
1043
1267
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1044
1268
  {
1045
1269
  variants: {
@@ -1053,126 +1277,135 @@ const xr = () => {
1053
1277
  }
1054
1278
  }
1055
1279
  }
1056
- ), Er = "data-anchor", ze = ({
1057
- category: t,
1058
- item: e,
1059
- activeAnchor: r,
1060
- currentTopNavItem: a,
1061
- basePath: s = ""
1280
+ );
1281
+ const DATA_ANCHOR_ATTR = "data-anchor";
1282
+ const SideNavigationItem = ({
1283
+ category,
1284
+ item,
1285
+ activeAnchor,
1286
+ currentTopNavItem,
1287
+ basePath = ""
1062
1288
  }) => {
1063
- const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
1064
- item: e,
1065
- path: o,
1066
- defaultOpen: () => ee(e, i.pathname, o)
1289
+ const currentPath = isPathItem(item) ? joinPath(basePath, item.path) : "";
1290
+ const location = useLocation();
1291
+ const [isOpen, setIsOpen] = useNavigationCollapsibleState({
1292
+ item,
1293
+ path: currentPath,
1294
+ defaultOpen: () => checkHasActiveItem(item, location.pathname, currentPath)
1067
1295
  });
1068
- if (kt(e)) {
1069
- const d = F(
1296
+ if (isLinkItem(item)) {
1297
+ const classes = cn(
1070
1298
  "flex items-center gap-2",
1071
- z({
1072
- isActive: e.href === i.pathname
1299
+ navigationListItem({
1300
+ isActive: item.href === location.pathname
1073
1301
  })
1074
1302
  );
1075
- return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
1303
+ return item.href.startsWith("http") ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
1076
1304
  "a",
1077
1305
  {
1078
- className: d,
1079
- href: e.href,
1306
+ className: classes,
1307
+ href: item.href,
1080
1308
  target: "_blank",
1081
1309
  rel: "noopener noreferrer",
1082
1310
  children: [
1083
- e.label,
1084
- /* @__PURE__ */ n.jsx(Dt, { size: 14 })
1311
+ item.label,
1312
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { size: 14 })
1085
1313
  ]
1086
1314
  }
1087
- ) : /* @__PURE__ */ n.jsx(J, { className: d, to: e.href, children: e.label });
1315
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { className: classes, to: item.href, children: item.label });
1088
1316
  }
1089
- const g = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1090
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1091
- e.icon,
1092
- typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
1317
+ const linkContent = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between w-full", children: [
1318
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1319
+ item.icon,
1320
+ typeof item.label !== "string" ? item.label : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: item.label })
1093
1321
  ] }),
1094
- e.children && /* @__PURE__ */ n.jsx(
1095
- _e,
1322
+ item.children && /* @__PURE__ */ jsxRuntimeExports.jsx(
1323
+ ChevronRight,
1096
1324
  {
1097
1325
  size: 16,
1098
1326
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
1099
1327
  }
1100
1328
  )
1101
1329
  ] });
1102
- return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
1103
- Re,
1330
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { title: typeof item.label === "string" ? item.label : item.title, children: item.children ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
1331
+ Root,
1104
1332
  {
1105
- open: c,
1106
- onOpenChange: () => u((d) => !d),
1333
+ open: isOpen,
1334
+ onOpenChange: () => setIsOpen((prev) => !prev),
1107
1335
  className: "flex flex-col",
1108
1336
  children: [
1109
- /* @__PURE__ */ n.jsx(
1110
- ke,
1337
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1338
+ Trigger,
1111
1339
  {
1112
- className: F(
1340
+ className: cn(
1113
1341
  "group text-start",
1114
- z({ isActive: !1 })
1342
+ navigationListItem({ isActive: false })
1115
1343
  ),
1116
- children: g
1344
+ children: linkContent
1117
1345
  }
1118
1346
  ),
1119
- /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
1120
- ze,
1347
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Content, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: item.children.map((child) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1348
+ SideNavigationItem,
1121
1349
  {
1122
- category: t,
1123
- item: d,
1124
- activeAnchor: r,
1125
- currentTopNavItem: a,
1126
- basePath: o
1350
+ category,
1351
+ item: child,
1352
+ activeAnchor,
1353
+ currentTopNavItem,
1354
+ basePath: currentPath
1127
1355
  },
1128
- X(d) ? d.path : d.href
1356
+ isPathItem(child) ? child.path : child.href
1129
1357
  )) }) })
1130
1358
  ]
1131
1359
  }
1132
- ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
1133
- ct,
1360
+ ) : item.path.startsWith("#") ? /* @__PURE__ */ jsxRuntimeExports.jsx(
1361
+ AnchorLink,
1134
1362
  {
1135
- to: e.path,
1136
- [Er]: e.path,
1137
- className: z({
1138
- isActive: e.path.slice(1) === r,
1139
- isMuted: e.muted
1363
+ to: item.path,
1364
+ ...{ [DATA_ANCHOR_ATTR]: item.path },
1365
+ className: navigationListItem({
1366
+ isActive: item.path.slice(1) === activeAnchor,
1367
+ isMuted: item.muted
1140
1368
  }),
1141
- children: g
1369
+ children: linkContent
1142
1370
  }
1143
- ) : /* @__PURE__ */ n.jsx(
1144
- J,
1371
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
1372
+ NavLink,
1145
1373
  {
1146
- className: ({ isActive: d }) => z({ isActive: d }),
1147
- to: o,
1148
- children: g
1374
+ className: ({ isActive }) => navigationListItem({ isActive }),
1375
+ to: currentPath,
1376
+ children: linkContent
1149
1377
  }
1150
1378
  ) });
1151
- }, Pr = ({
1152
- category: t
1379
+ };
1380
+ const SideNavigationCategory = ({
1381
+ category
1153
1382
  }) => {
1154
- const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
1155
- item: t,
1156
- path: (r == null ? void 0 : r.path) ?? "",
1157
- defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
1383
+ const { activeAnchor } = useViewportAnchor();
1384
+ const navItem = useTopNavigationItem();
1385
+ const location = useLocation();
1386
+ const isCollapsible = category.collapsible ?? true;
1387
+ const [isOpen, setIsOpen] = useNavigationCollapsibleState({
1388
+ item: category,
1389
+ path: (navItem == null ? void 0 : navItem.path) ?? "",
1390
+ defaultOpen: () => !isCollapsible || category.expanded || checkHasActiveItem(category, location.pathname, (navItem == null ? void 0 : navItem.path) ?? "")
1158
1391
  });
1159
- return /* @__PURE__ */ n.jsxs(
1160
- Re,
1392
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1393
+ Root,
1161
1394
  {
1162
- open: o,
1163
- onOpenChange: () => i((c) => !c),
1395
+ open: isOpen,
1396
+ onOpenChange: () => setIsOpen((prev) => !prev),
1164
1397
  children: [
1165
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
1398
+ category.label.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger, { asChild: isCollapsible, disabled: !isCollapsible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1166
1399
  "h5",
1167
1400
  {
1168
- className: F(
1401
+ className: cn(
1169
1402
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
1170
- s ? "hover:bg-accent" : "cursor-auto"
1403
+ isCollapsible ? "hover:bg-accent" : "cursor-auto"
1171
1404
  ),
1172
1405
  children: [
1173
- t.label,
1174
- s && /* @__PURE__ */ n.jsx(
1175
- _e,
1406
+ category.label,
1407
+ isCollapsible && /* @__PURE__ */ jsxRuntimeExports.jsx(
1408
+ ChevronRight,
1176
1409
  {
1177
1410
  className: "group-data-[state=open]:rotate-90 transition",
1178
1411
  size: 16
@@ -1181,88 +1414,108 @@ const xr = () => {
1181
1414
  ]
1182
1415
  }
1183
1416
  ) }) : "Endpoints",
1184
- /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ n.jsx(
1185
- ze,
1417
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Content, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: category.children.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1418
+ SideNavigationItem,
1186
1419
  {
1187
- category: t,
1188
- item: c,
1189
- activeAnchor: e,
1190
- currentTopNavItem: r,
1191
- basePath: De(r == null ? void 0 : r.path, t.path)
1420
+ category,
1421
+ item,
1422
+ activeAnchor,
1423
+ currentTopNavItem: navItem,
1424
+ basePath: joinPath(navItem == null ? void 0 : navItem.path, category.path)
1192
1425
  },
1193
- X(c) ? c.path + c.label : c.href
1426
+ isPathItem(item) ? item.path + item.label : item.href
1194
1427
  )) }) })
1195
1428
  ]
1196
1429
  },
1197
- t.label
1430
+ category.label
1198
1431
  );
1199
- }, jr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
1200
- return /* @__PURE__ */ n.jsx(
1432
+ };
1433
+ const SideNavigationWrapper = forwardRef(function SideNavigation({ children, className, pushMainContent }, ref) {
1434
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1201
1435
  "nav",
1202
1436
  {
1203
- "data-navigation": String(a),
1204
- className: F(
1437
+ "data-navigation": String(pushMainContent),
1438
+ className: cn(
1205
1439
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1206
- r
1440
+ className
1207
1441
  ),
1208
- ref: s,
1209
- children: e
1442
+ ref,
1443
+ children
1210
1444
  }
1211
1445
  );
1212
- }), Sr = () => {
1213
- const t = K(null), e = At();
1214
- return /* @__PURE__ */ n.jsx(
1215
- jr,
1446
+ });
1447
+ const SideNavigation2 = () => {
1448
+ const navRef = useRef(null);
1449
+ const navigation = useNavigation();
1450
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1451
+ SideNavigationWrapper,
1216
1452
  {
1217
- ref: t,
1218
- pushMainContent: e.data.items.length > 0,
1219
- children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Pr, { category: r }, r.label))
1453
+ ref: navRef,
1454
+ pushMainContent: navigation.data.items.length > 0,
1455
+ children: navigation.data.items.map((category) => /* @__PURE__ */ jsxRuntimeExports.jsx(SideNavigationCategory, { category }, category.label))
1220
1456
  }
1221
1457
  );
1222
- }, Nr = ({ children: t }) => {
1223
- const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1224
- xr(), wr();
1225
- const s = K(e.pathname);
1226
- return I(() => {
1227
- e.pathname !== s.current && r(""), s.current = e.pathname;
1228
- }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1229
- /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
1230
- (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
1231
- (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
1458
+ };
1459
+ const Layout$1 = ({ children }) => {
1460
+ const location = useLocation();
1461
+ const { setActiveAnchor } = useViewportAnchor();
1462
+ const { meta } = useDevPortal();
1463
+ useScrollToAnchor();
1464
+ useScrollToTop();
1465
+ const previousLocationPath = useRef(location.pathname);
1466
+ useEffect(() => {
1467
+ if (location.pathname !== previousLocationPath.current) {
1468
+ setActiveAnchor("");
1469
+ }
1470
+ previousLocationPath.current = location.pathname;
1471
+ }, [location.pathname, setActiveAnchor]);
1472
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1473
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Helmet, { titleTemplate: meta == null ? void 0 : meta.title, children: [
1474
+ (meta == null ? void 0 : meta.description) && /* @__PURE__ */ jsxRuntimeExports.jsx("meta", { name: "description", content: meta.description }),
1475
+ (meta == null ? void 0 : meta.favicon) && /* @__PURE__ */ jsxRuntimeExports.jsx("link", { rel: "icon", href: meta.favicon })
1232
1476
  ] }),
1233
- /* @__PURE__ */ n.jsx(qe, {}),
1234
- /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
1235
- vt,
1477
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Header, {}),
1478
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1479
+ Suspense,
1236
1480
  {
1237
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
1481
+ fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner, {}) }),
1238
1482
  children: [
1239
- /* @__PURE__ */ n.jsx(Sr, {}),
1240
- /* @__PURE__ */ n.jsx(
1483
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SideNavigation2, {}),
1484
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1241
1485
  "main",
1242
1486
  {
1243
- className: F(
1487
+ className: cn(
1244
1488
  "dark:border-white/10 translate-x-0 h-full",
1245
1489
  "lg:overflow-visible",
1246
1490
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1247
1491
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1248
1492
  ),
1249
- children: t ?? /* @__PURE__ */ n.jsx(ot, {})
1493
+ children: children ?? /* @__PURE__ */ jsxRuntimeExports.jsx(Outlet, {})
1250
1494
  }
1251
1495
  )
1252
1496
  ]
1253
1497
  }
1254
1498
  ) })
1255
1499
  ] });
1256
- }, Hr = ut, Lr = rt, Br = Le, zr = Nr, Ur = at, Kr = nt, $r = Ft, Vr = Zt, Yr = er;
1500
+ };
1501
+ const useMDXComponents = useMDXComponents$1;
1502
+ const Callout = Callout$1;
1503
+ const DevPortal = DevPortal$1;
1504
+ const Layout = Layout$1;
1505
+ const Link = Link$1;
1506
+ const RouterError = RouterError$1;
1507
+ const ServerError = ServerError$1;
1508
+ const Bootstrap = Bootstrap$1;
1509
+ const BootstrapStatic = BootstrapStatic$1;
1257
1510
  export {
1258
- Vr as Bootstrap,
1259
- Yr as BootstrapStatic,
1260
- Lr as Callout,
1261
- Br as DevPortal,
1262
- zr as Layout,
1263
- Ur as Link,
1264
- Kr as RouterError,
1265
- $r as ServerError,
1266
- Hr as useMDXComponents
1511
+ Bootstrap,
1512
+ BootstrapStatic,
1513
+ Callout,
1514
+ DevPortal,
1515
+ Layout,
1516
+ Link,
1517
+ RouterError,
1518
+ ServerError,
1519
+ useMDXComponents
1267
1520
  };
1268
1521
  //# sourceMappingURL=zudoku.components.js.map