zudoku 0.1.1-dev.32 → 0.1.1-dev.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.js +2 -0
- package/dist/app/App.js.map +1 -1
- package/dist/config/config.d.ts +2 -0
- package/dist/lib/components/Layout.js +1 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.d.ts +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.js +6 -6
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +6 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.d.ts +1 -0
- package/dist/lib/plugins/api-key/index.js +13 -17
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/index.js +0 -1
- package/dist/lib/plugins/index.js.map +1 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +21 -16
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +4 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +1 -2
- package/dist/lib/util/createVariantComponent.d.ts +4 -3
- package/dist/lib/util/createVariantComponent.js +9 -5
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +4 -0
- package/dist/vite/plugin-redirect.js +32 -0
- package/dist/vite/plugin-redirect.js.map +1 -0
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{util-CJko6Ria.js → util-BJVAslZ-.js} +358 -351
- package/lib/zudoku.components.js +103 -106
- package/lib/zudoku.plugins.js +2691 -2681
- package/package.json +1 -1
- package/src/app/App.tsx +2 -0
- package/src/lib/components/Layout.tsx +8 -9
- package/src/lib/components/navigation/SideNavigationItem.tsx +10 -7
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +9 -3
- package/src/lib/plugins/api-key/index.tsx +17 -19
- package/src/lib/plugins/index.ts +0 -1
- package/src/lib/plugins/openapi/MakeRequest.tsx +32 -25
- package/src/lib/plugins/openapi/playground/Playground.tsx +8 -8
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +8 -3
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/util/createVariantComponent.tsx +11 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Fi = Object.defineProperty;
|
|
2
|
+
var Na = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var ft = (e, t, r) =>
|
|
7
|
-
var R = (e, t, r) => (Cn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), se = (e, t, r) => t.has(e) ?
|
|
5
|
+
var Pi = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var ft = (e, t, r) => Pi(e, typeof t != "symbol" ? t + "" : t, r), Cn = (e, t, r) => t.has(e) || Na("Cannot " + r);
|
|
7
|
+
var R = (e, t, r) => (Cn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), se = (e, t, r) => t.has(e) ? Na("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), H = (e, t, r, n) => (Cn(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), ne = (e, t, r) => (Cn(e, t, "access private method"), r);
|
|
8
8
|
import * as E from "react";
|
|
9
|
-
import ot, { Component as da, createContext as fa, useState as dn, useRef as cr, useEffect as Ar, useMemo as In, useCallback as _r, useContext as pa, createElement as sn, forwardRef as
|
|
9
|
+
import ot, { Component as da, createContext as fa, useState as dn, useRef as cr, useEffect as Ar, useMemo as In, useCallback as _r, useContext as pa, createElement as sn, forwardRef as _o } from "react";
|
|
10
10
|
import * as ha from "react-dom";
|
|
11
11
|
var Md = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12
12
|
function ga(e) {
|
|
@@ -41,10 +41,10 @@ var jn = { exports: {} }, mr = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
47
|
-
|
|
44
|
+
var La;
|
|
45
|
+
function Di() {
|
|
46
|
+
if (La) return mr;
|
|
47
|
+
La = 1;
|
|
48
48
|
var e = ot, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
49
49
|
function o(s, l, u) {
|
|
50
50
|
var c, d = {}, p = null, x = null;
|
|
@@ -65,9 +65,9 @@ var br = {};
|
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
return
|
|
68
|
+
var Ia;
|
|
69
|
+
function Ni() {
|
|
70
|
+
return Ia || (Ia = 1, process.env.NODE_ENV !== "production" && function() {
|
|
71
71
|
var e = ot, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
|
|
72
72
|
function y(f) {
|
|
73
73
|
if (f === null || typeof f != "object")
|
|
@@ -659,7 +659,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
659
659
|
br.Fragment = n, br.jsx = ke, br.jsxs = z;
|
|
660
660
|
}()), br;
|
|
661
661
|
}
|
|
662
|
-
process.env.NODE_ENV === "production" ? jn.exports =
|
|
662
|
+
process.env.NODE_ENV === "production" ? jn.exports = Di() : jn.exports = Ni();
|
|
663
663
|
var q = jn.exports, ya = class {
|
|
664
664
|
constructor() {
|
|
665
665
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -685,7 +685,7 @@ function $d(e, t) {
|
|
|
685
685
|
function Un(e) {
|
|
686
686
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Oo(e, t) {
|
|
689
689
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
690
690
|
}
|
|
691
691
|
function tn(e, t) {
|
|
@@ -705,7 +705,7 @@ function Bd(e, t) {
|
|
|
705
705
|
} = e;
|
|
706
706
|
if (o) {
|
|
707
707
|
if (n) {
|
|
708
|
-
if (t.queryHash !==
|
|
708
|
+
if (t.queryHash !== Li(o, t.options))
|
|
709
709
|
return !1;
|
|
710
710
|
} else if (!ma(t.queryKey, o))
|
|
711
711
|
return !1;
|
|
@@ -730,7 +730,7 @@ function zd(e, t) {
|
|
|
730
730
|
}
|
|
731
731
|
return !(n && t.state.status !== n || a && !a(t));
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Li(e, t) {
|
|
734
734
|
return ((t == null ? void 0 : t.queryKeyHashFn) || $n)(e);
|
|
735
735
|
}
|
|
736
736
|
function $n(e) {
|
|
@@ -742,16 +742,16 @@ function $n(e) {
|
|
|
742
742
|
function ma(e, t) {
|
|
743
743
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((r) => !ma(e[r], t[r])) : !1;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Fo(e, t) {
|
|
746
746
|
if (e === t)
|
|
747
747
|
return e;
|
|
748
|
-
const r =
|
|
748
|
+
const r = ja(e) && ja(t);
|
|
749
749
|
if (r || zn(e) && zn(t)) {
|
|
750
750
|
const n = r ? e : Object.keys(e), a = n.length, i = r ? t : Object.keys(t), o = i.length, s = r ? [] : {};
|
|
751
751
|
let l = 0;
|
|
752
752
|
for (let u = 0; u < o; u++) {
|
|
753
753
|
const c = r ? u : i[u];
|
|
754
|
-
(!r && n.includes(c) || r) && e[c] === void 0 && t[c] === void 0 ? (s[c] = void 0, l++) : (s[c] =
|
|
754
|
+
(!r && n.includes(c) || r) && e[c] === void 0 && t[c] === void 0 ? (s[c] = void 0, l++) : (s[c] = Fo(e[c], t[c]), s[c] === e[c] && e[c] !== void 0 && l++);
|
|
755
755
|
}
|
|
756
756
|
return a === o && l === a ? e : s;
|
|
757
757
|
}
|
|
@@ -765,28 +765,28 @@ function Bn(e, t) {
|
|
|
765
765
|
return !1;
|
|
766
766
|
return !0;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function ja(e) {
|
|
769
769
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
770
770
|
}
|
|
771
771
|
function zn(e) {
|
|
772
|
-
if (!
|
|
772
|
+
if (!Ma(e))
|
|
773
773
|
return !1;
|
|
774
774
|
const t = e.constructor;
|
|
775
775
|
if (t === void 0)
|
|
776
776
|
return !0;
|
|
777
777
|
const r = t.prototype;
|
|
778
|
-
return !(!
|
|
778
|
+
return !(!Ma(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Ma(e) {
|
|
781
781
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Ii(e) {
|
|
784
784
|
return new Promise((t) => {
|
|
785
785
|
setTimeout(t, e);
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
function Vn(e, t, r) {
|
|
789
|
-
return typeof r.structuralSharing == "function" ? r.structuralSharing(e, t) : r.structuralSharing !== !1 ?
|
|
789
|
+
return typeof r.structuralSharing == "function" ? r.structuralSharing(e, t) : r.structuralSharing !== !1 ? Fo(e, t) : t;
|
|
790
790
|
}
|
|
791
791
|
function Vd(e, t, r = 0) {
|
|
792
792
|
const n = [...e, t];
|
|
@@ -796,9 +796,9 @@ function Gd(e, t, r = 0) {
|
|
|
796
796
|
const n = [t, ...e];
|
|
797
797
|
return r && n.length > r ? n.slice(0, -1) : n;
|
|
798
798
|
}
|
|
799
|
-
var Gn = Symbol(),
|
|
799
|
+
var Gn = Symbol(), ji = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === Gn && console.error(
|
|
800
800
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
801
|
-
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Gn ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), Lt, wt, tr,
|
|
801
|
+
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Gn ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), Lt, wt, tr, So, Mi = (So = class extends ya {
|
|
802
802
|
constructor() {
|
|
803
803
|
super();
|
|
804
804
|
se(this, Lt);
|
|
@@ -839,7 +839,7 @@ var Gn = Symbol(), Ii = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
|
|
|
839
839
|
var t;
|
|
840
840
|
return typeof R(this, Lt) == "boolean" ? R(this, Lt) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
841
841
|
}
|
|
842
|
-
}, Lt = new WeakMap(), wt = new WeakMap(), tr = new WeakMap(),
|
|
842
|
+
}, Lt = new WeakMap(), wt = new WeakMap(), tr = new WeakMap(), So), Po = new Mi(), rr, Et, nr, Ro, Ui = (Ro = class extends ya {
|
|
843
843
|
constructor() {
|
|
844
844
|
super();
|
|
845
845
|
se(this, rr, !0);
|
|
@@ -873,33 +873,33 @@ var Gn = Symbol(), Ii = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
|
|
|
873
873
|
isOnline() {
|
|
874
874
|
return R(this, rr);
|
|
875
875
|
}
|
|
876
|
-
}, rr = new WeakMap(), Et = new WeakMap(), nr = new WeakMap(),
|
|
877
|
-
function
|
|
876
|
+
}, rr = new WeakMap(), Et = new WeakMap(), nr = new WeakMap(), Ro), Do = new Ui();
|
|
877
|
+
function $i(e) {
|
|
878
878
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
return (e ?? "online") === "online" ?
|
|
880
|
+
function No(e) {
|
|
881
|
+
return (e ?? "online") === "online" ? Do.isOnline() : !0;
|
|
882
882
|
}
|
|
883
|
-
var
|
|
883
|
+
var Lo = class {
|
|
884
884
|
constructor(e) {
|
|
885
885
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
888
|
function Tn(e) {
|
|
889
|
-
return e instanceof
|
|
889
|
+
return e instanceof Lo;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function Io(e) {
|
|
892
892
|
let t = !1, r = 0, n = !1, a, i, o;
|
|
893
893
|
const s = new Promise((v, m) => {
|
|
894
894
|
i = v, o = m;
|
|
895
895
|
}), l = (v) => {
|
|
896
896
|
var m;
|
|
897
|
-
n || (g(new
|
|
897
|
+
n || (g(new Lo(v)), (m = e.abort) == null || m.call(e));
|
|
898
898
|
}, u = () => {
|
|
899
899
|
t = !0;
|
|
900
900
|
}, c = () => {
|
|
901
901
|
t = !1;
|
|
902
|
-
}, d = () =>
|
|
902
|
+
}, d = () => Po.isFocused() && (e.networkMode === "always" || Do.isOnline()) && e.canRun(), p = () => No(e.networkMode) && e.canRun(), x = (v) => {
|
|
903
903
|
var m;
|
|
904
904
|
n || (n = !0, (m = e.onSuccess) == null || m.call(e, v), a == null || a(), i(v));
|
|
905
905
|
}, g = (v) => {
|
|
@@ -927,12 +927,12 @@ function Lo(e) {
|
|
|
927
927
|
var F;
|
|
928
928
|
if (n)
|
|
929
929
|
return;
|
|
930
|
-
const O = e.retry ?? (dr ? 0 : 3), I = e.retryDelay ??
|
|
930
|
+
const O = e.retry ?? (dr ? 0 : 3), I = e.retryDelay ?? $i, J = typeof I == "function" ? I(r, k) : I, w = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, k);
|
|
931
931
|
if (t || !w) {
|
|
932
932
|
g(k);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
r++, (F = e.onFail) == null || F.call(e, r, k),
|
|
935
|
+
r++, (F = e.onFail) == null || F.call(e, r, k), Ii(J).then(() => d() ? void 0 : h()).then(() => {
|
|
936
936
|
t ? g(k) : y();
|
|
937
937
|
});
|
|
938
938
|
});
|
|
@@ -947,7 +947,7 @@ function Lo(e) {
|
|
|
947
947
|
start: () => (p() ? y() : h().then(y), s)
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Bi() {
|
|
951
951
|
let e = [], t = 0, r = (p) => {
|
|
952
952
|
p();
|
|
953
953
|
}, n = (p) => {
|
|
@@ -995,7 +995,7 @@ function $i() {
|
|
|
995
995
|
setScheduler: i
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
var fn =
|
|
998
|
+
var fn = Bi(), It, ko, jo = (ko = class {
|
|
999
999
|
constructor() {
|
|
1000
1000
|
se(this, It);
|
|
1001
1001
|
}
|
|
@@ -1016,7 +1016,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1016
1016
|
clearGcTimeout() {
|
|
1017
1017
|
R(this, It) && (clearTimeout(R(this, It)), H(this, It, void 0));
|
|
1018
1018
|
}
|
|
1019
|
-
}, It = new WeakMap(),
|
|
1019
|
+
}, It = new WeakMap(), ko), ar, or, ze, _e, Dr, jt, Ye, ht, Co, Hd = (Co = class extends jo {
|
|
1020
1020
|
constructor(t) {
|
|
1021
1021
|
super();
|
|
1022
1022
|
se(this, Ye);
|
|
@@ -1026,7 +1026,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1026
1026
|
se(this, _e);
|
|
1027
1027
|
se(this, Dr);
|
|
1028
1028
|
se(this, jt);
|
|
1029
|
-
H(this, jt, !1), H(this, Dr, t.defaultOptions), this.setOptions(t.options), this.observers = [], H(this, ze, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, H(this, ar, t.state ||
|
|
1029
|
+
H(this, jt, !1), H(this, Dr, t.defaultOptions), this.setOptions(t.options), this.observers = [], H(this, ze, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, H(this, ar, t.state || zi(this.options)), this.state = R(this, ar), this.scheduleGc();
|
|
1030
1030
|
}
|
|
1031
1031
|
get meta() {
|
|
1032
1032
|
return this.options.meta;
|
|
@@ -1078,7 +1078,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1078
1078
|
) : this.state.data === void 0;
|
|
1079
1079
|
}
|
|
1080
1080
|
isStaleByTime(t = 0) {
|
|
1081
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
1081
|
+
return this.state.isInvalidated || this.state.data === void 0 || !Oo(this.state.dataUpdatedAt, t);
|
|
1082
1082
|
}
|
|
1083
1083
|
onFocus() {
|
|
1084
1084
|
var r;
|
|
@@ -1123,7 +1123,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1123
1123
|
get: () => (H(this, jt, !0), n.signal)
|
|
1124
1124
|
});
|
|
1125
1125
|
}, i = () => {
|
|
1126
|
-
const d =
|
|
1126
|
+
const d = ji(this.options, r), p = {
|
|
1127
1127
|
queryKey: this.queryKey,
|
|
1128
1128
|
meta: this.meta
|
|
1129
1129
|
};
|
|
@@ -1159,7 +1159,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1159
1159
|
this
|
|
1160
1160
|
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
1161
1161
|
};
|
|
1162
|
-
return H(this, _e,
|
|
1162
|
+
return H(this, _e, Io({
|
|
1163
1163
|
initialPromise: r == null ? void 0 : r.initialPromise,
|
|
1164
1164
|
fn: o.fetchFn,
|
|
1165
1165
|
abort: n.abort.bind(n),
|
|
@@ -1216,7 +1216,7 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1216
1216
|
case "fetch":
|
|
1217
1217
|
return {
|
|
1218
1218
|
...n,
|
|
1219
|
-
...
|
|
1219
|
+
...Mo(n.data, this.options),
|
|
1220
1220
|
fetchMeta: t.meta ?? null
|
|
1221
1221
|
};
|
|
1222
1222
|
case "success":
|
|
@@ -1263,19 +1263,19 @@ var fn = $i(), It, Ro, Io = (Ro = class {
|
|
|
1263
1263
|
n.onQueryUpdate();
|
|
1264
1264
|
}), R(this, ze).notify({ query: this, type: "updated", action: t });
|
|
1265
1265
|
});
|
|
1266
|
-
},
|
|
1267
|
-
function
|
|
1266
|
+
}, Co);
|
|
1267
|
+
function Mo(e, t) {
|
|
1268
1268
|
return {
|
|
1269
1269
|
fetchFailureCount: 0,
|
|
1270
1270
|
fetchFailureReason: null,
|
|
1271
|
-
fetchStatus:
|
|
1271
|
+
fetchStatus: No(t.networkMode) ? "fetching" : "paused",
|
|
1272
1272
|
...e === void 0 && {
|
|
1273
1273
|
error: null,
|
|
1274
1274
|
status: "pending"
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function zi(e) {
|
|
1279
1279
|
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;
|
|
1280
1280
|
return {
|
|
1281
1281
|
data: t,
|
|
@@ -1292,14 +1292,14 @@ function Bi(e) {
|
|
|
1292
1292
|
fetchStatus: "idle"
|
|
1293
1293
|
};
|
|
1294
1294
|
}
|
|
1295
|
-
var rt, De, Mt, nt, bt,
|
|
1295
|
+
var rt, De, Mt, nt, bt, To, Wd = (To = class extends jo {
|
|
1296
1296
|
constructor(t) {
|
|
1297
1297
|
super();
|
|
1298
1298
|
se(this, nt);
|
|
1299
1299
|
se(this, rt);
|
|
1300
1300
|
se(this, De);
|
|
1301
1301
|
se(this, Mt);
|
|
1302
|
-
this.mutationId = t.mutationId, H(this, De, t.mutationCache), H(this, rt, []), this.state = t.state ||
|
|
1302
|
+
this.mutationId = t.mutationId, H(this, De, t.mutationCache), H(this, rt, []), this.state = t.state || Vi(), this.setOptions(t.options), this.scheduleGc();
|
|
1303
1303
|
}
|
|
1304
1304
|
setOptions(t) {
|
|
1305
1305
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -1331,7 +1331,7 @@ var rt, De, Mt, nt, bt, Co, Wd = (Co = class extends Io {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
async execute(t) {
|
|
1333
1333
|
var a, i, o, s, l, u, c, d, p, x, g, h, y, v, m, k, O, I, J, w;
|
|
1334
|
-
H(this, Mt,
|
|
1334
|
+
H(this, Mt, Io({
|
|
1335
1335
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
1336
1336
|
onFail: (F, L) => {
|
|
1337
1337
|
ne(this, nt, bt).call(this, { type: "failed", failureCount: F, error: L });
|
|
@@ -1475,8 +1475,8 @@ var rt, De, Mt, nt, bt, Co, Wd = (Co = class extends Io {
|
|
|
1475
1475
|
action: t
|
|
1476
1476
|
});
|
|
1477
1477
|
});
|
|
1478
|
-
},
|
|
1479
|
-
function
|
|
1478
|
+
}, To);
|
|
1479
|
+
function Vi() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
context: void 0,
|
|
1482
1482
|
data: void 0,
|
|
@@ -1489,7 +1489,7 @@ function zi() {
|
|
|
1489
1489
|
submittedAt: 0
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn, Kn, Yn, Zn, Qn,
|
|
1492
|
+
var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn, Kn, Yn, Zn, Qn, Uo, Ao, Gi = (Ao = class extends ya {
|
|
1493
1493
|
constructor(t, r) {
|
|
1494
1494
|
super();
|
|
1495
1495
|
se(this, ue);
|
|
@@ -1515,7 +1515,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1515
1515
|
this.refetch = this.refetch.bind(this);
|
|
1516
1516
|
}
|
|
1517
1517
|
onSubscribe() {
|
|
1518
|
-
this.listeners.size === 1 && (R(this, ae).addObserver(this),
|
|
1518
|
+
this.listeners.size === 1 && (R(this, ae).addObserver(this), Ua(R(this, ae), this.options) ? ne(this, ue, Cr).call(this) : this.updateResult(), ne(this, ue, Kn).call(this));
|
|
1519
1519
|
}
|
|
1520
1520
|
onUnsubscribe() {
|
|
1521
1521
|
this.hasListeners() || this.destroy();
|
|
@@ -1549,7 +1549,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1549
1549
|
observer: this
|
|
1550
1550
|
});
|
|
1551
1551
|
const i = this.hasListeners();
|
|
1552
|
-
i &&
|
|
1552
|
+
i && $a(
|
|
1553
1553
|
R(this, ae),
|
|
1554
1554
|
a,
|
|
1555
1555
|
this.options,
|
|
@@ -1560,7 +1560,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1560
1560
|
}
|
|
1561
1561
|
getOptimisticResult(t) {
|
|
1562
1562
|
const r = R(this, je).getQueryCache().build(R(this, je), t), n = this.createResult(r, t);
|
|
1563
|
-
return
|
|
1563
|
+
return Wi(this, n) && (H(this, Ne, n), H(this, ir, this.options), H(this, Ut, R(this, ae).state)), n;
|
|
1564
1564
|
}
|
|
1565
1565
|
getCurrentResult() {
|
|
1566
1566
|
return R(this, Ne);
|
|
@@ -1601,10 +1601,10 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1601
1601
|
const n = R(this, ae), a = this.options, i = R(this, Ne), o = R(this, Ut), s = R(this, ir), u = t !== n ? t.state : R(this, Nr), { state: c } = t;
|
|
1602
1602
|
let d = { ...c }, p = !1, x;
|
|
1603
1603
|
if (r._optimisticResults) {
|
|
1604
|
-
const F = this.hasListeners(), L = !F &&
|
|
1604
|
+
const F = this.hasListeners(), L = !F && Ua(t, r), B = F && $a(t, n, r, a);
|
|
1605
1605
|
(L || B) && (d = {
|
|
1606
1606
|
...d,
|
|
1607
|
-
...
|
|
1607
|
+
...Mo(c.data, t.options)
|
|
1608
1608
|
}), r._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
1609
1609
|
}
|
|
1610
1610
|
let { error: g, errorUpdatedAt: h, status: y } = d;
|
|
@@ -1686,7 +1686,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1686
1686
|
return R(this, Ne)[c] !== r[c] && l.has(c);
|
|
1687
1687
|
});
|
|
1688
1688
|
};
|
|
1689
|
-
(t == null ? void 0 : t.listeners) !== !1 && i() && (a.listeners = !0), ne(this, ue,
|
|
1689
|
+
(t == null ? void 0 : t.listeners) !== !1 && i() && (a.listeners = !0), ne(this, ue, Uo).call(this, { ...a, ...t });
|
|
1690
1690
|
}
|
|
1691
1691
|
onQueryUpdate() {
|
|
1692
1692
|
this.updateResult(), this.hasListeners() && ne(this, ue, Kn).call(this);
|
|
@@ -1706,7 +1706,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1706
1706
|
);
|
|
1707
1707
|
if (dr || R(this, Ne).isStale || !Un(t))
|
|
1708
1708
|
return;
|
|
1709
|
-
const n =
|
|
1709
|
+
const n = Oo(R(this, Ne).dataUpdatedAt, t) + 1;
|
|
1710
1710
|
H(this, $t, setTimeout(() => {
|
|
1711
1711
|
R(this, Ne).isStale || this.updateResult();
|
|
1712
1712
|
}, n));
|
|
@@ -1714,7 +1714,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1714
1714
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(R(this, ae)) : this.options.refetchInterval) ?? !1;
|
|
1715
1715
|
}, qn = function(t) {
|
|
1716
1716
|
ne(this, ue, Zn).call(this), H(this, xt, t), !(dr || Qe(this.options.enabled, R(this, ae)) === !1 || !Un(R(this, xt)) || R(this, xt) === 0) && H(this, Bt, setInterval(() => {
|
|
1717
|
-
(this.options.refetchIntervalInBackground ||
|
|
1717
|
+
(this.options.refetchIntervalInBackground || Po.isFocused()) && ne(this, ue, Cr).call(this);
|
|
1718
1718
|
}, R(this, xt)));
|
|
1719
1719
|
}, Kn = function() {
|
|
1720
1720
|
ne(this, ue, Hn).call(this), ne(this, ue, qn).call(this, ne(this, ue, Wn).call(this));
|
|
@@ -1728,7 +1728,7 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1728
1728
|
return;
|
|
1729
1729
|
const r = R(this, ae);
|
|
1730
1730
|
H(this, ae, t), H(this, Nr, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
|
1731
|
-
},
|
|
1731
|
+
}, Uo = function(t) {
|
|
1732
1732
|
fn.batch(() => {
|
|
1733
1733
|
t.listeners && this.listeners.forEach((r) => {
|
|
1734
1734
|
r(R(this, Ne));
|
|
@@ -1737,12 +1737,12 @@ var je, ae, Nr, Ne, Ut, ir, at, Lr, sr, lr, $t, Bt, xt, ur, ue, Cr, Hn, Wn, qn,
|
|
|
1737
1737
|
type: "observerResultsUpdated"
|
|
1738
1738
|
});
|
|
1739
1739
|
});
|
|
1740
|
-
},
|
|
1741
|
-
function
|
|
1740
|
+
}, Ao);
|
|
1741
|
+
function Hi(e, t) {
|
|
1742
1742
|
return Qe(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return
|
|
1744
|
+
function Ua(e, t) {
|
|
1745
|
+
return Hi(e, t) || e.state.data !== void 0 && Xn(e, t, t.refetchOnMount);
|
|
1746
1746
|
}
|
|
1747
1747
|
function Xn(e, t, r) {
|
|
1748
1748
|
if (Qe(t.enabled, e) !== !1) {
|
|
@@ -1751,19 +1751,19 @@ function Xn(e, t, r) {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
return !1;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function $a(e, t, r, n) {
|
|
1755
1755
|
return (e !== t || Qe(n.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && ba(e, r);
|
|
1756
1756
|
}
|
|
1757
1757
|
function ba(e, t) {
|
|
1758
1758
|
return Qe(t.enabled, e) !== !1 && e.isStaleByTime(tn(t.staleTime, e));
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Wi(e, t) {
|
|
1761
1761
|
return !Bn(e.getCurrentResult(), t);
|
|
1762
1762
|
}
|
|
1763
|
-
var
|
|
1763
|
+
var $o = E.createContext(
|
|
1764
1764
|
void 0
|
|
1765
|
-
),
|
|
1766
|
-
const t = E.useContext(
|
|
1765
|
+
), qi = (e) => {
|
|
1766
|
+
const t = E.useContext($o);
|
|
1767
1767
|
if (!t)
|
|
1768
1768
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1769
1769
|
return t;
|
|
@@ -1772,9 +1772,9 @@ var Uo = E.createContext(
|
|
|
1772
1772
|
children: t
|
|
1773
1773
|
}) => (E.useEffect(() => (e.mount(), () => {
|
|
1774
1774
|
e.unmount();
|
|
1775
|
-
}), [e]), /* @__PURE__ */ q.jsx(
|
|
1776
|
-
|
|
1777
|
-
function
|
|
1775
|
+
}), [e]), /* @__PURE__ */ q.jsx($o.Provider, { value: e, children: t })), Bo = E.createContext(!1), Ki = () => E.useContext(Bo);
|
|
1776
|
+
Bo.Provider;
|
|
1777
|
+
function Yi() {
|
|
1778
1778
|
let e = !1;
|
|
1779
1779
|
return {
|
|
1780
1780
|
clearReset: () => {
|
|
@@ -1786,39 +1786,39 @@ function Ki() {
|
|
|
1786
1786
|
isReset: () => e
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
|
-
var
|
|
1790
|
-
function
|
|
1789
|
+
var Zi = E.createContext(Yi()), Qi = () => E.useContext(Zi);
|
|
1790
|
+
function Xi(e, t) {
|
|
1791
1791
|
return typeof e == "function" ? e(...t) : !!e;
|
|
1792
1792
|
}
|
|
1793
1793
|
function Kd() {
|
|
1794
1794
|
}
|
|
1795
|
-
var
|
|
1795
|
+
var Ji = (e, t) => {
|
|
1796
1796
|
(e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
|
|
1797
|
-
},
|
|
1797
|
+
}, es = (e) => {
|
|
1798
1798
|
E.useEffect(() => {
|
|
1799
1799
|
e.clearReset();
|
|
1800
1800
|
}, [e]);
|
|
1801
|
-
},
|
|
1801
|
+
}, ts = ({
|
|
1802
1802
|
result: e,
|
|
1803
1803
|
errorResetBoundary: t,
|
|
1804
1804
|
throwOnError: r,
|
|
1805
1805
|
query: n
|
|
1806
|
-
}) => e.isError && !t.isReset() && !e.isFetching && n &&
|
|
1806
|
+
}) => e.isError && !t.isReset() && !e.isFetching && n && Xi(r, [e.error, n]), rs = (e, t) => t.state.data === void 0, ns = (e) => {
|
|
1807
1807
|
e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
|
|
1808
|
-
},
|
|
1808
|
+
}, as = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, os = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
1809
1809
|
r.clearReset();
|
|
1810
1810
|
});
|
|
1811
|
-
function
|
|
1811
|
+
function is(e, t, r) {
|
|
1812
1812
|
var u, c, d, p;
|
|
1813
1813
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1814
1814
|
throw new Error(
|
|
1815
1815
|
'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'
|
|
1816
1816
|
);
|
|
1817
|
-
const n =
|
|
1817
|
+
const n = qi(), a = Ki(), i = Qi(), o = n.defaultQueryOptions(e);
|
|
1818
1818
|
(c = (u = n.getDefaultOptions().queries) == null ? void 0 : u._experimental_beforeQuery) == null || c.call(
|
|
1819
1819
|
u,
|
|
1820
1820
|
o
|
|
1821
|
-
), o._optimisticResults = a ? "isRestoring" : "optimistic",
|
|
1821
|
+
), o._optimisticResults = a ? "isRestoring" : "optimistic", ns(o), Ji(o, i), es(i);
|
|
1822
1822
|
const [s] = E.useState(
|
|
1823
1823
|
() => new t(
|
|
1824
1824
|
n,
|
|
@@ -1838,9 +1838,9 @@ function os(e, t, r) {
|
|
|
1838
1838
|
() => s.getCurrentResult()
|
|
1839
1839
|
), E.useEffect(() => {
|
|
1840
1840
|
s.setOptions(o, { listeners: !1 });
|
|
1841
|
-
}, [o, s]),
|
|
1842
|
-
throw
|
|
1843
|
-
if (
|
|
1841
|
+
}, [o, s]), as(o, l))
|
|
1842
|
+
throw os(o, s, i);
|
|
1843
|
+
if (ts({
|
|
1844
1844
|
result: l,
|
|
1845
1845
|
errorResetBoundary: i,
|
|
1846
1846
|
throwOnError: o.throwOnError,
|
|
@@ -1853,16 +1853,16 @@ function os(e, t, r) {
|
|
|
1853
1853
|
l
|
|
1854
1854
|
), o.notifyOnChangeProps ? l : s.trackResult(l);
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1857
|
-
return process.env.NODE_ENV !== "production" && e.queryFn === Gn && console.error("skipToken is not allowed for useSuspenseQuery"),
|
|
1856
|
+
function zo(e, t) {
|
|
1857
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Gn && console.error("skipToken is not allowed for useSuspenseQuery"), is(
|
|
1858
1858
|
{
|
|
1859
1859
|
...e,
|
|
1860
1860
|
enabled: !0,
|
|
1861
1861
|
suspense: !0,
|
|
1862
|
-
throwOnError:
|
|
1862
|
+
throwOnError: rs,
|
|
1863
1863
|
placeholderData: void 0
|
|
1864
1864
|
},
|
|
1865
|
-
|
|
1865
|
+
Gi
|
|
1866
1866
|
);
|
|
1867
1867
|
}
|
|
1868
1868
|
var ss = typeof Element < "u", ls = typeof Map == "function", us = typeof Set == "function", cs = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
@@ -1942,7 +1942,7 @@ var ps = function(e, t, r, n, a, i, o, s) {
|
|
|
1942
1942
|
throw l.framesToPop = 1, l;
|
|
1943
1943
|
}
|
|
1944
1944
|
}, hs = ps;
|
|
1945
|
-
const
|
|
1945
|
+
const Ba = /* @__PURE__ */ ga(hs);
|
|
1946
1946
|
var gs = function(t, r, n, a) {
|
|
1947
1947
|
var i = n ? n.call(a, t, r) : void 0;
|
|
1948
1948
|
if (i !== void 0)
|
|
@@ -1965,7 +1965,7 @@ var gs = function(t, r, n, a) {
|
|
|
1965
1965
|
return !0;
|
|
1966
1966
|
};
|
|
1967
1967
|
const ys = /* @__PURE__ */ ga(gs);
|
|
1968
|
-
var
|
|
1968
|
+
var Vo = /* @__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))(Vo || {}), An = {
|
|
1969
1969
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
1970
1970
|
script: { type: ["application/ld+json"] },
|
|
1971
1971
|
meta: {
|
|
@@ -1987,7 +1987,7 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
1987
1987
|
"twitter:site"
|
|
1988
1988
|
]
|
|
1989
1989
|
}
|
|
1990
|
-
},
|
|
1990
|
+
}, za = Object.values(Vo), va = {
|
|
1991
1991
|
accesskey: "accessKey",
|
|
1992
1992
|
charset: "charSet",
|
|
1993
1993
|
class: "className",
|
|
@@ -2121,7 +2121,7 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2121
2121
|
title: bs(e),
|
|
2122
2122
|
titleAttributes: _n("titleAttributes", e),
|
|
2123
2123
|
prioritizeSeoTags: xs(e, Jt.PRIORITIZE_SEO_TAGS)
|
|
2124
|
-
}),
|
|
2124
|
+
}), Go = (e) => Array.isArray(e) ? e.join("") : e, Rs = (e, t) => {
|
|
2125
2125
|
const r = Object.keys(e);
|
|
2126
2126
|
for (let n = 0; n < r.length; n += 1)
|
|
2127
2127
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
@@ -2130,7 +2130,7 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2130
2130
|
}, On = (e, t) => Array.isArray(e) ? e.reduce(
|
|
2131
2131
|
(r, n) => (Rs(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
2132
2132
|
{ priority: [], default: [] }
|
|
2133
|
-
) : { default: e, priority: [] },
|
|
2133
|
+
) : { default: e, priority: [] }, Va = (e, t) => ({
|
|
2134
2134
|
...e,
|
|
2135
2135
|
[t]: void 0
|
|
2136
2136
|
}), ks = [
|
|
@@ -2138,11 +2138,11 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2138
2138
|
"script",
|
|
2139
2139
|
"style"
|
|
2140
2140
|
/* STYLE */
|
|
2141
|
-
], Jn = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"),
|
|
2141
|
+
], Jn = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Ho = (e) => Object.keys(e).reduce((t, r) => {
|
|
2142
2142
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
2143
2143
|
return t ? `${t} ${n}` : n;
|
|
2144
2144
|
}, ""), Cs = (e, t, r, n) => {
|
|
2145
|
-
const a =
|
|
2145
|
+
const a = Ho(r), i = Go(t);
|
|
2146
2146
|
return a ? `<${e} ${Xe}="true" ${a}>${Jn(
|
|
2147
2147
|
i,
|
|
2148
2148
|
n
|
|
@@ -2158,14 +2158,14 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2158
2158
|
return u ? `${u} ${d}` : d;
|
|
2159
2159
|
}, ""), s = i.innerHTML || i.cssText || "", l = ks.indexOf(e) === -1;
|
|
2160
2160
|
return `${n}<${e} ${Xe}="true" ${o}${l ? "/>" : `>${s}</${e}>`}`;
|
|
2161
|
-
}, ""),
|
|
2161
|
+
}, ""), Wo = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
2162
2162
|
const a = va[n];
|
|
2163
2163
|
return r[a || n] = e[n], r;
|
|
2164
2164
|
}, t), As = (e, t, r) => {
|
|
2165
2165
|
const n = {
|
|
2166
2166
|
key: t,
|
|
2167
2167
|
[Xe]: !0
|
|
2168
|
-
}, a =
|
|
2168
|
+
}, a = Wo(r, n);
|
|
2169
2169
|
return [ot.createElement("title", a, t)];
|
|
2170
2170
|
}, nn = (e, t) => t.map((r, n) => {
|
|
2171
2171
|
const a = {
|
|
@@ -2190,8 +2190,8 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2190
2190
|
case "bodyAttributes":
|
|
2191
2191
|
case "htmlAttributes":
|
|
2192
2192
|
return {
|
|
2193
|
-
toComponent: () =>
|
|
2194
|
-
toString: () =>
|
|
2193
|
+
toComponent: () => Wo(t),
|
|
2194
|
+
toString: () => Ho(t)
|
|
2195
2195
|
};
|
|
2196
2196
|
default:
|
|
2197
2197
|
return {
|
|
@@ -2250,10 +2250,10 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2250
2250
|
style: Be("style", o, n),
|
|
2251
2251
|
title: Be("title", { title: s, titleAttributes: l }, n)
|
|
2252
2252
|
};
|
|
2253
|
-
}, ea = Os, Qr = [],
|
|
2253
|
+
}, ea = Os, Qr = [], qo = !!(typeof window < "u" && window.document && window.document.createElement), ta = class {
|
|
2254
2254
|
constructor(e, t) {
|
|
2255
2255
|
ft(this, "instances", []);
|
|
2256
|
-
ft(this, "canUseDOM",
|
|
2256
|
+
ft(this, "canUseDOM", qo);
|
|
2257
2257
|
ft(this, "context");
|
|
2258
2258
|
ft(this, "value", {
|
|
2259
2259
|
setHelmet: (e) => {
|
|
@@ -2284,16 +2284,16 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2284
2284
|
titleAttributes: {}
|
|
2285
2285
|
}));
|
|
2286
2286
|
}
|
|
2287
|
-
}, Fs = {},
|
|
2287
|
+
}, Fs = {}, Ko = ot.createContext(Fs), zt, Yo = (zt = class extends da {
|
|
2288
2288
|
constructor(r) {
|
|
2289
2289
|
super(r);
|
|
2290
2290
|
ft(this, "helmetData");
|
|
2291
2291
|
this.helmetData = new ta(this.props.context || {}, zt.canUseDOM);
|
|
2292
2292
|
}
|
|
2293
2293
|
render() {
|
|
2294
|
-
return /* @__PURE__ */ ot.createElement(
|
|
2294
|
+
return /* @__PURE__ */ ot.createElement(Ko.Provider, { value: this.helmetData.value }, this.props.children);
|
|
2295
2295
|
}
|
|
2296
|
-
}, ft(zt, "canUseDOM",
|
|
2296
|
+
}, ft(zt, "canUseDOM", qo), zt), Yt = (e, t) => {
|
|
2297
2297
|
const r = document.head || document.querySelector(
|
|
2298
2298
|
"head"
|
|
2299
2299
|
/* HEAD */
|
|
@@ -2334,8 +2334,8 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2334
2334
|
r.removeAttribute(i[s]);
|
|
2335
2335
|
a.length === i.length ? r.removeAttribute(Xe) : r.getAttribute(Xe) !== o.join(",") && r.setAttribute(Xe, o.join(","));
|
|
2336
2336
|
}, Ps = (e, t) => {
|
|
2337
|
-
typeof e < "u" && document.title !== e && (document.title =
|
|
2338
|
-
},
|
|
2337
|
+
typeof e < "u" && document.title !== e && (document.title = Go(e)), ra("title", t);
|
|
2338
|
+
}, Ga = (e, t) => {
|
|
2339
2339
|
const {
|
|
2340
2340
|
baseTag: r,
|
|
2341
2341
|
bodyAttributes: n,
|
|
@@ -2364,11 +2364,11 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2364
2364
|
}), t && t(), l(e, g, h);
|
|
2365
2365
|
}, wr = null, Ds = (e) => {
|
|
2366
2366
|
wr && cancelAnimationFrame(wr), e.defer ? wr = requestAnimationFrame(() => {
|
|
2367
|
-
|
|
2367
|
+
Ga(e, () => {
|
|
2368
2368
|
wr = null;
|
|
2369
2369
|
});
|
|
2370
|
-
}) : (
|
|
2371
|
-
}, Ns = Ds,
|
|
2370
|
+
}) : (Ga(e), wr = null);
|
|
2371
|
+
}, Ns = Ds, Ha = class extends da {
|
|
2372
2372
|
constructor() {
|
|
2373
2373
|
super(...arguments);
|
|
2374
2374
|
ft(this, "rendered", !1);
|
|
@@ -2392,7 +2392,7 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2392
2392
|
return delete o.context, o;
|
|
2393
2393
|
})
|
|
2394
2394
|
);
|
|
2395
|
-
|
|
2395
|
+
Yo.canUseDOM ? Ns(a) : ea && (n = ea(a)), r(n);
|
|
2396
2396
|
}
|
|
2397
2397
|
// componentWillMount will be deprecated
|
|
2398
2398
|
// for SSR, initialize on first render
|
|
@@ -2409,7 +2409,7 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2409
2409
|
}
|
|
2410
2410
|
}, Ln, Ls = (Ln = class extends da {
|
|
2411
2411
|
shouldComponentUpdate(t) {
|
|
2412
|
-
return !fs(
|
|
2412
|
+
return !fs(Va(this.props, "helmetData"), Va(t, "helmetData"));
|
|
2413
2413
|
}
|
|
2414
2414
|
mapNestedChildrenToProps(t, r) {
|
|
2415
2415
|
if (!r)
|
|
@@ -2477,12 +2477,12 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2477
2477
|
}), n;
|
|
2478
2478
|
}
|
|
2479
2479
|
warnOnInvalidChildren(t, r) {
|
|
2480
|
-
return
|
|
2481
|
-
|
|
2482
|
-
typeof t.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${
|
|
2480
|
+
return Ba(
|
|
2481
|
+
za.some((n) => t.type === n),
|
|
2482
|
+
typeof t.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${za.join(
|
|
2483
2483
|
", "
|
|
2484
2484
|
)} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`
|
|
2485
|
-
),
|
|
2485
|
+
), Ba(
|
|
2486
2486
|
!r || typeof r == "string" || Array.isArray(r) && !r.some((n) => typeof n != "string"),
|
|
2487
2487
|
`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`
|
|
2488
2488
|
), !0;
|
|
@@ -2523,14 +2523,14 @@ var Bo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
2523
2523
|
const i = a;
|
|
2524
2524
|
a = new ta(i.context, !0), delete n.helmetData;
|
|
2525
2525
|
}
|
|
2526
|
-
return a ? /* @__PURE__ */ ot.createElement(
|
|
2526
|
+
return a ? /* @__PURE__ */ ot.createElement(Ha, { ...n, context: a.value }) : /* @__PURE__ */ ot.createElement(Ko.Consumer, null, (i) => /* @__PURE__ */ ot.createElement(Ha, { ...n, context: i }));
|
|
2527
2527
|
}
|
|
2528
2528
|
}, ft(Ln, "defaultProps", {
|
|
2529
2529
|
defer: !0,
|
|
2530
2530
|
encodeSpecialCharacters: !0,
|
|
2531
2531
|
prioritizeSeoTags: !1
|
|
2532
2532
|
}), Ln);
|
|
2533
|
-
const Zd = Ls, Qd =
|
|
2533
|
+
const Zd = Ls, Qd = Yo;
|
|
2534
2534
|
/**
|
|
2535
2535
|
* @remix-run/router v1.16.0
|
|
2536
2536
|
*
|
|
@@ -2555,7 +2555,7 @@ var xe;
|
|
|
2555
2555
|
(function(e) {
|
|
2556
2556
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
2557
2557
|
})(xe || (xe = {}));
|
|
2558
|
-
const
|
|
2558
|
+
const Wa = "popstate";
|
|
2559
2559
|
function Is(e) {
|
|
2560
2560
|
e === void 0 && (e = {});
|
|
2561
2561
|
function t(n, a) {
|
|
@@ -2597,7 +2597,7 @@ function Ce(e, t) {
|
|
|
2597
2597
|
function js() {
|
|
2598
2598
|
return Math.random().toString(36).substr(2, 8);
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function qa(e, t) {
|
|
2601
2601
|
return {
|
|
2602
2602
|
usr: e.state,
|
|
2603
2603
|
key: e.key,
|
|
@@ -2663,7 +2663,7 @@ function Ms(e, t, r, n) {
|
|
|
2663
2663
|
s = xe.Push;
|
|
2664
2664
|
let m = Or(h.location, y, v);
|
|
2665
2665
|
u = c() + 1;
|
|
2666
|
-
let k =
|
|
2666
|
+
let k = qa(m, u), O = h.createHref(m);
|
|
2667
2667
|
try {
|
|
2668
2668
|
o.pushState(k, "", O);
|
|
2669
2669
|
} catch (I) {
|
|
@@ -2681,7 +2681,7 @@ function Ms(e, t, r, n) {
|
|
|
2681
2681
|
s = xe.Replace;
|
|
2682
2682
|
let m = Or(h.location, y, v);
|
|
2683
2683
|
u = c();
|
|
2684
|
-
let k =
|
|
2684
|
+
let k = qa(m, u), O = h.createHref(m);
|
|
2685
2685
|
o.replaceState(k, "", O), i && l && l({
|
|
2686
2686
|
action: s,
|
|
2687
2687
|
location: h.location,
|
|
@@ -2702,8 +2702,8 @@ function Ms(e, t, r, n) {
|
|
|
2702
2702
|
listen(y) {
|
|
2703
2703
|
if (l)
|
|
2704
2704
|
throw new Error("A history only accepts one active listener");
|
|
2705
|
-
return a.addEventListener(
|
|
2706
|
-
a.removeEventListener(
|
|
2705
|
+
return a.addEventListener(Wa, d), l = y, () => {
|
|
2706
|
+
a.removeEventListener(Wa, d), l = null;
|
|
2707
2707
|
};
|
|
2708
2708
|
},
|
|
2709
2709
|
createHref(y) {
|
|
@@ -2756,7 +2756,7 @@ function Xt(e, t, r) {
|
|
|
2756
2756
|
let n = typeof t == "string" ? kt(t) : t, a = Je(n.pathname || "/", r);
|
|
2757
2757
|
if (a == null)
|
|
2758
2758
|
return null;
|
|
2759
|
-
let i =
|
|
2759
|
+
let i = Zo(e);
|
|
2760
2760
|
zs(i);
|
|
2761
2761
|
let o = null;
|
|
2762
2762
|
for (let s = 0; o == null && s < i.length; ++s) {
|
|
@@ -2779,7 +2779,7 @@ function Bs(e, t) {
|
|
|
2779
2779
|
handle: r.handle
|
|
2780
2780
|
};
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function Zo(e, t, r, n) {
|
|
2783
2783
|
t === void 0 && (t = []), r === void 0 && (r = []), n === void 0 && (n = "");
|
|
2784
2784
|
let a = (i, o, s) => {
|
|
2785
2785
|
let l = {
|
|
@@ -2795,7 +2795,7 @@ function Ko(e, t, r, n) {
|
|
|
2795
2795
|
// @ts-expect-error
|
|
2796
2796
|
i.index !== !0,
|
|
2797
2797
|
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + u + '".')
|
|
2798
|
-
),
|
|
2798
|
+
), Zo(i.children, t, c, u)), !(i.path == null && !i.index) && t.push({
|
|
2799
2799
|
path: u,
|
|
2800
2800
|
score: Ys(u, i.index),
|
|
2801
2801
|
routesMeta: c
|
|
@@ -2806,26 +2806,26 @@ function Ko(e, t, r, n) {
|
|
|
2806
2806
|
if (i.path === "" || !((s = i.path) != null && s.includes("?")))
|
|
2807
2807
|
a(i, o);
|
|
2808
2808
|
else
|
|
2809
|
-
for (let l of
|
|
2809
|
+
for (let l of Qo(i.path))
|
|
2810
2810
|
a(i, o, l);
|
|
2811
2811
|
}), t;
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function Qo(e) {
|
|
2814
2814
|
let t = e.split("/");
|
|
2815
2815
|
if (t.length === 0) return [];
|
|
2816
2816
|
let [r, ...n] = t, a = r.endsWith("?"), i = r.replace(/\?$/, "");
|
|
2817
2817
|
if (n.length === 0)
|
|
2818
2818
|
return a ? [i, ""] : [i];
|
|
2819
|
-
let o =
|
|
2819
|
+
let o = Qo(n.join("/")), s = [];
|
|
2820
2820
|
return s.push(...o.map((l) => l === "" ? i : [i, l].join("/"))), a && s.push(...o), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
|
|
2821
2821
|
}
|
|
2822
2822
|
function zs(e) {
|
|
2823
2823
|
e.sort((t, r) => t.score !== r.score ? r.score - t.score : Zs(t.routesMeta.map((n) => n.childrenIndex), r.routesMeta.map((n) => n.childrenIndex)));
|
|
2824
2824
|
}
|
|
2825
|
-
const Vs = /^:[\w-]+$/, Gs = 3, Hs = 2, Ws = 1, qs = 10, Ks = -2,
|
|
2825
|
+
const Vs = /^:[\w-]+$/, Gs = 3, Hs = 2, Ws = 1, qs = 10, Ks = -2, Ka = (e) => e === "*";
|
|
2826
2826
|
function Ys(e, t) {
|
|
2827
2827
|
let r = e.split("/"), n = r.length;
|
|
2828
|
-
return r.some(
|
|
2828
|
+
return r.some(Ka) && (n += Ks), t && (n += Hs), r.filter((a) => !Ka(a)).reduce((a, i) => a + (Vs.test(i) ? Gs : i === "" ? Ws : qs), n);
|
|
2829
2829
|
}
|
|
2830
2830
|
function Zs(e, t) {
|
|
2831
2831
|
return e.length === t.length && e.slice(0, -1).every((n, a) => n === t[a]) ? (
|
|
@@ -2936,11 +2936,11 @@ function tl(e, t) {
|
|
|
2936
2936
|
function Fn(e, t, r, n) {
|
|
2937
2937
|
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(n) + "]. Please separate it out to the ") + ("`to." + r + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function Xo(e) {
|
|
2940
2940
|
return e.filter((t, r) => r === 0 || t.route.path && t.route.path.length > 0);
|
|
2941
2941
|
}
|
|
2942
2942
|
function pn(e, t) {
|
|
2943
|
-
let r =
|
|
2943
|
+
let r = Xo(e);
|
|
2944
2944
|
return t ? r.map((n, a) => a === e.length - 1 ? n.pathname : n.pathnameBase) : r.map((n) => n.pathnameBase);
|
|
2945
2945
|
}
|
|
2946
2946
|
function hn(e, t, r, n) {
|
|
@@ -2972,7 +2972,7 @@ class wa {
|
|
|
2972
2972
|
function Ea(e) {
|
|
2973
2973
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
2974
2974
|
}
|
|
2975
|
-
const
|
|
2975
|
+
const Jo = ["post", "put", "patch", "delete"], ol = new Set(Jo), il = ["get", ...Jo], sl = new Set(il), ll = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ul = /* @__PURE__ */ new Set([307, 308]), Pn = {
|
|
2976
2976
|
state: "idle",
|
|
2977
2977
|
location: void 0,
|
|
2978
2978
|
formMethod: void 0,
|
|
@@ -2997,7 +2997,7 @@ const Qo = ["post", "put", "patch", "delete"], ol = new Set(Qo), il = ["get", ..
|
|
|
2997
2997
|
location: void 0
|
|
2998
2998
|
}, xa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, dl = (e) => ({
|
|
2999
2999
|
hasErrorBoundary: !!e.hasErrorBoundary
|
|
3000
|
-
}),
|
|
3000
|
+
}), ei = "remix-router-transitions";
|
|
3001
3001
|
function fl(e) {
|
|
3002
3002
|
const t = e.window ? e.window : typeof window < "u" ? window : void 0, r = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", n = !r;
|
|
3003
3003
|
M(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
@@ -3025,7 +3025,7 @@ function fl(e) {
|
|
|
3025
3025
|
}), {
|
|
3026
3026
|
matches: S,
|
|
3027
3027
|
route: C
|
|
3028
|
-
} =
|
|
3028
|
+
} = ao(o);
|
|
3029
3029
|
v = S, m = {
|
|
3030
3030
|
[C.id]: b
|
|
3031
3031
|
};
|
|
@@ -3131,7 +3131,7 @@ function fl(e) {
|
|
|
3131
3131
|
flushSync: Y
|
|
3132
3132
|
} = C === void 0 ? {} : C, $ = w.actionData != null && w.navigation.formMethod != null && Ze(w.navigation.formMethod) && w.navigation.state === "loading" && ((_ = b.state) == null ? void 0 : _._isRedirect) !== !0, N;
|
|
3133
3133
|
S.actionData ? Object.keys(S.actionData).length > 0 ? N = S.actionData : N = null : $ ? N = w.actionData : N = null;
|
|
3134
|
-
let Z = S.loaderData ?
|
|
3134
|
+
let Z = S.loaderData ? ro(w.loaderData, S.loaderData, S.matches || [], S.errors) : w.loaderData, W = w.blockers;
|
|
3135
3135
|
W.size > 0 && (W = new Map(W), W.forEach((z, f) => W.set(f, Er)));
|
|
3136
3136
|
let Re = L === !0 || w.navigation.formMethod != null && Ze(w.navigation.formMethod) && ((D = b.state) == null ? void 0 : D._isRedirect) !== !0;
|
|
3137
3137
|
s && (o = s, s = void 0), K || F === xe.Pop || (F === xe.Push ? e.history.push(b, b.state) : F === xe.Replace && e.history.replace(b, b.state));
|
|
@@ -3177,7 +3177,7 @@ function fl(e) {
|
|
|
3177
3177
|
path: _,
|
|
3178
3178
|
submission: D,
|
|
3179
3179
|
error: Y
|
|
3180
|
-
} =
|
|
3180
|
+
} = Ya(c.v7_normalizeFormMethod, !1, C, S), $ = w.location, N = Or(w.location, _, S && S.state);
|
|
3181
3181
|
N = ge({}, N, e.history.encodeLocation(N));
|
|
3182
3182
|
let Z = S && S.replace != null ? S.replace : void 0, W = xe.Push;
|
|
3183
3183
|
Z === !0 ? W = xe.Replace : Z === !1 || D != null && Ze(D.formMethod) && D.formAction === w.location.pathname + w.location.search && (W = xe.Replace);
|
|
@@ -3242,7 +3242,7 @@ function fl(e) {
|
|
|
3242
3242
|
}), {
|
|
3243
3243
|
matches: f,
|
|
3244
3244
|
route: T
|
|
3245
|
-
} =
|
|
3245
|
+
} = ao(_);
|
|
3246
3246
|
_t(), Ct(S, {
|
|
3247
3247
|
matches: f,
|
|
3248
3248
|
loaderData: {},
|
|
@@ -3285,7 +3285,7 @@ function fl(e) {
|
|
|
3285
3285
|
} = await Ur(N, S, Y, D, C && C.submission, C && C.fetcherSubmission, C && C.replace, C && C.initialHydration === !0, $, Z);
|
|
3286
3286
|
W || (B = null, Ct(S, ge({
|
|
3287
3287
|
matches: Y
|
|
3288
|
-
},
|
|
3288
|
+
}, no(Z), {
|
|
3289
3289
|
loaderData: Re,
|
|
3290
3290
|
errors: ke
|
|
3291
3291
|
})));
|
|
@@ -3314,7 +3314,7 @@ function fl(e) {
|
|
|
3314
3314
|
};
|
|
3315
3315
|
if (Pt($)) {
|
|
3316
3316
|
let Z;
|
|
3317
|
-
return D && D.replace != null ? Z = D.replace : Z =
|
|
3317
|
+
return D && D.replace != null ? Z = D.replace : Z = Ja($.response.headers.get("Location"), new URL(b.url), l) === w.location.pathname + w.location.search, await ut(b, $, {
|
|
3318
3318
|
submission: C,
|
|
3319
3319
|
replace: Z
|
|
3320
3320
|
}), {
|
|
@@ -3336,7 +3336,7 @@ function fl(e) {
|
|
|
3336
3336
|
};
|
|
3337
3337
|
}
|
|
3338
3338
|
async function Ur(b, S, C, _, D, Y, $, N, Z, W) {
|
|
3339
|
-
let Re = _ || Dn(S, D), ke = D || Y ||
|
|
3339
|
+
let Re = _ || Dn(S, D), ke = D || Y || so(Re), z = s || o, [f, T] = Za(e.history, w, C, ke, S, c.v7_partialHydration && N === !0, c.unstable_skipActionErrorRevalidation, ce, Se, Oe, Ie, Le, ye, z, l, W);
|
|
3340
3340
|
if (_t((G) => !(C && C.some((me) => me.route.id === G)) || f && f.some((me) => me.route.id === G)), ve = ++Fe, f.length === 0 && T.length === 0) {
|
|
3341
3341
|
let G = Gr();
|
|
3342
3342
|
return Ct(S, ge({
|
|
@@ -3346,7 +3346,7 @@ function fl(e) {
|
|
|
3346
3346
|
errors: W && Ge(W[1]) ? {
|
|
3347
3347
|
[W[0]]: W[1].error
|
|
3348
3348
|
} : null
|
|
3349
|
-
},
|
|
3349
|
+
}, no(W), G ? {
|
|
3350
3350
|
fetchers: new Map(w.fetchers)
|
|
3351
3351
|
} : {}), {
|
|
3352
3352
|
flushSync: Z
|
|
@@ -3386,7 +3386,7 @@ function fl(e) {
|
|
|
3386
3386
|
shortCircuited: !0
|
|
3387
3387
|
};
|
|
3388
3388
|
B && B.signal.removeEventListener("abort", P), T.forEach((G) => te.delete(G.key));
|
|
3389
|
-
let ie =
|
|
3389
|
+
let ie = oo([...j, ...re]);
|
|
3390
3390
|
if (ie) {
|
|
3391
3391
|
if (ie.idx >= f.length) {
|
|
3392
3392
|
let G = T[ie.idx - f.length].key;
|
|
@@ -3401,7 +3401,7 @@ function fl(e) {
|
|
|
3401
3401
|
let {
|
|
3402
3402
|
loaderData: Q,
|
|
3403
3403
|
errors: V
|
|
3404
|
-
} =
|
|
3404
|
+
} = to(w, C, f, j, W, T, re, Pe);
|
|
3405
3405
|
Pe.forEach((G, me) => {
|
|
3406
3406
|
G.subscribe((Ee) => {
|
|
3407
3407
|
(Ee || G.done) && Pe.delete(me);
|
|
@@ -3440,7 +3440,7 @@ function fl(e) {
|
|
|
3440
3440
|
path: Z,
|
|
3441
3441
|
submission: W,
|
|
3442
3442
|
error: Re
|
|
3443
|
-
} =
|
|
3443
|
+
} = Ya(c.v7_normalizeFormMethod, !0, $, _);
|
|
3444
3444
|
if (Re) {
|
|
3445
3445
|
Ke(b, S, Re, {
|
|
3446
3446
|
flushSync: D
|
|
@@ -3509,7 +3509,7 @@ function fl(e) {
|
|
|
3509
3509
|
be.set(b, re);
|
|
3510
3510
|
let ie = xr($, z.data);
|
|
3511
3511
|
w.fetchers.set(b, ie);
|
|
3512
|
-
let [Q, V] =
|
|
3512
|
+
let [Q, V] = Za(e.history, w, j, $, f, !1, c.unstable_skipActionErrorRevalidation, ce, Se, Oe, Ie, Le, ye, P, l, [_.route.id, z]);
|
|
3513
3513
|
V.filter((le) => le.key !== b).forEach((le) => {
|
|
3514
3514
|
let dt = le.key, Zr = w.fetchers.get(dt), kn = xr(void 0, Zr ? Zr.data : void 0);
|
|
3515
3515
|
w.fetchers.set(dt, kn), te.has(dt) && $e(dt), le.controller && te.set(dt, le.controller);
|
|
@@ -3525,7 +3525,7 @@ function fl(e) {
|
|
|
3525
3525
|
if (Z.signal.aborted)
|
|
3526
3526
|
return;
|
|
3527
3527
|
Z.signal.removeEventListener("abort", we), be.delete(b), te.delete(b), V.forEach((le) => te.delete(le.key));
|
|
3528
|
-
let G =
|
|
3528
|
+
let G = oo([...de, ...fe]);
|
|
3529
3529
|
if (G) {
|
|
3530
3530
|
if (G.idx >= Q.length) {
|
|
3531
3531
|
let le = V[G.idx - Q.length].key;
|
|
@@ -3536,7 +3536,7 @@ function fl(e) {
|
|
|
3536
3536
|
let {
|
|
3537
3537
|
loaderData: me,
|
|
3538
3538
|
errors: Ee
|
|
3539
|
-
} =
|
|
3539
|
+
} = to(w, w.matches, Q, de, void 0, V, fe, Pe);
|
|
3540
3540
|
if (w.fetchers.has(b)) {
|
|
3541
3541
|
let le = vt(z.data);
|
|
3542
3542
|
w.fetchers.set(b, le);
|
|
@@ -3548,7 +3548,7 @@ function fl(e) {
|
|
|
3548
3548
|
fetchers: new Map(w.fetchers)
|
|
3549
3549
|
})) : (Ae({
|
|
3550
3550
|
errors: Ee,
|
|
3551
|
-
loaderData:
|
|
3551
|
+
loaderData: ro(w.loaderData, me, j, Ee),
|
|
3552
3552
|
fetchers: new Map(w.fetchers)
|
|
3553
3553
|
}), ce = !1);
|
|
3554
3554
|
}
|
|
@@ -3560,7 +3560,7 @@ function fl(e) {
|
|
|
3560
3560
|
let Z = new AbortController(), W = Zt(e.history, C, Z.signal);
|
|
3561
3561
|
te.set(b, Z);
|
|
3562
3562
|
let Re = Fe, z = (await Tt("loader", W, [_], D))[0];
|
|
3563
|
-
if (Ft(z) && (z = await
|
|
3563
|
+
if (Ft(z) && (z = await ai(z, W.signal, !0) || z), te.get(b) === Z && te.delete(b), !W.signal.aborted) {
|
|
3564
3564
|
if (Ie.has(b)) {
|
|
3565
3565
|
qe(b, vt(void 0));
|
|
3566
3566
|
return;
|
|
@@ -3588,7 +3588,7 @@ function fl(e) {
|
|
|
3588
3588
|
} = C === void 0 ? {} : C;
|
|
3589
3589
|
S.response.headers.has("X-Remix-Revalidate") && (ce = !0);
|
|
3590
3590
|
let $ = S.response.headers.get("Location");
|
|
3591
|
-
M($, "Expected a Location header on the redirect Response"), $ =
|
|
3591
|
+
M($, "Expected a Location header on the redirect Response"), $ = Ja($, new URL(b.url), l);
|
|
3592
3592
|
let N = Or(w.location, $, {
|
|
3593
3593
|
_isRedirect: !0
|
|
3594
3594
|
});
|
|
@@ -3613,7 +3613,7 @@ function fl(e) {
|
|
|
3613
3613
|
formAction: Re,
|
|
3614
3614
|
formEncType: ke
|
|
3615
3615
|
} = w.navigation;
|
|
3616
|
-
!_ && !D && W && Re && ke && (_ =
|
|
3616
|
+
!_ && !D && W && Re && ke && (_ = so(w.navigation));
|
|
3617
3617
|
let z = _ || D;
|
|
3618
3618
|
if (ul.has(S.response.status) && z && Ze(z.formMethod))
|
|
3619
3619
|
await Me(Z, N, {
|
|
@@ -3667,7 +3667,7 @@ function fl(e) {
|
|
|
3667
3667
|
})
|
|
3668
3668
|
});
|
|
3669
3669
|
})]);
|
|
3670
|
-
return await Promise.all([
|
|
3670
|
+
return await Promise.all([io(b, C, Y, Y.map(() => D.signal), !1, w.loaderData), io(b, _.map((N) => N.match), $, _.map((N) => N.controller ? N.controller.signal : null), !0)]), {
|
|
3671
3671
|
loaderResults: Y,
|
|
3672
3672
|
fetcherResults: $
|
|
3673
3673
|
};
|
|
@@ -3865,7 +3865,7 @@ function aa(e, t, r, n, a, i, o, s) {
|
|
|
3865
3865
|
let c = hn(a || ".", pn(l, i), Je(e.pathname, r) || e.pathname, s === "path");
|
|
3866
3866
|
return a == null && (c.search = e.search, c.hash = e.hash), (a == null || a === "" || a === ".") && u && u.route.index && !Sa(c.search) && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), n && r !== "/" && (c.pathname = c.pathname === "/" ? r : it([r, c.pathname])), St(c);
|
|
3867
3867
|
}
|
|
3868
|
-
function
|
|
3868
|
+
function Ya(e, t, r, n) {
|
|
3869
3869
|
if (!n || !pl(n))
|
|
3870
3870
|
return {
|
|
3871
3871
|
path: r
|
|
@@ -3882,7 +3882,7 @@ function Ka(e, t, r, n) {
|
|
|
3882
3882
|
error: Ve(400, {
|
|
3883
3883
|
type: "invalid-body"
|
|
3884
3884
|
})
|
|
3885
|
-
}), i = n.formMethod || "get", o = e ? i.toUpperCase() : i.toLowerCase(), s =
|
|
3885
|
+
}), i = n.formMethod || "get", o = e ? i.toUpperCase() : i.toLowerCase(), s = ri(r);
|
|
3886
3886
|
if (n.body !== void 0) {
|
|
3887
3887
|
if (n.formEncType === "text/plain") {
|
|
3888
3888
|
if (!Ze(o))
|
|
@@ -3934,12 +3934,12 @@ function Ka(e, t, r, n) {
|
|
|
3934
3934
|
else if (n.body instanceof FormData)
|
|
3935
3935
|
l = oa(n.body), u = n.body;
|
|
3936
3936
|
else if (n.body instanceof URLSearchParams)
|
|
3937
|
-
l = n.body, u =
|
|
3937
|
+
l = n.body, u = eo(l);
|
|
3938
3938
|
else if (n.body == null)
|
|
3939
3939
|
l = new URLSearchParams(), u = new FormData();
|
|
3940
3940
|
else
|
|
3941
3941
|
try {
|
|
3942
|
-
l = new URLSearchParams(n.body), u =
|
|
3942
|
+
l = new URLSearchParams(n.body), u = eo(l);
|
|
3943
3943
|
} catch {
|
|
3944
3944
|
return a();
|
|
3945
3945
|
}
|
|
@@ -3970,7 +3970,7 @@ function hl(e, t) {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
return r;
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3973
|
+
function Za(e, t, r, n, a, i, o, s, l, u, c, d, p, x, g, h) {
|
|
3974
3974
|
let y = h ? Ge(h[1]) ? h[1].error : h[1].data : void 0, v = e.createURL(t.location), m = e.createURL(a), k = h && Ge(h[1]) ? h[0] : void 0, O = k ? hl(r, k) : r, I = h ? h[1].statusCode : void 0, J = o && I && I >= 400, w = O.filter((L, B) => {
|
|
3975
3975
|
let {
|
|
3976
3976
|
route: ee
|
|
@@ -3985,7 +3985,7 @@ function Ya(e, t, r, n, a, i, o, s, l, u, c, d, p, x, g, h) {
|
|
|
3985
3985
|
if (gl(t.loaderData, t.matches[B], L) || l.some((K) => K === L.route.id))
|
|
3986
3986
|
return !0;
|
|
3987
3987
|
let U = t.matches[B], oe = L;
|
|
3988
|
-
return
|
|
3988
|
+
return Qa(L, ge({
|
|
3989
3989
|
currentUrl: v,
|
|
3990
3990
|
currentParams: U.params,
|
|
3991
3991
|
nextUrl: m,
|
|
@@ -3996,7 +3996,7 @@ function Ya(e, t, r, n, a, i, o, s, l, u, c, d, p, x, g, h) {
|
|
|
3996
3996
|
defaultShouldRevalidate: J ? !1 : (
|
|
3997
3997
|
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
3998
3998
|
s || v.pathname + v.search === m.pathname + m.search || // Search params affect all loaders
|
|
3999
|
-
v.search !== m.search ||
|
|
3999
|
+
v.search !== m.search || ti(U, oe)
|
|
4000
4000
|
)
|
|
4001
4001
|
}));
|
|
4002
4002
|
}), F = [];
|
|
@@ -4016,7 +4016,7 @@ function Ya(e, t, r, n, a, i, o, s, l, u, c, d, p, x, g, h) {
|
|
|
4016
4016
|
return;
|
|
4017
4017
|
}
|
|
4018
4018
|
let U = t.fetchers.get(B), oe = ia(ee, L.path), K = !1;
|
|
4019
|
-
p.has(B) ? K = !1 : u.includes(B) ? K = !0 : U && U.state !== "idle" && U.data === void 0 ? K = s : K =
|
|
4019
|
+
p.has(B) ? K = !1 : u.includes(B) ? K = !0 : U && U.state !== "idle" && U.data === void 0 ? K = s : K = Qa(oe, ge({
|
|
4020
4020
|
currentUrl: v,
|
|
4021
4021
|
currentParams: t.matches[t.matches.length - 1].params,
|
|
4022
4022
|
nextUrl: m,
|
|
@@ -4043,7 +4043,7 @@ function gl(e, t, r) {
|
|
|
4043
4043
|
), a = e[r.route.id] === void 0;
|
|
4044
4044
|
return n || a;
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4046
|
+
function ti(e, t) {
|
|
4047
4047
|
let r = e.route.path;
|
|
4048
4048
|
return (
|
|
4049
4049
|
// param change for this match, /users/123 -> /users/456
|
|
@@ -4052,7 +4052,7 @@ function Jo(e, t) {
|
|
|
4052
4052
|
r != null && r.endsWith("*") && e.params["*"] !== t.params["*"]
|
|
4053
4053
|
);
|
|
4054
4054
|
}
|
|
4055
|
-
function
|
|
4055
|
+
function Qa(e, t) {
|
|
4056
4056
|
if (e.route.shouldRevalidate) {
|
|
4057
4057
|
let r = e.route.shouldRevalidate(t);
|
|
4058
4058
|
if (typeof r == "boolean")
|
|
@@ -4060,7 +4060,7 @@ function Za(e, t) {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
return t.defaultShouldRevalidate;
|
|
4062
4062
|
}
|
|
4063
|
-
async function
|
|
4063
|
+
async function Xa(e, t, r) {
|
|
4064
4064
|
if (!e.lazy)
|
|
4065
4065
|
return;
|
|
4066
4066
|
let n = await e.lazy();
|
|
@@ -4134,12 +4134,12 @@ async function bl(e, t, r, n, a, i, o) {
|
|
|
4134
4134
|
u(c).catch((x) => {
|
|
4135
4135
|
d = x;
|
|
4136
4136
|
}),
|
|
4137
|
-
|
|
4137
|
+
Xa(r.route, a, n)
|
|
4138
4138
|
]);
|
|
4139
4139
|
if (d !== void 0)
|
|
4140
4140
|
throw d;
|
|
4141
4141
|
s = p;
|
|
4142
|
-
} else if (await
|
|
4142
|
+
} else if (await Xa(r.route, a, n), c = r.route[e], c)
|
|
4143
4143
|
s = await u(c);
|
|
4144
4144
|
else if (e === "action") {
|
|
4145
4145
|
let d = new URL(t.url), p = d.pathname + d.search;
|
|
@@ -4178,7 +4178,7 @@ async function vl(e) {
|
|
|
4178
4178
|
type: r,
|
|
4179
4179
|
status: n
|
|
4180
4180
|
} = e;
|
|
4181
|
-
if (
|
|
4181
|
+
if (ni(t)) {
|
|
4182
4182
|
let o;
|
|
4183
4183
|
try {
|
|
4184
4184
|
let s = t.headers.get("Content-Type");
|
|
@@ -4230,7 +4230,7 @@ function wl(e, t, r, n, a, i) {
|
|
|
4230
4230
|
}
|
|
4231
4231
|
return e;
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function Ja(e, t, r) {
|
|
4234
4234
|
if (xa.test(e)) {
|
|
4235
4235
|
let n = e, a = n.startsWith("//") ? new URL(t.protocol + n) : new URL(n), i = Je(a.pathname, r) != null;
|
|
4236
4236
|
if (a.origin === t.origin && i)
|
|
@@ -4239,7 +4239,7 @@ function Xa(e, t, r) {
|
|
|
4239
4239
|
return e;
|
|
4240
4240
|
}
|
|
4241
4241
|
function Zt(e, t, r, n) {
|
|
4242
|
-
let a = e.createURL(
|
|
4242
|
+
let a = e.createURL(ri(t)).toString(), i = {
|
|
4243
4243
|
signal: r
|
|
4244
4244
|
};
|
|
4245
4245
|
if (n && Ze(n.formMethod)) {
|
|
@@ -4259,7 +4259,7 @@ function oa(e) {
|
|
|
4259
4259
|
t.append(r, typeof n == "string" ? n : n.name);
|
|
4260
4260
|
return t;
|
|
4261
4261
|
}
|
|
4262
|
-
function
|
|
4262
|
+
function eo(e) {
|
|
4263
4263
|
let t = new FormData();
|
|
4264
4264
|
for (let [r, n] of e.entries())
|
|
4265
4265
|
t.append(r, n);
|
|
@@ -4288,7 +4288,7 @@ function El(e, t, r, n, a, i) {
|
|
|
4288
4288
|
loaderHeaders: c
|
|
4289
4289
|
};
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4291
|
+
function to(e, t, r, n, a, i, o, s) {
|
|
4292
4292
|
let {
|
|
4293
4293
|
loaderData: l,
|
|
4294
4294
|
errors: u
|
|
@@ -4321,7 +4321,7 @@ function eo(e, t, r, n, a, i, o, s) {
|
|
|
4321
4321
|
errors: u
|
|
4322
4322
|
};
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function ro(e, t, r, n) {
|
|
4325
4325
|
let a = ge({}, t);
|
|
4326
4326
|
for (let i of r) {
|
|
4327
4327
|
let o = i.route.id;
|
|
@@ -4330,7 +4330,7 @@ function to(e, t, r, n) {
|
|
|
4330
4330
|
}
|
|
4331
4331
|
return a;
|
|
4332
4332
|
}
|
|
4333
|
-
function
|
|
4333
|
+
function no(e) {
|
|
4334
4334
|
return e ? Ge(e[1]) ? {
|
|
4335
4335
|
// Clear out prior actionData on errors
|
|
4336
4336
|
actionData: {}
|
|
@@ -4343,7 +4343,7 @@ function ro(e) {
|
|
|
4343
4343
|
function Tr(e, t) {
|
|
4344
4344
|
return (t ? e.slice(0, e.findIndex((n) => n.route.id === t) + 1) : [...e]).reverse().find((n) => n.route.hasErrorBoundary === !0) || e[0];
|
|
4345
4345
|
}
|
|
4346
|
-
function
|
|
4346
|
+
function ao(e) {
|
|
4347
4347
|
let t = e.length === 1 ? e[0] : e.find((r) => r.index || !r.path || r.path === "/") || {
|
|
4348
4348
|
id: "__shim-error-route__"
|
|
4349
4349
|
};
|
|
@@ -4366,7 +4366,7 @@ function Ve(e, t) {
|
|
|
4366
4366
|
} = t === void 0 ? {} : t, o = "Unknown Server Error", s = "Unknown @remix-run/router error";
|
|
4367
4367
|
return e === 400 ? (o = "Bad Request", a && r && n ? s = "You made a " + a + ' request to "' + r + '" but ' + ('did not provide a `loader` for route "' + n + '", ') + "so there is no way to handle the request." : i === "defer-action" ? s = "defer() is not supported in actions" : i === "invalid-body" && (s = "Unable to encode submission body")) : e === 403 ? (o = "Forbidden", s = 'Route "' + n + '" does not match URL "' + r + '"') : e === 404 ? (o = "Not Found", s = 'No route matches URL "' + r + '"') : e === 405 && (o = "Method Not Allowed", a && r && n ? s = "You made a " + a.toUpperCase() + ' request to "' + r + '" but ' + ('did not provide an `action` for route "' + n + '", ') + "so there is no way to handle the request." : a && (s = 'Invalid request method "' + a.toUpperCase() + '"')), new wa(e || 500, o, new Error(s), !0);
|
|
4368
4368
|
}
|
|
4369
|
-
function
|
|
4369
|
+
function oo(e) {
|
|
4370
4370
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
4371
4371
|
let r = e[t];
|
|
4372
4372
|
if (Pt(r))
|
|
@@ -4376,7 +4376,7 @@ function ao(e) {
|
|
|
4376
4376
|
};
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
|
-
function
|
|
4379
|
+
function ri(e) {
|
|
4380
4380
|
let t = typeof e == "string" ? kt(e) : e;
|
|
4381
4381
|
return St(ge({}, t, {
|
|
4382
4382
|
hash: ""
|
|
@@ -4386,7 +4386,7 @@ function xl(e, t) {
|
|
|
4386
4386
|
return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
|
|
4387
4387
|
}
|
|
4388
4388
|
function Sl(e) {
|
|
4389
|
-
return
|
|
4389
|
+
return ni(e.result) && ll.has(e.result.status);
|
|
4390
4390
|
}
|
|
4391
4391
|
function Ft(e) {
|
|
4392
4392
|
return e.type === he.deferred;
|
|
@@ -4401,7 +4401,7 @@ function Rl(e) {
|
|
|
4401
4401
|
let t = e;
|
|
4402
4402
|
return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function ni(e) {
|
|
4405
4405
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
|
|
4406
4406
|
}
|
|
4407
4407
|
function kl(e) {
|
|
@@ -4410,21 +4410,21 @@ function kl(e) {
|
|
|
4410
4410
|
function Ze(e) {
|
|
4411
4411
|
return ol.has(e.toLowerCase());
|
|
4412
4412
|
}
|
|
4413
|
-
async function
|
|
4413
|
+
async function io(e, t, r, n, a, i) {
|
|
4414
4414
|
for (let o = 0; o < r.length; o++) {
|
|
4415
4415
|
let s = r[o], l = t[o];
|
|
4416
4416
|
if (!l)
|
|
4417
4417
|
continue;
|
|
4418
|
-
let u = e.find((d) => d.route.id === l.route.id), c = u != null && !
|
|
4418
|
+
let u = e.find((d) => d.route.id === l.route.id), c = u != null && !ti(u, l) && (i && i[l.route.id]) !== void 0;
|
|
4419
4419
|
if (Ft(s) && (a || c)) {
|
|
4420
4420
|
let d = n[o];
|
|
4421
|
-
M(d, "Expected an AbortSignal for revalidating fetcher deferred result"), await
|
|
4421
|
+
M(d, "Expected an AbortSignal for revalidating fetcher deferred result"), await ai(s, d, a).then((p) => {
|
|
4422
4422
|
p && (r[o] = p || r[o]);
|
|
4423
4423
|
});
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
|
-
async function
|
|
4427
|
+
async function ai(e, t, r) {
|
|
4428
4428
|
if (r === void 0 && (r = !1), !await e.deferredData.resolveData(t)) {
|
|
4429
4429
|
if (r)
|
|
4430
4430
|
try {
|
|
@@ -4451,10 +4451,10 @@ function ia(e, t) {
|
|
|
4451
4451
|
let r = typeof t == "string" ? kt(t).search : t.search;
|
|
4452
4452
|
if (e[e.length - 1].route.index && Sa(r || ""))
|
|
4453
4453
|
return e[e.length - 1];
|
|
4454
|
-
let n =
|
|
4454
|
+
let n = Xo(e);
|
|
4455
4455
|
return n[n.length - 1];
|
|
4456
4456
|
}
|
|
4457
|
-
function
|
|
4457
|
+
function so(e) {
|
|
4458
4458
|
let {
|
|
4459
4459
|
formMethod: t,
|
|
4460
4460
|
formAction: r,
|
|
@@ -4573,7 +4573,7 @@ function vt(e) {
|
|
|
4573
4573
|
}
|
|
4574
4574
|
function Al(e, t) {
|
|
4575
4575
|
try {
|
|
4576
|
-
let r = e.sessionStorage.getItem(
|
|
4576
|
+
let r = e.sessionStorage.getItem(ei);
|
|
4577
4577
|
if (r) {
|
|
4578
4578
|
let n = JSON.parse(r);
|
|
4579
4579
|
for (let [a, i] of Object.entries(n || {}))
|
|
@@ -4588,7 +4588,7 @@ function _l(e, t) {
|
|
|
4588
4588
|
for (let [n, a] of t)
|
|
4589
4589
|
r[n] = [...a];
|
|
4590
4590
|
try {
|
|
4591
|
-
e.sessionStorage.setItem(
|
|
4591
|
+
e.sessionStorage.setItem(ei, JSON.stringify(r));
|
|
4592
4592
|
} catch (n) {
|
|
4593
4593
|
Ce(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").");
|
|
4594
4594
|
}
|
|
@@ -4669,11 +4669,11 @@ function gt() {
|
|
|
4669
4669
|
"useLocation() may be used only in the context of a <Router> component."
|
|
4670
4670
|
) : M(!1)), E.useContext(yn).location;
|
|
4671
4671
|
}
|
|
4672
|
-
const
|
|
4673
|
-
function
|
|
4672
|
+
const oi = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4673
|
+
function ii(e) {
|
|
4674
4674
|
E.useContext(He).static || E.useLayoutEffect(e);
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function si() {
|
|
4677
4677
|
let {
|
|
4678
4678
|
isDataRoute: e
|
|
4679
4679
|
} = E.useContext(et);
|
|
@@ -4695,10 +4695,10 @@ function Pl() {
|
|
|
4695
4695
|
} = E.useContext(et), {
|
|
4696
4696
|
pathname: i
|
|
4697
4697
|
} = gt(), o = JSON.stringify(pn(a, r.v7_relativeSplatPath)), s = E.useRef(!1);
|
|
4698
|
-
return
|
|
4698
|
+
return ii(() => {
|
|
4699
4699
|
s.current = !0;
|
|
4700
4700
|
}), E.useCallback(function(u, c) {
|
|
4701
|
-
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && Ce(s.current,
|
|
4701
|
+
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && Ce(s.current, oi), !s.current) return;
|
|
4702
4702
|
if (typeof u == "number") {
|
|
4703
4703
|
n.go(u);
|
|
4704
4704
|
return;
|
|
@@ -4740,7 +4740,7 @@ function Ll(e, t, r, n) {
|
|
|
4740
4740
|
} = E.useContext(et), o = i[i.length - 1], s = o ? o.params : {}, l = o ? o.pathname : "/", u = o ? o.pathnameBase : "/", c = o && o.route;
|
|
4741
4741
|
if (process.env.NODE_ENV !== "production") {
|
|
4742
4742
|
let v = c && c.path || "";
|
|
4743
|
-
|
|
4743
|
+
ui(l, !c || v.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + l + '" (under <Route path="' + v + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4744
4744
|
|
|
4745
4745
|
` + ('Please change the parent <Route path="' + v + '"> to <Route ') + ('path="' + (v === "/" ? "*" : v + "/*") + '">.'));
|
|
4746
4746
|
}
|
|
@@ -4866,7 +4866,7 @@ function $l(e, t, r, n) {
|
|
|
4866
4866
|
}
|
|
4867
4867
|
return o.reduceRight((c, d, p) => {
|
|
4868
4868
|
let x, g = !1, h = null, y = null;
|
|
4869
|
-
r && (x = s && d.route.id ? s[d.route.id] : void 0, h = d.route.errorElement || jl, l && (u < 0 && p === 0 ? (
|
|
4869
|
+
r && (x = s && d.route.id ? s[d.route.id] : void 0, h = d.route.errorElement || jl, l && (u < 0 && p === 0 ? (ui("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : u === p && (g = !0, y = d.route.hydrateFallbackElement || null)));
|
|
4870
4870
|
let v = t.concat(o.slice(0, p + 1)), m = () => {
|
|
4871
4871
|
let k;
|
|
4872
4872
|
return x ? k = h : g ? k = y : d.route.Component ? k = /* @__PURE__ */ E.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = c, /* @__PURE__ */ E.createElement(Ul, {
|
|
@@ -4893,9 +4893,9 @@ function $l(e, t, r, n) {
|
|
|
4893
4893
|
}) : m();
|
|
4894
4894
|
}, null);
|
|
4895
4895
|
}
|
|
4896
|
-
var
|
|
4896
|
+
var li = /* @__PURE__ */ function(e) {
|
|
4897
4897
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
4898
|
-
}(
|
|
4898
|
+
}(li || {}), Pr = /* @__PURE__ */ function(e) {
|
|
4899
4899
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
4900
4900
|
}(Pr || {});
|
|
4901
4901
|
function ka(e) {
|
|
@@ -4928,18 +4928,18 @@ function Hl() {
|
|
|
4928
4928
|
function Wl() {
|
|
4929
4929
|
let {
|
|
4930
4930
|
router: e
|
|
4931
|
-
} = Bl(
|
|
4932
|
-
return
|
|
4931
|
+
} = Bl(li.UseNavigateStable), t = Ca(Pr.UseNavigateStable), r = E.useRef(!1);
|
|
4932
|
+
return ii(() => {
|
|
4933
4933
|
r.current = !0;
|
|
4934
4934
|
}), E.useCallback(function(a, i) {
|
|
4935
|
-
i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && Ce(r.current,
|
|
4935
|
+
i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && Ce(r.current, oi), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, ln({
|
|
4936
4936
|
fromRouteId: t
|
|
4937
4937
|
}, i)));
|
|
4938
4938
|
}, [e, t]);
|
|
4939
4939
|
}
|
|
4940
|
-
const
|
|
4941
|
-
function
|
|
4942
|
-
!t && !
|
|
4940
|
+
const lo = {};
|
|
4941
|
+
function ui(e, t, r) {
|
|
4942
|
+
!t && !lo[e] && (lo[e] = !0, process.env.NODE_ENV !== "production" && Ce(!1, r));
|
|
4943
4943
|
}
|
|
4944
4944
|
function Xd(e) {
|
|
4945
4945
|
let {
|
|
@@ -4963,7 +4963,7 @@ function Xd(e) {
|
|
|
4963
4963
|
matches: s
|
|
4964
4964
|
} = E.useContext(et), {
|
|
4965
4965
|
pathname: l
|
|
4966
|
-
} = gt(), u =
|
|
4966
|
+
} = gt(), u = si(), c = hn(t, pn(s, i.v7_relativeSplatPath), l, a === "path"), d = JSON.stringify(c);
|
|
4967
4967
|
return E.useEffect(() => u(JSON.parse(d), {
|
|
4968
4968
|
replace: r,
|
|
4969
4969
|
state: n,
|
|
@@ -5194,14 +5194,14 @@ const Aa = /* @__PURE__ */ E.createContext({
|
|
|
5194
5194
|
isTransitioning: !1
|
|
5195
5195
|
});
|
|
5196
5196
|
process.env.NODE_ENV !== "production" && (Aa.displayName = "ViewTransition");
|
|
5197
|
-
const
|
|
5198
|
-
process.env.NODE_ENV !== "production" && (
|
|
5199
|
-
const uu = "startTransition",
|
|
5197
|
+
const ci = /* @__PURE__ */ E.createContext(/* @__PURE__ */ new Map());
|
|
5198
|
+
process.env.NODE_ENV !== "production" && (ci.displayName = "Fetchers");
|
|
5199
|
+
const uu = "startTransition", uo = E[uu], cu = "flushSync", co = ha[cu];
|
|
5200
5200
|
function du(e) {
|
|
5201
|
-
|
|
5201
|
+
uo ? uo(e) : e();
|
|
5202
5202
|
}
|
|
5203
5203
|
function Sr(e) {
|
|
5204
|
-
|
|
5204
|
+
co ? co(e) : e();
|
|
5205
5205
|
}
|
|
5206
5206
|
class fu {
|
|
5207
5207
|
constructor() {
|
|
@@ -5319,7 +5319,7 @@ function tf(e) {
|
|
|
5319
5319
|
value: J
|
|
5320
5320
|
}, /* @__PURE__ */ E.createElement(gn.Provider, {
|
|
5321
5321
|
value: a
|
|
5322
|
-
}, /* @__PURE__ */ E.createElement(
|
|
5322
|
+
}, /* @__PURE__ */ E.createElement(ci.Provider, {
|
|
5323
5323
|
value: y.current
|
|
5324
5324
|
}, /* @__PURE__ */ E.createElement(Aa.Provider, {
|
|
5325
5325
|
value: l
|
|
@@ -5471,14 +5471,14 @@ var un;
|
|
|
5471
5471
|
(function(e) {
|
|
5472
5472
|
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
5473
5473
|
})(un || (un = {}));
|
|
5474
|
-
var
|
|
5474
|
+
var fo;
|
|
5475
5475
|
(function(e) {
|
|
5476
5476
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
5477
|
-
})(
|
|
5477
|
+
})(fo || (fo = {}));
|
|
5478
5478
|
function bu(e) {
|
|
5479
5479
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
5480
5480
|
}
|
|
5481
|
-
function
|
|
5481
|
+
function di(e) {
|
|
5482
5482
|
let t = E.useContext(fr);
|
|
5483
5483
|
return t || (process.env.NODE_ENV !== "production" ? M(!1, bu(e)) : M(!1)), t;
|
|
5484
5484
|
}
|
|
@@ -5490,7 +5490,7 @@ function vu(e, t) {
|
|
|
5490
5490
|
preventScrollReset: i,
|
|
5491
5491
|
relative: o,
|
|
5492
5492
|
unstable_viewTransition: s
|
|
5493
|
-
} = t === void 0 ? {} : t, l =
|
|
5493
|
+
} = t === void 0 ? {} : t, l = si(), u = gt(), c = Ir(e, {
|
|
5494
5494
|
relative: o
|
|
5495
5495
|
});
|
|
5496
5496
|
return E.useCallback((d) => {
|
|
@@ -5515,7 +5515,7 @@ let Eu = 0, xu = () => "__" + String(++Eu) + "__";
|
|
|
5515
5515
|
function Su() {
|
|
5516
5516
|
let {
|
|
5517
5517
|
router: e
|
|
5518
|
-
} =
|
|
5518
|
+
} = di(un.UseSubmit), {
|
|
5519
5519
|
basename: t
|
|
5520
5520
|
} = E.useContext(He), r = Gl();
|
|
5521
5521
|
return E.useCallback(function(n, a) {
|
|
@@ -5575,7 +5575,7 @@ function ku(e, t) {
|
|
|
5575
5575
|
r == null && (process.env.NODE_ENV !== "production" ? M(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : M(!1));
|
|
5576
5576
|
let {
|
|
5577
5577
|
basename: n
|
|
5578
|
-
} =
|
|
5578
|
+
} = di(un.useViewTransitionState), a = Ir(e, {
|
|
5579
5579
|
relative: t.relative
|
|
5580
5580
|
});
|
|
5581
5581
|
if (!r.isTransitioning)
|
|
@@ -5583,17 +5583,17 @@ function ku(e, t) {
|
|
|
5583
5583
|
let i = Je(r.currentLocation.pathname, n) || r.currentLocation.pathname, o = Je(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
5584
5584
|
return Fr(a.pathname, o) != null || Fr(a.pathname, i) != null;
|
|
5585
5585
|
}
|
|
5586
|
-
function
|
|
5586
|
+
function fi(e) {
|
|
5587
5587
|
var t, r, n = "";
|
|
5588
5588
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
5589
5589
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
5590
5590
|
var a = e.length;
|
|
5591
|
-
for (t = 0; t < a; t++) e[t] && (r =
|
|
5591
|
+
for (t = 0; t < a; t++) e[t] && (r = fi(e[t])) && (n && (n += " "), n += r);
|
|
5592
5592
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
5593
5593
|
return n;
|
|
5594
5594
|
}
|
|
5595
5595
|
function _a() {
|
|
5596
|
-
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t =
|
|
5596
|
+
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = fi(e)) && (n && (n += " "), n += t);
|
|
5597
5597
|
return n;
|
|
5598
5598
|
}
|
|
5599
5599
|
const Oa = "-";
|
|
@@ -5604,7 +5604,7 @@ function Cu(e) {
|
|
|
5604
5604
|
} = e;
|
|
5605
5605
|
function a(o) {
|
|
5606
5606
|
const s = o.split(Oa);
|
|
5607
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
5607
|
+
return s[0] === "" && s.length !== 1 && s.shift(), pi(s, t) || Tu(o);
|
|
5608
5608
|
}
|
|
5609
5609
|
function i(o, s) {
|
|
5610
5610
|
const l = r[o] || [];
|
|
@@ -5615,11 +5615,11 @@ function Cu(e) {
|
|
|
5615
5615
|
getConflictingClassGroupIds: i
|
|
5616
5616
|
};
|
|
5617
5617
|
}
|
|
5618
|
-
function
|
|
5618
|
+
function pi(e, t) {
|
|
5619
5619
|
var o;
|
|
5620
5620
|
if (e.length === 0)
|
|
5621
5621
|
return t.classGroupId;
|
|
5622
|
-
const r = e[0], n = t.nextPart.get(r), a = n ?
|
|
5622
|
+
const r = e[0], n = t.nextPart.get(r), a = n ? pi(e.slice(1), n) : void 0;
|
|
5623
5623
|
if (a)
|
|
5624
5624
|
return a;
|
|
5625
5625
|
if (t.validators.length === 0)
|
|
@@ -5629,10 +5629,10 @@ function di(e, t) {
|
|
|
5629
5629
|
validator: s
|
|
5630
5630
|
}) => s(i))) == null ? void 0 : o.classGroupId;
|
|
5631
5631
|
}
|
|
5632
|
-
const
|
|
5632
|
+
const po = /^\[(.+)\]$/;
|
|
5633
5633
|
function Tu(e) {
|
|
5634
|
-
if (
|
|
5635
|
-
const t =
|
|
5634
|
+
if (po.test(e)) {
|
|
5635
|
+
const t = po.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
5636
5636
|
if (r)
|
|
5637
5637
|
return "arbitrary.." + r;
|
|
5638
5638
|
}
|
|
@@ -5652,7 +5652,7 @@ function Au(e) {
|
|
|
5652
5652
|
function sa(e, t, r, n) {
|
|
5653
5653
|
e.forEach((a) => {
|
|
5654
5654
|
if (typeof a == "string") {
|
|
5655
|
-
const i = a === "" ? t :
|
|
5655
|
+
const i = a === "" ? t : ho(t, a);
|
|
5656
5656
|
i.classGroupId = r;
|
|
5657
5657
|
return;
|
|
5658
5658
|
}
|
|
@@ -5668,11 +5668,11 @@ function sa(e, t, r, n) {
|
|
|
5668
5668
|
return;
|
|
5669
5669
|
}
|
|
5670
5670
|
Object.entries(a).forEach(([i, o]) => {
|
|
5671
|
-
sa(o,
|
|
5671
|
+
sa(o, ho(t, i), r, n);
|
|
5672
5672
|
});
|
|
5673
5673
|
});
|
|
5674
5674
|
}
|
|
5675
|
-
function
|
|
5675
|
+
function ho(e, t) {
|
|
5676
5676
|
let r = e;
|
|
5677
5677
|
return t.split(Oa).forEach((n) => {
|
|
5678
5678
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -5715,7 +5715,7 @@ function Fu(e) {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
};
|
|
5717
5717
|
}
|
|
5718
|
-
const
|
|
5718
|
+
const hi = "!";
|
|
5719
5719
|
function Pu(e) {
|
|
5720
5720
|
const t = e.separator, r = t.length === 1, n = t[0], a = t.length;
|
|
5721
5721
|
return function(o) {
|
|
@@ -5735,7 +5735,7 @@ function Pu(e) {
|
|
|
5735
5735
|
}
|
|
5736
5736
|
y === "[" ? l++ : y === "]" && l--;
|
|
5737
5737
|
}
|
|
5738
|
-
const d = s.length === 0 ? o : o.substring(u), p = d.startsWith(
|
|
5738
|
+
const d = s.length === 0 ? o : o.substring(u), p = d.startsWith(hi), x = p ? d.substring(1) : d, g = c && c > u ? c - u : void 0;
|
|
5739
5739
|
return {
|
|
5740
5740
|
modifiers: s,
|
|
5741
5741
|
hasImportantModifier: p,
|
|
@@ -5791,7 +5791,7 @@ function Iu(e, t) {
|
|
|
5791
5791
|
const x = Du(s).join(":");
|
|
5792
5792
|
return {
|
|
5793
5793
|
isTailwindClass: !0,
|
|
5794
|
-
modifierId: l ? x +
|
|
5794
|
+
modifierId: l ? x + hi : x,
|
|
5795
5795
|
classGroupId: d,
|
|
5796
5796
|
originalClassName: o,
|
|
5797
5797
|
hasPostfixModifier: p
|
|
@@ -5810,15 +5810,15 @@ function Iu(e, t) {
|
|
|
5810
5810
|
function ju() {
|
|
5811
5811
|
let e = 0, t, r, n = "";
|
|
5812
5812
|
for (; e < arguments.length; )
|
|
5813
|
-
(t = arguments[e++]) && (r =
|
|
5813
|
+
(t = arguments[e++]) && (r = gi(t)) && (n && (n += " "), n += r);
|
|
5814
5814
|
return n;
|
|
5815
5815
|
}
|
|
5816
|
-
function
|
|
5816
|
+
function gi(e) {
|
|
5817
5817
|
if (typeof e == "string")
|
|
5818
5818
|
return e;
|
|
5819
5819
|
let t, r = "";
|
|
5820
5820
|
for (let n = 0; n < e.length; n++)
|
|
5821
|
-
e[n] && (t =
|
|
5821
|
+
e[n] && (t = gi(e[n])) && (r && (r += " "), r += t);
|
|
5822
5822
|
return r;
|
|
5823
5823
|
}
|
|
5824
5824
|
function Mu(e, ...t) {
|
|
@@ -5842,7 +5842,7 @@ function pe(e) {
|
|
|
5842
5842
|
const t = (r) => r[e] || [];
|
|
5843
5843
|
return t.isThemeGetter = !0, t;
|
|
5844
5844
|
}
|
|
5845
|
-
const
|
|
5845
|
+
const yi = /^\[(?:([a-z-]+):)?(.+)\]$/i, Uu = /^\d+\/\d+$/, $u = /* @__PURE__ */ new Set(["px", "full", "screen"]), Bu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zu = /\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$/, Vu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Gu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
5846
5846
|
function pt(e) {
|
|
5847
5847
|
return Dt(e) || $u.has(e) || Uu.test(e);
|
|
5848
5848
|
}
|
|
@@ -5862,17 +5862,17 @@ function Wu(e) {
|
|
|
5862
5862
|
return e.endsWith("%") && Dt(e.slice(0, -1));
|
|
5863
5863
|
}
|
|
5864
5864
|
function X(e) {
|
|
5865
|
-
return
|
|
5865
|
+
return yi.test(e);
|
|
5866
5866
|
}
|
|
5867
5867
|
function mt(e) {
|
|
5868
5868
|
return Bu.test(e);
|
|
5869
5869
|
}
|
|
5870
5870
|
const qu = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
5871
5871
|
function Ku(e) {
|
|
5872
|
-
return hr(e, qu,
|
|
5872
|
+
return hr(e, qu, mi);
|
|
5873
5873
|
}
|
|
5874
5874
|
function Yu(e) {
|
|
5875
|
-
return hr(e, "position",
|
|
5875
|
+
return hr(e, "position", mi);
|
|
5876
5876
|
}
|
|
5877
5877
|
const Zu = /* @__PURE__ */ new Set(["image", "url"]);
|
|
5878
5878
|
function Qu(e) {
|
|
@@ -5885,13 +5885,13 @@ function kr() {
|
|
|
5885
5885
|
return !0;
|
|
5886
5886
|
}
|
|
5887
5887
|
function hr(e, t, r) {
|
|
5888
|
-
const n =
|
|
5888
|
+
const n = yi.exec(e);
|
|
5889
5889
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
5890
5890
|
}
|
|
5891
5891
|
function Ju(e) {
|
|
5892
5892
|
return zu.test(e) && !Vu.test(e);
|
|
5893
5893
|
}
|
|
5894
|
-
function
|
|
5894
|
+
function mi() {
|
|
5895
5895
|
return !1;
|
|
5896
5896
|
}
|
|
5897
5897
|
function ec(e) {
|
|
@@ -7920,10 +7920,10 @@ const nc = /* @__PURE__ */ Mu(rc);
|
|
|
7920
7920
|
function Nt(...e) {
|
|
7921
7921
|
return nc(_a(e));
|
|
7922
7922
|
}
|
|
7923
|
-
const
|
|
7923
|
+
const bi = fa(
|
|
7924
7924
|
void 0
|
|
7925
7925
|
), ac = () => {
|
|
7926
|
-
const e = pa(
|
|
7926
|
+
const e = pa(bi);
|
|
7927
7927
|
if (!e)
|
|
7928
7928
|
throw new Error(
|
|
7929
7929
|
"useViewportAnchor must be used within a CurrentAnchorProvider"
|
|
@@ -7979,7 +7979,7 @@ const yi = fa(
|
|
|
7979
7979
|
() => ({ activeAnchor: t, setActiveAnchor: r, ...i }),
|
|
7980
7980
|
[t, r, i]
|
|
7981
7981
|
);
|
|
7982
|
-
return /* @__PURE__ */ q.jsx(
|
|
7982
|
+
return /* @__PURE__ */ q.jsx(bi.Provider, { value: o, children: e });
|
|
7983
7983
|
}, ic = (e) => {
|
|
7984
7984
|
switch (e) {
|
|
7985
7985
|
case 1:
|
|
@@ -8026,29 +8026,29 @@ const yi = fa(
|
|
|
8026
8026
|
}
|
|
8027
8027
|
);
|
|
8028
8028
|
};
|
|
8029
|
-
var sc = Object.create, vn = Object.defineProperty, lc = Object.defineProperties, uc = Object.getOwnPropertyDescriptor, cc = Object.getOwnPropertyDescriptors,
|
|
8029
|
+
var sc = Object.create, vn = Object.defineProperty, lc = Object.defineProperties, uc = Object.getOwnPropertyDescriptor, cc = Object.getOwnPropertyDescriptors, vi = Object.getOwnPropertyNames, cn = Object.getOwnPropertySymbols, dc = Object.getPrototypeOf, Fa = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, go = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
|
8030
8030
|
for (var r in t || (t = {}))
|
|
8031
|
-
Fa.call(t, r) &&
|
|
8031
|
+
Fa.call(t, r) && go(e, r, t[r]);
|
|
8032
8032
|
if (cn)
|
|
8033
8033
|
for (var r of cn(t))
|
|
8034
|
-
|
|
8034
|
+
wi.call(t, r) && go(e, r, t[r]);
|
|
8035
8035
|
return e;
|
|
8036
|
-
}, wn = (e, t) => lc(e, cc(t)),
|
|
8036
|
+
}, wn = (e, t) => lc(e, cc(t)), Ei = (e, t) => {
|
|
8037
8037
|
var r = {};
|
|
8038
8038
|
for (var n in e)
|
|
8039
8039
|
Fa.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
8040
8040
|
if (e != null && cn)
|
|
8041
8041
|
for (var n of cn(e))
|
|
8042
|
-
t.indexOf(n) < 0 &&
|
|
8042
|
+
t.indexOf(n) < 0 && wi.call(e, n) && (r[n] = e[n]);
|
|
8043
8043
|
return r;
|
|
8044
8044
|
}, fc = (e, t) => function() {
|
|
8045
|
-
return t || (0, e[
|
|
8045
|
+
return t || (0, e[vi(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
8046
8046
|
}, pc = (e, t) => {
|
|
8047
8047
|
for (var r in t)
|
|
8048
8048
|
vn(e, r, { get: t[r], enumerable: !0 });
|
|
8049
8049
|
}, hc = (e, t, r, n) => {
|
|
8050
8050
|
if (t && typeof t == "object" || typeof t == "function")
|
|
8051
|
-
for (let a of
|
|
8051
|
+
for (let a of vi(t))
|
|
8052
8052
|
!Fa.call(e, a) && a !== r && vn(e, a, { get: () => t[a], enumerable: !(n = uc(t, a)) || n.enumerable });
|
|
8053
8053
|
return e;
|
|
8054
8054
|
}, gc = (e, t, r) => (r = e != null ? sc(dc(e)) : {}, hc(
|
|
@@ -8848,7 +8848,7 @@ pc(la, {
|
|
|
8848
8848
|
shadesOfPurple: () => Ic,
|
|
8849
8849
|
synthwave84: () => Mc,
|
|
8850
8850
|
ultramin: () => $c,
|
|
8851
|
-
vsDark: () =>
|
|
8851
|
+
vsDark: () => xi,
|
|
8852
8852
|
vsLight: () => Vc
|
|
8853
8853
|
});
|
|
8854
8854
|
var mc = {
|
|
@@ -10059,7 +10059,7 @@ var mc = {
|
|
|
10059
10059
|
}
|
|
10060
10060
|
}
|
|
10061
10061
|
]
|
|
10062
|
-
},
|
|
10062
|
+
}, xi = Bc, zc = {
|
|
10063
10063
|
plain: {
|
|
10064
10064
|
color: "#000000",
|
|
10065
10065
|
backgroundColor: "#ffffff"
|
|
@@ -10538,16 +10538,16 @@ var mc = {
|
|
|
10538
10538
|
}), a;
|
|
10539
10539
|
}, {});
|
|
10540
10540
|
return n.root = r, n.plain = wn(st({}, r), { backgroundColor: void 0 }), n;
|
|
10541
|
-
},
|
|
10541
|
+
}, yo = Xc, Jc = (e, t) => {
|
|
10542
10542
|
const [r, n] = dn(
|
|
10543
|
-
|
|
10543
|
+
yo(t, e)
|
|
10544
10544
|
), a = cr(), i = cr();
|
|
10545
10545
|
return Ar(() => {
|
|
10546
|
-
(t !== a.current || e !== i.current) && (a.current = t, i.current = e, n(
|
|
10546
|
+
(t !== a.current || e !== i.current) && (a.current = t, i.current = e, n(yo(t, e)));
|
|
10547
10547
|
}, [e, t]), r;
|
|
10548
10548
|
}, ed = (e) => _r(
|
|
10549
10549
|
(t) => {
|
|
10550
|
-
var r = t, { className: n, style: a, line: i } = r, o =
|
|
10550
|
+
var r = t, { className: n, style: a, line: i } = r, o = Ei(r, ["className", "style", "line"]);
|
|
10551
10551
|
const s = wn(st({}, o), {
|
|
10552
10552
|
className: _a("token-line", n)
|
|
10553
10553
|
});
|
|
@@ -10574,7 +10574,7 @@ var mc = {
|
|
|
10574
10574
|
);
|
|
10575
10575
|
return _r(
|
|
10576
10576
|
(r) => {
|
|
10577
|
-
var n = r, { token: a, className: i, style: o } = n, s =
|
|
10577
|
+
var n = r, { token: a, className: i, style: o } = n, s = Ei(n, ["token", "className", "style"]);
|
|
10578
10578
|
const l = wn(st({}, s), {
|
|
10579
10579
|
className: _a("token", ...a.types, i),
|
|
10580
10580
|
children: a.content,
|
|
@@ -10584,7 +10584,7 @@ var mc = {
|
|
|
10584
10584
|
},
|
|
10585
10585
|
[t]
|
|
10586
10586
|
);
|
|
10587
|
-
}, rd = /\r\n|\r|\n/,
|
|
10587
|
+
}, rd = /\r\n|\r|\n/, mo = (e) => {
|
|
10588
10588
|
e.length === 0 ? e.push({
|
|
10589
10589
|
types: ["plain"],
|
|
10590
10590
|
content: `
|
|
@@ -10592,7 +10592,7 @@ var mc = {
|
|
|
10592
10592
|
empty: !0
|
|
10593
10593
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
10594
10594
|
`, e[0].empty = !0);
|
|
10595
|
-
},
|
|
10595
|
+
}, bo = (e, t) => {
|
|
10596
10596
|
const r = e.length;
|
|
10597
10597
|
return r > 0 && e[r - 1] === t ? e : e.concat(t);
|
|
10598
10598
|
}, nd = (e) => {
|
|
@@ -10603,7 +10603,7 @@ var mc = {
|
|
|
10603
10603
|
for (; (i = n[o]++) < a[o]; ) {
|
|
10604
10604
|
let u, c = t[o];
|
|
10605
10605
|
const p = r[o][i];
|
|
10606
|
-
if (typeof p == "string" ? (c = o > 0 ? c : ["plain"], u = p) : (c =
|
|
10606
|
+
if (typeof p == "string" ? (c = o > 0 ? c : ["plain"], u = p) : (c = bo(c, p.type), p.alias && (c = bo(c, p.alias)), u = p.content), typeof u != "string") {
|
|
10607
10607
|
o++, t.push(c), r.push(u), n.push(0), a.push(u.length);
|
|
10608
10608
|
continue;
|
|
10609
10609
|
}
|
|
@@ -10613,26 +10613,26 @@ var mc = {
|
|
|
10613
10613
|
content: x[0]
|
|
10614
10614
|
});
|
|
10615
10615
|
for (let h = 1; h < g; h++)
|
|
10616
|
-
|
|
10616
|
+
mo(s), l.push(s = []), s.push({
|
|
10617
10617
|
types: c,
|
|
10618
10618
|
content: x[h]
|
|
10619
10619
|
});
|
|
10620
10620
|
}
|
|
10621
10621
|
o--, t.pop(), r.pop(), n.pop(), a.pop();
|
|
10622
10622
|
}
|
|
10623
|
-
return
|
|
10624
|
-
},
|
|
10623
|
+
return mo(s), l;
|
|
10624
|
+
}, vo = nd, ad = ({ prism: e, code: t, grammar: r, language: n }) => {
|
|
10625
10625
|
const a = cr(e);
|
|
10626
10626
|
return In(() => {
|
|
10627
10627
|
if (r == null)
|
|
10628
|
-
return
|
|
10628
|
+
return vo([t]);
|
|
10629
10629
|
const i = {
|
|
10630
10630
|
code: t,
|
|
10631
10631
|
grammar: r,
|
|
10632
10632
|
language: n,
|
|
10633
10633
|
tokens: []
|
|
10634
10634
|
};
|
|
10635
|
-
return a.current.hooks.run("before-tokenize", i), i.tokens = a.current.tokenize(t, r), a.current.hooks.run("after-tokenize", i),
|
|
10635
|
+
return a.current.hooks.run("before-tokenize", i), i.tokens = a.current.tokenize(t, r), a.current.hooks.run("after-tokenize", i), vo(i.tokens);
|
|
10636
10636
|
}, [t, r, n]);
|
|
10637
10637
|
}, od = ({
|
|
10638
10638
|
children: e,
|
|
@@ -10651,7 +10651,7 @@ var mc = {
|
|
|
10651
10651
|
});
|
|
10652
10652
|
}, id = (e) => sn(od, wn(st({}, e), {
|
|
10653
10653
|
prism: e.prism || A,
|
|
10654
|
-
theme: e.theme ||
|
|
10654
|
+
theme: e.theme || xi,
|
|
10655
10655
|
code: e.code,
|
|
10656
10656
|
language: e.language
|
|
10657
10657
|
}));
|
|
@@ -10673,7 +10673,7 @@ prismjs/prism.js:
|
|
|
10673
10673
|
* This source code is licensed under the ISC license.
|
|
10674
10674
|
* See the LICENSE file in the root directory of this source tree.
|
|
10675
10675
|
*/
|
|
10676
|
-
const sd = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
10676
|
+
const sd = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Si = (...e) => e.filter((t, r, n) => !!t && n.indexOf(t) === r).join(" ");
|
|
10677
10677
|
/**
|
|
10678
10678
|
* @license lucide-react v0.378.0 - ISC
|
|
10679
10679
|
*
|
|
@@ -10697,7 +10697,7 @@ var ld = {
|
|
|
10697
10697
|
* This source code is licensed under the ISC license.
|
|
10698
10698
|
* See the LICENSE file in the root directory of this source tree.
|
|
10699
10699
|
*/
|
|
10700
|
-
const ud =
|
|
10700
|
+
const ud = _o(
|
|
10701
10701
|
({
|
|
10702
10702
|
color: e = "currentColor",
|
|
10703
10703
|
size: t = 24,
|
|
@@ -10716,7 +10716,7 @@ const ud = Ao(
|
|
|
10716
10716
|
height: t,
|
|
10717
10717
|
stroke: e,
|
|
10718
10718
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
10719
|
-
className:
|
|
10719
|
+
className: Si("lucide", a),
|
|
10720
10720
|
...s
|
|
10721
10721
|
},
|
|
10722
10722
|
[
|
|
@@ -10732,11 +10732,11 @@ const ud = Ao(
|
|
|
10732
10732
|
* See the LICENSE file in the root directory of this source tree.
|
|
10733
10733
|
*/
|
|
10734
10734
|
const gr = (e, t) => {
|
|
10735
|
-
const r =
|
|
10735
|
+
const r = _o(
|
|
10736
10736
|
({ className: n, ...a }, i) => sn(ud, {
|
|
10737
10737
|
ref: i,
|
|
10738
10738
|
iconNode: t,
|
|
10739
|
-
className:
|
|
10739
|
+
className: Si(`lucide-${sd(e)}`, n),
|
|
10740
10740
|
...a
|
|
10741
10741
|
})
|
|
10742
10742
|
);
|
|
@@ -10765,7 +10765,7 @@ const dd = gr("Copy", [
|
|
|
10765
10765
|
* This source code is licensed under the ISC license.
|
|
10766
10766
|
* See the LICENSE file in the root directory of this source tree.
|
|
10767
10767
|
*/
|
|
10768
|
-
const
|
|
10768
|
+
const wo = gr("Info", [
|
|
10769
10769
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10770
10770
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
10771
10771
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
@@ -10820,12 +10820,12 @@ const hd = gr("TriangleAlert", [
|
|
|
10820
10820
|
],
|
|
10821
10821
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
10822
10822
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
10823
|
-
]),
|
|
10823
|
+
]), Ri = fa([
|
|
10824
10824
|
!1,
|
|
10825
10825
|
() => {
|
|
10826
10826
|
}
|
|
10827
10827
|
]), gd = () => {
|
|
10828
|
-
const e = pa(
|
|
10828
|
+
const e = pa(Ri);
|
|
10829
10829
|
if (!e)
|
|
10830
10830
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
10831
10831
|
return e;
|
|
@@ -10839,7 +10839,7 @@ const hd = gr("TriangleAlert", [
|
|
|
10839
10839
|
const i = !t;
|
|
10840
10840
|
document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
|
|
10841
10841
|
}, [t]), a = [t, n];
|
|
10842
|
-
return /* @__PURE__ */ q.jsx(
|
|
10842
|
+
return /* @__PURE__ */ q.jsx(Ri.Provider, { value: a, ...e });
|
|
10843
10843
|
};
|
|
10844
10844
|
globalThis.Prism = A, 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");
|
|
10845
10845
|
const yd = ({
|
|
@@ -10887,7 +10887,7 @@ const yd = ({
|
|
|
10887
10887
|
iconColor: "text-gray-600 dark:text-zinc-300",
|
|
10888
10888
|
titleColor: "text-gray-600 dark:text-zinc-300",
|
|
10889
10889
|
textColor: "text-gray-600 dark:text-zinc-300",
|
|
10890
|
-
Icon:
|
|
10890
|
+
Icon: wo
|
|
10891
10891
|
},
|
|
10892
10892
|
tip: {
|
|
10893
10893
|
border: "border-green-500 dark:border-green-800",
|
|
@@ -10903,7 +10903,7 @@ const yd = ({
|
|
|
10903
10903
|
iconColor: "text-blue-400 dark:text-blue-200",
|
|
10904
10904
|
titleColor: "text-blue-700 dark:text-blue-200",
|
|
10905
10905
|
textColor: "text-blue-600 dark:text-blue-100",
|
|
10906
|
-
Icon:
|
|
10906
|
+
Icon: wo
|
|
10907
10907
|
},
|
|
10908
10908
|
caution: {
|
|
10909
10909
|
border: "border-yellow-400 dark:border-yellow-400/25",
|
|
@@ -10991,24 +10991,24 @@ const yd = ({
|
|
|
10991
10991
|
);
|
|
10992
10992
|
}
|
|
10993
10993
|
};
|
|
10994
|
-
function
|
|
10994
|
+
function ki(e) {
|
|
10995
10995
|
var t, r, n = "";
|
|
10996
10996
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
10997
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (r =
|
|
10997
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (r = ki(e[t])) && (n && (n += " "), n += r);
|
|
10998
10998
|
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
10999
10999
|
return n;
|
|
11000
11000
|
}
|
|
11001
11001
|
function bd() {
|
|
11002
|
-
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t =
|
|
11002
|
+
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = ki(e)) && (n && (n += " "), n += t);
|
|
11003
11003
|
return n;
|
|
11004
11004
|
}
|
|
11005
|
-
const
|
|
11005
|
+
const Eo = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, xo = bd, of = (e, t) => (r) => {
|
|
11006
11006
|
var n;
|
|
11007
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
11007
|
+
if ((t == null ? void 0 : t.variants) == null) return xo(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
11008
11008
|
const { variants: a, defaultVariants: i } = t, o = Object.keys(a).map((u) => {
|
|
11009
11009
|
const c = r == null ? void 0 : r[u], d = i == null ? void 0 : i[u];
|
|
11010
11010
|
if (c === null) return null;
|
|
11011
|
-
const p =
|
|
11011
|
+
const p = Eo(c) || Eo(d);
|
|
11012
11012
|
return a[u][p];
|
|
11013
11013
|
}), s = r && Object.entries(r).reduce((u, c) => {
|
|
11014
11014
|
let [d, p] = c;
|
|
@@ -11030,22 +11030,28 @@ const wo = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Eo =
|
|
|
11030
11030
|
p
|
|
11031
11031
|
] : u;
|
|
11032
11032
|
}, []);
|
|
11033
|
-
return
|
|
11034
|
-
},
|
|
11033
|
+
return xo(e, o, l, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
11034
|
+
}, Ci = fa(
|
|
11035
11035
|
void 0
|
|
11036
|
-
), sf =
|
|
11037
|
-
const e = pa(
|
|
11036
|
+
), sf = Ci.Provider, Pa = () => {
|
|
11037
|
+
const e = pa(Ci);
|
|
11038
11038
|
if (!e)
|
|
11039
11039
|
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
11040
11040
|
return e;
|
|
11041
|
+
}, lf = () => {
|
|
11042
|
+
const { getApiIdentities: e } = Pa();
|
|
11043
|
+
return zo({
|
|
11044
|
+
queryFn: e,
|
|
11045
|
+
queryKey: ["api-identities"]
|
|
11046
|
+
});
|
|
11041
11047
|
}, vd = () => {
|
|
11042
|
-
const { navigation: e } =
|
|
11048
|
+
const { navigation: e } = Pa(), t = gt();
|
|
11043
11049
|
return e.find(
|
|
11044
11050
|
(r) => Fr({ path: r.path, end: !1 }, t.pathname)
|
|
11045
11051
|
);
|
|
11046
|
-
},
|
|
11047
|
-
const { getNavigation: e } =
|
|
11048
|
-
return
|
|
11052
|
+
}, uf = () => {
|
|
11053
|
+
const { getNavigation: e } = Pa(), t = vd(), r = (t == null ? void 0 : t.path) ?? "";
|
|
11054
|
+
return zo({
|
|
11049
11055
|
queryFn: async () => ({
|
|
11050
11056
|
items: [...(t == null ? void 0 : t.categories) ?? [], ...await e(r)],
|
|
11051
11057
|
currentTopNavItem: t
|
|
@@ -11053,13 +11059,13 @@ const wo = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Eo =
|
|
|
11053
11059
|
queryKey: ["navigation", r]
|
|
11054
11060
|
});
|
|
11055
11061
|
};
|
|
11056
|
-
function
|
|
11062
|
+
function cf(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
11057
11063
|
return function(a) {
|
|
11058
11064
|
if (e == null || e(a), r === !1 || !a.defaultPrevented)
|
|
11059
11065
|
return t == null ? void 0 : t(a);
|
|
11060
11066
|
};
|
|
11061
11067
|
}
|
|
11062
|
-
function
|
|
11068
|
+
function df(e, t) {
|
|
11063
11069
|
const r = E.createContext(t);
|
|
11064
11070
|
function n(i) {
|
|
11065
11071
|
const { children: o, ...s } = i, l = E.useMemo(() => s, Object.values(s));
|
|
@@ -11073,7 +11079,7 @@ function cf(e, t) {
|
|
|
11073
11079
|
}
|
|
11074
11080
|
return n.displayName = e + "Provider", [n, a];
|
|
11075
11081
|
}
|
|
11076
|
-
function
|
|
11082
|
+
function ff(e, t = []) {
|
|
11077
11083
|
let r = [];
|
|
11078
11084
|
function n(i, o) {
|
|
11079
11085
|
const s = E.createContext(o), l = r.length;
|
|
@@ -11120,7 +11126,7 @@ function wd(...e) {
|
|
|
11120
11126
|
};
|
|
11121
11127
|
return r.scopeName = t.scopeName, r;
|
|
11122
11128
|
}
|
|
11123
|
-
function
|
|
11129
|
+
function Ti(e) {
|
|
11124
11130
|
const t = E.useRef(e);
|
|
11125
11131
|
return E.useEffect(() => {
|
|
11126
11132
|
t.current = e;
|
|
@@ -11129,13 +11135,13 @@ function Ci(e) {
|
|
|
11129
11135
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
11130
11136
|
}, []);
|
|
11131
11137
|
}
|
|
11132
|
-
function
|
|
11138
|
+
function pf({
|
|
11133
11139
|
prop: e,
|
|
11134
11140
|
defaultProp: t,
|
|
11135
11141
|
onChange: r = () => {
|
|
11136
11142
|
}
|
|
11137
11143
|
}) {
|
|
11138
|
-
const [n, a] = Ed({ defaultProp: t, onChange: r }), i = e !== void 0, o = i ? e : n, s =
|
|
11144
|
+
const [n, a] = Ed({ defaultProp: t, onChange: r }), i = e !== void 0, o = i ? e : n, s = Ti(r), l = E.useCallback(
|
|
11139
11145
|
(u) => {
|
|
11140
11146
|
if (i) {
|
|
11141
11147
|
const d = typeof u == "function" ? u(e) : u;
|
|
@@ -11151,7 +11157,7 @@ function Ed({
|
|
|
11151
11157
|
defaultProp: e,
|
|
11152
11158
|
onChange: t
|
|
11153
11159
|
}) {
|
|
11154
|
-
const r = E.useState(e), [n] = r, a = E.useRef(n), i =
|
|
11160
|
+
const r = E.useState(e), [n] = r, a = E.useRef(n), i = Ti(t);
|
|
11155
11161
|
return E.useEffect(() => {
|
|
11156
11162
|
a.current !== n && (i(n), a.current = n);
|
|
11157
11163
|
}, [n, a, i]), r;
|
|
@@ -11161,13 +11167,13 @@ var ua = globalThis != null && globalThis.document ? E.useLayoutEffect : () => {
|
|
|
11161
11167
|
function xd(e, t) {
|
|
11162
11168
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
11163
11169
|
}
|
|
11164
|
-
function
|
|
11170
|
+
function Ai(...e) {
|
|
11165
11171
|
return (t) => e.forEach((r) => xd(r, t));
|
|
11166
11172
|
}
|
|
11167
11173
|
function Sd(...e) {
|
|
11168
|
-
return E.useCallback(
|
|
11174
|
+
return E.useCallback(Ai(...e), e);
|
|
11169
11175
|
}
|
|
11170
|
-
var
|
|
11176
|
+
var _i = E.forwardRef((e, t) => {
|
|
11171
11177
|
const { children: r, ...n } = e, a = E.Children.toArray(r), i = a.find(kd);
|
|
11172
11178
|
if (i) {
|
|
11173
11179
|
const o = i.props.children, s = a.map((l) => l === i ? E.Children.count(o) > 1 ? E.Children.only(null) : E.isValidElement(o) ? o.props.children : null : l);
|
|
@@ -11175,7 +11181,7 @@ var Ai = E.forwardRef((e, t) => {
|
|
|
11175
11181
|
}
|
|
11176
11182
|
return /* @__PURE__ */ q.jsx(ca, { ...n, ref: t, children: r });
|
|
11177
11183
|
});
|
|
11178
|
-
|
|
11184
|
+
_i.displayName = "Slot";
|
|
11179
11185
|
var ca = E.forwardRef((e, t) => {
|
|
11180
11186
|
const { children: r, ...n } = e;
|
|
11181
11187
|
if (E.isValidElement(r)) {
|
|
@@ -11183,7 +11189,7 @@ var ca = E.forwardRef((e, t) => {
|
|
|
11183
11189
|
return E.cloneElement(r, {
|
|
11184
11190
|
...Cd(n, r.props),
|
|
11185
11191
|
// @ts-ignore
|
|
11186
|
-
ref: t ?
|
|
11192
|
+
ref: t ? Ai(t, a) : a
|
|
11187
11193
|
});
|
|
11188
11194
|
}
|
|
11189
11195
|
return E.Children.count(r) > 1 ? E.Children.only(null) : null;
|
|
@@ -11225,14 +11231,14 @@ var Ad = [
|
|
|
11225
11231
|
"span",
|
|
11226
11232
|
"svg",
|
|
11227
11233
|
"ul"
|
|
11228
|
-
],
|
|
11234
|
+
], hf = Ad.reduce((e, t) => {
|
|
11229
11235
|
const r = E.forwardRef((n, a) => {
|
|
11230
|
-
const { asChild: i, ...o } = n, s = i ?
|
|
11236
|
+
const { asChild: i, ...o } = n, s = i ? _i : t;
|
|
11231
11237
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ q.jsx(s, { ...o, ref: a });
|
|
11232
11238
|
});
|
|
11233
11239
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
11234
11240
|
}, {});
|
|
11235
|
-
function
|
|
11241
|
+
function gf(e, t) {
|
|
11236
11242
|
e && ha.flushSync(() => e.dispatchEvent(t));
|
|
11237
11243
|
}
|
|
11238
11244
|
function _d(e, t) {
|
|
@@ -11296,7 +11302,7 @@ function Pd(e) {
|
|
|
11296
11302
|
}
|
|
11297
11303
|
var Dd = E.useId || (() => {
|
|
11298
11304
|
}), Nd = 0;
|
|
11299
|
-
function
|
|
11305
|
+
function yf(e) {
|
|
11300
11306
|
const [t, r] = E.useState(Dd());
|
|
11301
11307
|
return ua(() => {
|
|
11302
11308
|
e || r((n) => n ?? String(Nd++));
|
|
@@ -11305,19 +11311,19 @@ function gf(e) {
|
|
|
11305
11311
|
const Ld = (...e) => {
|
|
11306
11312
|
const t = e.filter((r) => !!r).map((r) => r.replace(/(^\/+|\/+$)/g, "")).join("/");
|
|
11307
11313
|
return t ? `/${t}` : "";
|
|
11308
|
-
},
|
|
11314
|
+
}, mf = (e) => {
|
|
11309
11315
|
const t = gt(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (a) => {
|
|
11310
11316
|
var i;
|
|
11311
11317
|
!(r != null && r.startsWith("#")) || r !== t.hash || (a.preventDefault(), (i = document.getElementById(r.slice(1))) == null || i.scrollIntoView());
|
|
11312
11318
|
};
|
|
11313
11319
|
return /* @__PURE__ */ q.jsx(bn, { onClick: n, ...e });
|
|
11314
|
-
},
|
|
11315
|
-
const a =
|
|
11320
|
+
}, Da = (e, t, r, n = []) => {
|
|
11321
|
+
const a = Oi(e) ? Ld(r, e.path) : r, i = t(e, a, n);
|
|
11316
11322
|
if (i !== void 0) return i;
|
|
11317
11323
|
if ("children" in e && e.children) {
|
|
11318
11324
|
const o = [...n, e];
|
|
11319
11325
|
for (const s of e.children) {
|
|
11320
|
-
const l =
|
|
11326
|
+
const l = Da(
|
|
11321
11327
|
s,
|
|
11322
11328
|
t,
|
|
11323
11329
|
a,
|
|
@@ -11326,38 +11332,38 @@ const Ld = (...e) => {
|
|
|
11326
11332
|
if (l !== void 0) return l;
|
|
11327
11333
|
}
|
|
11328
11334
|
}
|
|
11329
|
-
},
|
|
11335
|
+
}, bf = (e, t) => {
|
|
11330
11336
|
if (e.categories)
|
|
11331
11337
|
for (const r of e.categories) {
|
|
11332
|
-
const n =
|
|
11338
|
+
const n = Da(r, t, e.path);
|
|
11333
11339
|
if (n !== void 0) return n;
|
|
11334
11340
|
}
|
|
11335
|
-
},
|
|
11341
|
+
}, Oi = (e) => "path" in e, vf = (e) => "href" in e, wf = (e, t, r) => !!Da(
|
|
11336
11342
|
e,
|
|
11337
11343
|
(n, a) => {
|
|
11338
|
-
if (
|
|
11344
|
+
if (Oi(n) && Fr(a, t))
|
|
11339
11345
|
return !0;
|
|
11340
11346
|
},
|
|
11341
11347
|
r
|
|
11342
11348
|
);
|
|
11343
11349
|
export {
|
|
11344
11350
|
rf as $,
|
|
11345
|
-
|
|
11351
|
+
cf as A,
|
|
11346
11352
|
Od as B,
|
|
11347
11353
|
Sd as C,
|
|
11348
11354
|
ua as D,
|
|
11349
|
-
|
|
11350
|
-
|
|
11355
|
+
wf as E,
|
|
11356
|
+
Oi as F,
|
|
11351
11357
|
Ld as G,
|
|
11352
|
-
|
|
11358
|
+
vf as H,
|
|
11353
11359
|
Nt as I,
|
|
11354
|
-
|
|
11360
|
+
mf as J,
|
|
11355
11361
|
of as K,
|
|
11356
11362
|
vd as L,
|
|
11357
11363
|
Wd as M,
|
|
11358
11364
|
yu as N,
|
|
11359
|
-
|
|
11360
|
-
|
|
11365
|
+
uf as O,
|
|
11366
|
+
hf as P,
|
|
11361
11367
|
Hd as Q,
|
|
11362
11368
|
Zd as R,
|
|
11363
11369
|
ya as S,
|
|
@@ -11372,46 +11378,47 @@ export {
|
|
|
11372
11378
|
zd as a,
|
|
11373
11379
|
bn as a0,
|
|
11374
11380
|
Bn as a1,
|
|
11375
|
-
|
|
11376
|
-
|
|
11381
|
+
Vi as a2,
|
|
11382
|
+
qi as a3,
|
|
11377
11383
|
Kd as a4,
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11384
|
+
Xi as a5,
|
|
11385
|
+
_i as a6,
|
|
11386
|
+
zo as a7,
|
|
11387
|
+
si as a8,
|
|
11382
11388
|
Md as a9,
|
|
11383
|
-
|
|
11389
|
+
bf as aa,
|
|
11384
11390
|
Qt as ab,
|
|
11385
11391
|
Xd as ac,
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
+
Ti as ad,
|
|
11393
|
+
gf as ae,
|
|
11394
|
+
df as af,
|
|
11395
|
+
lf as ag,
|
|
11396
|
+
yd as ah,
|
|
11397
|
+
Ud as ai,
|
|
11398
|
+
Fr as aj,
|
|
11392
11399
|
Mn as b,
|
|
11393
11400
|
Gd as c,
|
|
11394
11401
|
Vd as d,
|
|
11395
|
-
|
|
11396
|
-
|
|
11402
|
+
ji as e,
|
|
11403
|
+
Po as f,
|
|
11397
11404
|
$d as g,
|
|
11398
|
-
|
|
11405
|
+
Li as h,
|
|
11399
11406
|
$n as i,
|
|
11400
11407
|
ga as j,
|
|
11401
11408
|
gr as k,
|
|
11402
11409
|
q as l,
|
|
11403
11410
|
Bd as m,
|
|
11404
11411
|
fn as n,
|
|
11405
|
-
|
|
11412
|
+
Do as o,
|
|
11406
11413
|
ma as p,
|
|
11407
|
-
|
|
11414
|
+
xo as q,
|
|
11408
11415
|
tn as r,
|
|
11409
11416
|
Gn as s,
|
|
11410
11417
|
gd as t,
|
|
11411
|
-
|
|
11418
|
+
Pa as u,
|
|
11412
11419
|
gt as v,
|
|
11413
11420
|
ac as w,
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11421
|
+
ff as x,
|
|
11422
|
+
pf as y,
|
|
11423
|
+
yf as z
|
|
11417
11424
|
};
|