zudoku 0.1.1-dev.44 → 0.1.1-dev.46

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 (32) hide show
  1. package/dist/lib/components/Select.d.ts +13 -0
  2. package/dist/lib/components/Select.js +27 -0
  3. package/dist/lib/components/Select.js.map +1 -0
  4. package/dist/lib/plugins/api-key/CreateApiKey.js +37 -0
  5. package/dist/lib/plugins/api-key/CreateApiKey.js.map +1 -0
  6. package/dist/lib/plugins/api-key/SettingsApiKeys.js +1 -1
  7. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
  8. package/dist/lib/plugins/api-key/index.d.ts +1 -1
  9. package/dist/lib/plugins/api-key/index.js +1 -1
  10. package/dist/lib/plugins/api-key/index.js.map +1 -1
  11. package/dist/lib/plugins/openapi/OperationListItem.js +2 -22
  12. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  13. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  14. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  15. package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
  16. package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
  17. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
  18. package/lib/{Spinner-Zry2k_pD.js → Spinner-DEkC7JSn.js} +2090 -1986
  19. package/lib/zudoku.components.js +507 -608
  20. package/lib/zudoku.plugins.js +15051 -12558
  21. package/package.json +3 -2
  22. package/src/app/main.css +1 -0
  23. package/src/lib/components/Select.tsx +157 -0
  24. package/src/lib/plugins/api-key/{CreateApiKeys.tsx → CreateApiKey.tsx} +43 -27
  25. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +10 -9
  26. package/src/lib/plugins/api-key/index.tsx +2 -2
  27. package/src/lib/plugins/openapi/OperationListItem.tsx +7 -121
  28. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
  29. package/src/lib/plugins/openapi/SchemaListView.tsx +229 -0
  30. package/dist/lib/plugins/api-key/CreateApiKeys.js +0 -37
  31. package/dist/lib/plugins/api-key/CreateApiKeys.js.map +0 -1
  32. /package/dist/lib/plugins/api-key/{CreateApiKeys.d.ts → CreateApiKey.d.ts} +0 -0
@@ -1,154 +1,153 @@
1
- var pt = Object.defineProperty;
2
- var we = (t) => {
1
+ var st = Object.defineProperty;
2
+ var xe = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var mt = (t, e, n) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var C = (t, e, n) => mt(t, typeof e != "symbol" ? e + "" : e, n), je = (t, e, n) => e.has(t) || we("Cannot " + n);
7
- var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)), M = (t, e, n) => e.has(t) ? we("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (je(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
- var Y = (t, e, n, r) => ({
9
- set _(s) {
10
- P(t, e, s, n);
5
+ var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var j = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n), Se = (t, e, n) => e.has(t) || xe("Cannot " + n);
7
+ var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), N = (t, e, n) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (Se(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var X = (t, e, n, r) => ({
9
+ set _(a) {
10
+ P(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return o(t, e, r);
13
+ return i(t, e, r);
14
14
  }
15
15
  });
16
- import { S as We, h as Ue, Q as vt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Mt, E as be, F as pe, G as Ge, H as Tt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t, a1 as Xt } from "./Spinner-Zry2k_pD.js";
17
- import { a3 as $n, a2 as Xn } from "./Spinner-Zry2k_pD.js";
18
- import * as T from "react";
19
- import X, { memo as $e, createContext as Yt, useEffect as B, useRef as re, useState as Jt, forwardRef as Zt, Suspense as Xe, useMemo as te } from "react";
20
- var L, Ke, en = (Ke = class extends We {
16
+ import { S as Ve, h as He, Q as it, n as C, m as be, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as ve, l as s, N as he, q as mt, t as vt, v as B, w as ge, x as ye, y as fe, z as Fe, A as gt, B as te, R as Ke, T as Be, C as ze, D as yt, E as xt, F as St, G as bt, H as Ot, I as _t, O as Et, J as wt, K as jt, L as Pt, P as At, U as Dt, V as Ct, W as Nt, X as Mt, Y as Tt } from "./Spinner-DEkC7JSn.js";
17
+ import { _ as An, Z as Dn } from "./Spinner-DEkC7JSn.js";
18
+ import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as It, Suspense as Ue, useMemo as ee } from "react";
19
+ var T, ke, kt = (ke = class extends Ve {
21
20
  constructor(e = {}) {
22
21
  super();
23
- M(this, L);
24
- this.config = e, P(this, L, /* @__PURE__ */ new Map());
22
+ N(this, T);
23
+ this.config = e, P(this, T, /* @__PURE__ */ new Map());
25
24
  }
26
25
  build(e, n, r) {
27
- const s = n.queryKey, i = n.queryHash ?? Ue(s, n);
28
- let c = this.get(i);
29
- return c || (c = new vt({
26
+ const a = n.queryKey, o = n.queryHash ?? He(a, n);
27
+ let l = this.get(o);
28
+ return l || (l = new it({
30
29
  cache: this,
31
- queryKey: s,
32
- queryHash: i,
30
+ queryKey: a,
31
+ queryHash: o,
33
32
  options: e.defaultQueryOptions(n),
34
33
  state: r,
35
- defaultOptions: e.getQueryDefaults(s)
36
- }), this.add(c)), c;
34
+ defaultOptions: e.getQueryDefaults(a)
35
+ }), this.add(l)), l;
37
36
  }
38
37
  add(e) {
39
- o(this, L).has(e.queryHash) || (o(this, L).set(e.queryHash, e), this.notify({
38
+ i(this, T).has(e.queryHash) || (i(this, T).set(e.queryHash, e), this.notify({
40
39
  type: "added",
41
40
  query: e
42
41
  }));
43
42
  }
44
43
  remove(e) {
45
- const n = o(this, L).get(e.queryHash);
46
- n && (e.destroy(), n === e && o(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
44
+ const n = i(this, T).get(e.queryHash);
45
+ n && (e.destroy(), n === e && i(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
47
46
  }
48
47
  clear() {
49
- D.batch(() => {
48
+ C.batch(() => {
50
49
  this.getAll().forEach((e) => {
51
50
  this.remove(e);
52
51
  });
53
52
  });
54
53
  }
55
54
  get(e) {
56
- return o(this, L).get(e);
55
+ return i(this, T).get(e);
57
56
  }
58
57
  getAll() {
59
- return [...o(this, L).values()];
58
+ return [...i(this, T).values()];
60
59
  }
61
60
  find(e) {
62
61
  const n = { exact: !0, ...e };
63
62
  return this.getAll().find(
64
- (r) => Ce(n, r)
63
+ (r) => be(n, r)
65
64
  );
66
65
  }
67
66
  findAll(e = {}) {
68
67
  const n = this.getAll();
69
- return Object.keys(e).length > 0 ? n.filter((r) => Ce(e, r)) : n;
68
+ return Object.keys(e).length > 0 ? n.filter((r) => be(e, r)) : n;
70
69
  }
71
70
  notify(e) {
72
- D.batch(() => {
71
+ C.batch(() => {
73
72
  this.listeners.forEach((n) => {
74
73
  n(e);
75
74
  });
76
75
  });
77
76
  }
78
77
  onFocus() {
79
- D.batch(() => {
78
+ C.batch(() => {
80
79
  this.getAll().forEach((e) => {
81
80
  e.onFocus();
82
81
  });
83
82
  });
84
83
  }
85
84
  onOnline() {
86
- D.batch(() => {
85
+ C.batch(() => {
87
86
  this.getAll().forEach((e) => {
88
87
  e.onOnline();
89
88
  });
90
89
  });
91
90
  }
92
- }, L = new WeakMap(), Ke), R, G, Be, tn = (Be = class extends We {
91
+ }, T = new WeakMap(), ke), D, U, qe, qt = (qe = class extends Ve {
93
92
  constructor(e = {}) {
94
93
  super();
95
- M(this, R);
96
- M(this, G);
97
- this.config = e, P(this, R, /* @__PURE__ */ new Map()), P(this, G, Date.now());
94
+ N(this, D);
95
+ N(this, U);
96
+ this.config = e, P(this, D, /* @__PURE__ */ new Map()), P(this, U, Date.now());
98
97
  }
99
98
  build(e, n, r) {
100
- const s = new gt({
99
+ const a = new ot({
101
100
  mutationCache: this,
102
- mutationId: ++Y(this, G)._,
101
+ mutationId: ++X(this, U)._,
103
102
  options: e.defaultMutationOptions(n),
104
103
  state: r
105
104
  });
106
- return this.add(s), s;
105
+ return this.add(a), a;
107
106
  }
108
107
  add(e) {
109
- const n = J(e), r = o(this, R).get(n) ?? [];
110
- r.push(e), o(this, R).set(n, r), this.notify({ type: "added", mutation: e });
108
+ const n = Y(e), r = i(this, D).get(n) ?? [];
109
+ r.push(e), i(this, D).set(n, r), this.notify({ type: "added", mutation: e });
111
110
  }
112
111
  remove(e) {
113
112
  var r;
114
- const n = J(e);
115
- if (o(this, R).has(n)) {
116
- const s = (r = o(this, R).get(n)) == null ? void 0 : r.filter((i) => i !== e);
117
- s && (s.length === 0 ? o(this, R).delete(n) : o(this, R).set(n, s));
113
+ const n = Y(e);
114
+ if (i(this, D).has(n)) {
115
+ const a = (r = i(this, D).get(n)) == null ? void 0 : r.filter((o) => o !== e);
116
+ a && (a.length === 0 ? i(this, D).delete(n) : i(this, D).set(n, a));
118
117
  }
119
118
  this.notify({ type: "removed", mutation: e });
120
119
  }
121
120
  canRun(e) {
122
121
  var r;
123
- const n = (r = o(this, R).get(J(e))) == null ? void 0 : r.find((s) => s.state.status === "pending");
122
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
124
123
  return !n || n === e;
125
124
  }
126
125
  runNext(e) {
127
126
  var r;
128
- const n = (r = o(this, R).get(J(e))) == null ? void 0 : r.find((s) => s !== e && s.state.isPaused);
127
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
129
128
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
130
129
  }
131
130
  clear() {
132
- D.batch(() => {
131
+ C.batch(() => {
133
132
  this.getAll().forEach((e) => {
134
133
  this.remove(e);
135
134
  });
136
135
  });
137
136
  }
138
137
  getAll() {
139
- return [...o(this, R).values()].flat();
138
+ return [...i(this, D).values()].flat();
140
139
  }
141
140
  find(e) {
142
141
  const n = { exact: !0, ...e };
143
142
  return this.getAll().find(
144
- (r) => Pe(n, r)
143
+ (r) => Oe(n, r)
145
144
  );
146
145
  }
147
146
  findAll(e = {}) {
148
- return this.getAll().filter((n) => Pe(e, n));
147
+ return this.getAll().filter((n) => Oe(e, n));
149
148
  }
150
149
  notify(e) {
151
- D.batch(() => {
150
+ C.batch(() => {
152
151
  this.listeners.forEach((n) => {
153
152
  n(e);
154
153
  });
@@ -156,75 +155,75 @@ var L, Ke, en = (Ke = class extends We {
156
155
  }
157
156
  resumePausedMutations() {
158
157
  const e = this.getAll().filter((n) => n.state.isPaused);
159
- return D.batch(
158
+ return C.batch(
160
159
  () => Promise.all(
161
- e.map((n) => n.continue().catch(I))
160
+ e.map((n) => n.continue().catch(L))
162
161
  )
163
162
  );
164
163
  }
165
- }, R = new WeakMap(), G = new WeakMap(), Be);
166
- function J(t) {
164
+ }, D = new WeakMap(), U = new WeakMap(), qe);
165
+ function Y(t) {
167
166
  var e;
168
167
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
169
168
  }
170
- function nn(t) {
169
+ function Qt(t) {
171
170
  return {
172
171
  onFetch: (e, n) => {
173
172
  const r = async () => {
174
- var x, y, b, A, E;
175
- const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [], v = ((E = e.state.data) == null ? void 0 : E.pageParams) || [], _ = { pages: [], pageParams: [] };
176
- let g = !1;
177
- const l = (h) => {
173
+ var S, g, O, M, R;
174
+ const a = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, l = ((M = e.state.data) == null ? void 0 : M.pages) || [], v = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
175
+ let x = !1;
176
+ const u = (h) => {
178
177
  Object.defineProperty(h, "signal", {
179
178
  enumerable: !0,
180
- get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
181
- g = !0;
179
+ get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
180
+ x = !0;
182
181
  }), e.signal)
183
182
  });
184
- }, d = yt(e.options, e.fetchOptions), f = async (h, u, S) => {
185
- if (g)
183
+ }, d = ut(e.options, e.fetchOptions), f = async (h, c, y) => {
184
+ if (x)
186
185
  return Promise.reject();
187
- if (u == null && h.pages.length)
186
+ if (c == null && h.pages.length)
188
187
  return Promise.resolve(h);
189
- const m = {
188
+ const p = {
190
189
  queryKey: e.queryKey,
191
- pageParam: u,
192
- direction: S ? "backward" : "forward",
190
+ pageParam: c,
191
+ direction: y ? "backward" : "forward",
193
192
  meta: e.options.meta
194
193
  };
195
- l(m);
196
- const w = await d(
197
- m
198
- ), { maxPages: N } = e.options, j = S ? xt : bt;
194
+ u(p);
195
+ const _ = await d(
196
+ p
197
+ ), { maxPages: A } = e.options, w = y ? ct : lt;
199
198
  return {
200
- pages: j(h.pages, w, N),
201
- pageParams: j(h.pageParams, u, N)
199
+ pages: w(h.pages, _, A),
200
+ pageParams: w(h.pageParams, c, A)
202
201
  };
203
202
  };
204
- let p;
205
- if (i && c.length) {
206
- const h = i === "backward", u = h ? rn : Me, S = {
207
- pages: c,
203
+ let m;
204
+ if (o && l.length) {
205
+ const h = o === "backward", c = h ? Vt : Pe, y = {
206
+ pages: l,
208
207
  pageParams: v
209
- }, m = u(s, S);
210
- p = await f(S, m, h);
208
+ }, p = c(a, y);
209
+ m = await f(y, p, h);
211
210
  } else {
212
- p = await f(
213
- _,
214
- v[0] ?? s.initialPageParam
211
+ m = await f(
212
+ E,
213
+ v[0] ?? a.initialPageParam
215
214
  );
216
- const h = t ?? c.length;
217
- for (let u = 1; u < h; u++) {
218
- const S = Me(s, p);
219
- p = await f(p, S);
215
+ const h = t ?? l.length;
216
+ for (let c = 1; c < h; c++) {
217
+ const y = Pe(a, m);
218
+ m = await f(m, y);
220
219
  }
221
220
  }
222
- return p;
221
+ return m;
223
222
  };
224
223
  e.options.persister ? e.fetchFn = () => {
225
- var s, i;
226
- return (i = (s = e.options).persister) == null ? void 0 : i.call(
227
- s,
224
+ var a, o;
225
+ return (o = (a = e.options).persister) == null ? void 0 : o.call(
226
+ a,
228
227
  r,
229
228
  {
230
229
  queryKey: e.queryKey,
@@ -237,7 +236,7 @@ function nn(t) {
237
236
  }
238
237
  };
239
238
  }
240
- function Me(t, { pages: e, pageParams: n }) {
239
+ function Pe(t, { pages: e, pageParams: n }) {
241
240
  const r = e.length - 1;
242
241
  return t.getNextPageParam(
243
242
  e[r],
@@ -246,7 +245,7 @@ function Me(t, { pages: e, pageParams: n }) {
246
245
  n
247
246
  );
248
247
  }
249
- function rn(t, { pages: e, pageParams: n }) {
248
+ function Vt(t, { pages: e, pageParams: n }) {
250
249
  var r;
251
250
  return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
252
251
  t,
@@ -256,65 +255,65 @@ function rn(t, { pages: e, pageParams: n }) {
256
255
  n
257
256
  );
258
257
  }
259
- var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
258
+ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
260
259
  constructor(t = {}) {
261
- M(this, O);
262
- M(this, k);
263
- M(this, q);
264
- M(this, V);
265
- M(this, F);
266
- M(this, Q);
267
- M(this, H);
268
- M(this, K);
269
- P(this, O, t.queryCache || new en()), P(this, k, t.mutationCache || new tn()), P(this, q, t.defaultOptions || {}), P(this, V, /* @__PURE__ */ new Map()), P(this, F, /* @__PURE__ */ new Map()), P(this, Q, 0);
260
+ N(this, b);
261
+ N(this, I);
262
+ N(this, k);
263
+ N(this, Q);
264
+ N(this, V);
265
+ N(this, q);
266
+ N(this, H);
267
+ N(this, F);
268
+ P(this, b, t.queryCache || new kt()), P(this, I, t.mutationCache || new qt()), P(this, k, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
270
269
  }
271
270
  mount() {
272
- Y(this, Q)._++, o(this, Q) === 1 && (P(this, H, St.subscribe(async (t) => {
273
- t && (await this.resumePausedMutations(), o(this, O).onFocus());
274
- })), P(this, K, Ae.subscribe(async (t) => {
275
- t && (await this.resumePausedMutations(), o(this, O).onOnline());
271
+ X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
272
+ t && (await this.resumePausedMutations(), i(this, b).onFocus());
273
+ })), P(this, F, _e.subscribe(async (t) => {
274
+ t && (await this.resumePausedMutations(), i(this, b).onOnline());
276
275
  })));
277
276
  }
278
277
  unmount() {
279
278
  var t, e;
280
- Y(this, Q)._--, o(this, Q) === 0 && ((t = o(this, H)) == null || t.call(this), P(this, H, void 0), (e = o(this, K)) == null || e.call(this), P(this, K, void 0));
279
+ X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), P(this, H, void 0), (e = i(this, F)) == null || e.call(this), P(this, F, void 0));
281
280
  }
282
281
  isFetching(t) {
283
- return o(this, O).findAll({ ...t, fetchStatus: "fetching" }).length;
282
+ return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
284
283
  }
285
284
  isMutating(t) {
286
- return o(this, k).findAll({ ...t, status: "pending" }).length;
285
+ return i(this, I).findAll({ ...t, status: "pending" }).length;
287
286
  }
288
287
  getQueryData(t) {
289
288
  var n;
290
289
  const e = this.defaultQueryOptions({ queryKey: t });
291
- return (n = o(this, O).get(e.queryHash)) == null ? void 0 : n.state.data;
290
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state.data;
292
291
  }
293
292
  ensureQueryData(t) {
294
293
  const e = this.getQueryData(t.queryKey);
295
294
  if (e === void 0)
296
295
  return this.fetchQuery(t);
297
296
  {
298
- const n = this.defaultQueryOptions(t), r = o(this, O).build(this, n);
299
- return t.revalidateIfStale && r.isStaleByTime(Ne(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
297
+ const n = this.defaultQueryOptions(t), r = i(this, b).build(this, n);
298
+ return t.revalidateIfStale && r.isStaleByTime(Ee(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
300
299
  }
301
300
  }
302
301
  getQueriesData(t) {
303
- return o(this, O).findAll(t).map(({ queryKey: e, state: n }) => {
302
+ return i(this, b).findAll(t).map(({ queryKey: e, state: n }) => {
304
303
  const r = n.data;
305
304
  return [e, r];
306
305
  });
307
306
  }
308
307
  setQueryData(t, e, n) {
309
- const r = this.defaultQueryOptions({ queryKey: t }), s = o(this, O).get(
308
+ const r = this.defaultQueryOptions({ queryKey: t }), a = i(this, b).get(
310
309
  r.queryHash
311
- ), i = s == null ? void 0 : s.state.data, c = Ot(e, i);
312
- if (c !== void 0)
313
- return o(this, O).build(this, r).setData(c, { ...n, manual: !0 });
310
+ ), o = a == null ? void 0 : a.state.data, l = ht(e, o);
311
+ if (l !== void 0)
312
+ return i(this, b).build(this, r).setData(l, { ...n, manual: !0 });
314
313
  }
315
314
  setQueriesData(t, e, n) {
316
- return D.batch(
317
- () => o(this, O).findAll(t).map(({ queryKey: r }) => [
315
+ return C.batch(
316
+ () => i(this, b).findAll(t).map(({ queryKey: r }) => [
318
317
  r,
319
318
  this.setQueryData(r, e, n)
320
319
  ])
@@ -323,34 +322,34 @@ var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
323
322
  getQueryState(t) {
324
323
  var n;
325
324
  const e = this.defaultQueryOptions({ queryKey: t });
326
- return (n = o(this, O).get(e.queryHash)) == null ? void 0 : n.state;
325
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state;
327
326
  }
328
327
  removeQueries(t) {
329
- const e = o(this, O);
330
- D.batch(() => {
328
+ const e = i(this, b);
329
+ C.batch(() => {
331
330
  e.findAll(t).forEach((n) => {
332
331
  e.remove(n);
333
332
  });
334
333
  });
335
334
  }
336
335
  resetQueries(t, e) {
337
- const n = o(this, O), r = {
336
+ const n = i(this, b), r = {
338
337
  type: "active",
339
338
  ...t
340
339
  };
341
- return D.batch(() => (n.findAll(t).forEach((s) => {
342
- s.reset();
340
+ return C.batch(() => (n.findAll(t).forEach((a) => {
341
+ a.reset();
343
342
  }), this.refetchQueries(r, e)));
344
343
  }
345
344
  cancelQueries(t = {}, e = {}) {
346
- const n = { revert: !0, ...e }, r = D.batch(
347
- () => o(this, O).findAll(t).map((s) => s.cancel(n))
345
+ const n = { revert: !0, ...e }, r = C.batch(
346
+ () => i(this, b).findAll(t).map((a) => a.cancel(n))
348
347
  );
349
- return Promise.all(r).then(I).catch(I);
348
+ return Promise.all(r).then(L).catch(L);
350
349
  }
351
350
  invalidateQueries(t = {}, e = {}) {
352
- return D.batch(() => {
353
- if (o(this, O).findAll(t).forEach((r) => {
351
+ return C.batch(() => {
352
+ if (i(this, b).findAll(t).forEach((r) => {
354
353
  r.invalidate();
355
354
  }), t.refetchType === "none")
356
355
  return Promise.resolve();
@@ -365,114 +364,114 @@ var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
365
364
  const n = {
366
365
  ...e,
367
366
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
368
- }, r = D.batch(
369
- () => o(this, O).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
370
- let i = s.fetch(void 0, n);
371
- return n.throwOnError || (i = i.catch(I)), s.state.fetchStatus === "paused" ? Promise.resolve() : i;
367
+ }, r = C.batch(
368
+ () => i(this, b).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
369
+ let o = a.fetch(void 0, n);
370
+ return n.throwOnError || (o = o.catch(L)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
372
371
  })
373
372
  );
374
- return Promise.all(r).then(I);
373
+ return Promise.all(r).then(L);
375
374
  }
376
375
  fetchQuery(t) {
377
376
  const e = this.defaultQueryOptions(t);
378
377
  e.retry === void 0 && (e.retry = !1);
379
- const n = o(this, O).build(this, e);
378
+ const n = i(this, b).build(this, e);
380
379
  return n.isStaleByTime(
381
- Ne(e.staleTime, n)
380
+ Ee(e.staleTime, n)
382
381
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
383
382
  }
384
383
  prefetchQuery(t) {
385
- return this.fetchQuery(t).then(I).catch(I);
384
+ return this.fetchQuery(t).then(L).catch(L);
386
385
  }
387
386
  fetchInfiniteQuery(t) {
388
- return t.behavior = nn(t.pages), this.fetchQuery(t);
387
+ return t.behavior = Qt(t.pages), this.fetchQuery(t);
389
388
  }
390
389
  prefetchInfiniteQuery(t) {
391
- return this.fetchInfiniteQuery(t).then(I).catch(I);
390
+ return this.fetchInfiniteQuery(t).then(L).catch(L);
392
391
  }
393
392
  resumePausedMutations() {
394
- return Ae.isOnline() ? o(this, k).resumePausedMutations() : Promise.resolve();
393
+ return _e.isOnline() ? i(this, I).resumePausedMutations() : Promise.resolve();
395
394
  }
396
395
  getQueryCache() {
397
- return o(this, O);
396
+ return i(this, b);
398
397
  }
399
398
  getMutationCache() {
400
- return o(this, k);
399
+ return i(this, I);
401
400
  }
402
401
  getDefaultOptions() {
403
- return o(this, q);
402
+ return i(this, k);
404
403
  }
405
404
  setDefaultOptions(t) {
406
- P(this, q, t);
405
+ P(this, k, t);
407
406
  }
408
407
  setQueryDefaults(t, e) {
409
- o(this, V).set(Re(t), {
408
+ i(this, Q).set(we(t), {
410
409
  queryKey: t,
411
410
  defaultOptions: e
412
411
  });
413
412
  }
414
413
  getQueryDefaults(t) {
415
- const e = [...o(this, V).values()];
414
+ const e = [...i(this, Q).values()];
416
415
  let n = {};
417
416
  return e.forEach((r) => {
418
- De(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
417
+ je(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
419
418
  }), n;
420
419
  }
421
420
  setMutationDefaults(t, e) {
422
- o(this, F).set(Re(t), {
421
+ i(this, V).set(we(t), {
423
422
  mutationKey: t,
424
423
  defaultOptions: e
425
424
  });
426
425
  }
427
426
  getMutationDefaults(t) {
428
- const e = [...o(this, F).values()];
427
+ const e = [...i(this, V).values()];
429
428
  let n = {};
430
429
  return e.forEach((r) => {
431
- De(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
430
+ je(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
432
431
  }), n;
433
432
  }
434
433
  defaultQueryOptions(t) {
435
434
  if (t._defaulted)
436
435
  return t;
437
436
  const e = {
438
- ...o(this, q).queries,
437
+ ...i(this, k).queries,
439
438
  ...this.getQueryDefaults(t.queryKey),
440
439
  ...t,
441
440
  _defaulted: !0
442
441
  };
443
- return e.queryHash || (e.queryHash = Ue(
442
+ return e.queryHash || (e.queryHash = He(
444
443
  e.queryKey,
445
444
  e
446
- )), 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 === _t && (e.enabled = !1), e;
445
+ )), 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 === ft && (e.enabled = !1), e;
447
446
  }
448
447
  defaultMutationOptions(t) {
449
448
  return t != null && t._defaulted ? t : {
450
- ...o(this, q).mutations,
449
+ ...i(this, k).mutations,
451
450
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
452
451
  ...t,
453
452
  _defaulted: !0
454
453
  };
455
454
  }
456
455
  clear() {
457
- o(this, O).clear(), o(this, k).clear();
456
+ i(this, b).clear(), i(this, I).clear();
458
457
  }
459
- }, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze), an = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
460
- const Te = (t) => {
458
+ }, b = new WeakMap(), I = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), q = new WeakMap(), H = new WeakMap(), F = new WeakMap(), Qe), Ft = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
459
+ const Ae = (t) => {
461
460
  let e;
462
- const n = /* @__PURE__ */ new Set(), r = (l, d) => {
463
- const f = typeof l == "function" ? l(e) : l;
461
+ const n = /* @__PURE__ */ new Set(), r = (u, d) => {
462
+ const f = typeof u == "function" ? u(e) : u;
464
463
  if (!Object.is(f, e)) {
465
- const p = e;
466
- e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((x) => x(e, p));
464
+ const m = e;
465
+ e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((S) => S(e, m));
467
466
  }
468
- }, s = () => e, _ = { setState: r, getState: s, getInitialState: () => g, subscribe: (l) => (n.add(l), () => n.delete(l)), destroy: () => {
469
- (an ? "production" : void 0) !== "production" && console.warn(
467
+ }, a = () => e, E = { setState: r, getState: a, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
468
+ (Ft ? "production" : void 0) !== "production" && console.warn(
470
469
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
471
470
  ), n.clear();
472
- } }, g = e = t(r, s, _);
473
- return _;
474
- }, on = (t) => t ? Te(t) : Te;
475
- var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
471
+ } }, x = e = t(r, a, E);
472
+ return E;
473
+ }, Kt = (t) => t ? Ae(t) : Ae;
474
+ var pe = { exports: {} }, ue = {}, J = { exports: {} }, ce = {};
476
475
  /**
477
476
  * @license React
478
477
  * use-sync-external-store-shim.production.min.js
@@ -482,42 +481,42 @@ var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
482
481
  * This source code is licensed under the MIT license found in the
483
482
  * LICENSE file in the root directory of this source tree.
484
483
  */
485
- var Le;
486
- function cn() {
487
- if (Le) return ue;
488
- Le = 1;
489
- var t = X;
484
+ var De;
485
+ function Bt() {
486
+ if (De) return ce;
487
+ De = 1;
488
+ var t = $;
490
489
  function e(d, f) {
491
490
  return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
492
491
  }
493
- var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, i = t.useLayoutEffect, c = t.useDebugValue;
492
+ var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, a = t.useEffect, o = t.useLayoutEffect, l = t.useDebugValue;
494
493
  function v(d, f) {
495
- var p = f(), x = r({ inst: { value: p, getSnapshot: f } }), y = x[0].inst, b = x[1];
496
- return i(function() {
497
- y.value = p, y.getSnapshot = f, _(y) && b({ inst: y });
498
- }, [d, p, f]), s(function() {
499
- return _(y) && b({ inst: y }), d(function() {
500
- _(y) && b({ inst: y });
494
+ var m = f(), S = r({ inst: { value: m, getSnapshot: f } }), g = S[0].inst, O = S[1];
495
+ return o(function() {
496
+ g.value = m, g.getSnapshot = f, E(g) && O({ inst: g });
497
+ }, [d, m, f]), a(function() {
498
+ return E(g) && O({ inst: g }), d(function() {
499
+ E(g) && O({ inst: g });
501
500
  });
502
- }, [d]), c(p), p;
501
+ }, [d]), l(m), m;
503
502
  }
504
- function _(d) {
503
+ function E(d) {
505
504
  var f = d.getSnapshot;
506
505
  d = d.value;
507
506
  try {
508
- var p = f();
509
- return !n(d, p);
507
+ var m = f();
508
+ return !n(d, m);
510
509
  } catch {
511
510
  return !0;
512
511
  }
513
512
  }
514
- function g(d, f) {
513
+ function x(d, f) {
515
514
  return f();
516
515
  }
517
- var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : v;
518
- return ue.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, ue;
516
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : v;
517
+ return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
519
518
  }
520
- var de = {};
519
+ var le = {};
521
520
  /**
522
521
  * @license React
523
522
  * use-sync-external-store-shim.development.js
@@ -527,80 +526,80 @@ var de = {};
527
526
  * This source code is licensed under the MIT license found in the
528
527
  * LICENSE file in the root directory of this source tree.
529
528
  */
530
- var Ie;
531
- function ln() {
532
- return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
529
+ var Ce;
530
+ function zt() {
531
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
533
532
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
534
- var t = X, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
533
+ var t = $, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
535
534
  function n(h) {
536
535
  {
537
- for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
538
- S[m - 1] = arguments[m];
539
- r("error", h, S);
536
+ for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), p = 1; p < c; p++)
537
+ y[p - 1] = arguments[p];
538
+ r("error", h, y);
540
539
  }
541
540
  }
542
- function r(h, u, S) {
541
+ function r(h, c, y) {
543
542
  {
544
- var m = e.ReactDebugCurrentFrame, w = m.getStackAddendum();
545
- w !== "" && (u += "%s", S = S.concat([w]));
546
- var N = S.map(function(j) {
547
- return String(j);
543
+ var p = e.ReactDebugCurrentFrame, _ = p.getStackAddendum();
544
+ _ !== "" && (c += "%s", y = y.concat([_]));
545
+ var A = y.map(function(w) {
546
+ return String(w);
548
547
  });
549
- N.unshift("Warning: " + u), Function.prototype.apply.call(console[h], console, N);
548
+ A.unshift("Warning: " + c), Function.prototype.apply.call(console[h], console, A);
550
549
  }
551
550
  }
552
- function s(h, u) {
553
- return h === u && (h !== 0 || 1 / h === 1 / u) || h !== h && u !== u;
551
+ function a(h, c) {
552
+ return h === c && (h !== 0 || 1 / h === 1 / c) || h !== h && c !== c;
554
553
  }
555
- var i = typeof Object.is == "function" ? Object.is : s, c = t.useState, v = t.useEffect, _ = t.useLayoutEffect, g = t.useDebugValue, l = !1, d = !1;
556
- function f(h, u, S) {
557
- l || t.startTransition !== void 0 && (l = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
558
- var m = u();
554
+ var o = typeof Object.is == "function" ? Object.is : a, l = t.useState, v = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, d = !1;
555
+ function f(h, c, y) {
556
+ u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
557
+ var p = c();
559
558
  if (!d) {
560
- var w = u();
561
- i(m, w) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
559
+ var _ = c();
560
+ o(p, _) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
562
561
  }
563
- var N = c({
562
+ var A = l({
564
563
  inst: {
565
- value: m,
566
- getSnapshot: u
564
+ value: p,
565
+ getSnapshot: c
567
566
  }
568
- }), j = N[0].inst, W = N[1];
569
- return _(function() {
570
- j.value = m, j.getSnapshot = u, p(j) && W({
571
- inst: j
567
+ }), w = A[0].inst, z = A[1];
568
+ return E(function() {
569
+ w.value = p, w.getSnapshot = c, m(w) && z({
570
+ inst: w
572
571
  });
573
- }, [h, m, u]), v(function() {
574
- p(j) && W({
575
- inst: j
572
+ }, [h, p, c]), v(function() {
573
+ m(w) && z({
574
+ inst: w
576
575
  });
577
- var se = function() {
578
- p(j) && W({
579
- inst: j
576
+ var re = function() {
577
+ m(w) && z({
578
+ inst: w
580
579
  });
581
580
  };
582
- return h(se);
583
- }, [h]), g(m), m;
581
+ return h(re);
582
+ }, [h]), x(p), p;
584
583
  }
585
- function p(h) {
586
- var u = h.getSnapshot, S = h.value;
584
+ function m(h) {
585
+ var c = h.getSnapshot, y = h.value;
587
586
  try {
588
- var m = u();
589
- return !i(S, m);
587
+ var p = c();
588
+ return !o(y, p);
590
589
  } catch {
591
590
  return !0;
592
591
  }
593
592
  }
594
- function x(h, u, S) {
595
- return u();
593
+ function S(h, c, y) {
594
+ return c();
596
595
  }
597
- var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !y, A = b ? x : f, E = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : A;
598
- de.useSyncExternalStore = E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
599
- }()), de;
596
+ var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : f, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
597
+ le.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
598
+ }()), le;
600
599
  }
601
- var ke;
602
- function Ye() {
603
- return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports = cn() : Z.exports = ln()), Z.exports;
600
+ var Ne;
601
+ function Ge() {
602
+ return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? J.exports = Bt() : J.exports = zt()), J.exports;
604
603
  }
605
604
  /**
606
605
  * @license React
@@ -611,48 +610,48 @@ function Ye() {
611
610
  * This source code is licensed under the MIT license found in the
612
611
  * LICENSE file in the root directory of this source tree.
613
612
  */
614
- var qe;
615
- function un() {
616
- if (qe) return le;
617
- qe = 1;
618
- var t = X, e = Ye();
619
- function n(g, l) {
620
- return g === l && (g !== 0 || 1 / g === 1 / l) || g !== g && l !== l;
621
- }
622
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
623
- return le.useSyncExternalStoreWithSelector = function(g, l, d, f, p) {
624
- var x = i(null);
625
- if (x.current === null) {
626
- var y = { hasValue: !1, value: null };
627
- x.current = y;
628
- } else y = x.current;
629
- x = v(function() {
630
- function A(m) {
631
- if (!E) {
632
- if (E = !0, h = m, m = f(m), p !== void 0 && y.hasValue) {
633
- var w = y.value;
634
- if (p(w, m)) return u = w;
613
+ var Me;
614
+ function Wt() {
615
+ if (Me) return ue;
616
+ Me = 1;
617
+ var t = $, e = Ge();
618
+ function n(x, u) {
619
+ return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
620
+ }
621
+ var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, v = t.useMemo, E = t.useDebugValue;
622
+ return ue.useSyncExternalStoreWithSelector = function(x, u, d, f, m) {
623
+ var S = o(null);
624
+ if (S.current === null) {
625
+ var g = { hasValue: !1, value: null };
626
+ S.current = g;
627
+ } else g = S.current;
628
+ S = v(function() {
629
+ function M(p) {
630
+ if (!R) {
631
+ if (R = !0, h = p, p = f(p), m !== void 0 && g.hasValue) {
632
+ var _ = g.value;
633
+ if (m(_, p)) return c = _;
635
634
  }
636
- return u = m;
635
+ return c = p;
637
636
  }
638
- if (w = u, r(h, m)) return w;
639
- var N = f(m);
640
- return p !== void 0 && p(w, N) ? w : (h = m, u = N);
637
+ if (_ = c, r(h, p)) return _;
638
+ var A = f(p);
639
+ return m !== void 0 && m(_, A) ? _ : (h = p, c = A);
641
640
  }
642
- var E = !1, h, u, S = d === void 0 ? null : d;
641
+ var R = !1, h, c, y = d === void 0 ? null : d;
643
642
  return [function() {
644
- return A(l());
645
- }, S === null ? void 0 : function() {
646
- return A(S());
643
+ return M(u());
644
+ }, y === null ? void 0 : function() {
645
+ return M(y());
647
646
  }];
648
- }, [l, d, f, p]);
649
- var b = s(g, x[0], x[1]);
650
- return c(function() {
651
- y.hasValue = !0, y.value = b;
652
- }, [b]), _(b), b;
653
- }, le;
647
+ }, [u, d, f, m]);
648
+ var O = a(x, S[0], S[1]);
649
+ return l(function() {
650
+ g.hasValue = !0, g.value = O;
651
+ }, [O]), E(O), O;
652
+ }, ue;
654
653
  }
655
- var he = {};
654
+ var de = {};
656
655
  /**
657
656
  * @license React
658
657
  * use-sync-external-store-shim/with-selector.development.js
@@ -662,131 +661,131 @@ var he = {};
662
661
  * This source code is licensed under the MIT license found in the
663
662
  * LICENSE file in the root directory of this source tree.
664
663
  */
665
- var Qe;
666
- function dn() {
667
- return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
664
+ var Te;
665
+ function Ut() {
666
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
668
667
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
669
- var t = X, e = Ye();
670
- function n(l, d) {
671
- return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
668
+ var t = $, e = Ge();
669
+ function n(u, d) {
670
+ return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
672
671
  }
673
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
674
- function g(l, d, f, p, x) {
675
- var y = i(null), b;
676
- y.current === null ? (b = {
672
+ var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, v = t.useMemo, E = t.useDebugValue;
673
+ function x(u, d, f, m, S) {
674
+ var g = o(null), O;
675
+ g.current === null ? (O = {
677
676
  hasValue: !1,
678
677
  value: null
679
- }, y.current = b) : b = y.current;
680
- var A = v(function() {
681
- var S = !1, m, w, N = function(U) {
682
- if (!S) {
683
- S = !0, m = U;
684
- var ae = p(U);
685
- if (x !== void 0 && b.hasValue) {
686
- var ie = b.value;
687
- if (x(ie, ae))
688
- return w = ie, ie;
678
+ }, g.current = O) : O = g.current;
679
+ var M = v(function() {
680
+ var y = !1, p, _, A = function(W) {
681
+ if (!y) {
682
+ y = !0, p = W;
683
+ var se = m(W);
684
+ if (S !== void 0 && O.hasValue) {
685
+ var ae = O.value;
686
+ if (S(ae, se))
687
+ return _ = ae, ae;
689
688
  }
690
- return w = ae, ae;
689
+ return _ = se, se;
691
690
  }
692
- var ft = m, oe = w;
693
- if (r(ft, U))
694
- return oe;
695
- var ce = p(U);
696
- return x !== void 0 && x(oe, ce) ? oe : (m = U, w = ce, ce);
697
- }, j = f === void 0 ? null : f, W = function() {
698
- return N(d());
699
- }, se = j === null ? void 0 : function() {
700
- return N(j());
691
+ var rt = p, ie = _;
692
+ if (r(rt, W))
693
+ return ie;
694
+ var oe = m(W);
695
+ return S !== void 0 && S(ie, oe) ? ie : (p = W, _ = oe, oe);
696
+ }, w = f === void 0 ? null : f, z = function() {
697
+ return A(d());
698
+ }, re = w === null ? void 0 : function() {
699
+ return A(w());
701
700
  };
702
- return [W, se];
703
- }, [d, f, p, x]), E = A[0], h = A[1], u = s(l, E, h);
704
- return c(function() {
705
- b.hasValue = !0, b.value = u;
706
- }, [u]), _(u), u;
701
+ return [z, re];
702
+ }, [d, f, m, S]), R = M[0], h = M[1], c = a(u, R, h);
703
+ return l(function() {
704
+ O.hasValue = !0, O.value = c;
705
+ }, [c]), E(c), c;
707
706
  }
708
- he.useSyncExternalStoreWithSelector = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
709
- }()), he;
707
+ de.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
708
+ }()), de;
710
709
  }
711
- process.env.NODE_ENV === "production" ? me.exports = un() : me.exports = dn();
712
- var hn = me.exports;
713
- const fn = /* @__PURE__ */ Et(hn);
714
- var Je = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
715
- const { useDebugValue: pn } = X, { useSyncExternalStoreWithSelector: mn } = fn;
716
- let Ve = !1;
717
- const vn = (t) => t;
718
- function gn(t, e = vn, n) {
719
- (Je ? "production" : void 0) !== "production" && n && !Ve && (console.warn(
710
+ process.env.NODE_ENV === "production" ? pe.exports = Wt() : pe.exports = Ut();
711
+ var Gt = pe.exports;
712
+ const $t = /* @__PURE__ */ pt(Gt);
713
+ var $e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
714
+ const { useDebugValue: Xt } = $, { useSyncExternalStoreWithSelector: Yt } = $t;
715
+ let Re = !1;
716
+ const Jt = (t) => t;
717
+ function Zt(t, e = Jt, n) {
718
+ ($e ? "production" : void 0) !== "production" && n && !Re && (console.warn(
720
719
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
721
- ), Ve = !0);
722
- const r = mn(
720
+ ), Re = !0);
721
+ const r = Yt(
723
722
  t.subscribe,
724
723
  t.getState,
725
724
  t.getServerState || t.getInitialState,
726
725
  e,
727
726
  n
728
727
  );
729
- return pn(r), r;
728
+ return Xt(r), r;
730
729
  }
731
- const Fe = (t) => {
732
- (Je ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
730
+ const Le = (t) => {
731
+ ($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
733
732
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
734
733
  );
735
- const e = typeof t == "function" ? on(t) : t, n = (r, s) => gn(e, r, s);
734
+ const e = typeof t == "function" ? Kt(t) : t, n = (r, a) => Zt(e, r, a);
736
735
  return Object.assign(n, e), n;
737
- }, yn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", xn = (t) => "initialize" in t && typeof t.initialize == "function", bn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new sn(), ve = yn(
736
+ }, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), me = en(
738
737
  () => ({
739
738
  isLoggedIn: !1
740
739
  })
741
740
  );
742
- class Sn {
741
+ class rn {
743
742
  constructor(e) {
744
- C(this, "plugins", []);
745
- C(this, "navigationPlugins");
746
- C(this, "navigation");
747
- C(this, "meta");
748
- C(this, "authentication");
749
- C(this, "state");
750
- C(this, "initialize", async () => {
743
+ j(this, "plugins", []);
744
+ j(this, "navigationPlugins");
745
+ j(this, "navigation");
746
+ j(this, "meta");
747
+ j(this, "authentication");
748
+ j(this, "state");
749
+ j(this, "initialize", async () => {
751
750
  var e;
752
- this.plugins.filter(xn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
751
+ this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
753
752
  });
754
- C(this, "setUserProfile", async (e) => ve.setState(e));
755
- C(this, "invalidateCache", async (e) => {
756
- et.invalidateQueries({ queryKey: e });
753
+ j(this, "setUserProfile", async (e) => me.setState(e));
754
+ j(this, "invalidateCache", async (e) => {
755
+ Ye.invalidateQueries({ queryKey: e });
757
756
  });
758
- C(this, "getApiIdentities", async () => (await Promise.all(
759
- this.plugins.filter(bn).map((n) => n.getIdentities(this))
757
+ j(this, "getApiIdentities", async () => (await Promise.all(
758
+ this.plugins.filter(nn).map((n) => n.getIdentities(this))
760
759
  )).flat());
761
- C(this, "login", async () => {
760
+ j(this, "login", async () => {
762
761
  if (!this.authentication)
763
762
  throw new Error("No authentication configured");
764
763
  return this.authentication.login(this);
765
764
  });
766
- C(this, "logout", async () => {
765
+ j(this, "logout", async () => {
767
766
  if (!this.authentication)
768
767
  throw new Error("No authentication configured");
769
768
  return this.authentication.signOut(this);
770
769
  });
771
- C(this, "handleAuthenticationResponse", async (e) => {
770
+ j(this, "handleAuthenticationResponse", async (e) => {
772
771
  var n, r;
773
772
  (r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
774
773
  });
775
- C(this, "getNavigation", async (e) => (await Promise.all(
774
+ j(this, "getNavigation", async (e) => (await Promise.all(
776
775
  this.navigationPlugins.map(
777
776
  async (r) => {
778
- var s;
779
- return (s = r.getNavigation) == null ? void 0 : s.call(r, e);
777
+ var a;
778
+ return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
780
779
  }
781
780
  )
782
781
  )).flatMap((r) => r ?? []));
783
- C(this, "sessionStorage", {
782
+ j(this, "sessionStorage", {
784
783
  get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
785
784
  setProfile: async () => {
786
785
  },
787
786
  set: async (e, n) => localStorage.setItem(`session-${e}`, n)
788
787
  });
789
- this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ze), this.authentication = e.authentication, this.meta = e.meta, this.state = ve;
788
+ this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = me;
790
789
  }
791
790
  }
792
791
  /**
@@ -795,7 +794,7 @@ class Sn {
795
794
  * This source code is licensed under the ISC license.
796
795
  * See the LICENSE file in the root directory of this source tree.
797
796
  */
798
- const tt = $("ChevronRight", [
797
+ const Je = G("ChevronRight", [
799
798
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
800
799
  ]);
801
800
  /**
@@ -804,7 +803,7 @@ const tt = $("ChevronRight", [
804
803
  * This source code is licensed under the ISC license.
805
804
  * See the LICENSE file in the root directory of this source tree.
806
805
  */
807
- const On = $("ExternalLink", [
806
+ const sn = G("ExternalLink", [
808
807
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
809
808
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
810
809
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -815,7 +814,7 @@ const On = $("ExternalLink", [
815
814
  * This source code is licensed under the ISC license.
816
815
  * See the LICENSE file in the root directory of this source tree.
817
816
  */
818
- const _n = $("MoonStar", [
817
+ const an = G("MoonStar", [
819
818
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
820
819
  ["path", { d: "M20 3v4", key: "1olli1" }],
821
820
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -826,7 +825,7 @@ const _n = $("MoonStar", [
826
825
  * This source code is licensed under the ISC license.
827
826
  * See the LICENSE file in the root directory of this source tree.
828
827
  */
829
- const En = $("Search", [
828
+ const on = G("Search", [
830
829
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
831
830
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
832
831
  ]);
@@ -836,7 +835,7 @@ const En = $("Search", [
836
835
  * This source code is licensed under the ISC license.
837
836
  * See the LICENSE file in the root directory of this source tree.
838
837
  */
839
- const wn = $("Sun", [
838
+ const un = G("Sun", [
840
839
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
841
840
  ["path", { d: "M12 2v2", key: "tus03m" }],
842
841
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -846,12 +845,12 @@ const wn = $("Sun", [
846
845
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
847
846
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
848
847
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
849
- ]), jn = () => {
850
- const { navigation: t } = ge();
851
- return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
852
- fe,
848
+ ]), cn = () => {
849
+ const { navigation: t } = ve();
850
+ return /* @__PURE__ */ s.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
851
+ he,
853
852
  {
854
- className: ({ isActive: n }) => wt(
853
+ className: ({ isActive: n }) => mt(
855
854
  "block py-3.5 font-medium -mb-px border-b-2",
856
855
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
857
856
  ),
@@ -859,59 +858,59 @@ const wn = $("Sun", [
859
858
  children: e.label
860
859
  }
861
860
  ) }, e.label)) }) });
862
- }, nt = $e(() => {
863
- const [t, e] = jt(), { isLoggedIn: n, email: r } = ve(), { login: s, logout: i, meta: c } = ge(), v = t ? _n : wn;
864
- return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
865
- /* @__PURE__ */ a.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: [
866
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
867
- (c == null ? void 0 : c.logo) && /* @__PURE__ */ a.jsx("img", { src: c.logo, alt: "My Dev Portal", className: "h-10" }),
868
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.headerTitle })
861
+ }, Ze = We(() => {
862
+ const [t, e] = vt(), { isLoggedIn: n, email: r } = me(), { login: a, logout: o, meta: l } = ve(), v = t ? an : un;
863
+ return /* @__PURE__ */ s.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
864
+ /* @__PURE__ */ s.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: [
865
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
866
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ s.jsx("img", { src: l.logo, alt: "My Dev Portal", className: "h-10" }),
867
+ /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.headerTitle })
869
868
  ] }),
870
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
871
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
872
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
873
- /* @__PURE__ */ a.jsx(En, { size: 14 }),
869
+ /* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
870
+ /* @__PURE__ */ s.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ s.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
871
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
872
+ /* @__PURE__ */ s.jsx(on, { size: 14 }),
874
873
  "Search"
875
874
  ] }),
876
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
875
+ /* @__PURE__ */ s.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
877
876
  ] }) }),
878
- /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
879
- n ? /* @__PURE__ */ a.jsxs(
877
+ /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
878
+ n ? /* @__PURE__ */ s.jsxs(
880
879
  "button",
881
880
  {
882
881
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
883
- onClick: i,
882
+ onClick: o,
884
883
  children: [
885
884
  "Logout ",
886
885
  r ? `(${r})` : null
887
886
  ]
888
887
  }
889
- ) : /* @__PURE__ */ a.jsx(
888
+ ) : /* @__PURE__ */ s.jsx(
890
889
  "button",
891
890
  {
892
891
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
893
- onClick: s,
892
+ onClick: a,
894
893
  children: "Login"
895
894
  }
896
895
  ),
897
- /* @__PURE__ */ a.jsx(
896
+ /* @__PURE__ */ s.jsx(
898
897
  "button",
899
898
  {
900
899
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
901
900
  onClick: e,
902
- children: /* @__PURE__ */ a.jsx(v, { size: 18 })
901
+ children: /* @__PURE__ */ s.jsx(v, { size: 18 })
903
902
  }
904
903
  )
905
904
  ] })
906
905
  ] })
907
906
  ] }),
908
- /* @__PURE__ */ a.jsx(jn, {})
907
+ /* @__PURE__ */ s.jsx(cn, {})
909
908
  ] }) });
910
- }), rt = {
911
- Header: nt
912
- }, Cn = Yt(rt), Pn = Cn.Provider, An = () => {
913
- const t = z(), { setActiveAnchor: e } = ye();
914
- B(() => {
909
+ }), et = {
910
+ Header: Ze
911
+ }, ln = Rt(et), dn = ln.Provider, hn = () => {
912
+ const t = B(), { setActiveAnchor: e } = ge();
913
+ K(() => {
915
914
  if (!t.hash) return;
916
915
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
917
916
  if (r) {
@@ -920,131 +919,31 @@ const wn = $("Sun", [
920
919
  });
921
920
  return;
922
921
  }
923
- const s = new MutationObserver((i, c) => {
922
+ const a = new MutationObserver((o, l) => {
924
923
  const v = document.getElementById(decodeURIComponent(n));
925
- v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), c.disconnect());
924
+ v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), l.disconnect());
926
925
  });
927
- return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
926
+ return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
928
927
  }, [t.hash, e]);
929
- }, Nn = () => {
930
- const t = z(), e = re(t.pathname);
931
- B(() => {
928
+ }, fn = () => {
929
+ const t = B(), e = ne(t.pathname);
930
+ K(() => {
932
931
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
933
932
  }, [t.pathname]);
934
933
  };
935
- var Se = "Collapsible", [Rn, Wn] = Ct(Se), [Dn, Oe] = Rn(Se), st = T.forwardRef(
936
- (t, e) => {
937
- const {
938
- __scopeCollapsible: n,
939
- open: r,
940
- defaultOpen: s,
941
- disabled: i,
942
- onOpenChange: c,
943
- ...v
944
- } = t, [_ = !1, g] = Pt({
945
- prop: r,
946
- defaultProp: s,
947
- onChange: c
948
- });
949
- return /* @__PURE__ */ a.jsx(
950
- Dn,
951
- {
952
- scope: n,
953
- disabled: i,
954
- contentId: At(),
955
- open: _,
956
- onOpenToggle: T.useCallback(() => g((l) => !l), [g]),
957
- children: /* @__PURE__ */ a.jsx(
958
- xe.div,
959
- {
960
- "data-state": Ee(_),
961
- "data-disabled": i ? "" : void 0,
962
- ...v,
963
- ref: e
964
- }
965
- )
966
- }
967
- );
968
- }
969
- );
970
- st.displayName = Se;
971
- var at = "CollapsibleTrigger", it = T.forwardRef(
972
- (t, e) => {
973
- const { __scopeCollapsible: n, ...r } = t, s = Oe(at, n);
974
- return /* @__PURE__ */ a.jsx(
975
- xe.button,
976
- {
977
- type: "button",
978
- "aria-controls": s.contentId,
979
- "aria-expanded": s.open || !1,
980
- "data-state": Ee(s.open),
981
- "data-disabled": s.disabled ? "" : void 0,
982
- disabled: s.disabled,
983
- ...r,
984
- ref: e,
985
- onClick: Nt(t.onClick, s.onOpenToggle)
986
- }
987
- );
988
- }
989
- );
990
- it.displayName = at;
991
- var _e = "CollapsibleContent", ot = T.forwardRef(
992
- (t, e) => {
993
- const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
994
- return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Mn, { ...r, ref: e, present: i }) });
995
- }
996
- );
997
- ot.displayName = _e;
998
- var Mn = T.forwardRef((t, e) => {
999
- const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [v, _] = T.useState(r), g = T.useRef(null), l = Dt(e, g), d = T.useRef(0), f = d.current, p = T.useRef(0), x = p.current, y = c.open || v, b = T.useRef(y), A = T.useRef();
1000
- return T.useEffect(() => {
1001
- const E = requestAnimationFrame(() => b.current = !1);
1002
- return () => cancelAnimationFrame(E);
1003
- }, []), Mt(() => {
1004
- const E = g.current;
1005
- if (E) {
1006
- A.current = A.current || {
1007
- transitionDuration: E.style.transitionDuration,
1008
- animationName: E.style.animationName
1009
- }, E.style.transitionDuration = "0s", E.style.animationName = "none";
1010
- const h = E.getBoundingClientRect();
1011
- d.current = h.height, p.current = h.width, b.current || (E.style.transitionDuration = A.current.transitionDuration, E.style.animationName = A.current.animationName), _(r);
1012
- }
1013
- }, [c.open, r]), /* @__PURE__ */ a.jsx(
1014
- xe.div,
1015
- {
1016
- "data-state": Ee(c.open),
1017
- "data-disabled": c.disabled ? "" : void 0,
1018
- id: c.contentId,
1019
- hidden: !y,
1020
- ...i,
1021
- ref: l,
1022
- style: {
1023
- "--radix-collapsible-content-height": f ? `${f}px` : void 0,
1024
- "--radix-collapsible-content-width": x ? `${x}px` : void 0,
1025
- ...t.style
1026
- },
1027
- children: y && s
1028
- }
1029
- );
1030
- });
1031
- function Ee(t) {
1032
- return t ? "open" : "closed";
1033
- }
1034
- var ct = st, lt = it, ut = ot;
1035
- function Tn(t) {
934
+ function pn(t) {
1036
935
  return !0;
1037
936
  }
1038
- const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
937
+ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
1039
938
  item: t,
1040
939
  defaultOpen: e,
1041
940
  path: n
1042
941
  }) => {
1043
- const [r, s] = Jt(e), i = z(), c = re(i.pathname);
1044
- return B(() => {
1045
- !r && c.current !== i.pathname && s(be(t, i.pathname, n)), c.current = i.pathname;
1046
- }, [r, t, n, i.pathname]), [r, s];
1047
- }, ee = It(
942
+ const [r, a] = Lt(e), o = B(), l = ne(o.pathname);
943
+ return K(() => {
944
+ !r && l.current !== o.pathname && a(ye(t, o.pathname, n)), l.current = o.pathname;
945
+ }, [r, t, n, o.pathname]), [r, a];
946
+ }, Z = xt(
1048
947
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1049
948
  {
1050
949
  variants: {
@@ -1058,126 +957,126 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
1058
957
  }
1059
958
  }
1060
959
  }
1061
- ), In = "data-anchor", ht = ({
960
+ ), vn = "data-anchor", nt = ({
1062
961
  category: t,
1063
962
  item: e,
1064
963
  activeAnchor: n,
1065
964
  currentTopNavItem: r,
1066
- basePath: s = ""
965
+ basePath: a = ""
1067
966
  }) => {
1068
- const i = pe(e) ? Ge(s, e.path) : "", c = z(), [v, _] = dt({
967
+ const o = fe(e) ? Fe(a, e.path) : "", l = B(), [v, E] = tt({
1069
968
  item: e,
1070
- path: i,
1071
- defaultOpen: () => be(e, c.pathname, i)
969
+ path: o,
970
+ defaultOpen: () => ye(e, l.pathname, o)
1072
971
  });
1073
- if (Tt(e)) {
1074
- const l = ne(
972
+ if (gt(e)) {
973
+ const u = te(
1075
974
  "flex items-center gap-2",
1076
- ee({
1077
- isActive: e.href === c.pathname
975
+ Z({
976
+ isActive: e.href === l.pathname
1078
977
  })
1079
978
  );
1080
- return e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
979
+ return e.href.startsWith("http") ? /* @__PURE__ */ s.jsxs(
1081
980
  "a",
1082
981
  {
1083
- className: l,
982
+ className: u,
1084
983
  href: e.href,
1085
984
  target: "_blank",
1086
985
  rel: "noopener noreferrer",
1087
986
  children: [
1088
987
  e.label,
1089
- /* @__PURE__ */ a.jsx(On, { size: 14 })
988
+ /* @__PURE__ */ s.jsx(sn, { size: 14 })
1090
989
  ]
1091
990
  }
1092
- ) : /* @__PURE__ */ a.jsx(fe, { className: l, to: e.href, children: e.label });
991
+ ) : /* @__PURE__ */ s.jsx(he, { className: u, to: e.href, children: e.label });
1093
992
  }
1094
- const g = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
1095
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1096
- Tn(e.icon) && /* @__PURE__ */ a.jsx(Ln, { name: e.icon, size: 16 }),
1097
- typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
993
+ const x = /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between w-full", children: [
994
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
995
+ pn(e.icon) && /* @__PURE__ */ s.jsx(mn, { name: e.icon, size: 16 }),
996
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ s.jsx("span", { className: "truncate", children: e.label })
1098
997
  ] }),
1099
- e.children && /* @__PURE__ */ a.jsx(
1100
- tt,
998
+ e.children && /* @__PURE__ */ s.jsx(
999
+ Je,
1101
1000
  {
1102
1001
  size: 16,
1103
1002
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
1104
1003
  }
1105
1004
  )
1106
1005
  ] });
1107
- return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
1108
- ct,
1006
+ return /* @__PURE__ */ s.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ s.jsxs(
1007
+ Ke,
1109
1008
  {
1110
1009
  open: v,
1111
- onOpenChange: () => _((l) => !l),
1010
+ onOpenChange: () => E((u) => !u),
1112
1011
  className: "flex flex-col",
1113
1012
  children: [
1114
- /* @__PURE__ */ a.jsx(
1115
- lt,
1013
+ /* @__PURE__ */ s.jsx(
1014
+ Be,
1116
1015
  {
1117
- className: ne(
1016
+ className: te(
1118
1017
  "group text-start",
1119
- ee({ isActive: !1 })
1018
+ Z({ isActive: !1 })
1120
1019
  ),
1121
- children: g
1020
+ children: x
1122
1021
  }
1123
1022
  ),
1124
- /* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ a.jsx(
1125
- ht,
1023
+ /* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ s.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ s.jsx(
1024
+ nt,
1126
1025
  {
1127
1026
  category: t,
1128
- item: l,
1027
+ item: u,
1129
1028
  activeAnchor: n,
1130
1029
  currentTopNavItem: r,
1131
- basePath: i
1030
+ basePath: o
1132
1031
  },
1133
- pe(l) ? l.path : l.href
1032
+ fe(u) ? u.path : u.href
1134
1033
  )) }) })
1135
1034
  ]
1136
1035
  }
1137
- ) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
1138
- Lt,
1036
+ ) : e.path.startsWith("#") ? /* @__PURE__ */ s.jsx(
1037
+ yt,
1139
1038
  {
1140
1039
  to: e.path,
1141
- [In]: e.path,
1142
- className: ee({
1040
+ [vn]: e.path,
1041
+ className: Z({
1143
1042
  isActive: e.path.slice(1) === n,
1144
1043
  isMuted: e.muted
1145
1044
  }),
1146
- children: g
1045
+ children: x
1147
1046
  }
1148
- ) : /* @__PURE__ */ a.jsx(
1149
- fe,
1047
+ ) : /* @__PURE__ */ s.jsx(
1048
+ he,
1150
1049
  {
1151
- className: ({ isActive: l }) => ee({ isActive: l }),
1152
- to: i,
1153
- children: g
1050
+ className: ({ isActive: u }) => Z({ isActive: u }),
1051
+ to: o,
1052
+ children: x
1154
1053
  }
1155
1054
  ) });
1156
- }, kn = ({
1055
+ }, gn = ({
1157
1056
  category: t
1158
1057
  }) => {
1159
- const { activeAnchor: e } = ye(), n = kt(), r = z(), s = t.collapsible ?? !0, [i, c] = dt({
1058
+ const { activeAnchor: e } = ge(), n = St(), r = B(), a = t.collapsible ?? !0, [o, l] = tt({
1160
1059
  item: t,
1161
1060
  path: (n == null ? void 0 : n.path) ?? "",
1162
- defaultOpen: () => !s || t.expanded || be(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1061
+ defaultOpen: () => !a || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1163
1062
  });
1164
- return /* @__PURE__ */ a.jsxs(
1165
- ct,
1063
+ return /* @__PURE__ */ s.jsxs(
1064
+ Ke,
1166
1065
  {
1167
- open: i,
1168
- onOpenChange: () => c((v) => !v),
1066
+ open: o,
1067
+ onOpenChange: () => l((v) => !v),
1169
1068
  children: [
1170
- t.label.length > 0 ? /* @__PURE__ */ a.jsx(lt, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1069
+ t.label.length > 0 ? /* @__PURE__ */ s.jsx(Be, { asChild: a, disabled: !a, children: /* @__PURE__ */ s.jsxs(
1171
1070
  "h5",
1172
1071
  {
1173
- className: ne(
1072
+ className: te(
1174
1073
  "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]",
1175
- s ? "hover:bg-accent" : "cursor-auto"
1074
+ a ? "hover:bg-accent" : "cursor-auto"
1176
1075
  ),
1177
1076
  children: [
1178
1077
  t.label,
1179
- s && /* @__PURE__ */ a.jsx(
1180
- tt,
1078
+ a && /* @__PURE__ */ s.jsx(
1079
+ Je,
1181
1080
  {
1182
1081
  className: "group-data-[state=open]:rotate-90 transition",
1183
1082
  size: 16
@@ -1186,71 +1085,71 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
1186
1085
  ]
1187
1086
  }
1188
1087
  ) }) : "Endpoints",
1189
- /* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ a.jsx(
1190
- ht,
1088
+ /* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ s.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ s.jsx(
1089
+ nt,
1191
1090
  {
1192
1091
  category: t,
1193
1092
  item: v,
1194
1093
  activeAnchor: e,
1195
1094
  currentTopNavItem: n,
1196
- basePath: Ge(n == null ? void 0 : n.path, t.path)
1095
+ basePath: Fe(n == null ? void 0 : n.path, t.path)
1197
1096
  },
1198
- pe(v) ? v.path + v.label : v.href
1097
+ fe(v) ? v.path + v.label : v.href
1199
1098
  )) }) })
1200
1099
  ]
1201
1100
  },
1202
1101
  t.label
1203
1102
  );
1204
- }, qn = Zt(({ children: t, className: e, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
1103
+ }, yn = It(({ children: t, className: e, pushMainContent: n }, r) => /* @__PURE__ */ s.jsx(
1205
1104
  "nav",
1206
1105
  {
1207
1106
  "data-navigation": String(n),
1208
- className: ne(
1107
+ className: te(
1209
1108
  "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",
1210
1109
  e
1211
1110
  ),
1212
1111
  ref: r,
1213
1112
  children: t
1214
1113
  }
1215
- )), Qn = () => {
1216
- const t = re(null), e = qt();
1217
- return /* @__PURE__ */ a.jsx(
1218
- qn,
1114
+ )), xn = () => {
1115
+ const t = ne(null), e = bt();
1116
+ return /* @__PURE__ */ s.jsx(
1117
+ yn,
1219
1118
  {
1220
1119
  ref: t,
1221
1120
  pushMainContent: e.data.items.length > 0,
1222
- children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(kn, { category: n }, n.label))
1121
+ children: e.data.items.map((n) => /* @__PURE__ */ s.jsx(gn, { category: n }, n.label))
1223
1122
  }
1224
1123
  );
1225
- }, He = ({ children: t }) => {
1226
- const e = z(), { setActiveAnchor: n } = ye(), { meta: r, handleAuthenticationResponse: s } = ge();
1227
- B(() => {
1228
- s(e);
1229
- }, [s, e]), An(), Nn();
1230
- const i = re(e.pathname);
1231
- return B(() => {
1232
- e.pathname !== i.current && n(""), i.current = e.pathname;
1233
- }, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1234
- /* @__PURE__ */ a.jsxs(Qt, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1235
- /* @__PURE__ */ a.jsx("title", { children: "Home" }),
1236
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
1237
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1124
+ }, Ie = ({ children: t }) => {
1125
+ const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: a } = ve();
1126
+ K(() => {
1127
+ a(e);
1128
+ }, [a, e]), hn(), fn();
1129
+ const o = ne(e.pathname);
1130
+ return K(() => {
1131
+ e.pathname !== o.current && n(""), o.current = e.pathname;
1132
+ }, [e.pathname, n]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1133
+ /* @__PURE__ */ s.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1134
+ /* @__PURE__ */ s.jsx("title", { children: "Home" }),
1135
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: r.description }),
1136
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: r.favicon })
1238
1137
  ] }),
1239
- /* @__PURE__ */ a.jsx(nt, {}),
1240
- /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
1241
- Xe,
1138
+ /* @__PURE__ */ s.jsx(Ze, {}),
1139
+ /* @__PURE__ */ s.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ s.jsxs(
1140
+ Ue,
1242
1141
  {
1243
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(Vt, {}) }),
1142
+ fallback: /* @__PURE__ */ s.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ s.jsx(_t, {}) }),
1244
1143
  children: [
1245
- /* @__PURE__ */ a.jsx(Qn, {}),
1246
- /* @__PURE__ */ a.jsx(
1144
+ /* @__PURE__ */ s.jsx(xn, {}),
1145
+ /* @__PURE__ */ s.jsx(
1247
1146
  "main",
1248
1147
  {
1249
1148
  className: `dark:border-white/10 translate-x-0
1250
1149
  lg:overflow-visible
1251
1150
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
1252
1151
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
1253
- children: t ?? /* @__PURE__ */ a.jsx(Ft, {})
1152
+ children: t ?? /* @__PURE__ */ s.jsx(Et, {})
1254
1153
  }
1255
1154
  )
1256
1155
  ]
@@ -1258,44 +1157,44 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
1258
1157
  ) })
1259
1158
  ] });
1260
1159
  };
1261
- function Vn({ plugins: t }) {
1262
- const e = te(() => {
1160
+ function Sn({ plugins: t }) {
1161
+ const e = ee(() => {
1263
1162
  const n = (t ?? []).flatMap(
1264
- (r) => Ze(r) ? r.getRoutes() : []
1163
+ (r) => Xe(r) ? r.getRoutes() : []
1265
1164
  );
1266
- return Ht([
1165
+ return wt([
1267
1166
  {
1268
1167
  path: "/",
1269
- element: /* @__PURE__ */ a.jsx(He, {}),
1270
- errorElement: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1168
+ element: /* @__PURE__ */ s.jsx(Ie, {}),
1169
+ errorElement: /* @__PURE__ */ s.jsx(Ie, { children: /* @__PURE__ */ s.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1271
1170
  children: n
1272
1171
  }
1273
1172
  ]);
1274
1173
  }, [t]);
1275
- return /* @__PURE__ */ a.jsx(Kt, { router: e });
1174
+ return /* @__PURE__ */ s.jsx(jt, { router: e });
1276
1175
  }
1277
- const Fn = (t) => {
1278
- const e = te(
1279
- () => ({ ...rt, ...t.overrides }),
1176
+ const bn = (t) => {
1177
+ const e = ee(
1178
+ () => ({ ...et, ...t.overrides }),
1280
1179
  [t.overrides]
1281
- ), n = te(
1282
- () => ({ ...Bt, ...t.mdxComponents }),
1180
+ ), n = ee(
1181
+ () => ({ ...Pt, ...t.mdxComponents }),
1283
1182
  [t.mdxComponents]
1284
- ), r = te(() => new Sn(t), [t]);
1285
- return B(() => {
1183
+ ), r = ee(() => new rn(t), [t]);
1184
+ return K(() => {
1286
1185
  r.initialize();
1287
- }, [r]), /* @__PURE__ */ a.jsx(zt, { client: et, children: /* @__PURE__ */ a.jsx(Wt, { children: /* @__PURE__ */ a.jsx(Ut, { value: r, children: /* @__PURE__ */ a.jsx(Gt, { components: n, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(Pn, { value: e, children: /* @__PURE__ */ a.jsx(Xt, { children: /* @__PURE__ */ a.jsx(
1288
- Xe,
1186
+ }, [r]), /* @__PURE__ */ s.jsx(At, { client: Ye, children: /* @__PURE__ */ s.jsx(Dt, { children: /* @__PURE__ */ s.jsx(Ct, { value: r, children: /* @__PURE__ */ s.jsx(Nt, { components: n, children: /* @__PURE__ */ s.jsx(Mt, { children: /* @__PURE__ */ s.jsx(dn, { value: e, children: /* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(
1187
+ Ue,
1289
1188
  {
1290
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1291
- children: /* @__PURE__ */ a.jsx(Vn, { plugins: t.plugins })
1189
+ fallback: /* @__PURE__ */ s.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1190
+ children: /* @__PURE__ */ s.jsx(Sn, { plugins: t.plugins })
1292
1191
  }
1293
1192
  ) }) }) }) }) }) }) });
1294
- }, Hn = $e(Fn);
1295
- Hn.displayName = "DevPortal";
1193
+ }, On = We(bn);
1194
+ On.displayName = "DevPortal";
1296
1195
  export {
1297
- Hn as DevPortal,
1298
- Ln as DynamicIcon,
1299
- $n as Link,
1300
- Xn as useMDXComponents
1196
+ On as DevPortal,
1197
+ mn as DynamicIcon,
1198
+ An as Link,
1199
+ Dn as useMDXComponents
1301
1200
  };