diff --git a/dist/button.js b/dist/button.js index dae582f..f687d7f 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { ah as s, ag as u, ai as e } from "./common/main-Bv6_dpPM.js"; +import { ah as s, ag as u, ai as e } from "./common/main-DU7Fa-r2.js"; export { s as auth, u as default, diff --git a/dist/common/main-Bv6_dpPM.js b/dist/common/main-DU7Fa-r2.js similarity index 68% rename from dist/common/main-Bv6_dpPM.js rename to dist/common/main-DU7Fa-r2.js index 2160bfa..44de741 100644 --- a/dist/common/main-Bv6_dpPM.js +++ b/dist/common/main-DU7Fa-r2.js @@ -1,39 +1,39 @@ -var En = Object.defineProperty; +var jn = Object.defineProperty; var It = (e) => { throw TypeError(e); }; -var jn = (e, t, n) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; -var $ = (e, t, n) => jn(e, typeof t != "symbol" ? t + "" : t, n), Mt = (e, t, n) => t.has(e) || It("Cannot " + n); -var y = (e, t, n) => (Mt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), j = (e, t, n) => t.has(e) ? It("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), _ = (e, t, n, a) => (Mt(e, t, "write to private field"), a ? a.call(e, n) : t.set(e, n), n); +var An = (e, t, n) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; +var $ = (e, t, n) => An(e, typeof t != "symbol" ? t + "" : t, n), Mt = (e, t, n) => t.has(e) || It("Cannot " + n); +var y = (e, t, n) => (Mt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), j = (e, t, n) => t.has(e) ? It("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), W = (e, t, n, a) => (Mt(e, t, "write to private field"), a ? a.call(e, n) : t.set(e, n), n); var zt = (e, t, n, a) => ({ set _(i) { - _(e, t, i, n); + W(e, t, i, n); }, get _() { return y(e, t, a); } }); -import { jsx as g, jsxs as O } from "react/jsx-runtime"; -import S, { useEffect as L, useState as E, useCallback as J, useRef as W, useContext as ae, useMemo as U, useId as mt, isValidElement as An, useLayoutEffect as Ln } from "react"; +import { jsx as g, jsxs as E } from "react/jsx-runtime"; +import S, { useEffect as L, useState as O, useCallback as J, useRef as q, useContext as ae, useMemo as _, useId as ht, isValidElement as Ln, useLayoutEffect as Vn } from "react"; import w from "prop-types"; import V from "classnames"; import * as Bt from "react-is"; -import { useNotification as Vn } from "rc-notification"; +import { useNotification as In } from "rc-notification"; import h from "lodash"; -import Q, { Field as $t, FieldContext as Qt } from "rc-field-form"; -import { M as dt, N as Ee, a as je, P as ht, S as In } from "./vender-CtjyT19B.js"; -import Zt from "immutability-helper"; -import { Space as Mn, Form as Xe, Input as zn, Button as Ze, Pagination as Bn, Tree as Dn, Breadcrumb as qn, Table as Un, Empty as Wn, Popover as _n, Popconfirm as Kn, Tooltip as Hn } from "antd"; -import { useMergedState as Jn } from "rc-util"; -import { generatePath as Gn, useInRouterContext as en, useParams as Yn, useLocation as Xn, createBrowserRouter as Qn, Navigate as Zn } from "react-router-dom"; +import Q, { Field as $t, FieldContext as Zt } from "rc-field-form"; +import { M as ut, N as je, a as Ae, _ as ft, S as Mn } from "./vender-FNiQWFaA.js"; +import en from "immutability-helper"; +import { Space as zn, Form as Qe, Input as Bn, Button as et, Pagination as Dn, Tree as Un, Breadcrumb as _n, Table as qn, Empty as Wn, Popover as Kn, Popconfirm as Hn, Tooltip as Jn } from "antd"; +import { useMergedState as Gn } from "rc-util"; +import { generatePath as Yn, useInRouterContext as tn, useParams as Xn, useLocation as Qn, createBrowserRouter as Zn, Navigate as ea } from "react-router-dom"; import "rc-util/lib/hooks/useMergedState"; -import ea from "rc-drawer"; -import ta from "rc-dialog"; -var $e, Ve, Ne, de, xe, ve; -class tn { +import ta from "rc-drawer"; +import na from "rc-dialog"; +var $e, Ie, Ne, de, xe, ve; +class nn { constructor(t, n) { j(this, $e, /* @__PURE__ */ new Map()); - j(this, Ve, !0); + j(this, Ie, !0); j(this, Ne, []); j(this, de); j(this, xe, () => y(this, de)); @@ -41,7 +41,7 @@ class tn { $(this, "get", (...t) => new Promise((n, a) => { const i = JSON.stringify(t); if (y(this, $e).has(i)) return n(y(this, ve).call(this, y(this, de), ...t)); - if (y(this, de) === void 0) y(this, Ne).push([t, n, a]), y(this, Ve) && (_(this, Ve, !1), Promise.resolve(typeof y(this, xe) == "function" ? y(this, xe).call(this) : y(this, xe)).then((r) => _(this, de, r || null)).finally(() => { + if (y(this, de) === void 0) y(this, Ne).push([t, n, a]), y(this, Ie) && (W(this, Ie, !1), Promise.resolve(typeof y(this, xe) == "function" ? y(this, xe).call(this) : y(this, xe)).then((r) => W(this, de, r || null)).finally(() => { y(this, Ne).forEach(([r, o, s]) => { try { const l = y(this, ve).call(this, y(this, de), ...r); @@ -56,60 +56,60 @@ class tn { y(this, $e).set(i, r), n(r); } })); - _(this, ve, n), _(this, xe, t); + W(this, ve, n), W(this, xe, t); } } -$e = new WeakMap(), Ve = new WeakMap(), Ne = new WeakMap(), de = new WeakMap(), xe = new WeakMap(), ve = new WeakMap(); -const Ci = () => g("div", { children: "Empty" }), qe = S.createContext({ ele: {}, mount: () => { +$e = new WeakMap(), Ie = new WeakMap(), Ne = new WeakMap(), de = new WeakMap(), xe = new WeakMap(), ve = new WeakMap(); +const ki = () => g("div", { children: "Empty" }), _e = S.createContext({ ele: {}, mount: () => { }, unmount: () => { } }), H = ({ rootClassName: e, className: t, children: n, actions: a, title: i, subTitle: r, extras: o, style: s = {} }) => { - const { mount: l, unmount: p } = S.useContext(qe); + const { mount: l, unmount: p } = S.useContext(_e); return H.Action({ children: a }), H.Title({ children: i }), H.SubTitle({ children: r }), H.Extra({ children: o }), L(() => (l("rootClassName", e), () => p(e)), [e]), g("div", { className: V("ff-container", t), style: s, children: n }); -}, Ye = (e) => ({ children: t, className: n }) => { - const { mount: a, unmount: i } = S.useContext(qe); +}, Xe = (e) => ({ children: t, className: n }) => { + const { mount: a, unmount: i } = S.useContext(_e); return L(() => (t && a(e, S.createElement("div", { key: `ff-${e}`, className: V(`ff-popup-${e}`, n) }, t)), () => i(e)), [n, t]), null; }; -H.Action = Ye("actions"), H.Title = Ye("title"), H.SubTitle = Ye("sub-title"), H.Extra = Ye("extras"), H.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any }; -const ki = () => g(H, { className: "ff-loading", children: O("div", { className: "loader", children: [O("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), O("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), O("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), O("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] })] }) }), Si = () => g("div", { children: "NotFound" }), nn = ({ children: e }) => { - const [t, n] = E({}), a = J((r, o) => n((s) => ({ ...s, [r]: o })), []), i = J((r) => n((o) => ({ ...o, [r]: void 0 })), []); - return typeof (e == null ? void 0 : e.type) == "string" ? e : g(qe.Provider, { value: { ele: t, mount: a, unmount: i }, children: S.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); +H.Action = Xe("actions"), H.Title = Xe("title"), H.SubTitle = Xe("sub-title"), H.Extra = Xe("extras"), H.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any }; +const Si = () => g(H, { className: "ff-loading", children: E("div", { className: "loader", children: [E("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), E("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), E("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] }), E("div", { className: "square", children: [g("span", {}), g("span", {}), g("span", {})] })] }) }), xi = () => g("div", { children: "NotFound" }), an = ({ children: e }) => { + const [t, n] = O({}), a = J((r, o) => n((s) => ({ ...s, [r]: o })), []), i = J((r) => n((o) => ({ ...o, [r]: void 0 })), []); + return typeof (e == null ? void 0 : e.type) == "string" ? e : g(_e.Provider, { value: { ele: t, mount: a, unmount: i }, children: S.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); }; -nn.propTypes = { children: w.element.isRequired }; -const Dt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Nt = ({ type: e, props: t }) => g("i", { ...t, children: g("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Dt[e] || Dt.info).map((n, a) => g("path", { d: n }, a)) }) }), an = ({ className: e, content: t, icon: n, $close: a }) => O(S.Fragment, { children: [n && g("div", { className: V("ff-notification-icon", e), children: g(Nt, { type: n }) }), t] }), na = ({}) => g(H, { children: "Confirm" }); -var pe, Re; +an.propTypes = { children: w.element.isRequired }; +const Dt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Nt = ({ type: e, props: t }) => g("i", { ...t, children: g("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Dt[e] || Dt.info).map((n, a) => g("path", { d: n }, a)) }) }), rn = ({ className: e, content: t, icon: n, $close: a }) => E(S.Fragment, { children: [n && g("div", { className: V("ff-notification-icon", e), children: g(Nt, { type: n }) }), t] }), aa = ({}) => g(H, { children: "Confirm" }); +var pe, Fe; const ie = class ie { constructor() { - j(this, Re, /* @__PURE__ */ new Map()); - $(this, "init", (t) => _(this, Re, new Map(t))); - $(this, "check", (t) => !y(this, Re).has(t) || y(this, Re).get(t)); + j(this, Fe, /* @__PURE__ */ new Map()); + $(this, "init", (t) => W(this, Fe, new Map(t))); + $(this, "check", (t) => !y(this, Fe).has(t) || y(this, Fe).get(t)); if (y(ie, pe)) return y(ie, pe); } }; -pe = new WeakMap(), Re = new WeakMap(), j(ie, pe, null), $(ie, "getInstance", () => (y(ie, pe) || _(ie, pe, new ie()), y(ie, pe))); -let ft = ie; -const aa = ft.getInstance(), ia = (e, t, n = "children") => { +pe = new WeakMap(), Fe = new WeakMap(), j(ie, pe, null), $(ie, "getInstance", () => (y(ie, pe) || W(ie, pe, new ie()), y(ie, pe))); +let yt = ie; +const ia = yt.getInstance(), ra = (e, t, n = "children") => { if (h.isEmpty(e)) return {}; const a = h.find(e, ["value", t]); if (!h.isEmpty(a)) return a; const i = e.length; for (let r = 0; r < i; r++) { - const { [n]: o } = e[r], s = ia(o, t, n); + const { [n]: o } = e[r], s = ra(o, t, n); if (!h.isEmpty(s)) return s; } return {}; -}, rn = (e = "Input", t = "@pkg/ff/grid-layout-forms") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`; -var me, Ie; +}, sn = (e = "Input", t = "@pkg/ff/grid-layout-forms") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`; +var me, Me; const re = class re { constructor() { - j(this, Ie, null); - $(this, "init", (t) => _(this, Ie, t)); - $(this, "get", (t, n) => h.get(y(this, Ie), t, n)); + j(this, Me, null); + $(this, "init", (t) => W(this, Me, t)); + $(this, "get", (t, n) => h.get(y(this, Me), t, n)); if (y(re, me)) return y(re, me); } }; -me = new WeakMap(), Ie = new WeakMap(), j(re, me, null), $(re, "getInstance", () => (y(re, me) || _(re, me, new re()), y(re, me))); -let yt = re; -const Ae = yt.getInstance(), qt = { null2json: (e) => Object.create(), null2array: (e) => [], null2number: (e) => 0, null2bool: (e) => !1, null2string: (e) => "", null2integer: (e) => 0, null2float: (e) => 0, string2json: (e) => e ? JSON.parse(e) : "{}", string2array: (e) => e.substr(0, 1) === "[" && e.substr(-1) === "]" ? JSON.parse(e) : e.split(","), string2number: (e) => e == "" ? 0 : +e, string2integer: (e) => e == "" ? 0 : +e, string2float: (e) => e == "" ? 0 : +e, string2bool: (e) => { +me = new WeakMap(), Me = new WeakMap(), j(re, me, null), $(re, "getInstance", () => (y(re, me) || W(re, me, new re()), y(re, me))); +let wt = re; +const Le = wt.getInstance(), Ut = { null2json: (e) => Object.create(), null2array: (e) => [], null2number: (e) => 0, null2bool: (e) => !1, null2string: (e) => "", null2integer: (e) => 0, null2float: (e) => 0, string2json: (e) => e ? JSON.parse(e) : "{}", string2array: (e) => e.substr(0, 1) === "[" && e.substr(-1) === "]" ? JSON.parse(e) : e.split(","), string2number: (e) => e == "" ? 0 : +e, string2integer: (e) => e == "" ? 0 : +e, string2float: (e) => e == "" ? 0 : +e, string2bool: (e) => { switch (`${e}`.toLowerCase()) { case "0": case "false": @@ -122,8 +122,8 @@ const Ae = yt.getInstance(), qt = { null2json: (e) => Object.create(), null2arra let n = "string"; n = Array.isArray(e) ? "array" : typeof e, h.isObject(e) && (n = "json"); const a = `${n}2${t}`; - return Reflect.has(qt, a) ? qt[a](e) : e; -}, ra = (e) => e === null ? "null" : Array.isArray(e) ? "array" : typeof e == "object" ? "json" : typeof e == "boolean" ? "bool" : typeof e == "string" ? "string" : typeof e == "number" ? Number.isInteger(e) ? "integer" : "float" : typeof e, Ue = (e = {}, t = {}, n = {}, a = "") => sn(e, (i, r) => r === "type" && i === "code") ? on(e, t, n, a) : ln(e, t, a), sn = (e, t = () => !1) => h.some(e, (n) => !!h.some(n, t) || (h.isEmpty(n) || !h.isPlainObject(n) && !h.isArray(n) ? void 0 : sn(n, t))), on = async (e = {}, t = {}, n = {}, a = "") => { + return Reflect.has(Ut, a) ? Ut[a](e) : e; +}, sa = (e) => e === null ? "null" : Array.isArray(e) ? "array" : typeof e == "object" ? "json" : typeof e == "boolean" ? "bool" : typeof e == "string" ? "string" : typeof e == "number" ? Number.isInteger(e) ? "integer" : "float" : typeof e, qe = (e = {}, t = {}, n = {}, a = "") => on(e, (i, r) => r === "type" && i === "code") ? ln(e, t, n, a) : cn(e, t, a), on = (e, t = () => !1) => h.some(e, (n) => !!h.some(n, t) || (h.isEmpty(n) || !h.isPlainObject(n) && !h.isArray(n) ? void 0 : on(n, t))), ln = async (e = {}, t = {}, n = {}, a = "") => { let i = /* @__PURE__ */ Object.create(null); for (let r in e) { let o; @@ -148,11 +148,11 @@ const Ae = yt.getInstance(), qt = { null2json: (e) => Object.create(), null2arra o = l; } o ?? (o = p); - } else o = await on(e[r], t, n, a); + } else o = await ln(e[r], t, n, a); h.set(i, r, o); } return i; -}, ln = (e = {}, t = {}, n = "") => Object.keys(e || {}).reduce((a, i) => { +}, cn = (e = {}, t = {}, n = "") => Object.keys(e || {}).reduce((a, i) => { if (h.isPlainObject(e[i])) { let r; if (Reflect.has(e[i], "type") && ["field", "router", "query", "string"].includes(e[i].type)) { @@ -169,28 +169,28 @@ const Ae = yt.getInstance(), qt = { null2json: (e) => Object.create(), null2arra r = s; } r ?? (r = l); - } else r = ln(e[i], t, n); + } else r = cn(e[i], t, n); h.set(a, i, r); } return a; -}, {}), ut = (e, t) => e && typeof e == "object" ? Array.isArray(e) ? e.map((n) => ut(n, t)) : Object.keys(e).reduce((n, a) => (t[a] ? n[t[a]] = ut(e[a], t) : n[a] = ut(e[a], t), n), {}) : e, xi = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => { +}, {}), gt = (e, t) => e && typeof e == "object" ? Array.isArray(e) ? e.map((n) => gt(n, t)) : Object.keys(e).reduce((n, a) => (t[a] ? n[t[a]] = gt(e[a], t) : n[a] = gt(e[a], t), n), {}) : e, vi = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => { const t = 16 * Math.random() | 0; return (e === "x" ? t : 3 & t | 8).toString(16); -}), vi = (e) => { +}), Pi = (e) => { var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){3}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.name : ""; -}, Pi = (e) => { - var t, n; - return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){2}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.category : ""; }, Ti = (e) => { + var t, n; + return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){2}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.category : ""; +}, $i = (e) => { var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.owner : ""; -}, sa = (e, t = 32, n = "auto") => { - const a = wt(e), i = n === "auto" ? "x64" : n; - if (t === 32) return dt.x86.hash32(a).toString(); - if (t === 128) return i === "x64" ? dt.x64.hash128(a) : dt.x86.hash128(a); +}, oa = (e, t = 32, n = "auto") => { + const a = bt(e), i = n === "auto" ? "x64" : n; + if (t === 32) return ut.x86.hash32(a).toString(); + if (t === 128) return i === "x64" ? ut.x64.hash128(a) : ut.x86.hash128(a); throw new Error("bits 只能是 32 或 128"); -}, wt = (e) => e == null ? "null" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "function" ? e.toString() : Array.isArray(e) ? "[" + e.map(wt).join(",") + "]" : typeof e == "object" ? "{" + Object.keys(e).sort().map((t) => `${t}:${wt(e[t])}`).join(",") + "}" : String(e), oa = () => { +}, bt = (e) => e == null ? "null" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "function" ? e.toString() : Array.isArray(e) ? "[" + e.map(bt).join(",") + "]" : typeof e == "object" ? "{" + Object.keys(e).sort().map((t) => `${t}:${bt(e[t])}`).join(",") + "}" : String(e), la = () => { let e = 1; const t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map(); return (...a) => a.length === 0 ? "" : a.map((i) => { @@ -198,18 +198,18 @@ const Ae = yt.getInstance(), qt = { null2json: (e) => Object.create(), null2arra var r; }).join("::"); }; -var tt, Me, ze, nt; -const at = class at { +var nt, ze, Be, at; +const it = class it { constructor(...t) { - j(this, Me, []); - j(this, ze, (t) => { + j(this, ze, []); + j(this, Be, (t) => { var n; - for (let a of t) Array.isArray(a[0]) ? y(this, ze).call(this, a) : y(this, Me).push(y(n = at, tt).call(n, a[0], a[1])); + for (let a of t) Array.isArray(a[0]) ? y(this, Be).call(this, a) : y(this, ze).push(y(n = it, nt).call(n, a[0], a[1])); }); $(this, "toValue", async (t, n = null) => { const a = { getValue: () => t, getRecord: () => n }; let i = t; - for (const r of y(this, Me)) try { + for (const r of y(this, ze)) try { const o = await r; if (typeof o != "function") { console.warn("middleware is not a function, skip:", o); @@ -221,26 +221,26 @@ const at = class at { } return i; }); - $(this, "toRender", (t, n, a = null) => S.createElement(y(this, nt), { value: t, record: n }, a)); - j(this, nt, ({ value: t, record: n, children: a }) => { - const [i, r] = E(a); - return _e(() => { + $(this, "toRender", (t, n, a = null) => S.createElement(y(this, at), { value: t, record: n }, a)); + j(this, at, ({ value: t, record: n, children: a }) => { + const [i, r] = O(a); + return Ke(() => { let o = !1; return r(a), this.toValue(t, n).then((s) => !o && r(s)).catch((s) => !o && r(`${s}`)), () => o = !0; }, [t, n]), i; }); - y(this, ze).call(this, t); + y(this, Be).call(this, t); } }; -tt = new WeakMap(), Me = new WeakMap(), ze = new WeakMap(), nt = new WeakMap(), j(at, tt, h.memoize((t, n) => { +nt = new WeakMap(), ze = new WeakMap(), Be = new WeakMap(), at = new WeakMap(), j(it, nt, h.memoize((t, n) => { if (typeof t == "function") return t(n); if (typeof t == "string") return ne.getWidgetComponent(t).then((a) => { var i; return ((i = a.default) == null ? void 0 : i.call(a, n)) || ((r) => r); }); throw new TypeError("middleware must be a string or a function"); -}, oa())); -let et = at; +}, la())); +let tt = it; const Z = S.createContext({ listCode: "", classNames: {}, getBase62params: (e, t) => { }, onReload: () => { }, onClickCallback: () => { @@ -257,56 +257,56 @@ const Z = S.createContext({ listCode: "", classNames: {}, getBase62params: (e, t }, setSider: () => { }, setKeyword: () => { }, setCondition: () => { -} }), Ut = ({ className: e, record: t, column: n, ...a }) => { +} }), _t = ({ className: e, record: t, column: n, ...a }) => { if (n != null && n.editableByJs && (n != null && n.uuid)) { const { formSetting: i = { primaryKey: "id" }, widgetSetting: r = {}, widgetContainerSetting: o = {} } = (n == null ? void 0 : n.editableByJsSetting) || {}; - return g(P.Popover, { widget: la, widgetData: { record: t, column: n }, widgetSetting: { widgetSetting: r, formSetting: i }, widgetContainerProps: { title: n != null && n.title ? `${n.title} - 编辑` : "编辑", ...o, width: (o == null ? void 0 : o.width) || 260, arrow: !0 }, children: g("td", { className: V("ff-data-list-cell-editable", e), ...a }) }); + return g(P.Popover, { widget: ca, widgetData: { record: t, column: n }, widgetSetting: { widgetSetting: r, formSetting: i }, widgetContainerProps: { title: n != null && n.title ? `${n.title} - 编辑` : "编辑", ...o, width: (o == null ? void 0 : o.width) || 260, arrow: !0 }, children: g("td", { className: V("ff-data-list-cell-editable", e), ...a }) }); } return g("td", { className: e, ...a }); -}, la = ({ record: e, column: t, $close: n, $setting: a }) => { - const i = W(ra(h.get(e, t == null ? void 0 : t.dataIndex))), { listCode: r, onClickCallback: o } = ae(Z), [s] = Q.useForm(), { formSetting: l, widgetSetting: p } = a, c = (l == null ? void 0 : l.primaryKey) || "id", d = () => { +}, ca = ({ record: e, column: t, $close: n, $setting: a }) => { + const i = q(sa(h.get(e, t == null ? void 0 : t.dataIndex))), { listCode: r, onClickCallback: o } = ae(Z), [s] = Q.useForm(), { formSetting: l, widgetSetting: p } = a, c = (l == null ? void 0 : l.primaryKey) || "id", d = () => { s.setFieldsValue({ value: h.get(e, t == null ? void 0 : t.dataIndex), __PROPS__: e }); }; - return _e(() => d(), [e, t == null ? void 0 : t.dataIndex, r]), g(H, { actions: O(S.Fragment, { children: [g(P, { size: "small", onClick: d, children: "重置" }), O(Mn.Compact, { block: !0, children: [g(P, { size: "small", widget: n, children: "取消" }), g(P, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: f }) => { + return Ke(() => d(), [e, t == null ? void 0 : t.dataIndex, r]), g(H, { actions: E(S.Fragment, { children: [g(P, { size: "small", onClick: d, children: "重置" }), E(zn.Compact, { block: !0, children: [g(P, { size: "small", widget: n, children: "取消" }), g(P, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: f }) => { const m = h.get(e, c.substring(c.indexOf(".") + 1)); if (!m) throw "获取更新主键失败!"; A.put(`/api/${r}-storeBy-${t == null ? void 0 : t.uuid}/${m}`, { value: f }).msg(() => o(2, e)).then(n); - }).catch(console.warn), children: "保存" })] })] }), children: O(Q, { form: s, children: [g(Et, { label: "", type: i.current, code: "value", widget: t == null ? void 0 : t.editableByJs, extras: p }), g($t, { noStyle: !0, name: ["__PROPS__"], children: () => { + }).catch(console.warn), children: "保存" })] })] }), children: E(Q, { form: s, children: [g(Ot, { label: "", type: i.current, code: "value", widget: t == null ? void 0 : t.editableByJs, extras: p }), g($t, { noStyle: !0, name: ["__PROPS__"], children: () => { } })] }) }); -}, ca = (e) => function(t) { +}, da = (e) => function(t) { return e(t, getRecord()); -}, da = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: n, widgetByJsSetting: a, ...i }, r) => { +}, ua = (e, t = {}) => _(() => e == null ? void 0 : e.map(({ widgetByJs: n, widgetByJsSetting: a, ...i }, r) => { const o = (l) => ({ record: l, column: i }); let s = []; - return n && s.push([n, a]), s.length > 0 ? (i != null && i.render && s.push([ca, i.render]), { ...i, onCell: o, render: (l, p) => new et(s).toRender(l, p, "-") }) : { ...i, onCell: o }; -}), [e, t]), ua = (e = {}) => U(() => { + return n && s.push([n, a]), s.length > 0 ? (i != null && i.render && s.push([da, i.render]), { ...i, onCell: o, render: (l, p) => new tt(s).toRender(l, p, "-") }) : { ...i, onCell: o }; +}), [e, t]), ga = (e = {}) => _(() => { var t; - return e.body ?? (e.body = { cell: Ut }), (t = e.body).cell ?? (t.cell = Ut), e; -}, [e]), $i = (e) => { - const [t, n] = E({}); + return e.body ?? (e.body = { cell: _t }), (t = e.body).cell ?? (t.cell = _t), e; +}, [e]), Ni = (e) => { + const [t, n] = O({}); return L(() => { let a = !1; return e && A.get(`/api/_/${e}`).then((i) => h.pick(i, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((i) => !a && n(i)), () => a = !0; }, [e]), t; -}, Ni = (e, t = {}) => { - const [n, a] = E({ dataSource: [] }); +}, Fi = (e, t = {}) => { + const [n, a] = O({ dataSource: [] }); return We(() => { let i = !1; return e && A.get(`/api/${e}/${A.encode({ page: 1, ...t })}`).then((r) => !i && a(r)), () => i = !0; }, [e, t]), n; -}, cn = (e = [], t = /* @__PURE__ */ new Map(), n = "id", a) => { +}, dn = (e = [], t = /* @__PURE__ */ new Map(), n = "id", a) => { const i = J(a ? (r) => h.get(r, n, h.get(r, [a, n])) : (r) => h.get(r, n), [n, a]); return J((r) => e == null ? void 0 : e.filter((o) => !o.uuid || !t.has(o.uuid) || t.get(o.uuid).some((s) => s == i(r))), [e, t, i]); -}, bt = (e = [], t = /* @__PURE__ */ new Map(), n = [], a = "id", i) => { +}, Ct = (e = [], t = /* @__PURE__ */ new Map(), n = [], a = "id", i) => { const r = J(i ? (o) => h.get(o, a, h.get(o, [i, a])) : (o) => h.get(o, a), [a, i]); - return U(() => { - if (h.isEmpty(e) || !e.some(({ uuid: s }) => aa.check(s))) return !1; + return _(() => { + if (h.isEmpty(e) || !e.some(({ uuid: s }) => ia.check(s))) return !1; if (h.isEmpty(t) || h.isEmpty(n)) return !0; const o = n.map((s) => r(s)); return e.some(({ uuid: s }) => !s || !t.has(s) || t.get(s).some((l) => o.some((p) => p == l))); }, [e, n, t, r]); -}, ga = (e, t, n = "id", a = null) => { - const i = st(), r = W(!1), o = W(e.dataSource), s = W(e.itemOperationsAccess); +}, pa = (e, t, n = "id", a = null) => { + const i = ot(), r = q(!1), o = q(e.dataSource), s = q(e.itemOperationsAccess); return L(() => (o.current = e.dataSource, s.current = e.itemOperationsAccess, () => r.current = !1), [e.dataSource, e.itemOperationsAccess]), r.current && (e.dataSource = o.current, e.itemOperationsAccess = s.current), [e, (l = 0, p = null) => { var c, d; if (r.current = !1, l === 1) return (c = e.onReload) == null ? void 0 : c.call(e); @@ -315,84 +315,84 @@ const Z = S.createContext({ listCode: "", classNames: {}, getBase62params: (e, t if (b === -1) return (d = e.onReload) == null ? void 0 : d.call(e); Promise.all([A.get(`/api/${t}/detail/${m}`), A.post(`/api/${t}/list-operations-access`, { ids: m })]).then(([k, C]) => { const x = h.get(o.current, u > -1 ? [u, "children", b, "children"] : [b, "children"]); - o.current = Zt(o.current, u > -1 ? { [u]: { children: { $splice: [[b, 1, { ...k, children: x }]] } } } : { $splice: [[b, 1, { ...k, children: x }]] }); + o.current = en(o.current, u > -1 ? { [u]: { children: { $splice: [[b, 1, { ...k, children: x }]] } } } : { $splice: [[b, 1, { ...k, children: x }]] }); const v = new Map(C); - s.current.forEach((F, R) => { + s.current.forEach((R, F) => { var B; - (B = v.get(R)) != null && B.some((M) => M == m) || s.current.set(R, F.filter((M) => M !== m)); - }), v.forEach((F, R) => { - s.current.has(R) ? s.current.set(R, h.uniq([...s.current.get(R) || [], ...F])) : s.current.set(R, F); + (B = v.get(F)) != null && B.some((M) => M == m) || s.current.set(F, R.filter((M) => M !== m)); + }), v.forEach((R, F) => { + s.current.has(F) ? s.current.set(F, h.uniq([...s.current.get(F) || [], ...R])) : s.current.set(F, R); }); }).then(() => { r.current = !0, i(); }); } }]; -}, pa = (e, t) => { - const n = st(), a = W(t), i = W(/* @__PURE__ */ new Map()), r = W([]), o = h.throttle((l) => { +}, ma = (e, t) => { + const n = ot(), a = q(t), i = q(/* @__PURE__ */ new Map()), r = q([]), o = h.throttle((l) => { r.current = [], A.list(e, h.pick({ ...a.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: p, condition: c, total: d, tab: f, sider: m, page: u, pageSize: b, operationsAccess: k, dataSource: C }) => { a.current = { tab: f, condition: c, sider: m, keyword: p, total: d, pageSize: b, page: C != null && C.length ? u : 1 }, r.current = C, i.current = new Map(k), n(); }); }, 380, { leading: !1, trailing: !0 }); - _e(() => { + Ke(() => { r.current = [], e && o(t); }, [e, t]); - const s = U(() => h.pick(a.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [a.current]); - return Object.assign(s, { onTabChange: (l) => o({ tab: l, page: 1 }), onPageChange: (l, p) => o({ page: l, pageSize: p }), onPageSizeChange: (l) => o({ pageSize: l, page: 1 }), onConditionChange: (l, p) => o({ keyword: p, condition: Zt(a.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => o({ sider: l, page: 1 }), onKeywordChange: (l) => o({ keyword: l, page: 1 }), itemOperationsAccess: i.current, dataSource: r.current, onReload: o, payload: t == null ? void 0 : t.payload }); -}, ma = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, isPaginate: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: p, resource: c, primaryKey: d, title: f, itemGridLayout: m, $setting: u, tabs: b, isConditionFormLayout: k, isTreeSider: C, treeSiderConfig: x }) => { - const { classNames: v, onClickCallback: F } = ae(Z), R = h.pick(u, ["column", "colWidth", "beforeRender", "afterRender", "style"]), B = cn(l, p, d, c), M = J((I, T, z) => g(ha, { className: V("ff-data-list-framework-item", v.item), operations: r ? B(T) : [], data: c ? { [c]: T } : T, children: I, onClickCallback: F }), [c, d, r, F, l, p]); - return O("div", { className: V("ff-data-list-framework", t), children: [g(n.sider, { isTreeSider: C, ...x }), O("div", { className: V("ff-data-list-container", v == null ? void 0 : v.container), children: [g(n.filter, { isConditionFormLayout: k }), g(n.toolbar, { title: f, tabs: b }), g(Na, { ...R, ...m, primaryKey: d, itemRender: M, dataSource: a }), g(n.footer, { isPaginate: i, isOperations: o, operations: s })] })] }); -}, ha = ({ className: e, operations: t, children: n, data: a, onClickCallback: i }) => O("div", { className: V("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && g("div", { className: "data-list-grid-layout-item-actions", children: t.map((r) => g("span", { className: "data-list-grid-layout-item-action", children: g(P.Link, { uuid: r.uuid, type: r.type, name: r.name, widget: r.widget, widgetType: r.widgetType, widgetProps: r.widgetProps, widgetSetting: r.widgetSetting, widgetContainerProps: r.widgetContainerSetting, data: a, confirm: r.confirm, onAfterClick: (o) => o !== !1 && (i == null ? void 0 : i(r.isRefresh, a)) }, r.uuid || mt()) }, (r == null ? void 0 : r.uuid) || mt())) })] }), fa = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: p, resource: c, primaryKey: d, title: f, tabs: m, isPaginate: u, isTreeSider: b, treeSiderConfig: k, isConditionFormLayout: C, ...x }) => { - const { classNames: v, onClickCallback: F } = ae(Z), R = cn(l, p, d, c), B = bt(l, p, a, d, c); - return O("div", { className: V("ff-data-table-framework", t), children: [g(n.sider, { isTreeSider: b, ...k }), O("div", { className: V("ff-data-table-container", v == null ? void 0 : v.container), children: [g(n.filter, { isConditionFormLayout: C }), g(n.toolbar, { title: f, tabs: m }), g(Sa, { ...x, primaryKey: d, className: "ff-data-table-content", columns: i, dataSource: a, operationRender: B ? (M) => { + const s = _(() => h.pick(a.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [a.current]); + return Object.assign(s, { onTabChange: (l) => o({ tab: l, page: 1 }), onPageChange: (l, p) => o({ page: l, pageSize: p }), onPageSizeChange: (l) => o({ pageSize: l, page: 1 }), onConditionChange: (l, p) => o({ keyword: p, condition: en(a.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => o({ sider: l, page: 1 }), onKeywordChange: (l) => o({ keyword: l, page: 1 }), itemOperationsAccess: i.current, dataSource: r.current, onReload: o, payload: t == null ? void 0 : t.payload }); +}, ha = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, isPaginate: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: p, resource: c, primaryKey: d, title: f, itemGridLayout: m, $setting: u, tabs: b, isConditionFormLayout: k, isTreeSider: C, treeSiderConfig: x }) => { + const { classNames: v, onClickCallback: R } = ae(Z), F = h.pick(u, ["column", "colWidth", "beforeRender", "afterRender", "style"]), B = dn(l, p, d, c), M = J((I, T, z) => g(fa, { className: V("ff-data-list-framework-item", v.item), operations: r ? B(T) : [], data: c ? { [c]: T } : T, children: I, onClickCallback: R }), [c, d, r, R, l, p]); + return E("div", { className: V("ff-data-list-framework", t), children: [g(n.sider, { isTreeSider: C, ...x }), E("div", { className: V("ff-data-list-container", v == null ? void 0 : v.container), children: [g(n.filter, { isConditionFormLayout: k }), g(n.toolbar, { title: f, tabs: b }), g(Fa, { ...F, ...m, primaryKey: d, itemRender: M, dataSource: a }), g(n.footer, { isPaginate: i, isOperations: o, operations: s })] })] }); +}, fa = ({ className: e, operations: t, children: n, data: a, onClickCallback: i }) => E("div", { className: V("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && g("div", { className: "data-list-grid-layout-item-actions", children: t.map((r) => g("span", { className: "data-list-grid-layout-item-action", children: g(P.Link, { uuid: r.uuid, type: r.type, name: r.name, widget: r.widget, widgetType: r.widgetType, widgetProps: r.widgetProps, widgetSetting: r.widgetSetting, widgetContainerProps: r.widgetContainerSetting, data: a, confirm: r.confirm, onAfterClick: (o) => o !== !1 && (i == null ? void 0 : i(r.isRefresh, a)) }, r.uuid || ht()) }, (r == null ? void 0 : r.uuid) || ht())) })] }), ya = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: p, resource: c, primaryKey: d, title: f, tabs: m, isPaginate: u, isTreeSider: b, treeSiderConfig: k, isConditionFormLayout: C, ...x }) => { + const { classNames: v, onClickCallback: R } = ae(Z), F = dn(l, p, d, c), B = Ct(l, p, a, d, c); + return E("div", { className: V("ff-data-table-framework", t), children: [g(n.sider, { isTreeSider: b, ...k }), E("div", { className: V("ff-data-table-container", v == null ? void 0 : v.container), children: [g(n.filter, { isConditionFormLayout: C }), g(n.toolbar, { title: f, tabs: m }), g(xa, { ...x, primaryKey: d, className: "ff-data-table-content", columns: i, dataSource: a, operationRender: B ? (M) => { var I; - return g("div", { className: "ff-data-table-actions", children: (I = R(M)) == null ? void 0 : I.map((T, z) => g(P.Link, { size: "small", uuid: T.uuid, type: T.type, name: T.name, widget: T.widget, widgetType: T.widgetType, widgetProps: T.widgetProps, widgetData: T.widgetData, widgetSetting: T.widgetSetting, widgetContainerProps: T.widgetContainerSetting, data: M, confirm: T.confirm, onAfterClick: (N) => N !== !1 && (F == null ? void 0 : F(T.isRefresh, M)) }, T.uuid || z)) }); + return g("div", { className: "ff-data-table-actions", children: (I = F(M)) == null ? void 0 : I.map((T, z) => g(P.Link, { size: "small", uuid: T.uuid, type: T.type, name: T.name, widget: T.widget, widgetType: T.widgetType, widgetProps: T.widgetProps, widgetData: T.widgetData, widgetSetting: T.widgetSetting, widgetContainerProps: T.widgetContainerSetting, data: M, confirm: T.confirm, onAfterClick: (N) => N !== !1 && (R == null ? void 0 : R(T.isRefresh, M)) }, T.uuid || z)) }); } : null }), g(n.footer, { isPaginate: u, isOperations: o, operations: s })] })] }); -}, Rt = (e, t, n = null) => { +}, Ft = (e, t, n = null) => { var a; - return (a = h.sortBy(e, ["y", "x"])) == null ? void 0 : a.map(({ i, x: r, y: o, w: s, h: l, field: { boxStyle: p, ...c } }, d) => g("div", { className: "grid-layout-item", style: dn(r, o, s, l, p), children: g(t, { ...c, basicForm: n }) }, i ?? d)); -}, dn = (e, t, n, a, i = {}, r = 0) => { + return (a = h.sortBy(e, ["y", "x"])) == null ? void 0 : a.map(({ i, x: r, y: o, w: s, h: l, field: { boxStyle: p, ...c } }, d) => g("div", { className: "grid-layout-item", style: un(r, o, s, l, p), children: g(t, { ...c, basicForm: n }) }, i ?? d)); +}, un = (e, t, n, a, i = {}, r = 0) => { const o = { "--grid-layout-h": `${a}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" }; - return i != null && i.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${a}`, i != null && i.alignItems && (o["--grid-layout-box-align-items"] = i.alignItems), i != null && i.justifyContent && (o["--grid-layout-box-justify-content"] = i.justifyContent), o["--grid-layout-box-margin"] = Wt(i == null ? void 0 : i.marginTop, i == null ? void 0 : i.marginRight, i == null ? void 0 : i.marginBottom, i == null ? void 0 : i.marginLeft), o["--grid-layout-box-padding"] = Wt(i == null ? void 0 : i.paddingTop, i == null ? void 0 : i.paddingRight, i == null ? void 0 : i.paddingBottom, i == null ? void 0 : i.paddingLeft), r && (o.height = `${r}px`), o; -}, Wt = (e, t, n, a) => `${e || 0}px ${t || 0}px ${n || 0}px ${a || 0}px`, Ri = (e = "Text", t = "@pkg/ff/grid-layouts") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, un = ({ className: e, isConditionFormLayout: t }) => { + return i != null && i.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${a}`, i != null && i.alignItems && (o["--grid-layout-box-align-items"] = i.alignItems), i != null && i.justifyContent && (o["--grid-layout-box-justify-content"] = i.justifyContent), o["--grid-layout-box-margin"] = qt(i == null ? void 0 : i.marginTop, i == null ? void 0 : i.marginRight, i == null ? void 0 : i.marginBottom, i == null ? void 0 : i.marginLeft), o["--grid-layout-box-padding"] = qt(i == null ? void 0 : i.paddingTop, i == null ? void 0 : i.paddingRight, i == null ? void 0 : i.paddingBottom, i == null ? void 0 : i.paddingLeft), r && (o.height = `${r}px`), o; +}, qt = (e, t, n, a) => `${e || 0}px ${t || 0}px ${n || 0}px ${a || 0}px`, Ri = (e = "Text", t = "@pkg/ff/grid-layouts") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, gn = ({ className: e, isConditionFormLayout: t }) => { var f, m; - const [n, a] = E({}), { listCode: i, onKeywordChange: r, onConditionChange: o, getBase62params: s, classNames: l } = S.useContext(Z), { keyword: p, condition: c } = (s == null ? void 0 : s()) || {}, [d] = Xe.useForm(); + const [n, a] = O({}), { listCode: i, onKeywordChange: r, onConditionChange: o, getBase62params: s, classNames: l } = S.useContext(Z), { keyword: p, condition: c } = (s == null ? void 0 : s()) || {}, [d] = Qe.useForm(); return L(() => { i && t && A.get(`/api/_/${i}/list-condition-form-layout`).then(({ resource: u, marginX: b, marginY: k, rowHeight: C, cols: x, fields: v }) => { a({ resource: u, itemMargin: [b, k], rowHeight: C, cols: x, fields: v }); }).catch(() => a({})); }, [i, t]), L(() => { d.setFieldsValue({ keyword: p, ...c }); - }, [JSON.stringify([p, c])]), g("div", { className: V("ff-data-list-filter", l.filter, e), children: g(Xe, { form: d, layout: "vertical", autoComplete: "off", onFinish: ((f = n.fields) == null ? void 0 : f.length) > 1 ? (u) => o({ [n.resource]: u[n.resource] }, u.keyword) : () => { + }, [JSON.stringify([p, c])]), g("div", { className: V("ff-data-list-filter", l.filter, e), children: g(Qe, { form: d, layout: "vertical", autoComplete: "off", onFinish: ((f = n.fields) == null ? void 0 : f.length) > 1 ? (u) => o({ [n.resource]: u[n.resource] }, u.keyword) : () => { }, onValuesChange: (u) => { h.isEmpty(h.omit(u, ["keyword"])) || d.submit(); - }, children: ((m = n.fields) == null ? void 0 : m.length) > 1 ? g(jt, { ...n, children: g(ya, { onReset: () => { + }, children: ((m = n.fields) == null ? void 0 : m.length) > 1 ? g(jt, { ...n, children: g(wa, { onReset: () => { const { keyword: u, condition: b } = s("init") || {}; d.setFieldsValue({ keyword: u, ...b }); - } }) }) : g("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: g("div", { className: "grid-layout-item", style: dn(20, 0, 5, 2), children: g(Xe.Item, { name: ["keyword"], children: g(zn.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (u) => r(u) }) }) }) }) }) }); -}, ya = ({ cols: e, fields: t, onReset: n }) => { - const [a, i] = E(!1), r = U(() => t == null ? void 0 : t.toReversed().some((o) => o.y > 1 || o.x + o.w >= e - 5), [e, t]); - return O(Xe.Item, { label: " ", style: { "--item-span": 5 }, className: V("ff-data-list-filter-actions", { expanded: a }), children: [g(Ze, { onClick: n, children: "重置" }), g(Ze, { type: "primary", htmlType: "submit", children: "查询" }), r && g(P.Link, { className: "ff-data-list-filter-expanded-button", widget: () => i((o) => !o), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] }); + } }) }) : g("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: g("div", { className: "grid-layout-item", style: un(20, 0, 5, 2), children: g(Qe.Item, { name: ["keyword"], children: g(Bn.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (u) => r(u) }) }) }) }) }) }); +}, wa = ({ cols: e, fields: t, onReset: n }) => { + const [a, i] = O(!1), r = _(() => t == null ? void 0 : t.toReversed().some((o) => o.y > 1 || o.x + o.w >= e - 5), [e, t]); + return E(Qe.Item, { label: " ", style: { "--item-span": 5 }, className: V("ff-data-list-filter-actions", { expanded: a }), children: [g(et, { onClick: n, children: "重置" }), g(et, { type: "primary", htmlType: "submit", children: "查询" }), r && g(P.Link, { className: "ff-data-list-filter-expanded-button", widget: () => i((o) => !o), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] }); }; -un.reservedFields = [{ x: 0, y: 0, h: 3, w: 5, field: { isVirtual: !0, widgetPrefix: "@pkg/ff/grid-layout-forms", widget: "Input", code: "keyword", label: "关键字", placeholder: "多关键字 | 分割", extras: { prefix: "icon-search" } } }]; -const wa = ({ className: e, operations: t, isOperations: n, isPaginate: a }) => { +gn.reservedFields = [{ x: 0, y: 0, h: 3, w: 5, field: { isVirtual: !0, widgetPrefix: "@pkg/ff/grid-layout-forms", widget: "Input", code: "keyword", label: "关键字", placeholder: "多关键字 | 分割", extras: { prefix: "icon-search" } } }]; +const ba = ({ className: e, operations: t, isOperations: n, isPaginate: a }) => { const { onPageChange: i, onPageSizeChange: r, onClickCallback: o, getBase62params: s } = S.useContext(Z), { total: l, page: p, pageSize: c } = (s == null ? void 0 : s()) || {}; - return n && !h.isEmpty(t) || a ? O("div", { className: V("ff-data-list-footer", e), children: [g("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((d, f) => g(P, { uuid: d.uuid, type: d.type, name: d.name, widget: d.widget, widgetType: d.widgetType, widgetProps: d.widgetProps, widgetData: d.widgetData, widgetSetting: d.widgetSetting, widgetContainerProps: d.widgetContainerSetting, onAfterClick: (m) => m !== !1 && (o == null ? void 0 : o(d.isRefresh, null)) }, d.uuid || f)) }), a && g(Bn, { size: "small", total: l, pageSize: c, showSizeChanger: !1, showTotal: (d) => `第 ${p} 页 / 总共 ${d} 条`, onChange: i, onShowSizeChange: r })] }) : null; -}, ba = [{ title: "parent 1", key: "0-0", children: [{ title: "parent 1-0", key: "0-0-0", disabled: !0, children: [{ title: "leaf", key: "0-0-0-0", disableCheckbox: !0 }, { title: "leaf", key: "0-0-0-1" }] }, { title: "parent 1-1", key: "0-0-1", children: [{ title: g("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], Ca = ({ className: e, width: t = 280, isTreeSider: n }) => { + return n && !h.isEmpty(t) || a ? E("div", { className: V("ff-data-list-footer", e), children: [g("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((d, f) => g(P, { uuid: d.uuid, type: d.type, name: d.name, widget: d.widget, widgetType: d.widgetType, widgetProps: d.widgetProps, widgetData: d.widgetData, widgetSetting: d.widgetSetting, widgetContainerProps: d.widgetContainerSetting, onAfterClick: (m) => m !== !1 && (o == null ? void 0 : o(d.isRefresh, null)) }, d.uuid || f)) }), a && g(Dn, { size: "small", total: l, pageSize: c, showSizeChanger: !1, showTotal: (d) => `第 ${p} 页 / 总共 ${d} 条`, onChange: i, onShowSizeChange: r })] }) : null; +}, Ca = [{ title: "parent 1", key: "0-0", children: [{ title: "parent 1-0", key: "0-0-0", disabled: !0, children: [{ title: "leaf", key: "0-0-0-0", disableCheckbox: !0 }, { title: "leaf", key: "0-0-0-1" }] }, { title: "parent 1-1", key: "0-0-1", children: [{ title: g("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], ka = ({ className: e, width: t = 280, isTreeSider: n }) => { const { classNames: a } = ae(Z); - return n ? g(Dn.DirectoryTree, { className: V("ff-data-list-sider", a.sider, e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: ba }) : null; -}, ka = ({ className: e, title: t, tabs: n }) => { - const { getBase62params: a, onTabChange: i, onReload: r, classNames: o } = ae(Z), { tab: s } = (a == null ? void 0 : a()) || {}, [l, p] = Jn((n == null ? void 0 : n[0].value) ?? (n == null ? void 0 : n[0].code), { value: s, onChange: i }); - return O("div", { className: V("ff-data-list-toolbar", o.toolbar, e), children: [g("div", { className: "ff-data-list-title", children: t }), g(qn, { className: "ff-data-list-tabs", itemRender: ({ label: c, code: d, value: f }) => g("span", { onClick: () => p(f ?? d), className: V("ff-data-list-tab", { active: (f ?? d) == l }), children: c }), items: n }), O("div", { className: "ff-data-list-actions", children: [g(P.Link, { icon: "icon-reload", widget: () => r() }), g(P.Link, { icon: "icon-setting" })] })] }); -}, gn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: i, listCode: r, total: o = 0, page: s = 0, onPageChange: l, pageSize: p = 30, onPageSizeChange: c, tab: d, onTabChange: f, keyword: m, onKeywordChange: u, condition: b, onConditionChange: k, sider: C, onSiderChange: x, layouts: v, classNames: F = {}, payload: R = {}, ...B }) => { - const [M, I] = E(), T = J((N, K) => { - const D = { tab: d, page: s, pageSize: p, keyword: m, sider: C, condition: b, total: o, payload: R }; + return n ? g(Un.DirectoryTree, { className: V("ff-data-list-sider", a.sider, e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: Ca }) : null; +}, Sa = ({ className: e, title: t, tabs: n }) => { + const { getBase62params: a, onTabChange: i, onReload: r, classNames: o } = ae(Z), { tab: s } = (a == null ? void 0 : a()) || {}, [l, p] = Gn((n == null ? void 0 : n[0].value) ?? (n == null ? void 0 : n[0].code), { value: s, onChange: i }); + return E("div", { className: V("ff-data-list-toolbar", o.toolbar, e), children: [g("div", { className: "ff-data-list-title", children: t }), g(_n, { className: "ff-data-list-tabs", itemRender: ({ label: c, code: d, value: f }) => g("span", { onClick: () => p(f ?? d), className: V("ff-data-list-tab", { active: (f ?? d) == l }), children: c }), items: n }), E("div", { className: "ff-data-list-actions", children: [g(P.Link, { icon: "icon-reload", widget: () => r() }), g(P.Link, { icon: "icon-setting" })] })] }); +}, pn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: i, listCode: r, total: o = 0, page: s = 0, onPageChange: l, pageSize: p = 30, onPageSizeChange: c, tab: d, onTabChange: f, keyword: m, onKeywordChange: u, condition: b, onConditionChange: k, sider: C, onSiderChange: x, layouts: v, classNames: R = {}, payload: F = {}, ...B }) => { + const [M, I] = O(), T = J((N, K) => { + const D = { tab: d, page: s, pageSize: p, keyword: m, sider: C, condition: b, total: o, payload: F }; return N && N != "init" ? h.get(D, N, K) : D; - }, [JSON.stringify(b), JSON.stringify(R), d, s, p, m, C, o]), z = U(() => { - let N = { sider: Ca, filter: un, footer: wa, toolbar: ka }; + }, [JSON.stringify(b), JSON.stringify(F), d, s, p, m, C, o]), z = _(() => { + let N = { sider: ka, filter: gn, footer: ba, toolbar: Sa }; v === !1 ? N = { sider: null, filter: null, footer: null, toolbar: null } : h.isPlainObject(v) && (N = Object.assign({}, N, v)); for (const K in N) if (N[K]) { - if (An(N[K])) { + if (Ln(N[K])) { const D = N[K]; N[K] = (ge) => S.cloneElement(D, ge); } @@ -403,18 +403,18 @@ const wa = ({ className: e, operations: t, isOperations: n, isPaginate: a }) => t ? ne.getWidgetComponent(t).then((N) => { if (!N) throw `${t} not found`; return N; - }).catch((N) => ({ default: () => `${N}` })).then((N) => I(S.createElement(N.default, { ...B, layouts: z, $setting: n }))) : I(g(e ? ma : fa, { ...B, layouts: z, $setting: n })); - }, [t, n]), g(Z.Provider, { value: { classNames: F, listCode: r, onClickCallback: a, onReload: i, getBase62params: T, onPageChange: l, onPageSizeChange: c, onTabChange: f, onSiderChange: x, onKeywordChange: u, onConditionChange: k, setPage: l, setPageSize: c, setTab: f, setSider: x, setKeyword: u, setCondition: k }, children: M && S.cloneElement(M, B) }); + }).catch((N) => ({ default: () => `${N}` })).then((N) => I(S.createElement(N.default, { ...B, layouts: z, $setting: n }))) : I(g(e ? ha : ya, { ...B, layouts: z, $setting: n })); + }, [t, n]), g(Z.Provider, { value: { classNames: R, listCode: r, onClickCallback: a, onReload: i, getBase62params: T, onPageChange: l, onPageSizeChange: c, onTabChange: f, onSiderChange: x, onKeywordChange: u, onConditionChange: k, setPage: l, setPageSize: c, setTab: f, setSider: x, setKeyword: u, setCondition: k }, children: M && S.cloneElement(M, B) }); }; -gn.propTypes = { classNames: w.exact({ sider: w.string, filter: w.string, footer: w.string, toolbar: w.string, container: w.string, content: w.string, item: w.string }), layouts: w.oneOfType([w.exact({ sider: w.oneOfType([w.elementType, w.element]), filter: w.oneOfType([w.elementType, w.element]), footer: w.oneOfType([w.elementType, w.element]), toolbar: w.oneOfType([w.elementType, w.element]) }), w.bool]) }; -var he, ue, Pe, it; +pn.propTypes = { classNames: w.exact({ sider: w.string, filter: w.string, footer: w.string, toolbar: w.string, container: w.string, content: w.string, item: w.string }), layouts: w.oneOfType([w.exact({ sider: w.oneOfType([w.elementType, w.element]), filter: w.oneOfType([w.elementType, w.element]), footer: w.oneOfType([w.elementType, w.element]), toolbar: w.oneOfType([w.elementType, w.element]) }), w.bool]) }; +var he, ue, Pe, rt; const se = class se { constructor() { j(this, ue, null); j(this, Pe, /* @__PURE__ */ new Map()); - j(this, it, () => { + j(this, rt, () => { if (y(this, ue)) return y(this, ue).port.postMessage({ command: "status", data: [] }); - _(this, ue, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), y(this, ue).port.onmessage = (t) => { + W(this, ue, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), y(this, ue).port.onmessage = (t) => { var n, a; (n = t.data) != null && n.uuid ? y(this, Pe).forEach((i, r) => { var o; @@ -424,28 +424,28 @@ const se = class se { }); }, y(this, ue).port.postMessage({ command: "status", data: [] }); }); - $(this, "subscribe", (t, n = []) => (n ? Array.isArray(n) && n.length == 0 ? n = "*" : Array.isArray(n) || (n = [n].flat()) : n = "*", y(this, Pe).set(t, n), y(this, Pe).size == 1 && y(this, it).call(this), () => this.unsubscribe(t))); + $(this, "subscribe", (t, n = []) => (n ? Array.isArray(n) && n.length == 0 ? n = "*" : Array.isArray(n) || (n = [n].flat()) : n = "*", y(this, Pe).set(t, n), y(this, Pe).size == 1 && y(this, rt).call(this), () => this.unsubscribe(t))); $(this, "unsubscribe", (t) => y(this, Pe).delete(t)); if (y(se, he)) return y(se, he); } }; -he = new WeakMap(), ue = new WeakMap(), Pe = new WeakMap(), it = new WeakMap(), j(se, he, null), $(se, "getInstance", () => (y(se, he) || _(se, he, new se()), y(se, he))); -let Ct = se; -const pn = Ct.getInstance(), Ft = S.forwardRef(({ listCode: e, base62params: t, className: n, theme: a, themeProps: i, layouts: r, classNames: o }, s) => { - const [{ resource: l, primaryKey: p, batchOperations: c = [], itemOperations: d = [], columns: f = [], themeConfig: m, theme: u, isConditionFormLayout: b = !1, isTreeSider: k, treeSiderConfig: C, isItemGridLayout: x, itemGridLayout: v, title: F, isPaginate: R, tabs: B }, M] = E({ isItemGridLayout: !1, itemGridLayout: {} }), I = pa(e, t), [{ dataSource: T, itemOperationsAccess: z, condition: N, tab: K, keyword: D, page: ge, total: He, pageSize: Je, sider: lt, onConditionChange: X, onTabChange: Sn, onKeywordChange: xn, onPageChange: vn, onPageSizeChange: Pn, onSiderChange: Tn, onReload: ct, payload: $n }, Vt] = ga(I, e, p, l), Nn = bt(d, z, T, p), Rn = bt(c); +he = new WeakMap(), ue = new WeakMap(), Pe = new WeakMap(), rt = new WeakMap(), j(se, he, null), $(se, "getInstance", () => (y(se, he) || W(se, he, new se()), y(se, he))); +let kt = se; +const mn = kt.getInstance(), Rt = S.forwardRef(({ listCode: e, base62params: t, className: n, theme: a, themeProps: i, layouts: r, classNames: o }, s) => { + const [{ resource: l, primaryKey: p, batchOperations: c = [], itemOperations: d = [], columns: f = [], themeConfig: m, theme: u, isConditionFormLayout: b = !1, isTreeSider: k, treeSiderConfig: C, isItemGridLayout: x, itemGridLayout: v, title: R, isPaginate: F, tabs: B }, M] = O({ isItemGridLayout: !1, itemGridLayout: {} }), I = ma(e, t), [{ dataSource: T, itemOperationsAccess: z, condition: N, tab: K, keyword: D, page: ge, total: Je, pageSize: Ge, sider: ct, onConditionChange: X, onTabChange: xn, onKeywordChange: vn, onPageChange: Pn, onPageSizeChange: Tn, onSiderChange: $n, onReload: dt, payload: Nn }, Vt] = pa(I, e, p, l), Fn = Ct(d, z, T, p), Rn = Ct(c); L(() => { let ee = null; - return e && A.get(`/api/_/${e}`).resp(({ data: Ge, res: On }) => { - Ge != null && Ge.isDynamicRefresh && (ee = pn.subscribe(() => ct(), On)), M(Ge); + return e && A.get(`/api/_/${e}`).resp(({ data: Ye, res: On }) => { + Ye != null && Ye.isDynamicRefresh && (ee = mn.subscribe(() => dt(), On)), M(Ye); }).catch(() => M({})), () => ee == null ? void 0 : ee(); - }, [e]), S.useImperativeHandle(s, () => ({ onReload: ct, onClickCallback: Vt })); - const Fn = { listCode: e, title: F, classNames: o, layouts: r, resource: l, primaryKey: p, theme: a || u, themeProps: i || m, isTreeSider: k, treeSiderConfig: C, isPaginate: R, tabs: B, isItemOperations: Nn, itemOperations: d == null ? void 0 : d.map((ee) => h.isEmpty(ee == null ? void 0 : ee.confirm) ? ee : { ...ee, confirm: Object.assign({}, ee.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Rn, batchOperations: c, isItemGridLayout: x, columns: f, itemGridLayout: v, isConditionFormLayout: b, itemOperationsAccess: z, dataSource: T, onConditionChange: X, onTabChange: Sn, onKeywordChange: xn, onPageChange: vn, onPageSizeChange: Pn, onSiderChange: Tn, condition: N, tab: K, keyword: D, page: ge, total: He, pageSize: Je, sider: lt, payload: $n }; - return g(gn, { ...Fn, className: V("ff-data-list-helper", n), onReload: ct, onClickCallback: Vt }); -}), mn = (e, t, n = !0) => n !== !0 && n-- <= 0 ? [] : h.isArray(e) && !h.isEmpty(e) ? e.reduce((a, i) => (Reflect.has(i, t) && Reflect.has(i, "children") && a.push(i[t]), Reflect.has(i, "children") && !h.isEmpty(i.children) ? a.concat(mn(i.children, t, n)) : a), []) : [], Sa = ({ className: e, primaryKey: t, columns: n = [], dataSource: a = [], operationRender: i, operationWidth: r = 180, components: o = {}, ...s }) => { - const { classNames: l } = ae(Z), p = W(null), c = W(null), [d, f] = E([]), [m, u] = E({ width: 0, height: 0 }); + }, [e]), S.useImperativeHandle(s, () => ({ onReload: dt, onClickCallback: Vt })); + const En = { listCode: e, title: R, classNames: o, layouts: r, resource: l, primaryKey: p, theme: a || u, themeProps: i || m, isTreeSider: k, treeSiderConfig: C, isPaginate: F, tabs: B, isItemOperations: Fn, itemOperations: d == null ? void 0 : d.map((ee) => h.isEmpty(ee == null ? void 0 : ee.confirm) ? ee : { ...ee, confirm: Object.assign({}, ee.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Rn, batchOperations: c, isItemGridLayout: x, columns: f, itemGridLayout: v, isConditionFormLayout: b, itemOperationsAccess: z, dataSource: T, onConditionChange: X, onTabChange: xn, onKeywordChange: vn, onPageChange: Pn, onPageSizeChange: Tn, onSiderChange: $n, condition: N, tab: K, keyword: D, page: ge, total: Je, pageSize: Ge, sider: ct, payload: Nn }; + return g(pn, { ...En, className: V("ff-data-list-helper", n), onReload: dt, onClickCallback: Vt }); +}), hn = (e, t, n = !0) => n !== !0 && n-- <= 0 ? [] : h.isArray(e) && !h.isEmpty(e) ? e.reduce((a, i) => (Reflect.has(i, t) && Reflect.has(i, "children") && a.push(i[t]), Reflect.has(i, "children") && !h.isEmpty(i.children) ? a.concat(hn(i.children, t, n)) : a), []) : [], xa = ({ className: e, primaryKey: t, columns: n = [], dataSource: a = [], operationRender: i, operationWidth: r = 180, components: o = {}, ...s }) => { + const { classNames: l } = ae(Z), p = q(null), c = q(null), [d, f] = O([]), [m, u] = O({ width: 0, height: 0 }); L(() => { - f(mn(a, t)); - }, [a, t]), Ln(() => { + f(hn(a, t)); + }, [a, t]), Vn(() => { const C = new ResizeObserver(() => { var x; u({ width: ((x = p.current) == null ? void 0 : x.nativeElement.querySelector(".ant-table-body").scrollWidth) || c.current.offsetWidth, height: c.current.offsetHeight }); @@ -454,15 +454,15 @@ const pn = Ct.getInstance(), Ft = S.forwardRef(({ listCode: e, base62params: t, c.current && C.unobserve(c.current); }; }, []); - const b = da(n), k = ua(o); - return g("div", { ref: c, className: V("ff-data-list-table", l.content, e), children: m.height ? g(Un, { bordered: !0, ...s, components: k, ref: p, rowKey: (C) => (C == null ? void 0 : C[t]) ?? Math.random(), columns: b == null ? void 0 : b.concat(i ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(r / m.width * 100).toFixed(2)}%`, render: (C, x, v) => i(x, v) }] : []), dataSource: a, size: "middle", scroll: { x: "max-content", y: m.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: f, expandedRowKeys: d } }) : null }); -}, xa = "RC_FORM_INTERNAL_HOOKS", va = (e) => { + const b = ua(n), k = ga(o); + return g("div", { ref: c, className: V("ff-data-list-table", l.content, e), children: m.height ? g(qn, { bordered: !0, ...s, components: k, ref: p, rowKey: (C) => (C == null ? void 0 : C[t]) ?? Math.random(), columns: b == null ? void 0 : b.concat(i ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(r / m.width * 100).toFixed(2)}%`, render: (C, x, v) => i(x, v) }] : []), dataSource: a, size: "middle", scroll: { x: "max-content", y: m.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: f, expandedRowKeys: d } }) : null }); +}, va = "RC_FORM_INTERNAL_HOOKS", Pa = (e) => { const [t, n] = S.useState({ items: [] }); return L(() => { e && A.get(`/api/_/${e}`).then(({ uuid: a, code: i, name: r, resource: o, primaryKey: s, marginX: l, marginY: p, cols: c, rowHeight: d, fields: f, theme: m, themeSetting: u }) => ({ uuid: a, code: i, name: r, resource: o, primaryKey: s, marginX: l, marginY: p, cols: c, rowHeight: d, theme: m, themeProps: u, items: f })).then(n); }, [e]), t; -}, Pa = (e, { initialValue: t, initialValueLanguage: n, convertJs: a, convertJsSetting: i, type: r = "string" }, o = null) => { - const s = W(!1), l = ae(Qt), [p, c] = E(), [d, f] = E(n != "javascript" && e ? l.getFieldValue(e) : void 0), { registerWatch: m } = l.getInternalHooks(xa) || {}; +}, Ta = (e, { initialValue: t, initialValueLanguage: n, convertJs: a, convertJsSetting: i, type: r = "string" }, o = null) => { + const s = q(!1), l = ae(Zt), [p, c] = O(), [d, f] = O(n != "javascript" && e ? l.getFieldValue(e) : void 0), { registerWatch: m } = l.getInternalHooks(va) || {}; return L(() => m == null ? void 0 : m((u, b, k) => { if (!s.current) return; const C = h.get(b, e); @@ -470,83 +470,83 @@ const pn = Ct.getInstance(), Ft = S.forwardRef(({ listCode: e, base62params: t, }), [d]), L(() => { n == "javascript" && t ? Se.exec(t, {}, { getFieldValueForBasicForm: (u) => o ? o.getFieldValue(u) : l.getFieldValue(u), getFieldValue: (u) => l.getFieldValue(u) }).then((u) => f(ce(u, r))).catch((u) => notification.error({ message: `布局数据错误: ${JSON.stringify(u)}` })).finally(() => s.current = !0) : (t && f(ce(t ?? l.getFieldValue(e), r)), s.current = !0); }, [t, n]), We(() => { - s.current && a && new et([a, i]).toValue(d, l.getFieldsValue(!0)).then(c).catch((u) => { + s.current && a && new tt([a, i]).toValue(d, l.getFieldsValue(!0)).then(c).catch((u) => { c(u), console.error("布局数据转换错误: ", u, a); }); }, [d, a, i]), [p ?? d, d]; -}, Fi = (e, t, n = null) => U(() => Rt(e, t, n), [e]), Ot = (e, t, n = {}, a = {}, i = {}) => { - const r = ae(Qt), o = st(), s = W(!0), l = W([]), [p, c] = E(t), [d, f] = E(), m = Q.useWatch((u) => JSON.stringify(h.pick(u, l.current)), r) || "{}"; - return _e(() => { +}, Ei = (e, t, n = null) => _(() => Ft(e, t, n), [e]), Et = (e, t, n = {}, a = {}, i = {}) => { + const r = ae(Zt), o = ot(), s = q(!0), l = q([]), [p, c] = O(t), [d, f] = O(), m = Q.useWatch((u) => JSON.stringify(h.pick(u, l.current)), r) || "{}"; + return Ke(() => { e && Se.exec(e, n, { ...a, getFieldValueForBasicForm: (u) => i ? i.getFieldValue(u) : null, getFieldValue: h.wrap(r.getFieldValue, (u, b) => (l.current.some((k) => h.isEqual(k, b)) || (l.current.push(b), o()), u == null ? void 0 : u(b))), isFieldTouched: r.isFieldTouched, isFieldsTouched: r.isFieldsTouched }).then((u) => { s.current && (c(u), f(null)); }).catch((u) => { s.current && (c(t), f(u)); }); }, [e, m, r, n, a]), L(() => () => s.current = !1, []), e ? [p, d] : [t, null]; -}, Ta = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: n, ...a }) => { - const i = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [r, o] = E(); +}, $a = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: n, ...a }) => { + const i = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [r, o] = O(); return L(() => { - i && ne.getWidgetComponent(i).then(({ defaultProps: s = {}, default: l }) => ({ default: $a(l, s, n) })).catch((s) => ({ default: () => `${s}` })).then((s) => o(S.createElement(s.default, a))); + i && ne.getWidgetComponent(i).then(({ defaultProps: s = {}, default: l }) => ({ default: Na(l, s, n) })).catch((s) => ({ default: () => `${s}` })).then((s) => o(S.createElement(s.default, a))); }, [i]), r; -}, $a = (e, t = {}, n = null) => (a) => { - const { code: i, label: r, extras: o, isVirtual: s, initialValue: l, initialValueLanguage: p, convertJs: c, convertJsSetting: d, value: f, ...m } = h.merge({}, t, a), [u, b] = Pa(s ? null : i, { initialValue: l, initialValueLanguage: p, convertJs: c, convertJsSetting: d, type: (m == null ? void 0 : m.type) || "string" }, n), k = U(() => { +}, Na = (e, t = {}, n = null) => (a) => { + const { code: i, label: r, extras: o, isVirtual: s, initialValue: l, initialValueLanguage: p, convertJs: c, convertJsSetting: d, value: f, ...m } = h.merge({}, t, a), [u, b] = Ta(s ? null : i, { initialValue: l, initialValueLanguage: p, convertJs: c, convertJsSetting: d, type: (m == null ? void 0 : m.type) || "string" }, n), k = _(() => { const v = Object.keys((t == null ? void 0 : t.extras) || {}); return h.over([h.partialRight(h.pick, v), h.partialRight(h.omit, v)]); }, [t == null ? void 0 : t.extras]), [C, x] = k(m); return g(e, { ...x, value: u, rawValue: b, $setting: Object.assign({}, o, C) }); -}, hn = ({ theme: e, basicForm: t, items: n = [{ key: "default", label: "默认" }], fields: a = [], itemRender: i, activeKeyFunc: r = "", chunks: o = [], widgetSetting: s = {}, children: l }) => { - const [p, c] = E(); +}, fn = ({ theme: e, basicForm: t, items: n = [{ key: "default", label: "默认" }], fields: a = [], itemRender: i, activeKeyFunc: r = "", chunks: o = [], widgetSetting: s = {}, children: l }) => { + const [p, c] = O(); L(() => { e ? ne.getWidgetComponent(e).then((u) => { if (!(u != null && u.default)) throw "not found"; return u; }).catch((u) => ({ default: () => `${e} ${u}` })).then((u) => c(S.createElement(u.default, {}))) : c(null); }, [e]); - const d = U(() => n == null ? void 0 : n.map((u) => ({ ...u, children: i(a == null ? void 0 : a.filter((b) => !(b != null && b.group) && u.key == "default" || b.group == u.key), u.key == "default" ? l : null) })).concat(o), [n, l, o]), [f, m] = Ot(r, d == null ? void 0 : d.map((u) => u.key), {}, {}, t); + const d = _(() => n == null ? void 0 : n.map((u) => ({ ...u, children: i(a == null ? void 0 : a.filter((b) => !(b != null && b.group) && u.key == "default" || b.group == u.key), u.key == "default" ? l : null) })).concat(o), [n, l, o]), [f, m] = Et(r, d == null ? void 0 : d.map((u) => u.key), {}, {}, t); return m && console.log(e, "activeKeyFunc", m), p && S.cloneElement(p, { activeKey: ce(f, "array"), items: d, $setting: s }); -}, fn = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 12, rowHeight: o = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: p = {}, formFields: c = [], fields: d = [], data: f, theme: m, themeProps: u = {}, children: b, ...k }) => { - const [C] = Q.useForm(t), x = U(() => [{ name: "__PROPS__", value: p }].concat(c), [p, c]); +}, yn = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 12, rowHeight: o = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: p = {}, formFields: c = [], fields: d = [], data: f, theme: m, themeProps: u = {}, children: b, ...k }) => { + const [C] = Q.useForm(t), x = _(() => [{ name: "__PROPS__", value: p }].concat(c), [p, c]); We(() => (C.setFieldsValue(f), () => C.resetFields()), [f]); - const v = (F, R) => { - const B = Rt(F, Ta, n); - return O("div", { className: V("ff-grid-layout", i), style: { ...a, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [B, R && S.cloneElement(R, { cols: r, rowHeight: o, itemMargin: l, containerPadding: s, fields: F, basicForm: n })] }); + const v = (R, F) => { + const B = Ft(R, $a, n); + return E("div", { className: V("ff-grid-layout", i), style: { ...a, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [B, F && S.cloneElement(F, { cols: r, rowHeight: o, itemMargin: l, containerPadding: s, fields: R, basicForm: n })] }); }; - return g(Q, { ...k, fields: x, form: C, component: !1, children: m ? g(hn, { ...u, theme: m, itemRender: v, fields: d, children: b }) : v(d, b) }); + return g(Q, { ...k, fields: x, form: C, component: !1, children: m ? g(fn, { ...u, theme: m, itemRender: v, fields: d, children: b }) : v(d, b) }); }, Oi = /* @__PURE__ */ ((e) => function({ code: t, data: n, ...a }) { - const { uuid: i, resource: r, items: o, hides: s, rowHeight: l, marginX: p, marginY: c, cols: d, theme: f, themeProps: m } = va(t), u = U(() => [{ name: "__RESOURCE__", value: r }, { name: "__LAYOUT_KEY__", value: t }, { name: "__LAYOUT_UUID__", value: i }], [t, i, r]); + const { uuid: i, resource: r, items: o, hides: s, rowHeight: l, marginX: p, marginY: c, cols: d, theme: f, themeProps: m } = Pa(t), u = _(() => [{ name: "__RESOURCE__", value: r }, { name: "__LAYOUT_KEY__", value: t }, { name: "__LAYOUT_UUID__", value: i }], [t, i, r]); return r && g(e, { name: t, theme: f, themeProps: m, ...a, fields: o, formFields: u, rowHeight: l, cols: d, itemMargin: [p, c], data: r ? { [r]: n } : n }); -})(fn), Na = ({ column: e = 0, colWidth: t = 0, cols: n, rowHeight: a, itemMargin: i, fields: r, primaryKey: o, dataSource: s, itemClassName: l, beforeRender: p = null, afterRender: c = null, itemRender: d = (b, k, C) => b, empty: f = g(Wn, { description: null }), className: m, style: u = {} }) => { - const { classNames: b } = ae(Z), k = U(() => g(fn, { cols: n, rowHeight: a, itemMargin: i, fields: r, className: l }), [r, n, a, i]), C = h.isEmpty(s); - return O("div", { className: V("ff-data-list-content", b.content, m), style: Object.assign({}, u, e && { "--col-num": e }, t && { "--col-width": t }), children: [p == null ? void 0 : p(s), C ? f : s.map((x, v) => { - const F = d(S.cloneElement(k, { data: x }), x, v); - return S.cloneElement(F, { key: `${(x == null ? void 0 : x[o]) ?? v}-${sa(x)}` }); +})(yn), Fa = ({ column: e = 0, colWidth: t = 0, cols: n, rowHeight: a, itemMargin: i, fields: r, primaryKey: o, dataSource: s, itemClassName: l, beforeRender: p = null, afterRender: c = null, itemRender: d = (b, k, C) => b, empty: f = g(Wn, { description: null }), className: m, style: u = {} }) => { + const { classNames: b } = ae(Z), k = _(() => g(yn, { cols: n, rowHeight: a, itemMargin: i, fields: r, className: l }), [r, n, a, i]), C = h.isEmpty(s); + return E("div", { className: V("ff-data-list-content", b.content, m), style: Object.assign({}, u, e && { "--col-num": e }, t && { "--col-width": t }), children: [p == null ? void 0 : p(s), C ? f : s.map((x, v) => { + const R = d(S.cloneElement(k, { data: x }), x, v); + return S.cloneElement(R, { key: `${(x == null ? void 0 : x[o]) ?? v}-${oa(x)}` }); }), c == null ? void 0 : c(s)] }); }, Ra = ({ component: e, $props: t }) => { - const { base62params: n } = Ue(t, {}); - return g(H, { children: g(Ft, { listCode: e, base62params: A.decode(n) }) }); -}, Ei = () => g(yn, {}), yn = () => "Empty", Fa = ({ component: e, $setting: t, $props: n }) => { - const [a, i] = E(); + const { base62params: n } = qe(t, {}); + return g(H, { children: g(Rt, { listCode: e, base62params: A.decode(n) }) }); +}, ji = () => g(wn, {}), wn = () => "Empty", Ea = ({ component: e, $setting: t, $props: n }) => { + const [a, i] = O(); L(() => { - if (!e) return i(g(yn, { description: null })); + if (!e) return i(g(wn, { description: null })); ne.getWidgetComponent(e).catch((o) => ({ default: () => `${o}` })).then((o) => S.createElement(o.default, { $setting: t })).then(i); }, [e]); - const r = Ue(n, {}); + const r = qe(n, {}); return a ? S.cloneElement(a, r) : null; -}, ji = () => "NotFoundPage"; -var fe, te, ye, we, Be, De; +}, Ai = () => "NotFoundPage"; +var fe, te, ye, we, De, Ue; const oe = class oe { constructor() { j(this, te, /* @__PURE__ */ new Map()); j(this, ye, {}); j(this, we, null); $(this, "init", (t, n) => { - _(this, te, t), _(this, ye, n); + W(this, te, t), W(this, ye, n); }); $(this, "get", (t) => (y(this, te).has(t) || (t = Array.from(y(this, te).keys()).find((n) => y(this, te).get(n).uri === t)), y(this, te).get(t) || {})); $(this, "redirect", (t, n, a = {}) => { const { uri: i, type: r, widgetProps: o } = this.get(t) || {}, { router: s, query: l, ...p } = n || {}, c = Object.assign({}, p, s), d = Object.assign({}, p, l); r == "list" && (c.base62params = A.encode(c != null && c.base62params ? c.base62params : c)); - let f = Gn(i || t, c); + let f = Yn(i || t, c); const m = new URLSearchParams(); for (const u in o || {}) (o == null ? void 0 : o.type) == "query" && Object.has(d, u) && m.append(u, JSON.stringify(d[u])); return m.size > 0 && (f = `${f}?${m.toString()}`), a != null && a.isOpenWindow ? window.open(f) : y(this, we).navigate(f, { replace: !!(a != null && a.isReplaceRouteHistory) }); @@ -557,22 +557,22 @@ const oe = class oe { }); $(this, "findMenuPathByUuid", (t) => { let n = []; - for (const a in y(this, ye)) if (n = y(this, Be).call(this, y(this, ye)[a], t, [a]), n.length > 1) return n; + for (const a in y(this, ye)) if (n = y(this, De).call(this, y(this, ye)[a], t, [a]), n.length > 1) return n; return n; }); - $(this, "getMenusByRouteUuid", (t) => y(this, De).call(this, t, Object.values(y(this, ye)).flat())); - j(this, Be, (t, n, a = []) => { + $(this, "getMenusByRouteUuid", (t) => y(this, Ue).call(this, t, Object.values(y(this, ye)).flat())); + j(this, De, (t, n, a = []) => { if (h.isEmpty(t)) return a; for (const { uuid: i, children: r } of t) { if (i == n) return a.concat(i); - if (!h.isEmpty(r)) return a.concat(i, y(this, Be).call(this, r, n)); + if (!h.isEmpty(r)) return a.concat(i, y(this, De).call(this, r, n)); } return a; }); - j(this, De, (t, n) => { + j(this, Ue, (t, n) => { var i; let a = []; - for (const r of n) r.widgetType == "redirect" && (r.uuid == t || r.widget == t ? a.push(r) : (i = r.children) != null && i.length && (a = a.concat(y(this, De).call(this, t, r.children)))); + for (const r of n) r.widgetType == "redirect" && (r.uuid == t || r.widget == t ? a.push(r) : (i = r.children) != null && i.length && (a = a.concat(y(this, Ue).call(this, t, r.children)))); return a; }); $(this, "getCurrentMenu", () => { @@ -591,7 +591,7 @@ const oe = class oe { $(this, "getPageParams", (t) => { var i, r, o; let n = "", a = {}; - if (en()) a = Yn(), n = (i = Xn()) == null ? void 0 : i.search; + if (tn()) a = Xn(), n = (i = Qn()) == null ? void 0 : i.search; else { const { location: s = {}, matches: l = [] } = ((r = y(this, we)) == null ? void 0 : r.state) || {}; a = ((o = l[l.length - 1]) == null ? void 0 : o.params) || {}, n = s.search; @@ -602,49 +602,49 @@ const oe = class oe { }); $(this, "createBrowserRouter", (t = {}) => { if (y(this, te).size == 0) return null; - const n = Ae.get("Common.WEBSITE_DEFAULT_THEME", "@pkg/ff/frameworks/DefaultTheme"), a = Ae.get(ne.checkUserToken() ? "Common.WEBSITE_LOGIN_REDIRECT" : "Common.WEBSITE_DEFAULT", "/index"), i = { [n]: 0 }, r = (s, l) => () => Promise.all([ne.getWidgetComponent(s), Ue(l)]).then(([p, c]) => [p.default || function() { + const n = Le.get("Common.WEBSITE_DEFAULT_THEME", "@pkg/ff/frameworks/DefaultTheme"), a = Le.get(ne.checkUserToken() ? "Common.WEBSITE_LOGIN_REDIRECT" : "Common.WEBSITE_DEFAULT", "/index"), i = { [n]: 0 }, r = (s, l) => () => Promise.all([ne.getWidgetComponent(s), qe(l)]).then(([p, c]) => [p.default || function() { return `${s}`; - }, c]).then(([p, c]) => ({ Component: () => S.createElement(nn, {}, S.createElement(p, { $setting: c })) })), o = Array.from(y(this, te).values()).reduce((s, { uuid: l, uri: p, name: c, type: d, component: f, widgetSetting: m, widgetProps: u, isLogin: b, isLayout: k, extra: C }) => { + }, c]).then(([p, c]) => ({ Component: () => S.createElement(an, {}, S.createElement(p, { $setting: c })) })), o = Array.from(y(this, te).values()).reduce((s, { uuid: l, uri: p, name: c, type: d, component: f, widgetSetting: m, widgetProps: u, isLogin: b, isLayout: k, extra: C }) => { let x = {}, v = 0; switch (d) { case "list": x.element = S.createElement(Ra, { component: f, $props: u }); break; case "fsdpf-component": - x.element = S.createElement(Fa, { key: f, component: f, $setting: m, $props: u }); + x.element = S.createElement(Ea, { key: f, component: f, $setting: m, $props: u }); } - const F = (C == null ? void 0 : C.theme) ?? (C == null ? void 0 : C.layout); - if (F) { - const R = (C == null ? void 0 : C.themeProps) ?? (C == null ? void 0 : C.layoutProps); - if (!i[F]) return i[F] = s.length, [...s, { path: "/", lazy: r(F, R), children: [{ path: p, ...x }] }]; - v = i[F]; + const R = (C == null ? void 0 : C.theme) ?? (C == null ? void 0 : C.layout); + if (R) { + const F = (C == null ? void 0 : C.themeProps) ?? (C == null ? void 0 : C.layoutProps); + if (!i[R]) return i[R] = s.length, [...s, { path: "/", lazy: r(R, F), children: [{ path: p, ...x }] }]; + v = i[R]; } return k && v > -1 ? (s[v].children.push({ path: p, ...x }), s) : [...s, { path: p, ...x }]; }, [{ path: "/", lazy: r(n, {}), children: [] }]); - return o.push({ index: !0, element: S.createElement(Oa, { to: a, replace: !0 }) }), _(this, we, Qn(o, t)); + return o.push({ index: !0, element: S.createElement(Oa, { to: a, replace: !0 }) }), W(this, we, Zn(o, t)); }); if (y(oe, fe)) return y(oe, fe); } }; -fe = new WeakMap(), te = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), Be = new WeakMap(), De = new WeakMap(), j(oe, fe, null), $(oe, "getInstance", () => (y(oe, fe) || _(oe, fe, new oe()), y(oe, fe))); -let kt = oe; -const Oa = ({ to: e, replace: t }) => en() ? S.createElement(Zn, { to: e, replace: t }) : (window.document.location = e, "redirect"), ke = kt.getInstance(), Te = new Worker(new URL("/ff-worker/index.js", self.location)), _t = { getConfigure: (e) => Ae.get(e), route: { redirect: (...e) => ke.redirect(...e), getPageParams: (...e) => ke.getPageParams(...e), getCurrentRoute: () => ke.getCurrentRoute() }, popup: { notification: (...e) => Y.notification(...e), success: (...e) => Y.success(...e), error: (...e) => Y.error(...e), form: (...e) => Y.form(...e), modal: (...e) => Y.modal(...e), confirm: (...e) => Y.confirm(...e) } }; -var rt, Fe, be; -const q = class q { +fe = new WeakMap(), te = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), De = new WeakMap(), Ue = new WeakMap(), j(oe, fe, null), $(oe, "getInstance", () => (y(oe, fe) || W(oe, fe, new oe()), y(oe, fe))); +let St = oe; +const Oa = ({ to: e, replace: t }) => tn() ? S.createElement(ea, { to: e, replace: t }) : (window.document.location = e, "redirect"), ke = St.getInstance(), Te = new Worker(new URL("/ff-worker/index.js", self.location)), Wt = { getConfigure: (e) => Le.get(e), route: { redirect: (...e) => ke.redirect(...e), getPageParams: (...e) => ke.getPageParams(...e), getCurrentRoute: () => ke.getCurrentRoute() }, popup: { notification: (...e) => Y.notification(...e), success: (...e) => Y.success(...e), error: (...e) => Y.error(...e), form: (...e) => Y.form(...e), modal: (...e) => Y.modal(...e), confirm: (...e) => Y.confirm(...e) } }; +var st, Re, be; +const U = class U { constructor() { $(this, "exec", (t, n = {}, a = {}, i = "") => new Promise((r, o) => { if (!/^(?!\s*(\/\/|\/\*|\*)).*?\S+/m.test(t)) return r(); - const s = zt(q, rt)._++; - y(q, Fe).set(s, a), q.mQueue.set(s, [r, o]), Te.postMessage({ id: s, session: i, category: "eval", method: t, args: n }); + const s = zt(U, st)._++; + y(U, Re).set(s, a), U.mQueue.set(s, [r, o]), Te.postMessage({ id: s, session: i, category: "eval", method: t, args: n }); })); $(this, "clear", (t) => Te.postMessage({ session: t, category: "clear" })); - if (y(q, be)) return y(q, be); - Promise.resolve().then(() => ai).then((t) => { - _t.http = t.http; + if (y(U, be)) return y(U, be); + Promise.resolve().then(() => ii).then((t) => { + Wt.http = t.http; }), Te.addEventListener("message", ({ data: { id: t, task_id: n, method: a, args: i, category: r, data: o, error: s, session: l } }) => { - if (r === "eval" && q.mQueue.has(t)) s !== null ? q.mQueue.get(t)[1](s) : q.mQueue.get(t)[0](o), y(q, Fe).delete(t), q.mQueue.delete(t); + if (r === "eval" && U.mQueue.has(t)) s !== null ? U.mQueue.get(t)[1](s) : U.mQueue.get(t)[0](o), y(U, Re).delete(t), U.mQueue.delete(t); else if (r === "util") try { - const p = h.get(_t, a.split("/")) || h.get(y(q, Fe).get(n), a.split("/")); + const p = h.get(Wt, a.split("/")) || h.get(y(U, Re).get(n), a.split("/")); if (!h.isFunction(p)) throw `${a} not found`; Promise.resolve(Reflect.apply(p, void 0, i)).then((c) => { Te.postMessage({ id: t, task_id: n, category: r, method: a, args: i, session: l, data: c, error: null }); @@ -657,18 +657,18 @@ const q = class q { }, !1); } }; -rt = new WeakMap(), Fe = new WeakMap(), be = new WeakMap(), $(q, "mQueue", /* @__PURE__ */ new Map()), j(q, rt, 0), j(q, Fe, /* @__PURE__ */ new Map()), j(q, be, null), $(q, "getInstance", () => (y(q, be) || _(q, be, new q()), y(q, be))); -let St = q; -const Se = St.getInstance(), st = () => { - const e = W(!0), [, t] = S.useReducer((n) => n + 1, 0); +st = new WeakMap(), Re = new WeakMap(), be = new WeakMap(), $(U, "mQueue", /* @__PURE__ */ new Map()), j(U, st, 0), j(U, Re, /* @__PURE__ */ new Map()), j(U, be, null), $(U, "getInstance", () => (y(U, be) || W(U, be, new U()), y(U, be))); +let xt = U; +const Se = xt.getInstance(), ot = () => { + const e = q(!0), [, t] = S.useReducer((n) => n + 1, 0); return L(() => () => e.current = !1, []), () => e.current && t(); -}, Ai = (e) => { - const t = W(); +}, Li = (e) => { + const t = q(); return L(() => { t.current = e; }, [e]), t.current; -}, Li = (e) => { - const [t, n] = E(e), a = W(null), i = J((r, o) => { +}, Vi = (e) => { + const [t, n] = O(e), a = q(null), i = J((r, o) => { a.current = o, n(r); }, []); return L(() => { @@ -678,29 +678,29 @@ const Se = St.getInstance(), st = () => { }, t, n = h.isEqual) => { const a = S.useRef(); n(t, a.current) || (a.current = h.cloneDeep(t)), S.useEffect(e, [a.current]); -}, _e = We, wn = (e, t = "string") => { +}, Ke = We, bn = (e, t = "string") => { var n; if (!Array.isArray(e)) return e; - for (let a = 0; a < e.length; a++) e[a].value = ce((n = e[a]) == null ? void 0 : n.value, t), e[a] && Reflect.has(e[a], "children") && (e[a].children = wn(e[a].children, t)); + for (let a = 0; a < e.length; a++) e[a].value = ce((n = e[a]) == null ? void 0 : n.value, t), e[a] && Reflect.has(e[a], "children") && (e[a].children = bn(e[a].children, t)); return e; -}, Vi = (e, t = "json", n = "string", a, i = null) => { - const [r] = Q.useForm(a), [o, s] = E([{ label: "无", value: "", disabled: !0 }]), l = W([]), p = Q.useWatch((c) => l.current.length === 0 ? null : h.pick(c, l.current), r) || null; +}, Ii = (e, t = "json", n = "string", a, i = null) => { + const [r] = Q.useForm(a), [o, s] = O([{ label: "无", value: "", disabled: !0 }]), l = q([]), p = Q.useWatch((c) => l.current.length === 0 ? null : h.pick(c, l.current), r) || null; return L(() => { Array.isArray(e) ? s(e) : t === "javascript" && e ? Se.exec(e, {}, { getFieldValue: (c) => (l.current.includes(c) || l.current.push(c), r.getFieldValue(c)), getFieldValueForBasicForm: (c) => (l.current.includes(c) || l.current.push(c), i ? i.getFieldValue(c) : r.getFieldValue(c)) }).then((c) => { s(ce(c, "array")); }).catch((c) => console.error("useOptions", c)) : e && s(ce(e, "array")); - }, [e, t, p]), wn(o, n); -}, Ii = (e) => { - const [t, n] = E(), a = { type: "GET" }; + }, [e, t, p]), bn(o, n); +}, Mi = (e) => { + const [t, n] = O(), a = { type: "GET" }; if (typeof e == "string" ? a.url = e : h.isPlainObject(e) && Object.assign(a, e), !(a != null && a.url)) throw "url is required"; const i = (r) => A.request(a, !1).resp((o) => (console.log("useSubscribeRequest", r), n(o), o)); return We(() => { let r = null; return i().then((o) => { - r = pn.subscribe(h.throttle(i, 180, { leading: !1, trailing: !0 }), o.res); + r = mn.subscribe(h.throttle(i, 180, { leading: !1, trailing: !0 }), o.res); }), () => r == null ? void 0 : r(); }, a), t; -}, Ea = (e) => { +}, ja = (e) => { const [t, n] = S.useState({ items: [], hides: [] }); return S.useEffect(() => { e && A.get(`/api/_/${e}`).then(({ pk: a, uuid: i, code: r, resource: o, align: s, cols: l, rowHeight: p, marginX: c, marginY: d, listenChangeFields: f, listenChangeFieldsFunc: m, fields: u, theme: b, themeSetting: k }) => ({ pk: a, uuid: i, code: r, resource: o, align: s, cols: l, rowHeight: p, marginX: c, marginY: d, theme: b, themeProps: k, listenChangeFields: f, listenChangeFieldsFunc: m, ...u.reduce((C, x) => { @@ -708,8 +708,8 @@ const Se = St.getInstance(), st = () => { return (v = x == null ? void 0 : x.field) != null && v.hidden ? C.hides.push(x == null ? void 0 : x.field) : C.items.push(x), C; }, { items: [], hides: [] }) })).then(n); }, [e]), t; -}, ja = ({ max: e = 0, min: t = 0, type: n = "", message: a, pattern: i, required: r = !1, validator: o } = {}, s, l) => { - const [p, c] = E([]); +}, Aa = ({ max: e = 0, min: t = 0, type: n = "", message: a, pattern: i, required: r = !1, validator: o } = {}, s, l) => { + const [p, c] = O([]); return L(() => { const d = []; if (r) { @@ -742,40 +742,40 @@ const Se = St.getInstance(), st = () => { } c(d); }, [e, t, n, a, i, r, o]), p; -}, Aa = (e, t, n) => { - const [a, i] = E(null); +}, La = (e, t, n) => { + const [a, i] = O(null); return L(() => { const { initDataUri: r = `/api/${e}`, initDataMethod: o = "GET" } = n || {}; t && A.request({ method: o, url: h.trimEnd(`${r}/${t}`, "/") }).then((s) => { i(s); }); }, [e, t, n]), a; -}, La = (e, t, n) => J((a, i = { serialize: (r) => r, onSuccess: () => { +}, Va = (e, t, n) => J((a, i = { serialize: (r) => r, onSuccess: () => { }, onFail: (r) => (r == null ? void 0 : r.errorFields) && Y.error("请先完善表单信息", { duration: 2e3 }) }) => { const r = a.getFieldValue("__RESOURCE__"), { submitDataUri: o = `/api/${e}`, submitDataMethod: s = "POST" } = n || {}; return a.validateFields().then((l) => r ? h.pick(l, [r]) : l).then(i.serialize).then((l) => A.request({ method: s, url: h.trimEnd(`${o}/${t || ""}`, "/"), data: l }).msg(i.onSuccess)).catch(i.onFail); -}, [e, t, n]), Va = (e, t, n, a) => { - const i = Aa(t, n, a); +}, [e, t, n]), Ia = (e, t, n, a) => { + const i = La(t, n, a); L(() => { i ? e.setFieldsValue(i) : e.resetFields(); }, [e, i]); - const r = La(t, n, a); + const r = Va(t, n, a); return h.partial(r, e); -}, Ia = (e, t, n = [], a = {}) => { - const i = W({}), r = W(), o = h.debounce(st(), 180), s = ["disabled", "required"], l = (f, m) => { +}, Ma = (e, t, n = [], a = {}) => { + const i = q({}), r = q(), o = h.debounce(ot(), 180), s = ["disabled", "required"], l = (f, m) => { s.includes(f) && (i.current[f] = m), o(); - }, p = U(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => i.current.disabled, getRequired: () => i.current.required }), [t]), [c, d] = Ot(t, -1, {}, p, a); + }, p = _(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => i.current.disabled, getRequired: () => i.current.required }), [t]), [c, d] = Et(t, -1, {}, p, a); if (!d && r.current != c && (c >= 0 || !h.isEmpty(n == null ? void 0 : n[c]))) { r.current = c; const { widget: f, widgetPrefix: m, props: u } = n == null ? void 0 : n[c]; - e = rn(f, m), i.current = h.merge(u, h.pick(i.current, s)); + e = sn(f, m), i.current = h.merge(u, h.pick(i.current, s)); } return [e, i.current]; -}, Kt = (e) => e === void 0 || e === !1 ? "" : (Array.isArray(e) ? e : [e]).join("_"), Mi = ({ value: e, onChange: t }, n = null) => { - const a = W(), [i] = Q.useForm(n), r = W({}); - return _e(() => { +}, Kt = (e) => e === void 0 || e === !1 ? "" : (Array.isArray(e) ? e : [e]).join("_"), zi = ({ value: e, onChange: t }, n = null) => { + const a = q(), [i] = Q.useForm(n), r = q({}); + return Ke(() => { h.isEqual(a.current, e) || i.setFieldsValue(e); - }, [e]), L(() => () => i.resetFields(), []), [U(() => i.__INTERNAL__ ? i : { ...i, __INTERNAL__: { itemRef: (o) => (s) => { + }, [e]), L(() => () => i.resetFields(), []), [_(() => i.__INTERNAL__ ? i : { ...i, __INTERNAL__: { itemRef: (o) => (s) => { const l = Kt(o); s ? r.current[l] = s : delete r.current[l]; } }, scrollToField: (o, s = {}) => { @@ -788,57 +788,57 @@ const Se = St.getInstance(), st = () => { } }, [i]), (o, s) => { a.current = s, t == null || t(s); }]; -}, Et = ({ widget: e = "Input", widgetPrefix: t = "@pkg/ff/grid-layout-forms", widgetDecorator: n, subWidgets: a = [], basicForm: i, ...r }) => { - const o = rn(e, t), [s, l] = Ia(o, n, a, i), [p, c] = E(); +}, Ot = ({ widget: e = "Input", widgetPrefix: t = "@pkg/ff/grid-layout-forms", widgetDecorator: n, subWidgets: a = [], basicForm: i, ...r }) => { + const o = sn(e, t), [s, l] = Ma(o, n, a, i), [p, c] = O(); return L(() => { - s && ne.getWidgetComponent(s).then(({ defaultProps: d = {}, default: f }) => ({ default: Ma(f, d, i) })).catch((d) => ({ default: () => `${d}` })).then((d) => c(S.createElement(d.default, r))); + s && ne.getWidgetComponent(s).then(({ defaultProps: d = {}, default: f }) => ({ default: za(f, d, i) })).catch((d) => ({ default: () => `${d}` })).then((d) => c(S.createElement(d.default, r))); }, [s]), p && S.cloneElement(p, { ...r, ...l }); -}, Ma = (e, t = {}, n = null) => (a) => { - const { type: i, code: r, label: o, noStyle: s, placeholder: l, required: p = !1, extras: c, validators: d, help: f, isVirtual: m, $isReserved: u, initialValue: b, initialValueLanguage: k, ...C } = h.omit(h.merge({}, t, a), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), x = ja(Object.assign({}, d, p ? { required: !0 } : {}), r, i), v = U(() => { +}, za = (e, t = {}, n = null) => (a) => { + const { type: i, code: r, label: o, noStyle: s, placeholder: l, required: p = !1, extras: c, validators: d, help: f, isVirtual: m, $isReserved: u, initialValue: b, initialValueLanguage: k, ...C } = h.omit(h.merge({}, t, a), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), x = Aa(Object.assign({}, d, p ? { required: !0 } : {}), r, i), v = _(() => { const I = Object.keys((t == null ? void 0 : t.extras) || {}); return h.over([h.partialRight(h.pick, I), h.partialRight(h.omit, I)]); - }, [t == null ? void 0 : t.extras]), [F, R] = v(C), B = { label: o, noStyle: s, colon: !1, layout: "vertical" }, M = J((I) => I == null ? void 0 : ce(I, i), [i]); + }, [t == null ? void 0 : t.extras]), [R, F] = v(C), B = { label: o, noStyle: s, colon: !1, layout: "vertical" }, M = J((I) => I == null ? void 0 : ce(I, i), [i]); return g($t, { name: r, rules: x, initialValue: M(b), normalize: M, children: (I, T, z) => { var N; - return g(e, { type: i, rcform: z, basicForm: n, itemProps: { validateStatus: T.errors.length > 0 ? "error" : "success", tooltip: f || null, help: T.errors.length > 0 ? T.errors.join("、") : null, required: ((N = x == null ? void 0 : x[0]) == null ? void 0 : N.required) || !1, ...B }, fieldProps: { placeholder: l, ...R, ...I }, $setting: Object.assign({}, c, F) }); + return g(e, { type: i, rcform: z, basicForm: n, itemProps: { validateStatus: T.errors.length > 0 ? "error" : "success", tooltip: f || null, help: T.errors.length > 0 ? T.errors.join("、") : null, required: ((N = x == null ? void 0 : x[0]) == null ? void 0 : N.required) || !1, ...B }, fieldProps: { placeholder: l, ...F, ...I }, $setting: Object.assign({}, c, R) }); } }); -}, jt = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: p = [], hides: c = [], primaryKey: d = 0, formProps: f = {}, formFields: m = [], listenChangeFields: u, listenChangeFieldsFunc: b, onValuesChange: k, theme: C, themeProps: x = {}, children: v, ...F }) => { - const [R] = Q.useForm(t), B = J((T, z) => { - k(T, z), b && Array.isArray(u) && Se.exec(b, { changedValues: T, allValues: z }, { getFieldValue: R.getFieldValue, setFieldValue: R.setFieldValue, setFieldsValue: R.setFieldsValue, isFieldTouched: R.isFieldTouched, isFieldsTouched: R.isFieldsTouched }).catch((N) => console.error("onFormValuesChange", e, N)); - }, [e, R, k, u, b]), M = U(() => [{ name: "__PROPS__", value: f }, { name: "__PRIMARY_KEY__", value: d }].concat(m), [d, f, m]), I = (T, z) => { - const N = Rt(T, Et, n); - return O("div", { className: V("ff-grid-layout-form", i), style: { ...a, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [N, z && S.cloneElement(z, { cols: r, rowHeight: o, itemMargin: s, containerPadding: l, fields: T, basicForm: n })] }); +}, jt = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: p = [], hides: c = [], primaryKey: d = 0, formProps: f = {}, formFields: m = [], listenChangeFields: u, listenChangeFieldsFunc: b, onValuesChange: k, theme: C, themeProps: x = {}, children: v, ...R }) => { + const [F] = Q.useForm(t), B = J((T, z) => { + k(T, z), b && Array.isArray(u) && Se.exec(b, { changedValues: T, allValues: z }, { getFieldValue: F.getFieldValue, setFieldValue: F.setFieldValue, setFieldsValue: F.setFieldsValue, isFieldTouched: F.isFieldTouched, isFieldsTouched: F.isFieldsTouched }).catch((N) => console.error("onFormValuesChange", e, N)); + }, [e, F, k, u, b]), M = _(() => [{ name: "__PROPS__", value: f }, { name: "__PRIMARY_KEY__", value: d }].concat(m), [d, f, m]), I = (T, z) => { + const N = Ft(T, Ot, n); + return E("div", { className: V("ff-grid-layout-form", i), style: { ...a, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [N, z && S.cloneElement(z, { cols: r, rowHeight: o, itemMargin: s, containerPadding: l, fields: T, basicForm: n })] }); }; - return O(Q, { ...F, form: R, fields: M, onValuesChange: B, children: [C ? g(hn, { ...x, theme: C, itemRender: I, fields: p, children: v }) : I(p, v), c == null ? void 0 : c.map((T) => { + return E(Q, { ...R, form: F, fields: M, onValuesChange: B, children: [C ? g(fn, { ...x, theme: C, itemRender: I, fields: p, children: v }) : I(p, v), c == null ? void 0 : c.map((T) => { var z; - return g($t, { name: T.code, children: g(za, { form: R, basicForm: n, name: T.code, type: T.type, initialValue: T.initialValue, initialValueLanguage: (z = T.extras) == null ? void 0 : z.initialValueLanguage }) }, JSON.stringify(T.code)); + return g($t, { name: T.code, children: g(Ba, { form: F, basicForm: n, name: T.code, type: T.type, initialValue: T.initialValue, initialValueLanguage: (z = T.extras) == null ? void 0 : z.initialValueLanguage }) }, JSON.stringify(T.code)); })] }); -}, za = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: a, basicForm: i }) => { - const [r, o] = Ot(n == "javascript" && t, n == "javascript" ? void 0 : t, {}, {}, i); +}, Ba = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: a, basicForm: i }) => { + const [r, o] = Et(n == "javascript" && t, n == "javascript" ? void 0 : t, {}, {}, i); return L(() => { n == "javascript" ? a(ce(r, e)) : t && a(ce(t, e)); }, [e, t, r]), null; }; jt.propTypes = { fields: w.array, hides: w.array }; -const Ba = /* @__PURE__ */ ((e) => ({ code: t, isPreview: n = !1, ...a }) => { - const { align: i, autoComplete: r, resource: o, items: s, hides: l, rowHeight: p, marginX: c, marginY: d, cols: f, listenChangeFields: m, listenChangeFieldsFunc: u, pk: b, uuid: k, theme: C, themeProps: x } = Ea(t), v = U(() => [{ name: "__PK__", value: b }, { name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: t }, { name: "__LAYOUT_UUID__", value: k }], [b, t, k, o]); +const Da = /* @__PURE__ */ ((e) => ({ code: t, isPreview: n = !1, ...a }) => { + const { align: i, autoComplete: r, resource: o, items: s, hides: l, rowHeight: p, marginX: c, marginY: d, cols: f, listenChangeFields: m, listenChangeFieldsFunc: u, pk: b, uuid: k, theme: C, themeProps: x } = ja(t), v = _(() => [{ name: "__PK__", value: b }, { name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: t }, { name: "__LAYOUT_UUID__", value: k }], [b, t, k, o]); return g(e, { name: t, autoComplete: r, theme: C, themeProps: x, ...a, formFields: v, listenChangeFields: m, listenChangeFieldsFunc: u, fields: s, hides: l, cols: f, rowHeight: p, itemMargin: [c, d] }); -})(jt), bn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: i, ...r }) => { - const [o] = Q.useForm(), s = Va(o, a, i, e); - return g(H, { actions: O(S.Fragment, { children: [g(P, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), g(P, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: g(Ba, { form: o, code: a, primaryKey: i, ...r }) }); -}, Ht = /* @__PURE__ */ new Set(), xt = (e = [], t = 0) => { +})(jt), Cn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: i, ...r }) => { + const [o] = Q.useForm(), s = Ia(o, a, i, e); + return g(H, { actions: E(S.Fragment, { children: [g(P, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), g(P, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: g(Da, { form: o, code: a, primaryKey: i, ...r }) }); +}, Ht = /* @__PURE__ */ new Set(), vt = (e = [], t = 0) => { const n = e[t]; if (n.length && !Ht.has(n)) { const a = document.createElement("script"); a.setAttribute("src", n), a.setAttribute("data-namespace", n), e.length > t + 1 && (a.onload = () => { - xt(e, t + 1); + vt(e, t + 1); }, a.onerror = () => { - xt(e, t + 1); + vt(e, t + 1); }), Ht.add(n), document.body.appendChild(a); } -}, vt = ({ className: e, type: t, style: n = {}, ...a }) => g("span", { role: "img", className: V("ff-iconfont", e), style: n, ...a, children: g("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: g("use", { xlinkHref: `#${t}` }) }) }); -vt.propTypes = { className: w.string, type: w.string.isRequired, style: w.object }, vt.init = xt; -const Da = (e, t, n, a) => ke.redirect(n, t, a), qa = (e, t = {}, n, a = {}) => { +}, Pt = ({ className: e, type: t, style: n = {}, ...a }) => g("span", { role: "img", className: V("ff-iconfont", e), style: n, ...a, children: g("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: g("use", { xlinkHref: `#${t}` }) }) }); +Pt.propTypes = { className: w.string, type: w.string.isRequired, style: w.object }, Pt.init = vt; +const Ua = (e, t, n, a) => ke.redirect(n, t, a), _a = (e, t = {}, n, a = {}) => { var r; const i = (r = a.router) == null ? void 0 : r.reduce((o, [s, l, p]) => { const c = h.get(t, ["router", s]); @@ -851,95 +851,95 @@ const Da = (e, t, n, a) => ke.redirect(n, t, a), qa = (e, t = {}, n, a = {}) => return h.isFunction(n) ? n.call(null, { ...t, ...o }) : h.isString(n) && n ? Se.exec(n, t, o) : null; }, Gt = (e, t, n, a, i) => h.isString(n) && n ? ne.getWidgetComponent(n).then(({ default: r }) => Y.modal(r, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i)).catch((r) => { Y.error(n, { content: r.toString() }); -}) : Y.modal(n, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Ua = (e, t, n, a, i) => Y.modal(bn, { ...t, $setting: a, code: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Wa = (e, t, n, a, i) => Y.modal(Ft, { base62params: t, $setting: a, listCode: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), _a = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: o, onBeforeClick: s }) => { - const l = ae(Z), [p, c] = E({ leading: !0, trailing: !1 }), d = U(() => { +}) : Y.modal(n, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), qa = (e, t, n, a, i) => Y.modal(Cn, { ...t, $setting: a, code: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Wa = (e, t, n, a, i) => Y.modal(Rt, { base62params: t, $setting: a, listCode: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Ka = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: o, onBeforeClick: s }) => { + const l = ae(Z), [p, c] = O({ leading: !0, trailing: !1 }), d = _(() => { switch (t) { case "redirect": - return h.partialRight(Da, e, i); + return h.partialRight(Ua, e, i); case "func": return h.partialRight(Jt, (i == null ? void 0 : i.code) ?? e, { status: p, setStatus: c }); case "component": case "fsdpf-component": return h.partialRight(Gt, e, i, r); case "grid-layout-form": - return h.partialRight(Ua, e, i, r); + return h.partialRight(qa, e, i, r); case "data-list": return h.partialRight(Wa, e, i, r); case "destroy": - return h.partialRight(qa, e, i, r); + return h.partialRight(_a, e, i, r); default: if (Lt(e) || S.isValidElement(e)) return h.partialRight(Gt, e, i, r); if (h.isFunction(e)) return h.partialRight(Jt, (i == null ? void 0 : i.code) || e, { status: p, setStatus: c }); } return (...f) => console.error("useButton unknown widgetType", t, ...f); }, [e, t]); - return [h.debounce((f) => (s == null || s(f), Promise.resolve(Ue(a, f, { list: l })).then((m) => d(f, { ...n, ...m })).then((m) => o == null ? void 0 : o(m)).catch(console.error)), 300, { leading: !0, trailing: !1 }), p]; -}, Cn = ({ type: e, name: t, className: n, icon: a, iconPosition: i, size: r }, o = "default") => U(() => { + return [h.debounce((f) => (s == null || s(f), Promise.resolve(qe(a, f, { list: l })).then((m) => d(f, { ...n, ...m })).then((m) => o == null ? void 0 : o(m)).catch(console.error)), 300, { leading: !0, trailing: !1 }), p]; +}, kn = ({ type: e, name: t, className: n, icon: a, iconPosition: i, size: r }, o = "default") => _(() => { const s = { type: "primary", className: V("ff-button", n), iconPosition: i, size: r }; - return e === "danger" ? s.danger = !0 : e === "default" && (s.type = e), o === "link" || o === "dashed" ? (s.type = o, e === "default" && (s.className = V(s.className, "ff-default"))) : o !== "circle" && o !== "round" || (s.shape = o), a && (s.icon = g(vt, { type: a })), t && (s.children = t), s; -}, [o, e, n, a, i]), ot = ({ data: e, widget: t, widgetType: n = "fsdpf-component", widgetData: a, widgetProps: i, widgetSetting: r, widgetContainerProps: o, onAfterClick: s, onBeforeClick: l, children: p, extras: c }) => { - const d = ae(Z), [f, m] = E(!1), [u, b] = E("hover"), [k, C] = E({}), [x, v] = E(), { placement: F, align: R, zIndex: B, arrow: M = { pointAtCenter: !0 }, getPopupContainer: I, isPopupMountBodyContainer: T = !1, ...z } = o || {}; + return e === "danger" ? s.danger = !0 : e === "default" && (s.type = e), o === "link" || o === "dashed" ? (s.type = o, e === "default" && (s.className = V(s.className, "ff-default"))) : o !== "circle" && o !== "round" || (s.shape = o), a && (s.icon = g(Pt, { type: a })), t && (s.children = t), s; +}, [o, e, n, a, i]), lt = ({ data: e, widget: t, widgetType: n = "fsdpf-component", widgetData: a, widgetProps: i, widgetSetting: r, widgetContainerProps: o, onAfterClick: s, onBeforeClick: l, children: p, extras: c }) => { + const d = ae(Z), [f, m] = O(!1), [u, b] = O("hover"), [k, C] = O({}), [x, v] = O(), { placement: R, align: F, zIndex: B, arrow: M = { pointAtCenter: !0 }, getPopupContainer: I, isPopupMountBodyContainer: T = !1, ...z } = o || {}; L(() => { - n == "grid-layout-form" ? v(S.createElement(bn, { ...a, $setting: r, code: t })) : n == "data-list" ? v(S.createElement(Ft, { base62params: e, $setting: r, listCode: t })) : h.isString(t) ? ne.getWidgetComponent(t).then(({ default: D }) => { + n == "grid-layout-form" ? v(S.createElement(Cn, { ...a, $setting: r, code: t })) : n == "data-list" ? v(S.createElement(Rt, { base62params: e, $setting: r, listCode: t })) : h.isString(t) ? ne.getWidgetComponent(t).then(({ default: D }) => { v(S.createElement(D, { ...a, $setting: r })); }).catch((D) => v(D.toString())) : Lt(t) ? v(S.createElement(t, { ...a, $setting: r })) : S.isValidElement(t) && v(S.cloneElement(t, { ...a, $setting: r })); }, [t, n, a]), L(() => { - Promise.resolve(Ue(i, e, { list: d })).then(C); + Promise.resolve(qe(i, e, { list: d })).then(C); }, [i, e, d.getBase62params]); const N = (D, ge = !1) => (m(D), !D && b("hover"), D ? l == null ? void 0 : l(k) : s == null ? void 0 : s(ge)), K = (D) => { m(!0), b("click"); }; - return g(_n, { zIndex: B, placement: F, onPopupClick: K, onClick: K, open: f, align: R, arrow: M, trigger: u, getPopupContainer: I || T ? void 0 : (D) => D, styles: { body: { padding: 0 } }, content: g(Ka, { ...z, extras: c, children: x && S.cloneElement(x, { ...k, $close: (D) => N(!1, D) }) }), children: p, onOpenChange: N }); -}, Ka = ({ title: e, className: t, children: n, extras: a, width: i, height: r, ...o }) => { - const [s, l] = E({}), p = J((m, u) => l((b) => ({ ...b, [m]: u })), []), c = J((m) => l((u) => ({ ...u, [m]: void 0 })), []), d = e ? S.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title, f = a ?? S.createElement("div", { className: "ff-popup-reserved-extras" }, a); - return g(qe.Provider, { value: { ele: s, mount: p, unmount: c }, children: O("div", { className: V("ff-popup ff-popover", t, s.rootClassName), style: { width: i, height: r }, ...o, children: [O("div", { className: "ff-popup-header", children: [d, s == null ? void 0 : s["sub-title"]] }), n, O("div", { className: "ff-popup-footer", children: [f, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) }); + return g(Kn, { zIndex: B, placement: R, onPopupClick: K, onClick: K, open: f, align: F, arrow: M, trigger: u, getPopupContainer: I || T ? void 0 : (D) => D, styles: { body: { padding: 0 } }, content: g(Ha, { ...z, extras: c, children: x && S.cloneElement(x, { ...k, $close: (D) => N(!1, D) }) }), children: p, onOpenChange: N }); +}, Ha = ({ title: e, className: t, children: n, extras: a, width: i, height: r, ...o }) => { + const [s, l] = O({}), p = J((m, u) => l((b) => ({ ...b, [m]: u })), []), c = J((m) => l((u) => ({ ...u, [m]: void 0 })), []), d = e ? S.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title, f = a ?? S.createElement("div", { className: "ff-popup-reserved-extras" }, a); + return g(_e.Provider, { value: { ele: s, mount: p, unmount: c }, children: E("div", { className: V("ff-popup ff-popover", t, s.rootClassName), style: { width: i, height: r }, ...o, children: [E("div", { className: "ff-popup-header", children: [d, s == null ? void 0 : s["sub-title"]] }), n, E("div", { className: "ff-popup-footer", children: [f, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) }); }; -ot.propTypes = { widgetType: w.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; -const Ke = (e) => function({ className: t, variant: n, children: a, name: i, icon: r, type: o = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: p, onBeforeClick: c, data: d, loading: f, disabled: m, tooltip: u, confirm: b, widget: k = () => { -}, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: F, widgetContainerProps: R, ...B }) { - const { mode: M, ...I } = R || {}, T = Cn({ className: t, name: i, type: o, icon: r, iconPosition: s }, n ?? e), z = g(Ze, { ...T, ...B, children: a || i }); - if (M === "popover" && !["destroy", "redirect", "func"].includes(C)) return g(ot, { data: d, widget: k, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: F, widgetContainerProps: I, onAfterClick: p, onBeforeClick: c, children: z }); - const N = h.isEmpty(u) || !u.enabled ? {} : u, K = h.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [D, ge] = E(!1), [He, { disabled: Je, loading: lt }] = _a({ widget: k, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: F, widgetContainerProps: I }, { onAfterClick: p, onBeforeClick: c }); - return g(Kn, { okText: "确定", cancelText: "取消", getPopupContainer: (X) => X, ...K, disabled: Je || m, open: D, onOpenChange: (X) => { +lt.propTypes = { widgetType: w.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; +const He = (e) => function({ className: t, variant: n, children: a, name: i, icon: r, type: o = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: p, onBeforeClick: c, data: d, loading: f, disabled: m, tooltip: u, confirm: b, widget: k = () => { +}, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: R, widgetContainerProps: F, ...B }) { + const { mode: M, ...I } = F || {}, T = kn({ className: t, name: i, type: o, icon: r, iconPosition: s }, n ?? e), z = g(et, { ...T, ...B, children: a || i }); + if (M === "popover" && !["destroy", "redirect", "func"].includes(C)) return g(lt, { data: d, widget: k, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: R, widgetContainerProps: I, onAfterClick: p, onBeforeClick: c, children: z }); + const N = h.isEmpty(u) || !u.enabled ? {} : u, K = h.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [D, ge] = O(!1), [Je, { disabled: Ge, loading: ct }] = Ka({ widget: k, widgetType: C, widgetData: x, widgetProps: v, widgetSetting: R, widgetContainerProps: I }, { onAfterClick: p, onBeforeClick: c }); + return g(Hn, { okText: "确定", cancelText: "取消", getPopupContainer: (X) => X, ...K, disabled: Ge || m, open: D, onOpenChange: (X) => { if (!X) return ge(X); - K.enabled ? ge(X) : He(d); + K.enabled ? ge(X) : Je(d); }, onConfirm: (X) => { - He(d, X); + Je(d, X); }, onClick: (X) => { X.stopPropagation(); - }, children: g(Hn, { getPopupContainer: (X) => X, ...N, title: D ? null : N == null ? void 0 : N.title, trigger: ["hover", "click"], children: S.cloneElement(z, { loading: lt || f, disabled: Je || m }) }) }); -}, P = Ke("default"); + }, children: g(Jn, { getPopupContainer: (X) => X, ...N, title: D ? null : N == null ? void 0 : N.title, trigger: ["hover", "click"], children: S.cloneElement(z, { loading: ct || f, disabled: Ge || m }) }) }); +}, P = He("default"); P.propTypes = { type: w.oneOf(["primary", "default", "danger", ""]), size: w.oneOf(["large", "middle", "small"]), name: w.string, icon: w.string, iconPosition: w.oneOf(["start", "end"]), data: w.any, widget: w.any, widgetType: w.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: w.object, widgetProps: w.object, widgetSetting: w.object, widgetContainerProps: w.object, tooltip: w.exact({ title: w.string.isRequired, placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func }), confirm: w.exact({ title: w.string.isRequired, cancelText: w.string, okText: w.string, okType: w.oneOf(["primary", "default", "danger", ""]), placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func, arrow: w.oneOfType([w.bool, w.exact({ pointAtCenter: w.bool })]) }) }; -const Ha = Ke("link"), Ja = Ke("circle"), Ga = Ke("round"), Ya = Ke("dashed"), Yt = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: n = (m, u, b) => { +const Ja = He("link"), Ga = He("circle"), Ya = He("round"), Xa = He("dashed"), Yt = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: n = (m, u, b) => { }, onBeforeClick: a = (m, u, b) => { -}, labelVariant: i = "link", labelSize: r, labelRender: o, btnVariant: s, btnSize: l, btnRender: p = (m, u) => g(P, { ...m, data: u }, m.uuid || mt()), widgetContainerProps: c = {}, children: d, data: f }) => { +}, labelVariant: i = "link", labelSize: r, labelRender: o, btnVariant: s, btnSize: l, btnRender: p = (m, u) => g(P, { ...m, data: u }, m.uuid || ht()), widgetContainerProps: c = {}, children: d, data: f }) => { if (h.isEmpty(e)) return d; - const [m, u] = U(() => (e || []).reduce((k, C) => { + const [m, u] = _(() => (e || []).reduce((k, C) => { const x = t.indexOf(C.widgetType); return x === -1 ? k[1].push(C) : k[0] ? x < t.indexOf(k[0].widgetType) ? (k[1].push(k[0]), k[0] = C) : k[1].push(C) : k[0] = C, k; }, [null, []]), [e, t]); - o ? d = o(m, f) || d : d || (d = g(Ze, { ...Cn(Object.assign(m != null && m.name || m != null && m.icon ? {} : { icon: "icon-location" }, m, { size: r }), i) })); + o ? d = o(m, f) || d : d || (d = g(et, { ...kn(Object.assign(m != null && m.name || m != null && m.icon ? {} : { icon: "icon-location" }, m, { size: r }), i) })); const b = u.map((k) => p(Object.assign({ uuid: k.uuid, type: k.type, name: k.name, widget: k.widget, widgetType: k.widgetType, widgetProps: k.widgetProps, widgetData: k.widgetData, widgetSetting: k.widgetSetting, widgetContainerProps: k.widgetContainerSetting, confirm: k.confirm, onAfterClick: h.partialRight(n, k, f), onBeforeClick: h.partialRight(a, k, f) }, { size: l, variant: s }), f)); - return g(ot, { widget: m == null ? void 0 : m.widget, widgetType: m == null ? void 0 : m.widgetType, widgetProps: m == null ? void 0 : m.widgetProps, widgetSetting: m == null ? void 0 : m.widgetSetting, widgetContainerProps: Object.assign({}, c, m == null ? void 0 : m.widgetContainerProps), data: f, widgetData: m == null ? void 0 : m.widgetData, extras: b, onAfterClick: h.partialRight(n, m, f), onBeforeClick: h.partialRight(a, m, f), children: d }); + return g(lt, { widget: m == null ? void 0 : m.widget, widgetType: m == null ? void 0 : m.widgetType, widgetProps: m == null ? void 0 : m.widgetProps, widgetSetting: m == null ? void 0 : m.widgetSetting, widgetContainerProps: Object.assign({}, c, m == null ? void 0 : m.widgetContainerProps), data: f, widgetData: m == null ? void 0 : m.widgetData, extras: b, onAfterClick: h.partialRight(n, m, f), onBeforeClick: h.partialRight(a, m, f), children: d }); }; -Yt.propTypes = { triggerWeights: w.array, options: w.arrayOf(w.shape({ ...P.propTypes, widgetType: P.propTypes.widgetType.isRequired })), btnSize: P.propTypes.size, btnRender: w.func, btnVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: w.func, labelSize: P.propTypes.size, onAfterClick: w.func, onBeforeClick: w.func, widgetContainerProps: P.propTypes.widgetContainerProps, data: P.propTypes.data }, P.Link = Ha, P.Link.defaultProps = P.defaultProps, P.Link.propTypes = P.propTypes, P.Circle = Ja, P.Circle.defaultProps = P.defaultProps, P.Circle.propTypes = P.propTypes, P.Round = Ga, P.Round.defaultProps = P.defaultProps, P.Round.propTypes = P.propTypes, P.Dashed = Ya, P.Dashed.defaultProps = P.defaultProps, P.Dashed.propTypes = P.propTypes, P.Popover = ot, P.GroupPopover = Yt; -const Xa = ({ fields: e, formProps: t, $close: n }) => { - const [a] = Q.useForm(), i = U(() => [{ name: "__PROPS__", value: t }], [t]); - return g(H, { actions: O(S.Fragment, { children: [g(P, { name: "取消", widget: () => n(!1) }), g(P, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: g(Q, { fields: i, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...o }) => g(Et, { code: r, ...o }, r)) }) }); -}, Qa = ({ className: e, $close: t, children: n, title: a, subTitle: i, actions: r, extras: o, ...s }) => O(ea, { ...s, prefixCls: "ff-drawer", className: V("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (l) => ({ motionAppear: !0, motionName: `panel-motion-${l}` }), children: [O("div", { className: "ff-popup-header", children: [g("button", { "aria-label": "Close", className: "ff-popup-close", onClick: s.onClose, children: g(Nt, { type: "close" }) }), a, i] }), g("div", { className: "ff-popup-body", children: n }), O("div", { className: "ff-popup-footer", children: [o, r] })] }), Za = ({ className: e, $close: t, $event: n, children: a, title: i, subTitle: r, actions: o, extras: s, placement: l, ...p }) => { +Yt.propTypes = { triggerWeights: w.array, options: w.arrayOf(w.shape({ ...P.propTypes, widgetType: P.propTypes.widgetType.isRequired })), btnSize: P.propTypes.size, btnRender: w.func, btnVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: w.func, labelSize: P.propTypes.size, onAfterClick: w.func, onBeforeClick: w.func, widgetContainerProps: P.propTypes.widgetContainerProps, data: P.propTypes.data }, P.Link = Ja, P.Link.defaultProps = P.defaultProps, P.Link.propTypes = P.propTypes, P.Circle = Ga, P.Circle.defaultProps = P.defaultProps, P.Circle.propTypes = P.propTypes, P.Round = Ya, P.Round.defaultProps = P.defaultProps, P.Round.propTypes = P.propTypes, P.Dashed = Xa, P.Dashed.defaultProps = P.defaultProps, P.Dashed.propTypes = P.propTypes, P.Popover = lt, P.GroupPopover = Yt; +const Qa = ({ fields: e, formProps: t, $close: n }) => { + const [a] = Q.useForm(), i = _(() => [{ name: "__PROPS__", value: t }], [t]); + return g(H, { actions: E(S.Fragment, { children: [g(P, { name: "取消", widget: () => n(!1) }), g(P, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: g(Q, { fields: i, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...o }) => g(Ot, { code: r, ...o }, r)) }) }); +}, Za = ({ className: e, $close: t, children: n, title: a, subTitle: i, actions: r, extras: o, ...s }) => E(ta, { ...s, prefixCls: "ff-drawer", className: V("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (l) => ({ motionAppear: !0, motionName: `panel-motion-${l}` }), children: [E("div", { className: "ff-popup-header", children: [g("button", { "aria-label": "Close", className: "ff-popup-close", onClick: s.onClose, children: g(Nt, { type: "close" }) }), a, i] }), g("div", { className: "ff-popup-body", children: n }), E("div", { className: "ff-popup-footer", children: [o, r] })] }), ei = ({ className: e, $close: t, $event: n, children: a, title: i, subTitle: r, actions: o, extras: s, placement: l, ...p }) => { const c = (n == null ? void 0 : n.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: n == null ? void 0 : n.pageX, y: n == null ? void 0 : n.pageY } }; - return g(ta, { ...p, ...c, prefixCls: "ff-modal", modalRender: () => O("div", { className: V("ff-modal-content ff-popup", e), children: [O("div", { className: "ff-popup-header", children: [g("button", { "aria-label": "Close", className: "ff-popup-close", onClick: p.onClose, children: g(Nt, { type: "close" }) }), i, r] }), g("div", { className: "ff-popup-body", children: a }), O("div", { className: "ff-popup-footer", children: [s, o] })] }) }); -}, kn = ({ placement: e, $close: t, $event: n, children: a, title: i, ...r }) => { - const [o, s] = E({}), [l, p] = E(!0), c = J((u, b) => s((k) => ({ ...k, [u]: b })), []), d = J((u) => s((b) => ({ ...b, [u]: void 0 })), []); + return g(na, { ...p, ...c, prefixCls: "ff-modal", modalRender: () => E("div", { className: V("ff-modal-content ff-popup", e), children: [E("div", { className: "ff-popup-header", children: [g("button", { "aria-label": "Close", className: "ff-popup-close", onClick: p.onClose, children: g(Nt, { type: "close" }) }), i, r] }), g("div", { className: "ff-popup-body", children: a }), E("div", { className: "ff-popup-footer", children: [s, o] })] }) }); +}, Sn = ({ placement: e, $close: t, $event: n, children: a, title: i, ...r }) => { + const [o, s] = O({}), [l, p] = O(!0), c = J((u, b) => s((k) => ({ ...k, [u]: b })), []), d = J((u) => s((b) => ({ ...b, [u]: void 0 })), []); let f = { ...r, className: o.rootClassName, title: o.title || i && S.createElement("div", { className: V("ff-popup-title") }, i), subTitle: o["sub-title"], actions: o.actions, extras: o.extras, children: a, $close: t, $event: n, onClose: () => p(!1) }; const m = () => { t(!1); }; - return g(qe.Provider, { value: { ele: o, mount: c, unmount: d }, children: e && e !== "center" ? g(Qa, { ...f, placement: e, open: l, afterOpenChange: (u) => !u && m() }) : g(Za, { ...f, visible: l, afterClose: m }) }); + return g(_e.Provider, { value: { ele: o, mount: c, unmount: d }, children: e && e !== "center" ? g(Za, { ...f, placement: e, open: l, afterOpenChange: (u) => !u && m() }) : g(ei, { ...f, visible: l, afterClose: m }) }); }; -kn.propTypes = { placement: w.oneOf(["center", "left", "top", "right", "bottom"]) }; +Sn.propTypes = { placement: w.oneOf(["center", "left", "top", "right", "bottom"]) }; const G = () => { - const [e, t] = Vn({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (r) => { + const [e, t] = In({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (r) => { const { offsetHeight: o } = r; return { height: o }; }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, n] = S.useReducer((r) => r + 1, 0); @@ -950,44 +950,52 @@ const G = () => { }, []); const a = (r, o = {}, s = {}) => new Promise((l, p) => i([l, p], r, o, s)), i = ([r, o], s, l = {}, p = {}) => { const c = G.$index++, d = (f) => ((m, u) => (G.$popups.delete(m), n(), u == null ? void 0 : u()))(c, () => r(f)); - if (s === an) return e.open({ ...p, key: c, content: S.createElement(s, { ...l, $close: () => e.close(c) }) }); - G.$popups.set(c, S.createElement(kn, { maskClosable: !1, $event: l == null ? void 0 : l.$event, ...p, key: c, $close: d }, S.isValidElement(s) ? S.cloneElement(s, { ...l, $close: d }) : s != null && s.name || Bt.isForwardRef(s) || (s == null ? void 0 : s.$$typeof) === Bt.ForwardRef ? S.createElement(s, { ...l, $close: d }) : s)), n(); + if (s === rn) return e.open({ ...p, key: c, content: S.createElement(s, { ...l, $close: () => e.close(c) }) }); + G.$popups.set(c, S.createElement(Sn, { maskClosable: !1, $event: l == null ? void 0 : l.$event, ...p, key: c, $close: d }, S.isValidElement(s) ? S.cloneElement(s, { ...l, $close: d }) : s != null && s.name || Bt.isForwardRef(s) || (s == null ? void 0 : s.$$typeof) === Bt.ForwardRef ? S.createElement(s, { ...l, $close: d }) : s)), n(); }; - return O(S.Fragment, { children: [Array.from(G.$popups).map(([r, o]) => o), t] }); + return E(S.Fragment, { children: [Array.from(G.$popups).map(([r, o]) => o), t] }); }; G.$popups = /* @__PURE__ */ new Map(), G.$index = 0, G.$queue = [], G.$onClick = (...e) => new Promise((t, n) => { G.$queue.push([e, t, n]); }); -const Xt = (e, t, n = {}) => G.$onClick(e, t, n), gt = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => G.$onClick(an, { content: e, ...a }, { showProgress: t, duration: n }), Y = { modal: Xt, confirm: (e, t = {}) => G.$onClick(na, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Xt(Xa, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => { +const Xt = (e, t, n = {}) => G.$onClick(e, t, n), pt = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => G.$onClick(rn, { content: e, ...a }, { showProgress: t, duration: n }), Y = { modal: Xt, confirm: (e, t = {}) => G.$onClick(aa, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Xt(Qa, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => { if (a === !1) throw !1; return a; -}), notification: gt, success: (e, t = { duration: 1.5 }) => gt(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => gt(e, { ...t, className: "ff-notification-error", icon: "close" }) }; -Ee.configure({ showSpinner: !1 }), je.interceptors.request.use((e) => { +}), notification: pt, success: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-error", icon: "close" }) }; +je.configure({ showSpinner: !1 }), Ae.interceptors.request.use((e) => { e.headers.Platform = "web", e.headers.SaaS = window.localStorage.getItem("SaaS"); - const t = window.localStorage.getItem(Qe); - return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, Ee.inc(), e; -}, (e) => (Ee.done(), Promise.reject({ code: -1, msg: e }))), je.interceptors.response.use(({ data: e, headers: t }) => (Ee.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) { - return Ee.done(), Promise.reject(e.message); -}), window.addEventListener("unhandledrejection", ht.onUnhandledRejection), ht.onMsg = (e, t) => Y[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && ke.redirect(Ae.get("Common.WEBSITE_LOGIN_PAGE"))); -const Pt = { appUrl: "", init: (e, t, n) => { - Pt.appUrl = n, je.defaults.baseURL = n, je.defaults.timeout = 15e3, Object.assign(Pt, new ht(e, t, je)); -} }, A = Pt; + const t = window.localStorage.getItem(Ze); + return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, je.inc(), e; +}, (e) => (je.done(), Promise.reject({ code: -1, msg: e }))), Ae.interceptors.response.use(({ data: e, headers: t }) => (je.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) { + return je.done(), Promise.reject(e.message); +}), window.addEventListener("unhandledrejection", ft.onUnhandledRejection), ft.onMsg = (e, t) => Y[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && ke.redirect(Le.get("Common.WEBSITE_LOGIN_PAGE"))); +var Ee, Qt; +const A = new (Qt = class { + constructor() { + $(this, "appUrl", ""); + j(this, Ee, null); + return W(this, Ee, new ft()), new Proxy(y(this, Ee), { get: (e, t) => t === "init" ? this.init.bind(this) : t === "appUrl" ? this.appUrl : e[t] }); + } + init(e, t, n) { + this.appKey = e, Ae.defaults.baseURL = n, Ae.defaults.timeout = 15e3, y(this, Ee).init(e, t, Ae); + } +}, Ee = new WeakMap(), Qt)(); class At extends Error { constructor(t, n) { - super(n), Error.captureStackTrace && Error.captureStackTrace(this, At), !n instanceof Le && (this.name = `${t} Error Runtime`); + super(n), Error.captureStackTrace && Error.captureStackTrace(this, At), !n instanceof Ve && (this.name = `${t} Error Runtime`); } } -class Le extends Error { +class Ve extends Error { constructor(t, ...n) { - super(...n), Error.captureStackTrace && Error.captureStackTrace(this, Le), this.name = `${t} Not Found`; + super(...n), Error.captureStackTrace && Error.captureStackTrace(this, Ve), this.name = `${t} Not Found`; } } -const pt = "mine", Qe = "token"; +const mt = "mine", Ze = "token"; var Ce, Oe; const le = class le { constructor() { j(this, Oe, /* @__PURE__ */ new Map()); - $(this, "setVendor", (t, n) => y(this, Oe).set(t, new tn(n, async (a, i) => { + $(this, "setVendor", (t, n) => y(this, Oe).set(t, new nn(n, async (a, i) => { var o, s; if (!(a != null && a.default)) throw "@pkg not found"; let r = () => i; @@ -996,13 +1004,13 @@ const le = class le { case typeof (r = (s = a.default) == null ? void 0 : s[`./${i}/index.js`]): return r(); } - throw new Le(i); + throw new Ve(i); }))); $(this, "getWidgetComponent", async (t) => { if (!t) throw "getWidgetComponent widget is required"; if (t != null && t.startsWith("blob:") || t != null && t.startsWith("http:") || t != null && t.startsWith("https:")) return await import(t); const [, n] = t == null ? void 0 : t.split("@pkg/"); - if (!n) throw new Le(t); + if (!n) throw new Ve(t); try { return y(this, Oe).has("pkg") ? await y(this, Oe).get("pkg").get(n) : await import(`${A.appUrl}/api/pkg-import/web?name=${t}`); } catch (a) { @@ -1015,7 +1023,7 @@ const le = class le { $(this, "getWidgetOperationAuth", () => A.get("/api/init-widget-operation-auth").then((t) => t.reduce((n, { uuid: a, auth: i }) => [...n, [a, i]], []))); $(this, "getPhoneNumber", (t) => A.get(`/api/user-wx-phone-number/${t}`)); $(this, "getUserToken", () => { - const t = window.localStorage.getItem(Qe); + const t = window.localStorage.getItem(Ze); if (!t) return ""; const n = t.split("."); if (!Array.isArray(n) || n.length !== 3) throw "登录令牌无效!"; @@ -1035,120 +1043,120 @@ const le = class le { try { const a = this.getUserToken(); if (!a) return Promise.resolve(null); - const { iat: i } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: r, ...o } = A.decode(window.localStorage.getItem(pt) || "", {}); - return r === i ? Promise.resolve(o) : A.get("/api/mine-info").then(({ User: s = null }) => (window.localStorage.setItem(pt, A.encode({ ...s, iat: i })), s)); + const { iat: i } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: r, ...o } = A.decode(window.localStorage.getItem(mt) || "", {}); + return r === i ? Promise.resolve(o) : A.get("/api/mine-info").then(({ User: s = null }) => (window.localStorage.setItem(mt, A.encode({ ...s, iat: i })), s)); } catch (a) { console.error(a), t && Y.error("请登录").then(this.logout); } return Promise.resolve(null); }); - $(this, "login", (t, n, a = {}) => A.post("/api/user-token", { username: t, passwd: In.hash(n), platform: "web", ...a }).then(({ token: i }) => (window.localStorage.setItem(Qe, i), i))); - $(this, "logout", (t) => (window.localStorage.removeItem(pt), window.localStorage.removeItem(Qe), t == null ? void 0 : t())); + $(this, "login", (t, n, a = {}) => A.post("/api/user-token", { username: t, passwd: Mn.hash(n), platform: "web", ...a }).then(({ token: i }) => (window.localStorage.setItem(Ze, i), i))); + $(this, "logout", (t) => (window.localStorage.removeItem(mt), window.localStorage.removeItem(Ze), t == null ? void 0 : t())); if (y(le, Ce)) return y(le, Ce); } }; -Ce = new WeakMap(), Oe = new WeakMap(), j(le, Ce, null), $(le, "getInstance", () => (y(le, Ce) || _(le, Ce, new le()), y(le, Ce))); +Ce = new WeakMap(), Oe = new WeakMap(), j(le, Ce, null), $(le, "getInstance", () => (y(le, Ce) || W(le, Ce, new le()), y(le, Ce))); let Tt = le; -const ne = Tt.getInstance(), ei = S.createContext({ user: {}, initUser: () => { -}, initUserComplete: !1 }), ti = S.createContext({ set: () => { +const ne = Tt.getInstance(), ti = S.createContext({ user: {}, initUser: () => { +}, initUserComplete: !1 }), ni = S.createContext({ set: () => { }, get: () => { }, assign: () => { }, currentRoute: () => { -} }), Lt = (e) => !!(e != null && e.name) && (e.prototype instanceof S.Component || /^[A-Z]/.test(e.name)), ni = (e, t) => { +} }), Lt = (e) => !!(e != null && e.name) && (e.prototype instanceof S.Component || /^[A-Z]/.test(e.name)), ai = (e, t) => { if (!e || typeof window > "u") return; let n = document.querySelector(`style[ff-style-token="${t}"]`); return n ? (n.innerHTML = e, e) : (n = document.createElement("style"), n.setAttribute("ff-style-token", t), n.setAttribute("type", "text/css"), n.innerHTML = e, document.head.appendChild(n), e); -}, ai = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: ei, AppGlobalParamsContext: ti, cache: tn, configure: Ae, default: ne, func: Se, http: A, insertStyle: ni, isReactComponent: Lt, route: ke }, Symbol.toStringTag, { value: "Module" })); +}, ii = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: ti, AppGlobalParamsContext: ni, cache: nn, configure: Le, default: ne, func: Se, http: A, insertStyle: ai, isReactComponent: Lt, route: ke }, Symbol.toStringTag, { value: "Module" })); export { - Li as $, - ka as A, - Ca as B, - wa as C, - et as D, - Ft as E, + Vi as $, + Sa as A, + ka as B, + ba as C, + tt as D, + Rt as E, Z as F, Oi as G, - xa as H, - Sa as I, - Na as J, - ma as K, - fa as L, - da as M, - ua as N, - $i as O, - Ni as P, - cn as Q, - pn as R, - bt as S, - ga as T, - pa as U, + va as H, + xa as I, + Fa as J, + ha as K, + ya as L, + ua as M, + ga as N, + Ni as O, + Fi as P, + dn as Q, + mn as R, + Ct as S, + pa as T, + ma as U, Ra as V, - Fa as W, - Ei as X, - ji as Y, - st as Z, - Ai as _, - rn as a, + Ea as W, + ji as X, + Ai as Y, + ot as Z, + Li as _, + sn as a, We as a0, - _e as a1, - Vi as a2, - Ii as a3, - Ba as a4, + Ke as a1, + Ii as a2, + Mi as a3, + Da as a4, jt as a5, - Et as a6, - bn as a7, - Ea as a8, - ja as a9, - ti as aA, - Aa as aa, - La as ab, - Va as ac, - Ia as ad, - Mi as ae, - vt as af, + Ot as a6, + Cn as a7, + ja as a8, + Aa as a9, + ni as aA, + La as aa, + Va as ab, + Ia as ac, + Ma as ad, + zi as ae, + Pt as af, P as ag, - aa as ah, - _a as ai, + ia as ah, + Ka as ai, H as aj, - qe as ak, - nn as al, + _e as ak, + an as al, G as am, Y as an, - Ci as ao, - ki as ap, - Si as aq, + ki as ao, + Si as ap, + xi as aq, ne as ar, Lt as as, - ni as at, + ai as at, A as au, - tn as av, - Ae as aw, + nn as av, + Le as aw, Se as ax, ke as ay, - ei as az, - ra as b, - Ue as c, - sn as d, - vi as e, - Pi as f, - ia as g, - Ti as h, - sa as i, - dn as j, + ti as az, + sa as b, + qe as c, + on as d, + Pi as e, + Ti as f, + ra as g, + $i as h, + oa as i, + un as j, Ri as k, - Rt as l, - oa as m, - mn as n, - fn as o, - Ta as p, - hn as q, - ut as r, - va as s, + Ft as l, + la as m, + hn as n, + yn as o, + $a as p, + fn as q, + gt as r, + Pa as s, ce as t, - xi as u, - Pa as v, - Fi as w, - Ot as x, - gn as y, - un as z + vi as u, + Ta as v, + Ei as w, + Et as x, + pn as y, + gn as z }; diff --git a/dist/common/vender-CtjyT19B.js b/dist/common/vender-CtjyT19B.js deleted file mode 100644 index 2064151..0000000 --- a/dist/common/vender-CtjyT19B.js +++ /dev/null @@ -1,1608 +0,0 @@ -function pe(t, e) { - return function() { - return t.apply(e, arguments); - }; -} -const { toString: Ne } = Object.prototype, { getPrototypeOf: Bt } = Object, at = (dt = /* @__PURE__ */ Object.create(null), (t) => { - const e = Ne.call(t); - return dt[e] || (dt[e] = e.slice(8, -1).toLowerCase()); -}); -var dt; -const B = (t) => (t = t.toLowerCase(), (e) => at(e) === t), ft = (t) => (e) => typeof e === t, { isArray: z } = Array, V = ft("undefined"), It = B("ArrayBuffer"), Ue = ft("string"), U = ft("function"), Wt = ft("number"), tt = (t) => t !== null && typeof t == "object", et = (t) => { - if (at(t) !== "object") return !1; - const e = Bt(t); - return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t); -}, ke = B("Date"), Be = B("File"), Le = B("Blob"), Fe = B("FileList"), Me = B("URLSearchParams"), [De, qe, Ie, We] = ["ReadableStream", "Request", "Response", "Headers"].map(B); -function K(t, e, { allOwnKeys: r = !1 } = {}) { - if (t == null) return; - let n, i; - if (typeof t != "object" && (t = [t]), z(t)) for (n = 0, i = t.length; n < i; n++) e.call(null, t[n], n, t); - else { - const u = r ? Object.getOwnPropertyNames(t) : Object.keys(t), l = u.length; - let m; - for (n = 0; n < l; n++) m = u[n], e.call(null, t[m], m, t); - } -} -function zt(t, e) { - e = e.toLowerCase(); - const r = Object.keys(t); - let n, i = r.length; - for (; i-- > 0; ) if (n = r[i], e === n.toLowerCase()) return n; - return null; -} -const ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ht = (t) => !V(t) && t !== ge, ze = (pt = typeof Uint8Array < "u" && Bt(Uint8Array), (t) => pt && t instanceof pt); -var pt; -const He = B("HTMLFormElement"), $t = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), $e = B("RegExp"), Jt = (t, e) => { - const r = Object.getOwnPropertyDescriptors(t), n = {}; - K(r, (i, u) => { - let l; - (l = e(i, u, t)) !== !1 && (n[u] = l || i); - }), Object.defineProperties(t, n); -}, gt = "abcdefghijklmnopqrstuvwxyz", Vt = "0123456789", Kt = { DIGIT: Vt, ALPHA: gt, ALPHA_DIGIT: gt + gt.toUpperCase() + Vt }, Je = B("AsyncFunction"), v = { isArray: z, isArrayBuffer: It, isBuffer: function(t) { - return t !== null && !V(t) && t.constructor !== null && !V(t.constructor) && U(t.constructor.isBuffer) && t.constructor.isBuffer(t); -}, isFormData: (t) => { - let e; - return t && (typeof FormData == "function" && t instanceof FormData || U(t.append) && ((e = at(t)) === "formdata" || e === "object" && U(t.toString) && t.toString() === "[object FormData]")); -}, isArrayBufferView: function(t) { - let e; - return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && It(t.buffer), e; -}, isString: Ue, isNumber: Wt, isBoolean: (t) => t === !0 || t === !1, isObject: tt, isPlainObject: et, isReadableStream: De, isRequest: qe, isResponse: Ie, isHeaders: We, isUndefined: V, isDate: ke, isFile: Be, isBlob: Le, isRegExp: $e, isFunction: U, isStream: (t) => tt(t) && U(t.pipe), isURLSearchParams: Me, isTypedArray: ze, isFileList: Fe, forEach: K, merge: function t() { - const { caseless: e } = Ht(this) && this || {}, r = {}, n = (i, u) => { - const l = e && zt(r, u) || u; - et(r[l]) && et(i) ? r[l] = t(r[l], i) : et(i) ? r[l] = t({}, i) : z(i) ? r[l] = i.slice() : r[l] = i; - }; - for (let i = 0, u = arguments.length; i < u; i++) arguments[i] && K(arguments[i], n); - return r; -}, extend: (t, e, r, { allOwnKeys: n } = {}) => (K(e, (i, u) => { - r && U(i) ? t[u] = pe(i, r) : t[u] = i; -}, { allOwnKeys: n }), t), trim: (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), inherits: (t, e, r, n) => { - t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r); -}, toFlatObject: (t, e, r, n) => { - let i, u, l; - const m = {}; - if (e = e || {}, t == null) return e; - do { - for (i = Object.getOwnPropertyNames(t), u = i.length; u-- > 0; ) l = i[u], n && !n(l, t, e) || m[l] || (e[l] = t[l], m[l] = !0); - t = r !== !1 && Bt(t); - } while (t && (!r || r(t, e)) && t !== Object.prototype); - return e; -}, kindOf: at, kindOfTest: B, endsWith: (t, e, r) => { - t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; - const n = t.indexOf(e, r); - return n !== -1 && n === r; -}, toArray: (t) => { - if (!t) return null; - if (z(t)) return t; - let e = t.length; - if (!Wt(e)) return null; - const r = new Array(e); - for (; e-- > 0; ) r[e] = t[e]; - return r; -}, forEachEntry: (t, e) => { - const r = (t && t[Symbol.iterator]).call(t); - let n; - for (; (n = r.next()) && !n.done; ) { - const i = n.value; - e.call(t, i[0], i[1]); - } -}, matchAll: (t, e) => { - let r; - const n = []; - for (; (r = t.exec(e)) !== null; ) n.push(r); - return n; -}, isHTMLForm: He, hasOwnProperty: $t, hasOwnProp: $t, reduceDescriptors: Jt, freezeMethods: (t) => { - Jt(t, (e, r) => { - if (U(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1; - const n = t[r]; - U(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { - throw Error("Can not rewrite read-only method '" + r + "'"); - })); - }); -}, toObjectSet: (t, e) => { - const r = {}, n = (i) => { - i.forEach((u) => { - r[u] = !0; - }); - }; - return z(t) ? n(t) : n(String(t).split(e)), r; -}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) { - return r.toUpperCase() + n; -}), noop: () => { -}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: zt, global: ge, isContextDefined: Ht, ALPHABET: Kt, generateString: (t = 16, e = Kt.ALPHA_DIGIT) => { - let r = ""; - const { length: n } = e; - for (; t--; ) r += e[Math.random() * n | 0]; - return r; -}, isSpecCompliantForm: function(t) { - return !!(t && U(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); -}, toJSONObject: (t) => { - const e = new Array(10), r = (n, i) => { - if (tt(n)) { - if (e.indexOf(n) >= 0) return; - if (!("toJSON" in n)) { - e[i] = n; - const u = z(n) ? [] : {}; - return K(n, (l, m) => { - const y = r(l, i + 1); - !V(y) && (u[m] = y); - }), e[i] = void 0, u; - } - } - return n; - }; - return r(t, 0); -}, isAsyncFn: Je, isThenable: (t) => t && (tt(t) || U(t)) && U(t.then) && U(t.catch) }; -function C(t, e, r, n, i) { - Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i); -} -v.inherits(C, Error, { toJSON: function() { - return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: v.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; -} }); -const Gt = C.prototype, Xt = {}; -["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"].forEach((t) => { - Xt[t] = { value: t }; -}), Object.defineProperties(C, Xt), Object.defineProperty(Gt, "isAxiosError", { value: !0 }), C.from = (t, e, r, n, i, u) => { - const l = Object.create(Gt); - return v.toFlatObject(t, l, function(m) { - return m !== Error.prototype; - }, (m) => m !== "isAxiosError"), C.call(l, t.message, e, r, n, i), l.cause = t, l.name = t.name, u && Object.assign(l, u), l; -}; -function yt(t) { - return v.isPlainObject(t) || v.isArray(t); -} -function ye(t) { - return v.endsWith(t, "[]") ? t.slice(0, -2) : t; -} -function Qt(t, e, r) { - return t ? t.concat(e).map(function(n, i) { - return n = ye(n), !r && i ? "[" + n + "]" : n; - }).join(r ? "." : "") : e; -} -const Ve = v.toFlatObject(v, {}, null, function(t) { - return /^is[A-Z]/.test(t); -}); -function ct(t, e, r) { - if (!v.isObject(t)) throw new TypeError("target must be an object"); - e = e || new FormData(); - const n = (r = v.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, A) { - return !v.isUndefined(A[w]); - })).metaTokens, i = r.visitor || g, u = r.dots, l = r.indexes, m = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e); - if (!v.isFunction(i)) throw new TypeError("visitor must be a function"); - function y(w) { - if (w === null) return ""; - if (v.isDate(w)) return w.toISOString(); - if (!m && v.isBlob(w)) throw new C("Blob is not supported. Use a Buffer instead."); - return v.isArrayBuffer(w) || v.isTypedArray(w) ? m && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w; - } - function g(w, A, d) { - let c = w; - if (w && !d && typeof w == "object") { - if (v.endsWith(A, "{}")) A = n ? A : A.slice(0, -2), w = JSON.stringify(w); - else if (v.isArray(w) && function(o) { - return v.isArray(o) && !o.some(yt); - }(w) || (v.isFileList(w) || v.endsWith(A, "[]")) && (c = v.toArray(w))) return A = ye(A), c.forEach(function(o, a) { - !v.isUndefined(o) && o !== null && e.append(l === !0 ? Qt([A], a, u) : l === null ? A : A + "[]", y(o)); - }), !1; - } - return !!yt(w) || (e.append(Qt(d, A, u), y(w)), !1); - } - const s = [], b = Object.assign(Ve, { defaultVisitor: g, convertValue: y, isVisitable: yt }); - if (!v.isObject(t)) throw new TypeError("data must be an object"); - return function w(A, d) { - if (!v.isUndefined(A)) { - if (s.indexOf(A) !== -1) throw Error("Circular reference detected in " + d.join(".")); - s.push(A), v.forEach(A, function(c, o) { - (!(v.isUndefined(c) || c === null) && i.call(e, c, v.isString(o) ? o.trim() : o, d, b)) === !0 && w(c, d ? d.concat(o) : [o]); - }), s.pop(); - } - }(t), e; -} -function Yt(t) { - const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; - return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) { - return e[r]; - }); -} -function Lt(t, e) { - this._pairs = [], t && ct(t, this, e); -} -const Zt = Lt.prototype; -function Ke(t) { - return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); -} -function me(t, e, r) { - if (!e) return t; - const n = r && r.encode || Ke, i = r && r.serialize; - let u; - if (u = i ? i(e, r) : v.isURLSearchParams(e) ? e.toString() : new Lt(e, r).toString(n), u) { - const l = t.indexOf("#"); - l !== -1 && (t = t.slice(0, l)), t += (t.indexOf("?") === -1 ? "?" : "&") + u; - } - return t; -} -Zt.append = function(t, e) { - this._pairs.push([t, e]); -}, Zt.toString = function(t) { - const e = t ? function(r) { - return t.call(this, r, Yt); - } : Yt; - return this._pairs.map(function(r) { - return e(r[0]) + "=" + e(r[1]); - }, "").join("&"); -}; -class te { - constructor() { - this.handlers = []; - } - use(e, r, n) { - return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; - } - eject(e) { - this.handlers[e] && (this.handlers[e] = null); - } - clear() { - this.handlers && (this.handlers = []); - } - forEach(e) { - v.forEach(this.handlers, function(r) { - r !== null && e(r); - }); - } -} -const be = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Ge = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : Lt, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Ft = typeof window < "u" && typeof document < "u", Xe = (ee = typeof navigator < "u" && navigator.product, Ft && ["ReactNative", "NativeScript", "NS"].indexOf(ee) < 0); -var ee; -const Qe = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ye = Ft && window.location.href || "http://localhost", k = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: Ft, hasStandardBrowserEnv: Xe, hasStandardBrowserWebWorkerEnv: Qe, origin: Ye }, Symbol.toStringTag, { value: "Module" })), ...Ge }; -function we(t) { - function e(r, n, i, u) { - let l = r[u++]; - if (l === "__proto__") return !0; - const m = Number.isFinite(+l), y = u >= r.length; - return l = !l && v.isArray(i) ? i.length : l, y ? (v.hasOwnProp(i, l) ? i[l] = [i[l], n] : i[l] = n, !m) : (i[l] && v.isObject(i[l]) || (i[l] = []), e(r, n, i[l], u) && v.isArray(i[l]) && (i[l] = function(g) { - const s = {}, b = Object.keys(g); - let w; - const A = b.length; - let d; - for (w = 0; w < A; w++) d = b[w], s[d] = g[d]; - return s; - }(i[l])), !m); - } - if (v.isFormData(t) && v.isFunction(t.entries)) { - const r = {}; - return v.forEachEntry(t, (n, i) => { - e(function(u) { - return v.matchAll(/\w+|\[(\w*)]/g, u).map((l) => l[0] === "[]" ? "" : l[1] || l[0]); - }(n), i, r, 0); - }), r; - } - return null; -} -const Y = { transitional: be, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) { - const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, i = v.isObject(t); - if (i && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t)) return n ? JSON.stringify(we(t)) : t; - if (v.isArrayBuffer(t) || v.isBuffer(t) || v.isStream(t) || v.isFile(t) || v.isBlob(t) || v.isReadableStream(t)) return t; - if (v.isArrayBufferView(t)) return t.buffer; - if (v.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); - let u; - if (i) { - if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(l, m) { - return ct(l, new k.classes.URLSearchParams(), Object.assign({ visitor: function(y, g, s, b) { - return k.isNode && v.isBuffer(y) ? (this.append(g, y.toString("base64")), !1) : b.defaultVisitor.apply(this, arguments); - } }, m)); - }(t, this.formSerializer).toString(); - if ((u = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { - const l = this.env && this.env.FormData; - return ct(u ? { "files[]": t } : t, l && new l(), this.formSerializer); - } - } - return i || n ? (e.setContentType("application/json", !1), function(l, m, y) { - if (v.isString(l)) try { - return (m || JSON.parse)(l), v.trim(l); - } catch (g) { - if (g.name !== "SyntaxError") throw g; - } - return (y || JSON.stringify)(l); - }(t)) : t; -}], transformResponse: [function(t) { - const e = this.transitional || Y.transitional, r = e && e.forcedJSONParsing, n = this.responseType === "json"; - if (v.isResponse(t) || v.isReadableStream(t)) return t; - if (t && v.isString(t) && (r && !this.responseType || n)) { - const i = !(e && e.silentJSONParsing) && n; - try { - return JSON.parse(t); - } catch (u) { - if (i) - throw u.name === "SyntaxError" ? C.from(u, C.ERR_BAD_RESPONSE, this, null, this.response) : u; - } - } - return t; -}], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: k.classes.FormData, Blob: k.classes.Blob }, validateStatus: function(t) { - return t >= 200 && t < 300; -}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; -v.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { - Y.headers[t] = {}; -}); -const Ze = v.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]), re = Symbol("internals"); -function J(t) { - return t && String(t).trim().toLowerCase(); -} -function rt(t) { - return t === !1 || t == null ? t : v.isArray(t) ? t.map(rt) : String(t); -} -function mt(t, e, r, n, i) { - return v.isFunction(n) ? n.call(this, e, r) : (i && (e = r), v.isString(e) ? v.isString(n) ? e.indexOf(n) !== -1 : v.isRegExp(n) ? n.test(e) : void 0 : void 0); -} -class N { - constructor(e) { - e && this.set(e); - } - set(e, r, n) { - const i = this; - function u(m, y, g) { - const s = J(y); - if (!s) throw new Error("header name must be a non-empty string"); - const b = v.findKey(i, s); - (!b || i[b] === void 0 || g === !0 || g === void 0 && i[b] !== !1) && (i[b || y] = rt(m)); - } - const l = (m, y) => v.forEach(m, (g, s) => u(g, s, y)); - if (v.isPlainObject(e) || e instanceof this.constructor) l(e, r); - else if (v.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())) l(((m) => { - const y = {}; - let g, s, b; - return m && m.split(` -`).forEach(function(w) { - b = w.indexOf(":"), g = w.substring(0, b).trim().toLowerCase(), s = w.substring(b + 1).trim(), !g || y[g] && Ze[g] || (g === "set-cookie" ? y[g] ? y[g].push(s) : y[g] = [s] : y[g] = y[g] ? y[g] + ", " + s : s); - }), y; - })(e), r); - else if (v.isHeaders(e)) for (const [m, y] of e.entries()) u(y, m, n); - else e != null && u(r, e, n); - return this; - } - get(e, r) { - if (e = J(e)) { - const n = v.findKey(this, e); - if (n) { - const i = this[n]; - if (!r) return i; - if (r === !0) return function(u) { - const l = /* @__PURE__ */ Object.create(null), m = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; - let y; - for (; y = m.exec(u); ) l[y[1]] = y[2]; - return l; - }(i); - if (v.isFunction(r)) return r.call(this, i, n); - if (v.isRegExp(r)) return r.exec(i); - throw new TypeError("parser must be boolean|regexp|function"); - } - } - } - has(e, r) { - if (e = J(e)) { - const n = v.findKey(this, e); - return !(!n || this[n] === void 0 || r && !mt(0, this[n], n, r)); - } - return !1; - } - delete(e, r) { - const n = this; - let i = !1; - function u(l) { - if (l = J(l)) { - const m = v.findKey(n, l); - !m || r && !mt(0, n[m], m, r) || (delete n[m], i = !0); - } - } - return v.isArray(e) ? e.forEach(u) : u(e), i; - } - clear(e) { - const r = Object.keys(this); - let n = r.length, i = !1; - for (; n--; ) { - const u = r[n]; - e && !mt(0, this[u], u, e, !0) || (delete this[u], i = !0); - } - return i; - } - normalize(e) { - const r = this, n = {}; - return v.forEach(this, (i, u) => { - const l = v.findKey(n, u); - if (l) return r[l] = rt(i), void delete r[u]; - const m = e ? function(y) { - return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (g, s, b) => s.toUpperCase() + b); - }(u) : String(u).trim(); - m !== u && delete r[u], r[m] = rt(i), n[m] = !0; - }), this; - } - concat(...e) { - return this.constructor.concat(this, ...e); - } - toJSON(e) { - const r = /* @__PURE__ */ Object.create(null); - return v.forEach(this, (n, i) => { - n != null && n !== !1 && (r[i] = e && v.isArray(n) ? n.join(", ") : n); - }), r; - } - [Symbol.iterator]() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - toString() { - return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(` -`); - } - get [Symbol.toStringTag]() { - return "AxiosHeaders"; - } - static from(e) { - return e instanceof this ? e : new this(e); - } - static concat(e, ...r) { - const n = new this(e); - return r.forEach((i) => n.set(i)), n; - } - static accessor(e) { - const r = (this[re] = this[re] = { accessors: {} }).accessors, n = this.prototype; - function i(u) { - const l = J(u); - r[l] || (function(m, y) { - const g = v.toCamelCase(" " + y); - ["get", "set", "has"].forEach((s) => { - Object.defineProperty(m, s + g, { value: function(b, w, A) { - return this[s].call(this, y, b, w, A); - }, configurable: !0 }); - }); - }(n, u), r[l] = !0); - } - return v.isArray(e) ? e.forEach(i) : i(e), this; - } -} -function bt(t, e) { - const r = this || Y, n = e || r, i = N.from(n.headers); - let u = n.data; - return v.forEach(t, function(l) { - u = l.call(r, u, i.normalize(), e ? e.status : void 0); - }), i.normalize(), u; -} -function ve(t) { - return !(!t || !t.__CANCEL__); -} -function $(t, e, r) { - C.call(this, t ?? "canceled", C.ERR_CANCELED, e, r), this.name = "CanceledError"; -} -function Ae(t, e, r) { - const n = r.config.validateStatus; - r.status && n && !n(r.status) ? e(new C("Request failed with status code " + r.status, [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r); -} -N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), v.reduceDescriptors(N.prototype, ({ value: t }, e) => { - let r = e[0].toUpperCase() + e.slice(1); - return { get: () => t, set(n) { - this[r] = n; - } }; -}), v.freezeMethods(N), v.inherits($, C, { __CANCEL__: !0 }); -const ut = (t, e, r = 3) => { - let n = 0; - const i = function(u, l) { - u = u || 10; - const m = new Array(u), y = new Array(u); - let g, s = 0, b = 0; - return l = l !== void 0 ? l : 1e3, function(w) { - const A = Date.now(), d = y[b]; - g || (g = A), m[s] = w, y[s] = A; - let c = b, o = 0; - for (; c !== s; ) o += m[c++], c %= u; - if (s = (s + 1) % u, s === b && (b = (b + 1) % u), A - g < l) return; - const a = d && A - d; - return a ? Math.round(1e3 * o / a) : void 0; - }; - }(50, 250); - return function(u, l) { - let m = 0; - const y = 1e3 / l; - let g = null; - return function() { - const s = this === !0, b = Date.now(); - if (s || b - m > y) return g && (clearTimeout(g), g = null), m = b, u.apply(null, arguments); - g || (g = setTimeout(() => (g = null, m = Date.now(), u.apply(null, arguments)), y - (b - m))); - }; - }((u) => { - const l = u.loaded, m = u.lengthComputable ? u.total : void 0, y = l - n, g = i(y); - n = l; - const s = { loaded: l, total: m, progress: m ? l / m : void 0, bytes: y, rate: g || void 0, estimated: g && m && l <= m ? (m - l) / g : void 0, event: u, lengthComputable: m != null }; - s[e ? "download" : "upload"] = !0, t(s); - }, r); -}, tr = k.hasStandardBrowserEnv ? function() { - const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); - let r; - function n(i) { - let u = i; - return t && (e.setAttribute("href", u), u = e.href), e.setAttribute("href", u), { href: e.href, protocol: e.protocol ? e.protocol.replace(/:$/, "") : "", host: e.host, search: e.search ? e.search.replace(/^\?/, "") : "", hash: e.hash ? e.hash.replace(/^#/, "") : "", hostname: e.hostname, port: e.port, pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname }; - } - return r = n(window.location.href), function(i) { - const u = v.isString(i) ? n(i) : i; - return u.protocol === r.protocol && u.host === r.host; - }; -}() : function() { - return !0; -}, er = k.hasStandardBrowserEnv ? { write(t, e, r, n, i, u) { - const l = [t + "=" + encodeURIComponent(e)]; - v.isNumber(r) && l.push("expires=" + new Date(r).toGMTString()), v.isString(n) && l.push("path=" + n), v.isString(i) && l.push("domain=" + i), u === !0 && l.push("secure"), document.cookie = l.join("; "); -}, read(t) { - const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); - return e ? decodeURIComponent(e[3]) : null; -}, remove(t) { - this.write(t, "", Date.now() - 864e5); -} } : { write() { -}, read: () => null, remove() { -} }; -function Ee(t, e) { - return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) { - return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r; - }(t, e) : e; -} -const ne = (t) => t instanceof N ? { ...t } : t; -function W(t, e) { - e = e || {}; - const r = {}; - function n(g, s, b) { - return v.isPlainObject(g) && v.isPlainObject(s) ? v.merge.call({ caseless: b }, g, s) : v.isPlainObject(s) ? v.merge({}, s) : v.isArray(s) ? s.slice() : s; - } - function i(g, s, b) { - return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g, b) : n(g, s, b); - } - function u(g, s) { - if (!v.isUndefined(s)) return n(void 0, s); - } - function l(g, s) { - return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, s); - } - function m(g, s, b) { - return b in e ? n(g, s) : b in t ? n(void 0, g) : void 0; - } - const y = { url: u, method: u, data: u, baseURL: l, transformRequest: l, transformResponse: l, paramsSerializer: l, timeout: l, timeoutMessage: l, withCredentials: l, withXSRFToken: l, adapter: l, responseType: l, xsrfCookieName: l, xsrfHeaderName: l, onUploadProgress: l, onDownloadProgress: l, decompress: l, maxContentLength: l, maxBodyLength: l, beforeRedirect: l, transport: l, httpAgent: l, httpsAgent: l, cancelToken: l, socketPath: l, responseEncoding: l, validateStatus: m, headers: (g, s) => i(ne(g), ne(s), !0) }; - return v.forEach(Object.keys(Object.assign({}, t, e)), function(g) { - const s = y[g] || i, b = s(t[g], e[g], g); - v.isUndefined(b) && s !== m || (r[g] = b); - }), r; -} -const Se = (t) => { - const e = W({}, t); - let r, { data: n, withXSRFToken: i, xsrfHeaderName: u, xsrfCookieName: l, headers: m, auth: y } = e; - if (e.headers = m = N.from(m), e.url = me(Ee(e.baseURL, e.url), t.params, t.paramsSerializer), y && m.set("Authorization", "Basic " + btoa((y.username || "") + ":" + (y.password ? unescape(encodeURIComponent(y.password)) : ""))), v.isFormData(n)) { - if (k.hasStandardBrowserEnv || k.hasStandardBrowserWebWorkerEnv) m.setContentType(void 0); - else if ((r = m.getContentType()) !== !1) { - const [g, ...s] = r ? r.split(";").map((b) => b.trim()).filter(Boolean) : []; - m.setContentType([g || "multipart/form-data", ...s].join("; ")); - } - } - if (k.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(e)), i || i !== !1 && tr(e.url))) { - const g = u && l && er.read(l); - g && m.set(u, g); - } - return e; -}, rr = typeof XMLHttpRequest < "u" && function(t) { - return new Promise(function(e, r) { - const n = Se(t); - let i = n.data; - const u = N.from(n.headers).normalize(); - let l, { responseType: m } = n; - function y() { - n.cancelToken && n.cancelToken.unsubscribe(l), n.signal && n.signal.removeEventListener("abort", l); - } - let g = new XMLHttpRequest(); - function s() { - if (!g) return; - const w = N.from("getAllResponseHeaders" in g && g.getAllResponseHeaders()); - Ae(function(A) { - e(A), y(); - }, function(A) { - r(A), y(); - }, { data: m && m !== "text" && m !== "json" ? g.response : g.responseText, status: g.status, statusText: g.statusText, headers: w, config: t, request: g }), g = null; - } - g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = s : g.onreadystatechange = function() { - g && g.readyState === 4 && (g.status !== 0 || g.responseURL && g.responseURL.indexOf("file:") === 0) && setTimeout(s); - }, g.onabort = function() { - g && (r(new C("Request aborted", C.ECONNABORTED, n, g)), g = null); - }, g.onerror = function() { - r(new C("Network Error", C.ERR_NETWORK, n, g)), g = null; - }, g.ontimeout = function() { - let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded"; - const A = n.transitional || be; - n.timeoutErrorMessage && (w = n.timeoutErrorMessage), r(new C(w, A.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED, n, g)), g = null; - }, i === void 0 && u.setContentType(null), "setRequestHeader" in g && v.forEach(u.toJSON(), function(w, A) { - g.setRequestHeader(A, w); - }), v.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), m && m !== "json" && (g.responseType = n.responseType), typeof n.onDownloadProgress == "function" && g.addEventListener("progress", ut(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && g.upload && g.upload.addEventListener("progress", ut(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (w) => { - g && (r(!w || w.type ? new $(null, t, g) : w), g.abort(), g = null); - }, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l))); - const b = function(w) { - const A = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w); - return A && A[1] || ""; - }(n.url); - b && k.protocols.indexOf(b) === -1 ? r(new C("Unsupported protocol " + b + ":", C.ERR_BAD_REQUEST, t)) : g.send(i || null); - }); -}, nr = (t, e) => { - let r, n = new AbortController(); - const i = function(y) { - if (!r) { - r = !0, l(); - const g = y instanceof Error ? y : this.reason; - n.abort(g instanceof C ? g : new $(g instanceof Error ? g.message : g)); - } - }; - let u = e && setTimeout(() => { - i(new C(`timeout ${e} of ms exceeded`, C.ETIMEDOUT)); - }, e); - const l = () => { - t && (u && clearTimeout(u), u = null, t.forEach((y) => { - y && (y.removeEventListener ? y.removeEventListener("abort", i) : y.unsubscribe(i)); - }), t = null); - }; - t.forEach((y) => y && y.addEventListener && y.addEventListener("abort", i)); - const { signal: m } = n; - return m.unsubscribe = l, [m, () => { - u && clearTimeout(u), u = null; - }]; -}, or = function* (t, e) { - let r = t.byteLength; - if (!e || r < e) return void (yield t); - let n, i = 0; - for (; i < r; ) n = i + e, yield t.slice(i, n), i = n; -}, oe = (t, e, r, n, i) => { - const u = async function* (m, y, g) { - for await (const s of m) yield* or(ArrayBuffer.isView(s) ? s : await g(String(s)), y); - }(t, e, i); - let l = 0; - return new ReadableStream({ type: "bytes", async pull(m) { - const { done: y, value: g } = await u.next(); - if (y) return m.close(), void n(); - let s = g.byteLength; - r && r(l += s), m.enqueue(new Uint8Array(g)); - }, cancel: (m) => (n(m), u.return()) }, { highWaterMark: 2 }); -}, se = (t, e) => { - const r = t != null; - return (n) => setTimeout(() => e({ lengthComputable: r, total: t, loaded: n })); -}, ht = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ce = ht && typeof ReadableStream == "function", St = ht && (typeof TextEncoder == "function" ? (ie = new TextEncoder(), (t) => ie.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); -var ie; -const sr = Ce && (() => { - let t = !1; - const e = new Request(k.origin, { body: new ReadableStream(), method: "POST", get duplex() { - return t = !0, "half"; - } }).headers.has("Content-Type"); - return t && !e; -})(), Ct = Ce && !!(() => { - try { - return v.isReadableStream(new Response("").body); - } catch { - } -})(), lt = { stream: Ct && ((t) => t.body) }; -var ae; -ht && (ae = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { - !lt[t] && (lt[t] = v.isFunction(ae[t]) ? (e) => e[t]() : (e, r) => { - throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r); - }); -})); -const ir = async (t, e) => { - const r = v.toFiniteNumber(t.getContentLength()); - return r ?? (async (n) => n == null ? 0 : v.isBlob(n) ? n.size : v.isSpecCompliantForm(n) ? (await new Request(n).arrayBuffer()).byteLength : v.isArrayBufferView(n) ? n.byteLength : (v.isURLSearchParams(n) && (n += ""), v.isString(n) ? (await St(n)).byteLength : void 0))(e); -}, Oe = { http: null, xhr: rr, fetch: ht && (async (t) => { - let { url: e, method: r, data: n, signal: i, cancelToken: u, timeout: l, onDownloadProgress: m, onUploadProgress: y, responseType: g, headers: s, withCredentials: b = "same-origin", fetchOptions: w } = Se(t); - g = g ? (g + "").toLowerCase() : "text"; - let A, d, [c, o] = i || u || l ? nr([i, u], l) : []; - const a = () => { - !A && setTimeout(() => { - c && c.unsubscribe(); - }), A = !0; - }; - let f; - try { - if (y && sr && r !== "get" && r !== "head" && (f = await ir(s, n)) !== 0) { - let S, T = new Request(e, { method: "POST", body: n, duplex: "half" }); - v.isFormData(n) && (S = T.headers.get("content-type")) && s.setContentType(S), T.body && (n = oe(T.body, 65536, se(f, ut(y)), null, St)); - } - v.isString(b) || (b = b ? "cors" : "omit"), d = new Request(e, { ...w, signal: c, method: r.toUpperCase(), headers: s.normalize().toJSON(), body: n, duplex: "half", withCredentials: b }); - let p = await fetch(d); - const h = Ct && (g === "stream" || g === "response"); - if (Ct && (m || h)) { - const S = {}; - ["status", "statusText", "headers"].forEach((_) => { - S[_] = p[_]; - }); - const T = v.toFiniteNumber(p.headers.get("content-length")); - p = new Response(oe(p.body, 65536, m && se(T, ut(m, !0)), h && a, St), S); - } - g = g || "text"; - let E = await lt[v.findKey(lt, g) || "text"](p, t); - return !h && a(), o && o(), await new Promise((S, T) => { - Ae(S, T, { data: E, headers: N.from(p.headers), status: p.status, statusText: p.statusText, config: t, request: d }); - }); - } catch (p) { - throw a(), p && p.name === "TypeError" && /fetch/i.test(p.message) ? Object.assign(new C("Network Error", C.ERR_NETWORK, t, d), { cause: p.cause || p }) : C.from(p, p && p.code, t, d); - } -}) }; -v.forEach(Oe, (t, e) => { - if (t) { - try { - Object.defineProperty(t, "name", { value: e }); - } catch { - } - Object.defineProperty(t, "adapterName", { value: e }); - } -}); -const ce = (t) => `- ${t}`, ar = (t) => v.isFunction(t) || t === null || t === !1, Re = (t) => { - t = v.isArray(t) ? t : [t]; - const { length: e } = t; - let r, n; - const i = {}; - for (let u = 0; u < e; u++) { - let l; - if (r = t[u], n = r, !ar(r) && (n = Oe[(l = String(r)).toLowerCase()], n === void 0)) throw new C(`Unknown adapter '${l}'`); - if (n) break; - i[l || "#" + u] = n; - } - if (!n) { - const u = Object.entries(i).map(([l, m]) => `adapter ${l} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")); - throw new C("There is no suitable adapter to dispatch the request " + (e ? u.length > 1 ? `since : -` + u.map(ce).join(` -`) : " " + ce(u[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); - } - return n; -}; -function wt(t) { - if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new $(null, t); -} -function ue(t) { - return wt(t), t.headers = N.from(t.headers), t.data = bt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Re(t.adapter || Y.adapter)(t).then(function(e) { - return wt(t), e.data = bt.call(t, t.transformResponse, e), e.headers = N.from(e.headers), e; - }, function(e) { - return ve(e) || (wt(t), e && e.response && (e.response.data = bt.call(t, t.transformResponse, e.response), e.response.headers = N.from(e.response.headers))), Promise.reject(e); - }); -} -const cr = "1.7.2", Mt = {}; -["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { - Mt[t] = function(r) { - return typeof r === t || "a" + (e < 1 ? "n " : " ") + t; - }; -}); -const le = {}; -Mt.transitional = function(t, e, r) { - function n(i, u) { - return "[Axios v1.7.2] Transitional option '" + i + "'" + u + (r ? ". " + r : ""); - } - return (i, u, l) => { - if (t === !1) throw new C(n(u, " has been removed" + (e ? " in " + e : "")), C.ERR_DEPRECATED); - return e && !le[u] && (le[u] = !0, console.warn(n(u, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(i, u, l); - }; -}; -const Ot = { assertOptions: function(t, e, r) { - if (typeof t != "object") throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE); - const n = Object.keys(t); - let i = n.length; - for (; i-- > 0; ) { - const u = n[i], l = e[u]; - if (l) { - const m = t[u], y = m === void 0 || l(m, u, t); - if (y !== !0) throw new C("option " + u + " must be " + y, C.ERR_BAD_OPTION_VALUE); - } else if (r !== !0) throw new C("Unknown option " + u, C.ERR_BAD_OPTION); - } -}, validators: Mt }, M = Ot.validators; -class I { - constructor(e) { - this.defaults = e, this.interceptors = { request: new te(), response: new te() }; - } - async request(e, r) { - try { - return await this._request(e, r); - } catch (n) { - if (n instanceof Error) { - let i; - Error.captureStackTrace ? Error.captureStackTrace(i = {}) : i = new Error(); - const u = i.stack ? i.stack.replace(/^.+\n/, "") : ""; - try { - n.stack ? u && !String(n.stack).endsWith(u.replace(/^.+\n.+\n/, "")) && (n.stack += ` -` + u) : n.stack = u; - } catch { - } - } - throw n; - } - } - _request(e, r) { - typeof e == "string" ? (r = r || {}).url = e : r = e || {}, r = W(this.defaults, r); - const { transitional: n, paramsSerializer: i, headers: u } = r; - n !== void 0 && Ot.assertOptions(n, { silentJSONParsing: M.transitional(M.boolean), forcedJSONParsing: M.transitional(M.boolean), clarifyTimeoutError: M.transitional(M.boolean) }, !1), i != null && (v.isFunction(i) ? r.paramsSerializer = { serialize: i } : Ot.assertOptions(i, { encode: M.function, serialize: M.function }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase(); - let l = u && v.merge(u.common, u[r.method]); - u && v.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => { - delete u[d]; - }), r.headers = N.concat(l, u); - const m = []; - let y = !0; - this.interceptors.request.forEach(function(d) { - typeof d.runWhen == "function" && d.runWhen(r) === !1 || (y = y && d.synchronous, m.unshift(d.fulfilled, d.rejected)); - }); - const g = []; - let s; - this.interceptors.response.forEach(function(d) { - g.push(d.fulfilled, d.rejected); - }); - let b, w = 0; - if (!y) { - const d = [ue.bind(this), void 0]; - for (d.unshift.apply(d, m), d.push.apply(d, g), b = d.length, s = Promise.resolve(r); w < b; ) s = s.then(d[w++], d[w++]); - return s; - } - b = m.length; - let A = r; - for (w = 0; w < b; ) { - const d = m[w++], c = m[w++]; - try { - A = d(A); - } catch (o) { - c.call(this, o); - break; - } - } - try { - s = ue.call(this, A); - } catch (d) { - return Promise.reject(d); - } - for (w = 0, b = g.length; w < b; ) s = s.then(g[w++], g[w++]); - return s; - } - getUri(e) { - return me(Ee((e = W(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer); - } -} -v.forEach(["delete", "get", "head", "options"], function(t) { - I.prototype[t] = function(e, r) { - return this.request(W(r || {}, { method: t, url: e, data: (r || {}).data })); - }; -}), v.forEach(["post", "put", "patch"], function(t) { - function e(r) { - return function(n, i, u) { - return this.request(W(u || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: i })); - }; - } - I.prototype[t] = e(), I.prototype[t + "Form"] = e(!0); -}); -class Dt { - constructor(e) { - if (typeof e != "function") throw new TypeError("executor must be a function."); - let r; - this.promise = new Promise(function(i) { - r = i; - }); - const n = this; - this.promise.then((i) => { - if (!n._listeners) return; - let u = n._listeners.length; - for (; u-- > 0; ) n._listeners[u](i); - n._listeners = null; - }), this.promise.then = (i) => { - let u; - const l = new Promise((m) => { - n.subscribe(m), u = m; - }).then(i); - return l.cancel = function() { - n.unsubscribe(u); - }, l; - }, e(function(i, u, l) { - n.reason || (n.reason = new $(i, u, l), r(n.reason)); - }); - } - throwIfRequested() { - if (this.reason) throw this.reason; - } - subscribe(e) { - this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]; - } - unsubscribe(e) { - if (!this._listeners) return; - const r = this._listeners.indexOf(e); - r !== -1 && this._listeners.splice(r, 1); - } - static source() { - let e; - return { token: new Dt(function(r) { - e = r; - }), cancel: e }; - } -} -const Rt = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; -Object.entries(Rt).forEach(([t, e]) => { - Rt[e] = t; -}); -const x = function t(e) { - const r = new I(e), n = pe(I.prototype.request, r); - return v.extend(n, I.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(i) { - return t(W(e, i)); - }, n; -}(Y); -x.Axios = I, x.CanceledError = $, x.CancelToken = Dt, x.isCancel = ve, x.VERSION = cr, x.toFormData = ct, x.AxiosError = C, x.Cancel = x.CanceledError, x.all = function(t) { - return Promise.all(t); -}, x.spread = function(t) { - return function(e) { - return t.apply(null, e); - }; -}, x.isAxiosError = function(t) { - return v.isObject(t) && t.isAxiosError === !0; -}, x.mergeConfig = W, x.AxiosHeaders = N, x.formToJSON = (t) => we(v.isHTMLForm(t) ? new FormData(t) : t), x.getAdapter = Re, x.HttpStatusCode = Rt, x.default = x; -var ur = Object.defineProperty, P = (t, e, r) => (((n, i, u) => { - i in n ? ur(n, i, { enumerable: !0, configurable: !0, writable: !0, value: u }) : n[i] = u; -})(t, typeof e != "symbol" ? e + "" : e, r), r), Te = (t, e, r) => { - if (!e.has(t)) throw TypeError("Cannot " + r); -}, O = (t, e, r) => (Te(t, e, "read from private field"), r ? r.call(t) : e.get(t)), j = (t, e, r) => { - if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); - e instanceof WeakSet ? e.add(t) : e.set(t, r); -}, L = (t, e, r, n) => (Te(t, e, "write to private field"), e.set(t, r), r); -function lr(t) { - return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; -} -var fe, xe = {}; -fe = xe, function(t, e) { - var r = e(); - for (var n in r) fe[n] = r[n]; -}(0, function() { - var t = function(u) { - return typeof u != "string" ? u : u.replace(/[\+ \|\^\%]/g, function(l) { - return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[l]; - }); - }, e = function(u) { - return typeof u != "string" ? u : u.replace(/\+|%2B|%7C|%5E|%25/g, function(l) { - return { "+": " ", "%2B": "+", "%7C": "|", "%5E": "^", "%25": "%" }[l]; - }); - }, r = function(u) { - return Number.prototype.toString.call(u, 36).toUpperCase(); - }, n = function(u) { - return parseInt(u, 36); - }, i = Array.prototype.indexOf || function(u, l) { - for (var m = l || 0, y = this.length; m < y; m++) if (this[m] === u) return m; - return -1; - }; - return { JSON, pack: function(u, l) { - var m = (l = l || {}).verbose || !1; - m && console.log("Normalize the JSON Object"), u = typeof u == "string" ? this.JSON.parse(u) : u, m && console.log("Creating a empty dictionary"); - var y = { strings: [], integers: [], floats: [] }; - m && console.log("Creating the AST"); - var g = function A(d) { - m && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(d)); - var c, o = typeof d; - if (d === null) return { type: "null", index: -3 }; - if (typeof d > "u") return { type: "undefined", index: -5 }; - if (d instanceof Array) { - var a = ["@"]; - for (var f in d) d.hasOwnProperty(f) && a.push(A(d[f])); - return a; - } - if (o === "object") { - for (var p in a = ["$"], d) d.hasOwnProperty(p) && (a.push(A(p)), a.push(A(d[p]))); - return a; - } - if (d === "") return { type: "empty", index: -4 }; - if (o === "string") return (c = i.call(y.strings, d)) == -1 && (y.strings.push(t(d)), c = y.strings.length - 1), { type: "strings", index: c }; - if (o === "number" && d % 1 == 0) return (c = i.call(y.integers, d)) == -1 && (y.integers.push(r(d)), c = y.integers.length - 1), { type: "integers", index: c }; - if (o === "number") return (c = i.call(y.floats, d)) == -1 && (y.floats.push(d), c = y.floats.length - 1), { type: "floats", index: c }; - if (o === "boolean") return { type: "boolean", index: d ? -1 : -2 }; - throw new Error("Unexpected argument of type " + typeof d); - }(u), s = y.strings.length, b = y.integers.length; - y.floats.length, m && console.log("Parsing the dictionary"); - var w = y.strings.join("|"); - return w += "^" + y.integers.join("|"), w += "^" + y.floats.join("|"), m && console.log("Parsing the structure"), w += "^" + function A(d) { - if (m && console.log("Calling a recursiveParser with " + this.JSON.stringify(d)), d instanceof Array) { - var c = d.shift(); - for (var o in d) d.hasOwnProperty(o) && (c += A(d[o]) + "|"); - return (c[c.length - 1] === "|" ? c.slice(0, -1) : c) + "]"; - } - var a = d.type, f = d.index; - if (a === "strings") return r(f); - if (a === "integers") return r(s + f); - if (a === "floats") return r(s + b + f); - if (a === "boolean") return d.index; - if (a === "null") return -3; - if (a === "undefined") return -5; - if (a === "empty") return -4; - throw new TypeError("The item is alien!"); - }(g), m && console.log("Ending parser"), l.debug ? { dictionary: y, ast: g, packed: w } : w; - }, unpack: function(u, l) { - l = l || {}; - var m = u.split("^"); - l.verbose && console.log("Building dictionary"); - var y = [], g = m[0]; - if (g !== "") { - g = g.split("|"), l.verbose && console.log("Parse the strings dictionary"); - for (var s = 0, b = g.length; s < b; s++) y.push(e(g[s])); - } - if ((g = m[1]) !== "") for (g = g.split("|"), l.verbose && console.log("Parse the integers dictionary"), s = 0, b = g.length; s < b; s++) y.push(n(g[s])); - if ((g = m[2]) !== "") for (g = g.split("|"), l.verbose && console.log("Parse the floats dictionary"), s = 0, b = g.length; s < b; s++) y.push(parseFloat(g[s])); - g = null, l.verbose && console.log("Tokenizing the structure"); - var w = "", A = [], d = m[3].length; - for (s = 0; s < d; s++) { - var c = m[3].charAt(s); - c === "|" || c === "$" || c === "@" || c === "]" ? (w && (A.push(n(w)), w = ""), c !== "|" && A.push(c)) : w += c; - } - var o = A.length, a = 0; - return l.verbose && console.log("Starting recursive parser"), function f() { - var p = A[a++]; - if (l.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") { - for (var h = []; a < o; a++) { - var E = A[a]; - if (l.verbose && console.log("Read " + E + " symbol"), E === "]") return h; - if (E === "@" || E === "$") h.push(f()); - else switch (E) { - case -1: - h.push(!0); - break; - case -2: - h.push(!1); - break; - case -3: - h.push(null); - break; - case -5: - h.push(void 0); - break; - case -4: - h.push(""); - break; - default: - h.push(y[E]); - } - } - return l.verbose && console.log("Parsed " + this.JSON.stringify(h)), h; - } - if (p === "$") { - for (h = {}; a < o; a++) { - var S = A[a]; - if (S === "]") return h; - if (S = S === -4 ? "" : y[S], (E = A[++a]) === "@" || E === "$") h[S] = f(); - else switch (E) { - case -1: - h[S] = !0; - break; - case -2: - h[S] = !1; - break; - case -3: - h[S] = null; - break; - case -5: - h[S] = void 0; - break; - case -4: - h[S] = ""; - break; - default: - h[S] = y[E]; - } - } - return l.verbose && console.log("Parsed " + this.JSON.stringify(h)), h; - } - throw new TypeError("Bad token " + p + " isn't a type"); - }(); - } }; -}); -const he = lr(xe); -var G, X, H, q, Tt, xt, nt, Pt, _t; -class jt { - constructor(e, r, n, i, u) { - return P(this, "code", 0), P(this, "message", "操作成功"), P(this, "data", null), P(this, "url", ""), P(this, "res", ""), j(this, G, null), j(this, X, !0), j(this, H, !0), j(this, q, { get: (l, m) => O(this, Tt).call(this, m), ownKeys: () => Object.keys(O(this, q).getPrototypeOf() || {}), getPrototypeOf: () => O(this, X) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: O(this, q).getPrototypeOf() }) }), j(this, Tt, (l) => l === "$echoMsg" ? O(this, nt) : l === "msg" ? O(this, xt) : l === "then" || l === "resp" ? (L(this, H, !0), L(this, X, l === "resp"), O(this, Pt)) : l === "catch" ? O(this, _t) : l === "IS_ECHO_MSG" ? O(this, H) : Reflect.get(this, l)), j(this, xt, (l = (y) => y, m = !1) => (O(this, nt).call(this), L(this, X, m), Promise.resolve(l == null ? void 0 : l(O(this, q).getPrototypeOf())))), j(this, nt, () => { - O(this, H) && (L(this, H, !1), gr.onMsg(this.code, this.message)); - }), j(this, Pt, (l) => [0, 1].includes(this.code) ? Promise.resolve(l == null ? void 0 : l(O(this, q).getPrototypeOf())) : Promise.reject(O(this, G))), j(this, _t, (l) => Promise.resolve(l(O(this, G)))), this.code = e, this.message = r, this.data = n, this.url = i, this.res = u, L(this, G, new Proxy(this, O(this, q))); - } -} -G = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(); -const vt = (t, e, r, n = "/", i = "") => new jt(t, e, r, n, i); -var de = ["utf8", "utf-8", "unicode-1-1-utf-8"], Pe = { TextEncoder: function(t) { - if (de.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); - this.encoding = "utf-8", this.encode = function(e) { - if (typeof e != "string") throw new TypeError("passed argument must be of tye string"); - var r = unescape(encodeURIComponent(e)), n = new Uint8Array(r.length); - const i = r.split(""); - for (let u = 0; u < i.length; u++) n[u] = i[u].charCodeAt(0); - return n; - }; -}, TextDecoder: function(t) { - if (de.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); - this.encoding = "utf-8", this.decode = function(e, r) { - if (typeof e > "u") return ""; - var n = typeof r < "u" && n in r && r.stream; - if (typeof n != "boolean") throw new TypeError("stream option must be boolean"); - if (ArrayBuffer.isView(e)) { - var i = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), u = new Array(i.length); - for (let l = 0; l < i.length; l++) u[l] = String.fromCharCode(i[l]); - return decodeURIComponent(escape(u.join(""))); - } - throw new TypeError("passed argument must be an array buffer view"); - }; -} }; -const fr = new Pe.TextEncoder("utf8"); -new Pe.TextDecoder("utf8"); -class hr { - constructor(e) { - if (P(this, "encodeTable", []), P(this, "decodeMap", new Uint8Array(256).fill(255)), e.length !== 62) throw new Error("Encoding alphabet must be 62 characters long"); - if (e.includes(` -`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character"); - this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255); - for (let r = 0; r < e.length; r++) this.decodeMap[e.charCodeAt(r)] = r; - } - encode(e) { - if (!e || e.length === 0) return []; - const r = new dr(this).encodeV2(e); - return String.fromCharCode(...r); - } - decode(e) { - if (!e || e.length === 0) return new Uint8Array(); - const r = new pr(this).decode(e); - return new TextDecoder().decode(r); - } -} -var ot, st, it, Q, Nt, F, D; -class dr { - constructor(e) { - j(this, ot, null), L(this, ot, e); - } - get6bits() { - let e = 7 & this.pos, r = this.pos >> 3; - e === 0 && (r -= 1, e = 8); - let n = this.src[r] >> 8 - e; - return e < 6 && r > 0 && (n |= this.src[r - 1] << e), 63 & n; - } - encodeV2(e) { - this.src = ((n) => fr.encode(n || ""))(e), this.pos = 8 * this.src.length; - const r = []; - for (; this.pos > 0; ) { - let n = 6, i = this.get6bits(); - !(30 & ~i) && ((this.pos > 6 || i > 31) && (n = 5), i &= 31), r.push(O(this, ot).encodeTable[i].charCodeAt(0)), this.pos -= n; - } - return r; - } -} -ot = /* @__PURE__ */ new WeakMap(); -class pr { - constructor(e) { - j(this, st, null), L(this, st, e); - } - decode(e) { - const r = new Uint8Array(Math.ceil(6 * e.length / 8) + 1); - let n = r.length, i = 0, u = 0; - for (let l = 0; l < e.length; l++) { - const m = e[l].charCodeAt(0), y = O(this, st).decodeMap[m]; - if (y === 255) throw new Error(`CorruptInputError at index ${l}`); - l === e.length - 1 ? (u |= y << i, i += Math.ceil(Math.log2(y + 1))) : 30 & ~y ? (u |= y << i, i += 6) : (u |= y << i, i += 5), i >= 8 && (n--, r[n] = 255 & u, i %= 8, u >>= 8); - } - return i > 0 && (n--, r[n] = 255 & u), r.slice(n); - } -} -st = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { - let t, e; - return { promise: new Promise((r, n) => { - t = r, e = n; - }), resolve: t, reject: e }; -}); -class Ut { - constructor(e, r, n = ({}) => Promise.reject({ code: -1, msg: "请初始化HTTP请求方法主体" })) { - j(this, it, void 0), j(this, Q, void 0), j(this, Nt, void 0), j(this, F, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), j(this, D, /* @__PURE__ */ new Map()), P(this, "request", ({ url: i = "/", method: u = "GET", ...l }, m = !1) => { - var y; - i = ((c, o) => c.replace(new RegExp(`^${o}+|${o}+$`, "g"), ""))(i, "/"); - const g = u.toUpperCase(), s = ((c) => { - let o = 5381; - for (let a = 0; a < c.length; a++) o = 33 * o ^ c.charCodeAt(a); - return (o >>> 0).toString(16); - })(JSON.stringify([i, g, l])), b = (y = i == null ? void 0 : i.includes) != null && y.call(i, "/_/") ? "#" : "$", { promise: w, resolve: A, reject: d } = Promise.withResolvers(); - return O(this, F)[b].has(s) ? (console.log("cache", i), A(O(this, F)[b].get(s))) : O(this, D).has(s) ? O(this, D).get(s).push([A, d]) : (O(this, D).set(s, [[A, d]]), O(this, it).call(this, { url: i, method: g, ...l }).then((c) => { - if (![0, 1].includes(c.code)) throw vt(c.code, c.msg, c.data, i, c == null ? void 0 : c.res); - return [c.code, c.msg, c.data, i, c == null ? void 0 : c.res]; - }).then((c) => ((b == "#" || g == "GET") && O(this, F)[b].set(s, c), b != "#" && g == "GET" && !m && setTimeout(() => { - O(this, F)[b].delete(s); - }, 300), c)).then((c) => { - var o; - return (o = O(this, D).get(s)) == null ? void 0 : o.forEach((a, f, p) => { - a && a[0](c), delete p[f]; - }); - }).catch((c) => { - var o; - O(this, F)[b].delete(s), (o = O(this, D).get(s)) == null || o.forEach((a, f, p) => { - a && a[1](c instanceof jt ? c : vt(-1, c, null, i)), delete p[f]; - }); - }).finally(() => O(this, D).delete(s))), new Proxy(w, { get: (c, o) => (...a) => c.then((f) => vt(...f)[o](...a)).catch((f) => { - if (!f instanceof jt) throw f; - return typeof f[o] == "function" ? f[o](...a) : f[o]; - }) }); - }), P(this, "get", (i, u = {}) => this.request({ url: i, method: "GET", params: u })), P(this, "post", (i, u = {}, l = {}) => this.request({ url: i, method: "POST", data: u, params: l })), P(this, "put", (i, u = {}, l = {}) => this.request({ url: i, method: "PUT", data: u, params: l })), P(this, "del", (i, u = {}, l = {}) => this.request({ url: i, method: "DELETE", data: u, params: l })), P(this, "download", (i, u) => { - }), P(this, "cache", (i, u = {}) => this.request({ url: i, method: "GET", params: u }, !0)), P(this, "list", (i, u = {}) => this.get(`/api/${i}/${this.encode(u)}`)), P(this, "getAppInfo", () => { - }), P(this, "refreshCache", (i = !1) => { - i && O(this, F)["#"].clear(), O(this, F).$.clear(); - }), P(this, "decode", (i = "", u = {}) => { - if (i === void 0 || i === "" || i === null) return u; - try { - const l = O(this, Q).decode(i); - return he.unpack(l); - } catch { - return console.warn("core.decode", i), u; - } - }), P(this, "encode", (i = {}) => { - const u = JSON.stringify(i, (l, m) => m === void 0 ? null : m); - return O(this, Q).encode(he.pack(u)); - }), L(this, Nt, e), L(this, it, n), L(this, Q, new hr(r)); - } -} -it = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(); -const gr = Ut; -Ut.onUnhandledRejection = (t) => { - var e, r, n, i, u, l; - t != null && t.IS_ECHO_MSG ? ((e = t == null ? void 0 : t.$echoMsg) == null || e.call(t), (r = t == null ? void 0 : t.preventDefault) == null || r.call(t)) : (n = t.reason) != null && n.IS_ECHO_MSG && ((u = (i = t.reason) == null ? void 0 : i.$echoMsg) == null || u.call(i), (l = t == null ? void 0 : t.preventDefault) == null || l.call(t)); -}, Ut.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e); -function qt(t) { - return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; -} -var _e = { exports: {} }; -/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */ -_e.exports = function() { - var t, e, r = { version: "0.2.0" }, n = r.settings = { minimum: 0.08, easing: "ease", positionUsing: "", speed: 200, trickle: !0, trickleRate: 0.02, trickleSpeed: 800, showSpinner: !0, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: "body", template: '
' }; - function i(d, c, o) { - return d < c ? c : d > o ? o : d; - } - function u(d) { - return 100 * (-1 + d); - } - function l(d, c, o) { - var a; - return (a = n.positionUsing === "translate3d" ? { transform: "translate3d(" + u(d) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + u(d) + "%,0)" } : { "margin-left": u(d) + "%" }).transition = "all " + c + "ms " + o, a; - } - r.configure = function(d) { - var c, o; - for (c in d) (o = d[c]) !== void 0 && d.hasOwnProperty(c) && (n[c] = o); - return this; - }, r.status = null, r.set = function(d) { - var c = r.isStarted(); - d = i(d, n.minimum, 1), r.status = d === 1 ? null : d; - var o = r.render(!c), a = o.querySelector(n.barSelector), f = n.speed, p = n.easing; - return o.offsetWidth, m(function(h) { - n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), y(a, l(d, f, p)), d === 1 ? (y(o, { transition: "none", opacity: 1 }), o.offsetWidth, setTimeout(function() { - y(o, { transition: "all " + f + "ms linear", opacity: 0 }), setTimeout(function() { - r.remove(), h(); - }, f); - }, f)) : setTimeout(h, f); - }), this; - }, r.isStarted = function() { - return typeof r.status == "number"; - }, r.start = function() { - r.status || r.set(0); - var d = function() { - setTimeout(function() { - r.status && (r.trickle(), d()); - }, n.trickleSpeed); - }; - return n.trickle && d(), this; - }, r.done = function(d) { - return d || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this; - }, r.inc = function(d) { - var c = r.status; - return c ? (typeof d != "number" && (d = (1 - c) * i(Math.random() * c, 0.1, 0.95)), c = i(c + d, 0, 0.994), r.set(c)) : r.start(); - }, r.trickle = function() { - return r.inc(Math.random() * n.trickleRate); - }, t = 0, e = 0, r.promise = function(d) { - return d && d.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, d.always(function() { - --e == 0 ? (t = 0, r.done()) : r.set((t - e) / t); - }), this) : this; - }, r.render = function(d) { - if (r.isRendered()) return document.getElementById("nprogress"); - s(document.documentElement, "nprogress-busy"); - var c = document.createElement("div"); - c.id = "nprogress", c.innerHTML = n.template; - var o, a = c.querySelector(n.barSelector), f = d ? "-100" : u(r.status || 0), p = document.querySelector(n.parent); - return y(a, { transition: "all 0 linear", transform: "translate3d(" + f + "%,0,0)" }), n.showSpinner || (o = c.querySelector(n.spinnerSelector)) && A(o), p != document.body && s(p, "nprogress-custom-parent"), p.appendChild(c), c; - }, r.remove = function() { - b(document.documentElement, "nprogress-busy"), b(document.querySelector(n.parent), "nprogress-custom-parent"); - var d = document.getElementById("nprogress"); - d && A(d); - }, r.isRendered = function() { - return !!document.getElementById("nprogress"); - }, r.getPositioningCSS = function() { - var d = document.body.style, c = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : ""; - return c + "Perspective" in d ? "translate3d" : c + "Transform" in d ? "translate" : "margin"; - }; - var m = /* @__PURE__ */ function() { - var d = []; - function c() { - var o = d.shift(); - o && o(c); - } - return function(o) { - d.push(o), d.length == 1 && c(); - }; - }(), y = /* @__PURE__ */ function() { - var d = ["Webkit", "O", "Moz", "ms"], c = {}; - function o(h) { - return h.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(E, S) { - return S.toUpperCase(); - }); - } - function a(h) { - var E = document.body.style; - if (h in E) return h; - for (var S, T = d.length, _ = h.charAt(0).toUpperCase() + h.slice(1); T--; ) if ((S = d[T] + _) in E) return S; - return h; - } - function f(h) { - return h = o(h), c[h] || (c[h] = a(h)); - } - function p(h, E, S) { - E = f(E), h.style[E] = S; - } - return function(h, E) { - var S, T, _ = arguments; - if (_.length == 2) for (S in E) (T = E[S]) !== void 0 && E.hasOwnProperty(S) && p(h, S, T); - else p(h, _[1], _[2]); - }; - }(); - function g(d, c) { - return (typeof d == "string" ? d : w(d)).indexOf(" " + c + " ") >= 0; - } - function s(d, c) { - var o = w(d), a = o + c; - g(o, c) || (d.className = a.substring(1)); - } - function b(d, c) { - var o, a = w(d); - g(d, c) && (o = a.replace(" " + c + " ", " "), d.className = o.substring(1, o.length - 1)); - } - function w(d) { - return (" " + (d.className || "") + " ").replace(/\s+/gi, " "); - } - function A(d) { - d && d.parentNode && d.parentNode.removeChild(d); - } - return r; -}(); -const yr = qt(_e.exports); -var At, Et, kt = { exports: {} }; -At = kt, Et = kt.exports, function() { - var t = { version: "3.0.1", x86: {}, x64: {} }; - function e(s, b) { - return (65535 & s) * b + (((s >>> 16) * b & 65535) << 16); - } - function r(s, b) { - return s << b | s >>> 32 - b; - } - function n(s) { - return s = e(s ^= s >>> 16, 2246822507), s = e(s ^= s >>> 13, 3266489909), s ^= s >>> 16; - } - function i(s, b) { - s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]]; - var w = [0, 0, 0, 0]; - return w[3] += s[3] + b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] + b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] + b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] + b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; - } - function u(s, b) { - s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]]; - var w = [0, 0, 0, 0]; - return w[3] += s[3] * b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] * b[3], w[1] += w[2] >>> 16, w[2] &= 65535, w[2] += s[3] * b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] * b[3], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[2] * b[2], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[3] * b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] * b[3] + s[1] * b[2] + s[2] * b[1] + s[3] * b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; - } - function l(s, b) { - return (b %= 64) == 32 ? [s[1], s[0]] : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b | s[0] >>> 32 - b] : (b -= 32, [s[1] << b | s[0] >>> 32 - b, s[0] << b | s[1] >>> 32 - b]); - } - function m(s, b) { - return (b %= 64) == 0 ? s : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b] : [s[1] << b - 32, 0]; - } - function y(s, b) { - return [s[0] ^ b[0], s[1] ^ b[1]]; - } - function g(s) { - return s = y(s, [0, s[0] >>> 1]), s = y(s = u(s, [4283543511, 3981806797]), [0, s[0] >>> 1]), s = y(s = u(s, [3301882366, 444984403]), [0, s[0] >>> 1]); - } - t.x86.hash32 = function(s, b) { - b = b || 0; - for (var w = (s = s || "").length % 4, A = s.length - w, d = b, c = 0, o = 3432918353, a = 461845907, f = 0; f < A; f += 4) c = e(c = 255 & s.charCodeAt(f) | (255 & s.charCodeAt(f + 1)) << 8 | (255 & s.charCodeAt(f + 2)) << 16 | (255 & s.charCodeAt(f + 3)) << 24, o), c = e(c = r(c, 15), a), d = e(d = r(d ^= c, 13), 5) + 3864292196; - switch (c = 0, w) { - case 3: - c ^= (255 & s.charCodeAt(f + 2)) << 16; - case 2: - c ^= (255 & s.charCodeAt(f + 1)) << 8; - case 1: - c = e(c ^= 255 & s.charCodeAt(f), o), d ^= c = e(c = r(c, 15), a); - } - return (d = n(d ^= s.length)) >>> 0; - }, t.x86.hash128 = function(s, b) { - b = b || 0; - for (var w = (s = s || "").length % 16, A = s.length - w, d = b, c = b, o = b, a = b, f = 0, p = 0, h = 0, E = 0, S = 597399067, T = 2869860233, _ = 951274213, Z = 2716044179, R = 0; R < A; R += 16) f = 255 & s.charCodeAt(R) | (255 & s.charCodeAt(R + 1)) << 8 | (255 & s.charCodeAt(R + 2)) << 16 | (255 & s.charCodeAt(R + 3)) << 24, p = 255 & s.charCodeAt(R + 4) | (255 & s.charCodeAt(R + 5)) << 8 | (255 & s.charCodeAt(R + 6)) << 16 | (255 & s.charCodeAt(R + 7)) << 24, h = 255 & s.charCodeAt(R + 8) | (255 & s.charCodeAt(R + 9)) << 8 | (255 & s.charCodeAt(R + 10)) << 16 | (255 & s.charCodeAt(R + 11)) << 24, E = 255 & s.charCodeAt(R + 12) | (255 & s.charCodeAt(R + 13)) << 8 | (255 & s.charCodeAt(R + 14)) << 16 | (255 & s.charCodeAt(R + 15)) << 24, f = r(f = e(f, S), 15), d = r(d ^= f = e(f, T), 19), d = e(d += c, 5) + 1444728091, p = r(p = e(p, T), 16), c = r(c ^= p = e(p, _), 17), c = e(c += o, 5) + 197830471, h = r(h = e(h, _), 17), o = r(o ^= h = e(h, Z), 15), o = e(o += a, 5) + 2530024501, E = r(E = e(E, Z), 18), a = r(a ^= E = e(E, S), 13), a = e(a += d, 5) + 850148119; - switch (f = 0, p = 0, h = 0, E = 0, w) { - case 15: - E ^= s.charCodeAt(R + 14) << 16; - case 14: - E ^= s.charCodeAt(R + 13) << 8; - case 13: - E = e(E ^= s.charCodeAt(R + 12), Z), a ^= E = e(E = r(E, 18), S); - case 12: - h ^= s.charCodeAt(R + 11) << 24; - case 11: - h ^= s.charCodeAt(R + 10) << 16; - case 10: - h ^= s.charCodeAt(R + 9) << 8; - case 9: - h = e(h ^= s.charCodeAt(R + 8), _), o ^= h = e(h = r(h, 17), Z); - case 8: - p ^= s.charCodeAt(R + 7) << 24; - case 7: - p ^= s.charCodeAt(R + 6) << 16; - case 6: - p ^= s.charCodeAt(R + 5) << 8; - case 5: - p = e(p ^= s.charCodeAt(R + 4), T), c ^= p = e(p = r(p, 16), _); - case 4: - f ^= s.charCodeAt(R + 3) << 24; - case 3: - f ^= s.charCodeAt(R + 2) << 16; - case 2: - f ^= s.charCodeAt(R + 1) << 8; - case 1: - f = e(f ^= s.charCodeAt(R), S), d ^= f = e(f = r(f, 15), T); - } - return d ^= s.length, d += c ^= s.length, d += o ^= s.length, c += d += a ^= s.length, o += d, a += d, d = n(d), d += c = n(c), d += o = n(o), c += d += a = n(a), o += d, a += d, ("00000000" + (d >>> 0).toString(16)).slice(-8) + ("00000000" + (c >>> 0).toString(16)).slice(-8) + ("00000000" + (o >>> 0).toString(16)).slice(-8) + ("00000000" + (a >>> 0).toString(16)).slice(-8); - }, t.x64.hash128 = function(s, b) { - b = b || 0; - for (var w = (s = s || "").length % 16, A = s.length - w, d = [0, b], c = [0, b], o = [0, 0], a = [0, 0], f = [2277735313, 289559509], p = [1291169091, 658871167], h = 0; h < A; h += 16) o = [255 & s.charCodeAt(h + 4) | (255 & s.charCodeAt(h + 5)) << 8 | (255 & s.charCodeAt(h + 6)) << 16 | (255 & s.charCodeAt(h + 7)) << 24, 255 & s.charCodeAt(h) | (255 & s.charCodeAt(h + 1)) << 8 | (255 & s.charCodeAt(h + 2)) << 16 | (255 & s.charCodeAt(h + 3)) << 24], a = [255 & s.charCodeAt(h + 12) | (255 & s.charCodeAt(h + 13)) << 8 | (255 & s.charCodeAt(h + 14)) << 16 | (255 & s.charCodeAt(h + 15)) << 24, 255 & s.charCodeAt(h + 8) | (255 & s.charCodeAt(h + 9)) << 8 | (255 & s.charCodeAt(h + 10)) << 16 | (255 & s.charCodeAt(h + 11)) << 24], o = l(o = u(o, f), 31), d = i(d = l(d = y(d, o = u(o, p)), 27), c), d = i(u(d, [0, 5]), [0, 1390208809]), a = l(a = u(a, p), 33), c = i(c = l(c = y(c, a = u(a, f)), 31), d), c = i(u(c, [0, 5]), [0, 944331445]); - switch (o = [0, 0], a = [0, 0], w) { - case 15: - a = y(a, m([0, s.charCodeAt(h + 14)], 48)); - case 14: - a = y(a, m([0, s.charCodeAt(h + 13)], 40)); - case 13: - a = y(a, m([0, s.charCodeAt(h + 12)], 32)); - case 12: - a = y(a, m([0, s.charCodeAt(h + 11)], 24)); - case 11: - a = y(a, m([0, s.charCodeAt(h + 10)], 16)); - case 10: - a = y(a, m([0, s.charCodeAt(h + 9)], 8)); - case 9: - a = u(a = y(a, [0, s.charCodeAt(h + 8)]), p), c = y(c, a = u(a = l(a, 33), f)); - case 8: - o = y(o, m([0, s.charCodeAt(h + 7)], 56)); - case 7: - o = y(o, m([0, s.charCodeAt(h + 6)], 48)); - case 6: - o = y(o, m([0, s.charCodeAt(h + 5)], 40)); - case 5: - o = y(o, m([0, s.charCodeAt(h + 4)], 32)); - case 4: - o = y(o, m([0, s.charCodeAt(h + 3)], 24)); - case 3: - o = y(o, m([0, s.charCodeAt(h + 2)], 16)); - case 2: - o = y(o, m([0, s.charCodeAt(h + 1)], 8)); - case 1: - o = u(o = y(o, [0, s.charCodeAt(h)]), f), d = y(d, o = u(o = l(o, 31), p)); - } - return d = i(d = y(d, [0, s.length]), c = y(c, [0, s.length])), c = i(c, d), d = i(d = g(d), c = g(c)), c = i(c, d), ("00000000" + (d[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (d[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (c[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (c[1] >>> 0).toString(16)).slice(-8); - }, At.exports && (Et = At.exports = t), Et.murmurHash3 = t; -}(); -const mr = qt(kt.exports); -var je = { exports: {} }; -je.exports = function(t) { - var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; - function r(c, o) { - var a = c[0], f = c[1], p = c[2], h = c[3]; - f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & p | ~f & h) + o[0] - 680876936 | 0) << 7 | a >>> 25) + f | 0) & f | ~a & p) + o[1] - 389564586 | 0) << 12 | h >>> 20) + a | 0) & a | ~h & f) + o[2] + 606105819 | 0) << 17 | p >>> 15) + h | 0) & h | ~p & a) + o[3] - 1044525330 | 0) << 22 | f >>> 10) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & p | ~f & h) + o[4] - 176418897 | 0) << 7 | a >>> 25) + f | 0) & f | ~a & p) + o[5] + 1200080426 | 0) << 12 | h >>> 20) + a | 0) & a | ~h & f) + o[6] - 1473231341 | 0) << 17 | p >>> 15) + h | 0) & h | ~p & a) + o[7] - 45705983 | 0) << 22 | f >>> 10) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & p | ~f & h) + o[8] + 1770035416 | 0) << 7 | a >>> 25) + f | 0) & f | ~a & p) + o[9] - 1958414417 | 0) << 12 | h >>> 20) + a | 0) & a | ~h & f) + o[10] - 42063 | 0) << 17 | p >>> 15) + h | 0) & h | ~p & a) + o[11] - 1990404162 | 0) << 22 | f >>> 10) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & p | ~f & h) + o[12] + 1804603682 | 0) << 7 | a >>> 25) + f | 0) & f | ~a & p) + o[13] - 40341101 | 0) << 12 | h >>> 20) + a | 0) & a | ~h & f) + o[14] - 1502002290 | 0) << 17 | p >>> 15) + h | 0) & h | ~p & a) + o[15] + 1236535329 | 0) << 22 | f >>> 10) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & h | p & ~h) + o[1] - 165796510 | 0) << 5 | a >>> 27) + f | 0) & p | f & ~p) + o[6] - 1069501632 | 0) << 9 | h >>> 23) + a | 0) & f | a & ~f) + o[11] + 643717713 | 0) << 14 | p >>> 18) + h | 0) & a | h & ~a) + o[0] - 373897302 | 0) << 20 | f >>> 12) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & h | p & ~h) + o[5] - 701558691 | 0) << 5 | a >>> 27) + f | 0) & p | f & ~p) + o[10] + 38016083 | 0) << 9 | h >>> 23) + a | 0) & f | a & ~f) + o[15] - 660478335 | 0) << 14 | p >>> 18) + h | 0) & a | h & ~a) + o[4] - 405537848 | 0) << 20 | f >>> 12) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & h | p & ~h) + o[9] + 568446438 | 0) << 5 | a >>> 27) + f | 0) & p | f & ~p) + o[14] - 1019803690 | 0) << 9 | h >>> 23) + a | 0) & f | a & ~f) + o[3] - 187363961 | 0) << 14 | p >>> 18) + h | 0) & a | h & ~a) + o[8] + 1163531501 | 0) << 20 | f >>> 12) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f & h | p & ~h) + o[13] - 1444681467 | 0) << 5 | a >>> 27) + f | 0) & p | f & ~p) + o[2] - 51403784 | 0) << 9 | h >>> 23) + a | 0) & f | a & ~f) + o[7] + 1735328473 | 0) << 14 | p >>> 18) + h | 0) & a | h & ~a) + o[12] - 1926607734 | 0) << 20 | f >>> 12) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f ^ p ^ h) + o[5] - 378558 | 0) << 4 | a >>> 28) + f | 0) ^ f ^ p) + o[8] - 2022574463 | 0) << 11 | h >>> 21) + a | 0) ^ a ^ f) + o[11] + 1839030562 | 0) << 16 | p >>> 16) + h | 0) ^ h ^ a) + o[14] - 35309556 | 0) << 23 | f >>> 9) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f ^ p ^ h) + o[1] - 1530992060 | 0) << 4 | a >>> 28) + f | 0) ^ f ^ p) + o[4] + 1272893353 | 0) << 11 | h >>> 21) + a | 0) ^ a ^ f) + o[7] - 155497632 | 0) << 16 | p >>> 16) + h | 0) ^ h ^ a) + o[10] - 1094730640 | 0) << 23 | f >>> 9) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f ^ p ^ h) + o[13] + 681279174 | 0) << 4 | a >>> 28) + f | 0) ^ f ^ p) + o[0] - 358537222 | 0) << 11 | h >>> 21) + a | 0) ^ a ^ f) + o[3] - 722521979 | 0) << 16 | p >>> 16) + h | 0) ^ h ^ a) + o[6] + 76029189 | 0) << 23 | f >>> 9) + p | 0, f = ((f += ((p = ((p += ((h = ((h += ((a = ((a += (f ^ p ^ h) + o[9] - 640364487 | 0) << 4 | a >>> 28) + f | 0) ^ f ^ p) + o[12] - 421815835 | 0) << 11 | h >>> 21) + a | 0) ^ a ^ f) + o[15] + 530742520 | 0) << 16 | p >>> 16) + h | 0) ^ h ^ a) + o[2] - 995338651 | 0) << 23 | f >>> 9) + p | 0, f = ((f += ((h = ((h += (f ^ ((a = ((a += (p ^ (f | ~h)) + o[0] - 198630844 | 0) << 6 | a >>> 26) + f | 0) | ~p)) + o[7] + 1126891415 | 0) << 10 | h >>> 22) + a | 0) ^ ((p = ((p += (a ^ (h | ~f)) + o[14] - 1416354905 | 0) << 15 | p >>> 17) + h | 0) | ~a)) + o[5] - 57434055 | 0) << 21 | f >>> 11) + p | 0, f = ((f += ((h = ((h += (f ^ ((a = ((a += (p ^ (f | ~h)) + o[12] + 1700485571 | 0) << 6 | a >>> 26) + f | 0) | ~p)) + o[3] - 1894986606 | 0) << 10 | h >>> 22) + a | 0) ^ ((p = ((p += (a ^ (h | ~f)) + o[10] - 1051523 | 0) << 15 | p >>> 17) + h | 0) | ~a)) + o[1] - 2054922799 | 0) << 21 | f >>> 11) + p | 0, f = ((f += ((h = ((h += (f ^ ((a = ((a += (p ^ (f | ~h)) + o[8] + 1873313359 | 0) << 6 | a >>> 26) + f | 0) | ~p)) + o[15] - 30611744 | 0) << 10 | h >>> 22) + a | 0) ^ ((p = ((p += (a ^ (h | ~f)) + o[6] - 1560198380 | 0) << 15 | p >>> 17) + h | 0) | ~a)) + o[13] + 1309151649 | 0) << 21 | f >>> 11) + p | 0, f = ((f += ((h = ((h += (f ^ ((a = ((a += (p ^ (f | ~h)) + o[4] - 145523070 | 0) << 6 | a >>> 26) + f | 0) | ~p)) + o[11] - 1120210379 | 0) << 10 | h >>> 22) + a | 0) ^ ((p = ((p += (a ^ (h | ~f)) + o[2] + 718787259 | 0) << 15 | p >>> 17) + h | 0) | ~a)) + o[9] - 343485551 | 0) << 21 | f >>> 11) + p | 0, c[0] = a + c[0] | 0, c[1] = f + c[1] | 0, c[2] = p + c[2] | 0, c[3] = h + c[3] | 0; - } - function n(c) { - var o, a = []; - for (o = 0; o < 64; o += 4) a[o >> 2] = c.charCodeAt(o) + (c.charCodeAt(o + 1) << 8) + (c.charCodeAt(o + 2) << 16) + (c.charCodeAt(o + 3) << 24); - return a; - } - function i(c) { - var o, a = []; - for (o = 0; o < 64; o += 4) a[o >> 2] = c[o] + (c[o + 1] << 8) + (c[o + 2] << 16) + (c[o + 3] << 24); - return a; - } - function u(c) { - var o, a, f, p, h, E, S = c.length, T = [1732584193, -271733879, -1732584194, 271733878]; - for (o = 64; o <= S; o += 64) r(T, n(c.substring(o - 64, o))); - for (a = (c = c.substring(o - 64)).length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < a; o += 1) f[o >> 2] |= c.charCodeAt(o) << (o % 4 << 3); - if (f[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(T, f), o = 0; o < 16; o += 1) f[o] = 0; - return p = (p = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(p[2], 16), E = parseInt(p[1], 16) || 0, f[14] = h, f[15] = E, r(T, f), T; - } - function l(c) { - var o, a, f, p, h, E, S = c.length, T = [1732584193, -271733879, -1732584194, 271733878]; - for (o = 64; o <= S; o += 64) r(T, i(c.subarray(o - 64, o))); - for (a = (c = o - 64 < S ? c.subarray(o - 64) : new Uint8Array(0)).length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < a; o += 1) f[o >> 2] |= c[o] << (o % 4 << 3); - if (f[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(T, f), o = 0; o < 16; o += 1) f[o] = 0; - return p = (p = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(p[2], 16), E = parseInt(p[1], 16) || 0, f[14] = h, f[15] = E, r(T, f), T; - } - function m(c) { - var o, a = ""; - for (o = 0; o < 4; o += 1) a += e[c >> 8 * o + 4 & 15] + e[c >> 8 * o & 15]; - return a; - } - function y(c) { - var o; - for (o = 0; o < c.length; o += 1) c[o] = m(c[o]); - return c.join(""); - } - function g(c) { - return /[\u0080-\uFFFF]/.test(c) && (c = unescape(encodeURIComponent(c))), c; - } - function s(c, o) { - var a, f = c.length, p = new ArrayBuffer(f), h = new Uint8Array(p); - for (a = 0; a < f; a += 1) h[a] = c.charCodeAt(a); - return o ? h : p; - } - function b(c) { - return String.fromCharCode.apply(null, new Uint8Array(c)); - } - function w(c, o, a) { - var f = new Uint8Array(c.byteLength + o.byteLength); - return f.set(new Uint8Array(c)), f.set(new Uint8Array(o), c.byteLength), f; - } - function A(c) { - var o, a = [], f = c.length; - for (o = 0; o < f - 1; o += 2) a.push(parseInt(c.substr(o, 2), 16)); - return String.fromCharCode.apply(String, a); - } - function d() { - this.reset(); - } - return y(u("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { - function c(o, a) { - return (o = 0 | o || 0) < 0 ? Math.max(o + a, 0) : Math.min(o, a); - } - ArrayBuffer.prototype.slice = function(o, a) { - var f, p, h, E, S = this.byteLength, T = c(o, S), _ = S; - return a !== t && (_ = c(a, S)), T > _ ? new ArrayBuffer(0) : (f = _ - T, p = new ArrayBuffer(f), h = new Uint8Array(p), E = new Uint8Array(this, T, f), h.set(E), p); - }; - }(), d.prototype.append = function(c) { - return this.appendBinary(g(c)), this; - }, d.prototype.appendBinary = function(c) { - this._buff += c, this._length += c.length; - var o, a = this._buff.length; - for (o = 64; o <= a; o += 64) r(this._hash, n(this._buff.substring(o - 64, o))); - return this._buff = this._buff.substring(o - 64), this; - }, d.prototype.end = function(c) { - var o, a, f = this._buff, p = f.length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (o = 0; o < p; o += 1) h[o >> 2] |= f.charCodeAt(o) << (o % 4 << 3); - return this._finish(h, p), a = y(this._hash), c && (a = A(a)), this.reset(), a; - }, d.prototype.reset = function() { - return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; - }, d.prototype.getState = function() { - return { buff: this._buff, length: this._length, hash: this._hash.slice() }; - }, d.prototype.setState = function(c) { - return this._buff = c.buff, this._length = c.length, this._hash = c.hash, this; - }, d.prototype.destroy = function() { - delete this._hash, delete this._buff, delete this._length; - }, d.prototype._finish = function(c, o) { - var a, f, p, h = o; - if (c[h >> 2] |= 128 << (h % 4 << 3), h > 55) for (r(this._hash, c), h = 0; h < 16; h += 1) c[h] = 0; - a = (a = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(a[2], 16), p = parseInt(a[1], 16) || 0, c[14] = f, c[15] = p, r(this._hash, c); - }, d.hash = function(c, o) { - return d.hashBinary(g(c), o); - }, d.hashBinary = function(c, o) { - var a = y(u(c)); - return o ? A(a) : a; - }, d.ArrayBuffer = function() { - this.reset(); - }, d.ArrayBuffer.prototype.append = function(c) { - var o, a = w(this._buff.buffer, c), f = a.length; - for (this._length += c.byteLength, o = 64; o <= f; o += 64) r(this._hash, i(a.subarray(o - 64, o))); - return this._buff = o - 64 < f ? new Uint8Array(a.buffer.slice(o - 64)) : new Uint8Array(0), this; - }, d.ArrayBuffer.prototype.end = function(c) { - var o, a, f = this._buff, p = f.length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (o = 0; o < p; o += 1) h[o >> 2] |= f[o] << (o % 4 << 3); - return this._finish(h, p), a = y(this._hash), c && (a = A(a)), this.reset(), a; - }, d.ArrayBuffer.prototype.reset = function() { - return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; - }, d.ArrayBuffer.prototype.getState = function() { - var c = d.prototype.getState.call(this); - return c.buff = b(c.buff), c; - }, d.ArrayBuffer.prototype.setState = function(c) { - return c.buff = s(c.buff, !0), d.prototype.setState.call(this, c); - }, d.ArrayBuffer.prototype.destroy = d.prototype.destroy, d.ArrayBuffer.prototype._finish = d.prototype._finish, d.ArrayBuffer.hash = function(c, o) { - var a = y(l(new Uint8Array(c))); - return o ? A(a) : a; - }, d; -}(); -const br = qt(je.exports); -export { - mr as M, - yr as N, - gr as P, - br as S, - x as a -}; diff --git a/dist/common/vender-FNiQWFaA.js b/dist/common/vender-FNiQWFaA.js new file mode 100644 index 0000000..cc9c1b0 --- /dev/null +++ b/dist/common/vender-FNiQWFaA.js @@ -0,0 +1,1619 @@ +function me(t, e) { + return function() { + return t.apply(e, arguments); + }; +} +const { toString: Be } = Object.prototype, { getPrototypeOf: Ft } = Object, ut = (gt = /* @__PURE__ */ Object.create(null), (t) => { + const e = Be.call(t); + return gt[e] || (gt[e] = e.slice(8, -1).toLowerCase()); +}); +var gt; +const B = (t) => (t = t.toLowerCase(), (e) => ut(e) === t), dt = (t) => (e) => typeof e === t, { isArray: $ } = Array, X = dt("undefined"), $t = B("ArrayBuffer"), Le = dt("string"), j = dt("function"), Ht = dt("number"), rt = (t) => t !== null && typeof t == "object", nt = (t) => { + if (ut(t) !== "object") return !1; + const e = Ft(t); + return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t); +}, Me = B("Date"), Fe = B("File"), De = B("Blob"), qe = B("FileList"), Ie = B("URLSearchParams"), [We, ze, $e, He] = ["ReadableStream", "Request", "Response", "Headers"].map(B); +function Q(t, e, { allOwnKeys: r = !1 } = {}) { + if (t == null) return; + let n, i; + if (typeof t != "object" && (t = [t]), $(t)) for (n = 0, i = t.length; n < i; n++) e.call(null, t[n], n, t); + else { + const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), u = a.length; + let b; + for (n = 0; n < u; n++) b = a[n], e.call(null, t[b], b, t); + } +} +function Jt(t, e) { + e = e.toLowerCase(); + const r = Object.keys(t); + let n, i = r.length; + for (; i-- > 0; ) if (n = r[i], e === n.toLowerCase()) return n; + return null; +} +const be = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Vt = (t) => !X(t) && t !== be, Je = (yt = typeof Uint8Array < "u" && Ft(Uint8Array), (t) => yt && t instanceof yt); +var yt; +const Ve = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ke = B("RegExp"), Gt = (t, e) => { + const r = Object.getOwnPropertyDescriptors(t), n = {}; + Q(r, (i, a) => { + let u; + (u = e(i, a, t)) !== !1 && (n[a] = u || i); + }), Object.defineProperties(t, n); +}, mt = "abcdefghijklmnopqrstuvwxyz", Xt = "0123456789", Qt = { DIGIT: Xt, ALPHA: mt, ALPHA_DIGIT: mt + mt.toUpperCase() + Xt }, Ge = B("AsyncFunction"), v = { isArray: $, isArrayBuffer: $t, isBuffer: function(t) { + return t !== null && !X(t) && t.constructor !== null && !X(t.constructor) && j(t.constructor.isBuffer) && t.constructor.isBuffer(t); +}, isFormData: (t) => { + let e; + return t && (typeof FormData == "function" && t instanceof FormData || j(t.append) && ((e = ut(t)) === "formdata" || e === "object" && j(t.toString) && t.toString() === "[object FormData]")); +}, isArrayBufferView: function(t) { + let e; + return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && $t(t.buffer), e; +}, isString: Le, isNumber: Ht, isBoolean: (t) => t === !0 || t === !1, isObject: rt, isPlainObject: nt, isReadableStream: We, isRequest: ze, isResponse: $e, isHeaders: He, isUndefined: X, isDate: Me, isFile: Fe, isBlob: De, isRegExp: Ke, isFunction: j, isStream: (t) => rt(t) && j(t.pipe), isURLSearchParams: Ie, isTypedArray: Je, isFileList: qe, forEach: Q, merge: function t() { + const { caseless: e } = Vt(this) && this || {}, r = {}, n = (i, a) => { + const u = e && Jt(r, a) || a; + nt(r[u]) && nt(i) ? r[u] = t(r[u], i) : nt(i) ? r[u] = t({}, i) : $(i) ? r[u] = i.slice() : r[u] = i; + }; + for (let i = 0, a = arguments.length; i < a; i++) arguments[i] && Q(arguments[i], n); + return r; +}, extend: (t, e, r, { allOwnKeys: n } = {}) => (Q(e, (i, a) => { + r && j(i) ? t[a] = me(i, r) : t[a] = i; +}, { allOwnKeys: n }), t), trim: (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), inherits: (t, e, r, n) => { + t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r); +}, toFlatObject: (t, e, r, n) => { + let i, a, u; + const b = {}; + if (e = e || {}, t == null) return e; + do { + for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; ) u = i[a], n && !n(u, t, e) || b[u] || (e[u] = t[u], b[u] = !0); + t = r !== !1 && Ft(t); + } while (t && (!r || r(t, e)) && t !== Object.prototype); + return e; +}, kindOf: ut, kindOfTest: B, endsWith: (t, e, r) => { + t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; + const n = t.indexOf(e, r); + return n !== -1 && n === r; +}, toArray: (t) => { + if (!t) return null; + if ($(t)) return t; + let e = t.length; + if (!Ht(e)) return null; + const r = new Array(e); + for (; e-- > 0; ) r[e] = t[e]; + return r; +}, forEachEntry: (t, e) => { + const r = (t && t[Symbol.iterator]).call(t); + let n; + for (; (n = r.next()) && !n.done; ) { + const i = n.value; + e.call(t, i[0], i[1]); + } +}, matchAll: (t, e) => { + let r; + const n = []; + for (; (r = t.exec(e)) !== null; ) n.push(r); + return n; +}, isHTMLForm: Ve, hasOwnProperty: Kt, hasOwnProp: Kt, reduceDescriptors: Gt, freezeMethods: (t) => { + Gt(t, (e, r) => { + if (j(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1; + const n = t[r]; + j(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { + throw Error("Can not rewrite read-only method '" + r + "'"); + })); + }); +}, toObjectSet: (t, e) => { + const r = {}, n = (i) => { + i.forEach((a) => { + r[a] = !0; + }); + }; + return $(t) ? n(t) : n(String(t).split(e)), r; +}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) { + return r.toUpperCase() + n; +}), noop: () => { +}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Jt, global: be, isContextDefined: Vt, ALPHABET: Qt, generateString: (t = 16, e = Qt.ALPHA_DIGIT) => { + let r = ""; + const { length: n } = e; + for (; t--; ) r += e[Math.random() * n | 0]; + return r; +}, isSpecCompliantForm: function(t) { + return !!(t && j(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); +}, toJSONObject: (t) => { + const e = new Array(10), r = (n, i) => { + if (rt(n)) { + if (e.indexOf(n) >= 0) return; + if (!("toJSON" in n)) { + e[i] = n; + const a = $(n) ? [] : {}; + return Q(n, (u, b) => { + const m = r(u, i + 1); + !X(m) && (a[b] = m); + }), e[i] = void 0, a; + } + } + return n; + }; + return r(t, 0); +}, isAsyncFn: Ge, isThenable: (t) => t && (rt(t) || j(t)) && j(t.then) && j(t.catch) }; +function O(t, e, r, n, i) { + Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i); +} +v.inherits(O, Error, { toJSON: function() { + return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: v.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; +} }); +const Yt = O.prototype, Zt = {}; +["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"].forEach((t) => { + Zt[t] = { value: t }; +}), Object.defineProperties(O, Zt), Object.defineProperty(Yt, "isAxiosError", { value: !0 }), O.from = (t, e, r, n, i, a) => { + const u = Object.create(Yt); + return v.toFlatObject(t, u, function(b) { + return b !== Error.prototype; + }, (b) => b !== "isAxiosError"), O.call(u, t.message, e, r, n, i), u.cause = t, u.name = t.name, a && Object.assign(u, a), u; +}; +function bt(t) { + return v.isPlainObject(t) || v.isArray(t); +} +function we(t) { + return v.endsWith(t, "[]") ? t.slice(0, -2) : t; +} +function te(t, e, r) { + return t ? t.concat(e).map(function(n, i) { + return n = we(n), !r && i ? "[" + n + "]" : n; + }).join(r ? "." : "") : e; +} +const Xe = v.toFlatObject(v, {}, null, function(t) { + return /^is[A-Z]/.test(t); +}); +function lt(t, e, r) { + if (!v.isObject(t)) throw new TypeError("target must be an object"); + e = e || new FormData(); + const n = (r = v.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, A) { + return !v.isUndefined(A[w]); + })).metaTokens, i = r.visitor || g, a = r.dots, u = r.indexes, b = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e); + if (!v.isFunction(i)) throw new TypeError("visitor must be a function"); + function m(w) { + if (w === null) return ""; + if (v.isDate(w)) return w.toISOString(); + if (!b && v.isBlob(w)) throw new O("Blob is not supported. Use a Buffer instead."); + return v.isArrayBuffer(w) || v.isTypedArray(w) ? b && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w; + } + function g(w, A, h) { + let l = w; + if (w && !h && typeof w == "object") { + if (v.endsWith(A, "{}")) A = n ? A : A.slice(0, -2), w = JSON.stringify(w); + else if (v.isArray(w) && function(o) { + return v.isArray(o) && !o.some(bt); + }(w) || (v.isFileList(w) || v.endsWith(A, "[]")) && (l = v.toArray(w))) return A = we(A), l.forEach(function(o, c) { + !v.isUndefined(o) && o !== null && e.append(u === !0 ? te([A], c, a) : u === null ? A : A + "[]", m(o)); + }), !1; + } + return !!bt(w) || (e.append(te(h, A, a), m(w)), !1); + } + const s = [], y = Object.assign(Xe, { defaultVisitor: g, convertValue: m, isVisitable: bt }); + if (!v.isObject(t)) throw new TypeError("data must be an object"); + return function w(A, h) { + if (!v.isUndefined(A)) { + if (s.indexOf(A) !== -1) throw Error("Circular reference detected in " + h.join(".")); + s.push(A), v.forEach(A, function(l, o) { + (!(v.isUndefined(l) || l === null) && i.call(e, l, v.isString(o) ? o.trim() : o, h, y)) === !0 && w(l, h ? h.concat(o) : [o]); + }), s.pop(); + } + }(t), e; +} +function ee(t) { + const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; + return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) { + return e[r]; + }); +} +function Dt(t, e) { + this._pairs = [], t && lt(t, this, e); +} +const re = Dt.prototype; +function Qe(t) { + return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); +} +function ve(t, e, r) { + if (!e) return t; + const n = r && r.encode || Qe, i = r && r.serialize; + let a; + if (a = i ? i(e, r) : v.isURLSearchParams(e) ? e.toString() : new Dt(e, r).toString(n), a) { + const u = t.indexOf("#"); + u !== -1 && (t = t.slice(0, u)), t += (t.indexOf("?") === -1 ? "?" : "&") + a; + } + return t; +} +re.append = function(t, e) { + this._pairs.push([t, e]); +}, re.toString = function(t) { + const e = t ? function(r) { + return t.call(this, r, ee); + } : ee; + return this._pairs.map(function(r) { + return e(r[0]) + "=" + e(r[1]); + }, "").join("&"); +}; +class ne { + constructor() { + this.handlers = []; + } + use(e, r, n) { + return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; + } + eject(e) { + this.handlers[e] && (this.handlers[e] = null); + } + clear() { + this.handlers && (this.handlers = []); + } + forEach(e) { + v.forEach(this.handlers, function(r) { + r !== null && e(r); + }); + } +} +const Ae = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Ye = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : Dt, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, qt = typeof window < "u" && typeof document < "u", Ze = (oe = typeof navigator < "u" && navigator.product, qt && ["ReactNative", "NativeScript", "NS"].indexOf(oe) < 0); +var oe; +const tr = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", er = qt && window.location.href || "http://localhost", U = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: qt, hasStandardBrowserEnv: Ze, hasStandardBrowserWebWorkerEnv: tr, origin: er }, Symbol.toStringTag, { value: "Module" })), ...Ye }; +function Ee(t) { + function e(r, n, i, a) { + let u = r[a++]; + if (u === "__proto__") return !0; + const b = Number.isFinite(+u), m = a >= r.length; + return u = !u && v.isArray(i) ? i.length : u, m ? (v.hasOwnProp(i, u) ? i[u] = [i[u], n] : i[u] = n, !b) : (i[u] && v.isObject(i[u]) || (i[u] = []), e(r, n, i[u], a) && v.isArray(i[u]) && (i[u] = function(g) { + const s = {}, y = Object.keys(g); + let w; + const A = y.length; + let h; + for (w = 0; w < A; w++) h = y[w], s[h] = g[h]; + return s; + }(i[u])), !b); + } + if (v.isFormData(t) && v.isFunction(t.entries)) { + const r = {}; + return v.forEachEntry(t, (n, i) => { + e(function(a) { + return v.matchAll(/\w+|\[(\w*)]/g, a).map((u) => u[0] === "[]" ? "" : u[1] || u[0]); + }(n), i, r, 0); + }), r; + } + return null; +} +const tt = { transitional: Ae, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) { + const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, i = v.isObject(t); + if (i && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t)) return n ? JSON.stringify(Ee(t)) : t; + if (v.isArrayBuffer(t) || v.isBuffer(t) || v.isStream(t) || v.isFile(t) || v.isBlob(t) || v.isReadableStream(t)) return t; + if (v.isArrayBufferView(t)) return t.buffer; + if (v.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); + let a; + if (i) { + if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(u, b) { + return lt(u, new U.classes.URLSearchParams(), Object.assign({ visitor: function(m, g, s, y) { + return U.isNode && v.isBuffer(m) ? (this.append(g, m.toString("base64")), !1) : y.defaultVisitor.apply(this, arguments); + } }, b)); + }(t, this.formSerializer).toString(); + if ((a = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + const u = this.env && this.env.FormData; + return lt(a ? { "files[]": t } : t, u && new u(), this.formSerializer); + } + } + return i || n ? (e.setContentType("application/json", !1), function(u, b, m) { + if (v.isString(u)) try { + return (b || JSON.parse)(u), v.trim(u); + } catch (g) { + if (g.name !== "SyntaxError") throw g; + } + return (m || JSON.stringify)(u); + }(t)) : t; +}], transformResponse: [function(t) { + const e = this.transitional || tt.transitional, r = e && e.forcedJSONParsing, n = this.responseType === "json"; + if (v.isResponse(t) || v.isReadableStream(t)) return t; + if (t && v.isString(t) && (r && !this.responseType || n)) { + const i = !(e && e.silentJSONParsing) && n; + try { + return JSON.parse(t); + } catch (a) { + if (i) + throw a.name === "SyntaxError" ? O.from(a, O.ERR_BAD_RESPONSE, this, null, this.response) : a; + } + } + return t; +}], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: U.classes.FormData, Blob: U.classes.Blob }, validateStatus: function(t) { + return t >= 200 && t < 300; +}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; +v.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { + tt.headers[t] = {}; +}); +const rr = v.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]), se = Symbol("internals"); +function G(t) { + return t && String(t).trim().toLowerCase(); +} +function ot(t) { + return t === !1 || t == null ? t : v.isArray(t) ? t.map(ot) : String(t); +} +function wt(t, e, r, n, i) { + return v.isFunction(n) ? n.call(this, e, r) : (i && (e = r), v.isString(e) ? v.isString(n) ? e.indexOf(n) !== -1 : v.isRegExp(n) ? n.test(e) : void 0 : void 0); +} +class N { + constructor(e) { + e && this.set(e); + } + set(e, r, n) { + const i = this; + function a(b, m, g) { + const s = G(m); + if (!s) throw new Error("header name must be a non-empty string"); + const y = v.findKey(i, s); + (!y || i[y] === void 0 || g === !0 || g === void 0 && i[y] !== !1) && (i[y || m] = ot(b)); + } + const u = (b, m) => v.forEach(b, (g, s) => a(g, s, m)); + if (v.isPlainObject(e) || e instanceof this.constructor) u(e, r); + else if (v.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())) u(((b) => { + const m = {}; + let g, s, y; + return b && b.split(` +`).forEach(function(w) { + y = w.indexOf(":"), g = w.substring(0, y).trim().toLowerCase(), s = w.substring(y + 1).trim(), !g || m[g] && rr[g] || (g === "set-cookie" ? m[g] ? m[g].push(s) : m[g] = [s] : m[g] = m[g] ? m[g] + ", " + s : s); + }), m; + })(e), r); + else if (v.isHeaders(e)) for (const [b, m] of e.entries()) a(m, b, n); + else e != null && a(r, e, n); + return this; + } + get(e, r) { + if (e = G(e)) { + const n = v.findKey(this, e); + if (n) { + const i = this[n]; + if (!r) return i; + if (r === !0) return function(a) { + const u = /* @__PURE__ */ Object.create(null), b = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let m; + for (; m = b.exec(a); ) u[m[1]] = m[2]; + return u; + }(i); + if (v.isFunction(r)) return r.call(this, i, n); + if (v.isRegExp(r)) return r.exec(i); + throw new TypeError("parser must be boolean|regexp|function"); + } + } + } + has(e, r) { + if (e = G(e)) { + const n = v.findKey(this, e); + return !(!n || this[n] === void 0 || r && !wt(0, this[n], n, r)); + } + return !1; + } + delete(e, r) { + const n = this; + let i = !1; + function a(u) { + if (u = G(u)) { + const b = v.findKey(n, u); + !b || r && !wt(0, n[b], b, r) || (delete n[b], i = !0); + } + } + return v.isArray(e) ? e.forEach(a) : a(e), i; + } + clear(e) { + const r = Object.keys(this); + let n = r.length, i = !1; + for (; n--; ) { + const a = r[n]; + e && !wt(0, this[a], a, e, !0) || (delete this[a], i = !0); + } + return i; + } + normalize(e) { + const r = this, n = {}; + return v.forEach(this, (i, a) => { + const u = v.findKey(n, a); + if (u) return r[u] = ot(i), void delete r[a]; + const b = e ? function(m) { + return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (g, s, y) => s.toUpperCase() + y); + }(a) : String(a).trim(); + b !== a && delete r[a], r[b] = ot(i), n[b] = !0; + }), this; + } + concat(...e) { + return this.constructor.concat(this, ...e); + } + toJSON(e) { + const r = /* @__PURE__ */ Object.create(null); + return v.forEach(this, (n, i) => { + n != null && n !== !1 && (r[i] = e && v.isArray(n) ? n.join(", ") : n); + }), r; + } + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + toString() { + return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(` +`); + } + get [Symbol.toStringTag]() { + return "AxiosHeaders"; + } + static from(e) { + return e instanceof this ? e : new this(e); + } + static concat(e, ...r) { + const n = new this(e); + return r.forEach((i) => n.set(i)), n; + } + static accessor(e) { + const r = (this[se] = this[se] = { accessors: {} }).accessors, n = this.prototype; + function i(a) { + const u = G(a); + r[u] || (function(b, m) { + const g = v.toCamelCase(" " + m); + ["get", "set", "has"].forEach((s) => { + Object.defineProperty(b, s + g, { value: function(y, w, A) { + return this[s].call(this, m, y, w, A); + }, configurable: !0 }); + }); + }(n, a), r[u] = !0); + } + return v.isArray(e) ? e.forEach(i) : i(e), this; + } +} +function vt(t, e) { + const r = this || tt, n = e || r, i = N.from(n.headers); + let a = n.data; + return v.forEach(t, function(u) { + a = u.call(r, a, i.normalize(), e ? e.status : void 0); + }), i.normalize(), a; +} +function Se(t) { + return !(!t || !t.__CANCEL__); +} +function K(t, e, r) { + O.call(this, t ?? "canceled", O.ERR_CANCELED, e, r), this.name = "CanceledError"; +} +function Ce(t, e, r) { + const n = r.config.validateStatus; + r.status && n && !n(r.status) ? e(new O("Request failed with status code " + r.status, [O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r); +} +N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), v.reduceDescriptors(N.prototype, ({ value: t }, e) => { + let r = e[0].toUpperCase() + e.slice(1); + return { get: () => t, set(n) { + this[r] = n; + } }; +}), v.freezeMethods(N), v.inherits(K, O, { __CANCEL__: !0 }); +const ht = (t, e, r = 3) => { + let n = 0; + const i = function(a, u) { + a = a || 10; + const b = new Array(a), m = new Array(a); + let g, s = 0, y = 0; + return u = u !== void 0 ? u : 1e3, function(w) { + const A = Date.now(), h = m[y]; + g || (g = A), b[s] = w, m[s] = A; + let l = y, o = 0; + for (; l !== s; ) o += b[l++], l %= a; + if (s = (s + 1) % a, s === y && (y = (y + 1) % a), A - g < u) return; + const c = h && A - h; + return c ? Math.round(1e3 * o / c) : void 0; + }; + }(50, 250); + return function(a, u) { + let b = 0; + const m = 1e3 / u; + let g = null; + return function() { + const s = this === !0, y = Date.now(); + if (s || y - b > m) return g && (clearTimeout(g), g = null), b = y, a.apply(null, arguments); + g || (g = setTimeout(() => (g = null, b = Date.now(), a.apply(null, arguments)), m - (y - b))); + }; + }((a) => { + const u = a.loaded, b = a.lengthComputable ? a.total : void 0, m = u - n, g = i(m); + n = u; + const s = { loaded: u, total: b, progress: b ? u / b : void 0, bytes: m, rate: g || void 0, estimated: g && b && u <= b ? (b - u) / g : void 0, event: a, lengthComputable: b != null }; + s[e ? "download" : "upload"] = !0, t(s); + }, r); +}, nr = U.hasStandardBrowserEnv ? function() { + const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); + let r; + function n(i) { + let a = i; + return t && (e.setAttribute("href", a), a = e.href), e.setAttribute("href", a), { href: e.href, protocol: e.protocol ? e.protocol.replace(/:$/, "") : "", host: e.host, search: e.search ? e.search.replace(/^\?/, "") : "", hash: e.hash ? e.hash.replace(/^#/, "") : "", hostname: e.hostname, port: e.port, pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname }; + } + return r = n(window.location.href), function(i) { + const a = v.isString(i) ? n(i) : i; + return a.protocol === r.protocol && a.host === r.host; + }; +}() : function() { + return !0; +}, or = U.hasStandardBrowserEnv ? { write(t, e, r, n, i, a) { + const u = [t + "=" + encodeURIComponent(e)]; + v.isNumber(r) && u.push("expires=" + new Date(r).toGMTString()), v.isString(n) && u.push("path=" + n), v.isString(i) && u.push("domain=" + i), a === !0 && u.push("secure"), document.cookie = u.join("; "); +}, read(t) { + const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); + return e ? decodeURIComponent(e[3]) : null; +}, remove(t) { + this.write(t, "", Date.now() - 864e5); +} } : { write() { +}, read: () => null, remove() { +} }; +function Oe(t, e) { + return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) { + return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r; + }(t, e) : e; +} +const ie = (t) => t instanceof N ? { ...t } : t; +function z(t, e) { + e = e || {}; + const r = {}; + function n(g, s, y) { + return v.isPlainObject(g) && v.isPlainObject(s) ? v.merge.call({ caseless: y }, g, s) : v.isPlainObject(s) ? v.merge({}, s) : v.isArray(s) ? s.slice() : s; + } + function i(g, s, y) { + return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g, y) : n(g, s, y); + } + function a(g, s) { + if (!v.isUndefined(s)) return n(void 0, s); + } + function u(g, s) { + return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, s); + } + function b(g, s, y) { + return y in e ? n(g, s) : y in t ? n(void 0, g) : void 0; + } + const m = { url: a, method: a, data: a, baseURL: u, transformRequest: u, transformResponse: u, paramsSerializer: u, timeout: u, timeoutMessage: u, withCredentials: u, withXSRFToken: u, adapter: u, responseType: u, xsrfCookieName: u, xsrfHeaderName: u, onUploadProgress: u, onDownloadProgress: u, decompress: u, maxContentLength: u, maxBodyLength: u, beforeRedirect: u, transport: u, httpAgent: u, httpsAgent: u, cancelToken: u, socketPath: u, responseEncoding: u, validateStatus: b, headers: (g, s) => i(ie(g), ie(s), !0) }; + return v.forEach(Object.keys(Object.assign({}, t, e)), function(g) { + const s = m[g] || i, y = s(t[g], e[g], g); + v.isUndefined(y) && s !== b || (r[g] = y); + }), r; +} +const Re = (t) => { + const e = z({}, t); + let r, { data: n, withXSRFToken: i, xsrfHeaderName: a, xsrfCookieName: u, headers: b, auth: m } = e; + if (e.headers = b = N.from(b), e.url = ve(Oe(e.baseURL, e.url), t.params, t.paramsSerializer), m && b.set("Authorization", "Basic " + btoa((m.username || "") + ":" + (m.password ? unescape(encodeURIComponent(m.password)) : ""))), v.isFormData(n)) { + if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) b.setContentType(void 0); + else if ((r = b.getContentType()) !== !1) { + const [g, ...s] = r ? r.split(";").map((y) => y.trim()).filter(Boolean) : []; + b.setContentType([g || "multipart/form-data", ...s].join("; ")); + } + } + if (U.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(e)), i || i !== !1 && nr(e.url))) { + const g = a && u && or.read(u); + g && b.set(a, g); + } + return e; +}, sr = typeof XMLHttpRequest < "u" && function(t) { + return new Promise(function(e, r) { + const n = Re(t); + let i = n.data; + const a = N.from(n.headers).normalize(); + let u, { responseType: b } = n; + function m() { + n.cancelToken && n.cancelToken.unsubscribe(u), n.signal && n.signal.removeEventListener("abort", u); + } + let g = new XMLHttpRequest(); + function s() { + if (!g) return; + const w = N.from("getAllResponseHeaders" in g && g.getAllResponseHeaders()); + Ce(function(A) { + e(A), m(); + }, function(A) { + r(A), m(); + }, { data: b && b !== "text" && b !== "json" ? g.response : g.responseText, status: g.status, statusText: g.statusText, headers: w, config: t, request: g }), g = null; + } + g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = s : g.onreadystatechange = function() { + g && g.readyState === 4 && (g.status !== 0 || g.responseURL && g.responseURL.indexOf("file:") === 0) && setTimeout(s); + }, g.onabort = function() { + g && (r(new O("Request aborted", O.ECONNABORTED, n, g)), g = null); + }, g.onerror = function() { + r(new O("Network Error", O.ERR_NETWORK, n, g)), g = null; + }, g.ontimeout = function() { + let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded"; + const A = n.transitional || Ae; + n.timeoutErrorMessage && (w = n.timeoutErrorMessage), r(new O(w, A.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED, n, g)), g = null; + }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && v.forEach(a.toJSON(), function(w, A) { + g.setRequestHeader(A, w); + }), v.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), b && b !== "json" && (g.responseType = n.responseType), typeof n.onDownloadProgress == "function" && g.addEventListener("progress", ht(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && g.upload && g.upload.addEventListener("progress", ht(n.onUploadProgress)), (n.cancelToken || n.signal) && (u = (w) => { + g && (r(!w || w.type ? new K(null, t, g) : w), g.abort(), g = null); + }, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u))); + const y = function(w) { + const A = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w); + return A && A[1] || ""; + }(n.url); + y && U.protocols.indexOf(y) === -1 ? r(new O("Unsupported protocol " + y + ":", O.ERR_BAD_REQUEST, t)) : g.send(i || null); + }); +}, ir = (t, e) => { + let r, n = new AbortController(); + const i = function(m) { + if (!r) { + r = !0, u(); + const g = m instanceof Error ? m : this.reason; + n.abort(g instanceof O ? g : new K(g instanceof Error ? g.message : g)); + } + }; + let a = e && setTimeout(() => { + i(new O(`timeout ${e} of ms exceeded`, O.ETIMEDOUT)); + }, e); + const u = () => { + t && (a && clearTimeout(a), a = null, t.forEach((m) => { + m && (m.removeEventListener ? m.removeEventListener("abort", i) : m.unsubscribe(i)); + }), t = null); + }; + t.forEach((m) => m && m.addEventListener && m.addEventListener("abort", i)); + const { signal: b } = n; + return b.unsubscribe = u, [b, () => { + a && clearTimeout(a), a = null; + }]; +}, ar = function* (t, e) { + let r = t.byteLength; + if (!e || r < e) return void (yield t); + let n, i = 0; + for (; i < r; ) n = i + e, yield t.slice(i, n), i = n; +}, ae = (t, e, r, n, i) => { + const a = async function* (b, m, g) { + for await (const s of b) yield* ar(ArrayBuffer.isView(s) ? s : await g(String(s)), m); + }(t, e, i); + let u = 0; + return new ReadableStream({ type: "bytes", async pull(b) { + const { done: m, value: g } = await a.next(); + if (m) return b.close(), void n(); + let s = g.byteLength; + r && r(u += s), b.enqueue(new Uint8Array(g)); + }, cancel: (b) => (n(b), a.return()) }, { highWaterMark: 2 }); +}, ce = (t, e) => { + const r = t != null; + return (n) => setTimeout(() => e({ lengthComputable: r, total: t, loaded: n })); +}, pt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Te = pt && typeof ReadableStream == "function", Ot = pt && (typeof TextEncoder == "function" ? (ue = new TextEncoder(), (t) => ue.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); +var ue; +const cr = Te && (() => { + let t = !1; + const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() { + return t = !0, "half"; + } }).headers.has("Content-Type"); + return t && !e; +})(), Rt = Te && !!(() => { + try { + return v.isReadableStream(new Response("").body); + } catch { + } +})(), ft = { stream: Rt && ((t) => t.body) }; +var le; +pt && (le = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { + !ft[t] && (ft[t] = v.isFunction(le[t]) ? (e) => e[t]() : (e, r) => { + throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, r); + }); +})); +const ur = async (t, e) => { + const r = v.toFiniteNumber(t.getContentLength()); + return r ?? (async (n) => n == null ? 0 : v.isBlob(n) ? n.size : v.isSpecCompliantForm(n) ? (await new Request(n).arrayBuffer()).byteLength : v.isArrayBufferView(n) ? n.byteLength : (v.isURLSearchParams(n) && (n += ""), v.isString(n) ? (await Ot(n)).byteLength : void 0))(e); +}, xe = { http: null, xhr: sr, fetch: pt && (async (t) => { + let { url: e, method: r, data: n, signal: i, cancelToken: a, timeout: u, onDownloadProgress: b, onUploadProgress: m, responseType: g, headers: s, withCredentials: y = "same-origin", fetchOptions: w } = Re(t); + g = g ? (g + "").toLowerCase() : "text"; + let A, h, [l, o] = i || a || u ? ir([i, a], u) : []; + const c = () => { + !A && setTimeout(() => { + l && l.unsubscribe(); + }), A = !0; + }; + let d; + try { + if (m && cr && r !== "get" && r !== "head" && (d = await ur(s, n)) !== 0) { + let S, T = new Request(e, { method: "POST", body: n, duplex: "half" }); + v.isFormData(n) && (S = T.headers.get("content-type")) && s.setContentType(S), T.body && (n = ae(T.body, 65536, ce(d, ht(m)), null, Ot)); + } + v.isString(y) || (y = y ? "cors" : "omit"), h = new Request(e, { ...w, signal: l, method: r.toUpperCase(), headers: s.normalize().toJSON(), body: n, duplex: "half", withCredentials: y }); + let p = await fetch(h); + const f = Rt && (g === "stream" || g === "response"); + if (Rt && (b || f)) { + const S = {}; + ["status", "statusText", "headers"].forEach((k) => { + S[k] = p[k]; + }); + const T = v.toFiniteNumber(p.headers.get("content-length")); + p = new Response(ae(p.body, 65536, b && ce(T, ht(b, !0)), f && c, Ot), S); + } + g = g || "text"; + let E = await ft[v.findKey(ft, g) || "text"](p, t); + return !f && c(), o && o(), await new Promise((S, T) => { + Ce(S, T, { data: E, headers: N.from(p.headers), status: p.status, statusText: p.statusText, config: t, request: h }); + }); + } catch (p) { + throw c(), p && p.name === "TypeError" && /fetch/i.test(p.message) ? Object.assign(new O("Network Error", O.ERR_NETWORK, t, h), { cause: p.cause || p }) : O.from(p, p && p.code, t, h); + } +}) }; +v.forEach(xe, (t, e) => { + if (t) { + try { + Object.defineProperty(t, "name", { value: e }); + } catch { + } + Object.defineProperty(t, "adapterName", { value: e }); + } +}); +const he = (t) => `- ${t}`, lr = (t) => v.isFunction(t) || t === null || t === !1, _e = (t) => { + t = v.isArray(t) ? t : [t]; + const { length: e } = t; + let r, n; + const i = {}; + for (let a = 0; a < e; a++) { + let u; + if (r = t[a], n = r, !lr(r) && (n = xe[(u = String(r)).toLowerCase()], n === void 0)) throw new O(`Unknown adapter '${u}'`); + if (n) break; + i[u || "#" + a] = n; + } + if (!n) { + const a = Object.entries(i).map(([u, b]) => `adapter ${u} ` + (b === !1 ? "is not supported by the environment" : "is not available in the build")); + throw new O("There is no suitable adapter to dispatch the request " + (e ? a.length > 1 ? `since : +` + a.map(he).join(` +`) : " " + he(a[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); + } + return n; +}; +function At(t) { + if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new K(null, t); +} +function fe(t) { + return At(t), t.headers = N.from(t.headers), t.data = vt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), _e(t.adapter || tt.adapter)(t).then(function(e) { + return At(t), e.data = vt.call(t, t.transformResponse, e), e.headers = N.from(e.headers), e; + }, function(e) { + return Se(e) || (At(t), e && e.response && (e.response.data = vt.call(t, t.transformResponse, e.response), e.response.headers = N.from(e.response.headers))), Promise.reject(e); + }); +} +const hr = "1.7.2", It = {}; +["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { + It[t] = function(r) { + return typeof r === t || "a" + (e < 1 ? "n " : " ") + t; + }; +}); +const de = {}; +It.transitional = function(t, e, r) { + function n(i, a) { + return "[Axios v1.7.2] Transitional option '" + i + "'" + a + (r ? ". " + r : ""); + } + return (i, a, u) => { + if (t === !1) throw new O(n(a, " has been removed" + (e ? " in " + e : "")), O.ERR_DEPRECATED); + return e && !de[a] && (de[a] = !0, console.warn(n(a, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(i, a, u); + }; +}; +const Tt = { assertOptions: function(t, e, r) { + if (typeof t != "object") throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE); + const n = Object.keys(t); + let i = n.length; + for (; i-- > 0; ) { + const a = n[i], u = e[a]; + if (u) { + const b = t[a], m = b === void 0 || u(b, a, t); + if (m !== !0) throw new O("option " + a + " must be " + m, O.ERR_BAD_OPTION_VALUE); + } else if (r !== !0) throw new O("Unknown option " + a, O.ERR_BAD_OPTION); + } +}, validators: It }, F = Tt.validators; +class W { + constructor(e) { + this.defaults = e, this.interceptors = { request: new ne(), response: new ne() }; + } + async request(e, r) { + try { + return await this._request(e, r); + } catch (n) { + if (n instanceof Error) { + let i; + Error.captureStackTrace ? Error.captureStackTrace(i = {}) : i = new Error(); + const a = i.stack ? i.stack.replace(/^.+\n/, "") : ""; + try { + n.stack ? a && !String(n.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (n.stack += ` +` + a) : n.stack = a; + } catch { + } + } + throw n; + } + } + _request(e, r) { + typeof e == "string" ? (r = r || {}).url = e : r = e || {}, r = z(this.defaults, r); + const { transitional: n, paramsSerializer: i, headers: a } = r; + n !== void 0 && Tt.assertOptions(n, { silentJSONParsing: F.transitional(F.boolean), forcedJSONParsing: F.transitional(F.boolean), clarifyTimeoutError: F.transitional(F.boolean) }, !1), i != null && (v.isFunction(i) ? r.paramsSerializer = { serialize: i } : Tt.assertOptions(i, { encode: F.function, serialize: F.function }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase(); + let u = a && v.merge(a.common, a[r.method]); + a && v.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => { + delete a[h]; + }), r.headers = N.concat(u, a); + const b = []; + let m = !0; + this.interceptors.request.forEach(function(h) { + typeof h.runWhen == "function" && h.runWhen(r) === !1 || (m = m && h.synchronous, b.unshift(h.fulfilled, h.rejected)); + }); + const g = []; + let s; + this.interceptors.response.forEach(function(h) { + g.push(h.fulfilled, h.rejected); + }); + let y, w = 0; + if (!m) { + const h = [fe.bind(this), void 0]; + for (h.unshift.apply(h, b), h.push.apply(h, g), y = h.length, s = Promise.resolve(r); w < y; ) s = s.then(h[w++], h[w++]); + return s; + } + y = b.length; + let A = r; + for (w = 0; w < y; ) { + const h = b[w++], l = b[w++]; + try { + A = h(A); + } catch (o) { + l.call(this, o); + break; + } + } + try { + s = fe.call(this, A); + } catch (h) { + return Promise.reject(h); + } + for (w = 0, y = g.length; w < y; ) s = s.then(g[w++], g[w++]); + return s; + } + getUri(e) { + return ve(Oe((e = z(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer); + } +} +v.forEach(["delete", "get", "head", "options"], function(t) { + W.prototype[t] = function(e, r) { + return this.request(z(r || {}, { method: t, url: e, data: (r || {}).data })); + }; +}), v.forEach(["post", "put", "patch"], function(t) { + function e(r) { + return function(n, i, a) { + return this.request(z(a || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: i })); + }; + } + W.prototype[t] = e(), W.prototype[t + "Form"] = e(!0); +}); +class Wt { + constructor(e) { + if (typeof e != "function") throw new TypeError("executor must be a function."); + let r; + this.promise = new Promise(function(i) { + r = i; + }); + const n = this; + this.promise.then((i) => { + if (!n._listeners) return; + let a = n._listeners.length; + for (; a-- > 0; ) n._listeners[a](i); + n._listeners = null; + }), this.promise.then = (i) => { + let a; + const u = new Promise((b) => { + n.subscribe(b), a = b; + }).then(i); + return u.cancel = function() { + n.unsubscribe(a); + }, u; + }, e(function(i, a, u) { + n.reason || (n.reason = new K(i, a, u), r(n.reason)); + }); + } + throwIfRequested() { + if (this.reason) throw this.reason; + } + subscribe(e) { + this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]; + } + unsubscribe(e) { + if (!this._listeners) return; + const r = this._listeners.indexOf(e); + r !== -1 && this._listeners.splice(r, 1); + } + static source() { + let e; + return { token: new Wt(function(r) { + e = r; + }), cancel: e }; + } +} +const xt = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; +Object.entries(xt).forEach(([t, e]) => { + xt[e] = t; +}); +const _ = function t(e) { + const r = new W(e), n = me(W.prototype.request, r); + return v.extend(n, W.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(i) { + return t(z(e, i)); + }, n; +}(tt); +_.Axios = W, _.CanceledError = K, _.CancelToken = Wt, _.isCancel = Se, _.VERSION = hr, _.toFormData = lt, _.AxiosError = O, _.Cancel = _.CanceledError, _.all = function(t) { + return Promise.all(t); +}, _.spread = function(t) { + return function(e) { + return t.apply(null, e); + }; +}, _.isAxiosError = function(t) { + return v.isObject(t) && t.isAxiosError === !0; +}, _.mergeConfig = z, _.AxiosHeaders = N, _.formToJSON = (t) => Ee(v.isHTMLForm(t) ? new FormData(t) : t), _.getAdapter = _e, _.HttpStatusCode = xt, _.default = _; +var fr = Object.defineProperty, x = (t, e, r) => (((n, i, a) => { + i in n ? fr(n, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[i] = a; +})(t, typeof e != "symbol" ? e + "" : e, r), r), Pe = (t, e, r) => { + if (!e.has(t)) throw TypeError("Cannot " + r); +}, C = (t, e, r) => (Pe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), P = (t, e, r) => { + if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); + e instanceof WeakSet ? e.add(t) : e.set(t, r); +}, L = (t, e, r, n) => (Pe(t, e, "write to private field"), e.set(t, r), r); +function dr(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +var pe, ke = {}; +pe = ke, function(t, e) { + var r = e(); + for (var n in r) pe[n] = r[n]; +}(0, function() { + var t = function(a) { + return typeof a != "string" ? a : a.replace(/[\+ \|\^\%]/g, function(u) { + return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[u]; + }); + }, e = function(a) { + return typeof a != "string" ? a : a.replace(/\+|%2B|%7C|%5E|%25/g, function(u) { + return { "+": " ", "%2B": "+", "%7C": "|", "%5E": "^", "%25": "%" }[u]; + }); + }, r = function(a) { + return Number.prototype.toString.call(a, 36).toUpperCase(); + }, n = function(a) { + return parseInt(a, 36); + }, i = Array.prototype.indexOf || function(a, u) { + for (var b = u || 0, m = this.length; b < m; b++) if (this[b] === a) return b; + return -1; + }; + return { JSON, pack: function(a, u) { + var b = (u = u || {}).verbose || !1; + b && console.log("Normalize the JSON Object"), a = typeof a == "string" ? this.JSON.parse(a) : a, b && console.log("Creating a empty dictionary"); + var m = { strings: [], integers: [], floats: [] }; + b && console.log("Creating the AST"); + var g = function A(h) { + b && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(h)); + var l, o = typeof h; + if (h === null) return { type: "null", index: -3 }; + if (typeof h > "u") return { type: "undefined", index: -5 }; + if (h instanceof Array) { + var c = ["@"]; + for (var d in h) h.hasOwnProperty(d) && c.push(A(h[d])); + return c; + } + if (o === "object") { + for (var p in c = ["$"], h) h.hasOwnProperty(p) && (c.push(A(p)), c.push(A(h[p]))); + return c; + } + if (h === "") return { type: "empty", index: -4 }; + if (o === "string") return (l = i.call(m.strings, h)) == -1 && (m.strings.push(t(h)), l = m.strings.length - 1), { type: "strings", index: l }; + if (o === "number" && h % 1 == 0) return (l = i.call(m.integers, h)) == -1 && (m.integers.push(r(h)), l = m.integers.length - 1), { type: "integers", index: l }; + if (o === "number") return (l = i.call(m.floats, h)) == -1 && (m.floats.push(h), l = m.floats.length - 1), { type: "floats", index: l }; + if (o === "boolean") return { type: "boolean", index: h ? -1 : -2 }; + throw new Error("Unexpected argument of type " + typeof h); + }(a), s = m.strings.length, y = m.integers.length; + m.floats.length, b && console.log("Parsing the dictionary"); + var w = m.strings.join("|"); + return w += "^" + m.integers.join("|"), w += "^" + m.floats.join("|"), b && console.log("Parsing the structure"), w += "^" + function A(h) { + if (b && console.log("Calling a recursiveParser with " + this.JSON.stringify(h)), h instanceof Array) { + var l = h.shift(); + for (var o in h) h.hasOwnProperty(o) && (l += A(h[o]) + "|"); + return (l[l.length - 1] === "|" ? l.slice(0, -1) : l) + "]"; + } + var c = h.type, d = h.index; + if (c === "strings") return r(d); + if (c === "integers") return r(s + d); + if (c === "floats") return r(s + y + d); + if (c === "boolean") return h.index; + if (c === "null") return -3; + if (c === "undefined") return -5; + if (c === "empty") return -4; + throw new TypeError("The item is alien!"); + }(g), b && console.log("Ending parser"), u.debug ? { dictionary: m, ast: g, packed: w } : w; + }, unpack: function(a, u) { + u = u || {}; + var b = a.split("^"); + u.verbose && console.log("Building dictionary"); + var m = [], g = b[0]; + if (g !== "") { + g = g.split("|"), u.verbose && console.log("Parse the strings dictionary"); + for (var s = 0, y = g.length; s < y; s++) m.push(e(g[s])); + } + if ((g = b[1]) !== "") for (g = g.split("|"), u.verbose && console.log("Parse the integers dictionary"), s = 0, y = g.length; s < y; s++) m.push(n(g[s])); + if ((g = b[2]) !== "") for (g = g.split("|"), u.verbose && console.log("Parse the floats dictionary"), s = 0, y = g.length; s < y; s++) m.push(parseFloat(g[s])); + g = null, u.verbose && console.log("Tokenizing the structure"); + var w = "", A = [], h = b[3].length; + for (s = 0; s < h; s++) { + var l = b[3].charAt(s); + l === "|" || l === "$" || l === "@" || l === "]" ? (w && (A.push(n(w)), w = ""), l !== "|" && A.push(l)) : w += l; + } + var o = A.length, c = 0; + return u.verbose && console.log("Starting recursive parser"), function d() { + var p = A[c++]; + if (u.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") { + for (var f = []; c < o; c++) { + var E = A[c]; + if (u.verbose && console.log("Read " + E + " symbol"), E === "]") return f; + if (E === "@" || E === "$") f.push(d()); + else switch (E) { + case -1: + f.push(!0); + break; + case -2: + f.push(!1); + break; + case -3: + f.push(null); + break; + case -5: + f.push(void 0); + break; + case -4: + f.push(""); + break; + default: + f.push(m[E]); + } + } + return u.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + if (p === "$") { + for (f = {}; c < o; c++) { + var S = A[c]; + if (S === "]") return f; + if (S = S === -4 ? "" : m[S], (E = A[++c]) === "@" || E === "$") f[S] = d(); + else switch (E) { + case -1: + f[S] = !0; + break; + case -2: + f[S] = !1; + break; + case -3: + f[S] = null; + break; + case -5: + f[S] = void 0; + break; + case -4: + f[S] = ""; + break; + default: + f[S] = m[E]; + } + } + return u.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + throw new TypeError("Bad token " + p + " isn't a type"); + }(); + } }; +}); +const ge = dr(ke); +var Y, Z, H, q, _t, Pt, st, kt, Nt; +class jt { + constructor(e, r, n, i, a) { + return x(this, "code", 0), x(this, "message", "操作成功"), x(this, "data", null), x(this, "url", ""), x(this, "res", ""), P(this, Y, null), P(this, Z, !0), P(this, H, !0), P(this, q, { get: (u, b) => C(this, _t).call(this, b), ownKeys: () => Object.keys(C(this, q).getPrototypeOf() || {}), getPrototypeOf: () => C(this, Z) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: C(this, q).getPrototypeOf() }) }), P(this, _t, (u) => u === "$echoMsg" ? C(this, st) : u === "msg" ? C(this, Pt) : u === "then" || u === "resp" ? (L(this, H, !0), L(this, Z, u === "resp"), C(this, kt)) : u === "catch" ? C(this, Nt) : u === "IS_ECHO_MSG" ? C(this, H) : Reflect.get(this, u)), P(this, Pt, (u = (m) => m, b = !1) => (C(this, st).call(this), L(this, Z, b), Promise.resolve(u == null ? void 0 : u(C(this, q).getPrototypeOf())))), P(this, st, () => { + C(this, H) && (L(this, H, !1), br.onMsg(this.code, this.message)); + }), P(this, kt, (u) => [0, 1].includes(this.code) ? Promise.resolve(u == null ? void 0 : u(C(this, q).getPrototypeOf())) : Promise.reject(C(this, Y))), P(this, Nt, (u) => Promise.resolve(u(C(this, Y)))), this.code = e, this.message = r, this.data = n, this.url = i, this.res = a, L(this, Y, new Proxy(this, C(this, q))); + } +} +Y = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(); +const Et = (t, e, r, n = "/", i = "") => new jt(t, e, r, n, i); +var ye = ["utf8", "utf-8", "unicode-1-1-utf-8"], Ne = { TextEncoder: function(t) { + if (ye.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); + this.encoding = "utf-8", this.encode = function(e) { + if (typeof e != "string") throw new TypeError("passed argument must be of tye string"); + var r = unescape(encodeURIComponent(e)), n = new Uint8Array(r.length); + const i = r.split(""); + for (let a = 0; a < i.length; a++) n[a] = i[a].charCodeAt(0); + return n; + }; +}, TextDecoder: function(t) { + if (ye.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); + this.encoding = "utf-8", this.decode = function(e, r) { + if (typeof e > "u") return ""; + var n = typeof r < "u" && n in r && r.stream; + if (typeof n != "boolean") throw new TypeError("stream option must be boolean"); + if (ArrayBuffer.isView(e)) { + var i = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), a = new Array(i.length); + for (let u = 0; u < i.length; u++) a[u] = String.fromCharCode(i[u]); + return decodeURIComponent(escape(a.join(""))); + } + throw new TypeError("passed argument must be an array buffer view"); + }; +} }; +const pr = new Ne.TextEncoder("utf8"); +new Ne.TextDecoder("utf8"); +class gr { + constructor(e) { + if (x(this, "encodeTable", []), x(this, "decodeMap", new Uint8Array(256).fill(255)), e.length !== 62) throw new Error("Encoding alphabet must be 62 characters long"); + if (e.includes(` +`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character"); + this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255); + for (let r = 0; r < e.length; r++) this.decodeMap[e.charCodeAt(r)] = r; + } + encode(e) { + if (!e || e.length === 0) return []; + const r = new yr(this).encodeV2(e); + return String.fromCharCode(...r); + } + decode(e) { + if (!e || e.length === 0) return new Uint8Array(); + const r = new mr(this).decode(e); + return new TextDecoder().decode(r); + } +} +var it, at, J, I, Ut, M, D, V, Bt, ct; +class yr { + constructor(e) { + P(this, it, null), L(this, it, e); + } + get6bits() { + let e = 7 & this.pos, r = this.pos >> 3; + e === 0 && (r -= 1, e = 8); + let n = this.src[r] >> 8 - e; + return e < 6 && r > 0 && (n |= this.src[r - 1] << e), 63 & n; + } + encodeV2(e) { + this.src = ((n) => pr.encode(n || ""))(e), this.pos = 8 * this.src.length; + const r = []; + for (; this.pos > 0; ) { + let n = 6, i = this.get6bits(); + !(30 & ~i) && ((this.pos > 6 || i > 31) && (n = 5), i &= 31), r.push(C(this, it).encodeTable[i].charCodeAt(0)), this.pos -= n; + } + return r; + } +} +it = /* @__PURE__ */ new WeakMap(); +class mr { + constructor(e) { + P(this, at, null), L(this, at, e); + } + decode(e) { + const r = new Uint8Array(Math.ceil(6 * e.length / 8) + 1); + let n = r.length, i = 0, a = 0; + for (let u = 0; u < e.length; u++) { + const b = e[u].charCodeAt(0), m = C(this, at).decodeMap[b]; + if (m === 255) throw new Error(`CorruptInputError at index ${u}`); + u === e.length - 1 ? (a |= m << i, i += Math.ceil(Math.log2(m + 1))) : 30 & ~m ? (a |= m << i, i += 6) : (a |= m << i, i += 5), i >= 8 && (n--, r[n] = 255 & a, i %= 8, a >>= 8); + } + return i > 0 && (n--, r[n] = 255 & a), r.slice(n); + } +} +at = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { + let t, e; + return { promise: new Promise((r, n) => { + t = r, e = n; + }), resolve: t, reject: e }; +}); +class Lt { + constructor(e, r, n) { + P(this, J, void 0), P(this, I, void 0), P(this, Ut, void 0), P(this, M, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), P(this, D, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Set()), x(this, "init", (i, a, u) => { + i && L(this, Ut, i), u && L(this, J, u), a && L(this, I, new gr(a)), C(this, Bt).call(this); + }), P(this, Bt, () => { + !C(this, V).size || !C(this, J) || (C(this, V).forEach((i) => C(this, ct).call(this, ...i)), C(this, V).clear()); + }), P(this, ct, (i, a, u, b = !1) => { + if (C(this, J)) { + const { url: m, method: g, ...s } = u || {}; + C(this, J).call(this, { url: m, method: g, ...s }).then((y) => { + if (![0, 1].includes(y.code)) throw Et(y.code, y.msg, y.data, m, y == null ? void 0 : y.res); + return [y.code, y.msg, y.data, m, y == null ? void 0 : y.res]; + }).then((y) => ((a == "#" || g == "GET") && C(this, M)[a].set(i, y), a != "#" && g == "GET" && !b && setTimeout(() => { + C(this, M)[a].delete(i); + }, 300), y)).then((y) => { + var w; + return (w = C(this, D).get(i)) == null ? void 0 : w.forEach((A, h, l) => { + A && A[0](y), delete l[h]; + }); + }).catch((y) => { + var w; + C(this, M)[a].delete(i), (w = C(this, D).get(i)) == null || w.forEach((A, h, l) => { + A && A[1](y instanceof jt ? y : Et(-1, y, null, m)), delete l[h]; + }); + }).finally(() => C(this, D).delete(i)); + } else C(this, V).add([i, a, u, b]); + }), x(this, "request", ({ url: i = "/", method: a = "GET", ...u }, b = !1) => { + var m; + i = ((l, o) => l.replace(new RegExp(`^${o}+|${o}+$`, "g"), ""))(i, "/"); + const g = a.toUpperCase(), s = ((l) => { + let o = 5381; + for (let c = 0; c < l.length; c++) o = 33 * o ^ l.charCodeAt(c); + return (o >>> 0).toString(16); + })(JSON.stringify([i, g, u])), y = (m = i == null ? void 0 : i.includes) != null && m.call(i, "/_/") ? "#" : "$", { promise: w, resolve: A, reject: h } = Promise.withResolvers(); + return C(this, M)[y].has(s) ? (console.log("cache", i), A(C(this, M)[y].get(s))) : C(this, D).has(s) ? C(this, D).get(s).push([A, h]) : (C(this, D).set(s, [[A, h]]), C(this, ct).call(this, s, y, { url: i, method: g, ...u }, b)), new Proxy(w, { get: (l, o) => (...c) => l.then((d) => Et(...d)[o](...c)).catch((d) => { + if (!d instanceof jt) throw d; + return typeof d[o] == "function" ? d[o](...c) : d[o]; + }) }); + }), x(this, "get", (i, a = {}) => this.request({ url: i, method: "GET", params: a })), x(this, "post", (i, a = {}, u = {}) => this.request({ url: i, method: "POST", data: a, params: u })), x(this, "put", (i, a = {}, u = {}) => this.request({ url: i, method: "PUT", data: a, params: u })), x(this, "del", (i, a = {}, u = {}) => this.request({ url: i, method: "DELETE", data: a, params: u })), x(this, "download", (i, a) => { + }), x(this, "cache", (i, a = {}) => this.request({ url: i, method: "GET", params: a }, !0)), x(this, "list", (i, a = {}) => this.get(`/api/${i}/${this.encode(a)}`)), x(this, "getAppInfo", () => { + }), x(this, "refreshCache", (i = !1) => { + i && C(this, M)["#"].clear(), C(this, M).$.clear(); + }), x(this, "decode", (i = "", a = {}) => { + if (i === void 0 || i === "" || i === null) return a; + try { + if (!C(this, I)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); + const u = C(this, I).decode(i); + return ge.unpack(u); + } catch { + return console.warn("core.decode", i), a; + } + }), x(this, "encode", (i = {}) => { + if (!C(this, I)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); + const a = JSON.stringify(i, (u, b) => b === void 0 ? null : b); + return C(this, I).encode(ge.pack(a)); + }), this.init(e, r, n); + } +} +J = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(); +const br = Lt; +Lt.onUnhandledRejection = (t) => { + var e, r, n, i, a, u; + t != null && t.IS_ECHO_MSG ? ((e = t == null ? void 0 : t.$echoMsg) == null || e.call(t), (r = t == null ? void 0 : t.preventDefault) == null || r.call(t)) : (n = t.reason) != null && n.IS_ECHO_MSG && ((a = (i = t.reason) == null ? void 0 : i.$echoMsg) == null || a.call(i), (u = t == null ? void 0 : t.preventDefault) == null || u.call(t)); +}, Lt.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e); +function zt(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +var je = { exports: {} }; +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ +je.exports = function() { + var t, e, r = { version: "0.2.0" }, n = r.settings = { minimum: 0.08, easing: "ease", positionUsing: "", speed: 200, trickle: !0, trickleRate: 0.02, trickleSpeed: 800, showSpinner: !0, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: "body", template: '
' }; + function i(h, l, o) { + return h < l ? l : h > o ? o : h; + } + function a(h) { + return 100 * (-1 + h); + } + function u(h, l, o) { + var c; + return (c = n.positionUsing === "translate3d" ? { transform: "translate3d(" + a(h) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + a(h) + "%,0)" } : { "margin-left": a(h) + "%" }).transition = "all " + l + "ms " + o, c; + } + r.configure = function(h) { + var l, o; + for (l in h) (o = h[l]) !== void 0 && h.hasOwnProperty(l) && (n[l] = o); + return this; + }, r.status = null, r.set = function(h) { + var l = r.isStarted(); + h = i(h, n.minimum, 1), r.status = h === 1 ? null : h; + var o = r.render(!l), c = o.querySelector(n.barSelector), d = n.speed, p = n.easing; + return o.offsetWidth, b(function(f) { + n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), m(c, u(h, d, p)), h === 1 ? (m(o, { transition: "none", opacity: 1 }), o.offsetWidth, setTimeout(function() { + m(o, { transition: "all " + d + "ms linear", opacity: 0 }), setTimeout(function() { + r.remove(), f(); + }, d); + }, d)) : setTimeout(f, d); + }), this; + }, r.isStarted = function() { + return typeof r.status == "number"; + }, r.start = function() { + r.status || r.set(0); + var h = function() { + setTimeout(function() { + r.status && (r.trickle(), h()); + }, n.trickleSpeed); + }; + return n.trickle && h(), this; + }, r.done = function(h) { + return h || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this; + }, r.inc = function(h) { + var l = r.status; + return l ? (typeof h != "number" && (h = (1 - l) * i(Math.random() * l, 0.1, 0.95)), l = i(l + h, 0, 0.994), r.set(l)) : r.start(); + }, r.trickle = function() { + return r.inc(Math.random() * n.trickleRate); + }, t = 0, e = 0, r.promise = function(h) { + return h && h.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, h.always(function() { + --e == 0 ? (t = 0, r.done()) : r.set((t - e) / t); + }), this) : this; + }, r.render = function(h) { + if (r.isRendered()) return document.getElementById("nprogress"); + s(document.documentElement, "nprogress-busy"); + var l = document.createElement("div"); + l.id = "nprogress", l.innerHTML = n.template; + var o, c = l.querySelector(n.barSelector), d = h ? "-100" : a(r.status || 0), p = document.querySelector(n.parent); + return m(c, { transition: "all 0 linear", transform: "translate3d(" + d + "%,0,0)" }), n.showSpinner || (o = l.querySelector(n.spinnerSelector)) && A(o), p != document.body && s(p, "nprogress-custom-parent"), p.appendChild(l), l; + }, r.remove = function() { + y(document.documentElement, "nprogress-busy"), y(document.querySelector(n.parent), "nprogress-custom-parent"); + var h = document.getElementById("nprogress"); + h && A(h); + }, r.isRendered = function() { + return !!document.getElementById("nprogress"); + }, r.getPositioningCSS = function() { + var h = document.body.style, l = "WebkitTransform" in h ? "Webkit" : "MozTransform" in h ? "Moz" : "msTransform" in h ? "ms" : "OTransform" in h ? "O" : ""; + return l + "Perspective" in h ? "translate3d" : l + "Transform" in h ? "translate" : "margin"; + }; + var b = /* @__PURE__ */ function() { + var h = []; + function l() { + var o = h.shift(); + o && o(l); + } + return function(o) { + h.push(o), h.length == 1 && l(); + }; + }(), m = /* @__PURE__ */ function() { + var h = ["Webkit", "O", "Moz", "ms"], l = {}; + function o(f) { + return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(E, S) { + return S.toUpperCase(); + }); + } + function c(f) { + var E = document.body.style; + if (f in E) return f; + for (var S, T = h.length, k = f.charAt(0).toUpperCase() + f.slice(1); T--; ) if ((S = h[T] + k) in E) return S; + return f; + } + function d(f) { + return f = o(f), l[f] || (l[f] = c(f)); + } + function p(f, E, S) { + E = d(E), f.style[E] = S; + } + return function(f, E) { + var S, T, k = arguments; + if (k.length == 2) for (S in E) (T = E[S]) !== void 0 && E.hasOwnProperty(S) && p(f, S, T); + else p(f, k[1], k[2]); + }; + }(); + function g(h, l) { + return (typeof h == "string" ? h : w(h)).indexOf(" " + l + " ") >= 0; + } + function s(h, l) { + var o = w(h), c = o + l; + g(o, l) || (h.className = c.substring(1)); + } + function y(h, l) { + var o, c = w(h); + g(h, l) && (o = c.replace(" " + l + " ", " "), h.className = o.substring(1, o.length - 1)); + } + function w(h) { + return (" " + (h.className || "") + " ").replace(/\s+/gi, " "); + } + function A(h) { + h && h.parentNode && h.parentNode.removeChild(h); + } + return r; +}(); +const wr = zt(je.exports); +var St, Ct, Mt = { exports: {} }; +St = Mt, Ct = Mt.exports, function() { + var t = { version: "3.0.1", x86: {}, x64: {} }; + function e(s, y) { + return (65535 & s) * y + (((s >>> 16) * y & 65535) << 16); + } + function r(s, y) { + return s << y | s >>> 32 - y; + } + function n(s) { + return s = e(s ^= s >>> 16, 2246822507), s = e(s ^= s >>> 13, 3266489909), s ^= s >>> 16; + } + function i(s, y) { + s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], y = [y[0] >>> 16, 65535 & y[0], y[1] >>> 16, 65535 & y[1]]; + var w = [0, 0, 0, 0]; + return w[3] += s[3] + y[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] + y[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] + y[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] + y[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; + } + function a(s, y) { + s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], y = [y[0] >>> 16, 65535 & y[0], y[1] >>> 16, 65535 & y[1]]; + var w = [0, 0, 0, 0]; + return w[3] += s[3] * y[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] * y[3], w[1] += w[2] >>> 16, w[2] &= 65535, w[2] += s[3] * y[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] * y[3], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[2] * y[2], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[3] * y[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] * y[3] + s[1] * y[2] + s[2] * y[1] + s[3] * y[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; + } + function u(s, y) { + return (y %= 64) == 32 ? [s[1], s[0]] : y < 32 ? [s[0] << y | s[1] >>> 32 - y, s[1] << y | s[0] >>> 32 - y] : (y -= 32, [s[1] << y | s[0] >>> 32 - y, s[0] << y | s[1] >>> 32 - y]); + } + function b(s, y) { + return (y %= 64) == 0 ? s : y < 32 ? [s[0] << y | s[1] >>> 32 - y, s[1] << y] : [s[1] << y - 32, 0]; + } + function m(s, y) { + return [s[0] ^ y[0], s[1] ^ y[1]]; + } + function g(s) { + return s = m(s, [0, s[0] >>> 1]), s = m(s = a(s, [4283543511, 3981806797]), [0, s[0] >>> 1]), s = m(s = a(s, [3301882366, 444984403]), [0, s[0] >>> 1]); + } + t.x86.hash32 = function(s, y) { + y = y || 0; + for (var w = (s = s || "").length % 4, A = s.length - w, h = y, l = 0, o = 3432918353, c = 461845907, d = 0; d < A; d += 4) l = e(l = 255 & s.charCodeAt(d) | (255 & s.charCodeAt(d + 1)) << 8 | (255 & s.charCodeAt(d + 2)) << 16 | (255 & s.charCodeAt(d + 3)) << 24, o), l = e(l = r(l, 15), c), h = e(h = r(h ^= l, 13), 5) + 3864292196; + switch (l = 0, w) { + case 3: + l ^= (255 & s.charCodeAt(d + 2)) << 16; + case 2: + l ^= (255 & s.charCodeAt(d + 1)) << 8; + case 1: + l = e(l ^= 255 & s.charCodeAt(d), o), h ^= l = e(l = r(l, 15), c); + } + return (h = n(h ^= s.length)) >>> 0; + }, t.x86.hash128 = function(s, y) { + y = y || 0; + for (var w = (s = s || "").length % 16, A = s.length - w, h = y, l = y, o = y, c = y, d = 0, p = 0, f = 0, E = 0, S = 597399067, T = 2869860233, k = 951274213, et = 2716044179, R = 0; R < A; R += 16) d = 255 & s.charCodeAt(R) | (255 & s.charCodeAt(R + 1)) << 8 | (255 & s.charCodeAt(R + 2)) << 16 | (255 & s.charCodeAt(R + 3)) << 24, p = 255 & s.charCodeAt(R + 4) | (255 & s.charCodeAt(R + 5)) << 8 | (255 & s.charCodeAt(R + 6)) << 16 | (255 & s.charCodeAt(R + 7)) << 24, f = 255 & s.charCodeAt(R + 8) | (255 & s.charCodeAt(R + 9)) << 8 | (255 & s.charCodeAt(R + 10)) << 16 | (255 & s.charCodeAt(R + 11)) << 24, E = 255 & s.charCodeAt(R + 12) | (255 & s.charCodeAt(R + 13)) << 8 | (255 & s.charCodeAt(R + 14)) << 16 | (255 & s.charCodeAt(R + 15)) << 24, d = r(d = e(d, S), 15), h = r(h ^= d = e(d, T), 19), h = e(h += l, 5) + 1444728091, p = r(p = e(p, T), 16), l = r(l ^= p = e(p, k), 17), l = e(l += o, 5) + 197830471, f = r(f = e(f, k), 17), o = r(o ^= f = e(f, et), 15), o = e(o += c, 5) + 2530024501, E = r(E = e(E, et), 18), c = r(c ^= E = e(E, S), 13), c = e(c += h, 5) + 850148119; + switch (d = 0, p = 0, f = 0, E = 0, w) { + case 15: + E ^= s.charCodeAt(R + 14) << 16; + case 14: + E ^= s.charCodeAt(R + 13) << 8; + case 13: + E = e(E ^= s.charCodeAt(R + 12), et), c ^= E = e(E = r(E, 18), S); + case 12: + f ^= s.charCodeAt(R + 11) << 24; + case 11: + f ^= s.charCodeAt(R + 10) << 16; + case 10: + f ^= s.charCodeAt(R + 9) << 8; + case 9: + f = e(f ^= s.charCodeAt(R + 8), k), o ^= f = e(f = r(f, 17), et); + case 8: + p ^= s.charCodeAt(R + 7) << 24; + case 7: + p ^= s.charCodeAt(R + 6) << 16; + case 6: + p ^= s.charCodeAt(R + 5) << 8; + case 5: + p = e(p ^= s.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), k); + case 4: + d ^= s.charCodeAt(R + 3) << 24; + case 3: + d ^= s.charCodeAt(R + 2) << 16; + case 2: + d ^= s.charCodeAt(R + 1) << 8; + case 1: + d = e(d ^= s.charCodeAt(R), S), h ^= d = e(d = r(d, 15), T); + } + return h ^= s.length, h += l ^= s.length, h += o ^= s.length, l += h += c ^= s.length, o += h, c += h, h = n(h), h += l = n(l), h += o = n(o), l += h += c = n(c), o += h, c += h, ("00000000" + (h >>> 0).toString(16)).slice(-8) + ("00000000" + (l >>> 0).toString(16)).slice(-8) + ("00000000" + (o >>> 0).toString(16)).slice(-8) + ("00000000" + (c >>> 0).toString(16)).slice(-8); + }, t.x64.hash128 = function(s, y) { + y = y || 0; + for (var w = (s = s || "").length % 16, A = s.length - w, h = [0, y], l = [0, y], o = [0, 0], c = [0, 0], d = [2277735313, 289559509], p = [1291169091, 658871167], f = 0; f < A; f += 16) o = [255 & s.charCodeAt(f + 4) | (255 & s.charCodeAt(f + 5)) << 8 | (255 & s.charCodeAt(f + 6)) << 16 | (255 & s.charCodeAt(f + 7)) << 24, 255 & s.charCodeAt(f) | (255 & s.charCodeAt(f + 1)) << 8 | (255 & s.charCodeAt(f + 2)) << 16 | (255 & s.charCodeAt(f + 3)) << 24], c = [255 & s.charCodeAt(f + 12) | (255 & s.charCodeAt(f + 13)) << 8 | (255 & s.charCodeAt(f + 14)) << 16 | (255 & s.charCodeAt(f + 15)) << 24, 255 & s.charCodeAt(f + 8) | (255 & s.charCodeAt(f + 9)) << 8 | (255 & s.charCodeAt(f + 10)) << 16 | (255 & s.charCodeAt(f + 11)) << 24], o = u(o = a(o, d), 31), h = i(h = u(h = m(h, o = a(o, p)), 27), l), h = i(a(h, [0, 5]), [0, 1390208809]), c = u(c = a(c, p), 33), l = i(l = u(l = m(l, c = a(c, d)), 31), h), l = i(a(l, [0, 5]), [0, 944331445]); + switch (o = [0, 0], c = [0, 0], w) { + case 15: + c = m(c, b([0, s.charCodeAt(f + 14)], 48)); + case 14: + c = m(c, b([0, s.charCodeAt(f + 13)], 40)); + case 13: + c = m(c, b([0, s.charCodeAt(f + 12)], 32)); + case 12: + c = m(c, b([0, s.charCodeAt(f + 11)], 24)); + case 11: + c = m(c, b([0, s.charCodeAt(f + 10)], 16)); + case 10: + c = m(c, b([0, s.charCodeAt(f + 9)], 8)); + case 9: + c = a(c = m(c, [0, s.charCodeAt(f + 8)]), p), l = m(l, c = a(c = u(c, 33), d)); + case 8: + o = m(o, b([0, s.charCodeAt(f + 7)], 56)); + case 7: + o = m(o, b([0, s.charCodeAt(f + 6)], 48)); + case 6: + o = m(o, b([0, s.charCodeAt(f + 5)], 40)); + case 5: + o = m(o, b([0, s.charCodeAt(f + 4)], 32)); + case 4: + o = m(o, b([0, s.charCodeAt(f + 3)], 24)); + case 3: + o = m(o, b([0, s.charCodeAt(f + 2)], 16)); + case 2: + o = m(o, b([0, s.charCodeAt(f + 1)], 8)); + case 1: + o = a(o = m(o, [0, s.charCodeAt(f)]), d), h = m(h, o = a(o = u(o, 31), p)); + } + return h = i(h = m(h, [0, s.length]), l = m(l, [0, s.length])), l = i(l, h), h = i(h = g(h), l = g(l)), l = i(l, h), ("00000000" + (h[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (h[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[1] >>> 0).toString(16)).slice(-8); + }, St.exports && (Ct = St.exports = t), Ct.murmurHash3 = t; +}(); +const vr = zt(Mt.exports); +var Ue = { exports: {} }; +Ue.exports = function(t) { + var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; + function r(l, o) { + var c = l[0], d = l[1], p = l[2], f = l[3]; + d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & p | ~d & f) + o[0] - 680876936 | 0) << 7 | c >>> 25) + d | 0) & d | ~c & p) + o[1] - 389564586 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & d) + o[2] + 606105819 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & c) + o[3] - 1044525330 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & p | ~d & f) + o[4] - 176418897 | 0) << 7 | c >>> 25) + d | 0) & d | ~c & p) + o[5] + 1200080426 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & d) + o[6] - 1473231341 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & c) + o[7] - 45705983 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & p | ~d & f) + o[8] + 1770035416 | 0) << 7 | c >>> 25) + d | 0) & d | ~c & p) + o[9] - 1958414417 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & d) + o[10] - 42063 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & c) + o[11] - 1990404162 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & p | ~d & f) + o[12] + 1804603682 | 0) << 7 | c >>> 25) + d | 0) & d | ~c & p) + o[13] - 40341101 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & d) + o[14] - 1502002290 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & c) + o[15] + 1236535329 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & f | p & ~f) + o[1] - 165796510 | 0) << 5 | c >>> 27) + d | 0) & p | d & ~p) + o[6] - 1069501632 | 0) << 9 | f >>> 23) + c | 0) & d | c & ~d) + o[11] + 643717713 | 0) << 14 | p >>> 18) + f | 0) & c | f & ~c) + o[0] - 373897302 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & f | p & ~f) + o[5] - 701558691 | 0) << 5 | c >>> 27) + d | 0) & p | d & ~p) + o[10] + 38016083 | 0) << 9 | f >>> 23) + c | 0) & d | c & ~d) + o[15] - 660478335 | 0) << 14 | p >>> 18) + f | 0) & c | f & ~c) + o[4] - 405537848 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & f | p & ~f) + o[9] + 568446438 | 0) << 5 | c >>> 27) + d | 0) & p | d & ~p) + o[14] - 1019803690 | 0) << 9 | f >>> 23) + c | 0) & d | c & ~d) + o[3] - 187363961 | 0) << 14 | p >>> 18) + f | 0) & c | f & ~c) + o[8] + 1163531501 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d & f | p & ~f) + o[13] - 1444681467 | 0) << 5 | c >>> 27) + d | 0) & p | d & ~p) + o[2] - 51403784 | 0) << 9 | f >>> 23) + c | 0) & d | c & ~d) + o[7] + 1735328473 | 0) << 14 | p >>> 18) + f | 0) & c | f & ~c) + o[12] - 1926607734 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d ^ p ^ f) + o[5] - 378558 | 0) << 4 | c >>> 28) + d | 0) ^ d ^ p) + o[8] - 2022574463 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ d) + o[11] + 1839030562 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ c) + o[14] - 35309556 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d ^ p ^ f) + o[1] - 1530992060 | 0) << 4 | c >>> 28) + d | 0) ^ d ^ p) + o[4] + 1272893353 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ d) + o[7] - 155497632 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ c) + o[10] - 1094730640 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d ^ p ^ f) + o[13] + 681279174 | 0) << 4 | c >>> 28) + d | 0) ^ d ^ p) + o[0] - 358537222 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ d) + o[3] - 722521979 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ c) + o[6] + 76029189 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((c = ((c += (d ^ p ^ f) + o[9] - 640364487 | 0) << 4 | c >>> 28) + d | 0) ^ d ^ p) + o[12] - 421815835 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ d) + o[15] + 530742520 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ c) + o[2] - 995338651 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((f = ((f += (d ^ ((c = ((c += (p ^ (d | ~f)) + o[0] - 198630844 | 0) << 6 | c >>> 26) + d | 0) | ~p)) + o[7] + 1126891415 | 0) << 10 | f >>> 22) + c | 0) ^ ((p = ((p += (c ^ (f | ~d)) + o[14] - 1416354905 | 0) << 15 | p >>> 17) + f | 0) | ~c)) + o[5] - 57434055 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((c = ((c += (p ^ (d | ~f)) + o[12] + 1700485571 | 0) << 6 | c >>> 26) + d | 0) | ~p)) + o[3] - 1894986606 | 0) << 10 | f >>> 22) + c | 0) ^ ((p = ((p += (c ^ (f | ~d)) + o[10] - 1051523 | 0) << 15 | p >>> 17) + f | 0) | ~c)) + o[1] - 2054922799 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((c = ((c += (p ^ (d | ~f)) + o[8] + 1873313359 | 0) << 6 | c >>> 26) + d | 0) | ~p)) + o[15] - 30611744 | 0) << 10 | f >>> 22) + c | 0) ^ ((p = ((p += (c ^ (f | ~d)) + o[6] - 1560198380 | 0) << 15 | p >>> 17) + f | 0) | ~c)) + o[13] + 1309151649 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((c = ((c += (p ^ (d | ~f)) + o[4] - 145523070 | 0) << 6 | c >>> 26) + d | 0) | ~p)) + o[11] - 1120210379 | 0) << 10 | f >>> 22) + c | 0) ^ ((p = ((p += (c ^ (f | ~d)) + o[2] + 718787259 | 0) << 15 | p >>> 17) + f | 0) | ~c)) + o[9] - 343485551 | 0) << 21 | d >>> 11) + p | 0, l[0] = c + l[0] | 0, l[1] = d + l[1] | 0, l[2] = p + l[2] | 0, l[3] = f + l[3] | 0; + } + function n(l) { + var o, c = []; + for (o = 0; o < 64; o += 4) c[o >> 2] = l.charCodeAt(o) + (l.charCodeAt(o + 1) << 8) + (l.charCodeAt(o + 2) << 16) + (l.charCodeAt(o + 3) << 24); + return c; + } + function i(l) { + var o, c = []; + for (o = 0; o < 64; o += 4) c[o >> 2] = l[o] + (l[o + 1] << 8) + (l[o + 2] << 16) + (l[o + 3] << 24); + return c; + } + function a(l) { + var o, c, d, p, f, E, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (o = 64; o <= S; o += 64) r(T, n(l.substring(o - 64, o))); + for (c = (l = l.substring(o - 64)).length, d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < c; o += 1) d[o >> 2] |= l.charCodeAt(o) << (o % 4 << 3); + if (d[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(T, d), o = 0; o < 16; o += 1) d[o] = 0; + return p = (p = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), E = parseInt(p[1], 16) || 0, d[14] = f, d[15] = E, r(T, d), T; + } + function u(l) { + var o, c, d, p, f, E, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (o = 64; o <= S; o += 64) r(T, i(l.subarray(o - 64, o))); + for (c = (l = o - 64 < S ? l.subarray(o - 64) : new Uint8Array(0)).length, d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < c; o += 1) d[o >> 2] |= l[o] << (o % 4 << 3); + if (d[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(T, d), o = 0; o < 16; o += 1) d[o] = 0; + return p = (p = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), E = parseInt(p[1], 16) || 0, d[14] = f, d[15] = E, r(T, d), T; + } + function b(l) { + var o, c = ""; + for (o = 0; o < 4; o += 1) c += e[l >> 8 * o + 4 & 15] + e[l >> 8 * o & 15]; + return c; + } + function m(l) { + var o; + for (o = 0; o < l.length; o += 1) l[o] = b(l[o]); + return l.join(""); + } + function g(l) { + return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l; + } + function s(l, o) { + var c, d = l.length, p = new ArrayBuffer(d), f = new Uint8Array(p); + for (c = 0; c < d; c += 1) f[c] = l.charCodeAt(c); + return o ? f : p; + } + function y(l) { + return String.fromCharCode.apply(null, new Uint8Array(l)); + } + function w(l, o, c) { + var d = new Uint8Array(l.byteLength + o.byteLength); + return d.set(new Uint8Array(l)), d.set(new Uint8Array(o), l.byteLength), d; + } + function A(l) { + var o, c = [], d = l.length; + for (o = 0; o < d - 1; o += 2) c.push(parseInt(l.substr(o, 2), 16)); + return String.fromCharCode.apply(String, c); + } + function h() { + this.reset(); + } + return m(a("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { + function l(o, c) { + return (o = 0 | o || 0) < 0 ? Math.max(o + c, 0) : Math.min(o, c); + } + ArrayBuffer.prototype.slice = function(o, c) { + var d, p, f, E, S = this.byteLength, T = l(o, S), k = S; + return c !== t && (k = l(c, S)), T > k ? new ArrayBuffer(0) : (d = k - T, p = new ArrayBuffer(d), f = new Uint8Array(p), E = new Uint8Array(this, T, d), f.set(E), p); + }; + }(), h.prototype.append = function(l) { + return this.appendBinary(g(l)), this; + }, h.prototype.appendBinary = function(l) { + this._buff += l, this._length += l.length; + var o, c = this._buff.length; + for (o = 64; o <= c; o += 64) r(this._hash, n(this._buff.substring(o - 64, o))); + return this._buff = this._buff.substring(o - 64), this; + }, h.prototype.end = function(l) { + var o, c, d = this._buff, p = d.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (o = 0; o < p; o += 1) f[o >> 2] |= d.charCodeAt(o) << (o % 4 << 3); + return this._finish(f, p), c = m(this._hash), l && (c = A(c)), this.reset(), c; + }, h.prototype.reset = function() { + return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, h.prototype.getState = function() { + return { buff: this._buff, length: this._length, hash: this._hash.slice() }; + }, h.prototype.setState = function(l) { + return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this; + }, h.prototype.destroy = function() { + delete this._hash, delete this._buff, delete this._length; + }, h.prototype._finish = function(l, o) { + var c, d, p, f = o; + if (l[f >> 2] |= 128 << (f % 4 << 3), f > 55) for (r(this._hash, l), f = 0; f < 16; f += 1) l[f] = 0; + c = (c = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), d = parseInt(c[2], 16), p = parseInt(c[1], 16) || 0, l[14] = d, l[15] = p, r(this._hash, l); + }, h.hash = function(l, o) { + return h.hashBinary(g(l), o); + }, h.hashBinary = function(l, o) { + var c = m(a(l)); + return o ? A(c) : c; + }, h.ArrayBuffer = function() { + this.reset(); + }, h.ArrayBuffer.prototype.append = function(l) { + var o, c = w(this._buff.buffer, l), d = c.length; + for (this._length += l.byteLength, o = 64; o <= d; o += 64) r(this._hash, i(c.subarray(o - 64, o))); + return this._buff = o - 64 < d ? new Uint8Array(c.buffer.slice(o - 64)) : new Uint8Array(0), this; + }, h.ArrayBuffer.prototype.end = function(l) { + var o, c, d = this._buff, p = d.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (o = 0; o < p; o += 1) f[o >> 2] |= d[o] << (o % 4 << 3); + return this._finish(f, p), c = m(this._hash), l && (c = A(c)), this.reset(), c; + }, h.ArrayBuffer.prototype.reset = function() { + return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, h.ArrayBuffer.prototype.getState = function() { + var l = h.prototype.getState.call(this); + return l.buff = y(l.buff), l; + }, h.ArrayBuffer.prototype.setState = function(l) { + return l.buff = s(l.buff, !0), h.prototype.setState.call(this, l); + }, h.ArrayBuffer.prototype.destroy = h.prototype.destroy, h.ArrayBuffer.prototype._finish = h.prototype._finish, h.ArrayBuffer.hash = function(l, o) { + var c = m(u(new Uint8Array(l))); + return o ? A(c) : c; + }, h; +}(); +const Ar = zt(Ue.exports); +export { + vr as M, + wr as N, + Ar as S, + br as _, + _ as a +}; diff --git a/dist/components.js b/dist/components.js index 423690a..aaefb69 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-Bv6_dpPM.js"; +import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-DU7Fa-r2.js"; export { p as Empty, s as Icon, diff --git a/dist/container.js b/dist/container.js index 8df8204..6e0c8c2 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-Bv6_dpPM.js"; +import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-DU7Fa-r2.js"; export { e as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 2008ae3..fcf5f37 100644 --- a/dist/data-converter.js +++ b/dist/data-converter.js @@ -1,6 +1,6 @@ import "lodash"; import "react"; -import { D as p } from "./common/main-Bv6_dpPM.js"; +import { D as p } from "./common/main-DU7Fa-r2.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 22c09b7..795adeb 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-Bv6_dpPM.js"; +import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-DU7Fa-r2.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index e3da690..a579583 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { n as a } from "../common/main-Bv6_dpPM.js"; +import { n as a } from "../common/main-DU7Fa-r2.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 79dd0ea..bc8dab3 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-Bv6_dpPM.js"; +import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-DU7Fa-r2.js"; export { s as GridLayoutForm, r as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index cb1ad42..19fb4e0 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { a as o, g } from "../common/main-Bv6_dpPM.js"; +import { a as o, g } from "../common/main-DU7Fa-r2.js"; export { o as getNormalizeWidget, g as getOptionItemByValue diff --git a/dist/grid-layout.js b/dist/grid-layout.js index e9dc10f..ae0dec4 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-Bv6_dpPM.js"; +import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-DU7Fa-r2.js"; export { u as GridLayout, e as GridLayoutFramework, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index eb10afb..d0b8a18 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { j as a, l, k as o } from "../common/main-Bv6_dpPM.js"; +import { j as a, l, k as o } from "../common/main-DU7Fa-r2.js"; export { a as getBoxStyle, l as getNormalizeFields, diff --git a/dist/hooks.js b/dist/hooks.js index 6256efa..4f4a5dd 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-Bv6_dpPM.js"; +import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-DU7Fa-r2.js"; import { default as b } from "rc-util/lib/hooks/useMergedState"; export { r as useDeepEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index 8d55ae3..5145182 100644 --- a/dist/iconfont.js +++ b/dist/iconfont.js @@ -2,7 +2,7 @@ import "react/jsx-runtime"; import "react"; import "prop-types"; import "classnames"; -import { af as a } from "./common/main-Bv6_dpPM.js"; +import { af as a } from "./common/main-DU7Fa-r2.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 9cbaed4..aca3a7b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-Bv6_dpPM.js"; +import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-DU7Fa-r2.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index a538dd2..85af18b 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -1,4 +1,4 @@ -import { W as t, V as e, X as o, Y as g } from "./common/main-Bv6_dpPM.js"; +import { W as t, V as e, X as o, Y as g } from "./common/main-DU7Fa-r2.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index 13490a0..0adcbae 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-Bv6_dpPM.js"; +import { R as a } from "./common/main-DU7Fa-r2.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index affcb8b..534a8ff 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,6 +1,6 @@ import "lodash"; -import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-Bv6_dpPM.js"; -import "./common/vender-CtjyT19B.js"; +import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-DU7Fa-r2.js"; +import "./common/vender-FNiQWFaA.js"; export { r as deepSome, i as getPkgCategory, diff --git a/package.json b/package.json index 7560599..7b3bf69 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.6.0", + "version": "0.6.1", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",