zudoku 0.3.0-dev.38 → 0.3.0-dev.39
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.
- package/dist/app/entry.client.d.ts +0 -1
- package/dist/app/entry.client.js +5 -8
- package/dist/app/entry.client.js.map +1 -1
- package/dist/{vite/ssr → app}/entry.server.d.ts +1 -1
- package/dist/{vite/ssr → app}/entry.server.js +5 -6
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +6 -0
- package/dist/{lib → app}/main.js +5 -6
- package/dist/app/main.js.map +1 -0
- package/dist/{vite/ssr → app}/zudoku-manifest.js +1 -1
- package/dist/app/zudoku-manifest.js.map +1 -0
- package/dist/internal.d.ts +0 -2
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +12 -0
- package/dist/lib/components/Bootstrap.js +9 -0
- package/dist/lib/components/Bootstrap.js.map +1 -0
- package/dist/lib/components/DevPortal.js +1 -1
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/lib/components/index.js +5 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +5 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +3 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -1
- package/dist/lib/plugins/openapi/index.js +2 -2
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/build.js +12 -15
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +9 -8
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +1 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -12
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AnchorLink-Sx89bfCW.js → AnchorLink-DCdBbdqo.js} +4 -3
- package/lib/AnchorLink-DCdBbdqo.js.map +1 -0
- package/lib/{DevPortalProvider-Demv4Ngx.js → DevPortalProvider-C-O1s7mm.js} +20 -20
- package/lib/{DevPortalProvider-Demv4Ngx.js.map → DevPortalProvider-C-O1s7mm.js.map} +1 -1
- package/lib/{Markdown-DMEnjeMH.js → Markdown-CGZJUYcj.js} +3192 -2663
- package/lib/Markdown-CGZJUYcj.js.map +1 -0
- package/lib/MdxPage-BZLuBOqR.js +190 -0
- package/lib/MdxPage-BZLuBOqR.js.map +1 -0
- package/lib/{OperationList-9NIdTqS0.js → OperationList-BEpN70_E.js} +192 -192
- package/lib/{OperationList-9NIdTqS0.js.map → OperationList-BEpN70_E.js.map} +1 -1
- package/lib/{Route-BqfQoDR2.js → Route-WiMUalLG.js} +3 -3
- package/lib/{Route-BqfQoDR2.js.map → Route-WiMUalLG.js.map} +1 -1
- package/lib/{Select-CJamK_wp.js → Select-BQ9-3iTJ.js} +5 -5
- package/lib/{Select-CJamK_wp.js.map → Select-BQ9-3iTJ.js.map} +1 -1
- package/lib/{Spinner-3YT-WUu5.js → Spinner-C1L_TK5f.js} +10 -10
- package/lib/{Spinner-3YT-WUu5.js.map → Spinner-C1L_TK5f.js.map} +1 -1
- package/lib/createWorkerClient-TWecYOlx.js +16698 -0
- package/lib/createWorkerClient-TWecYOlx.js.map +1 -0
- package/lib/{hook-Cq3Jb1lX.js → hook-SM2dMVmI.js} +9 -9
- package/lib/{hook-Cq3Jb1lX.js.map → hook-SM2dMVmI.js.map} +1 -1
- package/lib/{index-BB2EBBgh.js → index-CtLNbq0d.js} +15 -15
- package/lib/{index-BB2EBBgh.js.map → index-CtLNbq0d.js.map} +1 -1
- package/lib/{index-DhKGMJM2.js → index-PvQa9XLl.js} +16 -17
- package/lib/{index-DhKGMJM2.js.map → index-PvQa9XLl.js.map} +1 -1
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/index-pI9JkN46.js.map +1 -0
- package/lib/jsx-runtime-DLtUZ5Ve.js +1526 -0
- package/lib/{jsx-runtime-Bt86M5tA.js.map → jsx-runtime-DLtUZ5Ve.js.map} +1 -1
- package/lib/router-BkOLuJlq.js +2973 -0
- package/lib/{router-CcYTwKjf.js.map → router-BkOLuJlq.js.map} +1 -1
- package/lib/slugify-DbLhpSPt.js +28 -0
- package/lib/slugify-DbLhpSPt.js.map +1 -0
- package/lib/{util-CYBrkBUo.js → util-Cgie7wjb.js} +2 -2
- package/lib/{util-CYBrkBUo.js.map → util-Cgie7wjb.js.map} +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +692 -408
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +2 -225
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-markdown.js +4 -4
- package/lib/zudoku.plugin-openapi.js +6 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +4 -4
- package/package.json +3 -10
- package/src/app/entry.client.tsx +4 -20
- package/src/app/entry.server.tsx +156 -0
- package/src/{lib → app}/main.tsx +9 -8
- package/src/app/zudoku-manifest.ts +22 -0
- package/src/lib/components/Bootstrap.tsx +37 -0
- package/src/lib/components/DevPortal.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/index.ts +8 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +9 -1
- package/src/lib/plugins/openapi/client/interfaces.ts +3 -1
- package/src/lib/plugins/openapi/index.tsx +7 -3
- package/dist/lib/main.d.ts +0 -26
- package/dist/lib/main.js.map +0 -1
- package/dist/vite/plugin-openapi-worker.d.ts +0 -4
- package/dist/vite/plugin-openapi-worker.js +0 -39
- package/dist/vite/plugin-openapi-worker.js.map +0 -1
- package/dist/vite/ssr/entry.server.js.map +0 -1
- package/dist/vite/ssr/zudoku-manifest.js.map +0 -1
- package/lib/AnchorLink-Sx89bfCW.js.map +0 -1
- package/lib/Markdown-DMEnjeMH.js.map +0 -1
- package/lib/MdxPage-s9RlKFtt.js +0 -213
- package/lib/MdxPage-s9RlKFtt.js.map +0 -1
- package/lib/jsx-runtime-Bt86M5tA.js +0 -866
- package/lib/router-CcYTwKjf.js +0 -183
- package/lib/urql-DMlBWUKL.js +0 -1592
- package/lib/urql-DMlBWUKL.js.map +0 -1
- /package/dist/{vite/ssr → app}/zudoku-manifest.d.ts +0 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var ce = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var v = (t, e,
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
set _(
|
|
10
|
-
d(t, e,
|
|
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), d = (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
|
+
d(t, e, s, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return l(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { c as
|
|
17
|
-
import { E as
|
|
18
|
-
import { j as
|
|
19
|
-
import {
|
|
20
|
-
import { createContext as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
16
|
+
import { c as U, d as Ye, R as Je, N as J, b as Xe, e as We, M as Ge, T as Ze, V as et, u as W, a as F, f as tt, g as rt, L as at } from "./Markdown-CGZJUYcj.js";
|
|
17
|
+
import { E as Ee, u as st, R as nt } from "./hook-SM2dMVmI.js";
|
|
18
|
+
import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-DLtUZ5Ve.js";
|
|
19
|
+
import { a as Pe, H as je, M as lt, A as ct, u as ut } from "./AnchorLink-DCdBbdqo.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 { a as G } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
22
|
+
import { u as yt } from "./router-BkOLuJlq.js";
|
|
23
|
+
import { S as Oe, h as Ae, Q as bt, n as g, m as de, e as fe, f as P, g as xt, i as wt, j as Et, k as Pt, o as pe, r as me, l as jt, p as ge, q as ve, s as St, a as Z, t as Nt, D as Ct, u as Ot, v as At } from "./DevPortalProvider-C-O1s7mm.js";
|
|
24
|
+
import { c as Rt } from "./state-Ds_OxRHP.js";
|
|
25
|
+
import { M as kt } from "./index-CtLNbq0d.js";
|
|
26
|
+
import { R as Re, T as ke, C as Me, S as Mt } from "./Spinner-C1L_TK5f.js";
|
|
27
|
+
import { c as ee, i as X, j as De, a as Dt } from "./util-Cgie7wjb.js";
|
|
26
28
|
/**
|
|
27
29
|
* @license lucide-react v0.378.0 - ISC
|
|
28
30
|
*
|
|
29
31
|
* This source code is licensed under the ISC license.
|
|
30
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
33
|
*/
|
|
32
|
-
const
|
|
34
|
+
const _e = U("ChevronRight", [
|
|
33
35
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
34
36
|
]);
|
|
35
37
|
/**
|
|
@@ -38,7 +40,7 @@ const Ne = L("ChevronRight", [
|
|
|
38
40
|
* This source code is licensed under the ISC license.
|
|
39
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
42
|
*/
|
|
41
|
-
const
|
|
43
|
+
const _t = U("ExternalLink", [
|
|
42
44
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
43
45
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
44
46
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -49,7 +51,7 @@ const yt = L("ExternalLink", [
|
|
|
49
51
|
* This source code is licensed under the ISC license.
|
|
50
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
53
|
*/
|
|
52
|
-
const
|
|
54
|
+
const Tt = U("MoonStar", [
|
|
53
55
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
54
56
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
55
57
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -60,7 +62,7 @@ const xt = L("MoonStar", [
|
|
|
60
62
|
* This source code is licensed under the ISC license.
|
|
61
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
64
|
*/
|
|
63
|
-
const
|
|
65
|
+
const Ft = U("Sun", [
|
|
64
66
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
65
67
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
66
68
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -71,453 +73,732 @@ const bt = L("Sun", [
|
|
|
71
73
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
72
74
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
73
75
|
]);
|
|
74
|
-
|
|
76
|
+
function Qt({ error: t }) {
|
|
77
|
+
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
78
|
+
}
|
|
79
|
+
var q = {};
|
|
80
|
+
const It = /* @__PURE__ */ G(yt), qt = /* @__PURE__ */ G(it), Ht = /* @__PURE__ */ G(Ye);
|
|
81
|
+
Object.defineProperty(q, "__esModule", { value: !0 });
|
|
82
|
+
var Lt = ht, E = It, te = qt, j = Ht;
|
|
83
|
+
function Bt(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);
|
|
97
|
+
}
|
|
98
|
+
var x = /* @__PURE__ */ Bt(Lt);
|
|
99
|
+
function zt({
|
|
100
|
+
basename: t,
|
|
101
|
+
children: e,
|
|
102
|
+
location: r = "/",
|
|
103
|
+
future: a
|
|
104
|
+
}) {
|
|
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
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function Ut({
|
|
124
|
+
context: t,
|
|
125
|
+
router: e,
|
|
126
|
+
hydrate: r = !0,
|
|
127
|
+
nonce: a
|
|
128
|
+
}) {
|
|
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: $t(t.errors)
|
|
142
|
+
};
|
|
143
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Gt(JSON.stringify(JSON.stringify(u)))});`;
|
|
144
|
+
}
|
|
145
|
+
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, {
|
|
155
|
+
value: {
|
|
156
|
+
isTransitioning: !1
|
|
157
|
+
}
|
|
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,
|
|
164
|
+
future: {
|
|
165
|
+
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
166
|
+
}
|
|
167
|
+
}, /* @__PURE__ */ x.createElement(Kt, {
|
|
168
|
+
routes: e.routes,
|
|
169
|
+
future: e.future,
|
|
170
|
+
state: c
|
|
171
|
+
})))))), i ? /* @__PURE__ */ x.createElement("script", {
|
|
172
|
+
suppressHydrationWarning: !0,
|
|
173
|
+
nonce: a,
|
|
174
|
+
dangerouslySetInnerHTML: {
|
|
175
|
+
__html: i
|
|
176
|
+
}
|
|
177
|
+
}) : null);
|
|
178
|
+
}
|
|
179
|
+
function Kt({
|
|
180
|
+
routes: t,
|
|
181
|
+
future: e,
|
|
182
|
+
state: r
|
|
183
|
+
}) {
|
|
184
|
+
return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
|
|
185
|
+
}
|
|
186
|
+
function $t(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;
|
|
203
|
+
}
|
|
204
|
+
function Te() {
|
|
205
|
+
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.`);
|
|
210
|
+
},
|
|
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.`);
|
|
213
|
+
},
|
|
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.`);
|
|
216
|
+
},
|
|
217
|
+
back() {
|
|
218
|
+
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
219
|
+
},
|
|
220
|
+
forward() {
|
|
221
|
+
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function Vt(t, e) {
|
|
226
|
+
return E.createStaticHandler(t, {
|
|
227
|
+
...e,
|
|
228
|
+
mapRouteProperties: te.UNSAFE_mapRouteProperties
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
function Yt(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;
|
|
234
|
+
return {
|
|
235
|
+
...c,
|
|
236
|
+
route: u
|
|
237
|
+
};
|
|
238
|
+
}), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
|
|
239
|
+
return {
|
|
240
|
+
get basename() {
|
|
241
|
+
return e.basename;
|
|
242
|
+
},
|
|
243
|
+
get future() {
|
|
244
|
+
var c, u;
|
|
245
|
+
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
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
get state() {
|
|
255
|
+
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,
|
|
264
|
+
restoreScrollPosition: null,
|
|
265
|
+
preventScrollReset: !1,
|
|
266
|
+
revalidation: "idle",
|
|
267
|
+
fetchers: /* @__PURE__ */ new Map(),
|
|
268
|
+
blockers: /* @__PURE__ */ new Map()
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
get routes() {
|
|
272
|
+
return s;
|
|
273
|
+
},
|
|
274
|
+
get window() {
|
|
275
|
+
},
|
|
276
|
+
initialize() {
|
|
277
|
+
throw i("initialize");
|
|
278
|
+
},
|
|
279
|
+
subscribe() {
|
|
280
|
+
throw i("subscribe");
|
|
281
|
+
},
|
|
282
|
+
enableScrollRestoration() {
|
|
283
|
+
throw i("enableScrollRestoration");
|
|
284
|
+
},
|
|
285
|
+
navigate() {
|
|
286
|
+
throw i("navigate");
|
|
287
|
+
},
|
|
288
|
+
fetch() {
|
|
289
|
+
throw i("fetch");
|
|
290
|
+
},
|
|
291
|
+
revalidate() {
|
|
292
|
+
throw i("revalidate");
|
|
293
|
+
},
|
|
294
|
+
createHref: Fe,
|
|
295
|
+
encodeLocation: Qe,
|
|
296
|
+
getFetcher() {
|
|
297
|
+
return E.IDLE_FETCHER;
|
|
298
|
+
},
|
|
299
|
+
deleteFetcher() {
|
|
300
|
+
throw i("deleteFetcher");
|
|
301
|
+
},
|
|
302
|
+
dispose() {
|
|
303
|
+
throw i("dispose");
|
|
304
|
+
},
|
|
305
|
+
getBlocker() {
|
|
306
|
+
return E.IDLE_BLOCKER;
|
|
307
|
+
},
|
|
308
|
+
deleteBlocker() {
|
|
309
|
+
throw i("deleteBlocker");
|
|
310
|
+
},
|
|
311
|
+
patchRoutes() {
|
|
312
|
+
throw i("patchRoutes");
|
|
313
|
+
},
|
|
314
|
+
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
315
|
+
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
316
|
+
_internalSetRoutes() {
|
|
317
|
+
throw i("_internalSetRoutes");
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function Fe(t) {
|
|
322
|
+
return typeof t == "string" ? t : j.createPath(t);
|
|
323
|
+
}
|
|
324
|
+
function Qe(t) {
|
|
325
|
+
let e = typeof t == "string" ? t : j.createPath(t);
|
|
326
|
+
e = e.replace(/ $/, "%20");
|
|
327
|
+
let r = Jt.test(e) ? new URL(e) : new URL(e, "http://localhost");
|
|
328
|
+
return {
|
|
329
|
+
pathname: r.pathname,
|
|
330
|
+
search: r.search,
|
|
331
|
+
hash: r.hash
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
const Jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xt = {
|
|
335
|
+
"&": "\\u0026",
|
|
336
|
+
">": "\\u003e",
|
|
337
|
+
"<": "\\u003c",
|
|
338
|
+
"\u2028": "\\u2028",
|
|
339
|
+
"\u2029": "\\u2029"
|
|
340
|
+
}, Wt = /[&><\u2028\u2029]/g;
|
|
341
|
+
function Gt(t) {
|
|
342
|
+
return t.replace(Wt, (e) => Xt[e]);
|
|
343
|
+
}
|
|
344
|
+
q.StaticRouter = zt;
|
|
345
|
+
var Zt = q.StaticRouterProvider = Ut;
|
|
346
|
+
q.createStaticHandler = Vt;
|
|
347
|
+
q.createStaticRouter = Yt;
|
|
348
|
+
const er = ({
|
|
349
|
+
router: t
|
|
350
|
+
}) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), tr = ({
|
|
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(Zt, { router: t, context: e }) }) });
|
|
355
|
+
var w, be, rr = (be = class extends Oe {
|
|
75
356
|
constructor(e = {}) {
|
|
76
357
|
super();
|
|
77
|
-
y(this,
|
|
78
|
-
this.config = e, d(this,
|
|
358
|
+
y(this, w);
|
|
359
|
+
this.config = e, d(this, w, /* @__PURE__ */ new Map());
|
|
79
360
|
}
|
|
80
|
-
build(e,
|
|
81
|
-
const
|
|
82
|
-
let
|
|
83
|
-
return
|
|
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({
|
|
84
365
|
cache: this,
|
|
85
|
-
queryKey:
|
|
366
|
+
queryKey: s,
|
|
86
367
|
queryHash: o,
|
|
87
|
-
options: e.defaultQueryOptions(
|
|
368
|
+
options: e.defaultQueryOptions(r),
|
|
88
369
|
state: a,
|
|
89
|
-
defaultOptions: e.getQueryDefaults(
|
|
90
|
-
}), this.add(
|
|
370
|
+
defaultOptions: e.getQueryDefaults(s)
|
|
371
|
+
}), this.add(i)), i;
|
|
91
372
|
}
|
|
92
373
|
add(e) {
|
|
93
|
-
|
|
374
|
+
l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
|
|
94
375
|
type: "added",
|
|
95
376
|
query: e
|
|
96
377
|
}));
|
|
97
378
|
}
|
|
98
379
|
remove(e) {
|
|
99
|
-
const
|
|
100
|
-
|
|
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 }));
|
|
101
382
|
}
|
|
102
383
|
clear() {
|
|
103
|
-
|
|
384
|
+
g.batch(() => {
|
|
104
385
|
this.getAll().forEach((e) => {
|
|
105
386
|
this.remove(e);
|
|
106
387
|
});
|
|
107
388
|
});
|
|
108
389
|
}
|
|
109
390
|
get(e) {
|
|
110
|
-
return
|
|
391
|
+
return l(this, w).get(e);
|
|
111
392
|
}
|
|
112
393
|
getAll() {
|
|
113
|
-
return [...
|
|
394
|
+
return [...l(this, w).values()];
|
|
114
395
|
}
|
|
115
396
|
find(e) {
|
|
116
|
-
const
|
|
397
|
+
const r = { exact: !0, ...e };
|
|
117
398
|
return this.getAll().find(
|
|
118
|
-
(a) =>
|
|
399
|
+
(a) => de(r, a)
|
|
119
400
|
);
|
|
120
401
|
}
|
|
121
402
|
findAll(e = {}) {
|
|
122
|
-
const
|
|
123
|
-
return Object.keys(e).length > 0 ?
|
|
403
|
+
const r = this.getAll();
|
|
404
|
+
return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
|
|
124
405
|
}
|
|
125
406
|
notify(e) {
|
|
126
|
-
|
|
127
|
-
this.listeners.forEach((
|
|
128
|
-
|
|
407
|
+
g.batch(() => {
|
|
408
|
+
this.listeners.forEach((r) => {
|
|
409
|
+
r(e);
|
|
129
410
|
});
|
|
130
411
|
});
|
|
131
412
|
}
|
|
132
413
|
onFocus() {
|
|
133
|
-
|
|
414
|
+
g.batch(() => {
|
|
134
415
|
this.getAll().forEach((e) => {
|
|
135
416
|
e.onFocus();
|
|
136
417
|
});
|
|
137
418
|
});
|
|
138
419
|
}
|
|
139
420
|
onOnline() {
|
|
140
|
-
|
|
421
|
+
g.batch(() => {
|
|
141
422
|
this.getAll().forEach((e) => {
|
|
142
423
|
e.onOnline();
|
|
143
424
|
});
|
|
144
425
|
});
|
|
145
426
|
}
|
|
146
|
-
},
|
|
427
|
+
}, w = new WeakMap(), be), m, Q, xe, ar = (xe = class extends Oe {
|
|
147
428
|
constructor(e = {}) {
|
|
148
429
|
super();
|
|
149
|
-
y(this,
|
|
150
|
-
y(this,
|
|
151
|
-
this.config = e, d(this,
|
|
430
|
+
y(this, m);
|
|
431
|
+
y(this, Q);
|
|
432
|
+
this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
|
|
152
433
|
}
|
|
153
|
-
build(e,
|
|
154
|
-
const
|
|
434
|
+
build(e, r, a) {
|
|
435
|
+
const s = new kt({
|
|
155
436
|
mutationCache: this,
|
|
156
|
-
mutationId: ++
|
|
157
|
-
options: e.defaultMutationOptions(
|
|
437
|
+
mutationId: ++L(this, Q)._,
|
|
438
|
+
options: e.defaultMutationOptions(r),
|
|
158
439
|
state: a
|
|
159
440
|
});
|
|
160
|
-
return this.add(
|
|
441
|
+
return this.add(s), s;
|
|
161
442
|
}
|
|
162
443
|
add(e) {
|
|
163
|
-
const
|
|
164
|
-
a.push(e),
|
|
444
|
+
const r = B(e), a = l(this, m).get(r) ?? [];
|
|
445
|
+
a.push(e), l(this, m).set(r, a), this.notify({ type: "added", mutation: e });
|
|
165
446
|
}
|
|
166
447
|
remove(e) {
|
|
167
448
|
var a;
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
170
|
-
const
|
|
171
|
-
|
|
449
|
+
const r = B(e);
|
|
450
|
+
if (l(this, m).has(r)) {
|
|
451
|
+
const s = (a = l(this, m).get(r)) == null ? void 0 : a.filter((o) => o !== e);
|
|
452
|
+
s && (s.length === 0 ? l(this, m).delete(r) : l(this, m).set(r, s));
|
|
172
453
|
}
|
|
173
454
|
this.notify({ type: "removed", mutation: e });
|
|
174
455
|
}
|
|
175
456
|
canRun(e) {
|
|
176
457
|
var a;
|
|
177
|
-
const
|
|
178
|
-
return !
|
|
458
|
+
const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
|
|
459
|
+
return !r || r === e;
|
|
179
460
|
}
|
|
180
461
|
runNext(e) {
|
|
181
462
|
var a;
|
|
182
|
-
const
|
|
183
|
-
return (
|
|
463
|
+
const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
|
|
464
|
+
return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
|
|
184
465
|
}
|
|
185
466
|
clear() {
|
|
186
|
-
|
|
467
|
+
g.batch(() => {
|
|
187
468
|
this.getAll().forEach((e) => {
|
|
188
469
|
this.remove(e);
|
|
189
470
|
});
|
|
190
471
|
});
|
|
191
472
|
}
|
|
192
473
|
getAll() {
|
|
193
|
-
return [...
|
|
474
|
+
return [...l(this, m).values()].flat();
|
|
194
475
|
}
|
|
195
476
|
find(e) {
|
|
196
|
-
const
|
|
477
|
+
const r = { exact: !0, ...e };
|
|
197
478
|
return this.getAll().find(
|
|
198
|
-
(a) =>
|
|
479
|
+
(a) => fe(r, a)
|
|
199
480
|
);
|
|
200
481
|
}
|
|
201
482
|
findAll(e = {}) {
|
|
202
|
-
return this.getAll().filter((
|
|
483
|
+
return this.getAll().filter((r) => fe(e, r));
|
|
203
484
|
}
|
|
204
485
|
notify(e) {
|
|
205
|
-
|
|
206
|
-
this.listeners.forEach((
|
|
207
|
-
|
|
486
|
+
g.batch(() => {
|
|
487
|
+
this.listeners.forEach((r) => {
|
|
488
|
+
r(e);
|
|
208
489
|
});
|
|
209
490
|
});
|
|
210
491
|
}
|
|
211
492
|
resumePausedMutations() {
|
|
212
|
-
const e = this.getAll().filter((
|
|
213
|
-
return
|
|
493
|
+
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
494
|
+
return g.batch(
|
|
214
495
|
() => Promise.all(
|
|
215
|
-
e.map((
|
|
496
|
+
e.map((r) => r.continue().catch(P))
|
|
216
497
|
)
|
|
217
498
|
);
|
|
218
499
|
}
|
|
219
|
-
},
|
|
220
|
-
function
|
|
500
|
+
}, m = new WeakMap(), Q = new WeakMap(), xe);
|
|
501
|
+
function B(t) {
|
|
221
502
|
var e;
|
|
222
503
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
223
504
|
}
|
|
224
|
-
function
|
|
505
|
+
function sr(t) {
|
|
225
506
|
return {
|
|
226
|
-
onFetch: (e,
|
|
507
|
+
onFetch: (e, r) => {
|
|
227
508
|
const a = async () => {
|
|
228
|
-
var
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
const
|
|
232
|
-
Object.defineProperty(
|
|
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 f = !1;
|
|
512
|
+
const p = (b) => {
|
|
513
|
+
Object.defineProperty(b, "signal", {
|
|
233
514
|
enumerable: !0,
|
|
234
|
-
get: () => (e.signal.aborted ?
|
|
235
|
-
|
|
515
|
+
get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
|
|
516
|
+
f = !0;
|
|
236
517
|
}), e.signal)
|
|
237
518
|
});
|
|
238
|
-
},
|
|
239
|
-
if (
|
|
519
|
+
}, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
|
|
520
|
+
if (f)
|
|
240
521
|
return Promise.reject();
|
|
241
|
-
if (
|
|
242
|
-
return Promise.resolve(
|
|
243
|
-
const
|
|
522
|
+
if (S == null && b.pages.length)
|
|
523
|
+
return Promise.resolve(b);
|
|
524
|
+
const H = {
|
|
244
525
|
queryKey: e.queryKey,
|
|
245
|
-
pageParam:
|
|
246
|
-
direction:
|
|
526
|
+
pageParam: S,
|
|
527
|
+
direction: A ? "backward" : "forward",
|
|
247
528
|
meta: e.options.meta
|
|
248
529
|
};
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
), { maxPages:
|
|
530
|
+
p(H);
|
|
531
|
+
const Ke = await Ue(
|
|
532
|
+
H
|
|
533
|
+
), { maxPages: oe } = e.options, le = A ? wt : Et;
|
|
253
534
|
return {
|
|
254
|
-
pages:
|
|
255
|
-
pageParams:
|
|
535
|
+
pages: le(b.pages, Ke, oe),
|
|
536
|
+
pageParams: le(b.pageParams, S, oe)
|
|
256
537
|
};
|
|
257
538
|
};
|
|
258
|
-
let
|
|
259
|
-
if (o &&
|
|
260
|
-
const
|
|
261
|
-
pages:
|
|
539
|
+
let R;
|
|
540
|
+
if (o && i.length) {
|
|
541
|
+
const b = o === "backward", S = b ? nr : ye, A = {
|
|
542
|
+
pages: i,
|
|
262
543
|
pageParams: c
|
|
263
|
-
},
|
|
264
|
-
|
|
544
|
+
}, H = S(s, A);
|
|
545
|
+
R = await $(A, H, b);
|
|
265
546
|
} else {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
c[0] ??
|
|
547
|
+
R = await $(
|
|
548
|
+
u,
|
|
549
|
+
c[0] ?? s.initialPageParam
|
|
269
550
|
);
|
|
270
|
-
const
|
|
271
|
-
for (let
|
|
272
|
-
const
|
|
273
|
-
|
|
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);
|
|
274
555
|
}
|
|
275
556
|
}
|
|
276
|
-
return
|
|
557
|
+
return R;
|
|
277
558
|
};
|
|
278
559
|
e.options.persister ? e.fetchFn = () => {
|
|
279
|
-
var
|
|
280
|
-
return (o = (
|
|
281
|
-
|
|
560
|
+
var s, o;
|
|
561
|
+
return (o = (s = e.options).persister) == null ? void 0 : o.call(
|
|
562
|
+
s,
|
|
282
563
|
a,
|
|
283
564
|
{
|
|
284
565
|
queryKey: e.queryKey,
|
|
285
566
|
meta: e.options.meta,
|
|
286
567
|
signal: e.signal
|
|
287
568
|
},
|
|
288
|
-
|
|
569
|
+
r
|
|
289
570
|
);
|
|
290
571
|
} : e.fetchFn = a;
|
|
291
572
|
}
|
|
292
573
|
};
|
|
293
574
|
}
|
|
294
|
-
function
|
|
575
|
+
function ye(t, { pages: e, pageParams: r }) {
|
|
295
576
|
const a = e.length - 1;
|
|
296
577
|
return t.getNextPageParam(
|
|
297
578
|
e[a],
|
|
298
579
|
e,
|
|
299
|
-
|
|
300
|
-
|
|
580
|
+
r[a],
|
|
581
|
+
r
|
|
301
582
|
);
|
|
302
583
|
}
|
|
303
|
-
function
|
|
584
|
+
function nr(t, { pages: e, pageParams: r }) {
|
|
304
585
|
var a;
|
|
305
586
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
306
587
|
t,
|
|
307
588
|
e[0],
|
|
308
589
|
e,
|
|
309
|
-
|
|
310
|
-
|
|
590
|
+
r[0],
|
|
591
|
+
r
|
|
311
592
|
);
|
|
312
593
|
}
|
|
313
|
-
var
|
|
594
|
+
var h, N, C, k, M, O, D, _, we, ir = (we = class {
|
|
314
595
|
constructor(t = {}) {
|
|
315
|
-
y(this,
|
|
316
|
-
y(this,
|
|
596
|
+
y(this, h);
|
|
597
|
+
y(this, N);
|
|
317
598
|
y(this, C);
|
|
599
|
+
y(this, k);
|
|
318
600
|
y(this, M);
|
|
319
|
-
y(this,
|
|
320
|
-
y(this,
|
|
321
|
-
y(this,
|
|
322
|
-
|
|
323
|
-
d(this, u, t.queryCache || new jt()), d(this, w, t.mutationCache || new Pt()), d(this, C, t.defaultOptions || {}), d(this, M, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
|
|
601
|
+
y(this, O);
|
|
602
|
+
y(this, D);
|
|
603
|
+
y(this, _);
|
|
604
|
+
d(this, h, t.queryCache || new rr()), d(this, N, t.mutationCache || new ar()), d(this, C, t.defaultOptions || {}), d(this, k, /* @__PURE__ */ new Map()), d(this, M, /* @__PURE__ */ new Map()), d(this, O, 0);
|
|
324
605
|
}
|
|
325
606
|
mount() {
|
|
326
|
-
|
|
327
|
-
t && (await this.resumePausedMutations(),
|
|
328
|
-
})), d(this,
|
|
329
|
-
t && (await this.resumePausedMutations(),
|
|
607
|
+
L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
|
|
608
|
+
t && (await this.resumePausedMutations(), l(this, h).onFocus());
|
|
609
|
+
})), d(this, _, pe.subscribe(async (t) => {
|
|
610
|
+
t && (await this.resumePausedMutations(), l(this, h).onOnline());
|
|
330
611
|
})));
|
|
331
612
|
}
|
|
332
613
|
unmount() {
|
|
333
614
|
var t, e;
|
|
334
|
-
|
|
615
|
+
L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), d(this, D, void 0), (e = l(this, _)) == null || e.call(this), d(this, _, void 0));
|
|
335
616
|
}
|
|
336
617
|
isFetching(t) {
|
|
337
|
-
return
|
|
618
|
+
return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
338
619
|
}
|
|
339
620
|
isMutating(t) {
|
|
340
|
-
return
|
|
621
|
+
return l(this, N).findAll({ ...t, status: "pending" }).length;
|
|
341
622
|
}
|
|
342
623
|
getQueryData(t) {
|
|
343
|
-
var
|
|
624
|
+
var r;
|
|
344
625
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
345
|
-
return (
|
|
626
|
+
return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
346
627
|
}
|
|
347
628
|
ensureQueryData(t) {
|
|
348
629
|
const e = this.getQueryData(t.queryKey);
|
|
349
630
|
if (e === void 0)
|
|
350
631
|
return this.fetchQuery(t);
|
|
351
632
|
{
|
|
352
|
-
const
|
|
353
|
-
return t.revalidateIfStale && a.isStaleByTime(
|
|
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);
|
|
354
635
|
}
|
|
355
636
|
}
|
|
356
637
|
getQueriesData(t) {
|
|
357
|
-
return
|
|
358
|
-
const a =
|
|
638
|
+
return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
639
|
+
const a = r.data;
|
|
359
640
|
return [e, a];
|
|
360
641
|
});
|
|
361
642
|
}
|
|
362
|
-
setQueryData(t, e,
|
|
363
|
-
const a = this.defaultQueryOptions({ queryKey: t }),
|
|
643
|
+
setQueryData(t, e, r) {
|
|
644
|
+
const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
|
|
364
645
|
a.queryHash
|
|
365
|
-
), o =
|
|
366
|
-
if (
|
|
367
|
-
return
|
|
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 });
|
|
368
649
|
}
|
|
369
|
-
setQueriesData(t, e,
|
|
370
|
-
return
|
|
371
|
-
() =>
|
|
650
|
+
setQueriesData(t, e, r) {
|
|
651
|
+
return g.batch(
|
|
652
|
+
() => l(this, h).findAll(t).map(({ queryKey: a }) => [
|
|
372
653
|
a,
|
|
373
|
-
this.setQueryData(a, e,
|
|
654
|
+
this.setQueryData(a, e, r)
|
|
374
655
|
])
|
|
375
656
|
);
|
|
376
657
|
}
|
|
377
658
|
getQueryState(t) {
|
|
378
|
-
var
|
|
659
|
+
var r;
|
|
379
660
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
380
|
-
return (
|
|
661
|
+
return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
|
|
381
662
|
}
|
|
382
663
|
removeQueries(t) {
|
|
383
|
-
const e =
|
|
384
|
-
|
|
385
|
-
e.findAll(t).forEach((
|
|
386
|
-
e.remove(
|
|
664
|
+
const e = l(this, h);
|
|
665
|
+
g.batch(() => {
|
|
666
|
+
e.findAll(t).forEach((r) => {
|
|
667
|
+
e.remove(r);
|
|
387
668
|
});
|
|
388
669
|
});
|
|
389
670
|
}
|
|
390
671
|
resetQueries(t, e) {
|
|
391
|
-
const
|
|
672
|
+
const r = l(this, h), a = {
|
|
392
673
|
type: "active",
|
|
393
674
|
...t
|
|
394
675
|
};
|
|
395
|
-
return
|
|
396
|
-
|
|
676
|
+
return g.batch(() => (r.findAll(t).forEach((s) => {
|
|
677
|
+
s.reset();
|
|
397
678
|
}), this.refetchQueries(a, e)));
|
|
398
679
|
}
|
|
399
680
|
cancelQueries(t = {}, e = {}) {
|
|
400
|
-
const
|
|
401
|
-
() =>
|
|
681
|
+
const r = { revert: !0, ...e }, a = g.batch(
|
|
682
|
+
() => l(this, h).findAll(t).map((s) => s.cancel(r))
|
|
402
683
|
);
|
|
403
|
-
return Promise.all(a).then(
|
|
684
|
+
return Promise.all(a).then(P).catch(P);
|
|
404
685
|
}
|
|
405
686
|
invalidateQueries(t = {}, e = {}) {
|
|
406
|
-
return
|
|
407
|
-
if (
|
|
687
|
+
return g.batch(() => {
|
|
688
|
+
if (l(this, h).findAll(t).forEach((a) => {
|
|
408
689
|
a.invalidate();
|
|
409
690
|
}), t.refetchType === "none")
|
|
410
691
|
return Promise.resolve();
|
|
411
|
-
const
|
|
692
|
+
const r = {
|
|
412
693
|
...t,
|
|
413
694
|
type: t.refetchType ?? t.type ?? "active"
|
|
414
695
|
};
|
|
415
|
-
return this.refetchQueries(
|
|
696
|
+
return this.refetchQueries(r, e);
|
|
416
697
|
});
|
|
417
698
|
}
|
|
418
699
|
refetchQueries(t = {}, e) {
|
|
419
|
-
const
|
|
700
|
+
const r = {
|
|
420
701
|
...e,
|
|
421
702
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
422
|
-
}, a =
|
|
423
|
-
() =>
|
|
424
|
-
let o =
|
|
425
|
-
return
|
|
703
|
+
}, a = g.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;
|
|
426
707
|
})
|
|
427
708
|
);
|
|
428
|
-
return Promise.all(a).then(
|
|
709
|
+
return Promise.all(a).then(P);
|
|
429
710
|
}
|
|
430
711
|
fetchQuery(t) {
|
|
431
712
|
const e = this.defaultQueryOptions(t);
|
|
432
713
|
e.retry === void 0 && (e.retry = !1);
|
|
433
|
-
const
|
|
434
|
-
return
|
|
435
|
-
|
|
436
|
-
) ?
|
|
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);
|
|
437
718
|
}
|
|
438
719
|
prefetchQuery(t) {
|
|
439
|
-
return this.fetchQuery(t).then(
|
|
720
|
+
return this.fetchQuery(t).then(P).catch(P);
|
|
440
721
|
}
|
|
441
722
|
fetchInfiniteQuery(t) {
|
|
442
|
-
return t.behavior =
|
|
723
|
+
return t.behavior = sr(t.pages), this.fetchQuery(t);
|
|
443
724
|
}
|
|
444
725
|
prefetchInfiniteQuery(t) {
|
|
445
|
-
return this.fetchInfiniteQuery(t).then(
|
|
726
|
+
return this.fetchInfiniteQuery(t).then(P).catch(P);
|
|
446
727
|
}
|
|
447
728
|
resumePausedMutations() {
|
|
448
|
-
return
|
|
729
|
+
return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
|
|
449
730
|
}
|
|
450
731
|
getQueryCache() {
|
|
451
|
-
return
|
|
732
|
+
return l(this, h);
|
|
452
733
|
}
|
|
453
734
|
getMutationCache() {
|
|
454
|
-
return
|
|
735
|
+
return l(this, N);
|
|
455
736
|
}
|
|
456
737
|
getDefaultOptions() {
|
|
457
|
-
return
|
|
738
|
+
return l(this, C);
|
|
458
739
|
}
|
|
459
740
|
setDefaultOptions(t) {
|
|
460
741
|
d(this, C, t);
|
|
461
742
|
}
|
|
462
743
|
setQueryDefaults(t, e) {
|
|
463
|
-
|
|
744
|
+
l(this, k).set(ge(t), {
|
|
464
745
|
queryKey: t,
|
|
465
746
|
defaultOptions: e
|
|
466
747
|
});
|
|
467
748
|
}
|
|
468
749
|
getQueryDefaults(t) {
|
|
469
|
-
const e = [...
|
|
470
|
-
let
|
|
750
|
+
const e = [...l(this, k).values()];
|
|
751
|
+
let r = {};
|
|
471
752
|
return e.forEach((a) => {
|
|
472
|
-
|
|
473
|
-
}),
|
|
753
|
+
ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
|
|
754
|
+
}), r;
|
|
474
755
|
}
|
|
475
756
|
setMutationDefaults(t, e) {
|
|
476
|
-
|
|
757
|
+
l(this, M).set(ge(t), {
|
|
477
758
|
mutationKey: t,
|
|
478
759
|
defaultOptions: e
|
|
479
760
|
});
|
|
480
761
|
}
|
|
481
762
|
getMutationDefaults(t) {
|
|
482
|
-
const e = [...
|
|
483
|
-
let
|
|
763
|
+
const e = [...l(this, M).values()];
|
|
764
|
+
let r = {};
|
|
484
765
|
return e.forEach((a) => {
|
|
485
|
-
|
|
486
|
-
}),
|
|
766
|
+
ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
|
|
767
|
+
}), r;
|
|
487
768
|
}
|
|
488
769
|
defaultQueryOptions(t) {
|
|
489
770
|
if (t._defaulted)
|
|
490
771
|
return t;
|
|
491
772
|
const e = {
|
|
492
|
-
...
|
|
773
|
+
...l(this, C).queries,
|
|
493
774
|
...this.getQueryDefaults(t.queryKey),
|
|
494
775
|
...t,
|
|
495
776
|
_defaulted: !0
|
|
496
777
|
};
|
|
497
|
-
return e.queryHash || (e.queryHash =
|
|
778
|
+
return e.queryHash || (e.queryHash = Ae(
|
|
498
779
|
e.queryKey,
|
|
499
780
|
e
|
|
500
|
-
)), 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 ===
|
|
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;
|
|
501
782
|
}
|
|
502
783
|
defaultMutationOptions(t) {
|
|
503
784
|
return t != null && t._defaulted ? t : {
|
|
504
|
-
...
|
|
785
|
+
...l(this, C).mutations,
|
|
505
786
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
506
787
|
...t,
|
|
507
788
|
_defaulted: !0
|
|
508
789
|
};
|
|
509
790
|
}
|
|
510
791
|
clear() {
|
|
511
|
-
|
|
792
|
+
l(this, h).clear(), l(this, N).clear();
|
|
512
793
|
}
|
|
513
|
-
},
|
|
514
|
-
const
|
|
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 or = Ne(null), Y = {
|
|
515
796
|
didCatch: !1,
|
|
516
797
|
error: null
|
|
517
798
|
};
|
|
518
|
-
class
|
|
799
|
+
class lr extends dt {
|
|
519
800
|
constructor(e) {
|
|
520
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
801
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
|
|
521
802
|
}
|
|
522
803
|
static getDerivedStateFromError(e) {
|
|
523
804
|
return {
|
|
@@ -530,73 +811,73 @@ class Ot extends rt {
|
|
|
530
811
|
error: e
|
|
531
812
|
} = this.state;
|
|
532
813
|
if (e !== null) {
|
|
533
|
-
for (var
|
|
534
|
-
o[
|
|
535
|
-
(
|
|
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, {
|
|
536
817
|
args: o,
|
|
537
818
|
reason: "imperative-api"
|
|
538
|
-
}), this.setState(
|
|
819
|
+
}), this.setState(Y);
|
|
539
820
|
}
|
|
540
821
|
}
|
|
541
|
-
componentDidCatch(e,
|
|
542
|
-
var a,
|
|
543
|
-
(a = (
|
|
822
|
+
componentDidCatch(e, r) {
|
|
823
|
+
var a, s;
|
|
824
|
+
(a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
|
|
544
825
|
}
|
|
545
|
-
componentDidUpdate(e,
|
|
826
|
+
componentDidUpdate(e, r) {
|
|
546
827
|
const {
|
|
547
828
|
didCatch: a
|
|
548
829
|
} = this.state, {
|
|
549
|
-
resetKeys:
|
|
830
|
+
resetKeys: s
|
|
550
831
|
} = this.props;
|
|
551
|
-
if (a &&
|
|
552
|
-
var o,
|
|
553
|
-
(o = (
|
|
554
|
-
next:
|
|
832
|
+
if (a && r.error !== null && cr(e.resetKeys, s)) {
|
|
833
|
+
var o, i;
|
|
834
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
835
|
+
next: s,
|
|
555
836
|
prev: e.resetKeys,
|
|
556
837
|
reason: "keys"
|
|
557
|
-
}), this.setState(
|
|
838
|
+
}), this.setState(Y);
|
|
558
839
|
}
|
|
559
840
|
}
|
|
560
841
|
render() {
|
|
561
842
|
const {
|
|
562
843
|
children: e,
|
|
563
|
-
fallbackRender:
|
|
844
|
+
fallbackRender: r,
|
|
564
845
|
FallbackComponent: a,
|
|
565
|
-
fallback:
|
|
846
|
+
fallback: s
|
|
566
847
|
} = this.props, {
|
|
567
848
|
didCatch: o,
|
|
568
|
-
error:
|
|
849
|
+
error: i
|
|
569
850
|
} = this.state;
|
|
570
851
|
let c = e;
|
|
571
852
|
if (o) {
|
|
572
|
-
const
|
|
573
|
-
error:
|
|
853
|
+
const u = {
|
|
854
|
+
error: i,
|
|
574
855
|
resetErrorBoundary: this.resetErrorBoundary
|
|
575
856
|
};
|
|
576
|
-
if (typeof
|
|
577
|
-
c =
|
|
857
|
+
if (typeof r == "function")
|
|
858
|
+
c = r(u);
|
|
578
859
|
else if (a)
|
|
579
|
-
c = he(a,
|
|
580
|
-
else if (
|
|
581
|
-
c =
|
|
860
|
+
c = he(a, u);
|
|
861
|
+
else if (s === null || ft(s))
|
|
862
|
+
c = s;
|
|
582
863
|
else
|
|
583
|
-
throw
|
|
864
|
+
throw i;
|
|
584
865
|
}
|
|
585
|
-
return he(
|
|
866
|
+
return he(or.Provider, {
|
|
586
867
|
value: {
|
|
587
868
|
didCatch: o,
|
|
588
|
-
error:
|
|
869
|
+
error: i,
|
|
589
870
|
resetErrorBoundary: this.resetErrorBoundary
|
|
590
871
|
}
|
|
591
872
|
}, c);
|
|
592
873
|
}
|
|
593
874
|
}
|
|
594
|
-
function
|
|
875
|
+
function cr() {
|
|
595
876
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
596
|
-
return t.length !== e.length || t.some((
|
|
877
|
+
return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
|
|
597
878
|
}
|
|
598
|
-
const
|
|
599
|
-
class
|
|
879
|
+
const ur = (t) => "getRoutes" in t && typeof t.getRoutes == "function", hr = (t) => "initialize" in t && typeof t.initialize == "function", dr = (t) => "getHead" in t && typeof t.getHead == "function", fr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new ir(), pr = Rt(() => ({}));
|
|
880
|
+
class mr {
|
|
600
881
|
constructor(e) {
|
|
601
882
|
v(this, "plugins", []);
|
|
602
883
|
v(this, "navigationPlugins");
|
|
@@ -607,152 +888,152 @@ class St {
|
|
|
607
888
|
v(this, "state");
|
|
608
889
|
v(this, "initialize", async () => {
|
|
609
890
|
await Promise.all([
|
|
610
|
-
this.plugins.filter(
|
|
611
|
-
var
|
|
612
|
-
return (
|
|
891
|
+
this.plugins.filter(hr).map((e) => {
|
|
892
|
+
var r;
|
|
893
|
+
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
613
894
|
})
|
|
614
895
|
]);
|
|
615
896
|
});
|
|
616
897
|
v(this, "invalidateCache", async (e) => {
|
|
617
|
-
await
|
|
898
|
+
await Ie.invalidateQueries({ queryKey: e });
|
|
618
899
|
});
|
|
619
900
|
v(this, "getApiIdentities", async () => (await Promise.all(
|
|
620
|
-
this.plugins.filter(
|
|
901
|
+
this.plugins.filter(fr).map((r) => r.getIdentities(this))
|
|
621
902
|
)).flat());
|
|
622
903
|
v(this, "getNavigation", async (e) => (await Promise.all(
|
|
623
904
|
this.navigationPlugins.map(
|
|
624
905
|
async (a) => {
|
|
625
|
-
var
|
|
626
|
-
return (
|
|
906
|
+
var s;
|
|
907
|
+
return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
|
|
627
908
|
}
|
|
628
909
|
)
|
|
629
910
|
)).flatMap((a) => a ?? []));
|
|
630
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
911
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ur), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = pr;
|
|
631
912
|
}
|
|
632
913
|
async signRequest(e) {
|
|
633
914
|
if (!this.authentication)
|
|
634
915
|
throw new Error("No authentication provider configured");
|
|
635
|
-
const
|
|
636
|
-
return e.headers.set("Authorization", `Bearer ${
|
|
916
|
+
const r = await this.authentication.getAccessToken();
|
|
917
|
+
return e.headers.set("Authorization", `Bearer ${r}`), e;
|
|
637
918
|
}
|
|
638
919
|
}
|
|
639
|
-
function
|
|
640
|
-
return /* @__PURE__ */
|
|
920
|
+
function gr({ error: t, resetErrorBoundary: e }) {
|
|
921
|
+
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
641
922
|
}
|
|
642
|
-
const
|
|
643
|
-
const { navigation: t } =
|
|
644
|
-
return t.length <= 1 ? null : /* @__PURE__ */
|
|
645
|
-
|
|
923
|
+
const vr = () => {
|
|
924
|
+
const { navigation: t } = Z();
|
|
925
|
+
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(
|
|
926
|
+
J,
|
|
646
927
|
{
|
|
647
|
-
className: ({ isActive:
|
|
928
|
+
className: ({ isActive: r }) => Xe(
|
|
648
929
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
649
|
-
|
|
930
|
+
r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
650
931
|
),
|
|
651
932
|
to: e.path,
|
|
652
933
|
children: e.label
|
|
653
934
|
}
|
|
654
935
|
) }, e.label)) }) });
|
|
655
|
-
},
|
|
656
|
-
const [e,
|
|
657
|
-
return /* @__PURE__ */
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
(
|
|
661
|
-
/* @__PURE__ */
|
|
936
|
+
}, qe = Ce(function() {
|
|
937
|
+
const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), f = e ? Tt : Ft;
|
|
938
|
+
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: [
|
|
939
|
+
/* @__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: [
|
|
940
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
941
|
+
(u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
|
|
942
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
|
|
662
943
|
] }),
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
o && /* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
945
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
946
|
+
/* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
947
|
+
o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
|
|
667
948
|
"button",
|
|
668
949
|
{
|
|
669
950
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
670
951
|
onClick: c,
|
|
671
952
|
children: [
|
|
672
953
|
"Logout ",
|
|
673
|
-
|
|
954
|
+
s != null && s.email ? `(${s.email})` : null
|
|
674
955
|
]
|
|
675
956
|
}
|
|
676
|
-
) : /* @__PURE__ */
|
|
957
|
+
) : /* @__PURE__ */ n.jsx(
|
|
677
958
|
"button",
|
|
678
959
|
{
|
|
679
960
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
680
|
-
onClick:
|
|
961
|
+
onClick: i,
|
|
681
962
|
children: "Login"
|
|
682
963
|
}
|
|
683
964
|
) }),
|
|
684
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ n.jsx(
|
|
685
966
|
"button",
|
|
686
967
|
{
|
|
687
968
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
688
|
-
onClick:
|
|
689
|
-
children: /* @__PURE__ */
|
|
969
|
+
onClick: r,
|
|
970
|
+
children: /* @__PURE__ */ n.jsx(f, { size: 18 })
|
|
690
971
|
}
|
|
691
972
|
)
|
|
692
973
|
] })
|
|
693
974
|
] })
|
|
694
975
|
] }),
|
|
695
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ n.jsx(vr, {})
|
|
696
977
|
] }) });
|
|
697
|
-
}),
|
|
698
|
-
Header:
|
|
699
|
-
},
|
|
978
|
+
}), He = {
|
|
979
|
+
Header: qe
|
|
980
|
+
}, yr = Ne(He), br = yr.Provider, xr = ({
|
|
700
981
|
children: t,
|
|
701
982
|
...e
|
|
702
983
|
}) => {
|
|
703
|
-
var
|
|
704
|
-
const
|
|
705
|
-
() => ({ ...
|
|
984
|
+
var i;
|
|
985
|
+
const r = V(
|
|
986
|
+
() => ({ ...He, ...e.overrides }),
|
|
706
987
|
[e.overrides]
|
|
707
|
-
), a =
|
|
708
|
-
() => ({ ...
|
|
988
|
+
), a = V(
|
|
989
|
+
() => ({ ...Ge, ...e.mdxComponents }),
|
|
709
990
|
[e.mdxComponents]
|
|
710
|
-
),
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
}, [
|
|
714
|
-
const o = (
|
|
715
|
-
var
|
|
716
|
-
return /* @__PURE__ */
|
|
991
|
+
), s = V(() => new mr(e), [e]);
|
|
992
|
+
I(() => {
|
|
993
|
+
s.initialize();
|
|
994
|
+
}, [s]);
|
|
995
|
+
const o = (i = e.plugins) == null ? void 0 : i.filter(dr).map((c, u) => {
|
|
996
|
+
var f;
|
|
997
|
+
return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
|
|
717
998
|
});
|
|
718
|
-
return /* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
|
|
1000
|
+
/* @__PURE__ */ n.jsx(je, { children: o }),
|
|
1001
|
+
/* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(br, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
|
|
721
1002
|
] });
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
const t =
|
|
726
|
-
|
|
1003
|
+
}, wr = Ce(xr), Le = (t) => /* @__PURE__ */ n.jsx(lr, { FallbackComponent: gr, children: /* @__PURE__ */ n.jsx(wr, { ...t }) });
|
|
1004
|
+
Le.displayName = "DevPortal";
|
|
1005
|
+
const Er = () => {
|
|
1006
|
+
const t = T(), { setActiveAnchor: e } = W();
|
|
1007
|
+
I(() => {
|
|
727
1008
|
if (!t.hash) return;
|
|
728
|
-
const
|
|
1009
|
+
const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
|
|
729
1010
|
if (a) {
|
|
730
1011
|
requestAnimationFrame(() => {
|
|
731
|
-
a.scrollIntoView(), requestIdleCallback(() => e(
|
|
1012
|
+
a.scrollIntoView(), requestIdleCallback(() => e(r));
|
|
732
1013
|
});
|
|
733
1014
|
return;
|
|
734
1015
|
}
|
|
735
|
-
const
|
|
736
|
-
const c = document.getElementById(decodeURIComponent(
|
|
737
|
-
c && (c.scrollIntoView(), requestIdleCallback(() => e(
|
|
1016
|
+
const s = new MutationObserver((o, i) => {
|
|
1017
|
+
const c = document.getElementById(decodeURIComponent(r));
|
|
1018
|
+
c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
|
|
738
1019
|
});
|
|
739
|
-
return
|
|
1020
|
+
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
740
1021
|
}, [t.hash, e]);
|
|
741
|
-
},
|
|
742
|
-
const t =
|
|
743
|
-
|
|
1022
|
+
}, Pr = () => {
|
|
1023
|
+
const t = T(), e = K(t.pathname);
|
|
1024
|
+
I(() => {
|
|
744
1025
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
745
1026
|
}, [t.pathname]);
|
|
746
|
-
},
|
|
1027
|
+
}, Be = ({
|
|
747
1028
|
item: t,
|
|
748
1029
|
defaultOpen: e,
|
|
749
|
-
path:
|
|
1030
|
+
path: r
|
|
750
1031
|
}) => {
|
|
751
|
-
const [a,
|
|
752
|
-
return
|
|
753
|
-
!a &&
|
|
754
|
-
}, [a, t,
|
|
755
|
-
},
|
|
1032
|
+
const [a, s] = mt(e), o = T(), i = K(o.pathname);
|
|
1033
|
+
return I(() => {
|
|
1034
|
+
!a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
|
|
1035
|
+
}, [a, t, r, o.pathname]), [a, s];
|
|
1036
|
+
}, z = tt(
|
|
756
1037
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
757
1038
|
{
|
|
758
1039
|
variants: {
|
|
@@ -766,126 +1047,126 @@ const Bt = () => {
|
|
|
766
1047
|
}
|
|
767
1048
|
}
|
|
768
1049
|
}
|
|
769
|
-
),
|
|
1050
|
+
), jr = "data-anchor", ze = ({
|
|
770
1051
|
category: t,
|
|
771
1052
|
item: e,
|
|
772
|
-
activeAnchor:
|
|
1053
|
+
activeAnchor: r,
|
|
773
1054
|
currentTopNavItem: a,
|
|
774
|
-
basePath:
|
|
1055
|
+
basePath: s = ""
|
|
775
1056
|
}) => {
|
|
776
|
-
const o =
|
|
1057
|
+
const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
|
|
777
1058
|
item: e,
|
|
778
1059
|
path: o,
|
|
779
|
-
defaultOpen: () =>
|
|
1060
|
+
defaultOpen: () => ee(e, i.pathname, o)
|
|
780
1061
|
});
|
|
781
|
-
if (
|
|
782
|
-
const
|
|
1062
|
+
if (Dt(e)) {
|
|
1063
|
+
const p = F(
|
|
783
1064
|
"flex items-center gap-2",
|
|
784
|
-
|
|
785
|
-
isActive: e.href ===
|
|
1065
|
+
z({
|
|
1066
|
+
isActive: e.href === i.pathname
|
|
786
1067
|
})
|
|
787
1068
|
);
|
|
788
|
-
return e.href.startsWith("http") ? /* @__PURE__ */
|
|
1069
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
789
1070
|
"a",
|
|
790
1071
|
{
|
|
791
|
-
className:
|
|
1072
|
+
className: p,
|
|
792
1073
|
href: e.href,
|
|
793
1074
|
target: "_blank",
|
|
794
1075
|
rel: "noopener noreferrer",
|
|
795
1076
|
children: [
|
|
796
1077
|
e.label,
|
|
797
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ n.jsx(_t, { size: 14 })
|
|
798
1079
|
]
|
|
799
1080
|
}
|
|
800
|
-
) : /* @__PURE__ */
|
|
1081
|
+
) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
|
|
801
1082
|
}
|
|
802
|
-
const
|
|
803
|
-
/* @__PURE__ */
|
|
1083
|
+
const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
1084
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
804
1085
|
e.icon,
|
|
805
|
-
typeof e.label != "string" ? e.label : /* @__PURE__ */
|
|
1086
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
806
1087
|
] }),
|
|
807
|
-
e.children && /* @__PURE__ */
|
|
808
|
-
|
|
1088
|
+
e.children && /* @__PURE__ */ n.jsx(
|
|
1089
|
+
_e,
|
|
809
1090
|
{
|
|
810
1091
|
size: 16,
|
|
811
1092
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
812
1093
|
}
|
|
813
1094
|
)
|
|
814
1095
|
] });
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
-
|
|
1096
|
+
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
1097
|
+
Re,
|
|
817
1098
|
{
|
|
818
1099
|
open: c,
|
|
819
|
-
onOpenChange: () =>
|
|
1100
|
+
onOpenChange: () => u((p) => !p),
|
|
820
1101
|
className: "flex flex-col",
|
|
821
1102
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
|
|
1103
|
+
/* @__PURE__ */ n.jsx(
|
|
1104
|
+
ke,
|
|
824
1105
|
{
|
|
825
|
-
className:
|
|
1106
|
+
className: F(
|
|
826
1107
|
"group text-start",
|
|
827
|
-
|
|
1108
|
+
z({ isActive: !1 })
|
|
828
1109
|
),
|
|
829
|
-
children:
|
|
1110
|
+
children: f
|
|
830
1111
|
}
|
|
831
1112
|
),
|
|
832
|
-
/* @__PURE__ */
|
|
833
|
-
|
|
1113
|
+
/* @__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((p) => /* @__PURE__ */ n.jsx(
|
|
1114
|
+
ze,
|
|
834
1115
|
{
|
|
835
1116
|
category: t,
|
|
836
|
-
item:
|
|
837
|
-
activeAnchor:
|
|
1117
|
+
item: p,
|
|
1118
|
+
activeAnchor: r,
|
|
838
1119
|
currentTopNavItem: a,
|
|
839
1120
|
basePath: o
|
|
840
1121
|
},
|
|
841
|
-
|
|
1122
|
+
X(p) ? p.path : p.href
|
|
842
1123
|
)) }) })
|
|
843
1124
|
]
|
|
844
1125
|
}
|
|
845
|
-
) : e.path.startsWith("#") ? /* @__PURE__ */
|
|
846
|
-
|
|
1126
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
1127
|
+
ct,
|
|
847
1128
|
{
|
|
848
1129
|
to: e.path,
|
|
849
|
-
[
|
|
850
|
-
className:
|
|
851
|
-
isActive: e.path.slice(1) ===
|
|
1130
|
+
[jr]: e.path,
|
|
1131
|
+
className: z({
|
|
1132
|
+
isActive: e.path.slice(1) === r,
|
|
852
1133
|
isMuted: e.muted
|
|
853
1134
|
}),
|
|
854
|
-
children:
|
|
1135
|
+
children: f
|
|
855
1136
|
}
|
|
856
|
-
) : /* @__PURE__ */
|
|
857
|
-
|
|
1137
|
+
) : /* @__PURE__ */ n.jsx(
|
|
1138
|
+
J,
|
|
858
1139
|
{
|
|
859
|
-
className: ({ isActive:
|
|
1140
|
+
className: ({ isActive: p }) => z({ isActive: p }),
|
|
860
1141
|
to: o,
|
|
861
|
-
children:
|
|
1142
|
+
children: f
|
|
862
1143
|
}
|
|
863
1144
|
) });
|
|
864
|
-
},
|
|
1145
|
+
}, Sr = ({
|
|
865
1146
|
category: t
|
|
866
1147
|
}) => {
|
|
867
|
-
const { activeAnchor: e } =
|
|
1148
|
+
const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
|
|
868
1149
|
item: t,
|
|
869
|
-
path: (
|
|
870
|
-
defaultOpen: () => !
|
|
1150
|
+
path: (r == null ? void 0 : r.path) ?? "",
|
|
1151
|
+
defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
|
|
871
1152
|
});
|
|
872
|
-
return /* @__PURE__ */
|
|
873
|
-
|
|
1153
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1154
|
+
Re,
|
|
874
1155
|
{
|
|
875
1156
|
open: o,
|
|
876
|
-
onOpenChange: () =>
|
|
1157
|
+
onOpenChange: () => i((c) => !c),
|
|
877
1158
|
children: [
|
|
878
|
-
t.label.length > 0 ? /* @__PURE__ */
|
|
1159
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
|
|
879
1160
|
"h5",
|
|
880
1161
|
{
|
|
881
|
-
className:
|
|
1162
|
+
className: F(
|
|
882
1163
|
"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]",
|
|
883
|
-
|
|
1164
|
+
s ? "hover:bg-accent" : "cursor-auto"
|
|
884
1165
|
),
|
|
885
1166
|
children: [
|
|
886
1167
|
t.label,
|
|
887
|
-
|
|
888
|
-
|
|
1168
|
+
s && /* @__PURE__ */ n.jsx(
|
|
1169
|
+
_e,
|
|
889
1170
|
{
|
|
890
1171
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
891
1172
|
size: 16
|
|
@@ -894,85 +1175,88 @@ const Bt = () => {
|
|
|
894
1175
|
]
|
|
895
1176
|
}
|
|
896
1177
|
) }) : "Endpoints",
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
|
|
1178
|
+
/* @__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(
|
|
1179
|
+
ze,
|
|
899
1180
|
{
|
|
900
1181
|
category: t,
|
|
901
1182
|
item: c,
|
|
902
1183
|
activeAnchor: e,
|
|
903
|
-
currentTopNavItem:
|
|
904
|
-
basePath:
|
|
1184
|
+
currentTopNavItem: r,
|
|
1185
|
+
basePath: De(r == null ? void 0 : r.path, t.path)
|
|
905
1186
|
},
|
|
906
|
-
|
|
1187
|
+
X(c) ? c.path + c.label : c.href
|
|
907
1188
|
)) }) })
|
|
908
1189
|
]
|
|
909
1190
|
},
|
|
910
1191
|
t.label
|
|
911
1192
|
);
|
|
912
|
-
},
|
|
913
|
-
return /* @__PURE__ */
|
|
1193
|
+
}, Nr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
|
|
1194
|
+
return /* @__PURE__ */ n.jsx(
|
|
914
1195
|
"nav",
|
|
915
1196
|
{
|
|
916
1197
|
"data-navigation": String(a),
|
|
917
|
-
className:
|
|
1198
|
+
className: F(
|
|
918
1199
|
"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",
|
|
919
|
-
|
|
1200
|
+
r
|
|
920
1201
|
),
|
|
921
|
-
ref:
|
|
1202
|
+
ref: s,
|
|
922
1203
|
children: e
|
|
923
1204
|
}
|
|
924
1205
|
);
|
|
925
|
-
}),
|
|
926
|
-
const t =
|
|
927
|
-
return /* @__PURE__ */
|
|
928
|
-
|
|
1206
|
+
}), Cr = () => {
|
|
1207
|
+
const t = K(null), e = At();
|
|
1208
|
+
return /* @__PURE__ */ n.jsx(
|
|
1209
|
+
Nr,
|
|
929
1210
|
{
|
|
930
1211
|
ref: t,
|
|
931
1212
|
pushMainContent: e.data.items.length > 0,
|
|
932
|
-
children: e.data.items.map((
|
|
1213
|
+
children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Sr, { category: r }, r.label))
|
|
933
1214
|
}
|
|
934
1215
|
);
|
|
935
|
-
},
|
|
936
|
-
const e =
|
|
937
|
-
|
|
938
|
-
const
|
|
939
|
-
return
|
|
940
|
-
e.pathname !==
|
|
941
|
-
}, [e.pathname,
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
(a == null ? void 0 : a.description) && /* @__PURE__ */
|
|
944
|
-
(a == null ? void 0 : a.favicon) && /* @__PURE__ */
|
|
1216
|
+
}, Or = ({ children: t }) => {
|
|
1217
|
+
const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
|
|
1218
|
+
Er(), Pr();
|
|
1219
|
+
const s = K(e.pathname);
|
|
1220
|
+
return I(() => {
|
|
1221
|
+
e.pathname !== s.current && r(""), s.current = e.pathname;
|
|
1222
|
+
}, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1223
|
+
/* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
1224
|
+
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
1225
|
+
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
945
1226
|
] }),
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
|
|
1227
|
+
/* @__PURE__ */ n.jsx(qe, {}),
|
|
1228
|
+
/* @__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(
|
|
1229
|
+
vt,
|
|
949
1230
|
{
|
|
950
|
-
fallback: /* @__PURE__ */
|
|
1231
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
|
|
951
1232
|
children: [
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ n.jsx(Cr, {}),
|
|
1234
|
+
/* @__PURE__ */ n.jsx(
|
|
954
1235
|
"main",
|
|
955
1236
|
{
|
|
956
|
-
className:
|
|
1237
|
+
className: F(
|
|
957
1238
|
"dark:border-white/10 translate-x-0 h-full",
|
|
958
1239
|
"lg:overflow-visible",
|
|
959
1240
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
960
1241
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12"
|
|
961
1242
|
),
|
|
962
|
-
children: t ?? /* @__PURE__ */
|
|
1243
|
+
children: t ?? /* @__PURE__ */ n.jsx(ot, {})
|
|
963
1244
|
}
|
|
964
1245
|
)
|
|
965
1246
|
]
|
|
966
1247
|
}
|
|
967
1248
|
) })
|
|
968
1249
|
] });
|
|
969
|
-
},
|
|
1250
|
+
}, Br = ut, zr = rt, Ur = Le, Kr = Or, $r = at, Vr = nt, Yr = Qt, Jr = er, Xr = tr;
|
|
970
1251
|
export {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1252
|
+
Jr as Bootstrap,
|
|
1253
|
+
Xr as BootstrapStatic,
|
|
1254
|
+
zr as Callout,
|
|
1255
|
+
Ur as DevPortal,
|
|
1256
|
+
Kr as Layout,
|
|
1257
|
+
$r as Link,
|
|
1258
|
+
Vr as RouterError,
|
|
1259
|
+
Yr as ServerError,
|
|
1260
|
+
Br as useMDXComponents
|
|
977
1261
|
};
|
|
978
1262
|
//# sourceMappingURL=zudoku.components.js.map
|