@zhin.js/console 1.0.51 → 1.0.53
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/CHANGELOG.md +21 -0
- package/README.md +22 -0
- package/browser.tsconfig.json +19 -0
- package/client/src/components/PageHeader.tsx +26 -0
- package/client/src/components/ui/accordion.tsx +2 -1
- package/client/src/components/ui/badge.tsx +1 -3
- package/client/src/components/ui/scroll-area.tsx +5 -2
- package/client/src/components/ui/select.tsx +7 -3
- package/client/src/components/ui/separator.tsx +5 -2
- package/client/src/components/ui/tabs.tsx +4 -2
- package/client/src/layouts/dashboard.tsx +223 -121
- package/client/src/main.tsx +34 -34
- package/client/src/pages/bot-detail/MessageBody.tsx +110 -0
- package/client/src/pages/bot-detail/date-utils.ts +8 -0
- package/client/src/pages/bot-detail/index.tsx +798 -0
- package/client/src/pages/bot-detail/types.ts +92 -0
- package/client/src/pages/bot-detail/useBotConsole.tsx +600 -0
- package/client/src/pages/bots.tsx +111 -73
- package/client/src/pages/database/constants.ts +16 -0
- package/client/src/pages/database/database-page.tsx +170 -0
- package/client/src/pages/database/document-collection-view.tsx +155 -0
- package/client/src/pages/database/index.tsx +1 -0
- package/client/src/pages/database/json-field.tsx +11 -0
- package/client/src/pages/database/kv-bucket-view.tsx +169 -0
- package/client/src/pages/database/related-table-view.tsx +221 -0
- package/client/src/pages/env.tsx +38 -28
- package/client/src/pages/files/code-editor.tsx +85 -0
- package/client/src/pages/files/editor-constants.ts +9 -0
- package/client/src/pages/files/file-editor.tsx +133 -0
- package/client/src/pages/files/file-icons.tsx +25 -0
- package/client/src/pages/files/files-page.tsx +92 -0
- package/client/src/pages/files/hljs-global.d.ts +10 -0
- package/client/src/pages/files/index.tsx +1 -0
- package/client/src/pages/files/language.ts +18 -0
- package/client/src/pages/files/tree-node.tsx +69 -0
- package/client/src/pages/files/use-hljs-theme.ts +23 -0
- package/client/src/pages/logs.tsx +77 -22
- package/client/src/style.css +144 -0
- package/client/src/utils/parseComposerContent.ts +57 -0
- package/client/tailwind.config.js +1 -0
- package/client/tsconfig.json +3 -1
- package/dist/assets/index-COKXlFo2.js +124 -0
- package/dist/assets/style-kkLO-vsa.css +3 -0
- package/dist/client.js +482 -464
- package/dist/index.html +2 -2
- package/dist/style.css +1 -1
- package/lib/index.js +1010 -81
- package/lib/transform.js +16 -2
- package/lib/websocket.js +845 -28
- package/node.tsconfig.json +18 -0
- package/package.json +13 -15
- package/src/bin.ts +24 -0
- package/src/bot-db-models.ts +74 -0
- package/src/bot-hub.ts +240 -0
- package/src/bot-persistence.ts +270 -0
- package/src/build.ts +90 -0
- package/src/dev.ts +107 -0
- package/src/index.ts +337 -0
- package/src/transform.ts +199 -0
- package/src/websocket.ts +1369 -0
- package/client/src/pages/database.tsx +0 -708
- package/client/src/pages/files.tsx +0 -470
- package/client/src/pages/login-assist.tsx +0 -225
- package/dist/assets/index-DS4RbHWX.js +0 -124
- package/dist/assets/style-DS-m6WEr.css +0 -3
package/dist/client.js
CHANGED
|
@@ -1689,29 +1689,42 @@ var _ = (e, t) => {
|
|
|
1689
1689
|
"selection"
|
|
1690
1690
|
]
|
|
1691
1691
|
};
|
|
1692
|
-
});
|
|
1692
|
+
}), it = "base64://";
|
|
1693
|
+
function at(e, t = "image") {
|
|
1694
|
+
if (e == null || typeof e != "string") return;
|
|
1695
|
+
let n = e.trim();
|
|
1696
|
+
if (!n) return;
|
|
1697
|
+
if (n.startsWith("data:") || n.startsWith("blob:") || n.startsWith("http://") || n.startsWith("https://") || !n.startsWith(it)) return n;
|
|
1698
|
+
let r = n.slice(9).replace(/^\s+/, "");
|
|
1699
|
+
if (r) return /^[\w+.-]+\/[\w+.-]+;base64,/i.test(r) ? `data:${r}` : `data:${t === "image" ? "image/png" : t === "video" ? "video/mp4" : "audio/mpeg"};base64,${r.replace(/\s/g, "")}`;
|
|
1700
|
+
}
|
|
1701
|
+
function ot(e) {
|
|
1702
|
+
if (!e) return;
|
|
1703
|
+
let t = e.url ?? e.file ?? e.src ?? e.href;
|
|
1704
|
+
return typeof t == "string" && t.trim() ? t.trim() : void 0;
|
|
1705
|
+
}
|
|
1693
1706
|
//#endregion
|
|
1694
1707
|
//#region ../../../node_modules/.pnpm/redux@5.0.1/node_modules/redux/dist/redux.mjs
|
|
1695
1708
|
function z(e) {
|
|
1696
1709
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
1697
1710
|
}
|
|
1698
|
-
var
|
|
1699
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
1700
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
1701
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${
|
|
1711
|
+
var st = typeof Symbol == "function" && Symbol.observable || "@@observable", ct = () => Math.random().toString(36).substring(7).split("").join("."), lt = {
|
|
1712
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ ct()}`,
|
|
1713
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ ct()}`,
|
|
1714
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${ct()}`
|
|
1702
1715
|
};
|
|
1703
|
-
function
|
|
1716
|
+
function ut(e) {
|
|
1704
1717
|
if (typeof e != "object" || !e) return !1;
|
|
1705
1718
|
let t = e;
|
|
1706
1719
|
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
1707
1720
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
1708
1721
|
}
|
|
1709
|
-
function
|
|
1722
|
+
function dt(e, t, n) {
|
|
1710
1723
|
if (typeof e != "function") throw Error(z(2));
|
|
1711
1724
|
if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(z(0));
|
|
1712
1725
|
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
|
|
1713
1726
|
if (typeof n != "function") throw Error(z(1));
|
|
1714
|
-
return n(
|
|
1727
|
+
return n(dt)(e, t);
|
|
1715
1728
|
}
|
|
1716
1729
|
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
|
|
1717
1730
|
function l() {
|
|
@@ -1737,7 +1750,7 @@ function ct(e, t, n) {
|
|
|
1737
1750
|
};
|
|
1738
1751
|
}
|
|
1739
1752
|
function f(e) {
|
|
1740
|
-
if (!
|
|
1753
|
+
if (!ut(e)) throw Error(z(7));
|
|
1741
1754
|
if (e.type === void 0) throw Error(z(8));
|
|
1742
1755
|
if (typeof e.type != "string") throw Error(z(17));
|
|
1743
1756
|
if (c) throw Error(z(9));
|
|
@@ -1752,7 +1765,7 @@ function ct(e, t, n) {
|
|
|
1752
1765
|
}
|
|
1753
1766
|
function p(e) {
|
|
1754
1767
|
if (typeof e != "function") throw Error(z(10));
|
|
1755
|
-
r = e, f({ type:
|
|
1768
|
+
r = e, f({ type: lt.REPLACE });
|
|
1756
1769
|
}
|
|
1757
1770
|
function m() {
|
|
1758
1771
|
let e = d;
|
|
@@ -1765,27 +1778,27 @@ function ct(e, t, n) {
|
|
|
1765
1778
|
}
|
|
1766
1779
|
return n(), { unsubscribe: e(n) };
|
|
1767
1780
|
},
|
|
1768
|
-
[
|
|
1781
|
+
[st]() {
|
|
1769
1782
|
return this;
|
|
1770
1783
|
}
|
|
1771
1784
|
};
|
|
1772
1785
|
}
|
|
1773
|
-
return f({ type:
|
|
1786
|
+
return f({ type: lt.INIT }), {
|
|
1774
1787
|
dispatch: f,
|
|
1775
1788
|
subscribe: d,
|
|
1776
1789
|
getState: u,
|
|
1777
1790
|
replaceReducer: p,
|
|
1778
|
-
[
|
|
1791
|
+
[st]: m
|
|
1779
1792
|
};
|
|
1780
1793
|
}
|
|
1781
|
-
function
|
|
1794
|
+
function ft(e) {
|
|
1782
1795
|
Object.keys(e).forEach((t) => {
|
|
1783
1796
|
let n = e[t];
|
|
1784
|
-
if (n(void 0, { type:
|
|
1785
|
-
if (n(void 0, { type:
|
|
1797
|
+
if (n(void 0, { type: lt.INIT }) === void 0) throw Error(z(12));
|
|
1798
|
+
if (n(void 0, { type: lt.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(z(13));
|
|
1786
1799
|
});
|
|
1787
1800
|
}
|
|
1788
|
-
function
|
|
1801
|
+
function pt(e) {
|
|
1789
1802
|
let t = Object.keys(e), n = {};
|
|
1790
1803
|
for (let r = 0; r < t.length; r++) {
|
|
1791
1804
|
let i = t[r];
|
|
@@ -1793,7 +1806,7 @@ function ut(e) {
|
|
|
1793
1806
|
}
|
|
1794
1807
|
let r = Object.keys(n), i;
|
|
1795
1808
|
try {
|
|
1796
|
-
|
|
1809
|
+
ft(n);
|
|
1797
1810
|
} catch (e) {
|
|
1798
1811
|
i = e;
|
|
1799
1812
|
}
|
|
@@ -1808,10 +1821,10 @@ function ut(e) {
|
|
|
1808
1821
|
return a ||= r.length !== Object.keys(e).length, a ? o : e;
|
|
1809
1822
|
};
|
|
1810
1823
|
}
|
|
1811
|
-
function
|
|
1824
|
+
function mt(...e) {
|
|
1812
1825
|
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
|
|
1813
1826
|
}
|
|
1814
|
-
function
|
|
1827
|
+
function ht(...e) {
|
|
1815
1828
|
return (t) => (n, r) => {
|
|
1816
1829
|
let i = t(n, r), a = () => {
|
|
1817
1830
|
throw Error(z(15));
|
|
@@ -1819,106 +1832,106 @@ function ft(...e) {
|
|
|
1819
1832
|
getState: i.getState,
|
|
1820
1833
|
dispatch: (e, ...t) => a(e, ...t)
|
|
1821
1834
|
};
|
|
1822
|
-
return a =
|
|
1835
|
+
return a = mt(...e.map((e) => e(o)))(i.dispatch), {
|
|
1823
1836
|
...i,
|
|
1824
1837
|
dispatch: a
|
|
1825
1838
|
};
|
|
1826
1839
|
};
|
|
1827
1840
|
}
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1841
|
+
function gt(e) {
|
|
1842
|
+
return ut(e) && "type" in e && typeof e.type == "string";
|
|
1830
1843
|
}
|
|
1831
1844
|
//#endregion
|
|
1832
1845
|
//#region ../../../node_modules/.pnpm/immer@11.1.4/node_modules/immer/dist/immer.mjs
|
|
1833
|
-
var
|
|
1846
|
+
var _t = Symbol.for("immer-nothing"), vt = Symbol.for("immer-draftable"), B = Symbol.for("immer-state");
|
|
1834
1847
|
function V(e, ...t) {
|
|
1835
1848
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
1836
1849
|
}
|
|
1837
|
-
var H = Object,
|
|
1850
|
+
var H = Object, yt = H.getPrototypeOf, bt = "constructor", xt = "prototype", St = "configurable", Ct = "enumerable", wt = "writable", Tt = "value", U = (e) => !!e && !!e[B];
|
|
1838
1851
|
function W(e) {
|
|
1839
|
-
return e ?
|
|
1852
|
+
return e ? Ot(e) || Ft(e) || !!e[vt] || !!e[bt]?.[vt] || It(e) || Lt(e) : !1;
|
|
1840
1853
|
}
|
|
1841
|
-
var
|
|
1842
|
-
function
|
|
1843
|
-
if (!e || !
|
|
1844
|
-
let t =
|
|
1845
|
-
if (t === null || t === H[
|
|
1846
|
-
let n = H.hasOwnProperty.call(t,
|
|
1854
|
+
var Et = H[xt][bt].toString(), Dt = /* @__PURE__ */ new WeakMap();
|
|
1855
|
+
function Ot(e) {
|
|
1856
|
+
if (!e || !Rt(e)) return !1;
|
|
1857
|
+
let t = yt(e);
|
|
1858
|
+
if (t === null || t === H[xt]) return !0;
|
|
1859
|
+
let n = H.hasOwnProperty.call(t, bt) && t[bt];
|
|
1847
1860
|
if (n === Object) return !0;
|
|
1848
|
-
if (!
|
|
1849
|
-
let r =
|
|
1850
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
1861
|
+
if (!zt(n)) return !1;
|
|
1862
|
+
let r = Dt.get(n);
|
|
1863
|
+
return r === void 0 && (r = Function.toString.call(n), Dt.set(n, r)), r === Et;
|
|
1851
1864
|
}
|
|
1852
|
-
function
|
|
1853
|
-
|
|
1865
|
+
function kt(e, t, n = !0) {
|
|
1866
|
+
At(e) === 0 ? (n ? Reflect.ownKeys(e) : H.keys(e)).forEach((n) => {
|
|
1854
1867
|
t(n, e[n], e);
|
|
1855
1868
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
1856
1869
|
}
|
|
1857
|
-
function
|
|
1870
|
+
function At(e) {
|
|
1858
1871
|
let t = e[B];
|
|
1859
|
-
return t ? t.type_ :
|
|
1872
|
+
return t ? t.type_ : Ft(e) ? 1 : It(e) ? 2 : Lt(e) ? 3 : 0;
|
|
1860
1873
|
}
|
|
1861
|
-
var
|
|
1874
|
+
var jt = (e, t, n = At(e)) => n === 2 ? e.has(t) : H[xt].hasOwnProperty.call(e, t), Mt = (e, t, n = At(e)) => n === 2 ? e.get(t) : e[t], Nt = (e, t, n, r = At(e)) => {
|
|
1862
1875
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
1863
1876
|
};
|
|
1864
|
-
function
|
|
1877
|
+
function Pt(e, t) {
|
|
1865
1878
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
1866
1879
|
}
|
|
1867
|
-
var
|
|
1868
|
-
function
|
|
1880
|
+
var Ft = Array.isArray, It = (e) => e instanceof Map, Lt = (e) => e instanceof Set, Rt = (e) => typeof e == "object", zt = (e) => typeof e == "function", Bt = (e) => typeof e == "boolean";
|
|
1881
|
+
function Vt(e) {
|
|
1869
1882
|
let t = +e;
|
|
1870
1883
|
return Number.isInteger(t) && String(t) === e;
|
|
1871
1884
|
}
|
|
1872
|
-
var G = (e) => e.copy_ || e.base_,
|
|
1873
|
-
function
|
|
1874
|
-
if (
|
|
1875
|
-
if (
|
|
1876
|
-
if (
|
|
1877
|
-
let n =
|
|
1885
|
+
var G = (e) => e.copy_ || e.base_, Ht = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
1886
|
+
function Ut(e, t) {
|
|
1887
|
+
if (It(e)) return new Map(e);
|
|
1888
|
+
if (Lt(e)) return new Set(e);
|
|
1889
|
+
if (Ft(e)) return Array[xt].slice.call(e);
|
|
1890
|
+
let n = Ot(e);
|
|
1878
1891
|
if (t === !0 || t === "class_only" && !n) {
|
|
1879
1892
|
let t = H.getOwnPropertyDescriptors(e);
|
|
1880
1893
|
delete t[B];
|
|
1881
1894
|
let n = Reflect.ownKeys(t);
|
|
1882
1895
|
for (let r = 0; r < n.length; r++) {
|
|
1883
1896
|
let i = n[r], a = t[i];
|
|
1884
|
-
a[
|
|
1885
|
-
[
|
|
1886
|
-
[
|
|
1887
|
-
[
|
|
1888
|
-
[
|
|
1897
|
+
a[wt] === !1 && (a[wt] = !0, a[St] = !0), (a.get || a.set) && (t[i] = {
|
|
1898
|
+
[St]: !0,
|
|
1899
|
+
[wt]: !0,
|
|
1900
|
+
[Ct]: a[Ct],
|
|
1901
|
+
[Tt]: e[i]
|
|
1889
1902
|
});
|
|
1890
1903
|
}
|
|
1891
|
-
return H.create(
|
|
1904
|
+
return H.create(yt(e), t);
|
|
1892
1905
|
} else {
|
|
1893
|
-
let t =
|
|
1906
|
+
let t = yt(e);
|
|
1894
1907
|
if (t !== null && n) return { ...e };
|
|
1895
1908
|
let r = H.create(t);
|
|
1896
1909
|
return H.assign(r, e);
|
|
1897
1910
|
}
|
|
1898
1911
|
}
|
|
1899
|
-
function
|
|
1900
|
-
return
|
|
1901
|
-
set:
|
|
1902
|
-
add:
|
|
1903
|
-
clear:
|
|
1904
|
-
delete:
|
|
1905
|
-
}), H.freeze(e), t &&
|
|
1906
|
-
|
|
1912
|
+
function Wt(e, t = !1) {
|
|
1913
|
+
return qt(e) || U(e) || !W(e) ? e : (At(e) > 1 && H.defineProperties(e, {
|
|
1914
|
+
set: Kt,
|
|
1915
|
+
add: Kt,
|
|
1916
|
+
clear: Kt,
|
|
1917
|
+
delete: Kt
|
|
1918
|
+
}), H.freeze(e), t && kt(e, (e, t) => {
|
|
1919
|
+
Wt(t, !0);
|
|
1907
1920
|
}, !1), e);
|
|
1908
1921
|
}
|
|
1909
|
-
function
|
|
1922
|
+
function Gt() {
|
|
1910
1923
|
V(2);
|
|
1911
1924
|
}
|
|
1912
|
-
var
|
|
1913
|
-
function
|
|
1914
|
-
return e === null || !
|
|
1925
|
+
var Kt = { [Tt]: Gt };
|
|
1926
|
+
function qt(e) {
|
|
1927
|
+
return e === null || !Rt(e) ? !0 : H.isFrozen(e);
|
|
1915
1928
|
}
|
|
1916
|
-
var
|
|
1917
|
-
function
|
|
1918
|
-
let t =
|
|
1929
|
+
var Jt = "MapSet", Yt = "Patches", Xt = "ArrayMethods", Zt = {};
|
|
1930
|
+
function Qt(e) {
|
|
1931
|
+
let t = Zt[e];
|
|
1919
1932
|
return t || V(0, e), t;
|
|
1920
1933
|
}
|
|
1921
|
-
var
|
|
1934
|
+
var $t = (e) => !!Zt[e], en, tn = () => en, nn = (e, t) => ({
|
|
1922
1935
|
drafts_: [],
|
|
1923
1936
|
parent_: e,
|
|
1924
1937
|
immer_: t,
|
|
@@ -1926,114 +1939,114 @@ var Xt = (e) => !!Jt[e], Zt, Qt = () => Zt, $t = (e, t) => ({
|
|
|
1926
1939
|
unfinalizedDrafts_: 0,
|
|
1927
1940
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
1928
1941
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
1929
|
-
mapSetPlugin_:
|
|
1930
|
-
arrayMethodsPlugin_: Xt
|
|
1942
|
+
mapSetPlugin_: $t(Jt) ? Qt(Jt) : void 0,
|
|
1943
|
+
arrayMethodsPlugin_: $t(Xt) ? Qt(Xt) : void 0
|
|
1931
1944
|
});
|
|
1932
|
-
function
|
|
1933
|
-
t && (e.patchPlugin_ = Yt
|
|
1945
|
+
function rn(e, t) {
|
|
1946
|
+
t && (e.patchPlugin_ = Qt(Yt), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
1934
1947
|
}
|
|
1935
|
-
function
|
|
1936
|
-
|
|
1948
|
+
function an(e) {
|
|
1949
|
+
on(e), e.drafts_.forEach(cn), e.drafts_ = null;
|
|
1937
1950
|
}
|
|
1938
|
-
function
|
|
1939
|
-
e ===
|
|
1951
|
+
function on(e) {
|
|
1952
|
+
e === en && (en = e.parent_);
|
|
1940
1953
|
}
|
|
1941
|
-
var
|
|
1942
|
-
function
|
|
1954
|
+
var sn = (e) => en = nn(en, e);
|
|
1955
|
+
function cn(e) {
|
|
1943
1956
|
let t = e[B];
|
|
1944
1957
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
1945
1958
|
}
|
|
1946
|
-
function
|
|
1959
|
+
function ln(e, t) {
|
|
1947
1960
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
1948
1961
|
let n = t.drafts_[0];
|
|
1949
1962
|
if (e !== void 0 && e !== n) {
|
|
1950
|
-
n[B].modified_ && (
|
|
1963
|
+
n[B].modified_ && (an(t), V(4)), W(e) && (e = un(t, e));
|
|
1951
1964
|
let { patchPlugin_: r } = t;
|
|
1952
1965
|
r && r.generateReplacementPatches_(n[B].base_, e, t);
|
|
1953
|
-
} else e =
|
|
1954
|
-
return
|
|
1966
|
+
} else e = un(t, n);
|
|
1967
|
+
return dn(t, e, !0), an(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === _t ? void 0 : e;
|
|
1955
1968
|
}
|
|
1956
|
-
function
|
|
1957
|
-
if (
|
|
1969
|
+
function un(e, t) {
|
|
1970
|
+
if (qt(t)) return t;
|
|
1958
1971
|
let n = t[B];
|
|
1959
|
-
if (!n) return
|
|
1960
|
-
if (!
|
|
1972
|
+
if (!n) return yn(t, e.handledSet_, e);
|
|
1973
|
+
if (!pn(n, e)) return t;
|
|
1961
1974
|
if (!n.modified_) return n.base_;
|
|
1962
1975
|
if (!n.finalized_) {
|
|
1963
1976
|
let { callbacks_: t } = n;
|
|
1964
1977
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
1965
|
-
|
|
1978
|
+
_n(n, e);
|
|
1966
1979
|
}
|
|
1967
1980
|
return n.copy_;
|
|
1968
1981
|
}
|
|
1969
|
-
function
|
|
1970
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
1982
|
+
function dn(e, t, n = !1) {
|
|
1983
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Wt(t, n);
|
|
1971
1984
|
}
|
|
1972
|
-
function
|
|
1985
|
+
function fn(e) {
|
|
1973
1986
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
1974
1987
|
}
|
|
1975
|
-
var
|
|
1976
|
-
function
|
|
1988
|
+
var pn = (e, t) => e.scope_ === t, mn = [];
|
|
1989
|
+
function hn(e, t, n, r) {
|
|
1977
1990
|
let i = G(e), a = e.type_;
|
|
1978
|
-
if (r !== void 0 &&
|
|
1979
|
-
|
|
1991
|
+
if (r !== void 0 && Mt(i, r, a) === t) {
|
|
1992
|
+
Nt(i, r, n, a);
|
|
1980
1993
|
return;
|
|
1981
1994
|
}
|
|
1982
1995
|
if (!e.draftLocations_) {
|
|
1983
1996
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
1984
|
-
|
|
1997
|
+
kt(i, (e, n) => {
|
|
1985
1998
|
if (U(n)) {
|
|
1986
1999
|
let r = t.get(n) || [];
|
|
1987
2000
|
r.push(e), t.set(n, r);
|
|
1988
2001
|
}
|
|
1989
2002
|
});
|
|
1990
2003
|
}
|
|
1991
|
-
let o = e.draftLocations_.get(t) ??
|
|
1992
|
-
for (let e of o)
|
|
2004
|
+
let o = e.draftLocations_.get(t) ?? mn;
|
|
2005
|
+
for (let e of o) Nt(i, e, n, a);
|
|
1993
2006
|
}
|
|
1994
|
-
function
|
|
2007
|
+
function gn(e, t, n) {
|
|
1995
2008
|
e.callbacks_.push(function(r) {
|
|
1996
2009
|
let i = t;
|
|
1997
|
-
if (!i || !
|
|
2010
|
+
if (!i || !pn(i, r)) return;
|
|
1998
2011
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
1999
|
-
let a =
|
|
2000
|
-
|
|
2012
|
+
let a = Ht(i);
|
|
2013
|
+
hn(e, i.draft_ ?? i, a, n), _n(i, r);
|
|
2001
2014
|
});
|
|
2002
2015
|
}
|
|
2003
|
-
function
|
|
2016
|
+
function _n(e, t) {
|
|
2004
2017
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
2005
2018
|
let { patchPlugin_: n } = t;
|
|
2006
2019
|
if (n) {
|
|
2007
2020
|
let r = n.getPath(e);
|
|
2008
2021
|
r && n.generatePatches_(e, r, t);
|
|
2009
2022
|
}
|
|
2010
|
-
|
|
2023
|
+
fn(e);
|
|
2011
2024
|
}
|
|
2012
2025
|
}
|
|
2013
|
-
function
|
|
2026
|
+
function vn(e, t, n) {
|
|
2014
2027
|
let { scope_: r } = e;
|
|
2015
2028
|
if (U(n)) {
|
|
2016
2029
|
let i = n[B];
|
|
2017
|
-
|
|
2018
|
-
|
|
2030
|
+
pn(i, r) && i.callbacks_.push(function() {
|
|
2031
|
+
Dn(e), hn(e, n, Ht(i), t);
|
|
2019
2032
|
});
|
|
2020
2033
|
} else W(n) && e.callbacks_.push(function() {
|
|
2021
2034
|
let i = G(e);
|
|
2022
|
-
e.type_ === 3 ? i.has(n) &&
|
|
2035
|
+
e.type_ === 3 ? i.has(n) && yn(n, r.handledSet_, r) : Mt(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && yn(Mt(e.copy_, t, e.type_), r.handledSet_, r);
|
|
2023
2036
|
});
|
|
2024
2037
|
}
|
|
2025
|
-
function
|
|
2026
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || U(e) || t.has(e) || !W(e) ||
|
|
2038
|
+
function yn(e, t, n) {
|
|
2039
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || U(e) || t.has(e) || !W(e) || qt(e) ? e : (t.add(e), kt(e, (r, i) => {
|
|
2027
2040
|
if (U(i)) {
|
|
2028
2041
|
let t = i[B];
|
|
2029
|
-
|
|
2030
|
-
} else W(i) &&
|
|
2042
|
+
pn(t, n) && (Nt(e, r, Ht(t), e.type_), fn(t));
|
|
2043
|
+
} else W(i) && yn(i, t, n);
|
|
2031
2044
|
}), e);
|
|
2032
2045
|
}
|
|
2033
|
-
function
|
|
2034
|
-
let n =
|
|
2046
|
+
function bn(e, t) {
|
|
2047
|
+
let n = Ft(e), r = {
|
|
2035
2048
|
type_: n ? 1 : 0,
|
|
2036
|
-
scope_: t ? t.scope_ :
|
|
2049
|
+
scope_: t ? t.scope_ : tn(),
|
|
2037
2050
|
modified_: !1,
|
|
2038
2051
|
finalized_: !1,
|
|
2039
2052
|
assigned_: void 0,
|
|
@@ -2044,23 +2057,23 @@ function _n(e, t) {
|
|
|
2044
2057
|
revoke_: null,
|
|
2045
2058
|
isManual_: !1,
|
|
2046
2059
|
callbacks_: void 0
|
|
2047
|
-
}, i = r, a =
|
|
2048
|
-
n && (i = [r], a =
|
|
2060
|
+
}, i = r, a = xn;
|
|
2061
|
+
n && (i = [r], a = Sn);
|
|
2049
2062
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
2050
2063
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
2051
2064
|
}
|
|
2052
|
-
var
|
|
2065
|
+
var xn = {
|
|
2053
2066
|
get(e, t) {
|
|
2054
2067
|
if (t === B) return e;
|
|
2055
2068
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
2056
2069
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
2057
2070
|
let i = G(e);
|
|
2058
|
-
if (!
|
|
2071
|
+
if (!jt(i, t, e.type_)) return wn(e, i, t);
|
|
2059
2072
|
let a = i[t];
|
|
2060
|
-
if (e.finalized_ || !W(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) &&
|
|
2061
|
-
if (a ===
|
|
2062
|
-
|
|
2063
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
2073
|
+
if (e.finalized_ || !W(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Vt(t)) return a;
|
|
2074
|
+
if (a === Cn(e.base_, t)) {
|
|
2075
|
+
Dn(e);
|
|
2076
|
+
let n = e.type_ === 1 ? +t : t, r = kn(e.scope_, a, e, n);
|
|
2064
2077
|
return e.copy_[n] = r;
|
|
2065
2078
|
}
|
|
2066
2079
|
return a;
|
|
@@ -2072,77 +2085,77 @@ var vn = {
|
|
|
2072
2085
|
return Reflect.ownKeys(G(e));
|
|
2073
2086
|
},
|
|
2074
2087
|
set(e, t, n) {
|
|
2075
|
-
let r =
|
|
2088
|
+
let r = Tn(G(e), t);
|
|
2076
2089
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
2077
2090
|
if (!e.modified_) {
|
|
2078
|
-
let r =
|
|
2091
|
+
let r = Cn(G(e), t), i = r?.[B];
|
|
2079
2092
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
2080
|
-
if (
|
|
2081
|
-
|
|
2093
|
+
if (Pt(n, r) && (n !== void 0 || jt(e.base_, t, e.type_))) return !0;
|
|
2094
|
+
Dn(e), En(e);
|
|
2082
2095
|
}
|
|
2083
|
-
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
2096
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), vn(e, t, n), !0);
|
|
2084
2097
|
},
|
|
2085
2098
|
deleteProperty(e, t) {
|
|
2086
|
-
return
|
|
2099
|
+
return Dn(e), Cn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), En(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
2087
2100
|
},
|
|
2088
2101
|
getOwnPropertyDescriptor(e, t) {
|
|
2089
2102
|
let n = G(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
2090
2103
|
return r && {
|
|
2091
|
-
[
|
|
2092
|
-
[
|
|
2093
|
-
[
|
|
2094
|
-
[
|
|
2104
|
+
[wt]: !0,
|
|
2105
|
+
[St]: e.type_ !== 1 || t !== "length",
|
|
2106
|
+
[Ct]: r[Ct],
|
|
2107
|
+
[Tt]: n[t]
|
|
2095
2108
|
};
|
|
2096
2109
|
},
|
|
2097
2110
|
defineProperty() {
|
|
2098
2111
|
V(11);
|
|
2099
2112
|
},
|
|
2100
2113
|
getPrototypeOf(e) {
|
|
2101
|
-
return
|
|
2114
|
+
return yt(e.base_);
|
|
2102
2115
|
},
|
|
2103
2116
|
setPrototypeOf() {
|
|
2104
2117
|
V(12);
|
|
2105
2118
|
}
|
|
2106
|
-
},
|
|
2107
|
-
for (let e in
|
|
2108
|
-
let t =
|
|
2109
|
-
|
|
2119
|
+
}, Sn = {};
|
|
2120
|
+
for (let e in xn) {
|
|
2121
|
+
let t = xn[e];
|
|
2122
|
+
Sn[e] = function() {
|
|
2110
2123
|
let e = arguments;
|
|
2111
2124
|
return e[0] = e[0][0], t.apply(this, e);
|
|
2112
2125
|
};
|
|
2113
2126
|
}
|
|
2114
|
-
|
|
2115
|
-
return
|
|
2116
|
-
},
|
|
2117
|
-
return
|
|
2127
|
+
Sn.deleteProperty = function(e, t) {
|
|
2128
|
+
return Sn.set.call(this, e, t, void 0);
|
|
2129
|
+
}, Sn.set = function(e, t, n) {
|
|
2130
|
+
return xn.set.call(this, e[0], t, n, e[0]);
|
|
2118
2131
|
};
|
|
2119
|
-
function
|
|
2132
|
+
function Cn(e, t) {
|
|
2120
2133
|
let n = e[B];
|
|
2121
2134
|
return (n ? G(n) : e)[t];
|
|
2122
2135
|
}
|
|
2123
|
-
function
|
|
2124
|
-
let r =
|
|
2125
|
-
return r ?
|
|
2136
|
+
function wn(e, t, n) {
|
|
2137
|
+
let r = Tn(t, n);
|
|
2138
|
+
return r ? Tt in r ? r[Tt] : r.get?.call(e.draft_) : void 0;
|
|
2126
2139
|
}
|
|
2127
|
-
function
|
|
2140
|
+
function Tn(e, t) {
|
|
2128
2141
|
if (!(t in e)) return;
|
|
2129
|
-
let n =
|
|
2142
|
+
let n = yt(e);
|
|
2130
2143
|
for (; n;) {
|
|
2131
2144
|
let e = Object.getOwnPropertyDescriptor(n, t);
|
|
2132
2145
|
if (e) return e;
|
|
2133
|
-
n =
|
|
2146
|
+
n = yt(n);
|
|
2134
2147
|
}
|
|
2135
2148
|
}
|
|
2136
|
-
function
|
|
2137
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
2149
|
+
function En(e) {
|
|
2150
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && En(e.parent_));
|
|
2138
2151
|
}
|
|
2139
|
-
function
|
|
2140
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
2152
|
+
function Dn(e) {
|
|
2153
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Ut(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
2141
2154
|
}
|
|
2142
|
-
var
|
|
2155
|
+
var On = class {
|
|
2143
2156
|
constructor(e) {
|
|
2144
2157
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
2145
|
-
if (
|
|
2158
|
+
if (zt(e) && !zt(t)) {
|
|
2146
2159
|
let n = t;
|
|
2147
2160
|
t = e;
|
|
2148
2161
|
let r = this;
|
|
@@ -2150,20 +2163,20 @@ var Tn = class {
|
|
|
2150
2163
|
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
2151
2164
|
};
|
|
2152
2165
|
}
|
|
2153
|
-
|
|
2166
|
+
zt(t) || V(6), n !== void 0 && !zt(n) && V(7);
|
|
2154
2167
|
let r;
|
|
2155
2168
|
if (W(e)) {
|
|
2156
|
-
let i =
|
|
2169
|
+
let i = sn(this), a = kn(i, e, void 0), o = !0;
|
|
2157
2170
|
try {
|
|
2158
2171
|
r = t(a), o = !1;
|
|
2159
2172
|
} finally {
|
|
2160
|
-
o ?
|
|
2173
|
+
o ? an(i) : on(i);
|
|
2161
2174
|
}
|
|
2162
|
-
return
|
|
2163
|
-
} else if (!e || !
|
|
2164
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
2175
|
+
return rn(i, n), ln(r, i);
|
|
2176
|
+
} else if (!e || !Rt(e)) {
|
|
2177
|
+
if (r = t(e), r === void 0 && (r = e), r === _t && (r = void 0), this.autoFreeze_ && Wt(r, !0), n) {
|
|
2165
2178
|
let t = [], i = [];
|
|
2166
|
-
Yt
|
|
2179
|
+
Qt(Yt).generateReplacementPatches_(e, r, {
|
|
2167
2180
|
patches_: t,
|
|
2168
2181
|
inversePatches_: i
|
|
2169
2182
|
}), n(t, i);
|
|
@@ -2171,7 +2184,7 @@ var Tn = class {
|
|
|
2171
2184
|
return r;
|
|
2172
2185
|
} else V(1, e);
|
|
2173
2186
|
}, this.produceWithPatches = (e, t) => {
|
|
2174
|
-
if (
|
|
2187
|
+
if (zt(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
2175
2188
|
let n, r;
|
|
2176
2189
|
return [
|
|
2177
2190
|
this.produce(e, t, (e, t) => {
|
|
@@ -2180,18 +2193,18 @@ var Tn = class {
|
|
|
2180
2193
|
n,
|
|
2181
2194
|
r
|
|
2182
2195
|
];
|
|
2183
|
-
},
|
|
2196
|
+
}, Bt(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Bt(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Bt(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
2184
2197
|
}
|
|
2185
2198
|
createDraft(e) {
|
|
2186
|
-
W(e) || V(8), U(e) && (e =
|
|
2187
|
-
let t =
|
|
2188
|
-
return n[B].isManual_ = !0,
|
|
2199
|
+
W(e) || V(8), U(e) && (e = An(e));
|
|
2200
|
+
let t = sn(this), n = kn(t, e, void 0);
|
|
2201
|
+
return n[B].isManual_ = !0, on(t), n;
|
|
2189
2202
|
}
|
|
2190
2203
|
finishDraft(e, t) {
|
|
2191
2204
|
let n = e && e[B];
|
|
2192
2205
|
(!n || !n.isManual_) && V(9);
|
|
2193
2206
|
let { scope_: r } = n;
|
|
2194
|
-
return
|
|
2207
|
+
return rn(r, t), ln(void 0, r);
|
|
2195
2208
|
}
|
|
2196
2209
|
setAutoFreeze(e) {
|
|
2197
2210
|
this.autoFreeze_ = e;
|
|
@@ -2215,44 +2228,44 @@ var Tn = class {
|
|
|
2215
2228
|
}
|
|
2216
2229
|
}
|
|
2217
2230
|
n > -1 && (t = t.slice(n + 1));
|
|
2218
|
-
let r = Yt
|
|
2231
|
+
let r = Qt(Yt).applyPatches_;
|
|
2219
2232
|
return U(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
2220
2233
|
}
|
|
2221
2234
|
};
|
|
2222
|
-
function
|
|
2223
|
-
let [i, a] =
|
|
2224
|
-
return (n?.scope_ ??
|
|
2235
|
+
function kn(e, t, n, r) {
|
|
2236
|
+
let [i, a] = It(t) ? Qt(Jt).proxyMap_(t, n) : Lt(t) ? Qt(Jt).proxySet_(t, n) : bn(t, n);
|
|
2237
|
+
return (n?.scope_ ?? tn()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? gn(n, a, r) : a.callbacks_.push(function(e) {
|
|
2225
2238
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
2226
2239
|
let { patchPlugin_: t } = e;
|
|
2227
2240
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
2228
2241
|
}), i;
|
|
2229
2242
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return U(e) || V(10, e),
|
|
2243
|
+
function An(e) {
|
|
2244
|
+
return U(e) || V(10, e), jn(e);
|
|
2232
2245
|
}
|
|
2233
|
-
function
|
|
2234
|
-
if (!W(e) ||
|
|
2246
|
+
function jn(e) {
|
|
2247
|
+
if (!W(e) || qt(e)) return e;
|
|
2235
2248
|
let t = e[B], n, r = !0;
|
|
2236
2249
|
if (t) {
|
|
2237
2250
|
if (!t.modified_) return t.base_;
|
|
2238
|
-
t.finalized_ = !0, n =
|
|
2239
|
-
} else n =
|
|
2240
|
-
return
|
|
2241
|
-
|
|
2251
|
+
t.finalized_ = !0, n = Ut(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
2252
|
+
} else n = Ut(e, !0);
|
|
2253
|
+
return kt(n, (e, t) => {
|
|
2254
|
+
Nt(n, e, jn(t));
|
|
2242
2255
|
}, r), t && (t.finalized_ = !1), n;
|
|
2243
2256
|
}
|
|
2244
|
-
var
|
|
2257
|
+
var Mn = new On().produce;
|
|
2245
2258
|
//#endregion
|
|
2246
2259
|
//#region ../../../node_modules/.pnpm/redux-thunk@3.1.0_redux@5.0.1/node_modules/redux-thunk/dist/redux-thunk.mjs
|
|
2247
|
-
function
|
|
2260
|
+
function Nn(e) {
|
|
2248
2261
|
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
|
|
2249
2262
|
}
|
|
2250
|
-
var
|
|
2251
|
-
if (arguments.length !== 0) return typeof arguments[0] == "object" ?
|
|
2263
|
+
var Pn = Nn(), Fn = Nn, In = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
2264
|
+
if (arguments.length !== 0) return typeof arguments[0] == "object" ? mt : mt.apply(null, arguments);
|
|
2252
2265
|
};
|
|
2253
2266
|
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
2254
|
-
var
|
|
2255
|
-
function
|
|
2267
|
+
var Ln = (e) => e && typeof e.match == "function";
|
|
2268
|
+
function Rn(e, t) {
|
|
2256
2269
|
function n(...n) {
|
|
2257
2270
|
if (t) {
|
|
2258
2271
|
let r = t(...n);
|
|
@@ -2269,9 +2282,9 @@ function Fn(e, t) {
|
|
|
2269
2282
|
payload: n[0]
|
|
2270
2283
|
};
|
|
2271
2284
|
}
|
|
2272
|
-
return n.toString = () => `${e}`, n.type = e, n.match = (t) =>
|
|
2285
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => gt(t) && t.type === e, n;
|
|
2273
2286
|
}
|
|
2274
|
-
var
|
|
2287
|
+
var zn = class e extends Array {
|
|
2275
2288
|
constructor(...t) {
|
|
2276
2289
|
super(...t), Object.setPrototypeOf(this, e.prototype);
|
|
2277
2290
|
}
|
|
@@ -2285,22 +2298,22 @@ var In = class e extends Array {
|
|
|
2285
2298
|
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
|
|
2286
2299
|
}
|
|
2287
2300
|
};
|
|
2288
|
-
function
|
|
2289
|
-
return W(e) ?
|
|
2301
|
+
function Bn(e) {
|
|
2302
|
+
return W(e) ? Mn(e, () => {}) : e;
|
|
2290
2303
|
}
|
|
2291
|
-
function
|
|
2304
|
+
function Vn(e, t, n) {
|
|
2292
2305
|
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
|
|
2293
2306
|
}
|
|
2294
|
-
function
|
|
2307
|
+
function Hn(e) {
|
|
2295
2308
|
return typeof e == "boolean";
|
|
2296
2309
|
}
|
|
2297
|
-
var
|
|
2298
|
-
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new
|
|
2299
|
-
return t && (
|
|
2300
|
-
},
|
|
2310
|
+
var Un = () => function(e) {
|
|
2311
|
+
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new zn();
|
|
2312
|
+
return t && (Hn(t) ? a.push(Pn) : a.push(Fn(t.extraArgument))), a;
|
|
2313
|
+
}, Wn = "RTK_autoBatch", Gn = (e) => (t) => {
|
|
2301
2314
|
setTimeout(t, e);
|
|
2302
|
-
},
|
|
2303
|
-
let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame :
|
|
2315
|
+
}, Kn = (e = { type: "raf" }) => (t) => (...n) => {
|
|
2316
|
+
let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : Gn(10) : e.type === "callback" ? e.queueNotification : Gn(e.timeout), l = () => {
|
|
2304
2317
|
o = !1, a && (a = !1, s.forEach((e) => e()));
|
|
2305
2318
|
};
|
|
2306
2319
|
return Object.assign({}, r, {
|
|
@@ -2312,32 +2325,32 @@ var Bn = () => function(e) {
|
|
|
2312
2325
|
},
|
|
2313
2326
|
dispatch(e) {
|
|
2314
2327
|
try {
|
|
2315
|
-
return i = !e?.meta?.[
|
|
2328
|
+
return i = !e?.meta?.[Wn], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
|
|
2316
2329
|
} finally {
|
|
2317
2330
|
i = !0;
|
|
2318
2331
|
}
|
|
2319
2332
|
}
|
|
2320
2333
|
});
|
|
2321
|
-
},
|
|
2322
|
-
let { autoBatch: n = !0 } = t ?? {}, r = new
|
|
2323
|
-
return n && r.push(
|
|
2334
|
+
}, qn = (e) => function(t) {
|
|
2335
|
+
let { autoBatch: n = !0 } = t ?? {}, r = new zn(e);
|
|
2336
|
+
return n && r.push(Kn(typeof n == "object" ? n : void 0)), r;
|
|
2324
2337
|
};
|
|
2325
|
-
function
|
|
2326
|
-
let t =
|
|
2338
|
+
function Jn(e) {
|
|
2339
|
+
let t = Un(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
|
|
2327
2340
|
if (typeof n == "function") c = n;
|
|
2328
|
-
else if (
|
|
2341
|
+
else if (ut(n)) c = pt(n);
|
|
2329
2342
|
else throw Error(K(1));
|
|
2330
2343
|
let l;
|
|
2331
2344
|
l = typeof r == "function" ? r(t) : t();
|
|
2332
|
-
let u =
|
|
2333
|
-
i && (u =
|
|
2345
|
+
let u = mt;
|
|
2346
|
+
i && (u = In({
|
|
2334
2347
|
trace: !1,
|
|
2335
2348
|
...typeof i == "object" && i
|
|
2336
2349
|
}));
|
|
2337
|
-
let d =
|
|
2338
|
-
return
|
|
2350
|
+
let d = qn(ht(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
|
|
2351
|
+
return dt(c, o, p);
|
|
2339
2352
|
}
|
|
2340
|
-
function
|
|
2353
|
+
function Yn(e) {
|
|
2341
2354
|
let t = {}, n = [], r, i = {
|
|
2342
2355
|
addCase(e, n) {
|
|
2343
2356
|
let r = typeof e == "string" ? e : e.type;
|
|
@@ -2367,14 +2380,14 @@ function Kn(e) {
|
|
|
2367
2380
|
r
|
|
2368
2381
|
];
|
|
2369
2382
|
}
|
|
2370
|
-
function
|
|
2383
|
+
function Xn(e) {
|
|
2371
2384
|
return typeof e == "function";
|
|
2372
2385
|
}
|
|
2373
|
-
function
|
|
2374
|
-
let [n, r, i] =
|
|
2375
|
-
if (
|
|
2386
|
+
function Zn(e, t) {
|
|
2387
|
+
let [n, r, i] = Yn(t), a;
|
|
2388
|
+
if (Xn(e)) a = () => Bn(e());
|
|
2376
2389
|
else {
|
|
2377
|
-
let t =
|
|
2390
|
+
let t = Bn(e);
|
|
2378
2391
|
a = () => t;
|
|
2379
2392
|
}
|
|
2380
2393
|
function o(e = a(), t) {
|
|
@@ -2383,7 +2396,7 @@ function Jn(e, t) {
|
|
|
2383
2396
|
if (n) if (U(e)) {
|
|
2384
2397
|
let r = n(e, t);
|
|
2385
2398
|
return r === void 0 ? e : r;
|
|
2386
|
-
} else if (W(e)) return
|
|
2399
|
+
} else if (W(e)) return Mn(e, (e) => n(e, t));
|
|
2387
2400
|
else {
|
|
2388
2401
|
let r = n(e, t);
|
|
2389
2402
|
if (r === void 0) {
|
|
@@ -2397,39 +2410,39 @@ function Jn(e, t) {
|
|
|
2397
2410
|
}
|
|
2398
2411
|
return o.getInitialState = a, o;
|
|
2399
2412
|
}
|
|
2400
|
-
var
|
|
2401
|
-
function
|
|
2402
|
-
return (t) => e.some((e) =>
|
|
2413
|
+
var Qn = (e, t) => Ln(e) ? e.match(t) : e(t);
|
|
2414
|
+
function $n(...e) {
|
|
2415
|
+
return (t) => e.some((e) => Qn(e, t));
|
|
2403
2416
|
}
|
|
2404
|
-
var
|
|
2417
|
+
var er = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", tr = (e = 21) => {
|
|
2405
2418
|
let t = "", n = e;
|
|
2406
|
-
for (; n--;) t +=
|
|
2419
|
+
for (; n--;) t += er[Math.random() * 64 | 0];
|
|
2407
2420
|
return t;
|
|
2408
|
-
},
|
|
2421
|
+
}, nr = [
|
|
2409
2422
|
"name",
|
|
2410
2423
|
"message",
|
|
2411
2424
|
"stack",
|
|
2412
2425
|
"code"
|
|
2413
|
-
],
|
|
2426
|
+
], rr = class {
|
|
2414
2427
|
constructor(e, t) {
|
|
2415
2428
|
this.payload = e, this.meta = t;
|
|
2416
2429
|
}
|
|
2417
2430
|
_type;
|
|
2418
|
-
},
|
|
2431
|
+
}, ir = class {
|
|
2419
2432
|
constructor(e, t) {
|
|
2420
2433
|
this.payload = e, this.meta = t;
|
|
2421
2434
|
}
|
|
2422
2435
|
_type;
|
|
2423
|
-
},
|
|
2436
|
+
}, ar = (e) => {
|
|
2424
2437
|
if (typeof e == "object" && e) {
|
|
2425
2438
|
let t = {};
|
|
2426
|
-
for (let n of
|
|
2439
|
+
for (let n of nr) typeof e[n] == "string" && (t[n] = e[n]);
|
|
2427
2440
|
return t;
|
|
2428
2441
|
}
|
|
2429
2442
|
return { message: String(e) };
|
|
2430
|
-
},
|
|
2443
|
+
}, or = "External signal was aborted", sr = /* @__PURE__ */ (() => {
|
|
2431
2444
|
function e(e, t, n) {
|
|
2432
|
-
let r =
|
|
2445
|
+
let r = Rn(e + "/fulfilled", (e, t, n, r) => ({
|
|
2433
2446
|
payload: e,
|
|
2434
2447
|
meta: {
|
|
2435
2448
|
...r || {},
|
|
@@ -2437,7 +2450,7 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2437
2450
|
requestId: t,
|
|
2438
2451
|
requestStatus: "fulfilled"
|
|
2439
2452
|
}
|
|
2440
|
-
})), i =
|
|
2453
|
+
})), i = Rn(e + "/pending", (e, t, n) => ({
|
|
2441
2454
|
payload: void 0,
|
|
2442
2455
|
meta: {
|
|
2443
2456
|
...n || {},
|
|
@@ -2445,9 +2458,9 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2445
2458
|
requestId: e,
|
|
2446
2459
|
requestStatus: "pending"
|
|
2447
2460
|
}
|
|
2448
|
-
})), a =
|
|
2461
|
+
})), a = Rn(e + "/rejected", (e, t, r, i, a) => ({
|
|
2449
2462
|
payload: i,
|
|
2450
|
-
error: (n && n.serializeError ||
|
|
2463
|
+
error: (n && n.serializeError || ar)(e || "Rejected"),
|
|
2451
2464
|
meta: {
|
|
2452
2465
|
...a || {},
|
|
2453
2466
|
arg: r,
|
|
@@ -2460,11 +2473,11 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2460
2473
|
}));
|
|
2461
2474
|
function o(e, { signal: o } = {}) {
|
|
2462
2475
|
return (s, c, l) => {
|
|
2463
|
-
let u = n?.idGenerator ? n.idGenerator(e) :
|
|
2476
|
+
let u = n?.idGenerator ? n.idGenerator(e) : tr(), d = new AbortController(), f, p;
|
|
2464
2477
|
function m(e) {
|
|
2465
2478
|
p = e, d.abort();
|
|
2466
2479
|
}
|
|
2467
|
-
o && (o.aborted ? m(
|
|
2480
|
+
o && (o.aborted ? m(or) : o.addEventListener("abort", () => m(or), { once: !0 }));
|
|
2468
2481
|
let h = async function() {
|
|
2469
2482
|
let o;
|
|
2470
2483
|
try {
|
|
@@ -2472,7 +2485,7 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2472
2485
|
getState: c,
|
|
2473
2486
|
extra: l
|
|
2474
2487
|
});
|
|
2475
|
-
if (
|
|
2488
|
+
if (lr(a) && (a = await a), a === !1 || d.signal.aborted) throw {
|
|
2476
2489
|
name: "ConditionError",
|
|
2477
2490
|
message: "Aborted due to condition callback returning false."
|
|
2478
2491
|
};
|
|
@@ -2497,14 +2510,14 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2497
2510
|
requestId: u,
|
|
2498
2511
|
signal: d.signal,
|
|
2499
2512
|
abort: m,
|
|
2500
|
-
rejectWithValue: (e, t) => new
|
|
2501
|
-
fulfillWithValue: (e, t) => new
|
|
2513
|
+
rejectWithValue: (e, t) => new rr(e, t),
|
|
2514
|
+
fulfillWithValue: (e, t) => new ir(e, t)
|
|
2502
2515
|
})).then((t) => {
|
|
2503
|
-
if (t instanceof
|
|
2504
|
-
return t instanceof
|
|
2516
|
+
if (t instanceof rr) throw t;
|
|
2517
|
+
return t instanceof ir ? r(t.payload, u, e, t.meta) : r(t, u, e);
|
|
2505
2518
|
})]);
|
|
2506
2519
|
} catch (t) {
|
|
2507
|
-
o = t instanceof
|
|
2520
|
+
o = t instanceof rr ? a(null, u, e, t.payload, t.meta) : a(t, u, e);
|
|
2508
2521
|
} finally {
|
|
2509
2522
|
f && d.signal.removeEventListener("abort", f);
|
|
2510
2523
|
}
|
|
@@ -2515,7 +2528,7 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2515
2528
|
requestId: u,
|
|
2516
2529
|
arg: e,
|
|
2517
2530
|
unwrap() {
|
|
2518
|
-
return h.then(
|
|
2531
|
+
return h.then(cr);
|
|
2519
2532
|
}
|
|
2520
2533
|
});
|
|
2521
2534
|
};
|
|
@@ -2524,30 +2537,30 @@ var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn
|
|
|
2524
2537
|
pending: i,
|
|
2525
2538
|
rejected: a,
|
|
2526
2539
|
fulfilled: r,
|
|
2527
|
-
settled:
|
|
2540
|
+
settled: $n(a, r),
|
|
2528
2541
|
typePrefix: e
|
|
2529
2542
|
});
|
|
2530
2543
|
}
|
|
2531
2544
|
return e.withTypes = () => e, e;
|
|
2532
2545
|
})();
|
|
2533
|
-
function
|
|
2546
|
+
function cr(e) {
|
|
2534
2547
|
if (e.meta && e.meta.rejectedWithValue) throw e.payload;
|
|
2535
2548
|
if (e.error) throw e.error;
|
|
2536
2549
|
return e.payload;
|
|
2537
2550
|
}
|
|
2538
|
-
function
|
|
2551
|
+
function lr(e) {
|
|
2539
2552
|
return typeof e == "object" && !!e && typeof e.then == "function";
|
|
2540
2553
|
}
|
|
2541
|
-
var
|
|
2542
|
-
function
|
|
2554
|
+
var ur = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
2555
|
+
function dr(e, t) {
|
|
2543
2556
|
return `${e}/${t}`;
|
|
2544
2557
|
}
|
|
2545
|
-
function
|
|
2546
|
-
let t = e?.asyncThunk?.[
|
|
2558
|
+
function fr({ creators: e } = {}) {
|
|
2559
|
+
let t = e?.asyncThunk?.[ur];
|
|
2547
2560
|
return function(e) {
|
|
2548
2561
|
let { name: n, reducerPath: r = n } = e;
|
|
2549
2562
|
if (!n) throw Error(K(11));
|
|
2550
|
-
let i = (typeof e.reducers == "function" ? e.reducers(
|
|
2563
|
+
let i = (typeof e.reducers == "function" ? e.reducers(hr()) : e.reducers) || {}, a = Object.keys(i), o = {
|
|
2551
2564
|
sliceCaseReducersByName: {},
|
|
2552
2565
|
sliceCaseReducersByType: {},
|
|
2553
2566
|
actionCreators: {},
|
|
@@ -2575,17 +2588,17 @@ function lr({ creators: e } = {}) {
|
|
|
2575
2588
|
a.forEach((r) => {
|
|
2576
2589
|
let a = i[r], o = {
|
|
2577
2590
|
reducerName: r,
|
|
2578
|
-
type:
|
|
2591
|
+
type: dr(n, r),
|
|
2579
2592
|
createNotation: typeof e.reducers == "function"
|
|
2580
2593
|
};
|
|
2581
|
-
|
|
2594
|
+
_r(a) ? yr(o, a, s, t) : gr(o, a, s);
|
|
2582
2595
|
});
|
|
2583
2596
|
function c() {
|
|
2584
|
-
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ?
|
|
2597
|
+
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? Yn(e.extraReducers) : [e.extraReducers], i = {
|
|
2585
2598
|
...t,
|
|
2586
2599
|
...o.sliceCaseReducersByType
|
|
2587
2600
|
};
|
|
2588
|
-
return
|
|
2601
|
+
return Zn(e.initialState, (e) => {
|
|
2589
2602
|
for (let t in i) e.addCase(t, i[t]);
|
|
2590
2603
|
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
|
|
2591
2604
|
for (let t of n) e.addMatcher(t.matcher, t.reducer);
|
|
@@ -2602,12 +2615,12 @@ function lr({ creators: e } = {}) {
|
|
|
2602
2615
|
function h(t, n = !1) {
|
|
2603
2616
|
function r(e) {
|
|
2604
2617
|
let i = e[t];
|
|
2605
|
-
return i === void 0 && n && (i =
|
|
2618
|
+
return i === void 0 && n && (i = Vn(d, r, m)), i;
|
|
2606
2619
|
}
|
|
2607
2620
|
function i(t = l) {
|
|
2608
|
-
return
|
|
2621
|
+
return Vn(Vn(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
|
|
2609
2622
|
let r = {};
|
|
2610
|
-
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] =
|
|
2623
|
+
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = pr(a, t, () => Vn(d, t, m), n);
|
|
2611
2624
|
return r;
|
|
2612
2625
|
});
|
|
2613
2626
|
}
|
|
@@ -2641,15 +2654,15 @@ function lr({ creators: e } = {}) {
|
|
|
2641
2654
|
return g;
|
|
2642
2655
|
};
|
|
2643
2656
|
}
|
|
2644
|
-
function
|
|
2657
|
+
function pr(e, t, n, r) {
|
|
2645
2658
|
function i(i, ...a) {
|
|
2646
2659
|
let o = t(i);
|
|
2647
2660
|
return o === void 0 && r && (o = n()), e(o, ...a);
|
|
2648
2661
|
}
|
|
2649
2662
|
return i.unwrapped = e, i;
|
|
2650
2663
|
}
|
|
2651
|
-
var
|
|
2652
|
-
function
|
|
2664
|
+
var mr = /* @__PURE__ */ fr();
|
|
2665
|
+
function hr() {
|
|
2653
2666
|
function e(e, t) {
|
|
2654
2667
|
return {
|
|
2655
2668
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -2673,52 +2686,52 @@ function fr() {
|
|
|
2673
2686
|
asyncThunk: e
|
|
2674
2687
|
};
|
|
2675
2688
|
}
|
|
2676
|
-
function
|
|
2689
|
+
function gr({ type: e, reducerName: t, createNotation: n }, r, i) {
|
|
2677
2690
|
let a, o;
|
|
2678
2691
|
if ("reducer" in r) {
|
|
2679
|
-
if (n && !
|
|
2692
|
+
if (n && !vr(r)) throw Error(K(17));
|
|
2680
2693
|
a = r.reducer, o = r.prepare;
|
|
2681
2694
|
} else a = r;
|
|
2682
|
-
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ?
|
|
2695
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? Rn(e, o) : Rn(e));
|
|
2683
2696
|
}
|
|
2684
|
-
function
|
|
2697
|
+
function _r(e) {
|
|
2685
2698
|
return e._reducerDefinitionType === "asyncThunk";
|
|
2686
2699
|
}
|
|
2687
|
-
function
|
|
2700
|
+
function vr(e) {
|
|
2688
2701
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
2689
2702
|
}
|
|
2690
|
-
function
|
|
2703
|
+
function yr({ type: e, reducerName: t }, n, r, i) {
|
|
2691
2704
|
if (!i) throw Error(K(18));
|
|
2692
2705
|
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
|
|
2693
2706
|
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
|
|
2694
|
-
fulfilled: o ||
|
|
2695
|
-
pending: s ||
|
|
2696
|
-
rejected: c ||
|
|
2697
|
-
settled: l ||
|
|
2707
|
+
fulfilled: o || br,
|
|
2708
|
+
pending: s || br,
|
|
2709
|
+
rejected: c || br,
|
|
2710
|
+
settled: l || br
|
|
2698
2711
|
});
|
|
2699
2712
|
}
|
|
2700
|
-
function
|
|
2701
|
-
var
|
|
2702
|
-
`${
|
|
2703
|
-
var { assign:
|
|
2704
|
-
`${
|
|
2705
|
-
var
|
|
2713
|
+
function br() {}
|
|
2714
|
+
var xr = "listener", Sr = "completed", Cr = "cancelled";
|
|
2715
|
+
`${Cr}`, `${Sr}`, `${xr}${Cr}`, `${xr}${Sr}`;
|
|
2716
|
+
var { assign: wr } = Object, Tr = "listenerMiddleware", Er = /* @__PURE__ */ wr(/* @__PURE__ */ Rn(`${Tr}/add`), { withTypes: () => Er });
|
|
2717
|
+
`${Tr}`;
|
|
2718
|
+
var Dr = /* @__PURE__ */ wr(/* @__PURE__ */ Rn(`${Tr}/remove`), { withTypes: () => Dr });
|
|
2706
2719
|
function K(e) {
|
|
2707
2720
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
2708
2721
|
}
|
|
2709
2722
|
//#endregion
|
|
2710
2723
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/constants.js
|
|
2711
|
-
var
|
|
2724
|
+
var Or = "persist:", kr = "persist/FLUSH", Ar = "persist/REHYDRATE", jr = "persist/PAUSE", Mr = "persist/PERSIST", Nr = "persist/PURGE", Pr = "persist/REGISTER";
|
|
2712
2725
|
//#endregion
|
|
2713
2726
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js
|
|
2714
|
-
function
|
|
2715
|
-
return
|
|
2727
|
+
function Fr(e) {
|
|
2728
|
+
return Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2716
2729
|
return typeof e;
|
|
2717
2730
|
} : function(e) {
|
|
2718
2731
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2719
|
-
},
|
|
2732
|
+
}, Fr(e);
|
|
2720
2733
|
}
|
|
2721
|
-
function
|
|
2734
|
+
function Ir(e, t) {
|
|
2722
2735
|
var n = Object.keys(e);
|
|
2723
2736
|
if (Object.getOwnPropertySymbols) {
|
|
2724
2737
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2728,18 +2741,18 @@ function Nr(e, t) {
|
|
|
2728
2741
|
}
|
|
2729
2742
|
return n;
|
|
2730
2743
|
}
|
|
2731
|
-
function
|
|
2744
|
+
function Lr(e) {
|
|
2732
2745
|
for (var t = 1; t < arguments.length; t++) {
|
|
2733
2746
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2734
|
-
t % 2 ?
|
|
2735
|
-
|
|
2736
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2747
|
+
t % 2 ? Ir(n, !0).forEach(function(t) {
|
|
2748
|
+
Rr(e, t, n[t]);
|
|
2749
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ir(n).forEach(function(t) {
|
|
2737
2750
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2738
2751
|
});
|
|
2739
2752
|
}
|
|
2740
2753
|
return e;
|
|
2741
2754
|
}
|
|
2742
|
-
function
|
|
2755
|
+
function Rr(e, t, n) {
|
|
2743
2756
|
return t in e ? Object.defineProperty(e, t, {
|
|
2744
2757
|
value: n,
|
|
2745
2758
|
enumerable: !0,
|
|
@@ -2747,19 +2760,19 @@ function Fr(e, t, n) {
|
|
|
2747
2760
|
writable: !0
|
|
2748
2761
|
}) : e[t] = n, e;
|
|
2749
2762
|
}
|
|
2750
|
-
function
|
|
2763
|
+
function zr(e, t, n, r) {
|
|
2751
2764
|
r.debug;
|
|
2752
|
-
var i =
|
|
2753
|
-
return e &&
|
|
2765
|
+
var i = Lr({}, n);
|
|
2766
|
+
return e && Fr(e) === "object" && Object.keys(e).forEach(function(r) {
|
|
2754
2767
|
r !== "_persist" && t[r] === n[r] && (i[r] = e[r]);
|
|
2755
2768
|
}), i;
|
|
2756
2769
|
}
|
|
2757
2770
|
//#endregion
|
|
2758
2771
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/createPersistoid.js
|
|
2759
|
-
function
|
|
2760
|
-
var t = e.blacklist || null, n = e.whitelist || null, r = e.transforms || [], i = e.throttle || 0, a = `${e.keyPrefix === void 0 ?
|
|
2772
|
+
function Br(e) {
|
|
2773
|
+
var t = e.blacklist || null, n = e.whitelist || null, r = e.transforms || [], i = e.throttle || 0, a = `${e.keyPrefix === void 0 ? Or : e.keyPrefix}${e.key}`, o = e.storage, s = e.serialize === !1 ? function(e) {
|
|
2761
2774
|
return e;
|
|
2762
|
-
} : typeof e.serialize == "function" ? e.serialize :
|
|
2775
|
+
} : typeof e.serialize == "function" ? e.serialize : Vr, c = e.writeFailHandler || null, l = {}, u = {}, d = [], f = null, p = null, m = function(e) {
|
|
2763
2776
|
Object.keys(e).forEach(function(t) {
|
|
2764
2777
|
_(t) && l[t] !== e[t] && d.indexOf(t) === -1 && d.push(t);
|
|
2765
2778
|
}), Object.keys(l).forEach(function(t) {
|
|
@@ -2801,17 +2814,17 @@ function Lr(e) {
|
|
|
2801
2814
|
}
|
|
2802
2815
|
};
|
|
2803
2816
|
}
|
|
2804
|
-
function
|
|
2817
|
+
function Vr(e) {
|
|
2805
2818
|
return JSON.stringify(e);
|
|
2806
2819
|
}
|
|
2807
2820
|
//#endregion
|
|
2808
2821
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/getStoredState.js
|
|
2809
|
-
function
|
|
2810
|
-
var t = e.transforms || [], n = `${e.keyPrefix === void 0 ?
|
|
2822
|
+
function Hr(e) {
|
|
2823
|
+
var t = e.transforms || [], n = `${e.keyPrefix === void 0 ? Or : e.keyPrefix}${e.key}`, r = e.storage;
|
|
2811
2824
|
e.debug;
|
|
2812
2825
|
var i = e.deserialize === !1 ? function(e) {
|
|
2813
2826
|
return e;
|
|
2814
|
-
} : typeof e.deserialize == "function" ? e.deserialize :
|
|
2827
|
+
} : typeof e.deserialize == "function" ? e.deserialize : Ur;
|
|
2815
2828
|
return r.getItem(n).then(function(e) {
|
|
2816
2829
|
if (e) try {
|
|
2817
2830
|
var n = {}, r = i(e);
|
|
@@ -2826,19 +2839,19 @@ function zr(e) {
|
|
|
2826
2839
|
else return;
|
|
2827
2840
|
});
|
|
2828
2841
|
}
|
|
2829
|
-
function
|
|
2842
|
+
function Ur(e) {
|
|
2830
2843
|
return JSON.parse(e);
|
|
2831
2844
|
}
|
|
2832
2845
|
//#endregion
|
|
2833
2846
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/purgeStoredState.js
|
|
2834
|
-
function
|
|
2835
|
-
var t = e.storage, n = `${e.keyPrefix === void 0 ?
|
|
2836
|
-
return t.removeItem(n,
|
|
2847
|
+
function Wr(e) {
|
|
2848
|
+
var t = e.storage, n = `${e.keyPrefix === void 0 ? Or : e.keyPrefix}${e.key}`;
|
|
2849
|
+
return t.removeItem(n, Gr);
|
|
2837
2850
|
}
|
|
2838
|
-
function
|
|
2851
|
+
function Gr(e) {}
|
|
2839
2852
|
//#endregion
|
|
2840
2853
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/persistReducer.js
|
|
2841
|
-
function
|
|
2854
|
+
function Kr(e, t) {
|
|
2842
2855
|
var n = Object.keys(e);
|
|
2843
2856
|
if (Object.getOwnPropertySymbols) {
|
|
2844
2857
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2851,15 +2864,15 @@ function Ur(e, t) {
|
|
|
2851
2864
|
function q(e) {
|
|
2852
2865
|
for (var t = 1; t < arguments.length; t++) {
|
|
2853
2866
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2854
|
-
t % 2 ?
|
|
2855
|
-
|
|
2856
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2867
|
+
t % 2 ? Kr(n, !0).forEach(function(t) {
|
|
2868
|
+
qr(e, t, n[t]);
|
|
2869
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Kr(n).forEach(function(t) {
|
|
2857
2870
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2858
2871
|
});
|
|
2859
2872
|
}
|
|
2860
2873
|
return e;
|
|
2861
2874
|
}
|
|
2862
|
-
function
|
|
2875
|
+
function qr(e, t, n) {
|
|
2863
2876
|
return t in e ? Object.defineProperty(e, t, {
|
|
2864
2877
|
value: n,
|
|
2865
2878
|
enumerable: !0,
|
|
@@ -2867,37 +2880,37 @@ function Wr(e, t, n) {
|
|
|
2867
2880
|
writable: !0
|
|
2868
2881
|
}) : e[t] = n, e;
|
|
2869
2882
|
}
|
|
2870
|
-
function
|
|
2883
|
+
function Jr(e, t) {
|
|
2871
2884
|
if (e == null) return {};
|
|
2872
|
-
var n =
|
|
2885
|
+
var n = Yr(e, t), r, i;
|
|
2873
2886
|
if (Object.getOwnPropertySymbols) {
|
|
2874
2887
|
var a = Object.getOwnPropertySymbols(e);
|
|
2875
2888
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2876
2889
|
}
|
|
2877
2890
|
return n;
|
|
2878
2891
|
}
|
|
2879
|
-
function
|
|
2892
|
+
function Yr(e, t) {
|
|
2880
2893
|
if (e == null) return {};
|
|
2881
2894
|
var n = {}, r = Object.keys(e), i, a;
|
|
2882
2895
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2883
2896
|
return n;
|
|
2884
2897
|
}
|
|
2885
|
-
var
|
|
2886
|
-
function
|
|
2898
|
+
var Xr = 5e3;
|
|
2899
|
+
function Zr(e, t) {
|
|
2887
2900
|
var n = e.version === void 0 ? -1 : e.version;
|
|
2888
2901
|
e.debug;
|
|
2889
|
-
var r = e.stateReconciler === void 0 ?
|
|
2902
|
+
var r = e.stateReconciler === void 0 ? zr : e.stateReconciler, i = e.getStoredState || Hr, a = e.timeout === void 0 ? Xr : e.timeout, o = null, s = !1, c = !0, l = function(e) {
|
|
2890
2903
|
return e._persist.rehydrated && o && !c && o.update(e), e;
|
|
2891
2904
|
};
|
|
2892
2905
|
return function(u, d) {
|
|
2893
|
-
var f = u || {}, p = f._persist, m =
|
|
2906
|
+
var f = u || {}, p = f._persist, m = Jr(f, ["_persist"]);
|
|
2894
2907
|
if (d.type === "persist/PERSIST") {
|
|
2895
2908
|
var h = !1, g = function(t, n) {
|
|
2896
2909
|
h ||= (d.rehydrate(e.key, t, n), !0);
|
|
2897
2910
|
};
|
|
2898
2911
|
if (a && setTimeout(function() {
|
|
2899
2912
|
!h && g(void 0, Error(`redux-persist: persist timed out for persist key "${e.key}"`));
|
|
2900
|
-
}, a), c = !1, o ||=
|
|
2913
|
+
}, a), c = !1, o ||= Br(e), p) return q({}, t(m, d), { _persist: p });
|
|
2901
2914
|
if (typeof d.rehydrate != "function" || typeof d.register != "function") throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");
|
|
2902
2915
|
return d.register(e.key), i(e).then(function(t) {
|
|
2903
2916
|
(e.migrate || function(e, t) {
|
|
@@ -2913,7 +2926,7 @@ function Jr(e, t) {
|
|
|
2913
2926
|
version: n,
|
|
2914
2927
|
rehydrated: !1
|
|
2915
2928
|
} });
|
|
2916
|
-
} else if (d.type === "persist/PURGE") return s = !0, d.result(
|
|
2929
|
+
} else if (d.type === "persist/PURGE") return s = !0, d.result(Wr(e)), q({}, t(m, d), { _persist: p });
|
|
2917
2930
|
else if (d.type === "persist/FLUSH") return d.result(o && o.flush()), q({}, t(m, d), { _persist: p });
|
|
2918
2931
|
else if (d.type === "persist/PAUSE") c = !0;
|
|
2919
2932
|
else if (d.type === "persist/REHYDRATE") {
|
|
@@ -2930,22 +2943,22 @@ function Jr(e, t) {
|
|
|
2930
2943
|
}
|
|
2931
2944
|
//#endregion
|
|
2932
2945
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/persistStore.js
|
|
2933
|
-
function
|
|
2934
|
-
return
|
|
2946
|
+
function Qr(e) {
|
|
2947
|
+
return ti(e) || ei(e) || $r();
|
|
2935
2948
|
}
|
|
2936
|
-
function
|
|
2949
|
+
function $r() {
|
|
2937
2950
|
throw TypeError("Invalid attempt to spread non-iterable instance");
|
|
2938
2951
|
}
|
|
2939
|
-
function
|
|
2952
|
+
function ei(e) {
|
|
2940
2953
|
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
2941
2954
|
}
|
|
2942
|
-
function
|
|
2955
|
+
function ti(e) {
|
|
2943
2956
|
if (Array.isArray(e)) {
|
|
2944
2957
|
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
|
|
2945
2958
|
return n;
|
|
2946
2959
|
}
|
|
2947
2960
|
}
|
|
2948
|
-
function
|
|
2961
|
+
function ni(e, t) {
|
|
2949
2962
|
var n = Object.keys(e);
|
|
2950
2963
|
if (Object.getOwnPropertySymbols) {
|
|
2951
2964
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2955,18 +2968,18 @@ function $r(e, t) {
|
|
|
2955
2968
|
}
|
|
2956
2969
|
return n;
|
|
2957
2970
|
}
|
|
2958
|
-
function
|
|
2971
|
+
function ri(e) {
|
|
2959
2972
|
for (var t = 1; t < arguments.length; t++) {
|
|
2960
2973
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2961
|
-
t % 2 ?
|
|
2962
|
-
|
|
2963
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2974
|
+
t % 2 ? ni(n, !0).forEach(function(t) {
|
|
2975
|
+
ii(e, t, n[t]);
|
|
2976
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ni(n).forEach(function(t) {
|
|
2964
2977
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2965
2978
|
});
|
|
2966
2979
|
}
|
|
2967
2980
|
return e;
|
|
2968
2981
|
}
|
|
2969
|
-
function
|
|
2982
|
+
function ii(e, t, n) {
|
|
2970
2983
|
return t in e ? Object.defineProperty(e, t, {
|
|
2971
2984
|
value: n,
|
|
2972
2985
|
enumerable: !0,
|
|
@@ -2974,41 +2987,41 @@ function ti(e, t, n) {
|
|
|
2974
2987
|
writable: !0
|
|
2975
2988
|
}) : e[t] = n, e;
|
|
2976
2989
|
}
|
|
2977
|
-
var
|
|
2990
|
+
var ai = {
|
|
2978
2991
|
registry: [],
|
|
2979
2992
|
bootstrapped: !1
|
|
2980
|
-
},
|
|
2981
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2993
|
+
}, oi = function() {
|
|
2994
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ai, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
2982
2995
|
switch (t.type) {
|
|
2983
|
-
case
|
|
2984
|
-
case
|
|
2985
|
-
var n = e.registry.indexOf(t.key), r =
|
|
2986
|
-
return r.splice(n, 1),
|
|
2996
|
+
case Pr: return ri({}, e, { registry: [].concat(Qr(e.registry), [t.key]) });
|
|
2997
|
+
case Ar:
|
|
2998
|
+
var n = e.registry.indexOf(t.key), r = Qr(e.registry);
|
|
2999
|
+
return r.splice(n, 1), ri({}, e, {
|
|
2987
3000
|
registry: r,
|
|
2988
3001
|
bootstrapped: r.length === 0
|
|
2989
3002
|
});
|
|
2990
3003
|
default: return e;
|
|
2991
3004
|
}
|
|
2992
3005
|
};
|
|
2993
|
-
function
|
|
2994
|
-
var r = n || !1, i =
|
|
3006
|
+
function si(e, t, n) {
|
|
3007
|
+
var r = n || !1, i = dt(oi, ai, t && t.enhancer ? t.enhancer : void 0), a = function(e) {
|
|
2995
3008
|
i.dispatch({
|
|
2996
|
-
type:
|
|
3009
|
+
type: Pr,
|
|
2997
3010
|
key: e
|
|
2998
3011
|
});
|
|
2999
3012
|
}, o = function(t, n, a) {
|
|
3000
3013
|
var o = {
|
|
3001
|
-
type:
|
|
3014
|
+
type: Ar,
|
|
3002
3015
|
payload: n,
|
|
3003
3016
|
err: a,
|
|
3004
3017
|
key: t
|
|
3005
3018
|
};
|
|
3006
3019
|
e.dispatch(o), i.dispatch(o), r && s.getState().bootstrapped && (r(), r = !1);
|
|
3007
|
-
}, s =
|
|
3020
|
+
}, s = ri({}, i, {
|
|
3008
3021
|
purge: function() {
|
|
3009
3022
|
var t = [];
|
|
3010
3023
|
return e.dispatch({
|
|
3011
|
-
type:
|
|
3024
|
+
type: Nr,
|
|
3012
3025
|
result: function(e) {
|
|
3013
3026
|
t.push(e);
|
|
3014
3027
|
}
|
|
@@ -3017,18 +3030,18 @@ function ii(e, t, n) {
|
|
|
3017
3030
|
flush: function() {
|
|
3018
3031
|
var t = [];
|
|
3019
3032
|
return e.dispatch({
|
|
3020
|
-
type:
|
|
3033
|
+
type: kr,
|
|
3021
3034
|
result: function(e) {
|
|
3022
3035
|
t.push(e);
|
|
3023
3036
|
}
|
|
3024
3037
|
}), Promise.all(t);
|
|
3025
3038
|
},
|
|
3026
3039
|
pause: function() {
|
|
3027
|
-
e.dispatch({ type:
|
|
3040
|
+
e.dispatch({ type: jr });
|
|
3028
3041
|
},
|
|
3029
3042
|
persist: function() {
|
|
3030
3043
|
e.dispatch({
|
|
3031
|
-
type:
|
|
3044
|
+
type: Mr,
|
|
3032
3045
|
register: a,
|
|
3033
3046
|
rehydrate: o
|
|
3034
3047
|
});
|
|
@@ -3038,7 +3051,7 @@ function ii(e, t, n) {
|
|
|
3038
3051
|
}
|
|
3039
3052
|
//#endregion
|
|
3040
3053
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/createTransform.js
|
|
3041
|
-
function
|
|
3054
|
+
function ci(e, t) {
|
|
3042
3055
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.whitelist || null, i = n.blacklist || null;
|
|
3043
3056
|
function a(e) {
|
|
3044
3057
|
return !!(r && r.indexOf(e) === -1 || i && i.indexOf(e) !== -1);
|
|
@@ -3054,21 +3067,21 @@ function ai(e, t) {
|
|
|
3054
3067
|
}
|
|
3055
3068
|
//#endregion
|
|
3056
3069
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/getStorage.js
|
|
3057
|
-
function
|
|
3058
|
-
return
|
|
3070
|
+
function li(e) {
|
|
3071
|
+
return li = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3059
3072
|
return typeof e;
|
|
3060
3073
|
} : function(e) {
|
|
3061
3074
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3062
|
-
},
|
|
3075
|
+
}, li(e);
|
|
3063
3076
|
}
|
|
3064
|
-
function
|
|
3065
|
-
var
|
|
3066
|
-
getItem:
|
|
3067
|
-
setItem:
|
|
3068
|
-
removeItem:
|
|
3077
|
+
function ui() {}
|
|
3078
|
+
var di = {
|
|
3079
|
+
getItem: ui,
|
|
3080
|
+
setItem: ui,
|
|
3081
|
+
removeItem: ui
|
|
3069
3082
|
};
|
|
3070
|
-
function
|
|
3071
|
-
if ((typeof self > "u" ? "undefined" :
|
|
3083
|
+
function fi(e) {
|
|
3084
|
+
if ((typeof self > "u" ? "undefined" : li(self)) !== "object" || !(e in self)) return !1;
|
|
3072
3085
|
try {
|
|
3073
3086
|
var t = self[e], n = `redux-persist ${e} test`;
|
|
3074
3087
|
t.setItem(n, "test"), t.getItem(n), t.removeItem(n);
|
|
@@ -3077,14 +3090,14 @@ function li(e) {
|
|
|
3077
3090
|
}
|
|
3078
3091
|
return !0;
|
|
3079
3092
|
}
|
|
3080
|
-
function
|
|
3093
|
+
function pi(e) {
|
|
3081
3094
|
var t = `${e}Storage`;
|
|
3082
|
-
return
|
|
3095
|
+
return fi(t) ? self[t] : di;
|
|
3083
3096
|
}
|
|
3084
3097
|
//#endregion
|
|
3085
3098
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/createWebStorage.js
|
|
3086
|
-
function
|
|
3087
|
-
var t =
|
|
3099
|
+
function mi(e) {
|
|
3100
|
+
var t = pi(e);
|
|
3088
3101
|
return {
|
|
3089
3102
|
getItem: function(e) {
|
|
3090
3103
|
return new Promise(function(n, r) {
|
|
@@ -3105,7 +3118,7 @@ function di(e) {
|
|
|
3105
3118
|
}
|
|
3106
3119
|
//#endregion
|
|
3107
3120
|
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/index.js
|
|
3108
|
-
var
|
|
3121
|
+
var hi = mi("local"), gi = mr({
|
|
3109
3122
|
name: "ui",
|
|
3110
3123
|
initialState: {
|
|
3111
3124
|
sidebarOpen: !0,
|
|
@@ -3122,22 +3135,22 @@ var fi = di("local"), pi = dr({
|
|
|
3122
3135
|
e.activeMenu = t.payload;
|
|
3123
3136
|
}
|
|
3124
3137
|
}
|
|
3125
|
-
}), { toggleSidebar:
|
|
3138
|
+
}), { toggleSidebar: _i, setSidebarOpen: vi, setActiveMenu: yi } = gi.actions, bi = gi.reducer, xi = { routes: [] }, Si = (e, t) => {
|
|
3126
3139
|
let n = t.split("/").filter(Boolean);
|
|
3127
3140
|
for (let t = n.length - 1; t > 0; t--) {
|
|
3128
3141
|
let r = "/" + n.slice(0, t).join("/"), i = e.find((e) => e.path === r);
|
|
3129
3142
|
if (i) return i;
|
|
3130
3143
|
}
|
|
3131
3144
|
return e.find((e) => e.path === "/") || null;
|
|
3132
|
-
},
|
|
3145
|
+
}, Ci = (e, t) => e === "/" ? t : t.replace(e + "/", ""), wi = mr({
|
|
3133
3146
|
name: "route",
|
|
3134
|
-
initialState:
|
|
3147
|
+
initialState: xi,
|
|
3135
3148
|
reducers: {
|
|
3136
3149
|
addRoute: (e, t) => {
|
|
3137
|
-
let n = t.payload, r =
|
|
3150
|
+
let n = t.payload, r = Si(e.routes, n.path);
|
|
3138
3151
|
if (r) {
|
|
3139
3152
|
r.children ||= [];
|
|
3140
|
-
let e =
|
|
3153
|
+
let e = Ci(r.path, n.path);
|
|
3141
3154
|
r.children.push({
|
|
3142
3155
|
...n,
|
|
3143
3156
|
path: e
|
|
@@ -3173,18 +3186,18 @@ var fi = di("local"), pi = dr({
|
|
|
3173
3186
|
e.routes = [];
|
|
3174
3187
|
}
|
|
3175
3188
|
}
|
|
3176
|
-
}), { addRoute:
|
|
3189
|
+
}), { addRoute: Ti, removeRoute: Ei, updateRoute: Di, setRoutes: Oi, clearRoutes: ki } = wi.actions, Ai = wi.reducer, ji = {
|
|
3177
3190
|
entries: [],
|
|
3178
3191
|
loadedScripts: [],
|
|
3179
3192
|
synced: !1
|
|
3180
|
-
},
|
|
3193
|
+
}, Mi = sr("script/loadScript", async (e) => new Promise((t, n) => {
|
|
3181
3194
|
let r = document.createElement("script");
|
|
3182
3195
|
r.type = "module", r.src = e, r.dataset.dynamicEntry = "true", r.onload = () => t(e), r.onerror = (t) => {
|
|
3183
3196
|
console.error("[Script] Load failed:", e), n(t);
|
|
3184
3197
|
}, document.body.appendChild(r);
|
|
3185
|
-
})),
|
|
3198
|
+
})), Ni = sr("script/loadScripts", async (e, { dispatch: t }) => (await Promise.allSettled(e.map((e) => t(Mi(e)).unwrap()))).filter((e) => e.status === "fulfilled").map((e) => e.value)), Pi = sr("script/unloadScript", async (e) => (document.querySelectorAll(`script[src="${e}"][data-dynamic-entry="true"]`).forEach((e) => e.remove()), e)), Fi = mr({
|
|
3186
3199
|
name: "script",
|
|
3187
|
-
initialState:
|
|
3200
|
+
initialState: ji,
|
|
3188
3201
|
reducers: {
|
|
3189
3202
|
syncEntries: (e, t) => {
|
|
3190
3203
|
e.entries = t.payload, e.synced = !0;
|
|
@@ -3197,17 +3210,17 @@ var fi = di("local"), pi = dr({
|
|
|
3197
3210
|
}
|
|
3198
3211
|
},
|
|
3199
3212
|
extraReducers: (e) => {
|
|
3200
|
-
e.addCase(
|
|
3213
|
+
e.addCase(Mi.fulfilled, (e, t) => {
|
|
3201
3214
|
e.loadedScripts.includes(t.payload) || e.loadedScripts.push(t.payload);
|
|
3202
|
-
}), e.addCase(
|
|
3215
|
+
}), e.addCase(Ni.fulfilled, (e, t) => {
|
|
3203
3216
|
t.payload.forEach((t) => {
|
|
3204
3217
|
e.loadedScripts.includes(t) || e.loadedScripts.push(t);
|
|
3205
3218
|
});
|
|
3206
|
-
}), e.addCase(
|
|
3219
|
+
}), e.addCase(Pi.fulfilled, (e, t) => {
|
|
3207
3220
|
e.loadedScripts = e.loadedScripts.filter((e) => e !== t.payload);
|
|
3208
3221
|
});
|
|
3209
3222
|
}
|
|
3210
|
-
}), { syncEntries:
|
|
3223
|
+
}), { syncEntries: Ii, addEntry: Li, removeEntry: Ri } = Fi.actions, zi = Fi.reducer, Bi = mr({
|
|
3211
3224
|
name: "config",
|
|
3212
3225
|
initialState: {
|
|
3213
3226
|
configs: {},
|
|
@@ -3256,15 +3269,15 @@ var fi = di("local"), pi = dr({
|
|
|
3256
3269
|
e.configs = {}, e.schemas = {}, e.loading = {}, e.errors = {};
|
|
3257
3270
|
}
|
|
3258
3271
|
}
|
|
3259
|
-
}), { setConnected:
|
|
3260
|
-
ui:
|
|
3261
|
-
route:
|
|
3262
|
-
script:
|
|
3263
|
-
config:
|
|
3264
|
-
},
|
|
3272
|
+
}), { setConnected: Vi, setLoading: Hi, setError: Ui, updateConfig: Wi, updateSchema: Gi, updateConfigs: Ki, updateSchemas: qi, removeConfig: Ji, clearConfigs: Yi } = Bi.actions, Xi = Bi.reducer, Zi = (e, t) => e.config.configs[t], Qi = (e, t) => e.config.schemas[t], $i = (e, t) => e.config.loading[t] || !1, ea = (e, t) => e.config.errors[t] || null, J = (e) => e.config.connected, ta = (e) => e.config.configs, na = (e) => e.config.schemas, ra = {
|
|
3273
|
+
ui: bi,
|
|
3274
|
+
route: Ai,
|
|
3275
|
+
script: zi,
|
|
3276
|
+
config: Xi
|
|
3277
|
+
}, ia = /* @__PURE__ */ m(((t, n) => {
|
|
3265
3278
|
n.exports = { ...e };
|
|
3266
|
-
})),
|
|
3267
|
-
var t =
|
|
3279
|
+
})), aa = /* @__PURE__ */ m(((e) => {
|
|
3280
|
+
var t = ia();
|
|
3268
3281
|
function n(e, t) {
|
|
3269
3282
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
3270
3283
|
}
|
|
@@ -3308,57 +3321,57 @@ var fi = di("local"), pi = dr({
|
|
|
3308
3321
|
f.hasValue = !0, f.value = p;
|
|
3309
3322
|
}, [p]), c(p), p;
|
|
3310
3323
|
};
|
|
3311
|
-
})),
|
|
3312
|
-
t.exports =
|
|
3324
|
+
})), oa = (/* @__PURE__ */ m(((e, t) => {
|
|
3325
|
+
t.exports = aa();
|
|
3313
3326
|
})))();
|
|
3314
3327
|
Object.prototype;
|
|
3315
|
-
var
|
|
3316
|
-
function
|
|
3328
|
+
var sa = /* @__PURE__ */ Symbol.for("react-redux-context"), ca = typeof globalThis < "u" ? globalThis : {};
|
|
3329
|
+
function la() {
|
|
3317
3330
|
if (!e.createContext) return {};
|
|
3318
|
-
let t =
|
|
3331
|
+
let t = ca[sa] ??= /* @__PURE__ */ new Map(), n = t.get(e.createContext);
|
|
3319
3332
|
return n || (n = e.createContext(null), t.set(e.createContext, n)), n;
|
|
3320
3333
|
}
|
|
3321
|
-
var
|
|
3322
|
-
function
|
|
3334
|
+
var ua = /* @__PURE__ */ la();
|
|
3335
|
+
function da(t = ua) {
|
|
3323
3336
|
return function() {
|
|
3324
3337
|
return e.useContext(t);
|
|
3325
3338
|
};
|
|
3326
3339
|
}
|
|
3327
|
-
var
|
|
3328
|
-
function
|
|
3329
|
-
let t = e ===
|
|
3340
|
+
var fa = /* @__PURE__ */ da();
|
|
3341
|
+
function pa(e = ua) {
|
|
3342
|
+
let t = e === ua ? fa : da(e), n = () => {
|
|
3330
3343
|
let { store: e } = t();
|
|
3331
3344
|
return e;
|
|
3332
3345
|
};
|
|
3333
3346
|
return Object.assign(n, { withTypes: () => n }), n;
|
|
3334
3347
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
-
let t = e ===
|
|
3348
|
+
var ma = /* @__PURE__ */ pa();
|
|
3349
|
+
function ha(e = ua) {
|
|
3350
|
+
let t = e === ua ? ma : pa(e), n = () => t().dispatch;
|
|
3338
3351
|
return Object.assign(n, { withTypes: () => n }), n;
|
|
3339
3352
|
}
|
|
3340
|
-
var
|
|
3341
|
-
function
|
|
3342
|
-
let n = t ===
|
|
3343
|
-
let { equalityFn: i =
|
|
3353
|
+
var ga = /* @__PURE__ */ ha(), _a = (e, t) => e === t;
|
|
3354
|
+
function va(t = ua) {
|
|
3355
|
+
let n = t === ua ? fa : da(t), r = (t, r = {}) => {
|
|
3356
|
+
let { equalityFn: i = _a } = typeof r == "function" ? { equalityFn: r } : r, { store: a, subscription: o, getServerState: s } = n();
|
|
3344
3357
|
e.useRef(!0);
|
|
3345
3358
|
let c = e.useCallback({ [t.name](e) {
|
|
3346
3359
|
return t(e);
|
|
3347
|
-
} }[t.name], [t]), l = (0,
|
|
3360
|
+
} }[t.name], [t]), l = (0, oa.useSyncExternalStoreWithSelector)(o.addNestedSub, a.getState, s || a.getState, c, i);
|
|
3348
3361
|
return e.useDebugValue(l), l;
|
|
3349
3362
|
};
|
|
3350
3363
|
return Object.assign(r, { withTypes: () => r }), r;
|
|
3351
3364
|
}
|
|
3352
|
-
var
|
|
3365
|
+
var ya = /* @__PURE__ */ va(), ba = {
|
|
3353
3366
|
key: "root",
|
|
3354
|
-
storage:
|
|
3355
|
-
transforms: [
|
|
3367
|
+
storage: hi,
|
|
3368
|
+
transforms: [ci((e) => {
|
|
3356
3369
|
let { routes: t, ...n } = e;
|
|
3357
3370
|
return n;
|
|
3358
3371
|
}, (e) => ({
|
|
3359
3372
|
...e,
|
|
3360
3373
|
routes: []
|
|
3361
|
-
}), { whitelist: ["route"] }),
|
|
3374
|
+
}), { whitelist: ["route"] }), ci((e) => {
|
|
3362
3375
|
let { entries: t, loadedScripts: n, synced: r, ...i } = e;
|
|
3363
3376
|
return i;
|
|
3364
3377
|
}, (e) => ({
|
|
@@ -3367,34 +3380,34 @@ var ga = /* @__PURE__ */ ha(), _a = {
|
|
|
3367
3380
|
loadedScripts: [],
|
|
3368
3381
|
synced: !1
|
|
3369
3382
|
}), { whitelist: ["script"] })]
|
|
3370
|
-
}, Y =
|
|
3371
|
-
reducer:
|
|
3383
|
+
}, Y = Jn({
|
|
3384
|
+
reducer: Zr(ba, pt(ra)),
|
|
3372
3385
|
middleware: (e) => e({ serializableCheck: {
|
|
3373
3386
|
ignoredActions: [
|
|
3374
|
-
Er,
|
|
3375
|
-
Dr,
|
|
3376
|
-
Or,
|
|
3377
3387
|
kr,
|
|
3378
3388
|
Ar,
|
|
3379
3389
|
jr,
|
|
3390
|
+
Mr,
|
|
3391
|
+
Nr,
|
|
3392
|
+
Pr,
|
|
3380
3393
|
"route/addRoute",
|
|
3381
3394
|
"route/updateRoute",
|
|
3382
3395
|
"route/setRoutes"
|
|
3383
3396
|
],
|
|
3384
3397
|
ignoredPaths: ["route.routes"]
|
|
3385
3398
|
} })
|
|
3386
|
-
}),
|
|
3399
|
+
}), xa = si(Y);
|
|
3387
3400
|
typeof window < "u" && (window.__REDUX_STORE__ = Y);
|
|
3388
|
-
function
|
|
3389
|
-
|
|
3390
|
-
let n =
|
|
3401
|
+
function Sa(e, t) {
|
|
3402
|
+
ra[e] = t;
|
|
3403
|
+
let n = Zr(ba, pt(ra));
|
|
3391
3404
|
Y.replaceReducer(n);
|
|
3392
3405
|
}
|
|
3393
|
-
var
|
|
3406
|
+
var Ca = ga, X = ya, wa = (e) => Y.dispatch(Ti(e)), Ta = (e) => Y.dispatch(Ei(e)), Ea = (e, t) => Y.dispatch(Di({
|
|
3394
3407
|
path: e,
|
|
3395
3408
|
updates: t
|
|
3396
|
-
})),
|
|
3397
|
-
function
|
|
3409
|
+
})), Da = (e) => Y.getState().route.routes.find((t) => t.path === e), Oa = () => Y.getState().route.routes, ka = () => Y.dispatch(ki());
|
|
3410
|
+
function Aa() {
|
|
3398
3411
|
let e = X((e) => e.route.routes);
|
|
3399
3412
|
return /* @__PURE__ */ p(c, { router: r(() => {
|
|
3400
3413
|
let t = (e) => {
|
|
@@ -3423,21 +3436,26 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3423
3436
|
constructor(e, t, n) {
|
|
3424
3437
|
super(e), this.code = t, this.originalError = n, this.name = "WebSocketError";
|
|
3425
3438
|
}
|
|
3426
|
-
},
|
|
3439
|
+
}, ja = class extends Q {
|
|
3427
3440
|
constructor(e) {
|
|
3428
3441
|
super(`Request ${e} timed out`, "REQUEST_TIMEOUT");
|
|
3429
3442
|
}
|
|
3430
|
-
},
|
|
3443
|
+
}, Ma = class extends Q {
|
|
3431
3444
|
constructor(e, t) {
|
|
3432
3445
|
super(e, "CONNECTION_ERROR", t);
|
|
3433
3446
|
}
|
|
3434
|
-
},
|
|
3447
|
+
}, Na = class extends Q {
|
|
3435
3448
|
constructor(e, t) {
|
|
3436
3449
|
super(e, "MESSAGE_ERROR", t);
|
|
3437
3450
|
}
|
|
3438
|
-
},
|
|
3451
|
+
}, Pa = class {
|
|
3439
3452
|
static handle(e) {
|
|
3440
3453
|
try {
|
|
3454
|
+
let t = e.type;
|
|
3455
|
+
if (t === "bot:request" || t === "bot:notice" || t === "bot:message") {
|
|
3456
|
+
typeof window < "u" && window.dispatchEvent(new CustomEvent("zhin-console-bot-push", { detail: e }));
|
|
3457
|
+
return;
|
|
3458
|
+
}
|
|
3441
3459
|
switch (e.type) {
|
|
3442
3460
|
case "sync":
|
|
3443
3461
|
this.handleScriptSync(e);
|
|
@@ -3479,45 +3497,45 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3479
3497
|
static handleScriptSync(e) {
|
|
3480
3498
|
if (e.data?.key === "entries") {
|
|
3481
3499
|
let t = Array.isArray(e.data.value) ? e.data.value : [e.data.value];
|
|
3482
|
-
Y.dispatch(
|
|
3500
|
+
Y.dispatch(Ii(t)), Y.dispatch(Ni(t));
|
|
3483
3501
|
}
|
|
3484
3502
|
}
|
|
3485
3503
|
static handleScriptAdd(e) {
|
|
3486
|
-
e.data?.key === "entries" && (Y.dispatch(
|
|
3504
|
+
e.data?.key === "entries" && (Y.dispatch(Li(e.data.value)), Y.dispatch(Mi(e.data.value)));
|
|
3487
3505
|
}
|
|
3488
3506
|
static handleScriptDelete(e) {
|
|
3489
|
-
e.data?.key === "entries" && (Y.dispatch(
|
|
3507
|
+
e.data?.key === "entries" && (Y.dispatch(Ri(e.data.value)), Y.dispatch(Pi(e.data.value)));
|
|
3490
3508
|
}
|
|
3491
3509
|
static handleConfigUpdated(e) {
|
|
3492
|
-
e.pluginName && e.data !== void 0 && Y.dispatch(
|
|
3510
|
+
e.pluginName && e.data !== void 0 && Y.dispatch(Wi({
|
|
3493
3511
|
pluginName: e.pluginName,
|
|
3494
3512
|
config: e.data
|
|
3495
3513
|
}));
|
|
3496
3514
|
}
|
|
3497
3515
|
static handleConfigBatch(e) {
|
|
3498
|
-
e.data && Y.dispatch(
|
|
3516
|
+
e.data && Y.dispatch(Ki(e.data));
|
|
3499
3517
|
}
|
|
3500
3518
|
static handleConfigError(e) {
|
|
3501
|
-
e.pluginName && e.error && Y.dispatch(
|
|
3519
|
+
e.pluginName && e.error && Y.dispatch(Ui({
|
|
3502
3520
|
pluginName: e.pluginName,
|
|
3503
3521
|
error: e.error
|
|
3504
3522
|
}));
|
|
3505
3523
|
}
|
|
3506
3524
|
static handleSchemaUpdated(e) {
|
|
3507
|
-
e.pluginName && e.data !== void 0 && Y.dispatch(
|
|
3525
|
+
e.pluginName && e.data !== void 0 && Y.dispatch(Gi({
|
|
3508
3526
|
pluginName: e.pluginName,
|
|
3509
3527
|
schema: e.data
|
|
3510
3528
|
}));
|
|
3511
3529
|
}
|
|
3512
3530
|
static handleSchemaBatch(e) {
|
|
3513
|
-
e.data && Y.dispatch(
|
|
3531
|
+
e.data && Y.dispatch(qi(e.data));
|
|
3514
3532
|
}
|
|
3515
3533
|
static handleHmrReload(e) {
|
|
3516
3534
|
let t = e.data?.file || "";
|
|
3517
3535
|
console.info(`[HMR] 文件变更: ${t},正在刷新页面...`), window.location.reload();
|
|
3518
3536
|
}
|
|
3519
3537
|
static handleSystemMessage(e) {}
|
|
3520
|
-
},
|
|
3538
|
+
}, Fa = class {
|
|
3521
3539
|
ws = null;
|
|
3522
3540
|
config;
|
|
3523
3541
|
callbacks;
|
|
@@ -3540,19 +3558,19 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3540
3558
|
try {
|
|
3541
3559
|
this.ws = new WebSocket(this.config.url), this.attachEventHandlers();
|
|
3542
3560
|
} catch (e) {
|
|
3543
|
-
this.handleConnectionError(new
|
|
3561
|
+
this.handleConnectionError(new Ma("Failed to create WebSocket", e));
|
|
3544
3562
|
}
|
|
3545
3563
|
}
|
|
3546
3564
|
}
|
|
3547
3565
|
disconnect() {
|
|
3548
|
-
this.clearReconnectTimer(), this.clearPendingRequests(), this.ws &&= (this.ws.close(), null), this.setState(Z.DISCONNECTED), Y.dispatch(
|
|
3566
|
+
this.clearReconnectTimer(), this.clearPendingRequests(), this.ws &&= (this.ws.close(), null), this.setState(Z.DISCONNECTED), Y.dispatch(Vi(!1));
|
|
3549
3567
|
}
|
|
3550
3568
|
send(e) {
|
|
3551
3569
|
if (!this.isConnected()) throw new Q("WebSocket is not connected", "NOT_CONNECTED");
|
|
3552
3570
|
try {
|
|
3553
3571
|
this.ws.send(JSON.stringify(e));
|
|
3554
3572
|
} catch (e) {
|
|
3555
|
-
throw new
|
|
3573
|
+
throw new Na("Failed to send message", e);
|
|
3556
3574
|
}
|
|
3557
3575
|
}
|
|
3558
3576
|
async sendRequest(e) {
|
|
@@ -3562,7 +3580,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3562
3580
|
...e,
|
|
3563
3581
|
requestId: r
|
|
3564
3582
|
}, a = setTimeout(() => {
|
|
3565
|
-
this.pendingRequests.delete(r), n(new
|
|
3583
|
+
this.pendingRequests.delete(r), n(new ja(r));
|
|
3566
3584
|
}, this.config.requestTimeout);
|
|
3567
3585
|
this.pendingRequests.set(r, {
|
|
3568
3586
|
resolve: t,
|
|
@@ -3572,7 +3590,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3572
3590
|
try {
|
|
3573
3591
|
this.ws.send(JSON.stringify(i));
|
|
3574
3592
|
} catch (e) {
|
|
3575
|
-
this.pendingRequests.delete(r), clearTimeout(a), n(new
|
|
3593
|
+
this.pendingRequests.delete(r), clearTimeout(a), n(new Na("Failed to send request", e));
|
|
3576
3594
|
}
|
|
3577
3595
|
});
|
|
3578
3596
|
}
|
|
@@ -3735,11 +3753,11 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3735
3753
|
}, this.ws.onclose = (e) => {
|
|
3736
3754
|
this.handleConnectionClose(e);
|
|
3737
3755
|
}, this.ws.onerror = (e) => {
|
|
3738
|
-
this.handleConnectionError(new
|
|
3756
|
+
this.handleConnectionError(new Ma("WebSocket error", e));
|
|
3739
3757
|
});
|
|
3740
3758
|
}
|
|
3741
3759
|
handleConnectionOpen() {
|
|
3742
|
-
this.setState(Z.CONNECTED), this.reconnectAttempts = 0, Y.dispatch(
|
|
3760
|
+
this.setState(Z.CONNECTED), this.reconnectAttempts = 0, Y.dispatch(Vi(!0)), this.initializeData(), this.callbacks.onConnect?.();
|
|
3743
3761
|
}
|
|
3744
3762
|
handleMessage(e) {
|
|
3745
3763
|
try {
|
|
@@ -3748,7 +3766,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3748
3766
|
this.handleRequestResponse(t);
|
|
3749
3767
|
return;
|
|
3750
3768
|
}
|
|
3751
|
-
|
|
3769
|
+
Pa.handle(t), this.callbacks.onMessage?.(t);
|
|
3752
3770
|
} catch (e) {
|
|
3753
3771
|
console.error("[WebSocket] Message parsing error:", e);
|
|
3754
3772
|
}
|
|
@@ -3758,7 +3776,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3758
3776
|
n && (this.pendingRequests.delete(t), clearTimeout(n.timer), e.error ? n.reject(new Q(e.error, "SERVER_ERROR")) : n.resolve(e.data));
|
|
3759
3777
|
}
|
|
3760
3778
|
handleConnectionClose(e) {
|
|
3761
|
-
this.ws = null, Y.dispatch(
|
|
3779
|
+
this.ws = null, Y.dispatch(Vi(!1)), this.state !== Z.DISCONNECTED && (this.setState(Z.RECONNECTING), this.callbacks.onDisconnect?.(), this.scheduleReconnect());
|
|
3762
3780
|
}
|
|
3763
3781
|
handleConnectionError(e) {
|
|
3764
3782
|
this.clearReconnectTimer(), this.setState(Z.ERROR), console.error("[WebSocket] Connection error:", e), this.callbacks.onError?.(e);
|
|
@@ -3784,24 +3802,24 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3784
3802
|
async initializeData() {
|
|
3785
3803
|
try {
|
|
3786
3804
|
let [e, t] = await Promise.all([this.getAllConfigs().catch((e) => (console.warn("[WebSocket] Failed to load configs:", e), {})), this.getAllSchemas().catch((e) => (console.warn("[WebSocket] Failed to load schemas:", e), {}))]);
|
|
3787
|
-
Y.dispatch(
|
|
3805
|
+
Y.dispatch(Ki(e)), Y.dispatch(qi(t));
|
|
3788
3806
|
} catch (e) {
|
|
3789
3807
|
console.error("[WebSocket] Data initialization failed:", e);
|
|
3790
3808
|
}
|
|
3791
3809
|
}
|
|
3792
|
-
},
|
|
3810
|
+
}, Ia = null;
|
|
3793
3811
|
function $() {
|
|
3794
|
-
return
|
|
3812
|
+
return Ia || (Ia = new Fa(), typeof window < "u" && Ia.connect()), Ia;
|
|
3795
3813
|
}
|
|
3796
|
-
function
|
|
3797
|
-
|
|
3814
|
+
function La() {
|
|
3815
|
+
Ia &&= (Ia.disconnect(), null);
|
|
3798
3816
|
}
|
|
3799
|
-
function
|
|
3800
|
-
|
|
3817
|
+
function Ra() {
|
|
3818
|
+
La();
|
|
3801
3819
|
}
|
|
3802
3820
|
//#endregion
|
|
3803
3821
|
//#region ../../../packages/client/client/websocket/hooks.ts
|
|
3804
|
-
function
|
|
3822
|
+
function za(e = {}) {
|
|
3805
3823
|
let { autoConnect: r = !0 } = e, i = $(), a = X(J), o = X((e) => e.script?.entries || []), s = X((e) => e.script?.loadedScripts || []), c = t(() => {
|
|
3806
3824
|
i.connect();
|
|
3807
3825
|
}, [i]), l = t(() => {
|
|
@@ -3828,28 +3846,28 @@ function Ia(e = {}) {
|
|
|
3828
3846
|
manager: i
|
|
3829
3847
|
};
|
|
3830
3848
|
}
|
|
3831
|
-
function
|
|
3832
|
-
let { autoLoad: a = !0, autoLoadSchema: o = !0 } = i, s =
|
|
3833
|
-
s(
|
|
3849
|
+
function Ba(e, i = {}) {
|
|
3850
|
+
let { autoLoad: a = !0, autoLoadSchema: o = !0 } = i, s = Ca(), c = $(), l = X((t) => Zi(t, e)), u = X((t) => Qi(t, e)), d = X((t) => $i(t, e)), f = X((t) => ea(t, e)), p = X(J), m = t(async () => {
|
|
3851
|
+
s(Hi({
|
|
3834
3852
|
pluginName: e,
|
|
3835
3853
|
loading: !0
|
|
3836
|
-
})), s(
|
|
3854
|
+
})), s(Ui({
|
|
3837
3855
|
pluginName: e,
|
|
3838
3856
|
error: null
|
|
3839
3857
|
}));
|
|
3840
3858
|
try {
|
|
3841
3859
|
let t = await c.getConfig(e);
|
|
3842
|
-
return s(
|
|
3860
|
+
return s(Wi({
|
|
3843
3861
|
pluginName: e,
|
|
3844
3862
|
config: t
|
|
3845
3863
|
})), t;
|
|
3846
3864
|
} catch (t) {
|
|
3847
|
-
throw console.error("[useConfig] getConfig failed:", t), s(
|
|
3865
|
+
throw console.error("[useConfig] getConfig failed:", t), s(Ui({
|
|
3848
3866
|
pluginName: e,
|
|
3849
3867
|
error: t instanceof Error ? t.message : "Unknown error"
|
|
3850
3868
|
})), t;
|
|
3851
3869
|
} finally {
|
|
3852
|
-
s(
|
|
3870
|
+
s(Hi({
|
|
3853
3871
|
pluginName: e,
|
|
3854
3872
|
loading: !1
|
|
3855
3873
|
}));
|
|
@@ -3859,10 +3877,10 @@ function La(e, i = {}) {
|
|
|
3859
3877
|
c,
|
|
3860
3878
|
s
|
|
3861
3879
|
]), h = t(async (t) => {
|
|
3862
|
-
s(
|
|
3880
|
+
s(Hi({
|
|
3863
3881
|
pluginName: e,
|
|
3864
3882
|
loading: !0
|
|
3865
|
-
})), s(
|
|
3883
|
+
})), s(Ui({
|
|
3866
3884
|
pluginName: e,
|
|
3867
3885
|
error: null
|
|
3868
3886
|
}));
|
|
@@ -3873,12 +3891,12 @@ function La(e, i = {}) {
|
|
|
3873
3891
|
message: n?.message
|
|
3874
3892
|
};
|
|
3875
3893
|
} catch (t) {
|
|
3876
|
-
throw console.error("[useConfig] setConfig failed:", t), s(
|
|
3894
|
+
throw console.error("[useConfig] setConfig failed:", t), s(Ui({
|
|
3877
3895
|
pluginName: e,
|
|
3878
3896
|
error: t instanceof Error ? t.message : "Unknown error"
|
|
3879
3897
|
})), t;
|
|
3880
3898
|
} finally {
|
|
3881
|
-
s(
|
|
3899
|
+
s(Hi({
|
|
3882
3900
|
pluginName: e,
|
|
3883
3901
|
loading: !1
|
|
3884
3902
|
}));
|
|
@@ -3890,7 +3908,7 @@ function La(e, i = {}) {
|
|
|
3890
3908
|
]), g = t(async () => {
|
|
3891
3909
|
try {
|
|
3892
3910
|
let t = await c.getSchema(e);
|
|
3893
|
-
return t && s(
|
|
3911
|
+
return t && s(Gi({
|
|
3894
3912
|
pluginName: e,
|
|
3895
3913
|
schema: t
|
|
3896
3914
|
})), t;
|
|
@@ -3947,8 +3965,8 @@ function La(e, i = {}) {
|
|
|
3947
3965
|
_
|
|
3948
3966
|
]);
|
|
3949
3967
|
}
|
|
3950
|
-
function
|
|
3951
|
-
let e = $(), n = X(
|
|
3968
|
+
function Va() {
|
|
3969
|
+
let e = $(), n = X(ta), i = X(na), a = X(J), o = t(async () => {
|
|
3952
3970
|
try {
|
|
3953
3971
|
let [t, n] = await Promise.all([e.getAllConfigs(), e.getAllSchemas()]);
|
|
3954
3972
|
return {
|
|
@@ -3971,7 +3989,7 @@ function Ra() {
|
|
|
3971
3989
|
o
|
|
3972
3990
|
]);
|
|
3973
3991
|
}
|
|
3974
|
-
function
|
|
3992
|
+
function Ha() {
|
|
3975
3993
|
let e = $(), a = X(J), [o, s] = i(""), [c, l] = i([]), [u, d] = i(!1), [f, p] = i(null), m = t(async () => {
|
|
3976
3994
|
d(!0), p(null);
|
|
3977
3995
|
try {
|
|
@@ -4016,7 +4034,7 @@ function za() {
|
|
|
4016
4034
|
h
|
|
4017
4035
|
]);
|
|
4018
4036
|
}
|
|
4019
|
-
function
|
|
4037
|
+
function Ua() {
|
|
4020
4038
|
let e = $(), a = X(J), [o, s] = i([]), [c, l] = i(!1), [u, d] = i(null), f = t(async () => {
|
|
4021
4039
|
l(!0), d(null);
|
|
4022
4040
|
try {
|
|
@@ -4066,7 +4084,7 @@ function Ba() {
|
|
|
4066
4084
|
m
|
|
4067
4085
|
]);
|
|
4068
4086
|
}
|
|
4069
|
-
function
|
|
4087
|
+
function Wa() {
|
|
4070
4088
|
let e = $(), a = X(J), [o, s] = i([]), [c, l] = i(!1), [u, d] = i(null), f = t(async () => {
|
|
4071
4089
|
l(!0), d(null);
|
|
4072
4090
|
try {
|
|
@@ -4116,7 +4134,7 @@ function Va() {
|
|
|
4116
4134
|
m
|
|
4117
4135
|
]);
|
|
4118
4136
|
}
|
|
4119
|
-
function
|
|
4137
|
+
function Ga() {
|
|
4120
4138
|
let e = $(), a = X(J), [o, s] = i(null), [c, l] = i([]), [u, d] = i(!1), [f, p] = i(null), m = t(async () => {
|
|
4121
4139
|
d(!0), p(null);
|
|
4122
4140
|
try {
|
|
@@ -4237,8 +4255,8 @@ function Ha() {
|
|
|
4237
4255
|
}
|
|
4238
4256
|
//#endregion
|
|
4239
4257
|
//#region ../../../packages/client/client/index.ts
|
|
4240
|
-
function
|
|
4258
|
+
function Ka(...e) {
|
|
4241
4259
|
return rt(g(e));
|
|
4242
4260
|
}
|
|
4243
4261
|
//#endregion
|
|
4244
|
-
export {
|
|
4262
|
+
export { Ma as ConnectionError, Z as ConnectionState, Aa as DynamicRouter, a as Link, Na as MessageError, Pa as MessageHandler, o as Outlet, ja as RequestTimeoutError, Q as WebSocketError, Fa as WebSocketManager, Li as addEntry, wa as addPage, Sa as addReducer, Ti as addRoute, Yi as clearConfigs, ka as clearPages, ki as clearRoutes, Ka as cn, La as destroyWebSocketManager, Oa as getAllPages, Da as getPage, $ as getWebSocketManager, Mi as loadScript, Ni as loadScripts, xa as persistor, ot as pickMediaRawUrl, Ji as removeConfig, Ri as removeEntry, Ta as removePage, Ei as removeRoute, Ra as resetWebSocketManager, at as resolveMediaSrc, ta as selectAllConfigs, na as selectAllSchemas, Zi as selectConfig, J as selectConfigConnected, ea as selectConfigError, $i as selectConfigLoading, Qi as selectSchema, yi as setActiveMenu, Vi as setConnected, Ui as setError, Hi as setLoading, Oi as setRoutes, vi as setSidebarOpen, Y as store, Ii as syncEntries, _i as toggleSidebar, Pi as unloadScript, Wi as updateConfig, Ki as updateConfigs, Ea as updatePage, Di as updateRoute, Gi as updateSchema, qi as updateSchemas, Va as useAllConfigs, Ba as useConfig, Ha as useConfigYaml, Ga as useDatabase, Ca as useDispatch, Ua as useEnvFiles, Wa as useFiles, u as useNavigate, d as useOutlet, f as useParams, X as useSelector, za as useWebSocket };
|