diff --git a/dist/button.js b/dist/button.js index 72e37cf..ca6ee95 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { aj as s, ai as u, ak as e } from "./common/main-D7to3RZo.js"; +import { aj as s, ai as u, ak as e } from "./common/main-xbA_iREM.js"; export { s as auth, u as default, diff --git a/dist/common/main-D7to3RZo.js b/dist/common/main-xbA_iREM.js similarity index 86% rename from dist/common/main-D7to3RZo.js rename to dist/common/main-xbA_iREM.js index 10bdb76..ae7380f 100644 --- a/dist/common/main-D7to3RZo.js +++ b/dist/common/main-xbA_iREM.js @@ -4,17 +4,17 @@ var ii = (t) => { }; var tn = (t, e, i) => e in t ? en(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i; var P = (t, e, i) => tn(t, typeof e != "symbol" ? e + "" : e, i), ni = (t, e, i) => e.has(t) || ii("Cannot " + i); -var c = (t, e, i) => (ni(t, e, "read from private field"), i ? i.call(t) : e.get(t)), v = (t, e, i) => e.has(t) ? ii("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), W = (t, e, i, n) => (ni(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i); +var c = (t, e, i) => (ni(t, e, "read from private field"), i ? i.call(t) : e.get(t)), v = (t, e, i) => e.has(t) ? ii("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), U = (t, e, i, n) => (ni(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i); var ri = (t, e, i, n) => ({ set _(r) { - W(t, e, r, i); + U(t, e, r, i); }, get _() { return c(t, e, n); } }); -import { jsx as h, jsxs as F } from "react/jsx-runtime"; -import $, { useEffect as V, useState as L, useCallback as X, useRef as _, useContext as le, useMemo as q, useId as Lt, isValidElement as nn, useLayoutEffect as rn } from "react"; +import { jsx as h, jsxs as A } from "react/jsx-runtime"; +import $, { useEffect as V, useState as j, useCallback as X, useRef as _, useContext as le, useMemo as K, useId as Lt, isValidElement as nn, useLayoutEffect as rn } from "react"; import ce from "pathe"; import b from "prop-types"; import R from "classnames"; @@ -22,7 +22,7 @@ import * as ai from "react-is"; import { useNotification as an } from "rc-notification"; import m from "lodash"; import ie, { Field as _t, FieldContext as wi } from "rc-field-form"; -import { M as Rt, N as _e, a as He, _ as jt, S as on } from "./vender-FNiQWFaA.js"; +import { M as Rt, N as He, a as De, s as jt, S as on } from "./vender-yKcgvbX-.js"; import bi from "immutability-helper"; import { Space as sn, Form as mt, Input as ln, Button as yt, Pagination as cn, Tree as dn, Breadcrumb as un, Table as pn, Empty as gn, Popover as hn, Popconfirm as mn, Tooltip as fn } from "antd"; import { useMergedState as yn } from "rc-util"; @@ -30,37 +30,37 @@ import { generatePath as wn, useInRouterContext as Ci, useParams as bn, useLocat import "rc-util/lib/hooks/useMergedState"; import En from "rc-drawer"; import Sn from "rc-dialog"; -var De, Ye, ze, we, Ae, Le; +var ze, Ye, Be, we, Ae, Le; class ki { constructor(e, i) { - v(this, De, /* @__PURE__ */ new Map()); + v(this, ze, /* @__PURE__ */ new Map()); v(this, Ye, !0); - v(this, ze, []); + v(this, Be, []); v(this, we); v(this, Ae, () => c(this, we)); v(this, Le, () => Promise.resolve()); P(this, "get", (...e) => new Promise((i, n) => { const r = JSON.stringify(e); - if (c(this, De).has(r)) return i(c(this, Le).call(this, c(this, we), ...e)); - if (c(this, we) === void 0) c(this, ze).push([e, i, n]), c(this, Ye) && (W(this, Ye, !1), Promise.resolve(typeof c(this, Ae) == "function" ? c(this, Ae).call(this) : c(this, Ae)).then((a) => W(this, we, a || null)).finally(() => { - c(this, ze).forEach(([a, o, s]) => { + if (c(this, ze).has(r)) return i(c(this, Le).call(this, c(this, we), ...e)); + if (c(this, we) === void 0) c(this, Be).push([e, i, n]), c(this, Ye) && (U(this, Ye, !1), Promise.resolve(typeof c(this, Ae) == "function" ? c(this, Ae).call(this) : c(this, Ae)).then((a) => U(this, we, a || null)).finally(() => { + c(this, Be).forEach(([a, o, s]) => { try { const l = c(this, Le).call(this, c(this, we), ...a); - c(this, De).set(JSON.stringify(a), l), o(l); + c(this, ze).set(JSON.stringify(a), l), o(l); } catch (l) { s(l); } - }), c(this, ze).length = 0; + }), c(this, Be).length = 0; })); else { const a = c(this, Le).call(this, c(this, we), ...e); - c(this, De).set(r, a), i(a); + c(this, ze).set(r, a), i(a); } })); - W(this, Le, i), W(this, Ae, e); + U(this, Le, i), U(this, Ae, e); } } -De = new WeakMap(), Ye = new WeakMap(), ze = new WeakMap(), we = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(); +ze = new WeakMap(), Ye = new WeakMap(), Be = new WeakMap(), we = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(); const Kr = () => h("div", { children: "Empty" }), ot = $.createContext({ ele: {}, mount: () => { }, unmount: () => { } }), G = ({ rootClassName: t, className: e, children: i, actions: n, title: r, subTitle: a, extras: o, style: s = {} }) => { @@ -71,22 +71,22 @@ const Kr = () => h("div", { children: "Empty" }), ot = $.createContext({ ele: {} return V(() => (e && n(t, $.createElement("div", { key: `ff-${t}`, className: R(`ff-popup-${t}`, i) }, e)), () => r(t)), [i, e]), null; }; G.Action = ht("actions"), G.Title = ht("title"), G.SubTitle = ht("sub-title"), G.Extra = ht("extras"), G.propTypes = { className: b.string, style: b.object, title: b.any, subTitle: b.any, actions: b.any, extras: b.any }; -const _r = () => h(G, { className: "ff-loading", children: F("div", { className: "loader", children: [F("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), F("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), F("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), F("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] })] }) }), Hr = () => h("div", { children: "NotFound" }), $i = ({ children: t }) => { - const [e, i] = L({}), n = X((a, o) => i((s) => ({ ...s, [a]: o })), []), r = X((a) => i((o) => ({ ...o, [a]: void 0 })), []); +const _r = () => h(G, { className: "ff-loading", children: A("div", { className: "loader", children: [A("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), A("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), A("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] }), A("div", { className: "square", children: [h("span", {}), h("span", {}), h("span", {})] })] }) }), Hr = () => h("div", { children: "NotFound" }), $i = ({ children: t }) => { + const [e, i] = j({}), n = X((a, o) => i((s) => ({ ...s, [a]: o })), []), r = X((a) => i((o) => ({ ...o, [a]: void 0 })), []); return typeof (t == null ? void 0 : t.type) == "string" ? t : h(ot.Provider, { value: { ele: e, mount: n, unmount: r }, children: $.cloneElement(t, { className: e.rootClassName, title: e.title, subTitle: e["sub-title"], actions: e.actions, extras: e.extras }) }); }; $i.propTypes = { children: b.element.isRequired }; -const oi = { 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"] }, Ht = ({ type: t, props: e }) => h("i", { ...e, children: h("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (oi[t] || oi.info).map((i, n) => h("path", { d: i }, n)) }) }), Ei = ({ className: t, content: e, icon: i, $close: n }) => F($.Fragment, { children: [i && h("div", { className: R("ff-notification-icon", t), children: h(Ht, { type: i }) }), e] }), vn = ({}) => h(G, { children: "Confirm" }); -var Se, Be; +const oi = { 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"] }, Ht = ({ type: t, props: e }) => h("i", { ...e, children: h("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (oi[t] || oi.info).map((i, n) => h("path", { d: i }, n)) }) }), Ei = ({ className: t, content: e, icon: i, $close: n }) => A($.Fragment, { children: [i && h("div", { className: R("ff-notification-icon", t), children: h(Ht, { type: i }) }), e] }), vn = ({}) => h(G, { children: "Confirm" }); +var Se, We; const de = class de { constructor() { - v(this, Be, /* @__PURE__ */ new Map()); - P(this, "init", (e) => W(this, Be, new Map(e))); - P(this, "check", (e) => !c(this, Be).has(e) || c(this, Be).get(e)); + v(this, We, /* @__PURE__ */ new Map()); + P(this, "init", (e) => U(this, We, new Map(e))); + P(this, "check", (e) => !c(this, We).has(e) || c(this, We).get(e)); if (c(de, Se)) return c(de, Se); } }; -Se = new WeakMap(), Be = new WeakMap(), v(de, Se, null), P(de, "getInstance", () => (c(de, Se) || W(de, Se, new de()), c(de, Se))); +Se = new WeakMap(), We = new WeakMap(), v(de, Se, null), P(de, "getInstance", () => (c(de, Se) || U(de, Se, new de()), c(de, Se))); let It = de; const Si = It.getInstance(), xn = (t, e, i = "children") => { if (m.isEmpty(t)) return {}; @@ -103,12 +103,12 @@ var ve, Ge; const ue = class ue { constructor() { v(this, Ge, null); - P(this, "init", (e) => W(this, Ge, e)); + P(this, "init", (e) => U(this, Ge, e)); P(this, "get", (e, i) => m.get(c(this, Ge), e, i)); if (c(ue, ve)) return c(ue, ve); } }; -ve = new WeakMap(), Ge = new WeakMap(), v(ue, ve, null), P(ue, "getInstance", () => (c(ue, ve) || W(ue, ve, new ue()), c(ue, ve))); +ve = new WeakMap(), Ge = new WeakMap(), v(ue, ve, null), P(ue, "getInstance", () => (c(ue, ve) || U(ue, ve, new ue()), c(ue, ve))); let Vt = ue; const Ve = Vt.getInstance(), si = { null2json: (t) => Object.create(), null2array: (t) => [], null2number: (t) => 0, null2bool: (t) => !1, null2string: (t) => "", null2integer: (t) => 0, null2float: (t) => 0, string2json: (t) => t ? JSON.parse(t) : "{}", string2array: (t) => t.substr(0, 1) === "[" && t.substr(-1) === "]" ? JSON.parse(t) : t.split(","), string2number: (t) => t == "" ? 0 : +t, string2integer: (t) => t == "" ? 0 : +t, string2float: (t) => t == "" ? 0 : +t, string2bool: (t) => { switch (`${t}`.toLowerCase()) { @@ -236,7 +236,7 @@ const $t = class $t { }); P(this, "toRender", (e, i, n = null) => $.createElement(c(this, kt), { value: e, record: i }, n)); v(this, kt, ({ value: e, record: i, children: n }) => { - const [r, a] = L(n); + const [r, a] = j(n); return ct(() => { let o = !1; return a(n), this.toValue(e, i).then((s) => !o && a(s)).catch((s) => !o && a(`${s}`)), () => o = !0; @@ -280,32 +280,32 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, const r = _(Pn(m.get(t, e == null ? void 0 : e.dataIndex))), { listCode: a, onClickCallback: o } = le(ne), [s] = ie.useForm(), { formSetting: l, widgetSetting: u } = n, d = (l == null ? void 0 : l.primaryKey) || "id", p = () => { s.setFieldsValue({ value: m.get(t, e == null ? void 0 : e.dataIndex), __PROPS__: t }); }; - return ct(() => p(), [t, e == null ? void 0 : e.dataIndex, a]), h(G, { actions: F($.Fragment, { children: [h(N, { size: "small", onClick: p, children: "重置" }), F(sn.Compact, { block: !0, children: [h(N, { size: "small", widget: i, children: "取消" }), h(N, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: f }) => { + return ct(() => p(), [t, e == null ? void 0 : e.dataIndex, a]), h(G, { actions: A($.Fragment, { children: [h(N, { size: "small", onClick: p, children: "重置" }), A(sn.Compact, { block: !0, children: [h(N, { size: "small", widget: i, children: "取消" }), h(N, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: f }) => { const g = m.get(t, d.substring(d.indexOf(".") + 1)); if (!g) throw "获取更新主键失败!"; I.put(`/api/${a}-storeBy-${e == null ? void 0 : e.uuid}/${g}`, { value: f }).msg(() => o(2, t)).then(i); - }).catch(console.warn), children: "保存" })] })] }), children: F(ie, { form: s, children: [h(Gt, { label: "", type: r.current, code: "value", widget: e == null ? void 0 : e.editableByJs, extras: u }), h(_t, { noStyle: !0, name: ["__PROPS__"], children: () => { + }).catch(console.warn), children: "保存" })] })] }), children: A(ie, { form: s, children: [h(Gt, { label: "", type: r.current, code: "value", widget: e == null ? void 0 : e.editableByJs, extras: u }), h(_t, { noStyle: !0, name: ["__PROPS__"], children: () => { } })] }) }); }, Fn = (t) => function(e) { return t(e, getRecord()); -}, An = (t, e = {}) => q(() => { +}, An = (t, e = {}) => K(() => { var i; return (i = t == null ? void 0 : t.filter(Boolean)) == null ? void 0 : i.map(({ widgetByJs: n, widgetByJsSetting: r, ...a }, o) => { const s = (u) => ({ record: u, column: a }); let l = []; return n && l.push([n, r]), l.length > 0 ? (a != null && a.render && l.push([Fn, a.render]), { ...a, onCell: s, render: (u, d) => new wt(l).toRender(u, d, "-") }) : { ...a, onCell: s }; }); -}, [t, e]), Ln = (t = {}) => q(() => { +}, [t, e]), Ln = (t = {}) => K(() => { var e; return t.body ?? (t.body = { cell: li }), (e = t.body).cell ?? (e.cell = li), t; }, [t]), Zr = (t) => { - const [e, i] = L({}); + const [e, i] = j({}); return V(() => { let n = !1; return t && I.get(`/api/_/${t}`).then((r) => m.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !n && i(r)), () => n = !0; }, [t]), e; }, ea = (t, e = {}) => { - const [i, n] = L({ dataSource: [] }); + const [i, n] = j({ dataSource: [] }); return lt(() => { let r = !1; return t && I.get(`/api/${t}/${I.encode({ page: 1, ...e })}`).then((a) => !r && n(a)), () => r = !0; @@ -315,7 +315,7 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, return X((a) => t == null ? void 0 : t.filter((o) => !o.uuid || !e.has(o.uuid) || e.get(o.uuid).some((s) => s == r(a))), [t, e, r]); }, Dt = (t = [], e = /* @__PURE__ */ new Map(), i = [], n = "id", r) => { const a = X(r ? (o) => m.get(o, n, m.get(o, [r, n])) : (o) => m.get(o, n), [n, r]); - return q(() => { + return K(() => { if (m.isEmpty(t) || !t.some(({ uuid: s }) => Si.check(s))) return !1; if (m.isEmpty(e) || m.isEmpty(i)) return !0; const o = i.map((s) => a(s)); @@ -333,11 +333,11 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, const S = m.get(o.current, y > -1 ? [y, "children", w, "children"] : [w, "children"]); o.current = bi(o.current, y > -1 ? { [y]: { children: { $splice: [[w, 1, { ...C, children: S }]] } } } : { $splice: [[w, 1, { ...C, children: S }]] }); const E = new Map(k); - s.current.forEach((T, O) => { - var A; - (A = E.get(O)) != null && A.some((M) => M == g) || s.current.set(O, T.filter((M) => M !== g)); - }), E.forEach((T, O) => { - s.current.has(O) ? s.current.set(O, m.uniq([...s.current.get(O) || [], ...T])) : s.current.set(O, T); + s.current.forEach((T, F) => { + var L; + (L = E.get(F)) != null && L.some((D) => D == g) || s.current.set(F, T.filter((D) => D !== g)); + }), E.forEach((T, F) => { + s.current.has(F) ? s.current.set(F, m.uniq([...s.current.get(F) || [], ...T])) : s.current.set(F, T); }); }).then(() => { a.current = !0, r(); @@ -353,16 +353,16 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, ct(() => { a.current = [], t && o(e); }, [t, e]); - const s = q(() => m.pick(n.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [n.current]); + const s = K(() => m.pick(n.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [n.current]); return Object.assign(s, { onTabChange: (l) => o({ tab: l, page: 1 }), onPageChange: (l, u) => o({ page: l, pageSize: u }), onPageSizeChange: (l) => o({ pageSize: l, page: 1 }), onConditionChange: (l, u) => o({ keyword: u, condition: bi(n.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => o({ sider: l, page: 1 }), onKeywordChange: (l) => o({ keyword: l, page: 1 }), itemOperationsAccess: r.current, dataSource: a.current, onReload: o, payload: e == null ? void 0 : e.payload }); }, Vn = ({ listCode: t, className: e, layouts: i = {}, dataSource: n, isPaginate: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: d, primaryKey: p, title: f, itemGridLayout: g, $setting: y, tabs: w, isConditionFormLayout: C, isTreeSider: k, treeSiderConfig: S }) => { - const { classNames: E, onClickCallback: T } = le(ne), O = m.pick(y, ["column", "colWidth", "beforeRender", "afterRender", "style"]), A = Ti(l, u, p, d), M = X((D, j, z) => h(Mn, { className: R("ff-data-list-framework-item", E.item), operations: a ? A(j) : [], data: d ? { [d]: j } : j, children: D, onClickCallback: T }), [d, p, a, T, l, u]); - return F("div", { className: R("ff-data-list-framework", e), children: [h(i.sider, { isTreeSider: k, ...S }), F("div", { className: R("ff-data-list-container", E == null ? void 0 : E.container), children: [h(i.filter, { isConditionFormLayout: C }), h(i.toolbar, { title: f, tabs: w }), h(Xn, { ...O, ...g, primaryKey: p, itemRender: M, dataSource: n }), h(i.footer, { isPaginate: r, isOperations: o, operations: s })] })] }); -}, Mn = ({ className: t, operations: e, children: i, data: n, onClickCallback: r }) => F("div", { className: R("data-list-grid-layout-item", t), children: [h("div", { className: "data-list-grid-layout-item-container", children: i }), !!(e != null && e.length) && h("div", { className: "data-list-grid-layout-item-actions", children: e.map((a) => h("span", { className: "data-list-grid-layout-item-action", children: h(N.Link, { uuid: a.uuid, type: a.type, name: a.name, widget: a.widget, widgetType: a.widgetType, widgetProps: a.widgetProps, widgetSetting: a.widgetSetting, widgetContainerProps: a.widgetContainerSetting, data: n, confirm: a.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(a.isRefresh, n)) }, a.uuid || Lt()) }, (a == null ? void 0 : a.uuid) || Lt())) })] }), Dn = ({ listCode: t, className: e, layouts: i = {}, dataSource: n, columns: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: d, primaryKey: p, title: f, tabs: g, isPaginate: y, isTreeSider: w, treeSiderConfig: C, isConditionFormLayout: k, ...S }) => { - const { classNames: E, onClickCallback: T } = le(ne), O = Ti(l, u, p, d), A = Dt(l, u, n, p, d); - return F("div", { className: R("ff-data-table-framework", e), children: [h(i.sider, { isTreeSider: w, ...C }), F("div", { className: R("ff-data-table-container", E == null ? void 0 : E.container), children: [h(i.filter, { isConditionFormLayout: k }), h(i.toolbar, { title: f, tabs: g }), h(Kn, { ...S, primaryKey: p, className: "ff-data-table-content", columns: r, dataSource: n, operationRender: A ? (M) => { - var D; - return h("div", { className: "ff-data-table-actions", children: (D = O(M)) == null ? void 0 : D.map((j, z) => h(N.Link, { size: "small", uuid: j.uuid, type: j.type, name: j.name, widget: j.widget, widgetType: j.widgetType, widgetProps: j.widgetProps, widgetData: j.widgetData, widgetSetting: j.widgetSetting, widgetContainerProps: j.widgetContainerSetting, data: M, confirm: j.confirm, onAfterClick: (x) => x !== !1 && (T == null ? void 0 : T(j.isRefresh, M)) }, j.uuid || z)) }); + const { classNames: E, onClickCallback: T } = le(ne), F = m.pick(y, ["column", "colWidth", "beforeRender", "afterRender", "style"]), L = Ti(l, u, p, d), D = X((W, O, M) => h(Mn, { className: R("ff-data-list-framework-item", E.item), operations: a ? L(O) : [], data: d ? { [d]: O } : O, children: W, onClickCallback: T }), [d, p, a, T, l, u]); + return A("div", { className: R("ff-data-list-framework", e), children: [h(i.sider, { isTreeSider: k, ...S }), A("div", { className: R("ff-data-list-container", E == null ? void 0 : E.container), children: [h(i.filter, { isConditionFormLayout: C }), h(i.toolbar, { title: f, tabs: w }), h(Xn, { ...F, ...g, primaryKey: p, itemRender: D, dataSource: n }), h(i.footer, { isPaginate: r, isOperations: o, operations: s })] })] }); +}, Mn = ({ className: t, operations: e, children: i, data: n, onClickCallback: r }) => A("div", { className: R("data-list-grid-layout-item", t), children: [h("div", { className: "data-list-grid-layout-item-container", children: i }), !!(e != null && e.length) && h("div", { className: "data-list-grid-layout-item-actions", children: e.map((a) => h("span", { className: "data-list-grid-layout-item-action", children: h(N.Link, { uuid: a.uuid, type: a.type, name: a.name, widget: a.widget, widgetType: a.widgetType, widgetProps: a.widgetProps, widgetSetting: a.widgetSetting, widgetContainerProps: a.widgetContainerSetting, data: n, confirm: a.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(a.isRefresh, n)) }, a.uuid || Lt()) }, (a == null ? void 0 : a.uuid) || Lt())) })] }), Dn = ({ listCode: t, className: e, layouts: i = {}, dataSource: n, columns: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: d, primaryKey: p, title: f, tabs: g, isPaginate: y, isTreeSider: w, treeSiderConfig: C, isConditionFormLayout: k, ...S }) => { + const { classNames: E, onClickCallback: T } = le(ne), F = Ti(l, u, p, d), L = Dt(l, u, n, p, d); + return A("div", { className: R("ff-data-table-framework", e), children: [h(i.sider, { isTreeSider: w, ...C }), A("div", { className: R("ff-data-table-container", E == null ? void 0 : E.container), children: [h(i.filter, { isConditionFormLayout: k }), h(i.toolbar, { title: f, tabs: g }), h(Kn, { ...S, primaryKey: p, className: "ff-data-table-content", columns: r, dataSource: n, operationRender: L ? (D) => { + var W; + return h("div", { className: "ff-data-table-actions", children: (W = F(D)) == null ? void 0 : W.map((O, M) => h(N.Link, { size: "small", uuid: O.uuid, type: O.type, name: O.name, widget: O.widget, widgetType: O.widgetType, widgetProps: O.widgetProps, widgetData: O.widgetData, widgetSetting: O.widgetSetting, widgetContainerProps: O.widgetContainerSetting, data: D, confirm: O.confirm, onAfterClick: (x) => x !== !1 && (T == null ? void 0 : T(O.isRefresh, D)) }, O.uuid || M)) }); } : null }), h(i.footer, { isPaginate: y, isOperations: o, operations: s })] })] }); }, Jt = (t = [], e, i = null) => { var n; @@ -372,7 +372,7 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, return r != null && r.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${n}`, r != null && r.alignItems && (o["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (o["--grid-layout-box-justify-content"] = r.justifyContent), o["--grid-layout-box-margin"] = ci(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), o["--grid-layout-box-padding"] = ci(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), a && (o.height = `${a}px`), o; }, ci = (t, e, i, n) => `${t || 0}px ${e || 0}px ${i || 0}px ${n || 0}px`, ta = (t = "Text", e = "@pkg/ff/grid-layouts") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, Oi = ({ className: t, isConditionFormLayout: e }) => { var f, g; - const [i, n] = L({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = $.useContext(ne), { keyword: u, condition: d } = (s == null ? void 0 : s()) || {}, [p] = mt.useForm(); + const [i, n] = j({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = $.useContext(ne), { keyword: u, condition: d } = (s == null ? void 0 : s()) || {}, [p] = mt.useForm(); return V(() => { r && e && I.get(`/api/_/${r}/list-condition-form-layout`).then(({ resource: y, marginX: w, marginY: C, rowHeight: k, cols: S, fields: E }) => { n({ resource: y, itemMargin: [w, C], rowHeight: k, cols: S, fields: E }); @@ -387,40 +387,40 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, p.setFieldsValue({ keyword: y, ...w }); } }) }) : h("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: h("div", { className: "grid-layout-item", style: Ri(20, 0, 5, 2), children: h(mt.Item, { name: ["keyword"], children: h(ln.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (y) => a(y) }) }) }) }) }) }); }, zn = ({ cols: t, fields: e, onReset: i }) => { - const [n, r] = L(!1), a = q(() => e == null ? void 0 : e.toReversed().some((o) => o.y > 1 || o.x + o.w >= t - 5), [t, e]); - return F(mt.Item, { label: " ", style: { "--item-span": 5 }, className: R("ff-data-list-filter-actions", { expanded: n }), children: [h(yt, { onClick: i, children: "重置" }), h(yt, { type: "primary", htmlType: "submit", children: "查询" }), a && h(N.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((o) => !o), type: "primary", name: n ? "关闭" : "展开", icon: n ? "icon-up" : "icon-down", iconPosition: "end" })] }); + const [n, r] = j(!1), a = K(() => e == null ? void 0 : e.toReversed().some((o) => o.y > 1 || o.x + o.w >= t - 5), [t, e]); + return A(mt.Item, { label: " ", style: { "--item-span": 5 }, className: R("ff-data-list-filter-actions", { expanded: n }), children: [h(yt, { onClick: i, children: "重置" }), h(yt, { type: "primary", htmlType: "submit", children: "查询" }), a && h(N.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((o) => !o), type: "primary", name: n ? "关闭" : "展开", icon: n ? "icon-up" : "icon-down", iconPosition: "end" })] }); }; Oi.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 Bn = ({ className: t, operations: e, isOperations: i, isPaginate: n }) => { const { onPageChange: r, onPageSizeChange: a, onClickCallback: o, getBase62params: s } = $.useContext(ne), { total: l, page: u, pageSize: d } = (s == null ? void 0 : s()) || {}; - return i && !m.isEmpty(e) || n ? F("div", { className: R("ff-data-list-footer", t), children: [h("div", { className: "ff-data-list-actions", children: e == null ? void 0 : e.map((p, f) => h(N, { uuid: p.uuid, type: p.type, name: p.name, widget: p.widget, widgetType: p.widgetType, widgetProps: p.widgetProps, widgetData: p.widgetData, widgetSetting: p.widgetSetting, widgetContainerProps: p.widgetContainerSetting, onAfterClick: (g) => g !== !1 && (o == null ? void 0 : o(p.isRefresh, null)) }, p.uuid || f)) }), n && h(cn, { size: "small", total: l, pageSize: d, showSizeChanger: !1, showTotal: (p) => `第 ${u} 页 / 总共 ${p} 条`, onChange: r, onShowSizeChange: a })] }) : null; + return i && !m.isEmpty(e) || n ? A("div", { className: R("ff-data-list-footer", t), children: [h("div", { className: "ff-data-list-actions", children: e == null ? void 0 : e.map((p, f) => h(N, { uuid: p.uuid, type: p.type, name: p.name, widget: p.widget, widgetType: p.widgetType, widgetProps: p.widgetProps, widgetData: p.widgetData, widgetSetting: p.widgetSetting, widgetContainerProps: p.widgetContainerSetting, onAfterClick: (g) => g !== !1 && (o == null ? void 0 : o(p.isRefresh, null)) }, p.uuid || f)) }), n && h(cn, { size: "small", total: l, pageSize: d, showSizeChanger: !1, showTotal: (p) => `第 ${u} 页 / 总共 ${p} 条`, onChange: r, onShowSizeChange: a })] }) : null; }, Wn = [{ 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: h("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], Un = ({ className: t, width: e = 280, isTreeSider: i }) => { const { classNames: n } = le(ne); return i ? h(dn.DirectoryTree, { className: R("ff-data-list-sider", n.sider, t), style: { "--sider-width": e }, showLine: !0, showIcon: !1, treeData: Wn }) : null; }, qn = ({ className: t, title: e, tabs: i }) => { const { getBase62params: n, onTabChange: r, onReload: a, classNames: o } = le(ne), { tab: s } = (n == null ? void 0 : n()) || {}, [l, u] = yn((i == null ? void 0 : i[0].value) ?? (i == null ? void 0 : i[0].code), { value: s, onChange: r }); - return F("div", { className: R("ff-data-list-toolbar", o.toolbar, t), children: [h("div", { className: "ff-data-list-title", children: e }), h(un, { className: "ff-data-list-tabs", itemRender: ({ label: d, code: p, value: f }) => h("span", { onClick: () => u(f ?? p), className: R("ff-data-list-tab", { active: (f ?? p) == l }), children: d }), items: i }), F("div", { className: "ff-data-list-actions", children: [h(N.Link, { icon: "icon-reload", widget: () => a() }), h(N.Link, { icon: "icon-setting" })] })] }); -}, Fi = ({ isItemGridLayout: t, theme: e, themeProps: i, onClickCallback: n, onReload: r, listCode: a, total: o = 0, page: s = 0, onPageChange: l, pageSize: u = 30, onPageSizeChange: d, tab: p, onTabChange: f, keyword: g, onKeywordChange: y, condition: w, onConditionChange: C, sider: k, onSiderChange: S, layouts: E, classNames: T = {}, payload: O = {}, ...A }) => { - const [M, D] = L(), j = X((x, K) => { - const B = { tab: p, page: s, pageSize: u, keyword: g, sider: k, condition: w, total: o, payload: O }; - return x && x != "init" ? m.get(B, x, K) : B; - }, [JSON.stringify(w), JSON.stringify(O), p, s, u, g, k, o]), z = q(() => { + return A("div", { className: R("ff-data-list-toolbar", o.toolbar, t), children: [h("div", { className: "ff-data-list-title", children: e }), h(un, { className: "ff-data-list-tabs", itemRender: ({ label: d, code: p, value: f }) => h("span", { onClick: () => u(f ?? p), className: R("ff-data-list-tab", { active: (f ?? p) == l }), children: d }), items: i }), A("div", { className: "ff-data-list-actions", children: [h(N.Link, { icon: "icon-reload", widget: () => a() }), h(N.Link, { icon: "icon-setting" })] })] }); +}, Fi = ({ isItemGridLayout: t, theme: e, themeProps: i, onClickCallback: n, onReload: r, listCode: a, total: o = 0, page: s = 0, onPageChange: l, pageSize: u = 30, onPageSizeChange: d, tab: p, onTabChange: f, keyword: g, onKeywordChange: y, condition: w, onConditionChange: C, sider: k, onSiderChange: S, layouts: E, classNames: T = {}, payload: F = {}, ...L }) => { + const [D, W] = j(), O = X((x, B) => { + const z = { tab: p, page: s, pageSize: u, keyword: g, sider: k, condition: w, total: o, payload: F }; + return x && x != "init" ? m.get(z, x, B) : z; + }, [JSON.stringify(w), JSON.stringify(F), p, s, u, g, k, o]), M = K(() => { let x = { sider: Un, filter: Oi, footer: Bn, toolbar: qn }; E === !1 ? x = { sider: null, filter: null, footer: null, toolbar: null } : m.isPlainObject(E) && (x = Object.assign({}, x, E)); - for (const K in x) if (x[K]) { - if (nn(x[K])) { - const B = x[K]; - x[K] = (Ee) => $.cloneElement(B, Ee); + for (const B in x) if (x[B]) { + if (nn(x[B])) { + const z = x[B]; + x[B] = (Ee) => $.cloneElement(z, Ee); } - } else x[K] = () => h($.Fragment, {}); + } else x[B] = () => h($.Fragment, {}); return x; }, [E]); return V(() => { e ? se.getWidgetComponent(e).then((x) => { if (!x) throw `${e} not found`; return x; - }).catch((x) => ({ default: () => `${x}` })).then((x) => D($.createElement(x.default, { ...A, layouts: z, $setting: i }))) : D(h(t ? Vn : Dn, { ...A, layouts: z, $setting: i })); - }, [e, i]), h(ne.Provider, { value: { classNames: T, listCode: a, onClickCallback: n, onReload: r, getBase62params: j, onPageChange: l, onPageSizeChange: d, onTabChange: f, onSiderChange: S, onKeywordChange: y, onConditionChange: C, setPage: l, setPageSize: d, setTab: f, setSider: S, setKeyword: y, setCondition: C }, children: M && $.cloneElement(M, A) }); + }).catch((x) => ({ default: () => `${x}` })).then((x) => W($.createElement(x.default, { ...L, layouts: M, $setting: i }))) : W(h(t ? Vn : Dn, { ...L, layouts: M, $setting: i })); + }, [e, i]), h(ne.Provider, { value: { classNames: T, listCode: a, onClickCallback: n, onReload: r, getBase62params: O, onPageChange: l, onPageSizeChange: d, onTabChange: f, onSiderChange: S, onKeywordChange: y, onConditionChange: C, setPage: l, setPageSize: d, setTab: f, setSider: S, setKeyword: y, setCondition: C }, children: D && $.cloneElement(D, L) }); }; Fi.propTypes = { classNames: b.exact({ sider: b.string, filter: b.string, footer: b.string, toolbar: b.string, container: b.string, content: b.string, item: b.string }), layouts: b.oneOfType([b.exact({ sider: b.oneOfType([b.elementType, b.element]), filter: b.oneOfType([b.elementType, b.element]), footer: b.oneOfType([b.elementType, b.element]), toolbar: b.oneOfType([b.elementType, b.element]) }), b.bool]) }; var xe, be, je, Et; @@ -430,7 +430,7 @@ const pe = class pe { v(this, je, /* @__PURE__ */ new Map()); v(this, Et, () => { if (c(this, be)) return c(this, be).port.postMessage({ command: "status", data: [] }); - W(this, be, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), c(this, be).port.onmessage = (e) => { + U(this, be, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), c(this, be).port.onmessage = (e) => { var i, n; (i = e.data) != null && i.uuid ? c(this, je).forEach((r, a) => { var o; @@ -445,20 +445,20 @@ const pe = class pe { if (c(pe, xe)) return c(pe, xe); } }; -xe = new WeakMap(), be = new WeakMap(), je = new WeakMap(), Et = new WeakMap(), v(pe, xe, null), P(pe, "getInstance", () => (c(pe, xe) || W(pe, xe, new pe()), c(pe, xe))); +xe = new WeakMap(), be = new WeakMap(), je = new WeakMap(), Et = new WeakMap(), v(pe, xe, null), P(pe, "getInstance", () => (c(pe, xe) || U(pe, xe, new pe()), c(pe, xe))); let zt = pe; const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, className: i, theme: n, themeProps: r, layouts: a, classNames: o }, s) => { - const [{ resource: l, primaryKey: u, batchOperations: d = [], itemOperations: p = [], columns: f = [], themeConfig: g, theme: y, isConditionFormLayout: w = !1, isTreeSider: C, treeSiderConfig: k, isItemGridLayout: S, itemGridLayout: { themeConfig: E, ...T } = {}, title: O, isPaginate: A, tabs: M }, D] = L({ isItemGridLayout: !1, itemGridLayout: {} }), j = In(t, e), [{ dataSource: z, itemOperationsAccess: x, condition: K, tab: B, keyword: Ee, page: ut, total: pt, pageSize: Nt, sider: te, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: _i, onPageSizeChange: Hi, onSiderChange: Ji, onReload: Tt, payload: Yi }, ti] = jn(j, t, u, l), Gi = Dt(p, x, z, u), Xi = Dt(d); + const [{ resource: l, primaryKey: u, batchOperations: d = [], itemOperations: p = [], columns: f = [], themeConfig: g, theme: y, isConditionFormLayout: w = !1, isTreeSider: C, treeSiderConfig: k, isItemGridLayout: S, itemGridLayout: { themeConfig: E, ...T } = {}, title: F, isPaginate: L, tabs: D }, W] = j({ isItemGridLayout: !1, itemGridLayout: {} }), O = In(t, e), [{ dataSource: M, itemOperationsAccess: x, condition: B, tab: z, keyword: Ee, page: ut, total: pt, pageSize: Nt, sider: te, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: _i, onPageSizeChange: Hi, onSiderChange: Ji, onReload: Tt, payload: Yi }, ti] = jn(O, t, u, l), Gi = Dt(p, x, M, u), Xi = Dt(d); V(() => { let re = null; return t && I.get(`/api/_/${t}`).resp(({ data: gt, res: Zi }) => { - gt != null && gt.isDynamicRefresh && (re = Ai.subscribe(() => Tt(), Zi)), D(gt); - }).catch(() => D({})), () => re == null ? void 0 : re(); + gt != null && gt.isDynamicRefresh && (re = Ai.subscribe(() => Tt(), Zi)), W(gt); + }).catch(() => W({})), () => re == null ? void 0 : re(); }, [t]), $.useImperativeHandle(s, () => ({ onReload: Tt, onClickCallback: ti })); - const Qi = { listCode: t, title: O, classNames: o, layouts: a, resource: l, primaryKey: u, theme: n || y, themeProps: r || g, isTreeSider: C, treeSiderConfig: k, isPaginate: A, tabs: M, isItemOperations: Gi, itemOperations: p == null ? void 0 : p.map((re) => m.isEmpty(re == null ? void 0 : re.confirm) ? re : { ...re, confirm: Object.assign({}, re.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Xi, batchOperations: d, isItemGridLayout: S, columns: f, itemGridLayout: { ...T, themeProps: E }, isConditionFormLayout: w, itemOperationsAccess: x, dataSource: z, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: _i, onPageSizeChange: Hi, onSiderChange: Ji, condition: K, tab: B, keyword: Ee, page: ut, total: pt, pageSize: Nt, sider: te, payload: Yi }; + const Qi = { listCode: t, title: F, classNames: o, layouts: a, resource: l, primaryKey: u, theme: n || y, themeProps: r || g, isTreeSider: C, treeSiderConfig: k, isPaginate: L, tabs: D, isItemOperations: Gi, itemOperations: p == null ? void 0 : p.map((re) => m.isEmpty(re == null ? void 0 : re.confirm) ? re : { ...re, confirm: Object.assign({}, re.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Xi, batchOperations: d, isItemGridLayout: S, columns: f, itemGridLayout: { ...T, themeProps: E }, isConditionFormLayout: w, itemOperationsAccess: x, dataSource: M, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: _i, onPageSizeChange: Hi, onSiderChange: Ji, condition: B, tab: z, keyword: Ee, page: ut, total: pt, pageSize: Nt, sider: te, payload: Yi }; return h(Fi, { ...Qi, className: R("ff-data-list-helper", i), onReload: Tt, onClickCallback: ti }); }), Li = (t, e, i = !0) => i !== !0 && i-- <= 0 ? [] : m.isArray(t) && !m.isEmpty(t) ? t.reduce((n, r) => (Reflect.has(r, e) && Reflect.has(r, "children") && n.push(r[e]), Reflect.has(r, "children") && !m.isEmpty(r.children) ? n.concat(Li(r.children, e, i)) : n), []) : [], Kn = ({ className: t, primaryKey: e, columns: i = [], dataSource: n = [], operationRender: r, operationWidth: a = 180, components: o = {}, ...s }) => { - const { classNames: l } = le(ne), u = _(null), d = _(null), [p, f] = L([]), [g, y] = L({ width: 0, height: 0 }); + const { classNames: l } = le(ne), u = _(null), d = _(null), [p, f] = j([]), [g, y] = j({ width: 0, height: 0 }); V(() => { f(Li(n, e)); }, [n, e]), rn(() => { @@ -478,7 +478,7 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, t && I.get(`/api/_/${t}`).then(({ uuid: n, code: r, name: a, resource: o, primaryKey: s, marginX: l, marginY: u, cols: d, rowHeight: p, fields: f, theme: g, themeSetting: y, groups: w }) => ({ uuid: n, code: r, name: a, resource: o, primaryKey: s, marginX: l, marginY: u, cols: d, rowHeight: p, theme: g, themeProps: y, groups: w, items: f })).then(i); }, [t]), e; }, Jn = (t, { initialValue: e, initialValueLanguage: i, convertJs: n, convertJsSetting: r, type: a = "string" }, o = null) => { - const s = _(!1), l = le(wi), [u, d] = L(), [p, f] = L(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(_n) || {}; + const s = _(!1), l = le(wi), [u, d] = j(), [p, f] = j(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(_n) || {}; return V(() => g == null ? void 0 : g((y, w, C) => { if (!s.current) return; const k = m.get(w, t); @@ -490,8 +490,8 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, d(y), console.error("布局数据转换错误: ", y, n); }); }, [p, n, r]), [u ?? p, p]; -}, ia = (t, e, i = null) => q(() => Jt(t, e, i), [t]), ji = (t, e, i = {}, n = {}, r = {}, a = null) => { - const o = le(wi), s = xt(), l = _(!0), u = _([]), [d, p] = L(e), [f, g] = L(), y = ie.useWatch((w) => JSON.stringify(m.pick(w, u.current)), o) || "{}"; +}, ia = (t, e, i = null) => K(() => Jt(t, e, i), [t]), ji = (t, e, i = {}, n = {}, r = {}, a = null) => { + const o = le(wi), s = xt(), l = _(!0), u = _([]), [d, p] = j(e), [f, g] = j(), y = ie.useWatch((w) => JSON.stringify(m.pick(w, u.current)), o) || "{}"; return ct(() => { t && Fe.exec(t, i, { ...n, getFieldValueForBasicForm: (w) => r ? r.getFieldValue(w) : null, getFieldValue: m.wrap(o.getFieldValue, (w, C) => (u.current.some((k) => m.isEqual(k, C)) || (u.current.push(C), s()), w == null ? void 0 : w(C))), isFieldTouched: o.isFieldTouched, isFieldsTouched: o.isFieldsTouched }).then((w) => { l.current && (p(w), g(null)); @@ -500,48 +500,48 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, }); }, [t, y, o, i, n]), V(() => () => l.current = !1, []), t ? [a ? oe(d, a) : d, f] : [a ? oe(e, a) : e, null]; }, Yn = ({ widget: t, widgetPrefix: e = "@pkg/ff/grid-layouts", basicForm: i, ...n }) => { - const r = t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, [a, o] = L(); + const r = t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, [a, o] = j(); return V(() => { r && se.getWidgetComponent(r).then(({ defaultProps: s = {}, default: l }) => ({ default: Gn(l, s, i) })).catch((s) => ({ default: () => `${s}` })).then((s) => o($.createElement(s.default, n))); }, [r]), a; }, Gn = (t, e = {}, i = null) => (n) => { - const { code: r, label: a, extras: o, isVirtual: s, initialValue: l, initialValueLanguage: u, convertJs: d, convertJsSetting: p, value: f, ...g } = m.merge({}, e, n), [y, w] = Jn(s ? null : r, { initialValue: l, initialValueLanguage: u, convertJs: d, convertJsSetting: p, type: (g == null ? void 0 : g.type) || "string" }, i), C = q(() => { + const { code: r, label: a, extras: o, isVirtual: s, initialValue: l, initialValueLanguage: u, convertJs: d, convertJsSetting: p, value: f, ...g } = m.merge({}, e, n), [y, w] = Jn(s ? null : r, { initialValue: l, initialValueLanguage: u, convertJs: d, convertJsSetting: p, type: (g == null ? void 0 : g.type) || "string" }, i), C = K(() => { const E = Object.keys((e == null ? void 0 : e.extras) || {}); return m.over([m.partialRight(m.pick, E), m.partialRight(m.omit, E)]); }, [e == null ? void 0 : e.extras]), [k, S] = C(g); return h(t, { ...S, value: y, rawValue: w, $setting: Object.assign({}, o, k) }); }, Ii = ({ theme: t, basicForm: e, items: i = [{ key: "default", label: "默认" }], fields: n = [], itemRender: r, chunks: a = [], children: o, $setting: s = {}, ...l }) => { - const [u, d] = L(); + const [u, d] = j(); V(() => { t ? se.getWidgetComponent(t).then((f) => { if (!(f != null && f.default)) throw "not found"; return f; }).catch((f) => ({ default: () => `${t} ${f}` })).then((f) => d($.createElement(f.default, {}))) : d(null); }, [t]); - const p = q(() => i == null ? void 0 : i.map((f) => ({ ...f, children: r(f, n == null ? void 0 : n.filter((g) => !(g != null && g.group) && f.key == "default" || g.group == f.key), f.key == "default" ? o : null) })).concat(a), [i, o, a]); + const p = K(() => i == null ? void 0 : i.map((f) => ({ ...f, children: r(f, n == null ? void 0 : n.filter((g) => !(g != null && g.group) && f.key == "default" || g.group == f.key), f.key == "default" ? o : null) })).concat(a), [i, o, a]); return u && $.cloneElement(u, { items: p, basicForm: e, $setting: { ...s, ...l } }); }, Vi = ({ name: t, form: e = null, basicForm: i = null, style: n = {}, className: r, cols: a = 12, rowHeight: o = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: u = {}, formFields: d = [], fields: p = [], data: f, theme: g, themeProps: y = {}, groups: w = [{ key: "default", label: "默认" }], children: C, ...k }) => { - const [S] = ie.useForm(e), E = q(() => [{ name: "__PROPS__", value: u }].concat(d), [u, d]); + const [S] = ie.useForm(e), E = K(() => [{ name: "__PROPS__", value: u }].concat(d), [u, d]); lt(() => (S.setFieldsValue(f), () => S.resetFields()), [f]); - const T = (O, A, M) => { - const D = Jt(A, Yn, i); - return F("div", { className: R("ff-grid-layout", r), style: { ...n, "--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": a, "--grid-layout-row-height": `${o}px` }, children: [D, M && $.cloneElement(M, { cols: a, rowHeight: o, itemMargin: l, containerPadding: s, fields: A, basicForm: i })] }); + const T = (F, L, D) => { + const W = Jt(L, Yn, i); + return A("div", { className: R("ff-grid-layout", r), style: { ...n, "--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": a, "--grid-layout-row-height": `${o}px` }, children: [W, D && $.cloneElement(D, { cols: a, rowHeight: o, itemMargin: l, containerPadding: s, fields: L, basicForm: i })] }); }; return h(ie, { ...k, fields: E, form: S, component: !1, children: g ? h(Ii, { ...y, items: w, theme: g, itemRender: T, fields: p, children: C, basicForm: i }) : T(0, p, C) }); }, na = /* @__PURE__ */ ((t) => function({ code: e, data: i, ...n }) { - const { uuid: r, resource: a, items: o, hides: s, rowHeight: l, marginX: u, marginY: d, cols: p, theme: f, themeProps: g, groups: y } = Hn(e) || {}, w = q(() => [{ name: "__RESOURCE__", value: a }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: r }], [e, r, a]); + const { uuid: r, resource: a, items: o, hides: s, rowHeight: l, marginX: u, marginY: d, cols: p, theme: f, themeProps: g, groups: y } = Hn(e) || {}, w = K(() => [{ name: "__RESOURCE__", value: a }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: r }], [e, r, a]); return a && h(t, { name: e, theme: f, themeProps: g, groups: y, ...n, fields: o, formFields: w, rowHeight: l, cols: p, itemMargin: [u, d], data: a ? { [a]: i } : i }); })(Vi), Xn = ({ column: t = 0, colWidth: e = 0, cols: i, rowHeight: n, itemMargin: r, fields: a, primaryKey: o, dataSource: s, itemClassName: l, beforeRender: u = null, afterRender: d = null, itemRender: p = (S, E, T) => S, empty: f = h(gn, { description: null }), className: g, style: y = {}, theme: w, themeProps: C = {}, groups: k = [{ key: "default", label: "默认" }] }) => { - const { classNames: S } = le(ne), E = q(() => h(Vi, { groups: k, theme: w, themeProps: C, cols: i, rowHeight: n, itemMargin: r, fields: a, className: l }), [a, i, n, r, k, w, C]), T = m.isEmpty(s); - return F("div", { className: R("ff-data-list-content", S.content, g), style: Object.assign({}, y, t && { "--col-num": t }, e && { "--col-width": e }), children: [u == null ? void 0 : u(s), T ? f : s.map((O, A) => { - const M = p($.cloneElement(E, { data: O }), O, A); - return $.cloneElement(M, { key: `${(O == null ? void 0 : O[o]) ?? A}-${Nn(O)}` }); + const { classNames: S } = le(ne), E = K(() => h(Vi, { groups: k, theme: w, themeProps: C, cols: i, rowHeight: n, itemMargin: r, fields: a, className: l }), [a, i, n, r, k, w, C]), T = m.isEmpty(s); + return A("div", { className: R("ff-data-list-content", S.content, g), style: Object.assign({}, y, t && { "--col-num": t }, e && { "--col-width": e }), children: [u == null ? void 0 : u(s), T ? f : s.map((F, L) => { + const D = p($.cloneElement(E, { data: F }), F, L); + return $.cloneElement(D, { key: `${(F == null ? void 0 : F[o]) ?? L}-${Nn(F)}` }); }), d == null ? void 0 : d(s)] }); }, Qn = ({ component: t, $props: e }) => { const { base62params: i } = st(e, {}); return h(G, { children: h(Yt, { listCode: t, base62params: I.decode(i) }) }); }, ra = () => h(Mi, {}), Mi = () => "Empty", Zn = ({ component: t, $setting: e, $props: i }) => { - const [n, r] = L(); + const [n, r] = j(); V(() => { if (!t) return r(h(Mi, { description: null })); se.getWidgetComponent(t).catch((o) => ({ default: () => `${o}` })).then((o) => $.createElement(o.default, { $setting: e })).then(r); @@ -556,7 +556,7 @@ const ge = class ge { v(this, Ne, {}); v(this, Te, null); P(this, "init", (e, i) => { - W(this, ae, e), W(this, Ne, i); + U(this, ae, e), U(this, Ne, i); }); P(this, "get", (e) => (c(this, ae).has(e) || (e = Array.from(c(this, ae).keys()).find((i) => c(this, ae).get(i).uri === e)), c(this, ae).get(e) || {})); P(this, "redirect", (e, i, n = {}) => { @@ -631,36 +631,36 @@ const ge = class ge { } const T = (k == null ? void 0 : k.theme) ?? (k == null ? void 0 : k.layout); if (T) { - const O = (k == null ? void 0 : k.themeProps) ?? (k == null ? void 0 : k.layoutProps); - if (!r[T]) return r[T] = s.length, [...s, { path: "/", lazy: a(T, O), children: [{ path: u, ...S }] }]; + const F = (k == null ? void 0 : k.themeProps) ?? (k == null ? void 0 : k.layoutProps); + if (!r[T]) return r[T] = s.length, [...s, { path: "/", lazy: a(T, F), children: [{ path: u, ...S }] }]; E = r[T]; } return C && E > -1 ? (s[E].children.push({ path: u, ...S }), s) : [...s, { path: u, ...S }]; }, [{ path: "/", lazy: a(i, {}), children: [] }]); - return o.push({ index: !0, element: $.createElement(er, { to: n, replace: !0 }) }), W(this, Te, kn(o, e)); + return o.push({ index: !0, element: $.createElement(er, { to: n, replace: !0 }) }), U(this, Te, kn(o, e)); }); if (c(ge, Pe)) return c(ge, Pe); } }; -Pe = new WeakMap(), ae = new WeakMap(), Ne = new WeakMap(), Te = new WeakMap(), Ze = new WeakMap(), et = new WeakMap(), v(ge, Pe, null), P(ge, "getInstance", () => (c(ge, Pe) || W(ge, Pe, new ge()), c(ge, Pe))); +Pe = new WeakMap(), ae = new WeakMap(), Ne = new WeakMap(), Te = new WeakMap(), Ze = new WeakMap(), et = new WeakMap(), v(ge, Pe, null), P(ge, "getInstance", () => (c(ge, Pe) || U(ge, Pe, new ge()), c(ge, Pe))); let Bt = ge; const er = ({ to: t, replace: e }) => Ci() ? $.createElement($n, { to: t, replace: e }) : (window.document.location = t, "redirect"), $e = Bt.getInstance(), Me = new Worker(new URL("/ff-worker/index.js", self.location)), di = { getConfigure: (t) => Ve.get(t), route: { redirect: (...t) => $e.redirect(...t), getPageParams: (...t) => $e.getPageParams(...t), getCurrentRoute: () => $e.getCurrentRoute() }, popup: { notification: (...t) => ee.notification(...t), success: (...t) => ee.success(...t), error: (...t) => ee.error(...t), form: (...t) => ee.form(...t), modal: (...t) => ee.modal(...t), confirm: (...t) => ee.confirm(...t) } }; -var St, We, Re; -const U = class U { +var St, Ue, Re; +const q = class q { constructor() { P(this, "exec", (e, i = {}, n = {}, r = "") => new Promise((a, o) => { if (!/^(?!\s*(\/\/|\/\*|\*)).*?\S+/m.test(e)) return a(); - const s = ri(U, St)._++; - c(U, We).set(s, n), U.mQueue.set(s, [a, o]), Me.postMessage({ id: s, session: r, category: "eval", method: e, args: i }); + const s = ri(q, St)._++; + c(q, Ue).set(s, n), q.mQueue.set(s, [a, o]), Me.postMessage({ id: s, session: r, category: "eval", method: e, args: i }); })); P(this, "clear", (e) => Me.postMessage({ session: e, category: "clear" })); - if (c(U, Re)) return c(U, Re); + if (c(q, Re)) return c(q, Re); Promise.resolve().then(() => xr).then((e) => { di.http = e.http; }), Me.addEventListener("message", ({ data: { id: e, task_id: i, method: n, args: r, category: a, data: o, error: s, session: l } }) => { - if (a === "eval" && U.mQueue.has(e)) s !== null ? U.mQueue.get(e)[1](s) : U.mQueue.get(e)[0](o), c(U, We).delete(e), U.mQueue.delete(e); + if (a === "eval" && q.mQueue.has(e)) s !== null ? q.mQueue.get(e)[1](s) : q.mQueue.get(e)[0](o), c(q, Ue).delete(e), q.mQueue.delete(e); else if (a === "util") try { - const u = m.get(di, n.split("/")) || m.get(c(U, We).get(i), n.split("/")); + const u = m.get(di, n.split("/")) || m.get(c(q, Ue).get(i), n.split("/")); if (!m.isFunction(u)) throw `${n} not found`; Promise.resolve(Reflect.apply(u, void 0, r)).then((d) => { Me.postMessage({ id: e, task_id: i, category: a, method: n, args: r, session: l, data: d, error: null }); @@ -673,8 +673,8 @@ const U = class U { }, !1); } }; -St = new WeakMap(), We = new WeakMap(), Re = new WeakMap(), P(U, "mQueue", /* @__PURE__ */ new Map()), v(U, St, 0), v(U, We, /* @__PURE__ */ new Map()), v(U, Re, null), P(U, "getInstance", () => (c(U, Re) || W(U, Re, new U()), c(U, Re))); -let Wt = U; +St = new WeakMap(), Ue = new WeakMap(), Re = new WeakMap(), P(q, "mQueue", /* @__PURE__ */ new Map()), v(q, St, 0), v(q, Ue, /* @__PURE__ */ new Map()), v(q, Re, null), P(q, "getInstance", () => (c(q, Re) || U(q, Re, new q()), c(q, Re))); +let Wt = q; const Fe = Wt.getInstance(), xt = () => { const t = _(!0), [, e] = $.useReducer((i) => i + 1, 0); return V(() => () => t.current = !1, []), () => t.current && e(); @@ -684,7 +684,7 @@ const Fe = Wt.getInstance(), xt = () => { e.current = t; }, [t]), e.current; }, sa = (t) => { - const [e, i] = L(t), n = _(null), r = X((a, o) => { + const [e, i] = j(t), n = _(null), r = X((a, o) => { n.current = o, i(a); }, []); return V(() => { @@ -700,14 +700,14 @@ const Fe = Wt.getInstance(), xt = () => { for (let n = 0; n < t.length; n++) t[n].value = oe((i = t[n]) == null ? void 0 : i.value, e), t[n] && Reflect.has(t[n], "children") && (t[n].children = Di(t[n].children, e)); return t; }, la = (t, e = "json", i = "string", n, r = null) => { - const [a] = ie.useForm(n), [o, s] = L([{ label: "无", value: "", disabled: !0 }]), l = _([]), u = ie.useWatch((d) => l.current.length === 0 ? null : m.pick(d, l.current), a) || null; + const [a] = ie.useForm(n), [o, s] = j([{ label: "无", value: "", disabled: !0 }]), l = _([]), u = ie.useWatch((d) => l.current.length === 0 ? null : m.pick(d, l.current), a) || null; return V(() => { Array.isArray(t) ? s(t) : e === "javascript" && t ? Fe.exec(t, {}, { getFieldValue: (d) => (l.current.includes(d) || l.current.push(d), a.getFieldValue(d)), getFieldValueForBasicForm: (d) => (l.current.includes(d) || l.current.push(d), r ? r.getFieldValue(d) : a.getFieldValue(d)) }).then((d) => { s(oe(d, "array")); }).catch((d) => console.error("useOptions", d)) : t && s(oe(t, "array")); }, [t, e, u]), Di(o, i); }, ca = (t) => { - const [e, i] = L(), n = { type: "GET" }; + const [e, i] = j(), n = { type: "GET" }; if (typeof t == "string" ? n.url = t : m.isPlainObject(t) && Object.assign(n, t), !(n != null && n.url)) throw "url is required"; const r = (a) => I.request(n, !1).resp((o) => (console.log("useSubscribeRequest", a), i(o), o)); return lt(() => { @@ -725,7 +725,7 @@ const Fe = Wt.getInstance(), xt = () => { }, { items: [], hides: [] }) })).then(i); }, [t]), e; }, ir = ({ max: t = 0, min: e = 0, type: i = "", message: n, pattern: r, required: a = !1, validator: o } = {}, s, l) => { - const [u, d] = L([]); + const [u, d] = j([]); return V(() => { const p = []; if (a) { @@ -759,7 +759,7 @@ const Fe = Wt.getInstance(), xt = () => { d(p); }, [t, e, i, n, r, a, o]), u; }, nr = (t, e, i) => { - const [n, r] = L(null); + const [n, r] = j(null); return V(() => { const { initDataUri: a = `/api/${t}`, initDataMethod: o = "GET" } = i || {}; e && I.request({ method: o, url: m.trimEnd(`${a}/${e}`, "/") }).then((s) => { @@ -780,7 +780,7 @@ const Fe = Wt.getInstance(), xt = () => { }, or = (t, e, i = [], n = {}) => { const r = _({}), a = _(), o = m.debounce(xt(), 180), s = ["disabled", "required"], l = (f, g) => { s.includes(f) && (r.current[f] = g), o(); - }, u = q(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [e]), [d, p] = ji(e, -1, {}, u, n); + }, u = K(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [e]), [d, p] = ji(e, -1, {}, u, n); if (!p && a.current != d && (d >= 0 || !m.isEmpty(i == null ? void 0 : i[d]))) { a.current = d; const { widget: f, widgetPrefix: g, props: y } = i == null ? void 0 : i[d]; @@ -791,7 +791,7 @@ const Fe = Wt.getInstance(), xt = () => { const n = _(), [r] = ie.useForm(i), a = _({}); return ct(() => { m.isEqual(n.current, t) || r.setFieldsValue(t); - }, [t]), V(() => () => r.resetFields(), []), [q(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: { itemRef: (o) => (s) => { + }, [t]), V(() => () => r.resetFields(), []), [K(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: { itemRef: (o) => (s) => { const l = ui(o); s ? a.current[l] = s : delete a.current[l]; } }, scrollToField: (o, s = {}) => { @@ -805,29 +805,29 @@ const Fe = Wt.getInstance(), xt = () => { n.current = s, e == null || e(s); }]; }, Gt = ({ widget: t = "Input", widgetPrefix: e = "@pkg/ff/grid-layout-forms", widgetDecorator: i, subWidgets: n = [], basicForm: r, ...a }) => { - const o = vi(t, e), [s, l] = or(o, i, n, r), [u, d] = L(); + const o = vi(t, e), [s, l] = or(o, i, n, r), [u, d] = j(); return V(() => { s && se.getWidgetComponent(s).then(({ defaultProps: p = {}, default: f }) => ({ default: sr(f, p, r) })).catch((p) => ({ default: () => `${p}` })).then((p) => d($.createElement(p.default, a))); }, [s]), u && $.cloneElement(u, { ...a, ...l }); }, sr = (t, e = {}, i = null) => (n) => { - const { type: r, code: a, label: o, noStyle: s, placeholder: l, required: u = !1, extras: d, validators: p, help: f, isVirtual: g, $isReserved: y, initialValue: w, initialValueLanguage: C, ...k } = m.omit(m.merge({}, e, n), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), S = ir(Object.assign({}, p, u ? { required: !0 } : {}), a, r), E = q(() => { - const D = Object.keys((e == null ? void 0 : e.extras) || {}); - return m.over([m.partialRight(m.pick, D), m.partialRight(m.omit, D)]); - }, [e == null ? void 0 : e.extras]), [T, O] = E(k), A = { label: o, noStyle: s, colon: !1, layout: "vertical" }, M = X((D) => D == null ? void 0 : oe(D, r), [r]); - return h(_t, { name: a, rules: S, initialValue: M(w), normalize: M, children: (D, j, z) => { - var x; - return h(t, { type: r, rcform: z, basicForm: i, itemProps: { validateStatus: j.errors.length > 0 ? "error" : "success", tooltip: f || null, help: j.errors.length > 0 ? j.errors.join("、") : null, required: ((x = S == null ? void 0 : S[0]) == null ? void 0 : x.required) || !1, ...A }, fieldProps: { placeholder: l, ...O, ...D }, $setting: Object.assign({}, d, T) }); + const { type: r, code: a, label: o, noStyle: s, style: l, placeholder: u, required: d = !1, extras: p, validators: f, help: g, isVirtual: y, $isReserved: w, initialValue: C, initialValueLanguage: k, ...S } = m.omit(m.merge({}, e, n), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), E = ir(Object.assign({}, f, d ? { required: !0 } : {}), a, r), T = K(() => { + const O = Object.keys((e == null ? void 0 : e.extras) || {}); + return m.over([m.partialRight(m.pick, O), m.partialRight(m.omit, O)]); + }, [e == null ? void 0 : e.extras]), [F, L] = T(S), D = { label: o, noStyle: s, style: l, colon: !1, layout: "vertical" }, W = X((O) => O == null ? void 0 : oe(O, r), [r]); + return h(_t, { name: a, rules: E, initialValue: W(C), normalize: W, children: (O, M, x) => { + var B; + return h(t, { type: r, rcform: x, basicForm: i, itemProps: { validateStatus: M.errors.length > 0 ? "error" : "success", tooltip: g || null, help: M.errors.length > 0 ? M.errors.join("、") : null, required: ((B = E == null ? void 0 : E[0]) == null ? void 0 : B.required) || !1, ...D }, fieldProps: { placeholder: u, ...L, ...O }, $setting: Object.assign({}, p, F) }); } }); -}, Xt = ({ name: t, form: e = null, basicForm: i = null, style: n = {}, className: r, cols: a = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: u = [], hides: d = [], primaryKey: p = 0, formProps: f = {}, formFields: g = [], listenChangeFields: y, listenChangeFieldsFunc: w, onValuesChange: C, theme: k, themeProps: S = {}, groups: E = [{ key: "default", label: "默认" }], children: T, ...O }) => { - const [A] = ie.useForm(e), M = X((z, x) => { - C == null || C(z, x), w && Array.isArray(y) && Fe.exec(w, { changedValues: z, allValues: x }, { getFieldValue: A.getFieldValue, setFieldValue: A.setFieldValue, setFieldsValue: A.setFieldsValue, isFieldTouched: A.isFieldTouched, isFieldsTouched: A.isFieldsTouched }).catch((K) => console.error("onFormValuesChange", t, K)); - }, [t, A, C, y, w]), D = q(() => [{ name: "__PROPS__", value: f }, { name: "__PRIMARY_KEY__", value: p }].concat(g), [p, f, g]), j = (z, x, K) => { - const B = Jt(x, Gt, i); - return F("div", { className: R("ff-grid-layout-form", r), style: { ...n, "--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": a, "--grid-layout-row-height": `${o}px` }, children: [B, K && $.cloneElement(K, { cols: a, rowHeight: o, itemMargin: s, containerPadding: l, fields: x, basicForm: i })] }); +}, Xt = ({ name: t, form: e = null, basicForm: i = null, style: n = {}, className: r, cols: a = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: u = [], hides: d = [], primaryKey: p = 0, formProps: f = {}, formFields: g = [], listenChangeFields: y, listenChangeFieldsFunc: w, onValuesChange: C, theme: k, themeProps: S = {}, groups: E = [{ key: "default", label: "默认" }], children: T, ...F }) => { + const [L] = ie.useForm(e), D = X((M, x) => { + C == null || C(M, x), w && Array.isArray(y) && Fe.exec(w, { changedValues: M, allValues: x }, { getFieldValue: L.getFieldValue, setFieldValue: L.setFieldValue, setFieldsValue: L.setFieldsValue, isFieldTouched: L.isFieldTouched, isFieldsTouched: L.isFieldsTouched }).catch((B) => console.error("onFormValuesChange", t, B)); + }, [t, L, C, y, w]), W = K(() => [{ name: "__PROPS__", value: f }, { name: "__PRIMARY_KEY__", value: p }].concat(g), [p, f, g]), O = (M, x, B) => { + const z = Jt(x, Gt, i); + return A("div", { className: R("ff-grid-layout-form", r), style: { ...n, "--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": a, "--grid-layout-row-height": `${o}px` }, children: [z, B && $.cloneElement(B, { cols: a, rowHeight: o, itemMargin: s, containerPadding: l, fields: x, basicForm: i })] }); }; - return F(ie, { ...O, form: A, fields: D, onValuesChange: M, children: [k ? h(Ii, { ...S, items: E, theme: k, itemRender: j, fields: u, children: T, basicForm: i }) : j(0, u, T), d == null ? void 0 : d.map((z) => { + return A(ie, { ...F, form: L, fields: W, onValuesChange: D, children: [k ? h(Ii, { ...S, items: E, theme: k, itemRender: O, fields: u, children: T, basicForm: i }) : O(0, u, T), d == null ? void 0 : d.map((M) => { var x; - return h(_t, { name: z.code, children: h(lr, { form: A, basicForm: i, name: z.code, type: z.type, initialValue: z.initialValue, initialValueLanguage: (x = z.extras) == null ? void 0 : x.initialValueLanguage }) }, JSON.stringify(z.code)); + return h(_t, { name: M.code, children: h(lr, { form: L, basicForm: i, name: M.code, type: M.type, initialValue: M.initialValue, initialValueLanguage: (x = M.extras) == null ? void 0 : x.initialValueLanguage }) }, JSON.stringify(M.code)); })] }); }, lr = ({ type: t, initialValue: e, initialValueLanguage: i, onChange: n, basicForm: r }) => { const [a, o] = ji(i == "javascript" && e, i == "javascript" ? void 0 : e, {}, {}, r); @@ -837,11 +837,11 @@ const Fe = Wt.getInstance(), xt = () => { }; Xt.propTypes = { fields: b.array, hides: b.array }; const cr = /* @__PURE__ */ ((t) => ({ code: e, isPreview: i = !1, ...n }) => { - const { align: r, autoComplete: a, resource: o, items: s, hides: l, rowHeight: u, marginX: d, marginY: p, cols: f, listenChangeFields: g, listenChangeFieldsFunc: y, pk: w, uuid: C, theme: k, themeProps: S, groups: E } = tr(e), T = q(() => [{ name: "__PK__", value: w }, { name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: C }], [w, e, C, o]); + const { align: r, autoComplete: a, resource: o, items: s, hides: l, rowHeight: u, marginX: d, marginY: p, cols: f, listenChangeFields: g, listenChangeFieldsFunc: y, pk: w, uuid: C, theme: k, themeProps: S, groups: E } = tr(e), T = K(() => [{ name: "__PK__", value: w }, { name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: C }], [w, e, C, o]); return h(t, { name: e, autoComplete: a, theme: k, themeProps: S, groups: E, ...n, formFields: T, listenChangeFields: g, listenChangeFieldsFunc: y, fields: s, hides: l, cols: f, rowHeight: u, itemMargin: [d, p] }); })(Xt), zi = ({ $setting: t, $close: e, extras: i, code: n, primaryKey: r, ...a }) => { const [o] = ie.useForm(), s = ar(o, n, r, t); - return h(G, { actions: F($.Fragment, { children: [h(N, { name: (t == null ? void 0 : t.okText) || "保存", type: "primary", widget: () => s({ onSuccess: e }) }), h(N, { name: (t == null ? void 0 : t.cancelText) || "取消", widget: () => e(!1) })] }), extras: i, children: h(cr, { form: o, code: n, primaryKey: r, ...a }) }); + return h(G, { actions: A($.Fragment, { children: [h(N, { name: (t == null ? void 0 : t.okText) || "保存", type: "primary", widget: () => s({ onSuccess: e }) }), h(N, { name: (t == null ? void 0 : t.cancelText) || "取消", widget: () => e(!1) })] }), extras: i, children: h(cr, { form: o, code: n, primaryKey: r, ...a }) }); }, pi = /* @__PURE__ */ new Set(), Ut = (t = [], e = 0) => { const i = t[e]; if (i.length && !pi.has(i)) { @@ -868,7 +868,7 @@ const dr = (t, e, i, n) => $e.redirect(i, e, n), ur = (t, e = {}, i, n = {}) => }, hi = (t, e, i, n, r) => m.isString(i) && i ? se.getWidgetComponent(i).then(({ default: a }) => ee.modal(a, { ...e, $setting: n }, r != null && r.title ? { ...r, title: m.template(r.title)(t) } : r)).catch((a) => { ee.error(i, { content: a.toString() }); }) : ee.modal(i, { ...e, $setting: n }, r != null && r.title ? { ...r, title: m.template(r.title)(t) } : r), pr = (t, e, i, n, r) => ee.modal(zi, { ...e, $setting: n, code: i }, r != null && r.title ? { ...r, title: m.template(r.title)(t) } : r), gr = (t, e, i, n, r) => ee.modal(Yt, { base62params: e, $setting: n, listCode: i }, r != null && r.title ? { ...r, title: m.template(r.title)(t) } : r), hr = ({ widget: t, widgetType: e, widgetData: i, widgetProps: n, widgetSetting: r, widgetContainerProps: a }, { onAfterClick: o, onBeforeClick: s } = {}) => { - const l = le(ne), [u, d] = L({ leading: !0, trailing: !1 }), p = q(() => { + const l = le(ne), [u, d] = j({ leading: !0, trailing: !1 }), p = K(() => { switch (e) { case "redirect": return m.partialRight(dr, t, r); @@ -890,47 +890,47 @@ const dr = (t, e, i, n) => $e.redirect(i, e, n), ur = (t, e = {}, i, n = {}) => return (...f) => console.error("useButton unknown widgetType", e, ...f); }, [t, e]); return [m.debounce((f) => (s == null || s(f), Promise.resolve(st(n, f, { list: l })).then((g) => p(f, { ...i, ...g })).then((g) => o == null ? void 0 : o(g)).catch(console.error)), 300, { leading: !0, trailing: !1 }), u]; -}, Bi = ({ type: t, name: e, className: i, icon: n, iconPosition: r, size: a }, o = "default") => q(() => { +}, Bi = ({ type: t, name: e, className: i, icon: n, iconPosition: r, size: a }, o = "default") => K(() => { const s = { type: "primary", className: R("ff-button", i), iconPosition: r, size: a }; return t === "danger" ? s.danger = !0 : t === "default" && (s.type = t), o === "link" || o === "dashed" ? (s.type = o, t === "default" && (s.className = R(s.className, "ff-default"))) : o !== "circle" && o !== "round" || (s.shape = o), n && (s.icon = h(bt, { type: n })), e && (s.children = e), s; }, [o, t, i, n, r]), Pt = ({ data: t, widget: e, widgetType: i = "fsdpf-component", widgetData: n, widgetProps: r, widgetSetting: a, widgetContainerProps: o, onAfterClick: s, onBeforeClick: l, children: u, extras: d }) => { - const p = le(ne), [f, g] = L(!1), [y, w] = L("hover"), [C, k] = L({}), [S, E] = L(), { placement: T, align: O, zIndex: A, arrow: M = { pointAtCenter: !0 }, getPopupContainer: D, isPopupMountBodyContainer: j = !0, ...z } = o || {}; + const p = le(ne), [f, g] = j(!1), [y, w] = j("hover"), [C, k] = j({}), [S, E] = j(), { placement: T, align: F, zIndex: L, arrow: D = { pointAtCenter: !0 }, getPopupContainer: W, isPopupMountBodyContainer: O = !0, ...M } = o || {}; V(() => { - i == "grid-layout-form" ? E($.createElement(zi, { ...n, $setting: a, code: e })) : i == "data-list" ? E($.createElement(Yt, { base62params: t, $setting: a, listCode: e })) : m.isString(e) ? se.getWidgetComponent(e).then(({ default: B }) => { - E($.createElement(B, { ...n, $setting: a })); - }).catch((B) => E(B.toString())) : Zt(e) ? E($.createElement(e, { ...n, $setting: a })) : $.isValidElement(e) && E($.cloneElement(e, { ...n, $setting: a })); + i == "grid-layout-form" ? E($.createElement(zi, { ...n, $setting: a, code: e })) : i == "data-list" ? E($.createElement(Yt, { base62params: t, $setting: a, listCode: e })) : m.isString(e) ? se.getWidgetComponent(e).then(({ default: z }) => { + E($.createElement(z, { ...n, $setting: a })); + }).catch((z) => E(z.toString())) : Zt(e) ? E($.createElement(e, { ...n, $setting: a })) : $.isValidElement(e) && E($.cloneElement(e, { ...n, $setting: a })); }, [e, i, n]), V(() => { Promise.resolve(st(r, t, { list: p })).then(k); }, [r, t, p.getBase62params]); - const x = (B, Ee = !1) => (g(B), !B && w("hover"), B ? l == null ? void 0 : l(C) : s == null ? void 0 : s(Ee)), K = (B) => { + const x = (z, Ee = !1) => (g(z), !z && w("hover"), z ? l == null ? void 0 : l(C) : s == null ? void 0 : s(Ee)), B = (z) => { g(!0), w("click"); }; - return h(hn, { zIndex: A, placement: T, onPopupClick: K, onClick: K, open: f, align: O, arrow: M, trigger: y, getPopupContainer: D || j ? void 0 : (B) => B, content: h(mr, { ...z, extras: d, children: S && $.cloneElement(S, { ...C, $close: (B) => x(!1, B) }) }), children: u, onOpenChange: x }); + return h(hn, { zIndex: L, placement: T, onPopupClick: B, onClick: B, open: f, align: F, arrow: D, trigger: y, getPopupContainer: W || O ? void 0 : (z) => z, content: h(mr, { ...M, extras: d, children: S && $.cloneElement(S, { ...C, $close: (z) => x(!1, z) }) }), children: u, onOpenChange: x }); }, mr = ({ title: t, className: e, classNames: i, children: n, extras: r, width: a, height: o, ...s }) => { - const [l, u] = L({}), d = X((y, w) => u((C) => ({ ...C, [y]: w })), []), p = X((y) => u((w) => ({ ...w, [y]: void 0 })), []), f = t ? $.createElement("div", { className: "ff-popup-title" }, t) : l == null ? void 0 : l.title, g = r ?? $.createElement("div", { className: "ff-popup-reserved-extras" }, r); - return h(ot.Provider, { value: { ele: l, mount: d, unmount: p }, children: F("div", { className: R("ff-popup ff-popover", e, l.rootClassName), style: { width: a ?? 260, height: o }, ...s, children: [F("div", { className: R("ff-popup-header", "ff-popover-header", i == null ? void 0 : i.header), children: [f, l == null ? void 0 : l["sub-title"]] }), h("div", { className: R("ff-popup-body", "ff-popover-body", i == null ? void 0 : i.body), children: n }), F("div", { className: R("ff-popup-footer", "ff-popover-footer", i == null ? void 0 : i.footer), children: [g, l == null ? void 0 : l.extras, l == null ? void 0 : l.actions] })] }) }); + const [l, u] = j({}), d = X((y, w) => u((C) => ({ ...C, [y]: w })), []), p = X((y) => u((w) => ({ ...w, [y]: void 0 })), []), f = t ? $.createElement("div", { className: "ff-popup-title" }, t) : l == null ? void 0 : l.title, g = r ?? $.createElement("div", { className: "ff-popup-reserved-extras" }, r); + return h(ot.Provider, { value: { ele: l, mount: d, unmount: p }, children: A("div", { className: R("ff-popup ff-popover", e, l.rootClassName), style: { width: a ?? 260, height: o }, ...s, children: [A("div", { className: R("ff-popup-header", "ff-popover-header", i == null ? void 0 : i.header), children: [f, l == null ? void 0 : l["sub-title"]] }), h("div", { className: R("ff-popup-body", "ff-popover-body", i == null ? void 0 : i.body), children: n }), A("div", { className: R("ff-popup-footer", "ff-popover-footer", i == null ? void 0 : i.footer), children: [g, l == null ? void 0 : l.extras, l == null ? void 0 : l.actions] })] }) }); }; Pt.propTypes = { widgetType: b.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; const dt = (t) => function({ className: e, variant: i, children: n, name: r, icon: a, type: o = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: u, onBeforeClick: d, data: p, loading: f, disabled: g, tooltip: y, confirm: w, widget: C = () => { -}, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: O, ...A }) { - const { mode: M, ...D } = O || {}, j = Bi({ className: e, name: r, type: o, icon: a, iconPosition: s }, i ?? t), z = h(yt, { ...j, ...A, children: n || r }); - if (M === "popover" && !["destroy", "redirect", "func"].includes(k)) return h(Pt, { data: p, widget: C, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: D, onAfterClick: u, onBeforeClick: d, children: z }); - const x = m.isEmpty(y) || !y.enabled ? {} : y, K = m.isEmpty(w) ? { enabled: !1 } : Object.assign({ enabled: !0 }, w), [B, Ee] = L(!1), [ut, { disabled: pt, loading: Nt }] = hr({ widget: C, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: D }, { onAfterClick: u, onBeforeClick: d }); - return h(mn, { okText: "确定", cancelText: "取消", getPopupContainer: (te) => te, ...K, disabled: pt || g, open: B, onOpenChange: (te) => { +}, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: F, ...L }) { + const { mode: D, ...W } = F || {}, O = Bi({ className: e, name: r, type: o, icon: a, iconPosition: s }, i ?? t), M = h(yt, { ...O, ...L, children: n || r }); + if (D === "popover" && !["destroy", "redirect", "func"].includes(k)) return h(Pt, { data: p, widget: C, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: W, onAfterClick: u, onBeforeClick: d, children: M }); + const x = m.isEmpty(y) || !y.enabled ? {} : y, B = m.isEmpty(w) ? { enabled: !1 } : Object.assign({ enabled: !0 }, w), [z, Ee] = j(!1), [ut, { disabled: pt, loading: Nt }] = hr({ widget: C, widgetType: k, widgetData: S, widgetProps: E, widgetSetting: T, widgetContainerProps: W }, { onAfterClick: u, onBeforeClick: d }); + return h(mn, { okText: "确定", cancelText: "取消", getPopupContainer: (te) => te, ...B, disabled: pt || g, open: z, onOpenChange: (te) => { if (!te) return Ee(te); - K.enabled ? Ee(te) : ut(p); + B.enabled ? Ee(te) : ut(p); }, onConfirm: (te) => { ut(p, te); }, onClick: (te) => { te.stopPropagation(); - }, children: h(fn, { getPopupContainer: (te) => te, ...x, title: B ? null : x == null ? void 0 : x.title, trigger: ["hover", "click"], children: $.cloneElement(z, { loading: Nt || f, disabled: pt || g }) }) }); + }, children: h(fn, { getPopupContainer: (te) => te, ...x, title: z ? null : x == null ? void 0 : x.title, trigger: ["hover", "click"], children: $.cloneElement(M, { loading: Nt || f, disabled: pt || g }) }) }); }, N = dt("default"); N.propTypes = { type: b.oneOf(["primary", "default", "danger", ""]), size: b.oneOf(["large", "middle", "small"]), name: b.string, icon: b.string, iconPosition: b.oneOf(["start", "end"]), data: b.any, widget: b.any, widgetType: b.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: b.object, widgetProps: b.object, widgetSetting: b.object, widgetContainerProps: b.object, tooltip: b.exact({ title: b.string.isRequired, placement: b.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: b.oneOfType([b.bool, b.number]), getPopupContainer: b.func }), confirm: b.exact({ title: b.string.isRequired, cancelText: b.string, okText: b.string, okType: b.oneOf(["primary", "default", "danger", ""]), placement: b.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: b.oneOfType([b.bool, b.number]), getPopupContainer: b.func, arrow: b.oneOfType([b.bool, b.exact({ pointAtCenter: b.bool })]) }) }; const fr = dt("link"), yr = dt("circle"), wr = dt("round"), br = dt("dashed"), mi = ({ options: t = [], triggerWeights: e = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: i = (g, y, w) => { }, onBeforeClick: n = (g, y, w) => { }, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: u = (g, y) => h(N, { ...g, data: y }, g.uuid || Lt()), widgetContainerProps: d = {}, children: p, data: f }) => { if (m.isEmpty(t)) return p; - const [g, y] = q(() => (t || []).reduce((C, k) => { + const [g, y] = K(() => (t || []).reduce((C, k) => { const S = e.indexOf(k.widgetType); return S === -1 ? C[1].push(k) : C[0] ? S < e.indexOf(C[0].widgetType) ? (C[1].push(C[0]), C[0] = k) : C[1].push(k) : C[0] = k, C; }, [null, []]), [t, e]); @@ -940,13 +940,13 @@ const fr = dt("link"), yr = dt("circle"), wr = dt("round"), br = dt("dashed"), m }; mi.propTypes = { triggerWeights: b.array, options: b.arrayOf(b.shape({ ...N.propTypes, widgetType: N.propTypes.widgetType.isRequired })), btnSize: N.propTypes.size, btnRender: b.func, btnVariant: b.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: b.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: b.func, labelSize: N.propTypes.size, onAfterClick: b.func, onBeforeClick: b.func, widgetContainerProps: N.propTypes.widgetContainerProps, data: N.propTypes.data }, N.Link = fr, N.Link.defaultProps = N.defaultProps, N.Link.propTypes = N.propTypes, N.Circle = yr, N.Circle.defaultProps = N.defaultProps, N.Circle.propTypes = N.propTypes, N.Round = wr, N.Round.defaultProps = N.defaultProps, N.Round.propTypes = N.propTypes, N.Dashed = br, N.Dashed.defaultProps = N.defaultProps, N.Dashed.propTypes = N.propTypes, N.Popover = Pt, N.GroupPopover = mi; const Cr = ({ fields: t, formProps: e, $close: i }) => { - const [n] = ie.useForm(), r = q(() => [{ name: "__PROPS__", value: e }], [e]); - return h(G, { actions: F($.Fragment, { children: [h(N, { name: "取消", widget: () => i(!1) }), h(N, { name: "确定", type: "primary", widget: () => n.validateFields(!0).then(i) })] }), children: h(ie, { fields: r, form: n, className: "ff-modal-form", children: t == null ? void 0 : t.map(({ code: a, ...o }) => h(Gt, { code: a, ...o }, a)) }) }); -}, kr = ({ className: t, classNames: e, $close: i, children: n, title: r, subTitle: a, actions: o, extras: s, ...l }) => F(En, { ...l, prefixCls: "ff-drawer", className: R("ff-popup", t), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (u) => ({ motionAppear: !0, motionName: `panel-motion-${u}` }), children: [F("div", { className: R("ff-popup-header", "ff-drawer-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-drawer-close", e == null ? void 0 : e.close), onClick: l.onClose, children: h(Ht, { type: "close" }) }), r, a] }), h("div", { className: R("ff-popup-body", "ff-drawer-body", e == null ? void 0 : e.body), children: n }), F("div", { className: R("ff-popup-footer", "ff-drawer-footer", e == null ? void 0 : e.footer), children: [s, o] })] }), $r = ({ className: t, classNames: e, $close: i, $event: n, children: r, title: a, subTitle: o, actions: s, extras: l, placement: u, ...d }) => { + const [n] = ie.useForm(), r = K(() => [{ name: "__PROPS__", value: e }], [e]); + return h(G, { actions: A($.Fragment, { children: [h(N, { name: "取消", widget: () => i(!1) }), h(N, { name: "确定", type: "primary", widget: () => n.validateFields(!0).then(i) })] }), children: h(ie, { fields: r, form: n, className: "ff-modal-form", children: t == null ? void 0 : t.map(({ code: a, ...o }) => h(Gt, { code: a, ...o }, a)) }) }); +}, kr = ({ className: t, classNames: e, $close: i, children: n, title: r, subTitle: a, actions: o, extras: s, ...l }) => A(En, { ...l, prefixCls: "ff-drawer", className: R("ff-popup", t), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (u) => ({ motionAppear: !0, motionName: `panel-motion-${u}` }), children: [A("div", { className: R("ff-popup-header", "ff-drawer-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-drawer-close", e == null ? void 0 : e.close), onClick: l.onClose, children: h(Ht, { type: "close" }) }), r, a] }), h("div", { className: R("ff-popup-body", "ff-drawer-body", e == null ? void 0 : e.body), children: n }), A("div", { className: R("ff-popup-footer", "ff-drawer-footer", e == null ? void 0 : e.footer), children: [s, o] })] }), $r = ({ className: t, classNames: e, $close: i, $event: n, children: r, title: a, subTitle: o, actions: s, extras: l, placement: u, ...d }) => { const p = (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 h(Sn, { ...d, ...p, prefixCls: "ff-modal", modalRender: () => F("div", { className: R("ff-modal-content ff-popup", t), children: [F("div", { className: R("ff-popup-header", "ff-modal-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-modal-close", e == null ? void 0 : e.close), onClick: d.onClose, children: h(Ht, { type: "close" }) }), a, o] }), h("div", { className: R("ff-popup-body", "ff-modal-body", e == null ? void 0 : e.body), children: r }), F("div", { className: R("ff-popup-footer", "ff-modal-footer", e == null ? void 0 : e.footer), children: [l, s] })] }) }); + return h(Sn, { ...d, ...p, prefixCls: "ff-modal", modalRender: () => A("div", { className: R("ff-modal-content ff-popup", t), children: [A("div", { className: R("ff-popup-header", "ff-modal-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-modal-close", e == null ? void 0 : e.close), onClick: d.onClose, children: h(Ht, { type: "close" }) }), a, o] }), h("div", { className: R("ff-popup-body", "ff-modal-body", e == null ? void 0 : e.body), children: r }), A("div", { className: R("ff-popup-footer", "ff-modal-footer", e == null ? void 0 : e.footer), children: [l, s] })] }) }); }, Wi = ({ placement: t, $close: e, $event: i, children: n, title: r, ...a }) => { - const [o, s] = L({}), [l, u] = L(!0), d = X((y, w) => s((C) => ({ ...C, [y]: w })), []), p = X((y) => s((w) => ({ ...w, [y]: void 0 })), []); + const [o, s] = j({}), [l, u] = j(!0), d = X((y, w) => s((C) => ({ ...C, [y]: w })), []), p = X((y) => s((w) => ({ ...w, [y]: void 0 })), []); let f = { ...a, className: o.rootClassName, title: o.title || r && $.createElement("div", { className: R("ff-popup-title") }, r), subTitle: o["sub-title"], actions: o.actions, extras: o.extras, children: n, $close: e, $event: i, onClose: () => u(!1) }; const g = () => { e(!1); @@ -969,7 +969,7 @@ const Z = () => { if (s === Ei) return t.open({ ...u, key: d, content: $.createElement(s, { ...l, $close: () => t.close(d) }) }); Z.$popups.set(d, $.createElement(Wi, { maskClosable: !1, $event: l == null ? void 0 : l.$event, ...u, key: d, $close: p }, $.isValidElement(s) ? $.cloneElement(s, { ...l, $close: p }) : s != null && s.name || ai.isForwardRef(s) || (s == null ? void 0 : s.$$typeof) === ai.ForwardRef ? $.createElement(s, { ...l, $close: p }) : s)), i(); }; - return F($.Fragment, { children: [Array.from(Z.$popups).map(([a, o]) => o), e] }); + return A($.Fragment, { children: [Array.from(Z.$popups).map(([a, o]) => o), e] }); }; Z.$popups = /* @__PURE__ */ new Map(), Z.$index = 0, Z.$queue = [], Z.$onClick = (...t) => new Promise((e, i) => { Z.$queue.push([t, e, i]); @@ -978,24 +978,27 @@ const fi = (t, e, i = {}) => Z.$onClick(t, e, i), Ft = (t, { showProgress: e, du if (n === !1) throw !1; return n; }), notification: Ft, success: (t, e = { duration: 1.5 }) => Ft(t, { ...e, className: "ff-notification-success", icon: "check" }), error: (t, e = { duration: 1.5 }) => Ft(t, { ...e, className: "ff-notification-error", icon: "close" }) }; -_e.configure({ showSpinner: !1 }), He.interceptors.request.use((t) => { +He.configure({ showSpinner: !1 }), De.interceptors.request.use((t) => { t.headers.Platform = "web", t.headers.SaaS = window.localStorage.getItem("SaaS"); const e = window.localStorage.getItem(ft); - return t.headers.Authorization = e ? `Bearer ${e} ` : void 0, _e.inc(), t; -}, (t) => (_e.done(), Promise.reject({ code: -1, msg: t }))), He.interceptors.response.use(({ data: t, headers: e }) => (_e.done(), { ...t, res: e == null ? void 0 : e.res }), function(t) { - return _e.done(), Promise.reject(t.message); + return t.headers.Authorization = e ? `Bearer ${e} ` : void 0, He.inc(), t; +}, (t) => (He.done(), Promise.reject({ code: -1, msg: t }))), De.interceptors.response.use(({ data: t, headers: e }) => (He.done(), { ...t, res: e == null ? void 0 : e.res }), function(t) { + return He.done(), Promise.reject(t.message); }), window.addEventListener("unhandledrejection", jt.onUnhandledRejection), jt.onMsg = (t, e) => ee[[0, 1].includes(t) ? "success" : "error"](e).then(() => t === 20300 && $e.redirect(Ve.get("Common.WEBSITE_LOGIN_PAGE"))); -var Ie, Ue; +var Ie, qe; const J = class J { constructor() { P(this, "appUrl", ""); - return c(J, Ie) || (W(J, Ue, new jt()), W(J, Ie, new Proxy(this, { get: (e, i) => i === "init" ? e.init : i === "appUrl" ? e.appUrl : c(J, Ue)[i] }))), c(J, Ie); + return c(J, Ie) || (U(J, qe, new jt()), U(J, Ie, new Proxy(this, { get: (e, i) => i === "init" ? e.init : i === "appUrl" ? e.appUrl : i === "driver" ? e.driver : c(J, qe)[i] }))), c(J, Ie); } init(e, i, n) { - He.defaults.baseURL = this.appUrl = n, He.defaults.timeout = 15e3, c(J, Ue).init(e, i, He); + De.defaults.baseURL = this.appUrl = n, De.defaults.timeout = 15e3, c(J, qe).init(e, i, De); + } + get driver() { + return De; } }; -Ie = new WeakMap(), Ue = new WeakMap(), v(J, Ie, null), v(J, Ue, null), P(J, "getInstance", () => c(J, Ie) ?? W(J, Ie, new J())); +Ie = new WeakMap(), qe = new WeakMap(), v(J, Ie, null), v(J, qe, null), P(J, "getInstance", () => c(J, Ie) ?? U(J, Ie, new J())); let qt = J; const I = qt.getInstance(); class Qt extends Error { @@ -1009,11 +1012,11 @@ class Je extends Error { } } const At = "mine", ft = "token"; -var Oe, qe; +var Oe, Ke; const he = class he { constructor() { - v(this, qe, /* @__PURE__ */ new Map()); - P(this, "setVendor", (e, i) => c(this, qe).set(e, new ki(i, async (n, r) => { + v(this, Ke, /* @__PURE__ */ new Map()); + P(this, "setVendor", (e, i) => c(this, Ke).set(e, new ki(i, async (n, r) => { var o, s; if (!(n != null && n.default)) throw "@pkg not found"; let a = () => r; @@ -1030,7 +1033,7 @@ const he = class he { const [, i] = e == null ? void 0 : e.split("@pkg/"); if (!i) throw new Je(e); try { - return c(this, qe).has("pkg") ? await c(this, qe).get("pkg").get(i) : await import(`${I.appUrl}/api/pkg-import/web?name=${e}`); + return c(this, Ke).has("pkg") ? await c(this, Ke).get("pkg").get(i) : await import(`${I.appUrl}/api/pkg-import/web?name=${e}`); } catch (n) { throw new Qt(e, n); } @@ -1077,7 +1080,7 @@ const he = class he { if (c(he, Oe)) return c(he, Oe); } }; -Oe = new WeakMap(), qe = new WeakMap(), v(he, Oe, null), P(he, "getInstance", () => (c(he, Oe) || W(he, Oe, new he()), c(he, Oe))); +Oe = new WeakMap(), Ke = new WeakMap(), v(he, Oe, null), P(he, "getInstance", () => (c(he, Oe) || U(he, Oe, new he()), c(he, Oe))); let Kt = he; const se = Kt.getInstance(), Er = $.createContext({ user: {}, initUser: () => { }, initUserComplete: !1 }), Sr = $.createContext({ set: () => { @@ -1089,13 +1092,13 @@ const se = Kt.getInstance(), Er = $.createContext({ user: {}, initUser: () => { let i = document.querySelector(`style[ff-style-token="${e}"]`); return i ? (i.innerHTML = t, t) : (i = document.createElement("style"), i.setAttribute("ff-style-token", e), i.setAttribute("type", "text/css"), i.innerHTML = t, document.head.appendChild(i), t); }, xr = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Er, AppGlobalParamsContext: Sr, cache: ki, configure: Ve, default: se, func: Fe, http: I, insertStyle: vr, isReactComponent: Zt, route: $e }, Symbol.toStringTag, { value: "Module" })); -var Ce, Ke, ke, me, fe, Q, Y, H, ye, tt, it, nt, rt, vt, at; +var Ce, _e, ke, me, fe, Q, Y, H, ye, tt, it, nt, rt, vt, at; const ei = class ei { constructor(e, i = "/") { v(this, Ce, "/"); - v(this, Ke, /* @__PURE__ */ new Set()); + v(this, _e, /* @__PURE__ */ new Set()); v(this, ke, (e) => { - for (const i of c(this, Ke)) try { + for (const i of c(this, _e)) try { i(e); } catch (n) { console.error("Error in VirtualFS event listener:", n); @@ -1206,7 +1209,7 @@ const ei = class ei { return new RegExp(`^${n}$`).test(e); }); var n, r, a; - W(this, Ce, i), this.root = { name: "/", type: "dir", children: [], lastModified: Date.now() }, Array.isArray(e) ? this.root.children = e : e && typeof e == "object" && (e.name && e.name !== "/" ? this.root.children.push(e) : (this.root = e, (n = this.root).name ?? (n.name = "/"), (r = this.root).children ?? (r.children = []), (a = this.root).lastModified ?? (a.lastModified = Date.now()))); + U(this, Ce, i), this.root = { name: "/", type: "dir", children: [], lastModified: Date.now() }, Array.isArray(e) ? this.root.children = e : e && typeof e == "object" && (e.name && e.name !== "/" ? this.root.children.push(e) : (this.root = e, (n = this.root).name ?? (n.name = "/"), (r = this.root).children ?? (r.children = []), (a = this.root).lastModified ?? (a.lastModified = Date.now()))); } async stat(e) { const i = c(this, Q).call(this, e); @@ -1306,8 +1309,8 @@ const ei = class ei { } subscribe(e) { if (typeof e != "function") throw new Error("Callback must be a function"); - return c(this, Ke).add(e), () => { - c(this, Ke).delete(e); + return c(this, _e).add(e), () => { + c(this, _e).delete(e); }; } getWorkingDirectory() { @@ -1336,7 +1339,7 @@ const ei = class ei { return c(this, tt).call(this, l, r, s); } }; -Ce = new WeakMap(), Ke = new WeakMap(), ke = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), Q = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), ye = new WeakMap(), tt = new WeakMap(), it = new WeakMap(), nt = new WeakMap(), rt = new WeakMap(), vt = new WeakMap(), at = new WeakMap(); +Ce = new WeakMap(), _e = new WeakMap(), ke = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), Q = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), ye = new WeakMap(), tt = new WeakMap(), it = new WeakMap(), nt = new WeakMap(), rt = new WeakMap(), vt = new WeakMap(), at = new WeakMap(); let yi = ei; const Pr = async (t, e = "/", i = "") => { try { diff --git a/dist/common/vender-FNiQWFaA.js b/dist/common/vender-yKcgvbX-.js similarity index 57% rename from dist/common/vender-FNiQWFaA.js rename to dist/common/vender-yKcgvbX-.js index cc9c1b0..dfdfb1f 100644 --- a/dist/common/vender-FNiQWFaA.js +++ b/dist/common/vender-yKcgvbX-.js @@ -3,42 +3,42 @@ function me(t, e) { 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); +const { toString: Le } = Object.prototype, { getPrototypeOf: Ft } = Object, ut = (gt = /* @__PURE__ */ Object.create(null), (t) => { + const e = Le.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) => { +const B = (t) => (t = t.toLowerCase(), (e) => ut(e) === t), dt = (t) => (e) => typeof e === t, { isArray: $ } = Array, X = dt("undefined"), $t = B("ArrayBuffer"), Me = 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); +}, Fe = B("Date"), De = B("File"), qe = B("Blob"), Ie = B("FileList"), We = B("URLSearchParams"), [ze, $e, He, Je] = ["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); + let n, s; + if (typeof t != "object" && (t = [t]), $(t)) for (n = 0, s = t.length; n < s; n++) e.call(null, t[n], n, t); else { - const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), u = a.length; + const c = r ? Object.getOwnPropertyNames(t) : Object.keys(t), u = c.length; let b; - for (n = 0; n < u; n++) b = a[n], e.call(null, t[b], b, t); + for (n = 0; n < u; n++) b = c[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; + let n, s = r.length; + for (; s-- > 0; ) if (n = r[s], 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); +const be = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Vt = (t) => !X(t) && t !== be, Ve = (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 Ke = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ge = B("RegExp"), Gt = (t, e) => { const r = Object.getOwnPropertyDescriptors(t), n = {}; - Q(r, (i, a) => { + Q(r, (s, c) => { let u; - (u = e(i, a, t)) !== !1 && (n[a] = u || i); + (u = e(s, c, t)) !== !1 && (n[c] = u || s); }), 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) { +}, mt = "abcdefghijklmnopqrstuvwxyz", Xt = "0123456789", Qt = { DIGIT: Xt, ALPHA: mt, ALPHA_DIGIT: mt + mt.toUpperCase() + Xt }, Xe = 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; @@ -46,23 +46,23 @@ const Ve = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.ca }, 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; +}, isString: Me, isNumber: Ht, isBoolean: (t) => t === !0 || t === !1, isObject: rt, isPlainObject: nt, isReadableStream: ze, isRequest: $e, isResponse: He, isHeaders: Je, isUndefined: X, isDate: Fe, isFile: De, isBlob: qe, isRegExp: Ge, isFunction: j, isStream: (t) => rt(t) && j(t.pipe), isURLSearchParams: We, isTypedArray: Ve, isFileList: Ie, forEach: Q, merge: function t() { + const { caseless: e } = Vt(this) && this || {}, r = {}, n = (s, c) => { + const u = e && Jt(r, c) || c; + nt(r[u]) && nt(s) ? r[u] = t(r[u], s) : nt(s) ? r[u] = t({}, s) : $(s) ? r[u] = s.slice() : r[u] = s; }; - for (let i = 0, a = arguments.length; i < a; i++) arguments[i] && Q(arguments[i], n); + for (let s = 0, c = arguments.length; s < c; s++) arguments[s] && Q(arguments[s], n); return r; -}, extend: (t, e, r, { allOwnKeys: n } = {}) => (Q(e, (i, a) => { - r && j(i) ? t[a] = me(i, r) : t[a] = i; +}, extend: (t, e, r, { allOwnKeys: n } = {}) => (Q(e, (s, c) => { + r && j(s) ? t[c] = me(s, r) : t[c] = s; }, { 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; + let s, c, 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); + for (s = Object.getOwnPropertyNames(t), c = s.length; c-- > 0; ) u = s[c], 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; @@ -82,15 +82,15 @@ const Ve = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.ca 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]); + const s = n.value; + e.call(t, s[0], s[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) => { +}, isHTMLForm: Ke, 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]; @@ -99,9 +99,9 @@ const Ve = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.ca })); }); }, toObjectSet: (t, e) => { - const r = {}, n = (i) => { - i.forEach((a) => { - r[a] = !0; + const r = {}, n = (s) => { + s.forEach((c) => { + r[c] = !0; }); }; return $(t) ? n(t) : n(String(t).split(e)), r; @@ -116,24 +116,24 @@ const Ve = B("HTMLFormElement"), Kt = (({ hasOwnProperty: t }) => (e, r) => t.ca }, 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) => { + const e = new Array(10), r = (n, s) => { if (rt(n)) { if (e.indexOf(n) >= 0) return; if (!("toJSON" in n)) { - e[i] = n; - const a = $(n) ? [] : {}; + e[s] = n; + const c = $(n) ? [] : {}; return Q(n, (u, b) => { - const m = r(u, i + 1); - !X(m) && (a[b] = m); - }), e[i] = void 0, a; + const m = r(u, s + 1); + !X(m) && (c[b] = m); + }), e[s] = void 0, c; } } 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); +}, isAsyncFn: Xe, isThenable: (t) => t && (rt(t) || j(t)) && j(t.then) && j(t.catch) }; +function O(t, e, r, n, s) { + 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), s && (this.response = s); } 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 }; @@ -141,11 +141,11 @@ v.inherits(O, Error, { toJSON: function() { 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) => { +}), Object.defineProperties(O, Zt), Object.defineProperty(Yt, "isAxiosError", { value: !0 }), O.from = (t, e, r, n, s, c) => { 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; + }, (b) => b !== "isAxiosError"), O.call(u, t.message, e, r, n, s), u.cause = t, u.name = t.name, c && Object.assign(u, c), u; }; function bt(t) { return v.isPlainObject(t) || v.isArray(t); @@ -154,11 +154,11 @@ 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; + return t ? t.concat(e).map(function(n, s) { + return n = we(n), !r && s ? "[" + n + "]" : n; }).join(r ? "." : "") : e; } -const Xe = v.toFlatObject(v, {}, null, function(t) { +const Qe = v.toFlatObject(v, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function lt(t, e, r) { @@ -166,8 +166,8 @@ function lt(t, e, r) { 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"); + })).metaTokens, s = r.visitor || g, c = r.dots, u = r.indexes, b = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e); + if (!v.isFunction(s)) throw new TypeError("visitor must be a function"); function m(w) { if (w === null) return ""; if (v.isDate(w)) return w.toISOString(); @@ -180,20 +180,20 @@ function lt(t, e, r) { 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)); + }(w) || (v.isFileList(w) || v.endsWith(A, "[]")) && (l = v.toArray(w))) return A = we(A), l.forEach(function(o, a) { + !v.isUndefined(o) && o !== null && e.append(u === !0 ? te([A], a, c) : u === null ? A : A + "[]", m(o)); }), !1; } - return !!bt(w) || (e.append(te(h, A, a), m(w)), !1); + return !!bt(w) || (e.append(te(h, A, c), m(w)), !1); } - const s = [], y = Object.assign(Xe, { defaultVisitor: g, convertValue: m, isVisitable: bt }); + const i = [], y = Object.assign(Qe, { 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(); + if (i.indexOf(A) !== -1) throw Error("Circular reference detected in " + h.join(".")); + i.push(A), v.forEach(A, function(l, o) { + (!(v.isUndefined(l) || l === null) && s.call(e, l, v.isString(o) ? o.trim() : o, h, y)) === !0 && w(l, h ? h.concat(o) : [o]); + }), i.pop(); } }(t), e; } @@ -207,16 +207,16 @@ function Dt(t, e) { this._pairs = [], t && lt(t, this, e); } const re = Dt.prototype; -function Qe(t) { +function Ye(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 n = r && r.encode || Ye, s = r && r.serialize; + let c; + if (c = s ? s(e, r) : v.isURLSearchParams(e) ? e.toString() : new Dt(e, r).toString(n), c) { const u = t.indexOf("#"); - u !== -1 && (t = t.slice(0, u)), t += (t.indexOf("?") === -1 ? "?" : "&") + a; + u !== -1 && (t = t.slice(0, u)), t += (t.indexOf("?") === -1 ? "?" : "&") + c; } return t; } @@ -249,52 +249,52 @@ class ne { }); } } -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); +const Ae = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Ze = { 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", tr = (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 }; +const er = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rr = qt && window.location.href || "http://localhost", U = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: qt, hasStandardBrowserEnv: tr, hasStandardBrowserWebWorkerEnv: er, origin: rr }, Symbol.toStringTag, { value: "Module" })), ...Ze }; function Ee(t) { - function e(r, n, i, a) { - let u = r[a++]; + function e(r, n, s, c) { + let u = r[c++]; 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); + const b = Number.isFinite(+u), m = c >= r.length; + return u = !u && v.isArray(s) ? s.length : u, m ? (v.hasOwnProp(s, u) ? s[u] = [s[u], n] : s[u] = n, !b) : (s[u] && v.isObject(s[u]) || (s[u] = []), e(r, n, s[u], c) && v.isArray(s[u]) && (s[u] = function(g) { + const i = {}, 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); + for (w = 0; w < A; w++) h = y[w], i[h] = g[h]; + return i; + }(s[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); + return v.forEachEntry(t, (n, s) => { + e(function(c) { + return v.matchAll(/\w+|\[(\w*)]/g, c).map((u) => u[0] === "[]" ? "" : u[1] || u[0]); + }(n), s, 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; + const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, s = v.isObject(t); + if (s && 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) { + let c; + if (s) { 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 lt(u, new U.classes.URLSearchParams(), Object.assign({ visitor: function(m, g, i, 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) { + if ((c = 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 lt(c ? { "files[]": t } : t, u && new u(), this.formSerializer); } } - return i || n ? (e.setContentType("application/json", !1), function(u, b, m) { + return s || 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) { @@ -306,12 +306,12 @@ const tt = { transitional: Ae, adapter: ["xhr", "http", "fetch"], transformReque 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; + const s = !(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; + } catch (c) { + if (s) + throw c.name === "SyntaxError" ? O.from(c, O.ERR_BAD_RESPONSE, this, null, this.response) : c; } } return t; @@ -321,56 +321,56 @@ const tt = { transitional: Ae, adapter: ["xhr", "http", "fetch"], transformReque 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"); +const nr = 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); +function wt(t, e, r, n, s) { + return v.isFunction(n) ? n.call(this, e, r) : (s && (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 s = this; + function c(b, m, g) { + const i = G(m); + if (!i) throw new Error("header name must be a non-empty string"); + const y = v.findKey(s, i); + (!y || s[y] === void 0 || g === !0 || g === void 0 && s[y] !== !1) && (s[y || m] = ot(b)); } - const u = (b, m) => v.forEach(b, (g, s) => a(g, s, m)); + const u = (b, m) => v.forEach(b, (g, i) => c(g, i, 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; + let g, i, 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); + y = w.indexOf(":"), g = w.substring(0, y).trim().toLowerCase(), i = w.substring(y + 1).trim(), !g || m[g] && nr[g] || (g === "set-cookie" ? m[g] ? m[g].push(i) : m[g] = [i] : m[g] = m[g] ? m[g] + ", " + i : i); }), 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); + else if (v.isHeaders(e)) for (const [b, m] of e.entries()) c(m, b, n); + else e != null && c(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 s = this[n]; + if (!r) return s; + if (r === !0) return function(c) { const u = /* @__PURE__ */ Object.create(null), b = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let m; - for (; m = b.exec(a); ) u[m[1]] = m[2]; + for (; m = b.exec(c); ) 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); + }(s); + if (v.isFunction(r)) return r.call(this, s, n); + if (v.isRegExp(r)) return r.exec(s); throw new TypeError("parser must be boolean|regexp|function"); } } @@ -384,33 +384,33 @@ class N { } delete(e, r) { const n = this; - let i = !1; - function a(u) { + let s = !1; + function c(u) { if (u = G(u)) { const b = v.findKey(n, u); - !b || r && !wt(0, n[b], b, r) || (delete n[b], i = !0); + !b || r && !wt(0, n[b], b, r) || (delete n[b], s = !0); } } - return v.isArray(e) ? e.forEach(a) : a(e), i; + return v.isArray(e) ? e.forEach(c) : c(e), s; } clear(e) { const r = Object.keys(this); - let n = r.length, i = !1; + let n = r.length, s = !1; for (; n--; ) { - const a = r[n]; - e && !wt(0, this[a], a, e, !0) || (delete this[a], i = !0); + const c = r[n]; + e && !wt(0, this[c], c, e, !0) || (delete this[c], s = !0); } - return i; + return s; } 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]; + return v.forEach(this, (s, c) => { + const u = v.findKey(n, c); + if (u) return r[u] = ot(s), void delete r[c]; 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; + return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (g, i, y) => i.toUpperCase() + y); + }(c) : String(c).trim(); + b !== c && delete r[c], r[b] = ot(s), n[b] = !0; }), this; } concat(...e) { @@ -418,8 +418,8 @@ class N { } 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); + return v.forEach(this, (n, s) => { + n != null && n !== !1 && (r[s] = e && v.isArray(n) ? n.join(", ") : n); }), r; } [Symbol.iterator]() { @@ -437,30 +437,30 @@ class N { } static concat(e, ...r) { const n = new this(e); - return r.forEach((i) => n.set(i)), n; + return r.forEach((s) => n.set(s)), n; } static accessor(e) { const r = (this[se] = this[se] = { accessors: {} }).accessors, n = this.prototype; - function i(a) { - const u = G(a); + function s(c) { + const u = G(c); 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); + ["get", "set", "has"].forEach((i) => { + Object.defineProperty(b, i + g, { value: function(y, w, A) { + return this[i].call(this, m, y, w, A); }, configurable: !0 }); }); - }(n, a), r[u] = !0); + }(n, c), r[u] = !0); } - return v.isArray(e) ? e.forEach(i) : i(e), this; + return v.isArray(e) ? e.forEach(s) : s(e), this; } } function vt(t, e) { - const r = this || tt, n = e || r, i = N.from(n.headers); - let a = n.data; + const r = this || tt, n = e || r, s = N.from(n.headers); + let c = n.data; return v.forEach(t, function(u) { - a = u.call(r, a, i.normalize(), e ? e.status : void 0); - }), i.normalize(), a; + c = u.call(r, c, s.normalize(), e ? e.status : void 0); + }), s.normalize(), c; } function Se(t) { return !(!t || !t.__CANCEL__); @@ -480,51 +480,51 @@ N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User }), 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; + const s = function(c, u) { + c = c || 10; + const b = new Array(c), m = new Array(c); + let g, i = 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; + g || (g = A), b[i] = w, m[i] = 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; + for (; l !== i; ) o += b[l++], l %= c; + if (i = (i + 1) % c, i === y && (y = (y + 1) % c), A - g < u) return; + const a = h && A - h; + return a ? Math.round(1e3 * o / a) : void 0; }; }(50, 250); - return function(a, u) { + return function(c, 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))); + const i = this === !0, y = Date.now(); + if (i || y - b > m) return g && (clearTimeout(g), g = null), b = y, c.apply(null, arguments); + g || (g = setTimeout(() => (g = null, b = Date.now(), c.apply(null, arguments)), m - (y - b))); }; - }((a) => { - const u = a.loaded, b = a.lengthComputable ? a.total : void 0, m = u - n, g = i(m); + }((c) => { + const u = c.loaded, b = c.lengthComputable ? c.total : void 0, m = u - n, g = s(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); + const i = { 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: c, lengthComputable: b != null }; + i[e ? "download" : "upload"] = !0, t(i); }, r); -}, nr = U.hasStandardBrowserEnv ? function() { +}, or = 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 }; + function n(s) { + let c = s; + return t && (e.setAttribute("href", c), c = e.href), e.setAttribute("href", c), { 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; + return r = n(window.location.href), function(s) { + const c = v.isString(s) ? n(s) : s; + return c.protocol === r.protocol && c.host === r.host; }; }() : function() { return !0; -}, or = U.hasStandardBrowserEnv ? { write(t, e, r, n, i, a) { +}, sr = U.hasStandardBrowserEnv ? { write(t, e, r, n, s, c) { 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("; "); + v.isNumber(r) && u.push("expires=" + new Date(r).toGMTString()), v.isString(n) && u.push("path=" + n), v.isString(s) && u.push("domain=" + s), c === !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; @@ -542,53 +542,53 @@ 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 n(g, i, y) { + return v.isPlainObject(g) && v.isPlainObject(i) ? v.merge.call({ caseless: y }, g, i) : v.isPlainObject(i) ? v.merge({}, i) : v.isArray(i) ? i.slice() : i; } - function i(g, s, y) { - return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g, y) : n(g, s, y); + function s(g, i, y) { + return v.isUndefined(i) ? v.isUndefined(g) ? void 0 : n(void 0, g, y) : n(g, i, y); } - function a(g, s) { - if (!v.isUndefined(s)) return n(void 0, s); + function c(g, i) { + if (!v.isUndefined(i)) return n(void 0, i); } - function u(g, s) { - return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, s); + function u(g, i) { + return v.isUndefined(i) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, i); } - function b(g, s, y) { - return y in e ? n(g, s) : y in t ? n(void 0, g) : void 0; + function b(g, i, y) { + return y in e ? n(g, i) : 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) }; + const m = { url: c, method: c, data: c, 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, i) => s(ie(g), ie(i), !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); + const i = m[g] || s, y = i(t[g], e[g], g); + v.isUndefined(y) && i !== 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; + let r, { data: n, withXSRFToken: s, xsrfHeaderName: c, 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("; ")); + const [g, ...i] = r ? r.split(";").map((y) => y.trim()).filter(Boolean) : []; + b.setContentType([g || "multipart/form-data", ...i].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); + if (U.hasStandardBrowserEnv && (s && v.isFunction(s) && (s = s(e)), s || s !== !1 && or(e.url))) { + const g = c && u && sr.read(u); + g && b.set(c, g); } return e; -}, sr = typeof XMLHttpRequest < "u" && function(t) { +}, ir = 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 s = n.data; + const c = 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() { + function i() { if (!g) return; const w = N.from("getAllResponseHeaders" in g && g.getAllResponseHeaders()); Ce(function(A) { @@ -597,8 +597,8 @@ const Re = (t) => { 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.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = i : g.onreadystatechange = function() { + g && g.readyState === 4 && (g.status !== 0 || g.responseURL && g.responseURL.indexOf("file:") === 0) && setTimeout(i); }, g.onabort = function() { g && (r(new O("Request aborted", O.ECONNABORTED, n, g)), g = null); }, g.onerror = function() { @@ -607,7 +607,7 @@ const Re = (t) => { 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) { + }, s === void 0 && c.setContentType(null), "setRequestHeader" in g && v.forEach(c.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); @@ -616,52 +616,52 @@ const Re = (t) => { 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); + y && U.protocols.indexOf(y) === -1 ? r(new O("Unsupported protocol " + y + ":", O.ERR_BAD_REQUEST, t)) : g.send(s || null); }); -}, ir = (t, e) => { +}, ar = (t, e) => { let r, n = new AbortController(); - const i = function(m) { + const s = 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)); + let c = e && setTimeout(() => { + s(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 && (c && clearTimeout(c), c = null, t.forEach((m) => { + m && (m.removeEventListener ? m.removeEventListener("abort", s) : m.unsubscribe(s)); }), t = null); }; - t.forEach((m) => m && m.addEventListener && m.addEventListener("abort", i)); + t.forEach((m) => m && m.addEventListener && m.addEventListener("abort", s)); const { signal: b } = n; return b.unsubscribe = u, [b, () => { - a && clearTimeout(a), a = null; + c && clearTimeout(c), c = null; }]; -}, ar = function* (t, e) { +}, cr = 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 n, s = 0; + for (; s < r; ) n = s + e, yield t.slice(s, n), s = n; +}, ae = (t, e, r, n, s) => { + const c = async function* (b, m, g) { + for await (const i of b) yield* cr(ArrayBuffer.isView(i) ? i : await g(String(i)), m); + }(t, e, s); let u = 0; return new ReadableStream({ type: "bytes", async pull(b) { - const { done: m, value: g } = await a.next(); + const { done: m, value: g } = await c.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 }); + let i = g.byteLength; + r && r(u += i), b.enqueue(new Uint8Array(g)); + }, cancel: (b) => (n(b), c.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 && (() => { +const ur = Te && (() => { let t = !1; const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() { return t = !0, "half"; @@ -679,25 +679,25 @@ pt && (le = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream" throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, r); }); })); -const ur = async (t, e) => { +const lr = 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); +}, xe = { http: null, xhr: ir, fetch: pt && (async (t) => { + let { url: e, method: r, data: n, signal: s, cancelToken: c, timeout: u, onDownloadProgress: b, onUploadProgress: m, responseType: g, headers: i, 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 = () => { + let A, h, [l, o] = s || c || u ? ar([s, c], u) : []; + const a = () => { !A && setTimeout(() => { l && l.unsubscribe(); }), A = !0; }; let d; try { - if (m && cr && r !== "get" && r !== "head" && (d = await ur(s, n)) !== 0) { + if (m && ur && r !== "get" && r !== "head" && (d = await lr(i, 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.isFormData(n) && (S = T.headers.get("content-type")) && i.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 }); + v.isString(y) || (y = y ? "cors" : "omit"), h = new Request(e, { ...w, signal: l, method: r.toUpperCase(), headers: i.normalize().toJSON(), body: n, duplex: "half", withCredentials: y }); let p = await fetch(h); const f = Rt && (g === "stream" || g === "response"); if (Rt && (b || f)) { @@ -706,15 +706,15 @@ const ur = async (t, e) => { 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); + p = new Response(ae(p.body, 65536, b && ce(T, ht(b, !0)), f && a, 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) => { + return !f && a(), 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); + throw a(), 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) => { @@ -726,22 +726,22 @@ v.forEach(xe, (t, e) => { Object.defineProperty(t, "adapterName", { value: e }); } }); -const he = (t) => `- ${t}`, lr = (t) => v.isFunction(t) || t === null || t === !1, _e = (t) => { +const he = (t) => `- ${t}`, hr = (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++) { + const s = {}; + for (let c = 0; c < e; c++) { 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 (r = t[c], n = r, !hr(r) && (n = xe[(u = String(r)).toLowerCase()], n === void 0)) throw new O(`Unknown adapter '${u}'`); if (n) break; - i[u || "#" + a] = n; + s[u || "#" + c] = 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"); + const c = Object.entries(s).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 ? c.length > 1 ? `since : +` + c.map(he).join(` +`) : " " + he(c[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); } return n; }; @@ -755,7 +755,7 @@ function fe(t) { 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 = {}; +const fr = "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; @@ -763,24 +763,24 @@ const hr = "1.7.2", It = {}; }); const de = {}; It.transitional = function(t, e, r) { - function n(i, a) { - return "[Axios v1.7.2] Transitional option '" + i + "'" + a + (r ? ". " + r : ""); + function n(s, c) { + return "[Axios v1.7.2] Transitional option '" + s + "'" + c + (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); + return (s, c, u) => { + if (t === !1) throw new O(n(c, " has been removed" + (e ? " in " + e : "")), O.ERR_DEPRECATED); + return e && !de[c] && (de[c] = !0, console.warn(n(c, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(s, c, 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]; + let s = n.length; + for (; s-- > 0; ) { + const c = n[s], u = e[c]; 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); + const b = t[c], m = b === void 0 || u(b, c, t); + if (m !== !0) throw new O("option " + c + " must be " + m, O.ERR_BAD_OPTION_VALUE); + } else if (r !== !0) throw new O("Unknown option " + c, O.ERR_BAD_OPTION); } }, validators: It }, F = Tt.validators; class W { @@ -792,12 +792,12 @@ class W { 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/, "") : ""; + let s; + Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error(); + const c = s.stack ? s.stack.replace(/^.+\n/, "") : ""; try { - n.stack ? a && !String(n.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (n.stack += ` -` + a) : n.stack = a; + n.stack ? c && !String(n.stack).endsWith(c.replace(/^.+\n.+\n/, "")) && (n.stack += ` +` + c) : n.stack = c; } catch { } } @@ -806,27 +806,27 @@ class W { } _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 { transitional: n, paramsSerializer: s, headers: c } = r; + n !== void 0 && Tt.assertOptions(n, { silentJSONParsing: F.transitional(F.boolean), forcedJSONParsing: F.transitional(F.boolean), clarifyTimeoutError: F.transitional(F.boolean) }, !1), s != null && (v.isFunction(s) ? r.paramsSerializer = { serialize: s } : Tt.assertOptions(s, { encode: F.function, serialize: F.function }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase(); + let u = c && v.merge(c.common, c[r.method]); + c && v.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => { + delete c[h]; + }), r.headers = N.concat(u, c); 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; + let i; 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; + for (h.unshift.apply(h, b), h.push.apply(h, g), y = h.length, i = Promise.resolve(r); w < y; ) i = i.then(h[w++], h[w++]); + return i; } y = b.length; let A = r; @@ -840,12 +840,12 @@ class W { } } try { - s = fe.call(this, A); + i = 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; + for (w = 0, y = g.length; w < y; ) i = i.then(g[w++], g[w++]); + return i; } getUri(e) { return ve(Oe((e = z(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer); @@ -857,8 +857,8 @@ v.forEach(["delete", "get", "head", "options"], function(t) { }; }), 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 })); + return function(n, s, c) { + return this.request(z(c || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: s })); }; } W.prototype[t] = e(), W.prototype[t + "Form"] = e(!0); @@ -867,25 +867,25 @@ 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; + this.promise = new Promise(function(s) { + r = s; }); const n = this; - this.promise.then((i) => { + this.promise.then((s) => { if (!n._listeners) return; - let a = n._listeners.length; - for (; a-- > 0; ) n._listeners[a](i); + let c = n._listeners.length; + for (; c-- > 0; ) n._listeners[c](s); n._listeners = null; - }), this.promise.then = (i) => { - let a; + }), this.promise.then = (s) => { + let c; const u = new Promise((b) => { - n.subscribe(b), a = b; - }).then(i); + n.subscribe(b), c = b; + }).then(s); return u.cancel = function() { - n.unsubscribe(a); + n.unsubscribe(c); }, u; - }, e(function(i, a, u) { - n.reason || (n.reason = new K(i, a, u), r(n.reason)); + }, e(function(s, c, u) { + n.reason || (n.reason = new K(s, c, u), r(n.reason)); }); } throwIfRequested() { @@ -912,11 +912,11 @@ Object.entries(xt).forEach(([t, e]) => { }); 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)); + return v.extend(n, W.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(s) { + return t(z(e, s)); }, n; }(tt); -_.Axios = W, _.CanceledError = K, _.CancelToken = Wt, _.isCancel = Se, _.VERSION = hr, _.toFormData = lt, _.AxiosError = O, _.Cancel = _.CanceledError, _.all = function(t) { +_.Axios = W, _.CanceledError = K, _.CancelToken = Wt, _.isCancel = Se, _.VERSION = fr, _.toFormData = lt, _.AxiosError = O, _.Cancel = _.CanceledError, _.all = function(t) { return Promise.all(t); }, _.spread = function(t) { return function(e) { @@ -925,41 +925,36 @@ _.Axios = W, _.CanceledError = K, _.CancelToken = Wt, _.isCancel = Se, _.VERSION }, _.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) { +var dr = Object.defineProperty, Pe = (t) => { + throw TypeError(t); +}, x = (t, e, r) => ((n, s, c) => s in n ? dr(n, s, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[s] = c)(t, typeof e != "symbol" ? e + "" : e, r), ke = (t, e, r) => e.has(t) || Pe("Cannot " + r), C = (t, e, r) => (ke(t, e, "read from private field"), r ? r.call(t) : e.get(t)), P = (t, e, r) => e.has(t) ? Pe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), L = (t, e, r, n) => (ke(t, e, "write to private field"), e.set(t, r), r); +function pr(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -var pe, ke = {}; -pe = ke, function(t, e) { +var pe, Ne = {}; +pe = Ne, 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) { + var t = function(c) { + return typeof c != "string" ? c : c.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) { + }, e = function(c) { + return typeof c != "string" ? c : c.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; + }, r = function(c) { + return Number.prototype.toString.call(c, 36).toUpperCase(); + }, n = function(c) { + return parseInt(c, 36); + }, s = Array.prototype.indexOf || function(c, u) { + for (var b = u || 0, m = this.length; b < m; b++) if (this[b] === c) return b; return -1; }; - return { JSON, pack: function(a, u) { + return { JSON, pack: function(c, 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"); + b && console.log("Normalize the JSON Object"), c = typeof c == "string" ? this.JSON.parse(c) : c, b && console.log("Creating a empty dictionary"); var m = { strings: [], integers: [], floats: [] }; b && console.log("Creating the AST"); var g = function A(h) { @@ -968,21 +963,21 @@ pe = ke, function(t, e) { 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; + var a = ["@"]; + for (var d in h) h.hasOwnProperty(d) && a.push(A(h[d])); + return a; } if (o === "object") { - for (var p in c = ["$"], h) h.hasOwnProperty(p) && (c.push(A(p)), c.push(A(h[p]))); - return c; + for (var p in a = ["$"], h) h.hasOwnProperty(p) && (a.push(A(p)), a.push(A(h[p]))); + return a; } 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 === "string") return (l = s.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 = s.call(m.integers, h)) == -1 && (m.integers.push(r(h)), l = m.integers.length - 1), { type: "integers", index: l }; + if (o === "number") return (l = s.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; + }(c), i = 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) { @@ -991,39 +986,39 @@ pe = ke, function(t, e) { 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; + var a = h.type, d = h.index; + if (a === "strings") return r(d); + if (a === "integers") return r(i + d); + if (a === "floats") return r(i + y + d); + if (a === "boolean") return h.index; + if (a === "null") return -3; + if (a === "undefined") return -5; + if (a === "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) { + }, unpack: function(c, u) { u = u || {}; - var b = a.split("^"); + var b = c.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])); + for (var i = 0, y = g.length; i < y; i++) m.push(e(g[i])); } - 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])); + if ((g = b[1]) !== "") for (g = g.split("|"), u.verbose && console.log("Parse the integers dictionary"), i = 0, y = g.length; i < y; i++) m.push(n(g[i])); + if ((g = b[2]) !== "") for (g = g.split("|"), u.verbose && console.log("Parse the floats dictionary"), i = 0, y = g.length; i < y; i++) m.push(parseFloat(g[i])); 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); + for (i = 0; i < h; i++) { + var l = b[3].charAt(i); l === "|" || l === "$" || l === "@" || l === "]" ? (w && (A.push(n(w)), w = ""), l !== "|" && A.push(l)) : w += l; } - var o = A.length, c = 0; + var o = A.length, a = 0; return u.verbose && console.log("Starting recursive parser"), function d() { - var p = A[c++]; + var p = A[a++]; if (u.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") { - for (var f = []; c < o; c++) { - var E = A[c]; + for (var f = []; a < o; a++) { + var E = A[a]; if (u.verbose && console.log("Read " + E + " symbol"), E === "]") return f; if (E === "@" || E === "$") f.push(d()); else switch (E) { @@ -1049,10 +1044,10 @@ pe = ke, function(t, e) { return u.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; } if (p === "$") { - for (f = {}; c < o; c++) { - var S = A[c]; + for (f = {}; a < o; a++) { + var S = A[a]; if (S === "]") return f; - if (S = S === -4 ? "" : m[S], (E = A[++c]) === "@" || E === "$") f[S] = d(); + if (S = S === -4 ? "" : m[S], (E = A[++a]) === "@" || E === "$") f[S] = d(); else switch (E) { case -1: f[S] = !0; @@ -1079,24 +1074,24 @@ pe = ke, function(t, e) { }(); } }; }); -const ge = dr(ke); +const ge = pr(Ne); 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))); + constructor(e, r, n, s, c) { + return x(this, "code", 0), x(this, "message", "操作成功"), x(this, "data", null), x(this, "url", ""), x(this, "res", ""), P(this, Y), 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), Lt.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 = s, this.res = c, 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) { +const Et = (t, e, r, n = "/", s = "") => new jt(t, e, r, n, s); +var ye = ["utf8", "utf-8", "unicode-1-1-utf-8"], je = { 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); + const s = r.split(""); + for (let c = 0; c < s.length; c++) n[c] = s[c].charCodeAt(0); return n; }; }, TextDecoder: function(t) { @@ -1106,16 +1101,16 @@ var ye = ["utf8", "utf-8", "unicode-1-1-utf-8"], Ne = { TextEncoder: function(t) 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(""))); + var s = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), c = new Array(s.length); + for (let u = 0; u < s.length; u++) c[u] = String.fromCharCode(s[u]); + return decodeURIComponent(escape(c.join(""))); } throw new TypeError("passed argument must be an array buffer view"); }; } }; -const pr = new Ne.TextEncoder("utf8"); -new Ne.TextDecoder("utf8"); -class gr { +const gr = new je.TextEncoder("utf8"); +new je.TextDecoder("utf8"); +class yr { 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(` @@ -1124,20 +1119,20 @@ class gr { 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); + if (!e || e.length === 0) return ""; + const r = new mr(this).encodeV2(e); return String.fromCharCode(...r); } decode(e) { - if (!e || e.length === 0) return new Uint8Array(); - const r = new mr(this).decode(e); + if (!e || e.length === 0) return ""; + const r = new br(this).decode(e); return new TextDecoder().decode(r); } } var it, at, J, I, Ut, M, D, V, Bt, ct; -class yr { +class mr { constructor(e) { - P(this, it, null), L(this, it, e); + P(this, it), x(this, "src", new Uint8Array()), x(this, "pos", 0), L(this, it, e); } get6bits() { let e = 7 & this.pos, r = this.pos >> 3; @@ -1146,29 +1141,31 @@ class yr { 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; + this.src = function(n) { + return gr.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; + let n = 6, s = this.get6bits(); + !(30 & ~s) && ((this.pos > 6 || s > 31) && (n = 5), s &= 31), r.push(C(this, it).encodeTable[s].charCodeAt(0)), this.pos -= n; } return r; } } it = /* @__PURE__ */ new WeakMap(); -class mr { +class br { constructor(e) { - P(this, at, null), L(this, at, e); + P(this, at), 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; + let n = r.length, s = 0, c = 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); + u === e.length - 1 ? (c |= m << s, s += Math.ceil(Math.log2(m + 1))) : 30 & ~m ? (c |= m << s, s += 6) : (c |= m << s, s += 5), s >= 8 && (n--, r[n] = 255 & c, s %= 8, c >>= 8); } - return i > 0 && (n--, r[n] = 255 & a), r.slice(n); + return s > 0 && (n--, r[n] = 255 & c), r.slice(n); } } at = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { @@ -1179,85 +1176,88 @@ at = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolv }); 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, J), P(this, I), P(this, Ut), P(this, M, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), P(this, D, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Set()), x(this, "init", (s, c, u) => { + s && L(this, Ut, s), u && L(this, J, u), c && L(this, I, new yr(c)), 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) => { + !C(this, V).size || !C(this, J) || (C(this, V).forEach((s) => C(this, ct).call(this, ...s)), C(this, V).clear()); + }), P(this, ct, (s, c, 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) => { + const { url: m, method: g, ...i } = u || {}; + C(this, J).call(this, { url: m, method: g, ...i }).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) => { + return [y.code, y.msg, y.data, m, (y == null ? void 0 : y.res) ?? ""]; + }).then((y) => { + const w = y; + return (c == "#" || g == "GET") && C(this, M)[c].set(s, w), c != "#" && g == "GET" && !b && setTimeout(() => { + C(this, M)[c].delete(s); + }, 300), w; + }).then((y) => { var w; - return (w = C(this, D).get(i)) == null ? void 0 : w.forEach((A, h, l) => { + return (w = C(this, D).get(s)) == 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) => { + C(this, M)[c].delete(s), (w = C(this, D).get(s)) == 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]; + }).finally(() => C(this, D).delete(s)); + } else C(this, V).add([s, c, u, b]); + }), x(this, "request", ({ url: s = "/", method: c = "GET", ...u }, b = !1) => { + var m, g; + s = function(o, a) { + return o.replace(new RegExp(`^${a}+|${a}+$`, "g"), ""); + }(s, "/"); + const i = c.toUpperCase(), y = function(o) { + let a = 5381; + for (let d = 0; d < o.length; d++) a = 33 * a ^ o.charCodeAt(d); + return (a >>> 0).toString(16); + }(JSON.stringify([s, i, u])), w = (m = s == null ? void 0 : s.includes) != null && m.call(s, "/_/") ? "#" : "$", { promise: A, resolve: h, reject: l } = Promise.withResolvers(); + return C(this, M)[w].has(y) ? (console.log("cache", s), h(C(this, M)[w].get(y))) : C(this, D).has(y) ? (g = C(this, D).get(y)) == null || g.push([h, l]) : (C(this, D).set(y, [[h, l]]), C(this, ct).call(this, y, w, { url: s, method: i, ...u }, b)), new Proxy(A, { get: (o, a) => (...d) => o.then((p) => Et(...p)[a](...d)).catch((p) => { + if (!(p instanceof jt)) throw p; + return typeof p[a] == "function" ? p[a](...d) : p[a]; }) }); - }), 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; + }), x(this, "get", (s, c = {}) => this.request({ url: s, method: "GET", params: c })), x(this, "post", (s, c = {}, u = {}) => this.request({ url: s, method: "POST", data: c, params: u })), x(this, "put", (s, c = {}, u = {}) => this.request({ url: s, method: "PUT", data: c, params: u })), x(this, "del", (s, c = {}, u = {}) => this.request({ url: s, method: "DELETE", data: c, params: u })), x(this, "download", (s, c) => { + }), x(this, "cache", (s, c = {}) => this.request({ url: s, method: "GET", params: c }, !0)), x(this, "list", (s, c = {}) => this.get(`/api/${s}/${this.encode(c)}`)), x(this, "getAppInfo", () => { + }), x(this, "refreshCache", (s = !1) => { + s && C(this, M)["#"].clear(), C(this, M).$.clear(); + }), x(this, "decode", (s = "", c = {}) => { + if (s === void 0 || s === "" || s === null) return c; try { if (!C(this, I)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); - const u = C(this, I).decode(i); + const u = C(this, I).decode(s); return ge.unpack(u); } catch { - return console.warn("core.decode", i), a; + return console.warn("core.decode", s), c; } - }), x(this, "encode", (i = {}) => { + }), x(this, "encode", (s = {}) => { 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)); + const c = JSON.stringify(s, (u, b) => b === void 0 ? null : b); + return C(this, I).encode(ge.pack(c)); }), 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)); +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(), Lt.onUnhandledRejection = (t) => { + var e, r, n, s, c, 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 && ((c = (s = t.reason) == null ? void 0 : s.$echoMsg) == null || c.call(s), (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: {} }; +var Ue = { exports: {} }; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */ -je.exports = function() { +Ue.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) { + function s(h, l, o) { return h < l ? l : h > o ? o : h; } - function a(h) { + function c(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; + var a; + return (a = n.positionUsing === "translate3d" ? { transform: "translate3d(" + c(h) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + c(h) + "%,0)" } : { "margin-left": c(h) + "%" }).transition = "all " + l + "ms " + o, a; } r.configure = function(h) { var l, o; @@ -1265,10 +1265,10 @@ je.exports = function() { 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; + h = s(h, n.minimum, 1), r.status = h === 1 ? null : h; + var o = r.render(!l), a = 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() { + n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), m(a, 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); @@ -1288,7 +1288,7 @@ je.exports = function() { 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(); + return l ? (typeof h != "number" && (h = (1 - l) * s(Math.random() * l, 0.1, 0.95)), l = s(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) { @@ -1297,11 +1297,11 @@ je.exports = function() { }), this) : this; }, r.render = function(h) { if (r.isRendered()) return document.getElementById("nprogress"); - s(document.documentElement, "nprogress-busy"); + i(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; + var o, a = l.querySelector(n.barSelector), d = h ? "-100" : c(r.status || 0), p = document.querySelector(n.parent); + return m(a, { transition: "all 0 linear", transform: "translate3d(" + d + "%,0,0)" }), n.showSpinner || (o = l.querySelector(n.spinnerSelector)) && A(o), p != document.body && i(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"); @@ -1328,14 +1328,14 @@ je.exports = function() { return S.toUpperCase(); }); } - function c(f) { + function a(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)); + return f = o(f), l[f] || (l[f] = a(f)); } function p(f, E, S) { E = d(E), f.style[E] = S; @@ -1349,13 +1349,13 @@ je.exports = function() { 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 i(h, l) { + var o = w(h), a = o + l; + g(o, l) || (h.className = a.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)); + var o, a = w(h); + g(h, l) && (o = a.replace(" " + l + " ", " "), h.className = o.substring(1, o.length - 1)); } function w(h) { return (" " + (h.className || "") + " ").replace(/\s+/gi, " "); @@ -1365,163 +1365,163 @@ je.exports = function() { } return r; }(); -const wr = zt(je.exports); +const wr = zt(Ue.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 e(i, y) { + return (65535 & i) * y + (((i >>> 16) * y & 65535) << 16); } - function r(s, y) { - return s << y | s >>> 32 - y; + function r(i, y) { + return i << y | i >>> 32 - y; } - function n(s) { - return s = e(s ^= s >>> 16, 2246822507), s = e(s ^= s >>> 13, 3266489909), s ^= s >>> 16; + function n(i) { + return i = e(i ^= i >>> 16, 2246822507), i = e(i ^= i >>> 13, 3266489909), i ^= i >>> 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]]; + function s(i, y) { + i = [i[0] >>> 16, 65535 & i[0], i[1] >>> 16, 65535 & i[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]]; + return w[3] += i[3] + y[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += i[2] + y[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += i[1] + y[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += i[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]]; + function c(i, y) { + i = [i[0] >>> 16, 65535 & i[0], i[1] >>> 16, 65535 & i[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]]; + return w[3] += i[3] * y[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += i[2] * y[3], w[1] += w[2] >>> 16, w[2] &= 65535, w[2] += i[3] * y[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += i[1] * y[3], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += i[2] * y[2], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += i[3] * y[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += i[0] * y[3] + i[1] * y[2] + i[2] * y[1] + i[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 u(i, y) { + return (y %= 64) == 32 ? [i[1], i[0]] : y < 32 ? [i[0] << y | i[1] >>> 32 - y, i[1] << y | i[0] >>> 32 - y] : (y -= 32, [i[1] << y | i[0] >>> 32 - y, i[0] << y | i[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 b(i, y) { + return (y %= 64) == 0 ? i : y < 32 ? [i[0] << y | i[1] >>> 32 - y, i[1] << y] : [i[1] << y - 32, 0]; } - function m(s, y) { - return [s[0] ^ y[0], s[1] ^ y[1]]; + function m(i, y) { + return [i[0] ^ y[0], i[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]); + function g(i) { + return i = m(i, [0, i[0] >>> 1]), i = m(i = c(i, [4283543511, 3981806797]), [0, i[0] >>> 1]), i = m(i = c(i, [3301882366, 444984403]), [0, i[0] >>> 1]); } - t.x86.hash32 = function(s, y) { + t.x86.hash32 = function(i, 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; + for (var w = (i = i || "").length % 4, A = i.length - w, h = y, l = 0, o = 3432918353, a = 461845907, d = 0; d < A; d += 4) l = e(l = 255 & i.charCodeAt(d) | (255 & i.charCodeAt(d + 1)) << 8 | (255 & i.charCodeAt(d + 2)) << 16 | (255 & i.charCodeAt(d + 3)) << 24, o), l = e(l = r(l, 15), a), h = e(h = r(h ^= l, 13), 5) + 3864292196; switch (l = 0, w) { case 3: - l ^= (255 & s.charCodeAt(d + 2)) << 16; + l ^= (255 & i.charCodeAt(d + 2)) << 16; case 2: - l ^= (255 & s.charCodeAt(d + 1)) << 8; + l ^= (255 & i.charCodeAt(d + 1)) << 8; case 1: - l = e(l ^= 255 & s.charCodeAt(d), o), h ^= l = e(l = r(l, 15), c); + l = e(l ^= 255 & i.charCodeAt(d), o), h ^= l = e(l = r(l, 15), a); } - return (h = n(h ^= s.length)) >>> 0; - }, t.x86.hash128 = function(s, y) { + return (h = n(h ^= i.length)) >>> 0; + }, t.x86.hash128 = function(i, 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; + for (var w = (i = i || "").length % 16, A = i.length - w, h = y, l = y, o = y, a = 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 & i.charCodeAt(R) | (255 & i.charCodeAt(R + 1)) << 8 | (255 & i.charCodeAt(R + 2)) << 16 | (255 & i.charCodeAt(R + 3)) << 24, p = 255 & i.charCodeAt(R + 4) | (255 & i.charCodeAt(R + 5)) << 8 | (255 & i.charCodeAt(R + 6)) << 16 | (255 & i.charCodeAt(R + 7)) << 24, f = 255 & i.charCodeAt(R + 8) | (255 & i.charCodeAt(R + 9)) << 8 | (255 & i.charCodeAt(R + 10)) << 16 | (255 & i.charCodeAt(R + 11)) << 24, E = 255 & i.charCodeAt(R + 12) | (255 & i.charCodeAt(R + 13)) << 8 | (255 & i.charCodeAt(R + 14)) << 16 | (255 & i.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 += a, 5) + 2530024501, E = r(E = e(E, et), 18), a = r(a ^= E = e(E, S), 13), a = e(a += h, 5) + 850148119; switch (d = 0, p = 0, f = 0, E = 0, w) { case 15: - E ^= s.charCodeAt(R + 14) << 16; + E ^= i.charCodeAt(R + 14) << 16; case 14: - E ^= s.charCodeAt(R + 13) << 8; + E ^= i.charCodeAt(R + 13) << 8; case 13: - E = e(E ^= s.charCodeAt(R + 12), et), c ^= E = e(E = r(E, 18), S); + E = e(E ^= i.charCodeAt(R + 12), et), a ^= E = e(E = r(E, 18), S); case 12: - f ^= s.charCodeAt(R + 11) << 24; + f ^= i.charCodeAt(R + 11) << 24; case 11: - f ^= s.charCodeAt(R + 10) << 16; + f ^= i.charCodeAt(R + 10) << 16; case 10: - f ^= s.charCodeAt(R + 9) << 8; + f ^= i.charCodeAt(R + 9) << 8; case 9: - f = e(f ^= s.charCodeAt(R + 8), k), o ^= f = e(f = r(f, 17), et); + f = e(f ^= i.charCodeAt(R + 8), k), o ^= f = e(f = r(f, 17), et); case 8: - p ^= s.charCodeAt(R + 7) << 24; + p ^= i.charCodeAt(R + 7) << 24; case 7: - p ^= s.charCodeAt(R + 6) << 16; + p ^= i.charCodeAt(R + 6) << 16; case 6: - p ^= s.charCodeAt(R + 5) << 8; + p ^= i.charCodeAt(R + 5) << 8; case 5: - p = e(p ^= s.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), k); + p = e(p ^= i.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), k); case 4: - d ^= s.charCodeAt(R + 3) << 24; + d ^= i.charCodeAt(R + 3) << 24; case 3: - d ^= s.charCodeAt(R + 2) << 16; + d ^= i.charCodeAt(R + 2) << 16; case 2: - d ^= s.charCodeAt(R + 1) << 8; + d ^= i.charCodeAt(R + 1) << 8; case 1: - d = e(d ^= s.charCodeAt(R), S), h ^= d = e(d = r(d, 15), T); + d = e(d ^= i.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) { + return h ^= i.length, h += l ^= i.length, h += o ^= i.length, l += h += a ^= i.length, o += h, a += h, h = n(h), h += l = n(l), h += o = n(o), l += h += a = n(a), o += h, a += h, ("00000000" + (h >>> 0).toString(16)).slice(-8) + ("00000000" + (l >>> 0).toString(16)).slice(-8) + ("00000000" + (o >>> 0).toString(16)).slice(-8) + ("00000000" + (a >>> 0).toString(16)).slice(-8); + }, t.x64.hash128 = function(i, 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) { + for (var w = (i = i || "").length % 16, A = i.length - w, h = [0, y], l = [0, y], o = [0, 0], a = [0, 0], d = [2277735313, 289559509], p = [1291169091, 658871167], f = 0; f < A; f += 16) o = [255 & i.charCodeAt(f + 4) | (255 & i.charCodeAt(f + 5)) << 8 | (255 & i.charCodeAt(f + 6)) << 16 | (255 & i.charCodeAt(f + 7)) << 24, 255 & i.charCodeAt(f) | (255 & i.charCodeAt(f + 1)) << 8 | (255 & i.charCodeAt(f + 2)) << 16 | (255 & i.charCodeAt(f + 3)) << 24], a = [255 & i.charCodeAt(f + 12) | (255 & i.charCodeAt(f + 13)) << 8 | (255 & i.charCodeAt(f + 14)) << 16 | (255 & i.charCodeAt(f + 15)) << 24, 255 & i.charCodeAt(f + 8) | (255 & i.charCodeAt(f + 9)) << 8 | (255 & i.charCodeAt(f + 10)) << 16 | (255 & i.charCodeAt(f + 11)) << 24], o = u(o = c(o, d), 31), h = s(h = u(h = m(h, o = c(o, p)), 27), l), h = s(c(h, [0, 5]), [0, 1390208809]), a = u(a = c(a, p), 33), l = s(l = u(l = m(l, a = c(a, d)), 31), h), l = s(c(l, [0, 5]), [0, 944331445]); + switch (o = [0, 0], a = [0, 0], w) { case 15: - c = m(c, b([0, s.charCodeAt(f + 14)], 48)); + a = m(a, b([0, i.charCodeAt(f + 14)], 48)); case 14: - c = m(c, b([0, s.charCodeAt(f + 13)], 40)); + a = m(a, b([0, i.charCodeAt(f + 13)], 40)); case 13: - c = m(c, b([0, s.charCodeAt(f + 12)], 32)); + a = m(a, b([0, i.charCodeAt(f + 12)], 32)); case 12: - c = m(c, b([0, s.charCodeAt(f + 11)], 24)); + a = m(a, b([0, i.charCodeAt(f + 11)], 24)); case 11: - c = m(c, b([0, s.charCodeAt(f + 10)], 16)); + a = m(a, b([0, i.charCodeAt(f + 10)], 16)); case 10: - c = m(c, b([0, s.charCodeAt(f + 9)], 8)); + a = m(a, b([0, i.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)); + a = c(a = m(a, [0, i.charCodeAt(f + 8)]), p), l = m(l, a = c(a = u(a, 33), d)); case 8: - o = m(o, b([0, s.charCodeAt(f + 7)], 56)); + o = m(o, b([0, i.charCodeAt(f + 7)], 56)); case 7: - o = m(o, b([0, s.charCodeAt(f + 6)], 48)); + o = m(o, b([0, i.charCodeAt(f + 6)], 48)); case 6: - o = m(o, b([0, s.charCodeAt(f + 5)], 40)); + o = m(o, b([0, i.charCodeAt(f + 5)], 40)); case 5: - o = m(o, b([0, s.charCodeAt(f + 4)], 32)); + o = m(o, b([0, i.charCodeAt(f + 4)], 32)); case 4: - o = m(o, b([0, s.charCodeAt(f + 3)], 24)); + o = m(o, b([0, i.charCodeAt(f + 3)], 24)); case 3: - o = m(o, b([0, s.charCodeAt(f + 2)], 16)); + o = m(o, b([0, i.charCodeAt(f + 2)], 16)); case 2: - o = m(o, b([0, s.charCodeAt(f + 1)], 8)); + o = m(o, b([0, i.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)); + o = c(o = m(o, [0, i.charCodeAt(f)]), d), h = m(h, o = c(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); + return h = s(h = m(h, [0, i.length]), l = m(l, [0, i.length])), l = s(l, h), h = s(h = g(h), l = g(l)), l = s(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 Be = { exports: {} }; +Be.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; + var a = l[0], d = l[1], p = l[2], f = l[3]; + d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & p | ~d & f) + o[0] - 680876936 | 0) << 7 | a >>> 25) + d | 0) & d | ~a & p) + o[1] - 389564586 | 0) << 12 | f >>> 20) + a | 0) & a | ~f & d) + o[2] + 606105819 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & a) + o[3] - 1044525330 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & p | ~d & f) + o[4] - 176418897 | 0) << 7 | a >>> 25) + d | 0) & d | ~a & p) + o[5] + 1200080426 | 0) << 12 | f >>> 20) + a | 0) & a | ~f & d) + o[6] - 1473231341 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & a) + o[7] - 45705983 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & p | ~d & f) + o[8] + 1770035416 | 0) << 7 | a >>> 25) + d | 0) & d | ~a & p) + o[9] - 1958414417 | 0) << 12 | f >>> 20) + a | 0) & a | ~f & d) + o[10] - 42063 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & a) + o[11] - 1990404162 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & p | ~d & f) + o[12] + 1804603682 | 0) << 7 | a >>> 25) + d | 0) & d | ~a & p) + o[13] - 40341101 | 0) << 12 | f >>> 20) + a | 0) & a | ~f & d) + o[14] - 1502002290 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & a) + o[15] + 1236535329 | 0) << 22 | d >>> 10) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & f | p & ~f) + o[1] - 165796510 | 0) << 5 | a >>> 27) + d | 0) & p | d & ~p) + o[6] - 1069501632 | 0) << 9 | f >>> 23) + a | 0) & d | a & ~d) + o[11] + 643717713 | 0) << 14 | p >>> 18) + f | 0) & a | f & ~a) + o[0] - 373897302 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & f | p & ~f) + o[5] - 701558691 | 0) << 5 | a >>> 27) + d | 0) & p | d & ~p) + o[10] + 38016083 | 0) << 9 | f >>> 23) + a | 0) & d | a & ~d) + o[15] - 660478335 | 0) << 14 | p >>> 18) + f | 0) & a | f & ~a) + o[4] - 405537848 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & f | p & ~f) + o[9] + 568446438 | 0) << 5 | a >>> 27) + d | 0) & p | d & ~p) + o[14] - 1019803690 | 0) << 9 | f >>> 23) + a | 0) & d | a & ~d) + o[3] - 187363961 | 0) << 14 | p >>> 18) + f | 0) & a | f & ~a) + o[8] + 1163531501 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d & f | p & ~f) + o[13] - 1444681467 | 0) << 5 | a >>> 27) + d | 0) & p | d & ~p) + o[2] - 51403784 | 0) << 9 | f >>> 23) + a | 0) & d | a & ~d) + o[7] + 1735328473 | 0) << 14 | p >>> 18) + f | 0) & a | f & ~a) + o[12] - 1926607734 | 0) << 20 | d >>> 12) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d ^ p ^ f) + o[5] - 378558 | 0) << 4 | a >>> 28) + d | 0) ^ d ^ p) + o[8] - 2022574463 | 0) << 11 | f >>> 21) + a | 0) ^ a ^ d) + o[11] + 1839030562 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ a) + o[14] - 35309556 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d ^ p ^ f) + o[1] - 1530992060 | 0) << 4 | a >>> 28) + d | 0) ^ d ^ p) + o[4] + 1272893353 | 0) << 11 | f >>> 21) + a | 0) ^ a ^ d) + o[7] - 155497632 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ a) + o[10] - 1094730640 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d ^ p ^ f) + o[13] + 681279174 | 0) << 4 | a >>> 28) + d | 0) ^ d ^ p) + o[0] - 358537222 | 0) << 11 | f >>> 21) + a | 0) ^ a ^ d) + o[3] - 722521979 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ a) + o[6] + 76029189 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((p = ((p += ((f = ((f += ((a = ((a += (d ^ p ^ f) + o[9] - 640364487 | 0) << 4 | a >>> 28) + d | 0) ^ d ^ p) + o[12] - 421815835 | 0) << 11 | f >>> 21) + a | 0) ^ a ^ d) + o[15] + 530742520 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ a) + o[2] - 995338651 | 0) << 23 | d >>> 9) + p | 0, d = ((d += ((f = ((f += (d ^ ((a = ((a += (p ^ (d | ~f)) + o[0] - 198630844 | 0) << 6 | a >>> 26) + d | 0) | ~p)) + o[7] + 1126891415 | 0) << 10 | f >>> 22) + a | 0) ^ ((p = ((p += (a ^ (f | ~d)) + o[14] - 1416354905 | 0) << 15 | p >>> 17) + f | 0) | ~a)) + o[5] - 57434055 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((a = ((a += (p ^ (d | ~f)) + o[12] + 1700485571 | 0) << 6 | a >>> 26) + d | 0) | ~p)) + o[3] - 1894986606 | 0) << 10 | f >>> 22) + a | 0) ^ ((p = ((p += (a ^ (f | ~d)) + o[10] - 1051523 | 0) << 15 | p >>> 17) + f | 0) | ~a)) + o[1] - 2054922799 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((a = ((a += (p ^ (d | ~f)) + o[8] + 1873313359 | 0) << 6 | a >>> 26) + d | 0) | ~p)) + o[15] - 30611744 | 0) << 10 | f >>> 22) + a | 0) ^ ((p = ((p += (a ^ (f | ~d)) + o[6] - 1560198380 | 0) << 15 | p >>> 17) + f | 0) | ~a)) + o[13] + 1309151649 | 0) << 21 | d >>> 11) + p | 0, d = ((d += ((f = ((f += (d ^ ((a = ((a += (p ^ (d | ~f)) + o[4] - 145523070 | 0) << 6 | a >>> 26) + d | 0) | ~p)) + o[11] - 1120210379 | 0) << 10 | f >>> 22) + a | 0) ^ ((p = ((p += (a ^ (f | ~d)) + o[2] + 718787259 | 0) << 15 | p >>> 17) + f | 0) | ~a)) + o[9] - 343485551 | 0) << 21 | d >>> 11) + p | 0, l[0] = a + 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; + var o, a = []; + for (o = 0; o < 64; o += 4) a[o >> 2] = l.charCodeAt(o) + (l.charCodeAt(o + 1) << 8) + (l.charCodeAt(o + 2) << 16) + (l.charCodeAt(o + 3) << 24); + return a; } - 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 s(l) { + var o, a = []; + for (o = 0; o < 64; o += 4) a[o >> 2] = l[o] + (l[o + 1] << 8) + (l[o + 2] << 16) + (l[o + 3] << 24); + return a; } - function a(l) { - var o, c, d, p, f, E, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + function c(l) { + var o, a, 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); + for (a = (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 < a; 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); + var o, a, d, p, f, E, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (o = 64; o <= S; o += 64) r(T, s(l.subarray(o - 64, o))); + for (a = (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 < a; 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; + var o, a = ""; + for (o = 0; o < 4; o += 1) a += e[l >> 8 * o + 4 & 15] + e[l >> 8 * o & 15]; + return a; } function m(l) { var o; @@ -1531,45 +1531,45 @@ Ue.exports = function(t) { 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); + function i(l, o) { + var a, d = l.length, p = new ArrayBuffer(d), f = new Uint8Array(p); + for (a = 0; a < d; a += 1) f[a] = l.charCodeAt(a); return o ? f : p; } function y(l) { return String.fromCharCode.apply(null, new Uint8Array(l)); } - function w(l, o, c) { + function w(l, o, a) { 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); + var o, a = [], d = l.length; + for (o = 0; o < d - 1; o += 2) a.push(parseInt(l.substr(o, 2), 16)); + return String.fromCharCode.apply(String, a); } 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); + return m(c("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { + function l(o, a) { + return (o = 0 | o || 0) < 0 ? Math.max(o + a, 0) : Math.min(o, a); } - ArrayBuffer.prototype.slice = function(o, c) { + ArrayBuffer.prototype.slice = function(o, a) { 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); + return a !== t && (k = l(a, 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))); + 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; }, 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]; + var o, a, 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; + return this._finish(f, p), a = m(this._hash), l && (a = A(a)), this.reset(), a; }, h.prototype.reset = function() { return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; }, h.prototype.getState = function() { @@ -1579,41 +1579,41 @@ Ue.exports = function(t) { }, 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; + var a, 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); + a = (a = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), d = parseInt(a[2], 16), p = parseInt(a[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; + var a = m(c(l)); + return o ? A(a) : a; }, 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; + var o, a = w(this._buff.buffer, l), d = a.length; + for (this._length += l.byteLength, o = 64; o <= d; o += 64) r(this._hash, s(a.subarray(o - 64, o))); + return this._buff = o - 64 < d ? new Uint8Array(a.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]; + var o, a, 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; + return this._finish(f, p), a = m(this._hash), l && (a = A(a)), this.reset(), a; }, 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); + return l.buff = i(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; + var a = m(u(new Uint8Array(l))); + return o ? A(a) : a; }, h; }(); -const Ar = zt(Ue.exports); +const Ar = zt(Be.exports); export { vr as M, wr as N, Ar as S, - br as _, - _ as a + _ as a, + Lt as s }; diff --git a/dist/components.js b/dist/components.js index 69042c2..cd7bdf0 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { aq as s, ah as p, ar as n, as as r, ap as t } from "./common/main-D7to3RZo.js"; +import { aq as s, ah as p, ar as n, as as r, ap as t } from "./common/main-xbA_iREM.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index a02cf93..fb2cfed 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { am as s, aq as e, ar as p, as as n, an as t, ap as d, ao as r, al as u } from "./common/main-D7to3RZo.js"; +import { am as s, aq as e, ar as p, as as n, an as t, ap as d, ao as r, al as u } from "./common/main-xbA_iREM.js"; export { s as Context, e as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 975e081..2444aca 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-D7to3RZo.js"; +import { D as p } from "./common/main-xbA_iREM.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 2d2d8cd..16a9f6f 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { L as t, J as e, B as r, F as o, M as i, I as l, E as u, K as D, C as n, N as L, A as C, P as m, O as p, W as b, S as c, U as F, T as d, V as O, Q as S } from "./common/main-D7to3RZo.js"; +import { L as t, J as e, B as r, F as o, M as i, I as l, E as u, K as D, C as n, N as L, A as C, P as m, O as p, W as b, S as c, U as F, T as d, V as O, Q as S } from "./common/main-xbA_iREM.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index 12a97cb..220d824 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { p as t } from "../common/main-D7to3RZo.js"; +import { p as t } from "../common/main-xbA_iREM.js"; export { t as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 33213e0..08e3848 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { a7 as s, a9 as r, a8 as u, a6 as o, z as t, ae as m, ac as d, ad as F, ag as i, ab as g, aa as c, af as l } from "./common/main-D7to3RZo.js"; +import { a7 as s, a9 as r, a8 as u, a6 as o, z as t, ae as m, ac as d, ad as F, ag as i, ab as g, aa as c, af as l } from "./common/main-xbA_iREM.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 3144af5..ef96d98 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-D7to3RZo.js"; +import { a as o, g } from "../common/main-xbA_iREM.js"; export { o as getNormalizeWidget, g as getOptionItemByValue diff --git a/dist/grid-layout.js b/dist/grid-layout.js index cccb357..2517159 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { q as u, v as e, s as r, H as t, G as d, x as i, z as o, y, w as G } from "./common/main-D7to3RZo.js"; +import { q as u, v as e, s as r, H as t, G as d, x as i, z as o, y, w as G } from "./common/main-xbA_iREM.js"; export { u as GridLayout, e as GridLayoutFramework, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index 2ab0b88..cd0ce2f 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { l as t, o as a, n as l } from "../common/main-D7to3RZo.js"; +import { l as t, o as a, n as l } from "../common/main-xbA_iREM.js"; export { t as getBoxStyle, a as getNormalizeFields, diff --git a/dist/hooks.js b/dist/hooks.js index f16a553..0e18008 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { a3 as r, a2 as o, a4 as p, a0 as f, a1 as i, a5 as m, $ as c } from "./common/main-D7to3RZo.js"; +import { a3 as r, a2 as o, a4 as p, a0 as f, a1 as i, a5 as m, $ as c } from "./common/main-xbA_iREM.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 5bef20f..aa75065 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 { ah as a } from "./common/main-D7to3RZo.js"; +import { ah as a } from "./common/main-xbA_iREM.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index ac3adf3..71e1c11 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { aB as s, aC as e, ax as o, ay as n, at as p, az as r, aw as c, av as u, au as f, aA as l } from "./common/main-D7to3RZo.js"; +import { aB as s, aC as e, ax as o, ay as n, at as p, az as r, aw as c, av as u, au as f, aA as l } from "./common/main-xbA_iREM.js"; export { s as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index bb4f485..3684efc 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -1,4 +1,4 @@ -import { Y as t, X as e, Z as o, _ as g } from "./common/main-D7to3RZo.js"; +import { Y as t, X as e, Z as o, _ as g } from "./common/main-xbA_iREM.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index 27ce73d..43ea1b8 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-D7to3RZo.js"; +import { R as a } from "./common/main-xbA_iREM.js"; export { a as default }; diff --git a/dist/style.css b/dist/style.css index 8f2c214..2777552 100644 --- a/dist/style.css +++ b/dist/style.css @@ -1 +1 @@ -#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.react-grid-layout .react-grid-item{box-sizing:border-box!important}.monaco-editor .parameter-hints-widget{border:0px}.monaco-editor .parameter-hints-widget .signature{padding:0}.monaco-editor .suggest-widget,.monaco-editor.vs-dark .suggest-widget{border:0px}.monaco-editor .rename-box{top:0}.ant-divider:has(+.ant-form .ant-divider:first-child){display:none}:root{--padding-lg: 24px;--padding-md: 16px;--padding-sm: 12px;--padding-xs: 8px;--padding-xss: 4px;--margin-lg: 24px;--margin-md: 16px;--margin-sm: 12px;--margin-xs: 8px;--margin-xss: 4px;--border-color: #f2f2f2;--bg-color: rgba(0, 0, 0, .02)}#root{height:100vh;background-color:#f0f2f5}*::-webkit-scrollbar-thumb{background:#aaa;border-radius:5px}*::-webkit-scrollbar-thumb:hover{background:#999}*::-webkit-scrollbar-track{background-color:#ddd}*::-webkit-scrollbar-corner{background-color:#ddd}*::-webkit-scrollbar{width:5px;height:5px}.ff-container{height:100%}.ff-loading{height:100vh;width:100%;background-color:#f0f2f5;display:flex;justify-content:center;align-items:center}.ff-loading .loader{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:128px;height:80px}.ff-loading .loader .square{position:relative}.ff-loading .loader .square:nth-child(1){margin-left:0}.ff-loading .loader .square:nth-child(1) span{-webkit-animation:animsquare1 2s infinite ease-in;animation:animsquare1 2s infinite ease-in}.ff-loading .loader .square:nth-child(2){margin-left:44px}.ff-loading .loader .square:nth-child(2) span{-webkit-animation:animsquare2 2s infinite ease-in;animation:animsquare2 2s infinite ease-in}.ff-loading .loader .square:nth-child(3){margin-left:88px}.ff-loading .loader .square:nth-child(3) span{-webkit-animation:animsquare3 2s infinite ease-in;animation:animsquare3 2s infinite ease-in}.ff-loading .loader .square:nth-child(4){margin-left:132px}.ff-loading .loader .square:nth-child(4) span{-webkit-animation:animsquare4 2s infinite ease-in;animation:animsquare4 2s infinite ease-in}.ff-loading .loader .square span{position:absolute;top:0;left:20px;height:36px;width:36px;border-radius:2px;background-color:#fff}.ff-loading .loader .square span:nth-child(1){top:0;-webkit-animation-delay:0s;animation-delay:0s}.ff-loading .loader .square span:nth-child(2){top:44px;-webkit-animation-delay:.15s;animation-delay:.15s}.ff-loading .loader .square span:nth-child(3){top:88px;-webkit-animation-delay:.3s;animation-delay:.3s}@media (max-width: 550px){.ff-loading .loader{-webkit-transform:scale(.75);transform:scale(.75)}}@media (max-width: 440px){.ff-loading .loader{-webkit-transform:scale(.5);transform:scale(.5)}}@keyframes animsquare4{0%,5%,95%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}30%,70%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare3{0%,10%,90%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}35%,65%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare2{0%,15%,85%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}40%,60%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare1{0%,20%,80%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}45%,55%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}.ff-notification{position:fixed;z-index:2000;display:flex;max-height:100vh;padding:20px;align-items:flex-end;width:380px;overflow-x:hidden;overflow-y:clip;height:100vh;box-sizing:content-box;pointer-events:none;flex-direction:column;gap:24px}.ff-notification-top,.ff-notification-topLeft,.ff-notification-topRight{top:0}.ff-notification-bottom,.ff-notification-bottomRight,.ff-notification-bottomLeft{bottom:0}.ff-notification-bottomRight,.ff-notification-topRight{right:0}.ff-notification-notice{position:relative;display:block;box-sizing:border-box;line-height:1.5;width:100%}.ff-notification-notice-wrapper{z-index:2000;pointer-events:auto;position:relative;display:block;box-sizing:border-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;width:calc(100% - 40px);background-color:#fff;right:0}.ff-notification-notice-content{padding:14px 18px;display:flex;gap:8px;white-space:pre-wrap}.ff-notification-notice-content .ff-notification-icon.ff-notification-error{--bg-color: #ff4d4f}.ff-notification-notice-content .ff-notification-icon.ff-notification-success{--bg-color: #52c41a}.ff-notification-notice-content .ff-notification-icon.ff-notification-info{--bg-color: #1677ff}.ff-notification-notice-content .ff-notification-icon>*:first-child{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background-color:var(--bg-color)}.ff-notification-notice-progress{position:absolute;left:3px;right:3px;border-radius:1px;overflow:hidden;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;inline-size:100%;block-size:2px;border:0}.ff-notification-notice-progress,.ff-notification-notice-progress::-webkit-progress-bar{background-color:#0000000a}.ff-notification-notice-progress::-moz-progress-bar{background-color:#31afff}.ff-notification-notice-progress::-webkit-progress-value{background-color:#31afff}.ff-notification-fade{overflow:hidden;transition:all .3s}.ff-notification-fade-appear-prepare{pointer-events:none;opacity:0!important}.ff-notification-fade-appear-start{transform:translate(100%);opacity:0}.ff-notification-fade-appear-active{transform:translate(0);opacity:1}.ff-data-list-cell-editable:after{content:" ";display:block;position:absolute;width:0px;height:0px;bottom:0;right:0;border-style:solid;border-color:rgba(0,0,0,.45) transparent;border-width:0 0 var(--padding-xs, 8px) var(--padding-xs, 8px)}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--col-width: 200px;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-list-framework .ff-data-list-container{width:100%;height:100%;row-gap:var(--gap);display:flex;flex-direction:column}.ff-data-list-framework .ff-data-list-container .ff-data-list-content{flex:1;overflow-y:auto;padding:calc(var(--gap) / 2)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--gap);border-radius:4px;background-color:#fff;box-shadow:0 0 8px #00000014}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-container{padding:var(--gap)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f0f0;height:32px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action{text-align:center;margin:2px 0;flex:1}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action:not(:last-child){border-right:1px solid #f0f0f0}.ff-data-table-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-table-framework .ff-data-table-container{width:100%;height:100%;display:flex;flex-direction:column;row-gap:var(--gap)}.ff-data-list-filter:has(.ff-data-list-filter-actions:not(.expanded)){height:60px;overflow-y:hidden}.ff-data-list-filter .ff-data-list-filter-default-form.ff-grid-layout-form{--grid-layout-cols: 25;--grid-layout-item-margin-x: 8px;--grid-layout-item-margin-y: 16px}.ff-data-list-filter .ff-data-list-filter-actions{grid-column:span var(--itemp-span, 5) / calc(var(--grid-layout-cols, 25) + 1)}.ff-data-list-filter .ff-data-list-filter-actions:not(.expanded){grid-row:1}.ff-data-list-filter .ff-data-list-filter-actions .ff-data-list-filter-expanded-button{margin-left:8px}.ff-data-list-filter .ff-data-list-filter-actions .ant-form-item-control-input-content{display:flex;justify-content:flex-end;align-items:center;gap:8px}.ff-data-list-footer{padding-block-start:8px;display:flex;justify-content:space-between}.ff-data-list-footer .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-sider{width:var(--sider-width, 280px);overflow-y:auto;box-shadow:8px 0 4px -8px #0000000d}.ff-data-list-sider+.ff-data-list-container{width:calc(100% - var(--sider-width, 280px))}.ff-data-list-toolbar{gap:8px;display:flex;justify-content:space-between;align-items:center}.ff-data-list-toolbar .ff-data-list-title{color:#000000e0;font-weight:600;font-size:14px}.ff-data-list-toolbar .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-toolbar .ff-data-list-tabs{cursor:pointer}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab{color:#00000073}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab:hover{font-weight:600}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab.active{color:#1677ff;font-weight:600}.ff-data-list-item-operations{max-width:180px;display:flex;flex-wrap:wrap;gap:var(--margin-xss, 4px)}.ff-data-list-item-operations>.ant-btn:not(.ant-btn-circle){flex-grow:1}.ff-data-list-helper{height:100%}.ff-data-list-table{height:100%;overflow-y:hidden}.ff-data-list-table .ant-table *{scrollbar-width:auto;scrollbar-color:auto}.ff-grid-layout{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y));column-gap:var(--grid-layout-item-margin-x);row-gap:var(--grid-layout-item-margin-y)}.ff-grid-layout .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-paddin);margin:var(--grid-layout-box-margin);display:var(--grid-layout-box-display, flex);align-items:var(--grid-layout-box-align-items, center);justify-content:var(--grid-layout-box-justify-content, normal)}.ff-data-list-content{display:grid;gap:var(--gap, 8px);grid-template-columns:repeat(var(--col-num, 5),1fr);grid-auto-rows:min-content}.ff-data-list-content[style*=--col-width]{grid-template-columns:repeat(auto-fill,minmax(var(--col-width, 280px),1fr))}.ff-grid-layout-form{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y, 16px));column-gap:var(--grid-layout-item-margin-x, 8px);row-gap:var(--grid-layout-item-margin-y, 16px)}.ff-grid-layout-form .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-padding-y, 0) var(--grid-layout-box-padding-x, 0);margin:var(--grid-layout-box-margin)}.ff-iconfont{transform:scale(1.14);vertical-align:-.125em;display:inline-flex;align-items:center;justify-content:center}.ff-iconfont:not(:last-child){margin-right:8px}.ff-popover-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover-header:empty{display:none}.ff-popover-footer{padding-top:12px}.ff-button.ant-btn-link,.ff-button.ant-btn-text{width:initial;padding:0;height:auto}.ff-default.ant-btn-link{color:#000000e0}.ant-btn-link.ant-btn:not(:disabled):focus-visible{outline:initial;outline-offset:initial;transition:initial}.ff-modal-form{display:flex;flex-direction:column;gap:var(--modal-form-gap, 8px)}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave-active{transition:all .3s}.mask-motion-enter,.mask-motion-appear{opacity:0}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave{opacity:1}.mask-motion-leave-active{opacity:0}.panel-motion-left-enter-start,.panel-motion-left-appear-start,.panel-motion-left-leave-start{transition:none!important}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave-active{transition:all .3s}.panel-motion-left-enter,.panel-motion-left-appear{transform:translate(-100%)}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave{transform:translate(0)}.panel-motion-left-leave-active{transform:translate(-100%)!important}.panel-motion-right-enter-start,.panel-motion-right-appear-start,.panel-motion-right-leave-start{transition:none!important}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave-active{transition:all .3s}.panel-motion-right-enter,.panel-motion-right-appear{transform:translate(100%)}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave{transform:translate(0)}.panel-motion-right-leave-active{transform:translate(100%)!important}.panel-motion-top-enter-start,.panel-motion-top-appear-start,.panel-motion-top-leave-start{transition:none!important}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave-active{transition:all .3s}.panel-motion-top-enter,.panel-motion-top-appear{transform:translateY(-100%)}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave{transform:translateY(0)}.panel-motion-top-leave-active{transform:translateY(-100%)!important}.panel-motion-bottom-enter-start,.panel-motion-bottom-appear-start,.panel-motion-bottom-leave-start{transition:none!important}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave-active{transition:all .3s}.panel-motion-bottom-enter,.panel-motion-bottom-appear{transform:translateY(100%)}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave{transform:translateY(0)}.panel-motion-bottom-leave-active{transform:translateY(100%)!important}.ff-drawer-mask{top:0;right:0;bottom:0;left:0;position:absolute;z-index:1050;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45))}.ff-drawer{top:0;right:0;bottom:0;left:0;position:fixed;z-index:1050;pointer-events:none}.ff-drawer-close{top:14px;right:0}.ff-drawer-inline{position:absolute}.ff-drawer-left .ff-drawer-content-wrapper{inset:0 auto 0 0;box-shadow:6px 0 16px #00000014,3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.ff-drawer-right .ff-drawer-content-wrapper{inset:0 0 0 auto;box-shadow:-6px 0 16px #00000014,-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper{top:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.ff-drawer-bottom .ff-drawer-content-wrapper{bottom:0;box-shadow:0 -6px 16px #00000014,0 -3px 6px -4px #0000001f,0 -9px 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper,.ff-drawer-bottom .ff-drawer-content-wrapper{inset-inline:0}.ff-drawer-content{width:100%;height:100%;overflow:auto;background-color:var(--popup-bg-color, #fff);pointer-events:auto}.ff-drawer-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer-body{padding:8px}.ff-drawer-content-wrapper{position:absolute;z-index:1050;overflow:hidden;transition:transform .3s;max-width:100vw}.ff-drawer-content-wrapper-hidden{display:none}.ff-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45));height:100%;filter:alpha(opacity=50);z-index:1050}.ff-modal-mask-hidden{display:none}.ff-modal-fade-enter,.ff-modal-fade-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-enter.ff-modal-fade-enter-active,.ff-modal-fade-appear.ff-modal-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.ff-modal-fade-leave.ff-modal-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.ff-modal{position:relative;top:100px;width:fit-content;min-width:max(35vw,248px);padding:0;margin:0 auto}.ff-modal-close{position:absolute;top:14px;right:8px}.ff-modal-header:has(.ff-popup-title),.ff-modal-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal-footer:not(:empty){margin-top:12px}.ff-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.ff-modal-title{margin:0;font-size:14px;line-height:21px;font-weight:700}.ff-modal-content{position:relative;background-color:var(--popup-bg-color, #fff);border-radius:8px;background-clip:padding-box;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px;max-height:calc(100vh - 150px)}.ff-modal-zoom-enter,.ff-modal-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.ff-modal-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.ff-modal-zoom-enter.ff-modal-zoom-enter-active,.ff-modal-zoom-appear.ff-modal-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.ff-modal-zoom-leave.ff-modal-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}.ff-popup-close{cursor:pointer;border:0;background:transparent;font-size:24px;position:absolute;line-height:1;color:#000;opacity:.5}.ff-popup-close:disabled{pointer-events:none}.ff-popup-close:hover{opacity:.65}.ff-popup{display:flex;flex-direction:column}.ff-popup-title,.ff-popup-sub-title{display:inline}.ff-popup-title{font-size:16px;font-weight:600}.ff-popup-footer{display:flex;gap:8px;justify-content:flex-end}.ff-popup-footer:empty{display:none}.ff-popup-reserved-extras,.ff-popup-extras,.ff-popup-actions{display:flex;align-items:center;gap:8px}.ff-popup-reserved-extras:empty,.ff-popup-extras:empty,.ff-popup-actions:empty{display:none}.ff-popup-actions{margin-left:auto}.ff-popup-body{flex:1;overflow-y:auto} +#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.react-grid-layout .react-grid-item{box-sizing:border-box!important}.monaco-editor .parameter-hints-widget{border:0px}.monaco-editor .parameter-hints-widget .signature{padding:0}.monaco-editor .suggest-widget,.monaco-editor.vs-dark .suggest-widget{border:0px}.monaco-editor .rename-box{top:0}.ant-divider:has(+.ant-form .ant-divider:first-child){display:none}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#000!important;transition:background-color 9999s ease-in-out 0s}:root{--padding-lg: 24px;--padding-md: 16px;--padding-sm: 12px;--padding-xs: 8px;--padding-xss: 4px;--margin-lg: 24px;--margin-md: 16px;--margin-sm: 12px;--margin-xs: 8px;--margin-xss: 4px;--border-color: #f2f2f2;--bg-color: rgba(0, 0, 0, .02)}#root{height:100vh;background-color:#f0f2f5}*::-webkit-scrollbar-thumb{background:#aaa;border-radius:5px}*::-webkit-scrollbar-thumb:hover{background:#999}*::-webkit-scrollbar-track{background-color:#ddd}*::-webkit-scrollbar-corner{background-color:#ddd}*::-webkit-scrollbar{width:5px;height:5px}.ff-container{height:100%}.ff-loading{height:100vh;width:100%;background-color:#f0f2f5;display:flex;justify-content:center;align-items:center}.ff-loading .loader{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:128px;height:80px}.ff-loading .loader .square{position:relative}.ff-loading .loader .square:nth-child(1){margin-left:0}.ff-loading .loader .square:nth-child(1) span{-webkit-animation:animsquare1 2s infinite ease-in;animation:animsquare1 2s infinite ease-in}.ff-loading .loader .square:nth-child(2){margin-left:44px}.ff-loading .loader .square:nth-child(2) span{-webkit-animation:animsquare2 2s infinite ease-in;animation:animsquare2 2s infinite ease-in}.ff-loading .loader .square:nth-child(3){margin-left:88px}.ff-loading .loader .square:nth-child(3) span{-webkit-animation:animsquare3 2s infinite ease-in;animation:animsquare3 2s infinite ease-in}.ff-loading .loader .square:nth-child(4){margin-left:132px}.ff-loading .loader .square:nth-child(4) span{-webkit-animation:animsquare4 2s infinite ease-in;animation:animsquare4 2s infinite ease-in}.ff-loading .loader .square span{position:absolute;top:0;left:20px;height:36px;width:36px;border-radius:2px;background-color:#fff}.ff-loading .loader .square span:nth-child(1){top:0;-webkit-animation-delay:0s;animation-delay:0s}.ff-loading .loader .square span:nth-child(2){top:44px;-webkit-animation-delay:.15s;animation-delay:.15s}.ff-loading .loader .square span:nth-child(3){top:88px;-webkit-animation-delay:.3s;animation-delay:.3s}@media (max-width: 550px){.ff-loading .loader{-webkit-transform:scale(.75);transform:scale(.75)}}@media (max-width: 440px){.ff-loading .loader{-webkit-transform:scale(.5);transform:scale(.5)}}@keyframes animsquare4{0%,5%,95%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}30%,70%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare3{0%,10%,90%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}35%,65%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare2{0%,15%,85%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}40%,60%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare1{0%,20%,80%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}45%,55%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}.ff-notification{position:fixed;z-index:2000;display:flex;max-height:100vh;padding:20px;align-items:flex-end;width:380px;overflow-x:hidden;overflow-y:clip;height:100vh;box-sizing:content-box;pointer-events:none;flex-direction:column;gap:24px}.ff-notification-top,.ff-notification-topLeft,.ff-notification-topRight{top:0}.ff-notification-bottom,.ff-notification-bottomRight,.ff-notification-bottomLeft{bottom:0}.ff-notification-bottomRight,.ff-notification-topRight{right:0}.ff-notification-notice{position:relative;display:block;box-sizing:border-box;line-height:1.5;width:100%}.ff-notification-notice-wrapper{z-index:2000;pointer-events:auto;position:relative;display:block;box-sizing:border-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;width:calc(100% - 40px);background-color:#fff;right:0}.ff-notification-notice-content{padding:14px 18px;display:flex;gap:8px;white-space:pre-wrap}.ff-notification-notice-content .ff-notification-icon.ff-notification-error{--bg-color: #ff4d4f}.ff-notification-notice-content .ff-notification-icon.ff-notification-success{--bg-color: #52c41a}.ff-notification-notice-content .ff-notification-icon.ff-notification-info{--bg-color: #1677ff}.ff-notification-notice-content .ff-notification-icon>*:first-child{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background-color:var(--bg-color)}.ff-notification-notice-progress{position:absolute;left:3px;right:3px;border-radius:1px;overflow:hidden;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;inline-size:100%;block-size:2px;border:0}.ff-notification-notice-progress,.ff-notification-notice-progress::-webkit-progress-bar{background-color:#0000000a}.ff-notification-notice-progress::-moz-progress-bar{background-color:#31afff}.ff-notification-notice-progress::-webkit-progress-value{background-color:#31afff}.ff-notification-fade{overflow:hidden;transition:all .3s}.ff-notification-fade-appear-prepare{pointer-events:none;opacity:0!important}.ff-notification-fade-appear-start{transform:translate(100%);opacity:0}.ff-notification-fade-appear-active{transform:translate(0);opacity:1}.ff-data-list-cell-editable:after{content:" ";display:block;position:absolute;width:0px;height:0px;bottom:0;right:0;border-style:solid;border-color:rgba(0,0,0,.45) transparent;border-width:0 0 var(--padding-xs, 8px) var(--padding-xs, 8px)}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--col-width: 200px;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-list-framework .ff-data-list-container{width:100%;height:100%;row-gap:var(--gap);display:flex;flex-direction:column}.ff-data-list-framework .ff-data-list-container .ff-data-list-content{flex:1;overflow-y:auto;padding:calc(var(--gap) / 2)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--gap);border-radius:4px;background-color:#fff;box-shadow:0 0 8px #00000014}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-container{padding:var(--gap)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f0f0;height:32px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action{text-align:center;margin:2px 0;flex:1}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action:not(:last-child){border-right:1px solid #f0f0f0}.ff-data-table-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-table-framework .ff-data-table-container{width:100%;height:100%;display:flex;flex-direction:column;row-gap:var(--gap)}.ff-data-list-filter:has(.ff-data-list-filter-actions:not(.expanded)){height:60px;overflow-y:hidden}.ff-data-list-filter .ff-data-list-filter-default-form.ff-grid-layout-form{--grid-layout-cols: 25;--grid-layout-item-margin-x: 8px;--grid-layout-item-margin-y: 16px}.ff-data-list-filter .ff-data-list-filter-actions{grid-column:span var(--itemp-span, 5) / calc(var(--grid-layout-cols, 25) + 1)}.ff-data-list-filter .ff-data-list-filter-actions:not(.expanded){grid-row:1}.ff-data-list-filter .ff-data-list-filter-actions .ff-data-list-filter-expanded-button{margin-left:8px}.ff-data-list-filter .ff-data-list-filter-actions .ant-form-item-control-input-content{display:flex;justify-content:flex-end;align-items:center;gap:8px}.ff-data-list-footer{padding-block-start:8px;display:flex;justify-content:space-between}.ff-data-list-footer .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-sider{width:var(--sider-width, 280px);overflow-y:auto;box-shadow:8px 0 4px -8px #0000000d}.ff-data-list-sider+.ff-data-list-container{width:calc(100% - var(--sider-width, 280px))}.ff-data-list-toolbar{gap:8px;display:flex;justify-content:space-between;align-items:center}.ff-data-list-toolbar .ff-data-list-title{color:#000000e0;font-weight:600;font-size:14px}.ff-data-list-toolbar .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-toolbar .ff-data-list-tabs{cursor:pointer}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab{color:#00000073}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab:hover{font-weight:600}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab.active{color:#1677ff;font-weight:600}.ff-data-list-item-operations{max-width:180px;display:flex;flex-wrap:wrap;gap:var(--margin-xss, 4px)}.ff-data-list-item-operations>.ant-btn:not(.ant-btn-circle){flex-grow:1}.ff-data-list-helper{height:100%}.ff-data-list-table{height:100%;overflow-y:hidden}.ff-data-list-table .ant-table *{scrollbar-width:auto;scrollbar-color:auto}.ff-grid-layout{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y));column-gap:var(--grid-layout-item-margin-x);row-gap:var(--grid-layout-item-margin-y)}.ff-grid-layout .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-paddin);margin:var(--grid-layout-box-margin);display:var(--grid-layout-box-display, flex);align-items:var(--grid-layout-box-align-items, center);justify-content:var(--grid-layout-box-justify-content, normal)}.ff-data-list-content{display:grid;gap:var(--gap, 8px);grid-template-columns:repeat(var(--col-num, 5),1fr);grid-auto-rows:min-content}.ff-data-list-content[style*=--col-width]{grid-template-columns:repeat(auto-fill,minmax(var(--col-width, 280px),1fr))}.ff-grid-layout-form{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y, 16px));column-gap:var(--grid-layout-item-margin-x, 8px);row-gap:var(--grid-layout-item-margin-y, 16px)}.ff-grid-layout-form .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-padding-y, 0) var(--grid-layout-box-padding-x, 0);margin:var(--grid-layout-box-margin)}.ff-iconfont{transform:scale(1.14);vertical-align:-.125em;display:inline-flex;align-items:center;justify-content:center}.ff-iconfont:not(:last-child){margin-right:8px}.ff-popover-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover-header:empty{display:none}.ff-popover-footer{padding-top:12px}.ff-button.ant-btn-link,.ff-button.ant-btn-text{width:initial;padding:0;height:auto}.ff-default.ant-btn-link{color:#000000e0}.ant-btn-link.ant-btn:not(:disabled):focus-visible{outline:initial;outline-offset:initial;transition:initial}.ff-modal-form{display:flex;flex-direction:column;gap:var(--modal-form-gap, 8px)}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave-active{transition:all .3s}.mask-motion-enter,.mask-motion-appear{opacity:0}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave{opacity:1}.mask-motion-leave-active{opacity:0}.panel-motion-left-enter-start,.panel-motion-left-appear-start,.panel-motion-left-leave-start{transition:none!important}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave-active{transition:all .3s}.panel-motion-left-enter,.panel-motion-left-appear{transform:translate(-100%)}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave{transform:translate(0)}.panel-motion-left-leave-active{transform:translate(-100%)!important}.panel-motion-right-enter-start,.panel-motion-right-appear-start,.panel-motion-right-leave-start{transition:none!important}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave-active{transition:all .3s}.panel-motion-right-enter,.panel-motion-right-appear{transform:translate(100%)}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave{transform:translate(0)}.panel-motion-right-leave-active{transform:translate(100%)!important}.panel-motion-top-enter-start,.panel-motion-top-appear-start,.panel-motion-top-leave-start{transition:none!important}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave-active{transition:all .3s}.panel-motion-top-enter,.panel-motion-top-appear{transform:translateY(-100%)}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave{transform:translateY(0)}.panel-motion-top-leave-active{transform:translateY(-100%)!important}.panel-motion-bottom-enter-start,.panel-motion-bottom-appear-start,.panel-motion-bottom-leave-start{transition:none!important}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave-active{transition:all .3s}.panel-motion-bottom-enter,.panel-motion-bottom-appear{transform:translateY(100%)}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave{transform:translateY(0)}.panel-motion-bottom-leave-active{transform:translateY(100%)!important}.ff-drawer-mask{top:0;right:0;bottom:0;left:0;position:absolute;z-index:1050;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45))}.ff-drawer{top:0;right:0;bottom:0;left:0;position:fixed;z-index:1050;pointer-events:none}.ff-drawer-close{top:14px;right:0}.ff-drawer-inline{position:absolute}.ff-drawer-left .ff-drawer-content-wrapper{inset:0 auto 0 0;box-shadow:6px 0 16px #00000014,3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.ff-drawer-right .ff-drawer-content-wrapper{inset:0 0 0 auto;box-shadow:-6px 0 16px #00000014,-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper{top:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.ff-drawer-bottom .ff-drawer-content-wrapper{bottom:0;box-shadow:0 -6px 16px #00000014,0 -3px 6px -4px #0000001f,0 -9px 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper,.ff-drawer-bottom .ff-drawer-content-wrapper{inset-inline:0}.ff-drawer-content{width:100%;height:100%;overflow:auto;background-color:var(--popup-bg-color, #fff);pointer-events:auto}.ff-drawer-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer-body{padding:8px}.ff-drawer-content-wrapper{position:absolute;z-index:1050;overflow:hidden;transition:transform .3s;max-width:100vw}.ff-drawer-content-wrapper-hidden{display:none}.ff-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45));height:100%;filter:alpha(opacity=50);z-index:1050}.ff-modal-mask-hidden{display:none}.ff-modal-fade-enter,.ff-modal-fade-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-enter.ff-modal-fade-enter-active,.ff-modal-fade-appear.ff-modal-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.ff-modal-fade-leave.ff-modal-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.ff-modal{position:relative;top:100px;width:fit-content;min-width:max(35vw,248px);padding:0;margin:0 auto}.ff-modal-close{position:absolute;top:14px;right:8px}.ff-modal-header:has(.ff-popup-title),.ff-modal-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal-footer:not(:empty){margin-top:12px}.ff-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.ff-modal-title{margin:0;font-size:14px;line-height:21px;font-weight:700}.ff-modal-content{position:relative;background-color:var(--popup-bg-color, #fff);border-radius:8px;background-clip:padding-box;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px;max-height:calc(100vh - 150px)}.ff-modal-zoom-enter,.ff-modal-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.ff-modal-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.ff-modal-zoom-enter.ff-modal-zoom-enter-active,.ff-modal-zoom-appear.ff-modal-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.ff-modal-zoom-leave.ff-modal-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}.ff-popup-close{cursor:pointer;border:0;background:transparent;font-size:24px;position:absolute;line-height:1;color:#000;opacity:.5}.ff-popup-close:disabled{pointer-events:none}.ff-popup-close:hover{opacity:.65}.ff-popup{display:flex;flex-direction:column}.ff-popup-title,.ff-popup-sub-title{display:inline}.ff-popup-title{font-size:16px;font-weight:600}.ff-popup-footer{display:flex;gap:8px;justify-content:flex-end}.ff-popup-footer:empty{display:none}.ff-popup-reserved-extras,.ff-popup-extras,.ff-popup-actions{display:flex;align-items:center;gap:8px}.ff-popup-reserved-extras:empty,.ff-popup-extras:empty,.ff-popup-actions:empty{display:none}.ff-popup-actions{margin-left:auto}.ff-popup-body{flex:1;overflow-y:auto} diff --git a/dist/utils.js b/dist/utils.js index 1e6f468..50a7266 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,6 +1,6 @@ import "lodash"; -import { d as s, f as i, e as g, h as m, b as o, k as P, c as p, j as d, i as h, m as k, r as f, t as u, u as l } from "./common/main-D7to3RZo.js"; -import "./common/vender-FNiQWFaA.js"; +import { d as s, f as i, e as g, h as m, b as o, k as P, c as p, j as d, i as h, m as k, r as f, t as u, u as l } from "./common/main-xbA_iREM.js"; +import "./common/vender-yKcgvbX-.js"; export { s as deepSome, i as getPkgCategory, diff --git a/dist/virtual-fs.js b/dist/virtual-fs.js index bde49d8..18e8375 100644 --- a/dist/virtual-fs.js +++ b/dist/virtual-fs.js @@ -1,5 +1,5 @@ import "pathe"; -import { aD as o, aE as r } from "./common/main-D7to3RZo.js"; +import { aD as o, aE as r } from "./common/main-xbA_iREM.js"; export { o as default, r as toTreePaths diff --git a/package.json b/package.json index ab99e5b..f16b699 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.6.23", + "version": "0.6.24", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js", @@ -73,4 +73,4 @@ "rc-util/lib/hooks/useMergedState" ] } -} \ No newline at end of file +}