zudoku 0.3.0-dev.4 → 0.3.0-dev.5
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/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +6 -7
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.js +19 -7
- package/dist/lib/plugins/api-key/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/lib/{Spinner-7LezPqGn.js → Spinner-DWHrSHMP.js} +567 -549
- package/lib/state-DfftBQ9X.js +312 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +3 -4
- package/lib/zudoku.components.js +132 -149
- package/lib/zudoku.plugins.js +2412 -2402
- package/package.json +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +47 -50
- package/src/lib/plugins/api-key/index.tsx +26 -6
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/lib/state-oycsxkHz.js +0 -287
|
@@ -3,15 +3,15 @@ var jr = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var pa = (e, t, r) => t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var ce = (e, t, r) => pa(e, typeof t != "symbol" ? t + "" : t, r),
|
|
7
|
-
var m = (e, t, r) => (
|
|
6
|
+
var ce = (e, t, r) => pa(e, typeof t != "symbol" ? t + "" : t, r), jt = (e, t, r) => t.has(e) || jr("Cannot " + r);
|
|
7
|
+
var m = (e, t, r) => (jt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), P = (e, t, r) => t.has(e) ? jr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), R = (e, t, r, n) => (jt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), I = (e, t, r) => (jt(e, t, "access private method"), r);
|
|
8
8
|
import * as w from "react";
|
|
9
|
-
import Q, { Component as
|
|
10
|
-
import { g as
|
|
11
|
-
import { j as C, b as Ct, s as We, w as
|
|
12
|
-
import * as
|
|
13
|
-
const
|
|
14
|
-
function
|
|
9
|
+
import Q, { Component as gr, createContext as yr, useState as At, useRef as He, useEffect as nt, useMemo as qt, useCallback as at, useContext as mr, createElement as wt, forwardRef as fn } from "react";
|
|
10
|
+
import { g as br, u as fa } from "./state-DfftBQ9X.js";
|
|
11
|
+
import { j as C, b as Ct, s as We, w as vr, c as ha, a as ga, u as lt, d as Tt, e as Vt, D as hn, f as ya, R as ma, i as Ke, g as ba, m as xt, h as va, k as wa, l as xa, E as Ea, n as gn, o as ka, p as Sa } from "./index-DNx3xWa2.js";
|
|
12
|
+
import * as wr from "react-dom";
|
|
13
|
+
const Ht = {}, yn = Q.createContext(Ht);
|
|
14
|
+
function Aa(e) {
|
|
15
15
|
const t = Q.useContext(yn);
|
|
16
16
|
return Q.useMemo(
|
|
17
17
|
function() {
|
|
@@ -20,15 +20,15 @@ function Sa(e) {
|
|
|
20
20
|
[t, e]
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Al(e) {
|
|
24
24
|
let t;
|
|
25
|
-
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(
|
|
25
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(Ht) : e.components || Ht : t = Aa(e.components), Q.createElement(
|
|
26
26
|
yn.Provider,
|
|
27
27
|
{ value: t },
|
|
28
28
|
e.children
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var xr = class {
|
|
32
32
|
constructor() {
|
|
33
33
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
34
34
|
}
|
|
@@ -45,12 +45,12 @@ var wr = class {
|
|
|
45
45
|
onUnsubscribe() {
|
|
46
46
|
}
|
|
47
47
|
}, Ze = typeof window > "u" || "Deno" in globalThis;
|
|
48
|
-
function
|
|
48
|
+
function Wt() {
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Cl(e, t) {
|
|
51
51
|
return typeof e == "function" ? e(t) : e;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Kt(e) {
|
|
54
54
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
55
55
|
}
|
|
56
56
|
function mn(e, t) {
|
|
@@ -62,7 +62,7 @@ function gt(e, t) {
|
|
|
62
62
|
function re(e, t) {
|
|
63
63
|
return typeof e == "function" ? e(t) : e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Tl(e, t) {
|
|
66
66
|
const {
|
|
67
67
|
type: r = "all",
|
|
68
68
|
exact: n,
|
|
@@ -73,9 +73,9 @@ function Cl(e, t) {
|
|
|
73
73
|
} = e;
|
|
74
74
|
if (o) {
|
|
75
75
|
if (n) {
|
|
76
|
-
if (t.queryHash !==
|
|
76
|
+
if (t.queryHash !== Ca(o, t.options))
|
|
77
77
|
return !1;
|
|
78
|
-
} else if (!
|
|
78
|
+
} else if (!Er(t.queryKey, o))
|
|
79
79
|
return !1;
|
|
80
80
|
}
|
|
81
81
|
if (r !== "all") {
|
|
@@ -85,36 +85,36 @@ function Cl(e, t) {
|
|
|
85
85
|
}
|
|
86
86
|
return !(typeof i == "boolean" && t.isStale() !== i || a && a !== t.state.fetchStatus || s && !s(t));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Rl(e, t) {
|
|
89
89
|
const { exact: r, status: n, predicate: a, mutationKey: s } = e;
|
|
90
90
|
if (s) {
|
|
91
91
|
if (!t.options.mutationKey)
|
|
92
92
|
return !1;
|
|
93
93
|
if (r) {
|
|
94
|
-
if (
|
|
94
|
+
if (Zt(t.options.mutationKey) !== Zt(s))
|
|
95
95
|
return !1;
|
|
96
|
-
} else if (!
|
|
96
|
+
} else if (!Er(t.options.mutationKey, s))
|
|
97
97
|
return !1;
|
|
98
98
|
}
|
|
99
99
|
return !(n && t.state.status !== n || a && !a(t));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return ((t == null ? void 0 : t.queryKeyHashFn) ||
|
|
101
|
+
function Ca(e, t) {
|
|
102
|
+
return ((t == null ? void 0 : t.queryKeyHashFn) || Zt)(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Zt(e) {
|
|
105
105
|
return JSON.stringify(
|
|
106
106
|
e,
|
|
107
|
-
(t, r) =>
|
|
107
|
+
(t, r) => Qt(r) ? Object.keys(r).sort().reduce((n, a) => (n[a] = r[a], n), {}) : r
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((r) => !
|
|
110
|
+
function Er(e, t) {
|
|
111
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((r) => !Er(e[r], t[r])) : !1;
|
|
112
112
|
}
|
|
113
113
|
function bn(e, t) {
|
|
114
114
|
if (e === t)
|
|
115
115
|
return e;
|
|
116
116
|
const r = Mr(e) && Mr(t);
|
|
117
|
-
if (r ||
|
|
117
|
+
if (r || Qt(e) && Qt(t)) {
|
|
118
118
|
const n = r ? e : Object.keys(e), a = n.length, s = r ? t : Object.keys(t), o = s.length, i = r ? [] : {};
|
|
119
119
|
let c = 0;
|
|
120
120
|
for (let l = 0; l < o; l++) {
|
|
@@ -125,7 +125,7 @@ function bn(e, t) {
|
|
|
125
125
|
}
|
|
126
126
|
return t;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Yt(e, t) {
|
|
129
129
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
130
130
|
return !1;
|
|
131
131
|
for (const r in e)
|
|
@@ -136,7 +136,7 @@ function Zt(e, t) {
|
|
|
136
136
|
function Mr(e) {
|
|
137
137
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Qt(e) {
|
|
140
140
|
if (!$r(e))
|
|
141
141
|
return !1;
|
|
142
142
|
const t = e.constructor;
|
|
@@ -148,25 +148,25 @@ function Yt(e) {
|
|
|
148
148
|
function $r(e) {
|
|
149
149
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ta(e) {
|
|
152
152
|
return new Promise((t) => {
|
|
153
153
|
setTimeout(t, e);
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Xt(e, t, r) {
|
|
157
157
|
return typeof r.structuralSharing == "function" ? r.structuralSharing(e, t) : r.structuralSharing !== !1 ? bn(e, t) : t;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function _l(e, t, r = 0) {
|
|
160
160
|
const n = [...e, t];
|
|
161
161
|
return r && n.length > r ? n.slice(1) : n;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ol(e, t, r = 0) {
|
|
164
164
|
const n = [t, ...e];
|
|
165
165
|
return r && n.length > r ? n.slice(0, -1) : n;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
167
|
+
var Jt = Symbol(), Ra = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === Jt && console.error(
|
|
168
168
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
169
|
-
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
169
|
+
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Jt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), Se, ge, je, on, _a = (on = class extends xr {
|
|
170
170
|
constructor() {
|
|
171
171
|
super();
|
|
172
172
|
P(this, Se);
|
|
@@ -207,7 +207,7 @@ var Xt = Symbol(), Ta = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
|
|
|
207
207
|
var t;
|
|
208
208
|
return typeof m(this, Se) == "boolean" ? m(this, Se) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
209
209
|
}
|
|
210
|
-
}, Se = new WeakMap(), ge = new WeakMap(), je = new WeakMap(), on), vn = new
|
|
210
|
+
}, Se = new WeakMap(), ge = new WeakMap(), je = new WeakMap(), on), vn = new _a(), Me, ye, $e, ln, Oa = (ln = class extends xr {
|
|
211
211
|
constructor() {
|
|
212
212
|
super();
|
|
213
213
|
P(this, Me, !0);
|
|
@@ -241,8 +241,8 @@ var Xt = Symbol(), Ta = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
|
|
|
241
241
|
isOnline() {
|
|
242
242
|
return m(this, Me);
|
|
243
243
|
}
|
|
244
|
-
}, Me = new WeakMap(), ye = new WeakMap(), $e = new WeakMap(), ln), wn = new
|
|
245
|
-
function
|
|
244
|
+
}, Me = new WeakMap(), ye = new WeakMap(), $e = new WeakMap(), ln), wn = new Oa();
|
|
245
|
+
function Fa(e) {
|
|
246
246
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
247
247
|
}
|
|
248
248
|
function xn(e) {
|
|
@@ -253,7 +253,7 @@ var En = class {
|
|
|
253
253
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
function
|
|
256
|
+
function Mt(e) {
|
|
257
257
|
return e instanceof En;
|
|
258
258
|
}
|
|
259
259
|
function kn(e) {
|
|
@@ -295,12 +295,12 @@ function kn(e) {
|
|
|
295
295
|
var S;
|
|
296
296
|
if (n)
|
|
297
297
|
return;
|
|
298
|
-
const k = e.retry ?? (Ze ? 0 : 3), T = e.retryDelay ??
|
|
298
|
+
const k = e.retry ?? (Ze ? 0 : 3), T = e.retryDelay ?? Fa, L = typeof T == "function" ? T(r, x) : T, A = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, x);
|
|
299
299
|
if (t || !A) {
|
|
300
300
|
p(x);
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
|
-
r++, (S = e.onFail) == null || S.call(e, r, x),
|
|
303
|
+
r++, (S = e.onFail) == null || S.call(e, r, x), Ta(L).then(() => u() ? void 0 : f()).then(() => {
|
|
304
304
|
t ? p(x) : h();
|
|
305
305
|
});
|
|
306
306
|
});
|
|
@@ -315,7 +315,7 @@ function kn(e) {
|
|
|
315
315
|
start: () => (y() ? h() : f().then(h), i)
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ia() {
|
|
319
319
|
let e = [], t = 0, r = (y) => {
|
|
320
320
|
y();
|
|
321
321
|
}, n = (y) => {
|
|
@@ -363,7 +363,7 @@ function Fa() {
|
|
|
363
363
|
setScheduler: s
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var Rt =
|
|
366
|
+
var Rt = Ia(), Ae, cn, Sn = (cn = class {
|
|
367
367
|
constructor() {
|
|
368
368
|
P(this, Ae);
|
|
369
369
|
}
|
|
@@ -371,7 +371,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
371
371
|
this.clearGcTimeout();
|
|
372
372
|
}
|
|
373
373
|
scheduleGc() {
|
|
374
|
-
this.clearGcTimeout(),
|
|
374
|
+
this.clearGcTimeout(), Kt(this.gcTime) && R(this, Ae, setTimeout(() => {
|
|
375
375
|
this.optionalRemove();
|
|
376
376
|
}, this.gcTime));
|
|
377
377
|
}
|
|
@@ -384,7 +384,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
384
384
|
clearGcTimeout() {
|
|
385
385
|
m(this, Ae) && (clearTimeout(m(this, Ae)), R(this, Ae, void 0));
|
|
386
386
|
}
|
|
387
|
-
}, Ae = new WeakMap(), cn), Be, Ue, Y, U, st, Ce, te, de, un,
|
|
387
|
+
}, Ae = new WeakMap(), cn), Be, Ue, Y, U, st, Ce, te, de, un, Fl = (un = class extends Sn {
|
|
388
388
|
constructor(t) {
|
|
389
389
|
super();
|
|
390
390
|
P(this, te);
|
|
@@ -394,7 +394,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
394
394
|
P(this, U);
|
|
395
395
|
P(this, st);
|
|
396
396
|
P(this, Ce);
|
|
397
|
-
R(this, Ce, !1), R(this, st, t.defaultOptions), this.setOptions(t.options), this.observers = [], R(this, Y, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, R(this, Be, t.state ||
|
|
397
|
+
R(this, Ce, !1), R(this, st, t.defaultOptions), this.setOptions(t.options), this.observers = [], R(this, Y, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, R(this, Be, t.state || Na(this.options)), this.state = m(this, Be), this.scheduleGc();
|
|
398
398
|
}
|
|
399
399
|
get meta() {
|
|
400
400
|
return this.options.meta;
|
|
@@ -410,7 +410,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
410
410
|
!this.observers.length && this.state.fetchStatus === "idle" && m(this, Y).remove(this);
|
|
411
411
|
}
|
|
412
412
|
setData(t, r) {
|
|
413
|
-
const n =
|
|
413
|
+
const n = Xt(this.state.data, t, this.options);
|
|
414
414
|
return I(this, te, de).call(this, {
|
|
415
415
|
data: n,
|
|
416
416
|
type: "success",
|
|
@@ -424,7 +424,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
424
424
|
cancel(t) {
|
|
425
425
|
var n, a;
|
|
426
426
|
const r = (n = m(this, U)) == null ? void 0 : n.promise;
|
|
427
|
-
return (a = m(this, U)) == null || a.cancel(t), r ? r.then(
|
|
427
|
+
return (a = m(this, U)) == null || a.cancel(t), r ? r.then(Wt).catch(Wt) : Promise.resolve();
|
|
428
428
|
}
|
|
429
429
|
destroy() {
|
|
430
430
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -491,7 +491,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
491
491
|
get: () => (R(this, Ce, !0), n.signal)
|
|
492
492
|
});
|
|
493
493
|
}, s = () => {
|
|
494
|
-
const u =
|
|
494
|
+
const u = Ra(this.options, r), y = {
|
|
495
495
|
queryKey: this.queryKey,
|
|
496
496
|
meta: this.meta
|
|
497
497
|
};
|
|
@@ -513,10 +513,10 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
513
513
|
), R(this, Ue, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = o.fetchOptions) == null ? void 0 : l.meta)) && I(this, te, de).call(this, { type: "fetch", meta: (d = o.fetchOptions) == null ? void 0 : d.meta });
|
|
514
514
|
const i = (u) => {
|
|
515
515
|
var y, E, p, f;
|
|
516
|
-
|
|
516
|
+
Mt(u) && u.silent || I(this, te, de).call(this, {
|
|
517
517
|
type: "error",
|
|
518
518
|
error: u
|
|
519
|
-
}),
|
|
519
|
+
}), Mt(u) || ((E = (y = m(this, Y).config).onError) == null || E.call(
|
|
520
520
|
y,
|
|
521
521
|
u,
|
|
522
522
|
this
|
|
@@ -604,7 +604,7 @@ var Rt = Fa(), Ae, cn, Sn = (cn = class {
|
|
|
604
604
|
};
|
|
605
605
|
case "error":
|
|
606
606
|
const a = t.error;
|
|
607
|
-
return
|
|
607
|
+
return Mt(a) && a.revert && m(this, Ue) ? { ...m(this, Ue), fetchStatus: "idle" } : {
|
|
608
608
|
...n,
|
|
609
609
|
error: a,
|
|
610
610
|
errorUpdateCount: n.errorUpdateCount + 1,
|
|
@@ -643,7 +643,7 @@ function An(e, t) {
|
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Na(e) {
|
|
647
647
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, n = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
648
648
|
return {
|
|
649
649
|
data: t,
|
|
@@ -660,14 +660,14 @@ function Ia(e) {
|
|
|
660
660
|
fetchStatus: "idle"
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
var ae, G, Te, se, he, dn,
|
|
663
|
+
var ae, G, Te, se, he, dn, Il = (dn = class extends Sn {
|
|
664
664
|
constructor(t) {
|
|
665
665
|
super();
|
|
666
666
|
P(this, se);
|
|
667
667
|
P(this, ae);
|
|
668
668
|
P(this, G);
|
|
669
669
|
P(this, Te);
|
|
670
|
-
this.mutationId = t.mutationId, R(this, G, t.mutationCache), R(this, ae, []), this.state = t.state ||
|
|
670
|
+
this.mutationId = t.mutationId, R(this, G, t.mutationCache), R(this, ae, []), this.state = t.state || Pa(), this.setOptions(t.options), this.scheduleGc();
|
|
671
671
|
}
|
|
672
672
|
setOptions(t) {
|
|
673
673
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -844,7 +844,7 @@ var ae, G, Te, se, he, dn, Fl = (dn = class extends Sn {
|
|
|
844
844
|
});
|
|
845
845
|
});
|
|
846
846
|
}, dn);
|
|
847
|
-
function
|
|
847
|
+
function Pa() {
|
|
848
848
|
return {
|
|
849
849
|
context: void 0,
|
|
850
850
|
data: void 0,
|
|
@@ -857,7 +857,7 @@ function Na() {
|
|
|
857
857
|
submittedAt: 0
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt,
|
|
860
|
+
var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, er, tr, rr, nr, ar, sr, or, Cn, pn, La = (pn = class extends xr {
|
|
861
861
|
constructor(t, r) {
|
|
862
862
|
super();
|
|
863
863
|
P(this, D);
|
|
@@ -883,27 +883,27 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
883
883
|
this.refetch = this.refetch.bind(this);
|
|
884
884
|
}
|
|
885
885
|
onSubscribe() {
|
|
886
|
-
this.listeners.size === 1 && (m(this, N).addObserver(this), Br(m(this, N), this.options) ? I(this, D, rt).call(this) : this.updateResult(), I(this, D,
|
|
886
|
+
this.listeners.size === 1 && (m(this, N).addObserver(this), Br(m(this, N), this.options) ? I(this, D, rt).call(this) : this.updateResult(), I(this, D, nr).call(this));
|
|
887
887
|
}
|
|
888
888
|
onUnsubscribe() {
|
|
889
889
|
this.hasListeners() || this.destroy();
|
|
890
890
|
}
|
|
891
891
|
shouldFetchOnReconnect() {
|
|
892
|
-
return
|
|
892
|
+
return ir(
|
|
893
893
|
m(this, N),
|
|
894
894
|
this.options,
|
|
895
895
|
this.options.refetchOnReconnect
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
898
|
shouldFetchOnWindowFocus() {
|
|
899
|
-
return
|
|
899
|
+
return ir(
|
|
900
900
|
m(this, N),
|
|
901
901
|
this.options,
|
|
902
902
|
this.options.refetchOnWindowFocus
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
905
|
destroy() {
|
|
906
|
-
this.listeners = /* @__PURE__ */ new Set(), I(this, D,
|
|
906
|
+
this.listeners = /* @__PURE__ */ new Set(), I(this, D, ar).call(this), I(this, D, sr).call(this), m(this, N).removeObserver(this);
|
|
907
907
|
}
|
|
908
908
|
setOptions(t, r) {
|
|
909
909
|
const n = this.options, a = m(this, N);
|
|
@@ -911,7 +911,7 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
911
911
|
throw new Error(
|
|
912
912
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
913
913
|
);
|
|
914
|
-
I(this, D,
|
|
914
|
+
I(this, D, or).call(this), m(this, N).setOptions(this.options), n._defaulted && !Yt(this.options, n) && m(this, V).getQueryCache().notify({
|
|
915
915
|
type: "observerOptionsUpdated",
|
|
916
916
|
query: m(this, N),
|
|
917
917
|
observer: this
|
|
@@ -922,13 +922,13 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
922
922
|
a,
|
|
923
923
|
this.options,
|
|
924
924
|
n
|
|
925
|
-
) && I(this, D, rt).call(this), this.updateResult(r), s && (m(this, N) !== a || re(this.options.enabled, m(this, N)) !== re(n.enabled, m(this, N)) || gt(this.options.staleTime, m(this, N)) !== gt(n.staleTime, m(this, N))) && I(this, D,
|
|
926
|
-
const o = I(this, D,
|
|
927
|
-
s && (m(this, N) !== a || re(this.options.enabled, m(this, N)) !== re(n.enabled, m(this, N)) || o !== m(this, me)) && I(this, D,
|
|
925
|
+
) && I(this, D, rt).call(this), this.updateResult(r), s && (m(this, N) !== a || re(this.options.enabled, m(this, N)) !== re(n.enabled, m(this, N)) || gt(this.options.staleTime, m(this, N)) !== gt(n.staleTime, m(this, N))) && I(this, D, er).call(this);
|
|
926
|
+
const o = I(this, D, tr).call(this);
|
|
927
|
+
s && (m(this, N) !== a || re(this.options.enabled, m(this, N)) !== re(n.enabled, m(this, N)) || o !== m(this, me)) && I(this, D, rr).call(this, o);
|
|
928
928
|
}
|
|
929
929
|
getOptimisticResult(t) {
|
|
930
930
|
const r = m(this, V).getQueryCache().build(m(this, V), t), n = this.createResult(r, t);
|
|
931
|
-
return
|
|
931
|
+
return ja(this, n) && (R(this, q, n), R(this, ze, this.options), R(this, Re, m(this, N).state)), n;
|
|
932
932
|
}
|
|
933
933
|
getCurrentResult() {
|
|
934
934
|
return m(this, q);
|
|
@@ -981,7 +981,7 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
981
981
|
E = m(this, Ge);
|
|
982
982
|
else
|
|
983
983
|
try {
|
|
984
|
-
R(this, it, r.select), E = r.select(u.data), E =
|
|
984
|
+
R(this, it, r.select), E = r.select(u.data), E = Xt(s == null ? void 0 : s.data, E, r), R(this, Ge, E), R(this, oe, null);
|
|
985
985
|
} catch (S) {
|
|
986
986
|
R(this, oe, S);
|
|
987
987
|
}
|
|
@@ -1000,7 +1000,7 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
1000
1000
|
} catch (O) {
|
|
1001
1001
|
R(this, oe, O);
|
|
1002
1002
|
}
|
|
1003
|
-
S !== void 0 && (h = "success", E =
|
|
1003
|
+
S !== void 0 && (h = "success", E = Xt(
|
|
1004
1004
|
s == null ? void 0 : s.data,
|
|
1005
1005
|
S,
|
|
1006
1006
|
r
|
|
@@ -1031,13 +1031,13 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
1031
1031
|
isPaused: u.fetchStatus === "paused",
|
|
1032
1032
|
isPlaceholderData: y,
|
|
1033
1033
|
isRefetchError: x && T,
|
|
1034
|
-
isStale:
|
|
1034
|
+
isStale: kr(t, r),
|
|
1035
1035
|
refetch: this.refetch
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
updateResult(t) {
|
|
1039
1039
|
const r = m(this, q), n = this.createResult(m(this, N), this.options);
|
|
1040
|
-
if (R(this, Re, m(this, N).state), R(this, ze, this.options), m(this, Re).data !== void 0 && R(this, qe, m(this, N)),
|
|
1040
|
+
if (R(this, Re, m(this, N).state), R(this, ze, this.options), m(this, Re).data !== void 0 && R(this, qe, m(this, N)), Yt(n, r))
|
|
1041
1041
|
return;
|
|
1042
1042
|
R(this, q, n);
|
|
1043
1043
|
const a = {}, s = () => {
|
|
@@ -1057,40 +1057,40 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
1057
1057
|
(t == null ? void 0 : t.listeners) !== !1 && s() && (a.listeners = !0), I(this, D, Cn).call(this, { ...a, ...t });
|
|
1058
1058
|
}
|
|
1059
1059
|
onQueryUpdate() {
|
|
1060
|
-
this.updateResult(), this.hasListeners() && I(this, D,
|
|
1060
|
+
this.updateResult(), this.hasListeners() && I(this, D, nr).call(this);
|
|
1061
1061
|
}
|
|
1062
1062
|
}, V = new WeakMap(), N = new WeakMap(), ot = new WeakMap(), q = new WeakMap(), Re = new WeakMap(), ze = new WeakMap(), oe = new WeakMap(), it = new WeakMap(), Ge = new WeakMap(), qe = new WeakMap(), _e = new WeakMap(), Oe = new WeakMap(), me = new WeakMap(), Ve = new WeakMap(), D = new WeakSet(), rt = function(t) {
|
|
1063
|
-
I(this, D,
|
|
1063
|
+
I(this, D, or).call(this);
|
|
1064
1064
|
let r = m(this, N).fetch(
|
|
1065
1065
|
this.options,
|
|
1066
1066
|
t
|
|
1067
1067
|
);
|
|
1068
|
-
return t != null && t.throwOnError || (r = r.catch(
|
|
1069
|
-
},
|
|
1070
|
-
I(this, D,
|
|
1068
|
+
return t != null && t.throwOnError || (r = r.catch(Wt)), r;
|
|
1069
|
+
}, er = function() {
|
|
1070
|
+
I(this, D, ar).call(this);
|
|
1071
1071
|
const t = gt(
|
|
1072
1072
|
this.options.staleTime,
|
|
1073
1073
|
m(this, N)
|
|
1074
1074
|
);
|
|
1075
|
-
if (Ze || m(this, q).isStale || !
|
|
1075
|
+
if (Ze || m(this, q).isStale || !Kt(t))
|
|
1076
1076
|
return;
|
|
1077
1077
|
const n = mn(m(this, q).dataUpdatedAt, t) + 1;
|
|
1078
1078
|
R(this, _e, setTimeout(() => {
|
|
1079
1079
|
m(this, q).isStale || this.updateResult();
|
|
1080
1080
|
}, n));
|
|
1081
|
-
},
|
|
1081
|
+
}, tr = function() {
|
|
1082
1082
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(m(this, N)) : this.options.refetchInterval) ?? !1;
|
|
1083
|
-
},
|
|
1084
|
-
I(this, D,
|
|
1083
|
+
}, rr = function(t) {
|
|
1084
|
+
I(this, D, sr).call(this), R(this, me, t), !(Ze || re(this.options.enabled, m(this, N)) === !1 || !Kt(m(this, me)) || m(this, me) === 0) && R(this, Oe, setInterval(() => {
|
|
1085
1085
|
(this.options.refetchIntervalInBackground || vn.isFocused()) && I(this, D, rt).call(this);
|
|
1086
1086
|
}, m(this, me)));
|
|
1087
|
-
}, rr = function() {
|
|
1088
|
-
I(this, D, Jt).call(this), I(this, D, tr).call(this, I(this, D, er).call(this));
|
|
1089
1087
|
}, nr = function() {
|
|
1090
|
-
|
|
1088
|
+
I(this, D, er).call(this), I(this, D, rr).call(this, I(this, D, tr).call(this));
|
|
1091
1089
|
}, ar = function() {
|
|
1092
|
-
m(this,
|
|
1090
|
+
m(this, _e) && (clearTimeout(m(this, _e)), R(this, _e, void 0));
|
|
1093
1091
|
}, sr = function() {
|
|
1092
|
+
m(this, Oe) && (clearInterval(m(this, Oe)), R(this, Oe, void 0));
|
|
1093
|
+
}, or = function() {
|
|
1094
1094
|
const t = m(this, V).getQueryCache().build(m(this, V), this.options);
|
|
1095
1095
|
if (t === m(this, N))
|
|
1096
1096
|
return;
|
|
@@ -1106,43 +1106,43 @@ var V, N, ot, q, Re, ze, oe, it, Ge, qe, _e, Oe, me, Ve, D, rt, Jt, er, tr, rr,
|
|
|
1106
1106
|
});
|
|
1107
1107
|
});
|
|
1108
1108
|
}, pn);
|
|
1109
|
-
function
|
|
1109
|
+
function Da(e, t) {
|
|
1110
1110
|
return re(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1111
1111
|
}
|
|
1112
1112
|
function Br(e, t) {
|
|
1113
|
-
return
|
|
1113
|
+
return Da(e, t) || e.state.data !== void 0 && ir(e, t, t.refetchOnMount);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function ir(e, t, r) {
|
|
1116
1116
|
if (re(t.enabled, e) !== !1) {
|
|
1117
1117
|
const n = typeof r == "function" ? r(e) : r;
|
|
1118
|
-
return n === "always" || n !== !1 &&
|
|
1118
|
+
return n === "always" || n !== !1 && kr(e, t);
|
|
1119
1119
|
}
|
|
1120
1120
|
return !1;
|
|
1121
1121
|
}
|
|
1122
1122
|
function Ur(e, t, r, n) {
|
|
1123
|
-
return (e !== t || re(n.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
|
1123
|
+
return (e !== t || re(n.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && kr(e, r);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function kr(e, t) {
|
|
1126
1126
|
return re(t.enabled, e) !== !1 && e.isStaleByTime(gt(t.staleTime, e));
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return !
|
|
1128
|
+
function ja(e, t) {
|
|
1129
|
+
return !Yt(e.getCurrentResult(), t);
|
|
1130
1130
|
}
|
|
1131
1131
|
var Tn = w.createContext(
|
|
1132
1132
|
void 0
|
|
1133
|
-
),
|
|
1133
|
+
), Ma = (e) => {
|
|
1134
1134
|
const t = w.useContext(Tn);
|
|
1135
1135
|
if (!t)
|
|
1136
1136
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1137
1137
|
return t;
|
|
1138
|
-
},
|
|
1138
|
+
}, Nl = ({
|
|
1139
1139
|
client: e,
|
|
1140
1140
|
children: t
|
|
1141
1141
|
}) => (w.useEffect(() => (e.mount(), () => {
|
|
1142
1142
|
e.unmount();
|
|
1143
|
-
}), [e]), /* @__PURE__ */ C.jsx(Tn.Provider, { value: e, children: t })), Rn = w.createContext(!1),
|
|
1143
|
+
}), [e]), /* @__PURE__ */ C.jsx(Tn.Provider, { value: e, children: t })), Rn = w.createContext(!1), $a = () => w.useContext(Rn);
|
|
1144
1144
|
Rn.Provider;
|
|
1145
|
-
function
|
|
1145
|
+
function Ba() {
|
|
1146
1146
|
let e = !1;
|
|
1147
1147
|
return {
|
|
1148
1148
|
clearReset: () => {
|
|
@@ -1154,39 +1154,39 @@ function $a() {
|
|
|
1154
1154
|
isReset: () => e
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
-
var
|
|
1158
|
-
function
|
|
1157
|
+
var Ua = w.createContext(Ba()), za = () => w.useContext(Ua);
|
|
1158
|
+
function Ga(e, t) {
|
|
1159
1159
|
return typeof e == "function" ? e(...t) : !!e;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Pl() {
|
|
1162
1162
|
}
|
|
1163
|
-
var
|
|
1163
|
+
var qa = (e, t) => {
|
|
1164
1164
|
(e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
|
|
1165
|
-
},
|
|
1165
|
+
}, Va = (e) => {
|
|
1166
1166
|
w.useEffect(() => {
|
|
1167
1167
|
e.clearReset();
|
|
1168
1168
|
}, [e]);
|
|
1169
|
-
},
|
|
1169
|
+
}, Ha = ({
|
|
1170
1170
|
result: e,
|
|
1171
1171
|
errorResetBoundary: t,
|
|
1172
1172
|
throwOnError: r,
|
|
1173
1173
|
query: n
|
|
1174
|
-
}) => e.isError && !t.isReset() && !e.isFetching && n &&
|
|
1174
|
+
}) => e.isError && !t.isReset() && !e.isFetching && n && Ga(r, [e.error, n]), Wa = (e, t) => t.state.data === void 0, Ka = (e) => {
|
|
1175
1175
|
e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
|
|
1176
|
-
},
|
|
1176
|
+
}, Za = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Ya = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
1177
1177
|
r.clearReset();
|
|
1178
1178
|
});
|
|
1179
|
-
function
|
|
1179
|
+
function Qa(e, t, r) {
|
|
1180
1180
|
var l, d, u, y;
|
|
1181
1181
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1182
1182
|
throw new Error(
|
|
1183
1183
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
1184
1184
|
);
|
|
1185
|
-
const n =
|
|
1185
|
+
const n = Ma(), a = $a(), s = za(), o = n.defaultQueryOptions(e);
|
|
1186
1186
|
(d = (l = n.getDefaultOptions().queries) == null ? void 0 : l._experimental_beforeQuery) == null || d.call(
|
|
1187
1187
|
l,
|
|
1188
1188
|
o
|
|
1189
|
-
), o._optimisticResults = a ? "isRestoring" : "optimistic",
|
|
1189
|
+
), o._optimisticResults = a ? "isRestoring" : "optimistic", Ka(o), qa(o, s), Va(s);
|
|
1190
1190
|
const [i] = w.useState(
|
|
1191
1191
|
() => new t(
|
|
1192
1192
|
n,
|
|
@@ -1206,9 +1206,9 @@ function Ya(e, t, r) {
|
|
|
1206
1206
|
() => i.getCurrentResult()
|
|
1207
1207
|
), w.useEffect(() => {
|
|
1208
1208
|
i.setOptions(o, { listeners: !1 });
|
|
1209
|
-
}, [o, i]),
|
|
1210
|
-
throw
|
|
1211
|
-
if (
|
|
1209
|
+
}, [o, i]), Za(o, c))
|
|
1210
|
+
throw Ya(o, i, s);
|
|
1211
|
+
if (Ha({
|
|
1212
1212
|
result: c,
|
|
1213
1213
|
errorResetBoundary: s,
|
|
1214
1214
|
throwOnError: o.throwOnError,
|
|
@@ -1222,18 +1222,18 @@ function Ya(e, t, r) {
|
|
|
1222
1222
|
), o.notifyOnChangeProps ? c : i.trackResult(c);
|
|
1223
1223
|
}
|
|
1224
1224
|
function _n(e, t) {
|
|
1225
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
1225
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Jt && console.error("skipToken is not allowed for useSuspenseQuery"), Qa(
|
|
1226
1226
|
{
|
|
1227
1227
|
...e,
|
|
1228
1228
|
enabled: !0,
|
|
1229
1229
|
suspense: !0,
|
|
1230
|
-
throwOnError:
|
|
1230
|
+
throwOnError: Wa,
|
|
1231
1231
|
placeholderData: void 0
|
|
1232
1232
|
},
|
|
1233
|
-
|
|
1233
|
+
La
|
|
1234
1234
|
);
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var Xa = typeof Element < "u", Ja = typeof Map == "function", es = typeof Set == "function", ts = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
1237
1237
|
function yt(e, t) {
|
|
1238
1238
|
if (e === t) return !0;
|
|
1239
1239
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
@@ -1246,7 +1246,7 @@ function yt(e, t) {
|
|
|
1246
1246
|
return !0;
|
|
1247
1247
|
}
|
|
1248
1248
|
var s;
|
|
1249
|
-
if (
|
|
1249
|
+
if (Ja && e instanceof Map && t instanceof Map) {
|
|
1250
1250
|
if (e.size !== t.size) return !1;
|
|
1251
1251
|
for (s = e.entries(); !(n = s.next()).done; )
|
|
1252
1252
|
if (!t.has(n.value[0])) return !1;
|
|
@@ -1254,13 +1254,13 @@ function yt(e, t) {
|
|
|
1254
1254
|
if (!yt(n.value[1], t.get(n.value[0]))) return !1;
|
|
1255
1255
|
return !0;
|
|
1256
1256
|
}
|
|
1257
|
-
if (
|
|
1257
|
+
if (es && e instanceof Set && t instanceof Set) {
|
|
1258
1258
|
if (e.size !== t.size) return !1;
|
|
1259
1259
|
for (s = e.entries(); !(n = s.next()).done; )
|
|
1260
1260
|
if (!t.has(n.value[0])) return !1;
|
|
1261
1261
|
return !0;
|
|
1262
1262
|
}
|
|
1263
|
-
if (
|
|
1263
|
+
if (ts && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
1264
1264
|
if (r = e.length, r != t.length) return !1;
|
|
1265
1265
|
for (n = r; n-- !== 0; )
|
|
1266
1266
|
if (e[n] !== t[n]) return !1;
|
|
@@ -1272,7 +1272,7 @@ function yt(e, t) {
|
|
|
1272
1272
|
if (a = Object.keys(e), r = a.length, r !== Object.keys(t).length) return !1;
|
|
1273
1273
|
for (n = r; n-- !== 0; )
|
|
1274
1274
|
if (!Object.prototype.hasOwnProperty.call(t, a[n])) return !1;
|
|
1275
|
-
if (
|
|
1275
|
+
if (Xa && e instanceof Element) return !1;
|
|
1276
1276
|
for (n = r; n-- !== 0; )
|
|
1277
1277
|
if (!((a[n] === "_owner" || a[n] === "__v" || a[n] === "__o") && e.$$typeof) && !yt(e[a[n]], t[a[n]]))
|
|
1278
1278
|
return !1;
|
|
@@ -1280,7 +1280,7 @@ function yt(e, t) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return e !== e && t !== t;
|
|
1282
1282
|
}
|
|
1283
|
-
var
|
|
1283
|
+
var rs = function(t, r) {
|
|
1284
1284
|
try {
|
|
1285
1285
|
return yt(t, r);
|
|
1286
1286
|
} catch (n) {
|
|
@@ -1289,8 +1289,8 @@ var ts = function(t, r) {
|
|
|
1289
1289
|
throw n;
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
|
-
const
|
|
1293
|
-
var
|
|
1292
|
+
const ns = /* @__PURE__ */ br(rs);
|
|
1293
|
+
var as = function(e, t, r, n, a, s, o, i) {
|
|
1294
1294
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
1295
1295
|
throw new Error("invariant requires an error message argument");
|
|
1296
1296
|
if (!e) {
|
|
@@ -1309,9 +1309,9 @@ var ns = function(e, t, r, n, a, s, o, i) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
throw c.framesToPop = 1, c;
|
|
1311
1311
|
}
|
|
1312
|
-
},
|
|
1313
|
-
const zr = /* @__PURE__ */
|
|
1314
|
-
var
|
|
1312
|
+
}, ss = as;
|
|
1313
|
+
const zr = /* @__PURE__ */ br(ss);
|
|
1314
|
+
var os = function(t, r, n, a) {
|
|
1315
1315
|
var s = n ? n.call(a, t, r) : void 0;
|
|
1316
1316
|
if (s !== void 0)
|
|
1317
1317
|
return !!s;
|
|
@@ -1332,8 +1332,8 @@ var ss = function(t, r, n, a) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return !0;
|
|
1334
1334
|
};
|
|
1335
|
-
const
|
|
1336
|
-
var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(On || {}),
|
|
1335
|
+
const is = /* @__PURE__ */ br(os);
|
|
1336
|
+
var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(On || {}), $t = {
|
|
1337
1337
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
1338
1338
|
script: { type: ["application/ld+json"] },
|
|
1339
1339
|
meta: {
|
|
@@ -1355,7 +1355,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1355
1355
|
"twitter:site"
|
|
1356
1356
|
]
|
|
1357
1357
|
}
|
|
1358
|
-
}, Gr = Object.values(On),
|
|
1358
|
+
}, Gr = Object.values(On), Sr = {
|
|
1359
1359
|
accesskey: "accessKey",
|
|
1360
1360
|
charset: "charSet",
|
|
1361
1361
|
class: "className",
|
|
@@ -1364,7 +1364,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1364
1364
|
"http-equiv": "httpEquiv",
|
|
1365
1365
|
itemprop: "itemProp",
|
|
1366
1366
|
tabindex: "tabIndex"
|
|
1367
|
-
},
|
|
1367
|
+
}, ls = Object.entries(Sr).reduce(
|
|
1368
1368
|
(e, [t, r]) => (e[r] = t, e),
|
|
1369
1369
|
{}
|
|
1370
1370
|
), ne = "data-rh", Le = {
|
|
@@ -1381,7 +1381,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1381
1381
|
return n[t];
|
|
1382
1382
|
}
|
|
1383
1383
|
return null;
|
|
1384
|
-
},
|
|
1384
|
+
}, cs = (e) => {
|
|
1385
1385
|
let t = De(
|
|
1386
1386
|
e,
|
|
1387
1387
|
"title"
|
|
@@ -1392,8 +1392,8 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1392
1392
|
return r.replace(/%s/g, () => t);
|
|
1393
1393
|
const n = De(e, Le.DEFAULT_TITLE);
|
|
1394
1394
|
return t || n || void 0;
|
|
1395
|
-
},
|
|
1396
|
-
}),
|
|
1395
|
+
}, us = (e) => De(e, Le.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
1396
|
+
}), Bt = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ds = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
1397
1397
|
if (!r.length) {
|
|
1398
1398
|
const a = Object.keys(n);
|
|
1399
1399
|
for (let s = 0; s < a.length; s += 1) {
|
|
@@ -1403,9 +1403,9 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
1405
|
return r;
|
|
1406
|
-
}, []),
|
|
1406
|
+
}, []), ps = (e) => console && typeof console.warn == "function" && console.warn(e), Qe = (e, t, r) => {
|
|
1407
1407
|
const n = {};
|
|
1408
|
-
return r.filter((a) => Array.isArray(a[e]) ? !0 : (typeof a[e] < "u" &&
|
|
1408
|
+
return r.filter((a) => Array.isArray(a[e]) ? !0 : (typeof a[e] < "u" && ps(
|
|
1409
1409
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`
|
|
1410
1410
|
), !1)).map((a) => a[e]).reverse().reduce((a, s) => {
|
|
1411
1411
|
const o = {};
|
|
@@ -1431,22 +1431,22 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1431
1431
|
}
|
|
1432
1432
|
return a;
|
|
1433
1433
|
}, []).reverse();
|
|
1434
|
-
},
|
|
1434
|
+
}, fs = (e, t) => {
|
|
1435
1435
|
if (Array.isArray(e) && e.length) {
|
|
1436
1436
|
for (let r = 0; r < e.length; r += 1)
|
|
1437
1437
|
if (e[r][t])
|
|
1438
1438
|
return !0;
|
|
1439
1439
|
}
|
|
1440
1440
|
return !1;
|
|
1441
|
-
},
|
|
1442
|
-
baseTag:
|
|
1441
|
+
}, hs = (e) => ({
|
|
1442
|
+
baseTag: ds([
|
|
1443
1443
|
"href"
|
|
1444
1444
|
/* HREF */
|
|
1445
1445
|
], e),
|
|
1446
|
-
bodyAttributes:
|
|
1446
|
+
bodyAttributes: Bt("bodyAttributes", e),
|
|
1447
1447
|
defer: De(e, Le.DEFER),
|
|
1448
1448
|
encode: De(e, Le.ENCODE_SPECIAL_CHARACTERS),
|
|
1449
|
-
htmlAttributes:
|
|
1449
|
+
htmlAttributes: Bt("htmlAttributes", e),
|
|
1450
1450
|
linkTags: Qe(
|
|
1451
1451
|
"link",
|
|
1452
1452
|
[
|
|
@@ -1472,7 +1472,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1472
1472
|
"innerHTML"
|
|
1473
1473
|
/* INNER_HTML */
|
|
1474
1474
|
], e),
|
|
1475
|
-
onChangeClientState:
|
|
1475
|
+
onChangeClientState: us(e),
|
|
1476
1476
|
scriptTags: Qe(
|
|
1477
1477
|
"script",
|
|
1478
1478
|
[
|
|
@@ -1486,50 +1486,50 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1486
1486
|
"cssText"
|
|
1487
1487
|
/* CSS_TEXT */
|
|
1488
1488
|
], e),
|
|
1489
|
-
title:
|
|
1490
|
-
titleAttributes:
|
|
1491
|
-
prioritizeSeoTags:
|
|
1492
|
-
}), Fn = (e) => Array.isArray(e) ? e.join("") : e,
|
|
1489
|
+
title: cs(e),
|
|
1490
|
+
titleAttributes: Bt("titleAttributes", e),
|
|
1491
|
+
prioritizeSeoTags: fs(e, Le.PRIORITIZE_SEO_TAGS)
|
|
1492
|
+
}), Fn = (e) => Array.isArray(e) ? e.join("") : e, gs = (e, t) => {
|
|
1493
1493
|
const r = Object.keys(e);
|
|
1494
1494
|
for (let n = 0; n < r.length; n += 1)
|
|
1495
1495
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
1496
1496
|
return !0;
|
|
1497
1497
|
return !1;
|
|
1498
|
-
},
|
|
1499
|
-
(r, n) => (
|
|
1498
|
+
}, Ut = (e, t) => Array.isArray(e) ? e.reduce(
|
|
1499
|
+
(r, n) => (gs(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
1500
1500
|
{ priority: [], default: [] }
|
|
1501
1501
|
) : { default: e, priority: [] }, qr = (e, t) => ({
|
|
1502
1502
|
...e,
|
|
1503
1503
|
[t]: void 0
|
|
1504
|
-
}),
|
|
1504
|
+
}), ys = [
|
|
1505
1505
|
"noscript",
|
|
1506
1506
|
"script",
|
|
1507
1507
|
"style"
|
|
1508
1508
|
/* STYLE */
|
|
1509
|
-
],
|
|
1509
|
+
], lr = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), In = (e) => Object.keys(e).reduce((t, r) => {
|
|
1510
1510
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
1511
1511
|
return t ? `${t} ${n}` : n;
|
|
1512
|
-
}, ""),
|
|
1512
|
+
}, ""), ms = (e, t, r, n) => {
|
|
1513
1513
|
const a = In(r), s = Fn(t);
|
|
1514
|
-
return a ? `<${e} ${ne}="true" ${a}>${
|
|
1514
|
+
return a ? `<${e} ${ne}="true" ${a}>${lr(
|
|
1515
1515
|
s,
|
|
1516
1516
|
n
|
|
1517
|
-
)}</${e}>` : `<${e} ${ne}="true">${
|
|
1517
|
+
)}</${e}>` : `<${e} ${ne}="true">${lr(
|
|
1518
1518
|
s,
|
|
1519
1519
|
n
|
|
1520
1520
|
)}</${e}>`;
|
|
1521
|
-
},
|
|
1521
|
+
}, bs = (e, t, r = !0) => t.reduce((n, a) => {
|
|
1522
1522
|
const s = a, o = Object.keys(s).filter(
|
|
1523
1523
|
(l) => !(l === "innerHTML" || l === "cssText")
|
|
1524
1524
|
).reduce((l, d) => {
|
|
1525
|
-
const u = typeof s[d] > "u" ? d : `${d}="${
|
|
1525
|
+
const u = typeof s[d] > "u" ? d : `${d}="${lr(s[d], r)}"`;
|
|
1526
1526
|
return l ? `${l} ${u}` : u;
|
|
1527
|
-
}, ""), i = s.innerHTML || s.cssText || "", c =
|
|
1527
|
+
}, ""), i = s.innerHTML || s.cssText || "", c = ys.indexOf(e) === -1;
|
|
1528
1528
|
return `${n}<${e} ${ne}="true" ${o}${c ? "/>" : `>${i}</${e}>`}`;
|
|
1529
1529
|
}, ""), Nn = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
1530
|
-
const a =
|
|
1530
|
+
const a = Sr[n];
|
|
1531
1531
|
return r[a || n] = e[n], r;
|
|
1532
|
-
}, t),
|
|
1532
|
+
}, t), vs = (e, t, r) => {
|
|
1533
1533
|
const n = {
|
|
1534
1534
|
key: t,
|
|
1535
1535
|
[ne]: !0
|
|
@@ -1541,7 +1541,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1541
1541
|
[ne]: !0
|
|
1542
1542
|
};
|
|
1543
1543
|
return Object.keys(r).forEach((s) => {
|
|
1544
|
-
const i =
|
|
1544
|
+
const i = Sr[s] || s;
|
|
1545
1545
|
if (i === "innerHTML" || i === "cssText") {
|
|
1546
1546
|
const c = r.innerHTML || r.cssText;
|
|
1547
1547
|
a.dangerouslySetInnerHTML = { __html: c };
|
|
@@ -1552,8 +1552,8 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1552
1552
|
switch (e) {
|
|
1553
1553
|
case "title":
|
|
1554
1554
|
return {
|
|
1555
|
-
toComponent: () =>
|
|
1556
|
-
toString: () =>
|
|
1555
|
+
toComponent: () => vs(e, t.title, t.titleAttributes),
|
|
1556
|
+
toString: () => ms(e, t.title, t.titleAttributes, r)
|
|
1557
1557
|
};
|
|
1558
1558
|
case "bodyAttributes":
|
|
1559
1559
|
case "htmlAttributes":
|
|
@@ -1564,11 +1564,11 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1564
1564
|
default:
|
|
1565
1565
|
return {
|
|
1566
1566
|
toComponent: () => mt(e, t),
|
|
1567
|
-
toString: () =>
|
|
1567
|
+
toString: () => bs(e, t, r)
|
|
1568
1568
|
};
|
|
1569
1569
|
}
|
|
1570
|
-
},
|
|
1571
|
-
const a =
|
|
1570
|
+
}, ws = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
1571
|
+
const a = Ut(e, $t.meta), s = Ut(t, $t.link), o = Ut(r, $t.script);
|
|
1572
1572
|
return {
|
|
1573
1573
|
priorityMethods: {
|
|
1574
1574
|
toComponent: () => [
|
|
@@ -1589,7 +1589,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1589
1589
|
linkTags: s.default,
|
|
1590
1590
|
scriptTags: o.default
|
|
1591
1591
|
};
|
|
1592
|
-
},
|
|
1592
|
+
}, xs = (e) => {
|
|
1593
1593
|
const {
|
|
1594
1594
|
baseTag: t,
|
|
1595
1595
|
bodyAttributes: r,
|
|
@@ -1606,7 +1606,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1606
1606
|
},
|
|
1607
1607
|
toString: () => ""
|
|
1608
1608
|
};
|
|
1609
|
-
return l && ({ priorityMethods: E, linkTags: d, metaTags: u, scriptTags: y } =
|
|
1609
|
+
return l && ({ priorityMethods: E, linkTags: d, metaTags: u, scriptTags: y } = ws(e)), {
|
|
1610
1610
|
priority: E,
|
|
1611
1611
|
base: Z("base", t, n),
|
|
1612
1612
|
bodyAttributes: Z("bodyAttributes", r, n),
|
|
@@ -1618,7 +1618,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1618
1618
|
style: Z("style", o, n),
|
|
1619
1619
|
title: Z("title", { title: i, titleAttributes: c }, n)
|
|
1620
1620
|
};
|
|
1621
|
-
},
|
|
1621
|
+
}, cr = xs, dt = [], Pn = !!(typeof window < "u" && window.document && window.document.createElement), ur = class {
|
|
1622
1622
|
constructor(e, t) {
|
|
1623
1623
|
ce(this, "instances", []);
|
|
1624
1624
|
ce(this, "canUseDOM", Pn);
|
|
@@ -1638,7 +1638,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
});
|
|
1641
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
1641
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = cr({
|
|
1642
1642
|
baseTag: [],
|
|
1643
1643
|
bodyAttributes: {},
|
|
1644
1644
|
encodeSpecialCharacters: !0,
|
|
@@ -1652,11 +1652,11 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1652
1652
|
titleAttributes: {}
|
|
1653
1653
|
}));
|
|
1654
1654
|
}
|
|
1655
|
-
},
|
|
1655
|
+
}, Es = {}, Ln = Q.createContext(Es), Fe, Dn = (Fe = class extends gr {
|
|
1656
1656
|
constructor(r) {
|
|
1657
1657
|
super(r);
|
|
1658
1658
|
ce(this, "helmetData");
|
|
1659
|
-
this.helmetData = new
|
|
1659
|
+
this.helmetData = new ur(this.props.context || {}, Fe.canUseDOM);
|
|
1660
1660
|
}
|
|
1661
1661
|
render() {
|
|
1662
1662
|
return /* @__PURE__ */ Q.createElement(Ln.Provider, { value: this.helmetData.value }, this.props.children);
|
|
@@ -1687,7 +1687,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1687
1687
|
oldTags: a,
|
|
1688
1688
|
newTags: s
|
|
1689
1689
|
};
|
|
1690
|
-
},
|
|
1690
|
+
}, dr = (e, t) => {
|
|
1691
1691
|
const r = document.getElementsByTagName(e)[0];
|
|
1692
1692
|
if (!r)
|
|
1693
1693
|
return;
|
|
@@ -1701,8 +1701,8 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1701
1701
|
for (let i = s.length - 1; i >= 0; i -= 1)
|
|
1702
1702
|
r.removeAttribute(s[i]);
|
|
1703
1703
|
a.length === s.length ? r.removeAttribute(ne) : r.getAttribute(ne) !== o.join(",") && r.setAttribute(ne, o.join(","));
|
|
1704
|
-
},
|
|
1705
|
-
typeof e < "u" && document.title !== e && (document.title = Fn(e)),
|
|
1704
|
+
}, ks = (e, t) => {
|
|
1705
|
+
typeof e < "u" && document.title !== e && (document.title = Fn(e)), dr("title", t);
|
|
1706
1706
|
}, Vr = (e, t) => {
|
|
1707
1707
|
const {
|
|
1708
1708
|
baseTag: r,
|
|
@@ -1717,7 +1717,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1717
1717
|
title: u,
|
|
1718
1718
|
titleAttributes: y
|
|
1719
1719
|
} = e;
|
|
1720
|
-
|
|
1720
|
+
dr("body", n), dr("html", a), ks(u, y);
|
|
1721
1721
|
const E = {
|
|
1722
1722
|
baseTag: Ne("base", r),
|
|
1723
1723
|
linkTags: Ne("link", s),
|
|
@@ -1730,19 +1730,19 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1730
1730
|
const { newTags: b, oldTags: g } = E[h];
|
|
1731
1731
|
b.length && (p[h] = b), g.length && (f[h] = E[h].oldTags);
|
|
1732
1732
|
}), t && t(), c(e, p, f);
|
|
1733
|
-
}, Xe = null,
|
|
1733
|
+
}, Xe = null, Ss = (e) => {
|
|
1734
1734
|
Xe && cancelAnimationFrame(Xe), e.defer ? Xe = requestAnimationFrame(() => {
|
|
1735
1735
|
Vr(e, () => {
|
|
1736
1736
|
Xe = null;
|
|
1737
1737
|
});
|
|
1738
1738
|
}) : (Vr(e), Xe = null);
|
|
1739
|
-
},
|
|
1739
|
+
}, As = Ss, Hr = class extends gr {
|
|
1740
1740
|
constructor() {
|
|
1741
1741
|
super(...arguments);
|
|
1742
1742
|
ce(this, "rendered", !1);
|
|
1743
1743
|
}
|
|
1744
1744
|
shouldComponentUpdate(t) {
|
|
1745
|
-
return !
|
|
1745
|
+
return !is(t, this.props);
|
|
1746
1746
|
}
|
|
1747
1747
|
componentDidUpdate() {
|
|
1748
1748
|
this.emitChange();
|
|
@@ -1754,13 +1754,13 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1754
1754
|
emitChange() {
|
|
1755
1755
|
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
1756
1756
|
let n = null;
|
|
1757
|
-
const a =
|
|
1757
|
+
const a = hs(
|
|
1758
1758
|
t.get().map((s) => {
|
|
1759
1759
|
const o = { ...s.props };
|
|
1760
1760
|
return delete o.context, o;
|
|
1761
1761
|
})
|
|
1762
1762
|
);
|
|
1763
|
-
Dn.canUseDOM ?
|
|
1763
|
+
Dn.canUseDOM ? As(a) : cr && (n = cr(a)), r(n);
|
|
1764
1764
|
}
|
|
1765
1765
|
// componentWillMount will be deprecated
|
|
1766
1766
|
// for SSR, initialize on first render
|
|
@@ -1775,9 +1775,9 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1775
1775
|
render() {
|
|
1776
1776
|
return this.init(), null;
|
|
1777
1777
|
}
|
|
1778
|
-
},
|
|
1778
|
+
}, Gt, Cs = (Gt = class extends gr {
|
|
1779
1779
|
shouldComponentUpdate(t) {
|
|
1780
|
-
return !
|
|
1780
|
+
return !ns(qr(this.props, "helmetData"), qr(t, "helmetData"));
|
|
1781
1781
|
}
|
|
1782
1782
|
mapNestedChildrenToProps(t, r) {
|
|
1783
1783
|
if (!r)
|
|
@@ -1860,7 +1860,7 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1860
1860
|
return Q.Children.forEach(t, (a) => {
|
|
1861
1861
|
if (!a || !a.props)
|
|
1862
1862
|
return;
|
|
1863
|
-
const { children: s, ...o } = a.props, i = Object.keys(o).reduce((l, d) => (l[
|
|
1863
|
+
const { children: s, ...o } = a.props, i = Object.keys(o).reduce((l, d) => (l[ls[d] || d] = o[d], l), {});
|
|
1864
1864
|
let { type: c } = a;
|
|
1865
1865
|
switch (typeof c == "symbol" ? c = c.toString() : this.warnOnInvalidChildren(a, s), c) {
|
|
1866
1866
|
case "Symbol(react.fragment)":
|
|
@@ -1887,18 +1887,18 @@ var On = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1887
1887
|
render() {
|
|
1888
1888
|
const { children: t, ...r } = this.props;
|
|
1889
1889
|
let n = { ...r }, { helmetData: a } = r;
|
|
1890
|
-
if (t && (n = this.mapChildrenToProps(t, n)), a && !(a instanceof
|
|
1890
|
+
if (t && (n = this.mapChildrenToProps(t, n)), a && !(a instanceof ur)) {
|
|
1891
1891
|
const s = a;
|
|
1892
|
-
a = new
|
|
1892
|
+
a = new ur(s.context, !0), delete n.helmetData;
|
|
1893
1893
|
}
|
|
1894
1894
|
return a ? /* @__PURE__ */ Q.createElement(Hr, { ...n, context: a.value }) : /* @__PURE__ */ Q.createElement(Ln.Consumer, null, (s) => /* @__PURE__ */ Q.createElement(Hr, { ...n, context: s }));
|
|
1895
1895
|
}
|
|
1896
|
-
}, ce(
|
|
1896
|
+
}, ce(Gt, "defaultProps", {
|
|
1897
1897
|
defer: !0,
|
|
1898
1898
|
encodeSpecialCharacters: !0,
|
|
1899
1899
|
prioritizeSeoTags: !1
|
|
1900
|
-
}),
|
|
1901
|
-
const
|
|
1900
|
+
}), Gt);
|
|
1901
|
+
const Dl = Cs, jl = Dn;
|
|
1902
1902
|
/**
|
|
1903
1903
|
* React Router DOM v6.24.1
|
|
1904
1904
|
*
|
|
@@ -1919,7 +1919,7 @@ function be() {
|
|
|
1919
1919
|
return e;
|
|
1920
1920
|
}, be.apply(this, arguments);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Ar(e, t) {
|
|
1923
1923
|
if (e == null) return {};
|
|
1924
1924
|
var r = {}, n = Object.keys(e), a, s;
|
|
1925
1925
|
for (s = 0; s < n.length; s++)
|
|
@@ -1930,25 +1930,25 @@ const bt = "get", vt = "application/x-www-form-urlencoded";
|
|
|
1930
1930
|
function _t(e) {
|
|
1931
1931
|
return e != null && typeof e.tagName == "string";
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1933
|
+
function Ts(e) {
|
|
1934
1934
|
return _t(e) && e.tagName.toLowerCase() === "button";
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function Rs(e) {
|
|
1937
1937
|
return _t(e) && e.tagName.toLowerCase() === "form";
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function _s(e) {
|
|
1940
1940
|
return _t(e) && e.tagName.toLowerCase() === "input";
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Os(e) {
|
|
1943
1943
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Fs(e, t) {
|
|
1946
1946
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1947
1947
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1948
|
-
!
|
|
1948
|
+
!Os(e);
|
|
1949
1949
|
}
|
|
1950
1950
|
let pt = null;
|
|
1951
|
-
function
|
|
1951
|
+
function Is() {
|
|
1952
1952
|
if (pt === null)
|
|
1953
1953
|
try {
|
|
1954
1954
|
new FormData(
|
|
@@ -1961,21 +1961,21 @@ function Fs() {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return pt;
|
|
1963
1963
|
}
|
|
1964
|
-
const
|
|
1965
|
-
function
|
|
1966
|
-
return e != null && !
|
|
1964
|
+
const Ns = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
1965
|
+
function zt(e) {
|
|
1966
|
+
return e != null && !Ns.has(e) ? (process.env.NODE_ENV !== "production" && vr(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + vt + '"')), null) : e;
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function Ps(e, t) {
|
|
1969
1969
|
let r, n, a, s, o;
|
|
1970
|
-
if (
|
|
1970
|
+
if (Rs(e)) {
|
|
1971
1971
|
let i = e.getAttribute("action");
|
|
1972
|
-
n = i ? We(i, t) : null, r = e.getAttribute("method") || bt, a =
|
|
1973
|
-
} else if (
|
|
1972
|
+
n = i ? We(i, t) : null, r = e.getAttribute("method") || bt, a = zt(e.getAttribute("enctype")) || vt, s = new FormData(e);
|
|
1973
|
+
} else if (Ts(e) || _s(e) && (e.type === "submit" || e.type === "image")) {
|
|
1974
1974
|
let i = e.form;
|
|
1975
1975
|
if (i == null)
|
|
1976
1976
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
1977
1977
|
let c = e.getAttribute("formaction") || i.getAttribute("action");
|
|
1978
|
-
if (n = c ? We(c, t) : null, r = e.getAttribute("formmethod") || i.getAttribute("method") || bt, a =
|
|
1978
|
+
if (n = c ? We(c, t) : null, r = e.getAttribute("formmethod") || i.getAttribute("method") || bt, a = zt(e.getAttribute("formenctype")) || zt(i.getAttribute("enctype")) || vt, s = new FormData(i, e), !Is()) {
|
|
1979
1979
|
let {
|
|
1980
1980
|
name: l,
|
|
1981
1981
|
type: d,
|
|
@@ -1999,41 +1999,41 @@ function Ns(e, t) {
|
|
|
1999
1999
|
body: o
|
|
2000
2000
|
};
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2002
|
+
const Ls = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Ds = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], js = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Ms = "6";
|
|
2003
2003
|
try {
|
|
2004
|
-
window.__reactRouterVersion =
|
|
2004
|
+
window.__reactRouterVersion = Ms;
|
|
2005
2005
|
} catch {
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2008
|
-
return
|
|
2007
|
+
function Ml(e, t) {
|
|
2008
|
+
return va({
|
|
2009
2009
|
basename: void 0,
|
|
2010
2010
|
future: be({}, void 0, {
|
|
2011
2011
|
v7_prependBasename: !0
|
|
2012
2012
|
}),
|
|
2013
|
-
history:
|
|
2013
|
+
history: wa({
|
|
2014
2014
|
window: void 0
|
|
2015
2015
|
}),
|
|
2016
|
-
hydrationData:
|
|
2016
|
+
hydrationData: $s(),
|
|
2017
2017
|
routes: e,
|
|
2018
|
-
mapRouteProperties:
|
|
2018
|
+
mapRouteProperties: xa,
|
|
2019
2019
|
unstable_dataStrategy: void 0,
|
|
2020
2020
|
unstable_patchRoutesOnMiss: void 0,
|
|
2021
2021
|
window: void 0
|
|
2022
2022
|
}).initialize();
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function $s() {
|
|
2025
2025
|
var e;
|
|
2026
2026
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
2027
2027
|
return t && t.errors && (t = be({}, t, {
|
|
2028
|
-
errors:
|
|
2028
|
+
errors: Bs(t.errors)
|
|
2029
2029
|
})), t;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function Bs(e) {
|
|
2032
2032
|
if (!e) return null;
|
|
2033
2033
|
let t = Object.entries(e), r = {};
|
|
2034
2034
|
for (let [n, a] of t)
|
|
2035
2035
|
if (a && a.__type === "RouteErrorResponse")
|
|
2036
|
-
r[n] = new
|
|
2036
|
+
r[n] = new Ea(a.status, a.statusText, a.data, a.internal === !0);
|
|
2037
2037
|
else if (a && a.__type === "Error") {
|
|
2038
2038
|
if (a.__subType) {
|
|
2039
2039
|
let s = window[a.__subType];
|
|
@@ -2052,20 +2052,20 @@ function $s(e) {
|
|
|
2052
2052
|
r[n] = a;
|
|
2053
2053
|
return r;
|
|
2054
2054
|
}
|
|
2055
|
-
const
|
|
2055
|
+
const Cr = /* @__PURE__ */ w.createContext({
|
|
2056
2056
|
isTransitioning: !1
|
|
2057
2057
|
});
|
|
2058
|
-
process.env.NODE_ENV !== "production" && (
|
|
2058
|
+
process.env.NODE_ENV !== "production" && (Cr.displayName = "ViewTransition");
|
|
2059
2059
|
const jn = /* @__PURE__ */ w.createContext(/* @__PURE__ */ new Map());
|
|
2060
2060
|
process.env.NODE_ENV !== "production" && (jn.displayName = "Fetchers");
|
|
2061
|
-
const
|
|
2062
|
-
function
|
|
2061
|
+
const Us = "startTransition", Wr = w[Us], zs = "flushSync", Kr = wr[zs];
|
|
2062
|
+
function Gs(e) {
|
|
2063
2063
|
Wr ? Wr(e) : e();
|
|
2064
2064
|
}
|
|
2065
2065
|
function Je(e) {
|
|
2066
2066
|
Kr ? Kr(e) : e();
|
|
2067
2067
|
}
|
|
2068
|
-
class
|
|
2068
|
+
class qs {
|
|
2069
2069
|
constructor() {
|
|
2070
2070
|
this.status = "pending", this.promise = new Promise((t, r) => {
|
|
2071
2071
|
this.resolve = (n) => {
|
|
@@ -2076,7 +2076,7 @@ class Gs {
|
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function $l(e) {
|
|
2080
2080
|
let {
|
|
2081
2081
|
fallbackElement: t,
|
|
2082
2082
|
router: r,
|
|
@@ -2086,7 +2086,7 @@ function Ml(e) {
|
|
|
2086
2086
|
}), [d, u] = w.useState(), [y, E] = w.useState(), [p, f] = w.useState(), h = w.useRef(/* @__PURE__ */ new Map()), {
|
|
2087
2087
|
v7_startTransition: b
|
|
2088
2088
|
} = n || {}, g = w.useCallback((A) => {
|
|
2089
|
-
b ?
|
|
2089
|
+
b ? Gs(A) : A();
|
|
2090
2090
|
}, [b]), x = w.useCallback((A, S) => {
|
|
2091
2091
|
let {
|
|
2092
2092
|
deletedFetchers: O,
|
|
@@ -2134,7 +2134,7 @@ function Ml(e) {
|
|
|
2134
2134
|
}));
|
|
2135
2135
|
}, [r.window, y, d, h, g]);
|
|
2136
2136
|
w.useLayoutEffect(() => r.subscribe(x), [r, x]), w.useEffect(() => {
|
|
2137
|
-
c.isTransitioning && !c.flushSync && u(new
|
|
2137
|
+
c.isTransitioning && !c.flushSync && u(new qs());
|
|
2138
2138
|
}, [c]), w.useEffect(() => {
|
|
2139
2139
|
if (d && o && r.window) {
|
|
2140
2140
|
let A = o, S = d.promise, O = r.window.document.startViewTransition(async () => {
|
|
@@ -2156,7 +2156,7 @@ function Ml(e) {
|
|
|
2156
2156
|
nextLocation: p.nextLocation
|
|
2157
2157
|
}), f(void 0));
|
|
2158
2158
|
}, [c.isTransitioning, p]), w.useEffect(() => {
|
|
2159
|
-
process.env.NODE_ENV !== "production" &&
|
|
2159
|
+
process.env.NODE_ENV !== "production" && vr(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
2160
2160
|
}, []);
|
|
2161
2161
|
let k = w.useMemo(() => ({
|
|
2162
2162
|
createHref: r.createHref,
|
|
@@ -2183,9 +2183,9 @@ function Ml(e) {
|
|
|
2183
2183
|
value: a
|
|
2184
2184
|
}, /* @__PURE__ */ w.createElement(jn.Provider, {
|
|
2185
2185
|
value: h.current
|
|
2186
|
-
}, /* @__PURE__ */ w.createElement(
|
|
2186
|
+
}, /* @__PURE__ */ w.createElement(Cr.Provider, {
|
|
2187
2187
|
value: c
|
|
2188
|
-
}, /* @__PURE__ */ w.createElement(
|
|
2188
|
+
}, /* @__PURE__ */ w.createElement(ka, {
|
|
2189
2189
|
basename: T,
|
|
2190
2190
|
location: a.location,
|
|
2191
2191
|
navigationType: a.historyAction,
|
|
@@ -2193,22 +2193,22 @@ function Ml(e) {
|
|
|
2193
2193
|
future: {
|
|
2194
2194
|
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
2195
2195
|
}
|
|
2196
|
-
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ w.createElement(
|
|
2196
|
+
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ w.createElement(Vs, {
|
|
2197
2197
|
routes: r.routes,
|
|
2198
2198
|
future: r.future,
|
|
2199
2199
|
state: a
|
|
2200
2200
|
}) : t))))), null);
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function Vs(e) {
|
|
2203
2203
|
let {
|
|
2204
2204
|
routes: t,
|
|
2205
2205
|
future: r,
|
|
2206
2206
|
state: n
|
|
2207
2207
|
} = e;
|
|
2208
|
-
return
|
|
2208
|
+
return Sa(t, void 0, n, r);
|
|
2209
2209
|
}
|
|
2210
2210
|
process.env.NODE_ENV;
|
|
2211
|
-
const
|
|
2211
|
+
const Hs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ws = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ot = /* @__PURE__ */ w.forwardRef(function(t, r) {
|
|
2212
2212
|
let {
|
|
2213
2213
|
onClick: n,
|
|
2214
2214
|
relative: a,
|
|
@@ -2219,19 +2219,19 @@ const Vs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
2219
2219
|
to: l,
|
|
2220
2220
|
preventScrollReset: d,
|
|
2221
2221
|
unstable_viewTransition: u
|
|
2222
|
-
} = t, y =
|
|
2222
|
+
} = t, y = Ar(t, Ls), {
|
|
2223
2223
|
basename: E
|
|
2224
2224
|
} = w.useContext(Ct), p, f = !1;
|
|
2225
|
-
if (typeof l == "string" &&
|
|
2225
|
+
if (typeof l == "string" && Ws.test(l) && (p = l, Hs))
|
|
2226
2226
|
try {
|
|
2227
2227
|
let x = new URL(window.location.href), k = l.startsWith("//") ? new URL(x.protocol + l) : new URL(l), T = We(k.pathname, E);
|
|
2228
2228
|
k.origin === x.origin && T != null ? l = T + k.search + k.hash : f = !0;
|
|
2229
2229
|
} catch {
|
|
2230
|
-
process.env.NODE_ENV !== "production" &&
|
|
2230
|
+
process.env.NODE_ENV !== "production" && vr(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
2231
2231
|
}
|
|
2232
|
-
let h =
|
|
2232
|
+
let h = ha(l, {
|
|
2233
2233
|
relative: a
|
|
2234
|
-
}), b =
|
|
2234
|
+
}), b = Qs(l, {
|
|
2235
2235
|
replace: o,
|
|
2236
2236
|
state: i,
|
|
2237
2237
|
target: c,
|
|
@@ -2253,7 +2253,7 @@ const Vs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
2253
2253
|
);
|
|
2254
2254
|
});
|
|
2255
2255
|
process.env.NODE_ENV !== "production" && (Ot.displayName = "Link");
|
|
2256
|
-
const
|
|
2256
|
+
const Ks = /* @__PURE__ */ w.forwardRef(function(t, r) {
|
|
2257
2257
|
let {
|
|
2258
2258
|
"aria-current": n = "page",
|
|
2259
2259
|
caseSensitive: a = !1,
|
|
@@ -2263,14 +2263,14 @@ const Ws = /* @__PURE__ */ w.forwardRef(function(t, r) {
|
|
|
2263
2263
|
to: c,
|
|
2264
2264
|
unstable_viewTransition: l,
|
|
2265
2265
|
children: d
|
|
2266
|
-
} = t, u =
|
|
2266
|
+
} = t, u = Ar(t, Ds), y = Tt(c, {
|
|
2267
2267
|
relative: u.relative
|
|
2268
2268
|
}), E = lt(), p = w.useContext(hn), {
|
|
2269
2269
|
navigator: f,
|
|
2270
2270
|
basename: h
|
|
2271
2271
|
} = w.useContext(Ct), b = p != null && // Conditional usage is OK here because the usage of a data router is static
|
|
2272
2272
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2273
|
-
|
|
2273
|
+
no(y) && l === !0, g = f.encodeLocation ? f.encodeLocation(y).pathname : y.pathname, x = E.pathname, k = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
2274
2274
|
a || (x = x.toLowerCase(), k = k ? k.toLowerCase() : null, g = g.toLowerCase()), k && h && (k = We(k, h) || k);
|
|
2275
2275
|
const T = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length;
|
|
2276
2276
|
let L = x === g || !o && x.startsWith(g) && x.charAt(T) === "/", A = k != null && (k === g || !o && k.startsWith(g) && k.charAt(g.length) === "/"), S = {
|
|
@@ -2289,8 +2289,8 @@ const Ws = /* @__PURE__ */ w.forwardRef(function(t, r) {
|
|
|
2289
2289
|
unstable_viewTransition: l
|
|
2290
2290
|
}), typeof d == "function" ? d(S) : d);
|
|
2291
2291
|
});
|
|
2292
|
-
process.env.NODE_ENV !== "production" && (
|
|
2293
|
-
const
|
|
2292
|
+
process.env.NODE_ENV !== "production" && (Ks.displayName = "NavLink");
|
|
2293
|
+
const Zs = /* @__PURE__ */ w.forwardRef((e, t) => {
|
|
2294
2294
|
let {
|
|
2295
2295
|
fetcherKey: r,
|
|
2296
2296
|
navigate: n,
|
|
@@ -2303,7 +2303,7 @@ const Ks = /* @__PURE__ */ w.forwardRef((e, t) => {
|
|
|
2303
2303
|
relative: d,
|
|
2304
2304
|
preventScrollReset: u,
|
|
2305
2305
|
unstable_viewTransition: y
|
|
2306
|
-
} = e, E =
|
|
2306
|
+
} = e, E = Ar(e, js), p = to(), f = ro(c, {
|
|
2307
2307
|
relative: d
|
|
2308
2308
|
}), h = i.toLowerCase() === "get" ? "get" : "post", b = (g) => {
|
|
2309
2309
|
if (l && l(g), g.defaultPrevented) return;
|
|
@@ -2327,7 +2327,7 @@ const Ks = /* @__PURE__ */ w.forwardRef((e, t) => {
|
|
|
2327
2327
|
onSubmit: a ? l : b
|
|
2328
2328
|
}, E));
|
|
2329
2329
|
});
|
|
2330
|
-
process.env.NODE_ENV !== "production" && (
|
|
2330
|
+
process.env.NODE_ENV !== "production" && (Zs.displayName = "Form");
|
|
2331
2331
|
process.env.NODE_ENV;
|
|
2332
2332
|
var Et;
|
|
2333
2333
|
(function(e) {
|
|
@@ -2337,14 +2337,14 @@ var Zr;
|
|
|
2337
2337
|
(function(e) {
|
|
2338
2338
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
2339
2339
|
})(Zr || (Zr = {}));
|
|
2340
|
-
function
|
|
2340
|
+
function Ys(e) {
|
|
2341
2341
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
2342
2342
|
}
|
|
2343
2343
|
function Mn(e) {
|
|
2344
2344
|
let t = w.useContext(gn);
|
|
2345
|
-
return t || (process.env.NODE_ENV !== "production" ? Ke(!1,
|
|
2345
|
+
return t || (process.env.NODE_ENV !== "production" ? Ke(!1, Ys(e)) : Ke(!1)), t;
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function Qs(e, t) {
|
|
2348
2348
|
let {
|
|
2349
2349
|
target: r,
|
|
2350
2350
|
replace: n,
|
|
@@ -2352,13 +2352,13 @@ function Ys(e, t) {
|
|
|
2352
2352
|
preventScrollReset: s,
|
|
2353
2353
|
relative: o,
|
|
2354
2354
|
unstable_viewTransition: i
|
|
2355
|
-
} = t === void 0 ? {} : t, c =
|
|
2355
|
+
} = t === void 0 ? {} : t, c = ga(), l = lt(), d = Tt(e, {
|
|
2356
2356
|
relative: o
|
|
2357
2357
|
});
|
|
2358
2358
|
return w.useCallback((u) => {
|
|
2359
|
-
if (
|
|
2359
|
+
if (Fs(u, r)) {
|
|
2360
2360
|
u.preventDefault();
|
|
2361
|
-
let y = n !== void 0 ? n :
|
|
2361
|
+
let y = n !== void 0 ? n : Vt(l) === Vt(d);
|
|
2362
2362
|
c(e, {
|
|
2363
2363
|
replace: y,
|
|
2364
2364
|
state: a,
|
|
@@ -2369,28 +2369,28 @@ function Ys(e, t) {
|
|
|
2369
2369
|
}
|
|
2370
2370
|
}, [l, c, d, n, a, r, e, s, o, i]);
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Xs() {
|
|
2373
2373
|
if (typeof document > "u")
|
|
2374
2374
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
2375
2375
|
}
|
|
2376
|
-
let
|
|
2377
|
-
function
|
|
2376
|
+
let Js = 0, eo = () => "__" + String(++Js) + "__";
|
|
2377
|
+
function to() {
|
|
2378
2378
|
let {
|
|
2379
2379
|
router: e
|
|
2380
2380
|
} = Mn(Et.UseSubmit), {
|
|
2381
2381
|
basename: t
|
|
2382
|
-
} = w.useContext(Ct), r =
|
|
2382
|
+
} = w.useContext(Ct), r = ya();
|
|
2383
2383
|
return w.useCallback(function(n, a) {
|
|
2384
|
-
a === void 0 && (a = {}),
|
|
2384
|
+
a === void 0 && (a = {}), Xs();
|
|
2385
2385
|
let {
|
|
2386
2386
|
action: s,
|
|
2387
2387
|
method: o,
|
|
2388
2388
|
encType: i,
|
|
2389
2389
|
formData: c,
|
|
2390
2390
|
body: l
|
|
2391
|
-
} =
|
|
2391
|
+
} = Ps(n, t);
|
|
2392
2392
|
if (a.navigate === !1) {
|
|
2393
|
-
let d = a.fetcherKey ||
|
|
2393
|
+
let d = a.fetcherKey || eo();
|
|
2394
2394
|
e.fetch(d, r, a.action || s, {
|
|
2395
2395
|
preventScrollReset: a.preventScrollReset,
|
|
2396
2396
|
formData: c,
|
|
@@ -2414,12 +2414,12 @@ function eo() {
|
|
|
2414
2414
|
});
|
|
2415
2415
|
}, [e, t, r]);
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function ro(e, t) {
|
|
2418
2418
|
let {
|
|
2419
2419
|
relative: r
|
|
2420
2420
|
} = t === void 0 ? {} : t, {
|
|
2421
2421
|
basename: n
|
|
2422
|
-
} = w.useContext(Ct), a = w.useContext(
|
|
2422
|
+
} = w.useContext(Ct), a = w.useContext(ma);
|
|
2423
2423
|
a || (process.env.NODE_ENV !== "production" ? Ke(!1, "useFormAction must be used inside a RouteContext") : Ke(!1));
|
|
2424
2424
|
let [s] = a.matches.slice(-1), o = be({}, Tt(e || ".", {
|
|
2425
2425
|
relative: r
|
|
@@ -2429,11 +2429,11 @@ function to(e, t) {
|
|
|
2429
2429
|
let c = new URLSearchParams(o.search);
|
|
2430
2430
|
c.has("index") && c.get("index") === "" && (c.delete("index"), o.search = c.toString() ? "?" + c.toString() : "");
|
|
2431
2431
|
}
|
|
2432
|
-
return (!e || e === ".") && s.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n :
|
|
2432
|
+
return (!e || e === ".") && s.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : ba([n, o.pathname])), Vt(o);
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2434
|
+
function no(e, t) {
|
|
2435
2435
|
t === void 0 && (t = {});
|
|
2436
|
-
let r = w.useContext(
|
|
2436
|
+
let r = w.useContext(Cr);
|
|
2437
2437
|
r == null && (process.env.NODE_ENV !== "production" ? Ke(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : Ke(!1));
|
|
2438
2438
|
let {
|
|
2439
2439
|
basename: n
|
|
@@ -2454,19 +2454,19 @@ function $n(e) {
|
|
|
2454
2454
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
2455
2455
|
return n;
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function Tr() {
|
|
2458
2458
|
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = $n(e)) && (n && (n += " "), n += t);
|
|
2459
2459
|
return n;
|
|
2460
2460
|
}
|
|
2461
|
-
const
|
|
2462
|
-
function
|
|
2463
|
-
const t =
|
|
2461
|
+
const Rr = "-";
|
|
2462
|
+
function ao(e) {
|
|
2463
|
+
const t = oo(e), {
|
|
2464
2464
|
conflictingClassGroups: r,
|
|
2465
2465
|
conflictingClassGroupModifiers: n
|
|
2466
2466
|
} = e;
|
|
2467
2467
|
function a(o) {
|
|
2468
|
-
const i = o.split(
|
|
2469
|
-
return i[0] === "" && i.length !== 1 && i.shift(), Bn(i, t) ||
|
|
2468
|
+
const i = o.split(Rr);
|
|
2469
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Bn(i, t) || so(o);
|
|
2470
2470
|
}
|
|
2471
2471
|
function s(o, i) {
|
|
2472
2472
|
const c = r[o] || [];
|
|
@@ -2486,20 +2486,20 @@ function Bn(e, t) {
|
|
|
2486
2486
|
return a;
|
|
2487
2487
|
if (t.validators.length === 0)
|
|
2488
2488
|
return;
|
|
2489
|
-
const s = e.join(
|
|
2489
|
+
const s = e.join(Rr);
|
|
2490
2490
|
return (o = t.validators.find(({
|
|
2491
2491
|
validator: i
|
|
2492
2492
|
}) => i(s))) == null ? void 0 : o.classGroupId;
|
|
2493
2493
|
}
|
|
2494
2494
|
const Yr = /^\[(.+)\]$/;
|
|
2495
|
-
function
|
|
2495
|
+
function so(e) {
|
|
2496
2496
|
if (Yr.test(e)) {
|
|
2497
2497
|
const t = Yr.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
2498
2498
|
if (r)
|
|
2499
2499
|
return "arbitrary.." + r;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function oo(e) {
|
|
2503
2503
|
const {
|
|
2504
2504
|
theme: t,
|
|
2505
2505
|
prefix: r
|
|
@@ -2507,11 +2507,11 @@ function so(e) {
|
|
|
2507
2507
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2508
2508
|
validators: []
|
|
2509
2509
|
};
|
|
2510
|
-
return
|
|
2511
|
-
|
|
2510
|
+
return lo(Object.entries(e.classGroups), r).forEach(([s, o]) => {
|
|
2511
|
+
pr(o, n, s, t);
|
|
2512
2512
|
}), n;
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function pr(e, t, r, n) {
|
|
2515
2515
|
e.forEach((a) => {
|
|
2516
2516
|
if (typeof a == "string") {
|
|
2517
2517
|
const s = a === "" ? t : Qr(t, a);
|
|
@@ -2519,8 +2519,8 @@ function dr(e, t, r, n) {
|
|
|
2519
2519
|
return;
|
|
2520
2520
|
}
|
|
2521
2521
|
if (typeof a == "function") {
|
|
2522
|
-
if (
|
|
2523
|
-
|
|
2522
|
+
if (io(a)) {
|
|
2523
|
+
pr(a(n), t, r, n);
|
|
2524
2524
|
return;
|
|
2525
2525
|
}
|
|
2526
2526
|
t.validators.push({
|
|
@@ -2530,29 +2530,29 @@ function dr(e, t, r, n) {
|
|
|
2530
2530
|
return;
|
|
2531
2531
|
}
|
|
2532
2532
|
Object.entries(a).forEach(([s, o]) => {
|
|
2533
|
-
|
|
2533
|
+
pr(o, Qr(t, s), r, n);
|
|
2534
2534
|
});
|
|
2535
2535
|
});
|
|
2536
2536
|
}
|
|
2537
2537
|
function Qr(e, t) {
|
|
2538
2538
|
let r = e;
|
|
2539
|
-
return t.split(
|
|
2539
|
+
return t.split(Rr).forEach((n) => {
|
|
2540
2540
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
2541
2541
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2542
2542
|
validators: []
|
|
2543
2543
|
}), r = r.nextPart.get(n);
|
|
2544
2544
|
}), r;
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2546
|
+
function io(e) {
|
|
2547
2547
|
return e.isThemeGetter;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function lo(e, t) {
|
|
2550
2550
|
return t ? e.map(([r, n]) => {
|
|
2551
2551
|
const a = n.map((s) => typeof s == "string" ? t + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([o, i]) => [t + o, i])) : s);
|
|
2552
2552
|
return [r, a];
|
|
2553
2553
|
}) : e;
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function co(e) {
|
|
2556
2556
|
if (e < 1)
|
|
2557
2557
|
return {
|
|
2558
2558
|
get: () => {
|
|
@@ -2578,7 +2578,7 @@ function lo(e) {
|
|
|
2578
2578
|
};
|
|
2579
2579
|
}
|
|
2580
2580
|
const Un = "!";
|
|
2581
|
-
function
|
|
2581
|
+
function uo(e) {
|
|
2582
2582
|
const t = e.separator, r = t.length === 1, n = t[0], a = t.length;
|
|
2583
2583
|
return function(o) {
|
|
2584
2584
|
const i = [];
|
|
@@ -2606,7 +2606,7 @@ function co(e) {
|
|
|
2606
2606
|
};
|
|
2607
2607
|
};
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function po(e) {
|
|
2610
2610
|
if (e.length <= 1)
|
|
2611
2611
|
return e;
|
|
2612
2612
|
const t = [];
|
|
@@ -2615,21 +2615,21 @@ function uo(e) {
|
|
|
2615
2615
|
n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
|
|
2616
2616
|
}), t.push(...r.sort()), t;
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function fo(e) {
|
|
2619
2619
|
return {
|
|
2620
|
-
cache:
|
|
2621
|
-
splitModifiers:
|
|
2622
|
-
...
|
|
2620
|
+
cache: co(e.cacheSize),
|
|
2621
|
+
splitModifiers: uo(e),
|
|
2622
|
+
...ao(e)
|
|
2623
2623
|
};
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2626
|
-
function
|
|
2625
|
+
const ho = /\s+/;
|
|
2626
|
+
function go(e, t) {
|
|
2627
2627
|
const {
|
|
2628
2628
|
splitModifiers: r,
|
|
2629
2629
|
getClassGroupId: n,
|
|
2630
2630
|
getConflictingClassGroupIds: a
|
|
2631
2631
|
} = t, s = /* @__PURE__ */ new Set();
|
|
2632
|
-
return e.trim().split(
|
|
2632
|
+
return e.trim().split(ho).map((o) => {
|
|
2633
2633
|
const {
|
|
2634
2634
|
modifiers: i,
|
|
2635
2635
|
hasImportantModifier: c,
|
|
@@ -2650,7 +2650,7 @@ function ho(e, t) {
|
|
|
2650
2650
|
};
|
|
2651
2651
|
y = !1;
|
|
2652
2652
|
}
|
|
2653
|
-
const E =
|
|
2653
|
+
const E = po(i).join(":");
|
|
2654
2654
|
return {
|
|
2655
2655
|
isTailwindClass: !0,
|
|
2656
2656
|
modifierId: c ? E + Un : E,
|
|
@@ -2669,7 +2669,7 @@ function ho(e, t) {
|
|
|
2669
2669
|
return s.has(d) ? !1 : (s.add(d), a(c, l).forEach((u) => s.add(i + u)), !0);
|
|
2670
2670
|
}).reverse().map((o) => o.originalClassName).join(" ");
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function yo() {
|
|
2673
2673
|
let e = 0, t, r, n = "";
|
|
2674
2674
|
for (; e < arguments.length; )
|
|
2675
2675
|
(t = arguments[e++]) && (r = zn(t)) && (n && (n += " "), n += r);
|
|
@@ -2683,33 +2683,33 @@ function zn(e) {
|
|
|
2683
2683
|
e[n] && (t = zn(e[n])) && (r && (r += " "), r += t);
|
|
2684
2684
|
return r;
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function mo(e, ...t) {
|
|
2687
2687
|
let r, n, a, s = o;
|
|
2688
2688
|
function o(c) {
|
|
2689
2689
|
const l = t.reduce((d, u) => u(d), e());
|
|
2690
|
-
return r =
|
|
2690
|
+
return r = fo(l), n = r.cache.get, a = r.cache.set, s = i, i(c);
|
|
2691
2691
|
}
|
|
2692
2692
|
function i(c) {
|
|
2693
2693
|
const l = n(c);
|
|
2694
2694
|
if (l)
|
|
2695
2695
|
return l;
|
|
2696
|
-
const d =
|
|
2696
|
+
const d = go(c, r);
|
|
2697
2697
|
return a(c, d), d;
|
|
2698
2698
|
}
|
|
2699
2699
|
return function() {
|
|
2700
|
-
return s(
|
|
2700
|
+
return s(yo.apply(null, arguments));
|
|
2701
2701
|
};
|
|
2702
2702
|
}
|
|
2703
2703
|
function j(e) {
|
|
2704
2704
|
const t = (r) => r[e] || [];
|
|
2705
2705
|
return t.isThemeGetter = !0, t;
|
|
2706
2706
|
}
|
|
2707
|
-
const Gn = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
2707
|
+
const Gn = /^\[(?:([a-z-]+):)?(.+)\]$/i, bo = /^\d+\/\d+$/, vo = /* @__PURE__ */ new Set(["px", "full", "screen"]), wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Eo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ko = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, So = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2708
2708
|
function ue(e) {
|
|
2709
|
-
return Ee(e) ||
|
|
2709
|
+
return Ee(e) || vo.has(e) || bo.test(e);
|
|
2710
2710
|
}
|
|
2711
2711
|
function pe(e) {
|
|
2712
|
-
return Ye(e, "length",
|
|
2712
|
+
return Ye(e, "length", Io);
|
|
2713
2713
|
}
|
|
2714
2714
|
function Ee(e) {
|
|
2715
2715
|
return !!e && !Number.isNaN(Number(e));
|
|
@@ -2720,28 +2720,28 @@ function ft(e) {
|
|
|
2720
2720
|
function et(e) {
|
|
2721
2721
|
return !!e && Number.isInteger(Number(e));
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function Ao(e) {
|
|
2724
2724
|
return e.endsWith("%") && Ee(e.slice(0, -1));
|
|
2725
2725
|
}
|
|
2726
2726
|
function _(e) {
|
|
2727
2727
|
return Gn.test(e);
|
|
2728
2728
|
}
|
|
2729
2729
|
function fe(e) {
|
|
2730
|
-
return
|
|
2731
|
-
}
|
|
2732
|
-
const Ao = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2733
|
-
function Co(e) {
|
|
2734
|
-
return Ye(e, Ao, qn);
|
|
2730
|
+
return wo.test(e);
|
|
2735
2731
|
}
|
|
2732
|
+
const Co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2736
2733
|
function To(e) {
|
|
2737
|
-
return Ye(e,
|
|
2734
|
+
return Ye(e, Co, qn);
|
|
2738
2735
|
}
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
return Ye(e, Ro, No);
|
|
2736
|
+
function Ro(e) {
|
|
2737
|
+
return Ye(e, "position", qn);
|
|
2742
2738
|
}
|
|
2739
|
+
const _o = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2743
2740
|
function Oo(e) {
|
|
2744
|
-
return Ye(e,
|
|
2741
|
+
return Ye(e, _o, Po);
|
|
2742
|
+
}
|
|
2743
|
+
function Fo(e) {
|
|
2744
|
+
return Ye(e, "", No);
|
|
2745
2745
|
}
|
|
2746
2746
|
function tt() {
|
|
2747
2747
|
return !0;
|
|
@@ -2750,19 +2750,19 @@ function Ye(e, t, r) {
|
|
|
2750
2750
|
const n = Gn.exec(e);
|
|
2751
2751
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2754
|
-
return
|
|
2753
|
+
function Io(e) {
|
|
2754
|
+
return xo.test(e) && !Eo.test(e);
|
|
2755
2755
|
}
|
|
2756
2756
|
function qn() {
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
}
|
|
2759
|
-
function Io(e) {
|
|
2760
|
-
return Eo.test(e);
|
|
2761
|
-
}
|
|
2762
2759
|
function No(e) {
|
|
2763
2760
|
return ko.test(e);
|
|
2764
2761
|
}
|
|
2765
|
-
function Po() {
|
|
2762
|
+
function Po(e) {
|
|
2763
|
+
return So.test(e);
|
|
2764
|
+
}
|
|
2765
|
+
function Lo() {
|
|
2766
2766
|
const e = j("colors"), t = j("spacing"), r = j("blur"), n = j("brightness"), a = j("borderColor"), s = j("borderRadius"), o = j("borderSpacing"), i = j("borderWidth"), c = j("contrast"), l = j("grayscale"), d = j("hueRotate"), u = j("invert"), y = j("gap"), E = j("gradientColorStops"), p = j("gradientColorStopPositions"), f = j("inset"), h = j("margin"), b = j("opacity"), g = j("padding"), x = j("saturate"), k = j("scale"), T = j("sepia"), L = j("skew"), A = j("space"), S = j("translate"), O = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", _, t], F = () => [_, t], H = () => ["", ue, pe], $ = () => ["auto", Ee, _], W = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], we = () => ["", "0", _], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Ee, ft], le = () => [Ee, _];
|
|
2767
2767
|
return {
|
|
2768
2768
|
cacheSize: 500,
|
|
@@ -2782,7 +2782,7 @@ function Po() {
|
|
|
2782
2782
|
invert: we(),
|
|
2783
2783
|
gap: F(),
|
|
2784
2784
|
gradientColorStops: [e],
|
|
2785
|
-
gradientColorStopPositions: [
|
|
2785
|
+
gradientColorStopPositions: [Ao, pe],
|
|
2786
2786
|
inset: M(),
|
|
2787
2787
|
margin: M(),
|
|
2788
2788
|
opacity: ee(),
|
|
@@ -3695,7 +3695,7 @@ function Po() {
|
|
|
3695
3695
|
* @see https://tailwindcss.com/docs/background-position
|
|
3696
3696
|
*/
|
|
3697
3697
|
"bg-position": [{
|
|
3698
|
-
bg: [...W(),
|
|
3698
|
+
bg: [...W(), Ro]
|
|
3699
3699
|
}],
|
|
3700
3700
|
/**
|
|
3701
3701
|
* Background Repeat
|
|
@@ -3711,7 +3711,7 @@ function Po() {
|
|
|
3711
3711
|
* @see https://tailwindcss.com/docs/background-size
|
|
3712
3712
|
*/
|
|
3713
3713
|
"bg-size": [{
|
|
3714
|
-
bg: ["auto", "cover", "contain",
|
|
3714
|
+
bg: ["auto", "cover", "contain", To]
|
|
3715
3715
|
}],
|
|
3716
3716
|
/**
|
|
3717
3717
|
* Background Image
|
|
@@ -3720,7 +3720,7 @@ function Po() {
|
|
|
3720
3720
|
"bg-image": [{
|
|
3721
3721
|
bg: ["none", {
|
|
3722
3722
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3723
|
-
},
|
|
3723
|
+
}, Oo]
|
|
3724
3724
|
}],
|
|
3725
3725
|
/**
|
|
3726
3726
|
* Background Color
|
|
@@ -4122,7 +4122,7 @@ function Po() {
|
|
|
4122
4122
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
4123
4123
|
*/
|
|
4124
4124
|
shadow: [{
|
|
4125
|
-
shadow: ["", "inner", "none", fe,
|
|
4125
|
+
shadow: ["", "inner", "none", fe, Fo]
|
|
4126
4126
|
}],
|
|
4127
4127
|
/**
|
|
4128
4128
|
* Box Shadow Color
|
|
@@ -4778,21 +4778,21 @@ function Po() {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
};
|
|
4780
4780
|
}
|
|
4781
|
-
const
|
|
4781
|
+
const Do = /* @__PURE__ */ mo(Lo);
|
|
4782
4782
|
function ke(...e) {
|
|
4783
|
-
return
|
|
4783
|
+
return Do(Tr(e));
|
|
4784
4784
|
}
|
|
4785
|
-
const Vn =
|
|
4785
|
+
const Vn = yr(
|
|
4786
4786
|
void 0
|
|
4787
|
-
),
|
|
4788
|
-
const e =
|
|
4787
|
+
), jo = () => {
|
|
4788
|
+
const e = mr(Vn);
|
|
4789
4789
|
if (!e)
|
|
4790
4790
|
throw new Error(
|
|
4791
4791
|
"useViewportAnchor must be used within a CurrentAnchorProvider"
|
|
4792
4792
|
);
|
|
4793
4793
|
return e;
|
|
4794
|
-
},
|
|
4795
|
-
const e = He(null), { observe: t, unobserve: r } =
|
|
4794
|
+
}, Mo = () => {
|
|
4795
|
+
const e = He(null), { observe: t, unobserve: r } = jo();
|
|
4796
4796
|
return nt(() => {
|
|
4797
4797
|
const a = e.current;
|
|
4798
4798
|
if (a)
|
|
@@ -4800,7 +4800,7 @@ const Vn = gr(
|
|
|
4800
4800
|
}, [t, r]), { ref: at((a) => {
|
|
4801
4801
|
a && (e.current = a);
|
|
4802
4802
|
}, []) };
|
|
4803
|
-
},
|
|
4803
|
+
}, Bl = ({
|
|
4804
4804
|
children: e
|
|
4805
4805
|
}) => {
|
|
4806
4806
|
const [t, r] = At(""), n = He(null), a = He(/* @__PURE__ */ new Set());
|
|
@@ -4830,19 +4830,19 @@ const Vn = gr(
|
|
|
4830
4830
|
i.clear(), document.removeEventListener("scroll", c);
|
|
4831
4831
|
};
|
|
4832
4832
|
}, []);
|
|
4833
|
-
const s =
|
|
4833
|
+
const s = qt(() => ({
|
|
4834
4834
|
observe: (i) => {
|
|
4835
4835
|
!i || !n.current || (a.current.add(i), n.current.observe(i));
|
|
4836
4836
|
},
|
|
4837
4837
|
unobserve: (i) => {
|
|
4838
4838
|
!i || !n.current || (a.current.delete(i), n.current.unobserve(i));
|
|
4839
4839
|
}
|
|
4840
|
-
}), []), o =
|
|
4840
|
+
}), []), o = qt(
|
|
4841
4841
|
() => ({ activeAnchor: t, setActiveAnchor: r, ...s }),
|
|
4842
4842
|
[t, r, s]
|
|
4843
4843
|
);
|
|
4844
4844
|
return /* @__PURE__ */ C.jsx(Vn.Provider, { value: o, children: e });
|
|
4845
|
-
},
|
|
4845
|
+
}, $o = (e) => {
|
|
4846
4846
|
switch (e) {
|
|
4847
4847
|
case 1:
|
|
4848
4848
|
return "h1";
|
|
@@ -4866,7 +4866,7 @@ const Vn = gr(
|
|
|
4866
4866
|
className: n,
|
|
4867
4867
|
registerSidebarAnchor: a
|
|
4868
4868
|
}) => {
|
|
4869
|
-
const s =
|
|
4869
|
+
const s = $o(e ?? 1), { ref: o } = Mo();
|
|
4870
4870
|
return /* @__PURE__ */ C.jsxs(
|
|
4871
4871
|
s,
|
|
4872
4872
|
{
|
|
@@ -4888,39 +4888,39 @@ const Vn = gr(
|
|
|
4888
4888
|
}
|
|
4889
4889
|
);
|
|
4890
4890
|
};
|
|
4891
|
-
var
|
|
4891
|
+
var Bo = Object.create, Ft = Object.defineProperty, Uo = Object.defineProperties, zo = Object.getOwnPropertyDescriptor, Go = Object.getOwnPropertyDescriptors, Hn = Object.getOwnPropertyNames, kt = Object.getOwnPropertySymbols, qo = Object.getPrototypeOf, _r = Object.prototype.hasOwnProperty, Wn = Object.prototype.propertyIsEnumerable, Xr = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ie = (e, t) => {
|
|
4892
4892
|
for (var r in t || (t = {}))
|
|
4893
|
-
|
|
4893
|
+
_r.call(t, r) && Xr(e, r, t[r]);
|
|
4894
4894
|
if (kt)
|
|
4895
4895
|
for (var r of kt(t))
|
|
4896
4896
|
Wn.call(t, r) && Xr(e, r, t[r]);
|
|
4897
4897
|
return e;
|
|
4898
|
-
}, It = (e, t) =>
|
|
4898
|
+
}, It = (e, t) => Uo(e, Go(t)), Kn = (e, t) => {
|
|
4899
4899
|
var r = {};
|
|
4900
4900
|
for (var n in e)
|
|
4901
|
-
|
|
4901
|
+
_r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4902
4902
|
if (e != null && kt)
|
|
4903
4903
|
for (var n of kt(e))
|
|
4904
4904
|
t.indexOf(n) < 0 && Wn.call(e, n) && (r[n] = e[n]);
|
|
4905
4905
|
return r;
|
|
4906
|
-
},
|
|
4906
|
+
}, Vo = (e, t) => function() {
|
|
4907
4907
|
return t || (0, e[Hn(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
4908
|
-
},
|
|
4908
|
+
}, Ho = (e, t) => {
|
|
4909
4909
|
for (var r in t)
|
|
4910
4910
|
Ft(e, r, { get: t[r], enumerable: !0 });
|
|
4911
|
-
},
|
|
4911
|
+
}, Wo = (e, t, r, n) => {
|
|
4912
4912
|
if (t && typeof t == "object" || typeof t == "function")
|
|
4913
4913
|
for (let a of Hn(t))
|
|
4914
|
-
!
|
|
4914
|
+
!_r.call(e, a) && a !== r && Ft(e, a, { get: () => t[a], enumerable: !(n = zo(t, a)) || n.enumerable });
|
|
4915
4915
|
return e;
|
|
4916
|
-
},
|
|
4916
|
+
}, Ko = (e, t, r) => (r = e != null ? Bo(qo(e)) : {}, Wo(
|
|
4917
4917
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
4918
4918
|
// file that has been converted to a CommonJS file using a Babel-
|
|
4919
4919
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4920
4920
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
4921
4921
|
!e || !e.__esModule ? Ft(r, "default", { value: e, enumerable: !0 }) : r,
|
|
4922
4922
|
e
|
|
4923
|
-
)),
|
|
4923
|
+
)), Zo = Vo({
|
|
4924
4924
|
"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
|
|
4925
4925
|
var r = function() {
|
|
4926
4926
|
var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, a = 0, s = {}, o = {
|
|
@@ -5382,17 +5382,17 @@ var $o = Object.create, Ft = Object.defineProperty, Bo = Object.defineProperties
|
|
|
5382
5382
|
ve--, X = p.slice(W, J), z.index -= W;
|
|
5383
5383
|
} else if (z = c(H, 0, X, O), !z)
|
|
5384
5384
|
continue;
|
|
5385
|
-
var le = z.index, ct = z[0],
|
|
5386
|
-
x &&
|
|
5385
|
+
var le = z.index, ct = z[0], Pt = X.slice(0, le), Dr = X.slice(le + ct.length), Lt = W + X.length;
|
|
5386
|
+
x && Lt > x.reach && (x.reach = Lt);
|
|
5387
5387
|
var ut = $.prev;
|
|
5388
|
-
|
|
5388
|
+
Pt && (ut = u(f, ut, Pt), W += Pt.length), y(f, ut, ve);
|
|
5389
5389
|
var ua = new i(k, S ? o.tokenize(ct, S) : ct, M, ct);
|
|
5390
5390
|
if ($ = u(f, ut, ua), Dr && u(f, $, Dr), ve > 1) {
|
|
5391
|
-
var
|
|
5391
|
+
var Dt = {
|
|
5392
5392
|
cause: k + "," + L,
|
|
5393
|
-
reach:
|
|
5393
|
+
reach: Lt
|
|
5394
5394
|
};
|
|
5395
|
-
l(p, f, h, $.prev, W,
|
|
5395
|
+
l(p, f, h, $.prev, W, Dt), x && Dt.reach > x.reach && (x.reach = Dt.reach);
|
|
5396
5396
|
}
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
@@ -5421,7 +5421,7 @@ var $o = Object.create, Ft = Object.defineProperty, Bo = Object.defineProperties
|
|
|
5421
5421
|
}();
|
|
5422
5422
|
t.exports = r, r.default = r;
|
|
5423
5423
|
}
|
|
5424
|
-
}), v =
|
|
5424
|
+
}), v = Ko(Zo());
|
|
5425
5425
|
v.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, v.languages.markup.tag.inside["attr-value"].inside.entity = v.languages.markup.entity, v.languages.markup.doctype.inside["internal-subset"].inside = v.languages.markup, v.hooks.add("wrap", function(e) {
|
|
5426
5426
|
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
5427
5427
|
}), Object.defineProperty(v.languages.markup.tag, "addInlined", { value: function(e, n) {
|
|
@@ -5692,28 +5692,28 @@ v.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
5692
5692
|
return r;
|
|
5693
5693
|
}) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
|
|
5694
5694
|
}(v), v.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, v.languages.python["string-interpolation"].inside.interpolation.inside.rest = v.languages.python, v.languages.py = v.languages.python;
|
|
5695
|
-
var
|
|
5696
|
-
|
|
5697
|
-
dracula: () =>
|
|
5698
|
-
duotoneDark: () =>
|
|
5699
|
-
duotoneLight: () =>
|
|
5700
|
-
github: () =>
|
|
5701
|
-
jettwaveDark: () =>
|
|
5702
|
-
jettwaveLight: () =>
|
|
5703
|
-
nightOwl: () =>
|
|
5704
|
-
nightOwlLight: () =>
|
|
5705
|
-
oceanicNext: () =>
|
|
5706
|
-
okaidia: () =>
|
|
5707
|
-
oneDark: () =>
|
|
5708
|
-
oneLight: () =>
|
|
5709
|
-
palenight: () =>
|
|
5710
|
-
shadesOfPurple: () =>
|
|
5711
|
-
synthwave84: () =>
|
|
5712
|
-
ultramin: () =>
|
|
5695
|
+
var fr = {};
|
|
5696
|
+
Ho(fr, {
|
|
5697
|
+
dracula: () => Qo,
|
|
5698
|
+
duotoneDark: () => Jo,
|
|
5699
|
+
duotoneLight: () => ti,
|
|
5700
|
+
github: () => ni,
|
|
5701
|
+
jettwaveDark: () => Si,
|
|
5702
|
+
jettwaveLight: () => Ci,
|
|
5703
|
+
nightOwl: () => si,
|
|
5704
|
+
nightOwlLight: () => ii,
|
|
5705
|
+
oceanicNext: () => ci,
|
|
5706
|
+
okaidia: () => di,
|
|
5707
|
+
oneDark: () => Ri,
|
|
5708
|
+
oneLight: () => Oi,
|
|
5709
|
+
palenight: () => fi,
|
|
5710
|
+
shadesOfPurple: () => gi,
|
|
5711
|
+
synthwave84: () => mi,
|
|
5712
|
+
ultramin: () => vi,
|
|
5713
5713
|
vsDark: () => Zn,
|
|
5714
|
-
vsLight: () =>
|
|
5714
|
+
vsLight: () => Ei
|
|
5715
5715
|
});
|
|
5716
|
-
var
|
|
5716
|
+
var Yo = {
|
|
5717
5717
|
plain: {
|
|
5718
5718
|
color: "#F8F8F2",
|
|
5719
5719
|
backgroundColor: "#282A36"
|
|
@@ -5775,7 +5775,7 @@ var Zo = {
|
|
|
5775
5775
|
}
|
|
5776
5776
|
}
|
|
5777
5777
|
]
|
|
5778
|
-
},
|
|
5778
|
+
}, Qo = Yo, Xo = {
|
|
5779
5779
|
plain: {
|
|
5780
5780
|
backgroundColor: "#2a2734",
|
|
5781
5781
|
color: "#9a86fd"
|
|
@@ -5869,7 +5869,7 @@ var Zo = {
|
|
|
5869
5869
|
}
|
|
5870
5870
|
}
|
|
5871
5871
|
]
|
|
5872
|
-
},
|
|
5872
|
+
}, Jo = Xo, ei = {
|
|
5873
5873
|
plain: {
|
|
5874
5874
|
backgroundColor: "#faf8f5",
|
|
5875
5875
|
color: "#728fcb"
|
|
@@ -5967,7 +5967,7 @@ var Zo = {
|
|
|
5967
5967
|
}
|
|
5968
5968
|
}
|
|
5969
5969
|
]
|
|
5970
|
-
},
|
|
5970
|
+
}, ti = ei, ri = {
|
|
5971
5971
|
plain: {
|
|
5972
5972
|
color: "#393A34",
|
|
5973
5973
|
backgroundColor: "#f6f8fa"
|
|
@@ -6040,7 +6040,7 @@ var Zo = {
|
|
|
6040
6040
|
}
|
|
6041
6041
|
}
|
|
6042
6042
|
]
|
|
6043
|
-
},
|
|
6043
|
+
}, ni = ri, ai = {
|
|
6044
6044
|
plain: {
|
|
6045
6045
|
color: "#d6deeb",
|
|
6046
6046
|
backgroundColor: "#011627"
|
|
@@ -6144,7 +6144,7 @@ var Zo = {
|
|
|
6144
6144
|
}
|
|
6145
6145
|
}
|
|
6146
6146
|
]
|
|
6147
|
-
},
|
|
6147
|
+
}, si = ai, oi = {
|
|
6148
6148
|
plain: {
|
|
6149
6149
|
color: "#403f53",
|
|
6150
6150
|
backgroundColor: "#FBFBFB"
|
|
@@ -6236,7 +6236,7 @@ var Zo = {
|
|
|
6236
6236
|
}
|
|
6237
6237
|
}
|
|
6238
6238
|
]
|
|
6239
|
-
},
|
|
6239
|
+
}, ii = oi, K = {
|
|
6240
6240
|
char: "#D8DEE9",
|
|
6241
6241
|
comment: "#999999",
|
|
6242
6242
|
keyword: "#c5a5c5",
|
|
@@ -6250,7 +6250,7 @@ var Zo = {
|
|
|
6250
6250
|
className: "#FAC863",
|
|
6251
6251
|
method: "#6699CC",
|
|
6252
6252
|
operator: "#fc929e"
|
|
6253
|
-
},
|
|
6253
|
+
}, li = {
|
|
6254
6254
|
plain: {
|
|
6255
6255
|
backgroundColor: "#282c34",
|
|
6256
6256
|
color: "#ffffff"
|
|
@@ -6373,7 +6373,7 @@ var Zo = {
|
|
|
6373
6373
|
}
|
|
6374
6374
|
}
|
|
6375
6375
|
]
|
|
6376
|
-
},
|
|
6376
|
+
}, ci = li, ui = {
|
|
6377
6377
|
plain: {
|
|
6378
6378
|
color: "#f8f8f2",
|
|
6379
6379
|
backgroundColor: "#272822"
|
|
@@ -6488,7 +6488,7 @@ var Zo = {
|
|
|
6488
6488
|
}
|
|
6489
6489
|
}
|
|
6490
6490
|
]
|
|
6491
|
-
},
|
|
6491
|
+
}, di = ui, pi = {
|
|
6492
6492
|
plain: {
|
|
6493
6493
|
color: "#bfc7d5",
|
|
6494
6494
|
backgroundColor: "#292d3e"
|
|
@@ -6581,7 +6581,7 @@ var Zo = {
|
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
6583
|
]
|
|
6584
|
-
},
|
|
6584
|
+
}, fi = pi, hi = {
|
|
6585
6585
|
plain: {
|
|
6586
6586
|
color: "#9EFEFF",
|
|
6587
6587
|
backgroundColor: "#2D2A55"
|
|
@@ -6669,7 +6669,7 @@ var Zo = {
|
|
|
6669
6669
|
}
|
|
6670
6670
|
}
|
|
6671
6671
|
]
|
|
6672
|
-
},
|
|
6672
|
+
}, gi = hi, yi = {
|
|
6673
6673
|
plain: {
|
|
6674
6674
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
6675
6675
|
backgroundImage: "#34294f",
|
|
@@ -6794,7 +6794,7 @@ var Zo = {
|
|
|
6794
6794
|
}
|
|
6795
6795
|
}
|
|
6796
6796
|
]
|
|
6797
|
-
},
|
|
6797
|
+
}, mi = yi, bi = {
|
|
6798
6798
|
plain: {
|
|
6799
6799
|
color: "#282a2e",
|
|
6800
6800
|
backgroundColor: "#ffffff"
|
|
@@ -6819,7 +6819,7 @@ var Zo = {
|
|
|
6819
6819
|
}
|
|
6820
6820
|
}
|
|
6821
6821
|
]
|
|
6822
|
-
},
|
|
6822
|
+
}, vi = bi, wi = {
|
|
6823
6823
|
plain: {
|
|
6824
6824
|
color: "#9CDCFE",
|
|
6825
6825
|
backgroundColor: "#1E1E1E"
|
|
@@ -6921,7 +6921,7 @@ var Zo = {
|
|
|
6921
6921
|
}
|
|
6922
6922
|
}
|
|
6923
6923
|
]
|
|
6924
|
-
}, Zn =
|
|
6924
|
+
}, Zn = wi, xi = {
|
|
6925
6925
|
plain: {
|
|
6926
6926
|
color: "#000000",
|
|
6927
6927
|
backgroundColor: "#ffffff"
|
|
@@ -6994,7 +6994,7 @@ var Zo = {
|
|
|
6994
6994
|
}
|
|
6995
6995
|
}
|
|
6996
6996
|
]
|
|
6997
|
-
},
|
|
6997
|
+
}, Ei = xi, ki = {
|
|
6998
6998
|
plain: {
|
|
6999
6999
|
color: "#f8fafc",
|
|
7000
7000
|
backgroundColor: "#011627"
|
|
@@ -7093,7 +7093,7 @@ var Zo = {
|
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
7095
|
]
|
|
7096
|
-
},
|
|
7096
|
+
}, Si = ki, Ai = {
|
|
7097
7097
|
plain: {
|
|
7098
7098
|
color: "#0f172a",
|
|
7099
7099
|
backgroundColor: "#f1f5f9"
|
|
@@ -7192,7 +7192,7 @@ var Zo = {
|
|
|
7192
7192
|
}
|
|
7193
7193
|
}
|
|
7194
7194
|
]
|
|
7195
|
-
},
|
|
7195
|
+
}, Ci = Ai, Ti = {
|
|
7196
7196
|
plain: {
|
|
7197
7197
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
7198
7198
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -7290,7 +7290,7 @@ var Zo = {
|
|
|
7290
7290
|
}
|
|
7291
7291
|
}
|
|
7292
7292
|
]
|
|
7293
|
-
},
|
|
7293
|
+
}, Ri = Ti, _i = {
|
|
7294
7294
|
plain: {
|
|
7295
7295
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
7296
7296
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -7391,7 +7391,7 @@ var Zo = {
|
|
|
7391
7391
|
}
|
|
7392
7392
|
}
|
|
7393
7393
|
]
|
|
7394
|
-
},
|
|
7394
|
+
}, Oi = _i, Fi = (e, t) => {
|
|
7395
7395
|
const { plain: r } = e, n = e.styles.reduce((a, s) => {
|
|
7396
7396
|
const { languages: o, style: i } = s;
|
|
7397
7397
|
return o && !o.includes(t) || s.types.forEach((c) => {
|
|
@@ -7400,23 +7400,23 @@ var Zo = {
|
|
|
7400
7400
|
}), a;
|
|
7401
7401
|
}, {});
|
|
7402
7402
|
return n.root = r, n.plain = It(ie({}, r), { backgroundColor: void 0 }), n;
|
|
7403
|
-
}, Jr =
|
|
7403
|
+
}, Jr = Fi, Ii = (e, t) => {
|
|
7404
7404
|
const [r, n] = At(
|
|
7405
7405
|
Jr(t, e)
|
|
7406
7406
|
), a = He(), s = He();
|
|
7407
7407
|
return nt(() => {
|
|
7408
7408
|
(t !== a.current || e !== s.current) && (a.current = t, s.current = e, n(Jr(t, e)));
|
|
7409
7409
|
}, [e, t]), r;
|
|
7410
|
-
},
|
|
7410
|
+
}, Ni = (e) => at(
|
|
7411
7411
|
(t) => {
|
|
7412
7412
|
var r = t, { className: n, style: a, line: s } = r, o = Kn(r, ["className", "style", "line"]);
|
|
7413
7413
|
const i = It(ie({}, o), {
|
|
7414
|
-
className:
|
|
7414
|
+
className: Tr("token-line", n)
|
|
7415
7415
|
});
|
|
7416
7416
|
return typeof e == "object" && "plain" in e && (i.style = e.plain), typeof a == "object" && (i.style = ie(ie({}, i.style || {}), a)), i;
|
|
7417
7417
|
},
|
|
7418
7418
|
[e]
|
|
7419
|
-
),
|
|
7419
|
+
), Pi = (e) => {
|
|
7420
7420
|
const t = at(
|
|
7421
7421
|
({ types: r, empty: n }) => {
|
|
7422
7422
|
if (e != null) {
|
|
@@ -7438,7 +7438,7 @@ var Zo = {
|
|
|
7438
7438
|
(r) => {
|
|
7439
7439
|
var n = r, { token: a, className: s, style: o } = n, i = Kn(n, ["token", "className", "style"]);
|
|
7440
7440
|
const c = It(ie({}, i), {
|
|
7441
|
-
className:
|
|
7441
|
+
className: Tr("token", ...a.types, s),
|
|
7442
7442
|
children: a.content,
|
|
7443
7443
|
style: t(a)
|
|
7444
7444
|
});
|
|
@@ -7446,7 +7446,7 @@ var Zo = {
|
|
|
7446
7446
|
},
|
|
7447
7447
|
[t]
|
|
7448
7448
|
);
|
|
7449
|
-
},
|
|
7449
|
+
}, Li = /\r\n|\r|\n/, en = (e) => {
|
|
7450
7450
|
e.length === 0 ? e.push({
|
|
7451
7451
|
types: ["plain"],
|
|
7452
7452
|
content: `
|
|
@@ -7457,7 +7457,7 @@ var Zo = {
|
|
|
7457
7457
|
}, tn = (e, t) => {
|
|
7458
7458
|
const r = e.length;
|
|
7459
7459
|
return r > 0 && e[r - 1] === t ? e : e.concat(t);
|
|
7460
|
-
},
|
|
7460
|
+
}, Di = (e) => {
|
|
7461
7461
|
const t = [[]], r = [e], n = [0], a = [e.length];
|
|
7462
7462
|
let s = 0, o = 0, i = [];
|
|
7463
7463
|
const c = [i];
|
|
@@ -7469,7 +7469,7 @@ var Zo = {
|
|
|
7469
7469
|
o++, t.push(d), r.push(l), n.push(0), a.push(l.length);
|
|
7470
7470
|
continue;
|
|
7471
7471
|
}
|
|
7472
|
-
const E = l.split(
|
|
7472
|
+
const E = l.split(Li), p = E.length;
|
|
7473
7473
|
i.push({
|
|
7474
7474
|
types: d,
|
|
7475
7475
|
content: E[0]
|
|
@@ -7483,9 +7483,9 @@ var Zo = {
|
|
|
7483
7483
|
o--, t.pop(), r.pop(), n.pop(), a.pop();
|
|
7484
7484
|
}
|
|
7485
7485
|
return en(i), c;
|
|
7486
|
-
}, rn =
|
|
7486
|
+
}, rn = Di, ji = ({ prism: e, code: t, grammar: r, language: n }) => {
|
|
7487
7487
|
const a = He(e);
|
|
7488
|
-
return
|
|
7488
|
+
return qt(() => {
|
|
7489
7489
|
if (r == null)
|
|
7490
7490
|
return rn([t]);
|
|
7491
7491
|
const s = {
|
|
@@ -7496,14 +7496,14 @@ var Zo = {
|
|
|
7496
7496
|
};
|
|
7497
7497
|
return a.current.hooks.run("before-tokenize", s), s.tokens = a.current.tokenize(t, r), a.current.hooks.run("after-tokenize", s), rn(s.tokens);
|
|
7498
7498
|
}, [t, r, n]);
|
|
7499
|
-
},
|
|
7499
|
+
}, Mi = ({
|
|
7500
7500
|
children: e,
|
|
7501
7501
|
language: t,
|
|
7502
7502
|
code: r,
|
|
7503
7503
|
theme: n,
|
|
7504
7504
|
prism: a
|
|
7505
7505
|
}) => {
|
|
7506
|
-
const s = t.toLowerCase(), o =
|
|
7506
|
+
const s = t.toLowerCase(), o = Ii(s, n), i = Ni(o), c = Pi(o), l = a.languages[s], d = ji({ prism: a, language: s, code: r, grammar: l });
|
|
7507
7507
|
return e({
|
|
7508
7508
|
tokens: d,
|
|
7509
7509
|
className: `prism-code language-${s}`,
|
|
@@ -7511,7 +7511,7 @@ var Zo = {
|
|
|
7511
7511
|
getLineProps: i,
|
|
7512
7512
|
getTokenProps: c
|
|
7513
7513
|
});
|
|
7514
|
-
},
|
|
7514
|
+
}, $i = (e) => wt(Mi, It(ie({}, e), {
|
|
7515
7515
|
prism: e.prism || v,
|
|
7516
7516
|
theme: e.theme || Zn,
|
|
7517
7517
|
code: e.code,
|
|
@@ -7535,14 +7535,14 @@ prismjs/prism.js:
|
|
|
7535
7535
|
* This source code is licensed under the ISC license.
|
|
7536
7536
|
* See the LICENSE file in the root directory of this source tree.
|
|
7537
7537
|
*/
|
|
7538
|
-
const
|
|
7538
|
+
const Bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yn = (...e) => e.filter((t, r, n) => !!t && n.indexOf(t) === r).join(" ");
|
|
7539
7539
|
/**
|
|
7540
7540
|
* @license lucide-react v0.378.0 - ISC
|
|
7541
7541
|
*
|
|
7542
7542
|
* This source code is licensed under the ISC license.
|
|
7543
7543
|
* See the LICENSE file in the root directory of this source tree.
|
|
7544
7544
|
*/
|
|
7545
|
-
var
|
|
7545
|
+
var Ui = {
|
|
7546
7546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7547
7547
|
width: 24,
|
|
7548
7548
|
height: 24,
|
|
@@ -7559,7 +7559,7 @@ var Bi = {
|
|
|
7559
7559
|
* This source code is licensed under the ISC license.
|
|
7560
7560
|
* See the LICENSE file in the root directory of this source tree.
|
|
7561
7561
|
*/
|
|
7562
|
-
const
|
|
7562
|
+
const zi = fn(
|
|
7563
7563
|
({
|
|
7564
7564
|
color: e = "currentColor",
|
|
7565
7565
|
size: t = 24,
|
|
@@ -7573,7 +7573,7 @@ const Ui = fn(
|
|
|
7573
7573
|
"svg",
|
|
7574
7574
|
{
|
|
7575
7575
|
ref: c,
|
|
7576
|
-
...
|
|
7576
|
+
...Ui,
|
|
7577
7577
|
width: t,
|
|
7578
7578
|
height: t,
|
|
7579
7579
|
stroke: e,
|
|
@@ -7595,10 +7595,10 @@ const Ui = fn(
|
|
|
7595
7595
|
*/
|
|
7596
7596
|
const Ie = (e, t) => {
|
|
7597
7597
|
const r = fn(
|
|
7598
|
-
({ className: n, ...a }, s) => wt(
|
|
7598
|
+
({ className: n, ...a }, s) => wt(zi, {
|
|
7599
7599
|
ref: s,
|
|
7600
7600
|
iconNode: t,
|
|
7601
|
-
className: Yn(`lucide-${
|
|
7601
|
+
className: Yn(`lucide-${Bi(e)}`, n),
|
|
7602
7602
|
...a
|
|
7603
7603
|
})
|
|
7604
7604
|
);
|
|
@@ -7610,14 +7610,14 @@ const Ie = (e, t) => {
|
|
|
7610
7610
|
* This source code is licensed under the ISC license.
|
|
7611
7611
|
* See the LICENSE file in the root directory of this source tree.
|
|
7612
7612
|
*/
|
|
7613
|
-
const
|
|
7613
|
+
const Gi = Ie("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
7614
7614
|
/**
|
|
7615
7615
|
* @license lucide-react v0.378.0 - ISC
|
|
7616
7616
|
*
|
|
7617
7617
|
* This source code is licensed under the ISC license.
|
|
7618
7618
|
* See the LICENSE file in the root directory of this source tree.
|
|
7619
7619
|
*/
|
|
7620
|
-
const
|
|
7620
|
+
const qi = Ie("Copy", [
|
|
7621
7621
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
7622
7622
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
7623
7623
|
]);
|
|
@@ -7638,7 +7638,7 @@ const nn = Ie("Info", [
|
|
|
7638
7638
|
* This source code is licensed under the ISC license.
|
|
7639
7639
|
* See the LICENSE file in the root directory of this source tree.
|
|
7640
7640
|
*/
|
|
7641
|
-
const
|
|
7641
|
+
const Vi = Ie("Lightbulb", [
|
|
7642
7642
|
[
|
|
7643
7643
|
"path",
|
|
7644
7644
|
{
|
|
@@ -7655,7 +7655,7 @@ const qi = Ie("Lightbulb", [
|
|
|
7655
7655
|
* This source code is licensed under the ISC license.
|
|
7656
7656
|
* See the LICENSE file in the root directory of this source tree.
|
|
7657
7657
|
*/
|
|
7658
|
-
const
|
|
7658
|
+
const Hi = Ie("LoaderCircle", [
|
|
7659
7659
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
7660
7660
|
]);
|
|
7661
7661
|
/**
|
|
@@ -7664,7 +7664,7 @@ const Vi = Ie("LoaderCircle", [
|
|
|
7664
7664
|
* This source code is licensed under the ISC license.
|
|
7665
7665
|
* See the LICENSE file in the root directory of this source tree.
|
|
7666
7666
|
*/
|
|
7667
|
-
const
|
|
7667
|
+
const Wi = Ie("ShieldAlert", [
|
|
7668
7668
|
[
|
|
7669
7669
|
"path",
|
|
7670
7670
|
{
|
|
@@ -7681,7 +7681,7 @@ const Hi = Ie("ShieldAlert", [
|
|
|
7681
7681
|
* This source code is licensed under the ISC license.
|
|
7682
7682
|
* See the LICENSE file in the root directory of this source tree.
|
|
7683
7683
|
*/
|
|
7684
|
-
const
|
|
7684
|
+
const Ki = Ie("TriangleAlert", [
|
|
7685
7685
|
[
|
|
7686
7686
|
"path",
|
|
7687
7687
|
{
|
|
@@ -7691,16 +7691,16 @@ const Wi = Ie("TriangleAlert", [
|
|
|
7691
7691
|
],
|
|
7692
7692
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
7693
7693
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
7694
|
-
]), Qn =
|
|
7694
|
+
]), Qn = yr([
|
|
7695
7695
|
!1,
|
|
7696
7696
|
() => {
|
|
7697
7697
|
}
|
|
7698
|
-
]),
|
|
7699
|
-
const e =
|
|
7698
|
+
]), Zi = () => {
|
|
7699
|
+
const e = mr(Qn);
|
|
7700
7700
|
if (!e)
|
|
7701
7701
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
7702
7702
|
return e;
|
|
7703
|
-
},
|
|
7703
|
+
}, Ul = (e) => {
|
|
7704
7704
|
const [t, r] = At(!1);
|
|
7705
7705
|
nt(() => {
|
|
7706
7706
|
const s = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), i = s === "dark" || !s && o.matches;
|
|
@@ -7713,12 +7713,12 @@ const Wi = Ie("TriangleAlert", [
|
|
|
7713
7713
|
return /* @__PURE__ */ C.jsx(Qn.Provider, { value: a, ...e });
|
|
7714
7714
|
};
|
|
7715
7715
|
globalThis.Prism = v, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js");
|
|
7716
|
-
const
|
|
7716
|
+
const Yi = ({
|
|
7717
7717
|
copyable: e = !0,
|
|
7718
7718
|
...t
|
|
7719
7719
|
}) => {
|
|
7720
|
-
const [r] =
|
|
7721
|
-
return t.code ? /* @__PURE__ */ C.jsx(
|
|
7720
|
+
const [r] = Zi(), [n, a] = At(!1);
|
|
7721
|
+
return t.code ? /* @__PURE__ */ C.jsx($i, { theme: r ? fr.vsDark : fr.github, ...t, children: ({ className: s, style: o, tokens: i, getLineProps: c, getTokenProps: l }) => /* @__PURE__ */ C.jsxs(
|
|
7722
7722
|
"pre",
|
|
7723
7723
|
{
|
|
7724
7724
|
className: ke(
|
|
@@ -7743,7 +7743,7 @@ const Zi = ({
|
|
|
7743
7743
|
`)
|
|
7744
7744
|
), setTimeout(() => a(!1), 2e3);
|
|
7745
7745
|
},
|
|
7746
|
-
children: n ? /* @__PURE__ */ C.jsx(
|
|
7746
|
+
children: n ? /* @__PURE__ */ C.jsx(Gi, { className: "text-emerald-600", size: 18 }) : /* @__PURE__ */ C.jsx(qi, { size: 18 })
|
|
7747
7747
|
}
|
|
7748
7748
|
),
|
|
7749
7749
|
t.showLanguageIndicator && /* @__PURE__ */ C.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t.language }),
|
|
@@ -7751,7 +7751,7 @@ const Zi = ({
|
|
|
7751
7751
|
]
|
|
7752
7752
|
}
|
|
7753
7753
|
) }) : null;
|
|
7754
|
-
},
|
|
7754
|
+
}, Qi = {
|
|
7755
7755
|
note: {
|
|
7756
7756
|
border: "border-gray-300 dark:border-zinc-800",
|
|
7757
7757
|
bg: "bg-gray-100 dark:bg-zinc-800/50",
|
|
@@ -7766,7 +7766,7 @@ const Zi = ({
|
|
|
7766
7766
|
iconColor: "text-green-600 dark:text-green-200",
|
|
7767
7767
|
titleColor: "text-green-700 dark:text-green-200",
|
|
7768
7768
|
textColor: "text-green-600 dark:text-green-50",
|
|
7769
|
-
Icon:
|
|
7769
|
+
Icon: Vi
|
|
7770
7770
|
},
|
|
7771
7771
|
info: {
|
|
7772
7772
|
border: "border-blue-400 dark:border-blue-900/60",
|
|
@@ -7782,7 +7782,7 @@ const Zi = ({
|
|
|
7782
7782
|
iconColor: "text-yellow-500 dark:text-yellow-300",
|
|
7783
7783
|
titleColor: "text-yellow-600 dark:text-yellow-300",
|
|
7784
7784
|
textColor: "text-yellow-700 dark:text-yellow-200",
|
|
7785
|
-
Icon:
|
|
7785
|
+
Icon: Ki
|
|
7786
7786
|
},
|
|
7787
7787
|
danger: {
|
|
7788
7788
|
border: "border-rose-400 dark:border-rose-800",
|
|
@@ -7790,10 +7790,10 @@ const Zi = ({
|
|
|
7790
7790
|
iconColor: "text-rose-400 dark:text-rose-300",
|
|
7791
7791
|
titleColor: "text-rose-800 dark:text-rose-300",
|
|
7792
7792
|
textColor: "text-rose-700 dark:text-rose-100",
|
|
7793
|
-
Icon:
|
|
7793
|
+
Icon: Wi
|
|
7794
7794
|
}
|
|
7795
7795
|
}, xe = ({ type: e, children: t, title: r, className: n }) => {
|
|
7796
|
-
const { border: a, bg: s, iconColor: o, titleColor: i, textColor: c, Icon: l } =
|
|
7796
|
+
const { border: a, bg: s, iconColor: o, titleColor: i, textColor: c, Icon: l } = Qi[e];
|
|
7797
7797
|
return /* @__PURE__ */ C.jsxs(
|
|
7798
7798
|
"div",
|
|
7799
7799
|
{
|
|
@@ -7820,7 +7820,7 @@ const Zi = ({
|
|
|
7820
7820
|
]
|
|
7821
7821
|
}
|
|
7822
7822
|
);
|
|
7823
|
-
},
|
|
7823
|
+
}, zl = {
|
|
7824
7824
|
img: (e) => /\.(mp4|webm|mov|avi)$/.test(e.src ?? "") ? /* @__PURE__ */ C.jsx("video", { src: e.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ C.jsx("img", { ...e, className: "rounded-md" }),
|
|
7825
7825
|
h1: ({ children: e, id: t }) => /* @__PURE__ */ C.jsx(Pe, { level: 1, id: t, children: e }),
|
|
7826
7826
|
h2: ({ children: e, id: t }) => /* @__PURE__ */ C.jsx(Pe, { level: 2, id: t, children: e }),
|
|
@@ -7841,7 +7841,7 @@ const Zi = ({
|
|
|
7841
7841
|
if (!r.inline) {
|
|
7842
7842
|
const a = e == null ? void 0 : e.match(/language?-(\w+)/);
|
|
7843
7843
|
return /* @__PURE__ */ C.jsx(
|
|
7844
|
-
|
|
7844
|
+
Yi,
|
|
7845
7845
|
{
|
|
7846
7846
|
language: (a == null ? void 0 : a[1]) ?? "markup",
|
|
7847
7847
|
className: "rounded-xl overflow-x-auto p-4 border border-border dark:!bg-foreground/10 dark:border-transparent",
|
|
@@ -7861,26 +7861,26 @@ const Zi = ({
|
|
|
7861
7861
|
}
|
|
7862
7862
|
);
|
|
7863
7863
|
}
|
|
7864
|
-
}, Xn =
|
|
7864
|
+
}, Xn = yr(
|
|
7865
7865
|
void 0
|
|
7866
|
-
),
|
|
7867
|
-
const e =
|
|
7866
|
+
), Gl = Xn.Provider, Nt = () => {
|
|
7867
|
+
const e = mr(Xn);
|
|
7868
7868
|
if (!e)
|
|
7869
7869
|
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
7870
7870
|
return e;
|
|
7871
|
-
},
|
|
7872
|
-
const { getApiIdentities: e } =
|
|
7871
|
+
}, ql = () => {
|
|
7872
|
+
const { getApiIdentities: e } = Nt();
|
|
7873
7873
|
return _n({
|
|
7874
7874
|
queryFn: e,
|
|
7875
7875
|
queryKey: ["api-identities"]
|
|
7876
7876
|
});
|
|
7877
|
-
},
|
|
7878
|
-
const { navigation: e } =
|
|
7877
|
+
}, Xi = () => {
|
|
7878
|
+
const { navigation: e } = Nt(), t = lt();
|
|
7879
7879
|
return e.find(
|
|
7880
7880
|
(r) => xt({ path: r.path, end: !1 }, t.pathname)
|
|
7881
7881
|
);
|
|
7882
|
-
},
|
|
7883
|
-
const { getNavigation: e } =
|
|
7882
|
+
}, Vl = () => {
|
|
7883
|
+
const { getNavigation: e } = Nt(), t = Xi(), r = (t == null ? void 0 : t.path) ?? "";
|
|
7884
7884
|
return _n({
|
|
7885
7885
|
queryFn: async () => ({
|
|
7886
7886
|
items: [...(t == null ? void 0 : t.categories) ?? [], ...await e(r)],
|
|
@@ -7888,6 +7888,23 @@ const Zi = ({
|
|
|
7888
7888
|
}),
|
|
7889
7889
|
queryKey: ["navigation", r]
|
|
7890
7890
|
});
|
|
7891
|
+
}, Hl = () => {
|
|
7892
|
+
const { authentication: e } = Nt(), t = fa(), r = typeof e < "u";
|
|
7893
|
+
return {
|
|
7894
|
+
isAuthEnabled: r,
|
|
7895
|
+
profile: t.profile,
|
|
7896
|
+
isAuthenticated: t.profile,
|
|
7897
|
+
login: async () => {
|
|
7898
|
+
if (!r)
|
|
7899
|
+
throw new Error("Authentication is not enabled.");
|
|
7900
|
+
await e.login();
|
|
7901
|
+
},
|
|
7902
|
+
logout: async () => {
|
|
7903
|
+
if (!r)
|
|
7904
|
+
throw new Error("Authentication is not enabled.");
|
|
7905
|
+
await e.logout(), window.location.href = "/";
|
|
7906
|
+
}
|
|
7907
|
+
};
|
|
7891
7908
|
};
|
|
7892
7909
|
function Jn(e) {
|
|
7893
7910
|
var t, r, n = "";
|
|
@@ -7896,11 +7913,11 @@ function Jn(e) {
|
|
|
7896
7913
|
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
7897
7914
|
return n;
|
|
7898
7915
|
}
|
|
7899
|
-
function
|
|
7916
|
+
function Ji() {
|
|
7900
7917
|
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Jn(e)) && (n && (n += " "), n += t);
|
|
7901
7918
|
return n;
|
|
7902
7919
|
}
|
|
7903
|
-
const an = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, sn =
|
|
7920
|
+
const an = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, sn = Ji, Wl = (e, t) => (r) => {
|
|
7904
7921
|
var n;
|
|
7905
7922
|
if ((t == null ? void 0 : t.variants) == null) return sn(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
7906
7923
|
const { variants: a, defaultVariants: s } = t, o = Object.keys(a).map((l) => {
|
|
@@ -7930,13 +7947,13 @@ const an = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, sn =
|
|
|
7930
7947
|
}, []);
|
|
7931
7948
|
return sn(e, o, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
7932
7949
|
};
|
|
7933
|
-
function
|
|
7950
|
+
function el(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
7934
7951
|
return function(a) {
|
|
7935
7952
|
if (e == null || e(a), r === !1 || !a.defaultPrevented)
|
|
7936
7953
|
return t == null ? void 0 : t(a);
|
|
7937
7954
|
};
|
|
7938
7955
|
}
|
|
7939
|
-
function
|
|
7956
|
+
function Kl(e, t) {
|
|
7940
7957
|
const r = w.createContext(t);
|
|
7941
7958
|
function n(s) {
|
|
7942
7959
|
const { children: o, ...i } = s, c = w.useMemo(() => i, Object.values(i));
|
|
@@ -7950,7 +7967,7 @@ function Hl(e, t) {
|
|
|
7950
7967
|
}
|
|
7951
7968
|
return n.displayName = e + "Provider", [n, a];
|
|
7952
7969
|
}
|
|
7953
|
-
function
|
|
7970
|
+
function tl(e, t = []) {
|
|
7954
7971
|
let r = [];
|
|
7955
7972
|
function n(s, o) {
|
|
7956
7973
|
const i = w.createContext(o), c = r.length;
|
|
@@ -7977,9 +7994,9 @@ function el(e, t = []) {
|
|
|
7977
7994
|
);
|
|
7978
7995
|
};
|
|
7979
7996
|
};
|
|
7980
|
-
return a.scopeName = e, [n,
|
|
7997
|
+
return a.scopeName = e, [n, rl(a, ...t)];
|
|
7981
7998
|
}
|
|
7982
|
-
function
|
|
7999
|
+
function rl(...e) {
|
|
7983
8000
|
const t = e[0];
|
|
7984
8001
|
if (e.length === 1) return t;
|
|
7985
8002
|
const r = () => {
|
|
@@ -8006,13 +8023,13 @@ function ea(e) {
|
|
|
8006
8023
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
8007
8024
|
}, []);
|
|
8008
8025
|
}
|
|
8009
|
-
function
|
|
8026
|
+
function nl({
|
|
8010
8027
|
prop: e,
|
|
8011
8028
|
defaultProp: t,
|
|
8012
8029
|
onChange: r = () => {
|
|
8013
8030
|
}
|
|
8014
8031
|
}) {
|
|
8015
|
-
const [n, a] =
|
|
8032
|
+
const [n, a] = al({ defaultProp: t, onChange: r }), s = e !== void 0, o = s ? e : n, i = ea(r), c = w.useCallback(
|
|
8016
8033
|
(l) => {
|
|
8017
8034
|
if (s) {
|
|
8018
8035
|
const u = typeof l == "function" ? l(e) : l;
|
|
@@ -8024,7 +8041,7 @@ function rl({
|
|
|
8024
8041
|
);
|
|
8025
8042
|
return [o, c];
|
|
8026
8043
|
}
|
|
8027
|
-
function
|
|
8044
|
+
function al({
|
|
8028
8045
|
defaultProp: e,
|
|
8029
8046
|
onChange: t
|
|
8030
8047
|
}) {
|
|
@@ -8035,42 +8052,42 @@ function nl({
|
|
|
8035
8052
|
}
|
|
8036
8053
|
var St = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
|
|
8037
8054
|
};
|
|
8038
|
-
function
|
|
8055
|
+
function sl(e, t) {
|
|
8039
8056
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
8040
8057
|
}
|
|
8041
8058
|
function ta(...e) {
|
|
8042
|
-
return (t) => e.forEach((r) =>
|
|
8059
|
+
return (t) => e.forEach((r) => sl(r, t));
|
|
8043
8060
|
}
|
|
8044
8061
|
function ra(...e) {
|
|
8045
8062
|
return w.useCallback(ta(...e), e);
|
|
8046
8063
|
}
|
|
8047
8064
|
var na = w.forwardRef((e, t) => {
|
|
8048
|
-
const { children: r, ...n } = e, a = w.Children.toArray(r), s = a.find(
|
|
8065
|
+
const { children: r, ...n } = e, a = w.Children.toArray(r), s = a.find(il);
|
|
8049
8066
|
if (s) {
|
|
8050
8067
|
const o = s.props.children, i = a.map((c) => c === s ? w.Children.count(o) > 1 ? w.Children.only(null) : w.isValidElement(o) ? o.props.children : null : c);
|
|
8051
|
-
return /* @__PURE__ */ C.jsx(
|
|
8068
|
+
return /* @__PURE__ */ C.jsx(hr, { ...n, ref: t, children: w.isValidElement(o) ? w.cloneElement(o, void 0, i) : null });
|
|
8052
8069
|
}
|
|
8053
|
-
return /* @__PURE__ */ C.jsx(
|
|
8070
|
+
return /* @__PURE__ */ C.jsx(hr, { ...n, ref: t, children: r });
|
|
8054
8071
|
});
|
|
8055
8072
|
na.displayName = "Slot";
|
|
8056
|
-
var
|
|
8073
|
+
var hr = w.forwardRef((e, t) => {
|
|
8057
8074
|
const { children: r, ...n } = e;
|
|
8058
8075
|
if (w.isValidElement(r)) {
|
|
8059
|
-
const a =
|
|
8076
|
+
const a = cl(r);
|
|
8060
8077
|
return w.cloneElement(r, {
|
|
8061
|
-
...
|
|
8078
|
+
...ll(n, r.props),
|
|
8062
8079
|
// @ts-ignore
|
|
8063
8080
|
ref: t ? ta(t, a) : a
|
|
8064
8081
|
});
|
|
8065
8082
|
}
|
|
8066
8083
|
return w.Children.count(r) > 1 ? w.Children.only(null) : null;
|
|
8067
8084
|
});
|
|
8068
|
-
|
|
8069
|
-
var
|
|
8070
|
-
function
|
|
8071
|
-
return w.isValidElement(e) && e.type ===
|
|
8085
|
+
hr.displayName = "SlotClone";
|
|
8086
|
+
var ol = ({ children: e }) => /* @__PURE__ */ C.jsx(C.Fragment, { children: e });
|
|
8087
|
+
function il(e) {
|
|
8088
|
+
return w.isValidElement(e) && e.type === ol;
|
|
8072
8089
|
}
|
|
8073
|
-
function
|
|
8090
|
+
function ll(e, t) {
|
|
8074
8091
|
const r = { ...t };
|
|
8075
8092
|
for (const n in t) {
|
|
8076
8093
|
const a = e[n], s = t[n];
|
|
@@ -8080,12 +8097,12 @@ function il(e, t) {
|
|
|
8080
8097
|
}
|
|
8081
8098
|
return { ...e, ...r };
|
|
8082
8099
|
}
|
|
8083
|
-
function
|
|
8100
|
+
function cl(e) {
|
|
8084
8101
|
var n, a;
|
|
8085
8102
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
8086
8103
|
return r ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
8087
8104
|
}
|
|
8088
|
-
var
|
|
8105
|
+
var ul = [
|
|
8089
8106
|
"a",
|
|
8090
8107
|
"button",
|
|
8091
8108
|
"div",
|
|
@@ -8102,26 +8119,26 @@ var cl = [
|
|
|
8102
8119
|
"span",
|
|
8103
8120
|
"svg",
|
|
8104
8121
|
"ul"
|
|
8105
|
-
], Or =
|
|
8122
|
+
], Or = ul.reduce((e, t) => {
|
|
8106
8123
|
const r = w.forwardRef((n, a) => {
|
|
8107
8124
|
const { asChild: s, ...o } = n, i = s ? na : t;
|
|
8108
8125
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C.jsx(i, { ...o, ref: a });
|
|
8109
8126
|
});
|
|
8110
8127
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
8111
8128
|
}, {});
|
|
8112
|
-
function
|
|
8113
|
-
e &&
|
|
8129
|
+
function Zl(e, t) {
|
|
8130
|
+
e && wr.flushSync(() => e.dispatchEvent(t));
|
|
8114
8131
|
}
|
|
8115
|
-
function
|
|
8132
|
+
function dl(e, t) {
|
|
8116
8133
|
return w.useReducer((r, n) => t[r][n] ?? r, e);
|
|
8117
8134
|
}
|
|
8118
8135
|
var aa = (e) => {
|
|
8119
|
-
const { present: t, children: r } = e, n =
|
|
8136
|
+
const { present: t, children: r } = e, n = pl(t), a = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), s = ra(n.ref, fl(a));
|
|
8120
8137
|
return typeof r == "function" || n.isPresent ? w.cloneElement(a, { ref: s }) : null;
|
|
8121
8138
|
};
|
|
8122
8139
|
aa.displayName = "Presence";
|
|
8123
|
-
function
|
|
8124
|
-
const [t, r] = w.useState(), n = w.useRef({}), a = w.useRef(e), s = w.useRef("none"), o = e ? "mounted" : "unmounted", [i, c] =
|
|
8140
|
+
function pl(e) {
|
|
8141
|
+
const [t, r] = w.useState(), n = w.useRef({}), a = w.useRef(e), s = w.useRef("none"), o = e ? "mounted" : "unmounted", [i, c] = dl(o, {
|
|
8125
8142
|
mounted: {
|
|
8126
8143
|
UNMOUNT: "unmounted",
|
|
8127
8144
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -8147,7 +8164,7 @@ function dl(e) {
|
|
|
8147
8164
|
if (t) {
|
|
8148
8165
|
const l = (u) => {
|
|
8149
8166
|
const E = ht(n.current).includes(u.animationName);
|
|
8150
|
-
u.target === t && E &&
|
|
8167
|
+
u.target === t && E && wr.flushSync(() => c("ANIMATION_END"));
|
|
8151
8168
|
}, d = (u) => {
|
|
8152
8169
|
u.target === t && (s.current = ht(n.current));
|
|
8153
8170
|
};
|
|
@@ -8166,20 +8183,20 @@ function dl(e) {
|
|
|
8166
8183
|
function ht(e) {
|
|
8167
8184
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
8168
8185
|
}
|
|
8169
|
-
function
|
|
8186
|
+
function fl(e) {
|
|
8170
8187
|
var n, a;
|
|
8171
8188
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
8172
8189
|
return r ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
8173
8190
|
}
|
|
8174
|
-
var
|
|
8175
|
-
}),
|
|
8176
|
-
function
|
|
8177
|
-
const [t, r] = w.useState(
|
|
8191
|
+
var hl = w.useId || (() => {
|
|
8192
|
+
}), gl = 0;
|
|
8193
|
+
function yl(e) {
|
|
8194
|
+
const [t, r] = w.useState(hl());
|
|
8178
8195
|
return St(() => {
|
|
8179
|
-
r((n) => n ?? String(
|
|
8196
|
+
r((n) => n ?? String(gl++));
|
|
8180
8197
|
}, [e]), t ? `radix-${t}` : "";
|
|
8181
8198
|
}
|
|
8182
|
-
var Fr = "Collapsible", [
|
|
8199
|
+
var Fr = "Collapsible", [ml, Yl] = tl(Fr), [bl, Ir] = ml(Fr), sa = w.forwardRef(
|
|
8183
8200
|
(e, t) => {
|
|
8184
8201
|
const {
|
|
8185
8202
|
__scopeCollapsible: r,
|
|
@@ -8188,17 +8205,17 @@ var Fr = "Collapsible", [yl, Kl] = el(Fr), [ml, Ir] = yl(Fr), sa = w.forwardRef(
|
|
|
8188
8205
|
disabled: s,
|
|
8189
8206
|
onOpenChange: o,
|
|
8190
8207
|
...i
|
|
8191
|
-
} = e, [c = !1, l] =
|
|
8208
|
+
} = e, [c = !1, l] = nl({
|
|
8192
8209
|
prop: n,
|
|
8193
8210
|
defaultProp: a,
|
|
8194
8211
|
onChange: o
|
|
8195
8212
|
});
|
|
8196
8213
|
return /* @__PURE__ */ C.jsx(
|
|
8197
|
-
|
|
8214
|
+
bl,
|
|
8198
8215
|
{
|
|
8199
8216
|
scope: r,
|
|
8200
8217
|
disabled: s,
|
|
8201
|
-
contentId:
|
|
8218
|
+
contentId: yl(),
|
|
8202
8219
|
open: c,
|
|
8203
8220
|
onOpenToggle: w.useCallback(() => l((d) => !d), [l]),
|
|
8204
8221
|
children: /* @__PURE__ */ C.jsx(
|
|
@@ -8229,7 +8246,7 @@ var oa = "CollapsibleTrigger", ia = w.forwardRef(
|
|
|
8229
8246
|
disabled: a.disabled,
|
|
8230
8247
|
...n,
|
|
8231
8248
|
ref: t,
|
|
8232
|
-
onClick:
|
|
8249
|
+
onClick: el(e.onClick, a.onOpenToggle)
|
|
8233
8250
|
}
|
|
8234
8251
|
);
|
|
8235
8252
|
}
|
|
@@ -8238,11 +8255,11 @@ ia.displayName = oa;
|
|
|
8238
8255
|
var Nr = "CollapsibleContent", la = w.forwardRef(
|
|
8239
8256
|
(e, t) => {
|
|
8240
8257
|
const { forceMount: r, ...n } = e, a = Ir(Nr, e.__scopeCollapsible);
|
|
8241
|
-
return /* @__PURE__ */ C.jsx(aa, { present: r || a.open, children: ({ present: s }) => /* @__PURE__ */ C.jsx(
|
|
8258
|
+
return /* @__PURE__ */ C.jsx(aa, { present: r || a.open, children: ({ present: s }) => /* @__PURE__ */ C.jsx(vl, { ...n, ref: t, present: s }) });
|
|
8242
8259
|
}
|
|
8243
8260
|
);
|
|
8244
8261
|
la.displayName = Nr;
|
|
8245
|
-
var
|
|
8262
|
+
var vl = w.forwardRef((e, t) => {
|
|
8246
8263
|
const { __scopeCollapsible: r, present: n, children: a, ...s } = e, o = Ir(Nr, r), [i, c] = w.useState(n), l = w.useRef(null), d = ra(t, l), u = w.useRef(0), y = u.current, E = w.useRef(0), p = E.current, f = o.open || i, h = w.useRef(f), b = w.useRef();
|
|
8247
8264
|
return w.useEffect(() => {
|
|
8248
8265
|
const g = requestAnimationFrame(() => h.current = !1);
|
|
@@ -8278,18 +8295,18 @@ var bl = w.forwardRef((e, t) => {
|
|
|
8278
8295
|
function Pr(e) {
|
|
8279
8296
|
return e ? "open" : "closed";
|
|
8280
8297
|
}
|
|
8281
|
-
var
|
|
8282
|
-
const
|
|
8298
|
+
var Ql = sa, Xl = ia, Jl = la;
|
|
8299
|
+
const wl = (...e) => {
|
|
8283
8300
|
const t = e.filter((r) => !!r).map((r) => r.replace(/(^\/+|\/+$)/g, "")).join("/");
|
|
8284
8301
|
return t ? `/${t}` : "";
|
|
8285
|
-
},
|
|
8302
|
+
}, ec = (e) => {
|
|
8286
8303
|
const t = lt(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (a) => {
|
|
8287
8304
|
var s;
|
|
8288
8305
|
!(r != null && r.startsWith("#")) || r !== t.hash || (a.preventDefault(), (s = document.getElementById(r.slice(1))) == null || s.scrollIntoView());
|
|
8289
8306
|
};
|
|
8290
8307
|
return /* @__PURE__ */ C.jsx(Ot, { onClick: n, ...e });
|
|
8291
8308
|
}, Lr = (e, t, r, n = []) => {
|
|
8292
|
-
const a = ca(e) ?
|
|
8309
|
+
const a = ca(e) ? wl(r, e.path) : r, s = t(e, a, n);
|
|
8293
8310
|
if (s !== void 0) return s;
|
|
8294
8311
|
if ("children" in e && e.children) {
|
|
8295
8312
|
const o = [...n, e];
|
|
@@ -8303,91 +8320,92 @@ const vl = (...e) => {
|
|
|
8303
8320
|
if (c !== void 0) return c;
|
|
8304
8321
|
}
|
|
8305
8322
|
}
|
|
8306
|
-
},
|
|
8323
|
+
}, tc = (e, t) => {
|
|
8307
8324
|
if (e.categories)
|
|
8308
8325
|
for (const r of e.categories) {
|
|
8309
8326
|
const n = Lr(r, t, e.path);
|
|
8310
8327
|
if (n !== void 0) return n;
|
|
8311
8328
|
}
|
|
8312
|
-
}, ca = (e) => "path" in e,
|
|
8329
|
+
}, ca = (e) => "path" in e, rc = (e) => "href" in e, nc = (e, t, r) => !!Lr(
|
|
8313
8330
|
e,
|
|
8314
8331
|
(n, a) => {
|
|
8315
8332
|
if (ca(n) && xt(a, t))
|
|
8316
8333
|
return !0;
|
|
8317
8334
|
},
|
|
8318
8335
|
r
|
|
8319
|
-
),
|
|
8336
|
+
), ac = ({ size: e = 16 }) => /* @__PURE__ */ C.jsx(Hi, { size: e, className: "animate-spin" });
|
|
8320
8337
|
export {
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8338
|
+
Pl as $,
|
|
8339
|
+
ec as A,
|
|
8340
|
+
Wl as B,
|
|
8341
|
+
Jl as C,
|
|
8342
|
+
Xi as D,
|
|
8343
|
+
Vl as E,
|
|
8344
|
+
ac as F,
|
|
8328
8345
|
Ml as G,
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8346
|
+
Dl as H,
|
|
8347
|
+
$l as I,
|
|
8348
|
+
zl as J,
|
|
8349
|
+
Nl as K,
|
|
8350
|
+
jl as L,
|
|
8351
|
+
Il as M,
|
|
8352
|
+
Ks as N,
|
|
8353
|
+
Gl as O,
|
|
8354
|
+
Al as P,
|
|
8355
|
+
Fl as Q,
|
|
8356
|
+
Ql as R,
|
|
8357
|
+
xr as S,
|
|
8358
|
+
Xl as T,
|
|
8359
|
+
Ul as U,
|
|
8360
|
+
Bl as V,
|
|
8361
|
+
Aa as W,
|
|
8362
|
+
Ot as X,
|
|
8363
|
+
Yt as Y,
|
|
8364
|
+
Pa as Z,
|
|
8365
|
+
Ma as _,
|
|
8366
|
+
Rl as a,
|
|
8367
|
+
Ga as a0,
|
|
8368
|
+
na as a1,
|
|
8369
|
+
tl as a2,
|
|
8370
|
+
ra as a3,
|
|
8371
|
+
ea as a4,
|
|
8372
|
+
Or as a5,
|
|
8373
|
+
el as a6,
|
|
8374
|
+
Zl as a7,
|
|
8375
|
+
St as a8,
|
|
8376
|
+
yl as a9,
|
|
8377
|
+
nl as aa,
|
|
8378
|
+
Gi as ab,
|
|
8379
|
+
_n as ac,
|
|
8380
|
+
tc as ad,
|
|
8381
|
+
Pe as ae,
|
|
8382
|
+
aa as af,
|
|
8383
|
+
Kl as ag,
|
|
8384
|
+
ql as ah,
|
|
8385
|
+
Yi as ai,
|
|
8386
|
+
Wt as b,
|
|
8387
|
+
Ol as c,
|
|
8388
|
+
_l as d,
|
|
8389
|
+
Ra as e,
|
|
8372
8390
|
vn as f,
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8391
|
+
Cl as g,
|
|
8392
|
+
Ca as h,
|
|
8393
|
+
Zt as i,
|
|
8376
8394
|
Ie as j,
|
|
8377
8395
|
sn as k,
|
|
8378
|
-
|
|
8379
|
-
|
|
8396
|
+
Zi as l,
|
|
8397
|
+
Tl as m,
|
|
8380
8398
|
Rt as n,
|
|
8381
8399
|
wn as o,
|
|
8382
|
-
|
|
8383
|
-
|
|
8400
|
+
Er as p,
|
|
8401
|
+
Hl as q,
|
|
8384
8402
|
gt as r,
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8403
|
+
Jt as s,
|
|
8404
|
+
jo as t,
|
|
8405
|
+
Nt as u,
|
|
8406
|
+
nc as v,
|
|
8407
|
+
ca as w,
|
|
8408
|
+
wl as x,
|
|
8409
|
+
rc as y,
|
|
8410
|
+
ke as z
|
|
8393
8411
|
};
|