From 81fa1c0c0ddfbe69e009dec2c933cf4ade8cf347 Mon Sep 17 00:00:00 2001 From: what Date: Tue, 21 Apr 2026 15:23:48 +0800 Subject: [PATCH] v0.6.25 --- dist/button.js | 2 +- .../{main-xbA_iREM.js => main-czq-W-Zi.js} | 900 ++++---- dist/common/vender-BkiRbACr.js | 1864 +++++++++++++++++ dist/common/vender-yKcgvbX-.js | 1619 -------------- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 2 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/pages.js | 2 +- dist/res-ws.js | 2 +- dist/utils.js | 4 +- dist/virtual-fs.js | 2 +- package.json | 2 +- 21 files changed, 2332 insertions(+), 2089 deletions(-) rename dist/common/{main-xbA_iREM.js => main-czq-W-Zi.js} (72%) create mode 100644 dist/common/vender-BkiRbACr.js delete mode 100644 dist/common/vender-yKcgvbX-.js diff --git a/dist/button.js b/dist/button.js index ca6ee95..b2a755d 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-xbA_iREM.js"; +import { aj as s, ai as u, ak as e } from "./common/main-czq-W-Zi.js"; export { s as auth, u as default, diff --git a/dist/common/main-xbA_iREM.js b/dist/common/main-czq-W-Zi.js similarity index 72% rename from dist/common/main-xbA_iREM.js rename to dist/common/main-czq-W-Zi.js index ae7380f..6675884 100644 --- a/dist/common/main-xbA_iREM.js +++ b/dist/common/main-czq-W-Zi.js @@ -3,8 +3,8 @@ var ii = (t) => { throw TypeError(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), U = (t, e, i, n) => (ni(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i); +var N = (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)), x = (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) { U(t, e, r, i); @@ -14,32 +14,32 @@ var ri = (t, e, i, n) => ({ } }); 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 E, { useEffect as V, useState as j, useCallback as X, useRef as H, 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"; +import O from "classnames"; 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 He, a as De, s as jt, S as on } from "./vender-yKcgvbX-.js"; +import ie, { Field as Ht, FieldContext as wi } from "rc-field-form"; +import { M as Ot, N as Je, a as De, s as jt, b as on, S as sn } from "./vender-BkiRbACr.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"; -import { generatePath as wn, useInRouterContext as Ci, useParams as bn, useLocation as Cn, createBrowserRouter as kn, Navigate as $n } from "react-router-dom"; +import { Space as ln, Form as mt, Input as cn, Button as yt, Pagination as dn, Tree as un, Breadcrumb as pn, Table as gn, Empty as hn, Popover as mn, Popconfirm as fn, Tooltip as yn } from "antd"; +import { useMergedState as wn } from "rc-util"; +import { generatePath as bn, useInRouterContext as Ci, useParams as Cn, useLocation as kn, createBrowserRouter as En, Navigate as $n } from "react-router-dom"; import "rc-util/lib/hooks/useMergedState"; -import En from "rc-drawer"; -import Sn from "rc-dialog"; +import Sn from "rc-drawer"; +import xn from "rc-dialog"; var ze, Ye, Be, we, Ae, Le; class ki { constructor(e, i) { - v(this, ze, /* @__PURE__ */ new Map()); - v(this, Ye, !0); - 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) => { + x(this, ze, /* @__PURE__ */ new Map()); + x(this, Ye, !0); + x(this, Be, []); + x(this, we); + x(this, Ae, () => c(this, we)); + x(this, Le, () => Promise.resolve()); + N(this, "get", (...e) => new Promise((i, n) => { const r = JSON.stringify(e); 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(() => { @@ -61,54 +61,54 @@ class ki { } } 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: () => { +const Jr = () => h("div", { children: "Empty" }), ot = E.createContext({ ele: {}, mount: () => { }, unmount: () => { } }), G = ({ rootClassName: t, className: e, children: i, actions: n, title: r, subTitle: a, extras: o, style: s = {} }) => { - const { mount: l, unmount: u } = $.useContext(ot); - return G.Action({ children: n }), G.Title({ children: r }), G.SubTitle({ children: a }), G.Extra({ children: o }), V(() => (l("rootClassName", t), () => u(t)), [t]), h("div", { className: R("ff-container", e), style: s, children: i }); + const { mount: l, unmount: u } = E.useContext(ot); + return G.Action({ children: n }), G.Title({ children: r }), G.SubTitle({ children: a }), G.Extra({ children: o }), V(() => (l("rootClassName", t), () => u(t)), [t]), h("div", { className: O("ff-container", e), style: s, children: i }); }, ht = (t) => ({ children: e, className: i }) => { - const { mount: n, unmount: r } = $.useContext(ot); - return V(() => (e && n(t, $.createElement("div", { key: `ff-${t}`, className: R(`ff-popup-${t}`, i) }, e)), () => r(t)), [i, e]), null; + const { mount: n, unmount: r } = E.useContext(ot); + return V(() => (e && n(t, E.createElement("div", { key: `ff-${t}`, className: O(`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: 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 _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", {})] })] }) }), Yr = () => h("div", { children: "NotFound" }), Ei = ({ 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 }) }); + return typeof (t == null ? void 0 : t.type) == "string" ? t : h(ot.Provider, { value: { ele: e, mount: n, unmount: r }, children: E.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 }) => A($.Fragment, { children: [i && h("div", { className: R("ff-notification-icon", t), children: h(Ht, { type: i }) }), e] }), vn = ({}) => h(G, { children: "Confirm" }); +Ei.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"] }, Jt = ({ 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)) }) }), $i = ({ className: t, content: e, icon: i, $close: n }) => A(E.Fragment, { children: [i && h("div", { className: O("ff-notification-icon", t), children: h(Jt, { type: i }) }), e] }), vn = ({}) => h(G, { children: "Confirm" }); var Se, We; const de = class de { constructor() { - 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)); + x(this, We, /* @__PURE__ */ new Map()); + N(this, "init", (e) => U(this, We, new Map(e))); + N(this, "check", (e) => !c(this, We).has(e) || c(this, We).get(e)); if (c(de, Se)) return 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))); +Se = new WeakMap(), We = new WeakMap(), x(de, Se, null), N(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") => { +const Si = It.getInstance(), Nn = (t, e, i = "children") => { if (m.isEmpty(t)) return {}; const n = m.find(t, ["value", e]); if (!m.isEmpty(n)) return n; const r = t.length; for (let a = 0; a < r; a++) { - const { [i]: o } = t[a], s = xn(o, e, i); + const { [i]: o } = t[a], s = Nn(o, e, i); if (!m.isEmpty(s)) return s; } return {}; -}, vi = (t = "Input", e = "@pkg/ff/grid-layout-forms") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`; -var ve, Ge; +}, xi = (t = "Input", e = "@pkg/ff/grid-layout-forms") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`; +var xe, Ge; const ue = class ue { constructor() { - v(this, Ge, null); - 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); + x(this, Ge, null); + N(this, "init", (e) => U(this, Ge, e)); + N(this, "get", (e, i) => m.get(c(this, Ge), e, i)); + if (c(ue, xe)) return c(ue, xe); } }; -ve = new WeakMap(), Ge = new WeakMap(), v(ue, ve, null), P(ue, "getInstance", () => (c(ue, ve) || U(ue, ve, new ue()), c(ue, ve))); +xe = new WeakMap(), Ge = new WeakMap(), x(ue, xe, null), N(ue, "getInstance", () => (c(ue, xe) || U(ue, xe, new ue()), c(ue, xe))); 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()) { @@ -124,7 +124,7 @@ const Ve = Vt.getInstance(), si = { null2json: (t) => Object.create(), null2arra i = Array.isArray(t) ? "array" : typeof t, m.isObject(t) && (i = "json"); const n = `${i}2${e}`; return Reflect.has(si, n) ? si[n](t) : t; -}, Pn = (t) => t === null ? "null" : Array.isArray(t) ? "array" : typeof t == "object" ? "json" : typeof t == "boolean" ? "bool" : typeof t == "string" ? "string" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "float" : typeof t, st = (t = {}, e = {}, i = {}, n = "") => xi(t, (r, a) => a === "type" && r === "code") ? Pi(t, e, i, n) : Ni(t, e, n), xi = (t, e = () => !1) => m.some(t, (i) => !!m.some(i, e) || (m.isEmpty(i) || !m.isPlainObject(i) && !m.isArray(i) ? void 0 : xi(i, e))), Pi = async (t = {}, e = {}, i = {}, n = "") => { +}, Pn = (t) => t === null ? "null" : Array.isArray(t) ? "array" : typeof t == "object" ? "json" : typeof t == "boolean" ? "bool" : typeof t == "string" ? "string" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "float" : typeof t, st = (t = {}, e = {}, i = {}, n = "") => vi(t, (r, a) => a === "type" && r === "code") ? Ni(t, e, i, n) : Pi(t, e, n), vi = (t, e = () => !1) => m.some(t, (i) => !!m.some(i, e) || (m.isEmpty(i) || !m.isPlainObject(i) && !m.isArray(i) ? void 0 : vi(i, e))), Ni = async (t = {}, e = {}, i = {}, n = "") => { let r = /* @__PURE__ */ Object.create(null); for (let a in t) { let o; @@ -143,17 +143,17 @@ const Ve = Vt.getInstance(), si = { null2json: (t) => Object.create(), null2arra break; case "router": case "query": - o = $e.getPageParams(l); + o = Ee.getPageParams(l); break; case "string": o = l; } o ?? (o = u); - } else o = await Pi(t[a], e, i, n); + } else o = await Ni(t[a], e, i, n); m.set(r, a, o); } return r; -}, Ni = (t = {}, e = {}, i = "") => Object.keys(t || {}).reduce((n, r) => { +}, Pi = (t = {}, e = {}, i = "") => Object.keys(t || {}).reduce((n, r) => { if (m.isPlainObject(t[r])) { let a; if (Reflect.has(t[r], "type") && ["field", "router", "query", "string"].includes(t[r].type)) { @@ -164,34 +164,34 @@ const Ve = Vt.getInstance(), si = { null2json: (t) => Object.create(), null2arra break; case "router": case "query": - a = $e.getPageParams(s); + a = Ee.getPageParams(s); break; case "string": a = s; } a ?? (a = l); - } else a = Ni(t[r], e, i); + } else a = Pi(t[r], e, i); m.set(n, r, a); } return n; -}, {}), Ot = (t, e) => t && typeof t == "object" ? Array.isArray(t) ? t.map((i) => Ot(i, e)) : Object.keys(t).reduce((i, n) => (e[n] ? i[e[n]] = Ot(t[n], e) : i[n] = Ot(t[n], e), i), {}) : t, Jr = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => { +}, {}), Rt = (t, e) => t && typeof t == "object" ? Array.isArray(t) ? t.map((i) => Rt(i, e)) : Object.keys(t).reduce((i, n) => (e[n] ? i[e[n]] = Rt(t[n], e) : i[n] = Rt(t[n], e), i), {}) : t, Gr = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => { const e = 16 * Math.random() | 0; return (t === "x" ? e : 3 & e | 8).toString(16); -}), Yr = (t) => { +}), Xr = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){3}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.name : ""; -}, Gr = (t) => { +}, Qr = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){2}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.category : ""; -}, Xr = (t) => { +}, Zr = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.owner : ""; -}, Nn = (t, e = 32, i = "auto") => { +}, Tn = (t, e = 32, i = "auto") => { const n = Mt(t), r = i === "auto" ? "x64" : i; - if (e === 32) return Rt.x86.hash32(n).toString(); - if (e === 128) return r === "x64" ? Rt.x64.hash128(n) : Rt.x86.hash128(n); + if (e === 32) return Ot.x86.hash32(n).toString(); + if (e === 128) return r === "x64" ? Ot.x64.hash128(n) : Ot.x86.hash128(n); throw new Error("bits 只能是 32 或 128"); -}, Mt = (t) => t == null ? "null" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : typeof t == "function" ? t.toString() : Array.isArray(t) ? "[" + t.map(Mt).join(",") + "]" : typeof t == "object" ? "{" + Object.keys(t).sort().map((e) => `${e}:${Mt(t[e])}`).join(",") + "}" : String(t), Tn = () => { +}, Mt = (t) => t == null ? "null" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : typeof t == "function" ? t.toString() : Array.isArray(t) ? "[" + t.map(Mt).join(",") + "]" : typeof t == "object" ? "{" + Object.keys(t).sort().map((e) => `${e}:${Mt(t[e])}`).join(",") + "}" : String(t), On = () => { let t = 1; const e = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map(); return (...n) => n.length === 0 ? "" : n.map((r) => { @@ -206,20 +206,20 @@ const Ve = Vt.getInstance(), si = { null2json: (t) => Object.create(), null2arra } catch { return !1; } -}, Qr = (t, e = "") => { +}, ea = (t, e = "") => { if (!t || typeof t != "string" || Rn(t)) return t; let i = e; return !i && typeof window < "u" && window.location && (i = `${window.location.protocol}//${window.location.host}`), t.startsWith("/") ? i ? `${i}${t}` : t : i ? `${i}/${t}` : t; }; var Ct, Xe, Qe, kt; -const $t = class $t { +const Et = class Et { constructor(...e) { - v(this, Xe, []); - v(this, Qe, (e) => { + x(this, Xe, []); + x(this, Qe, (e) => { var i; - for (let n of e) Array.isArray(n[0]) ? c(this, Qe).call(this, n) : c(this, Xe).push(c(i = $t, Ct).call(i, n[0], n[1])); + for (let n of e) Array.isArray(n[0]) ? c(this, Qe).call(this, n) : c(this, Xe).push(c(i = Et, Ct).call(i, n[0], n[1])); }); - P(this, "toValue", async (e, i = null) => { + N(this, "toValue", async (e, i = null) => { const n = { getValue: () => e, getRecord: () => i }; let r = e; for (const a of c(this, Xe)) try { @@ -234,8 +234,8 @@ const $t = class $t { } return r; }); - 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 }) => { + N(this, "toRender", (e, i, n = null) => E.createElement(c(this, kt), { value: e, record: i }, n)); + x(this, kt, ({ value: e, record: i, children: n }) => { const [r, a] = j(n); return ct(() => { let o = !1; @@ -245,16 +245,16 @@ const $t = class $t { c(this, Qe).call(this, e); } }; -Ct = new WeakMap(), Xe = new WeakMap(), Qe = new WeakMap(), kt = new WeakMap(), v($t, Ct, m.memoize((e, i) => { +Ct = new WeakMap(), Xe = new WeakMap(), Qe = new WeakMap(), kt = new WeakMap(), x(Et, Ct, m.memoize((e, i) => { if (typeof e == "function") return e(i); if (typeof e == "string") return se.getWidgetComponent(e).then((n) => { var r; return ((r = n.default) == null ? void 0 : r.call(n, i)) || ((a) => a); }); throw new TypeError("middleware must be a string or a function"); -}, Tn())); -let wt = $t; -const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, e) => { +}, On())); +let wt = Et; +const ne = E.createContext({ listCode: "", classNames: {}, getBase62params: (t, e) => { }, onReload: () => { }, onClickCallback: () => { }, onConditionChange: () => { @@ -273,38 +273,38 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, } }), li = ({ className: t, record: e, column: i, ...n }) => { if (i != null && i.editableByJs && (i != null && i.uuid)) { const { formSetting: r = { primaryKey: "id" }, widgetSetting: a = {}, widgetContainerSetting: o = {} } = (i == null ? void 0 : i.editableByJsSetting) || {}; - return h(N.Popover, { widget: On, widgetData: { record: e, column: i }, widgetSetting: { widgetSetting: a, formSetting: r }, widgetContainerProps: { title: i != null && i.title ? `${i.title} - 编辑` : "编辑", ...o, width: (o == null ? void 0 : o.width) || 260, arrow: !0 }, children: h("td", { className: R("ff-data-list-cell-editable", t), ...n }) }); + return h(P.Popover, { widget: Fn, widgetData: { record: e, column: i }, widgetSetting: { widgetSetting: a, formSetting: r }, widgetContainerProps: { title: i != null && i.title ? `${i.title} - 编辑` : "编辑", ...o, width: (o == null ? void 0 : o.width) || 260, arrow: !0 }, children: h("td", { className: O("ff-data-list-cell-editable", t), ...n }) }); } return h("td", { className: t, ...n }); -}, On = ({ record: t, column: e, $close: i, $setting: n }) => { - 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 = () => { +}, Fn = ({ record: t, column: e, $close: i, $setting: n }) => { + const r = H(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: 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 }) => { + return ct(() => p(), [t, e == null ? void 0 : e.dataIndex, a]), h(G, { actions: A(E.Fragment, { children: [h(P, { size: "small", onClick: p, children: "重置" }), A(ln.Compact, { block: !0, children: [h(P, { size: "small", widget: i, children: "取消" }), h(P, { 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: 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: () => { + }).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(Ht, { noStyle: !0, name: ["__PROPS__"], children: () => { } })] }) }); -}, Fn = (t) => function(e) { +}, An = (t) => function(e) { return t(e, getRecord()); -}, An = (t, e = {}) => K(() => { +}, Ln = (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 }; + return n && l.push([n, r]), l.length > 0 ? (a != null && a.render && l.push([An, a.render]), { ...a, onCell: s, render: (u, d) => new wt(l).toRender(u, d, "-") }) : { ...a, onCell: s }; }); -}, [t, e]), Ln = (t = {}) => K(() => { +}, [t, e]), jn = (t = {}) => K(() => { var e; return t.body ?? (t.body = { cell: li }), (e = t.body).cell ?? (e.cell = li), t; -}, [t]), Zr = (t) => { +}, [t]), ta = (t) => { 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 = {}) => { +}, ia = (t, e = {}) => { const [i, n] = j({ dataSource: [] }); return lt(() => { let r = !1; @@ -321,8 +321,8 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, const o = i.map((s) => a(s)); return t.some(({ uuid: s }) => !s || !e.has(s) || e.get(s).some((l) => o.some((u) => u == l))); }, [t, i, e, a]); -}, jn = (t, e, i = "id", n = null) => { - const r = xt(), a = _(!1), o = _(t.dataSource), s = _(t.itemOperationsAccess); +}, In = (t, e, i = "id", n = null) => { + const r = vt(), a = H(!1), o = H(t.dataSource), s = H(t.itemOperationsAccess); return V(() => (o.current = t.dataSource, s.current = t.itemOperationsAccess, () => a.current = !1), [t.dataSource, t.itemOperationsAccess]), a.current && (t.dataSource = o.current, t.itemOperationsAccess = s.current), [t, (l = 0, u = null) => { var d, p; if (a.current = !1, l === 1) return (d = t.onReload) == null ? void 0 : d.call(t); @@ -332,11 +332,11 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, Promise.all([I.get(`/api/${e}/detail/${g}`), I.post(`/api/${e}/list-operations-access`, { ids: g })]).then(([C, k]) => { 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); + const $ = new Map(k); 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) => { + (L = $.get(F)) != null && L.some((D) => D == g) || s.current.set(F, T.filter((D) => D !== g)); + }), $.forEach((T, F) => { s.current.has(F) ? s.current.set(F, m.uniq([...s.current.get(F) || [], ...T])) : s.current.set(F, T); }); }).then(() => { @@ -344,8 +344,8 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, }); } }]; -}, In = (t, e) => { - const i = xt(), n = _(e), r = _(/* @__PURE__ */ new Map()), a = _([]), o = m.throttle((l) => { +}, Vn = (t, e) => { + const i = vt(), n = H(e), r = H(/* @__PURE__ */ new Map()), a = H([]), o = m.throttle((l) => { a.current = [], I.list(t, m.pick({ ...n.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: u, condition: d, total: p, tab: f, sider: g, page: y, pageSize: w, operationsAccess: C, dataSource: k }) => { n.current = { tab: f, condition: d, sider: g, keyword: u, total: p, pageSize: w, page: k != null && k.length ? y : 1 }, a.current = k, r.current = new Map(C), i(); }); @@ -355,80 +355,80 @@ const ne = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, }, [t, e]); 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), 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) => { +}, Mn = ({ 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: $, onClickCallback: T } = le(ne), F = m.pick(y, ["column", "colWidth", "beforeRender", "afterRender", "style"]), L = Ti(l, u, p, d), D = X((W, R, M) => h(Dn, { className: O("ff-data-list-framework-item", $.item), operations: a ? L(R) : [], data: d ? { [d]: R } : R, children: W, onClickCallback: T }), [d, p, a, T, l, u]); + return A("div", { className: O("ff-data-list-framework", e), children: [h(i.sider, { isTreeSider: k, ...S }), A("div", { className: O("ff-data-list-container", $ == null ? void 0 : $.container), children: [h(i.filter, { isConditionFormLayout: C }), h(i.toolbar, { title: f, tabs: w }), h(Qn, { ...F, ...g, primaryKey: p, itemRender: D, dataSource: n }), h(i.footer, { isPaginate: r, isOperations: o, operations: s })] })] }); +}, Dn = ({ className: t, operations: e, children: i, data: n, onClickCallback: r }) => A("div", { className: O("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(P.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())) })] }), zn = ({ 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: $, onClickCallback: T } = le(ne), F = Ti(l, u, p, d), L = Dt(l, u, n, p, d); + return A("div", { className: O("ff-data-table-framework", e), children: [h(i.sider, { isTreeSider: w, ...C }), A("div", { className: O("ff-data-table-container", $ == null ? void 0 : $.container), children: [h(i.filter, { isConditionFormLayout: k }), h(i.toolbar, { title: f, tabs: g }), h(Hn, { ...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)) }); + return h("div", { className: "ff-data-table-actions", children: (W = F(D)) == null ? void 0 : W.map((R, M) => h(P.Link, { size: "small", uuid: R.uuid, type: R.type, name: R.name, widget: R.widget, widgetType: R.widgetType, widgetProps: R.widgetProps, widgetData: R.widgetData, widgetSetting: R.widgetSetting, widgetContainerProps: R.widgetContainerSetting, data: D, confirm: R.confirm, onAfterClick: (v) => v !== !1 && (T == null ? void 0 : T(R.isRefresh, D)) }, R.uuid || M)) }); } : null }), h(i.footer, { isPaginate: y, isOperations: o, operations: s })] })] }); -}, Jt = (t = [], e, i = null) => { +}, _t = (t = [], e, i = null) => { var n; - return (n = m.sortBy(t, ["y", "x"])) == null ? void 0 : n.map(({ i: r, x: a, y: o, w: s, h: l, field: { boxStyle: u, ...d } = {} }, p) => h("div", { className: "grid-layout-item", style: Ri(a, o, s, l, u), children: h(e, { ...d, basicForm: i }) }, r ?? p)); -}, Ri = (t, e, i, n, r = {}, a = 0) => { + return (n = m.sortBy(t, ["y", "x"])) == null ? void 0 : n.map(({ i: r, x: a, y: o, w: s, h: l, field: { boxStyle: u, ...d } = {} }, p) => h("div", { className: "grid-layout-item", style: Oi(a, o, s, l, u), children: h(e, { ...d, basicForm: i }) }, r ?? p)); +}, Oi = (t, e, i, n, r = {}, a = 0) => { const o = { "--grid-layout-h": `${n}`, "--grid-layout-w": `${i}`, "--grid-layout-x": `${t}`, "--grid-layout-y": `${e}`, "--grid-layout-row-height-offset": "0px" }; 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 }) => { +}, ci = (t, e, i, n) => `${t || 0}px ${e || 0}px ${i || 0}px ${n || 0}px`, na = (t = "Text", e = "@pkg/ff/grid-layouts") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, Ri = ({ className: t, isConditionFormLayout: e }) => { var f, g; - 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(); + const [i, n] = j({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = E.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 }); + r && e && I.get(`/api/_/${r}/list-condition-form-layout`).then(({ resource: y, marginX: w, marginY: C, rowHeight: k, cols: S, fields: $ }) => { + n({ resource: y, itemMargin: [w, C], rowHeight: k, cols: S, fields: $ }); }).catch(() => n({})); }, [r, e]), V(() => { p.setFieldsValue({ keyword: u, ...d }); - }, [JSON.stringify([u, d])]), h("div", { className: R("ff-data-list-filter", l.filter, t), children: h(mt, { form: p, layout: "vertical", autoComplete: "off", onFinish: ((f = i.fields) == null ? void 0 : f.length) > 1 ? (y) => o({ [i.resource]: y[i.resource] }, y.keyword) : () => { + }, [JSON.stringify([u, d])]), h("div", { className: O("ff-data-list-filter", l.filter, t), children: h(mt, { form: p, layout: "vertical", autoComplete: "off", onFinish: ((f = i.fields) == null ? void 0 : f.length) > 1 ? (y) => o({ [i.resource]: y[i.resource] }, y.keyword) : () => { }, onValuesChange: (y) => { m.isEmpty(m.omit(y, ["keyword"])) || p.submit(); - }, children: ((g = i.fields) == null ? void 0 : g.length) > 1 ? h(Xt, { ...i, children: h(zn, { onReset: () => { + }, children: ((g = i.fields) == null ? void 0 : g.length) > 1 ? h(Xt, { ...i, children: h(Bn, { onReset: () => { const { keyword: y, condition: w } = s("init") || {}; 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 }) => { + } }) }) : h("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: h("div", { className: "grid-layout-item", style: Oi(20, 0, 5, 2), children: h(mt.Item, { name: ["keyword"], children: h(cn.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (y) => a(y) }) }) }) }) }) }); +}, Bn = ({ cols: t, fields: e, onReset: i }) => { 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" })] }); + return A(mt.Item, { label: " ", style: { "--item-span": 5 }, className: O("ff-data-list-filter-actions", { expanded: n }), children: [h(yt, { onClick: i, children: "重置" }), h(yt, { type: "primary", htmlType: "submit", children: "查询" }), a && h(P.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 ? 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 }) => { +Ri.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 Wn = ({ className: t, operations: e, isOperations: i, isPaginate: n }) => { + const { onPageChange: r, onPageSizeChange: a, onClickCallback: o, getBase62params: s } = E.useContext(ne), { total: l, page: u, pageSize: d } = (s == null ? void 0 : s()) || {}; + return i && !m.isEmpty(e) || n ? A("div", { className: O("ff-data-list-footer", t), children: [h("div", { className: "ff-data-list-actions", children: e == null ? void 0 : e.map((p, f) => h(P, { 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(dn, { size: "small", total: l, pageSize: d, showSizeChanger: !1, showTotal: (p) => `第 ${u} 页 / 总共 ${p} 条`, onChange: r, onShowSizeChange: a })] }) : null; +}, Un = [{ 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" }] }] }], qn = ({ 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 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) => { + return i ? h(un.DirectoryTree, { className: O("ff-data-list-sider", n.sider, t), style: { "--sider-width": e }, showLine: !0, showIcon: !1, treeData: Un }) : null; +}, Kn = ({ 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] = wn((i == null ? void 0 : i[0].value) ?? (i == null ? void 0 : i[0].code), { value: s, onChange: r }); + return A("div", { className: O("ff-data-list-toolbar", o.toolbar, t), children: [h("div", { className: "ff-data-list-title", children: e }), h(pn, { className: "ff-data-list-tabs", itemRender: ({ label: d, code: p, value: f }) => h("span", { onClick: () => u(f ?? p), className: O("ff-data-list-tab", { active: (f ?? p) == l }), children: d }), items: i }), A("div", { className: "ff-data-list-actions", children: [h(P.Link, { icon: "icon-reload", widget: () => a() }), h(P.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: $, classNames: T = {}, payload: F = {}, ...L }) => { + const [D, W] = j(), R = X((v, 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; + return v && v != "init" ? m.get(z, v, 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 B in x) if (x[B]) { - if (nn(x[B])) { - const z = x[B]; - x[B] = (Ee) => $.cloneElement(z, Ee); + let v = { sider: qn, filter: Ri, footer: Wn, toolbar: Kn }; + $ === !1 ? v = { sider: null, filter: null, footer: null, toolbar: null } : m.isPlainObject($) && (v = Object.assign({}, v, $)); + for (const B in v) if (v[B]) { + if (nn(v[B])) { + const z = v[B]; + v[B] = ($e) => E.cloneElement(z, $e); } - } else x[B] = () => h($.Fragment, {}); - return x; - }, [E]); + } else v[B] = () => h(E.Fragment, {}); + return v; + }, [$]); return V(() => { - e ? se.getWidgetComponent(e).then((x) => { - if (!x) throw `${e} not found`; - return x; - }).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) }); + e ? se.getWidgetComponent(e).then((v) => { + if (!v) throw `${e} not found`; + return v; + }).catch((v) => ({ default: () => `${v}` })).then((v) => W(E.createElement(v.default, { ...L, layouts: M, $setting: i }))) : W(h(t ? Mn : zn, { ...L, layouts: M, $setting: i })); + }, [e, i]), h(ne.Provider, { value: { classNames: T, listCode: a, onClickCallback: n, onReload: r, getBase62params: R, 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 && E.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; +var ve, be, je, $t; const pe = class pe { constructor() { - v(this, be, null); - v(this, je, /* @__PURE__ */ new Map()); - v(this, Et, () => { + x(this, be, null); + x(this, je, /* @__PURE__ */ new Map()); + x(this, $t, () => { if (c(this, be)) return c(this, be).port.postMessage({ command: "status", data: [] }); U(this, be, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), c(this, be).port.onmessage = (e) => { var i, n; @@ -440,25 +440,25 @@ const pe = class pe { }); }, c(this, be).port.postMessage({ command: "status", data: [] }); }); - P(this, "subscribe", (e, i = []) => (i ? Array.isArray(i) && i.length == 0 ? i = "*" : Array.isArray(i) || (i = [i].flat()) : i = "*", c(this, je).set(e, i), c(this, je).size == 1 && c(this, Et).call(this), () => this.unsubscribe(e))); - P(this, "unsubscribe", (e) => c(this, je).delete(e)); - if (c(pe, xe)) return c(pe, xe); + N(this, "subscribe", (e, i = []) => (i ? Array.isArray(i) && i.length == 0 ? i = "*" : Array.isArray(i) || (i = [i].flat()) : i = "*", c(this, je).set(e, i), c(this, je).size == 1 && c(this, $t).call(this), () => this.unsubscribe(e))); + N(this, "unsubscribe", (e) => c(this, je).delete(e)); + if (c(pe, ve)) return c(pe, ve); } }; -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))); +ve = new WeakMap(), be = new WeakMap(), je = new WeakMap(), $t = new WeakMap(), x(pe, ve, null), N(pe, "getInstance", () => (c(pe, ve) || U(pe, ve, new pe()), c(pe, ve))); 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: 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); +const Ai = zt.getInstance(), Yt = E.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: $, ...T } = {}, title: F, isPaginate: L, tabs: D }, W] = j({ isItemGridLayout: !1, itemGridLayout: {} }), R = Vn(t, e), [{ dataSource: M, itemOperationsAccess: v, condition: B, tab: z, keyword: $e, page: ut, total: pt, pageSize: Pt, sider: te, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: Hi, onPageSizeChange: Ji, onSiderChange: _i, onReload: Tt, payload: Yi }, ti] = In(R, t, u, l), Gi = Dt(p, v, 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)), W(gt); }).catch(() => W({})), () => re == null ? void 0 : re(); - }, [t]), $.useImperativeHandle(s, () => ({ onReload: Tt, onClickCallback: ti })); - 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] = j([]), [g, y] = j({ width: 0, height: 0 }); + }, [t]), E.useImperativeHandle(s, () => ({ onReload: Tt, onClickCallback: ti })); + 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: $ }, isConditionFormLayout: w, itemOperationsAccess: v, dataSource: M, onConditionChange: Ui, onTabChange: qi, onKeywordChange: Ki, onPageChange: Hi, onPageSizeChange: Ji, onSiderChange: _i, condition: B, tab: z, keyword: $e, page: ut, total: pt, pageSize: Pt, sider: te, payload: Yi }; + return h(Fi, { ...Qi, className: O("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), []) : [], Hn = ({ className: t, primaryKey: e, columns: i = [], dataSource: n = [], operationRender: r, operationWidth: a = 180, components: o = {}, ...s }) => { + const { classNames: l } = le(ne), u = H(null), d = H(null), [p, f] = j([]), [g, y] = j({ width: 0, height: 0 }); V(() => { f(Li(n, e)); }, [n, e]), rn(() => { @@ -470,15 +470,15 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, d.current && k.unobserve(d.current); }; }, []); - const w = An(i), C = Ln(o); - return h("div", { ref: d, className: R("ff-data-list-table", l.content, t), children: g.height ? h(pn, { bordered: !0, ...s, components: C, ref: u, rowKey: (k) => (k == null ? void 0 : k[e]) ?? Math.random(), columns: w == null ? void 0 : w.concat(r ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(a / g.width * 100).toFixed(2)}%`, render: (k, S, E) => r(S, E) }] : []), dataSource: n, size: "middle", scroll: { x: "max-content", y: g.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: f, expandedRowKeys: p } }) : null }); -}, _n = "RC_FORM_INTERNAL_HOOKS", Hn = (t) => { - const [e, i] = $.useState({ items: [] }); + const w = Ln(i), C = jn(o); + return h("div", { ref: d, className: O("ff-data-list-table", l.content, t), children: g.height ? h(gn, { bordered: !0, ...s, components: C, ref: u, rowKey: (k) => (k == null ? void 0 : k[e]) ?? Math.random(), columns: w == null ? void 0 : w.concat(r ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(a / g.width * 100).toFixed(2)}%`, render: (k, S, $) => r(S, $) }] : []), dataSource: n, size: "middle", scroll: { x: "max-content", y: g.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: f, expandedRowKeys: p } }) : null }); +}, Jn = "RC_FORM_INTERNAL_HOOKS", _n = (t) => { + const [e, i] = E.useState({ items: [] }); return V(() => { 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] = j(), [p, f] = j(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(_n) || {}; +}, Yn = (t, { initialValue: e, initialValueLanguage: i, convertJs: n, convertJsSetting: r, type: a = "string" }, o = null) => { + const s = H(!1), l = le(wi), [u, d] = j(), [p, f] = j(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(Jn) || {}; 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) => 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) || "{}"; +}, ra = (t, e, i = null) => K(() => _t(t, e, i), [t]), ji = (t, e, i = {}, n = {}, r = {}, a = null) => { + const o = le(wi), s = vt(), l = H(!0), u = H([]), [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)); @@ -499,15 +499,15 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, l.current && (p(e), g(w)); }); }, [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 }) => { +}, Gn = ({ 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] = 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 && se.getWidgetComponent(r).then(({ defaultProps: s = {}, default: l }) => ({ default: Xn(l, s, i) })).catch((s) => ({ default: () => `${s}` })).then((s) => o(E.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 = K(() => { - const E = Object.keys((e == null ? void 0 : e.extras) || {}); - return m.over([m.partialRight(m.pick, E), m.partialRight(m.omit, E)]); +}, Xn = (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] = Yn(s ? null : r, { initialValue: l, initialValueLanguage: u, convertJs: d, convertJsSetting: p, type: (g == null ? void 0 : g.type) || "string" }, i), C = K(() => { + const $ = Object.keys((e == null ? void 0 : e.extras) || {}); + return m.over([m.partialRight(m.pick, $), m.partialRight(m.omit, $)]); }, [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 }) => { @@ -516,68 +516,68 @@ const Ai = zt.getInstance(), Yt = $.forwardRef(({ listCode: t, base62params: e, 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); + }).catch((f) => ({ default: () => `${t} ${f}` })).then((f) => d(E.createElement(f.default, {}))) : d(null); }, [t]); 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 } }); + return u && E.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 = K(() => [{ name: "__PROPS__", value: u }].concat(d), [u, d]); + const [S] = ie.useForm(e), $ = K(() => [{ name: "__PROPS__", value: u }].concat(d), [u, d]); lt(() => (S.setFieldsValue(f), () => S.resetFields()), [f]); 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 })] }); + const W = _t(L, Gn, i); + return A("div", { className: O("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 && E.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 = K(() => [{ name: "__RESOURCE__", value: a }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: r }], [e, r, a]); + return h(ie, { ...k, fields: $, 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) }); +}, aa = /* @__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 } = _n(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 = 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)}` }); +})(Vi), Qn = ({ 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, $, T) => S, empty: f = h(hn, { description: null }), className: g, style: y = {}, theme: w, themeProps: C = {}, groups: k = [{ key: "default", label: "默认" }] }) => { + const { classNames: S } = le(ne), $ = 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: O("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(E.cloneElement($, { data: F }), F, L); + return E.cloneElement(D, { key: `${(F == null ? void 0 : F[o]) ?? L}-${Tn(F)}` }); }), d == null ? void 0 : d(s)] }); -}, Qn = ({ component: t, $props: e }) => { +}, Zn = ({ 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 }) => { +}, oa = () => h(Mi, {}), Mi = () => "Empty", er = ({ component: t, $setting: e, $props: i }) => { 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); + se.getWidgetComponent(t).catch((o) => ({ default: () => `${o}` })).then((o) => E.createElement(o.default, { $setting: e })).then(r); }, [t]); const a = st(i, {}); - return n ? $.cloneElement(n, a) : null; -}, aa = () => "NotFoundPage"; -var Pe, ae, Ne, Te, Ze, et; + return n ? E.cloneElement(n, a) : null; +}, sa = () => "NotFoundPage"; +var Ne, ae, Pe, Te, Ze, et; const ge = class ge { constructor() { - v(this, ae, /* @__PURE__ */ new Map()); - v(this, Ne, {}); - v(this, Te, null); - P(this, "init", (e, i) => { - U(this, ae, e), U(this, Ne, i); + x(this, ae, /* @__PURE__ */ new Map()); + x(this, Pe, {}); + x(this, Te, null); + N(this, "init", (e, i) => { + U(this, ae, e), U(this, Pe, 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 = {}) => { + N(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) || {})); + N(this, "redirect", (e, i, n = {}) => { const { uri: r, type: a, widgetProps: o } = this.get(e) || {}, { router: s, query: l, ...u } = i || {}, d = Object.assign({}, u, s), p = Object.assign({}, u, l); a == "list" && (d.base62params = I.encode(d != null && d.base62params ? d.base62params : d)); - let f = wn(r || e, d); + let f = bn(r || e, d); const g = new URLSearchParams(); for (const y in o || {}) (o == null ? void 0 : o.type) == "query" && Object.has(p, y) && g.append(y, JSON.stringify(p[y])); return g.size > 0 && (f = `${f}?${g.toString()}`), n != null && n.isOpenWindow ? window.open(f) : c(this, Te).navigate(f, { replace: !!(n != null && n.isReplaceRouteHistory) }); }); - P(this, "getMenus", (e) => { + N(this, "getMenus", (e) => { var i; - return ((i = c(this, Ne)) == null ? void 0 : i[e]) || []; + return ((i = c(this, Pe)) == null ? void 0 : i[e]) || []; }); - P(this, "findMenuPathByUuid", (e) => { + N(this, "findMenuPathByUuid", (e) => { let i = []; - for (const n in c(this, Ne)) if (i = c(this, Ze).call(this, c(this, Ne)[n], e, [n]), i.length > 1) return i; + for (const n in c(this, Pe)) if (i = c(this, Ze).call(this, c(this, Pe)[n], e, [n]), i.length > 1) return i; return i; }); - P(this, "getMenusByRouteUuid", (e) => c(this, et).call(this, e, Object.values(c(this, Ne)).flat())); - v(this, Ze, (e, i, n = []) => { + N(this, "getMenusByRouteUuid", (e) => c(this, et).call(this, e, Object.values(c(this, Pe)).flat())); + x(this, Ze, (e, i, n = []) => { if (m.isEmpty(e)) return n; for (const { uuid: r, children: a } of e) { if (r == i) return n.concat(r); @@ -585,29 +585,29 @@ const ge = class ge { } return n; }); - v(this, et, (e, i) => { + x(this, et, (e, i) => { var r; let n = []; for (const a of i) a.widgetType == "redirect" && (a.uuid == e || a.widget == e ? n.push(a) : (r = a.children) != null && r.length && (n = n.concat(c(this, et).call(this, e, a.children)))); return n; }); - P(this, "getCurrentMenu", () => { + N(this, "getCurrentMenu", () => { const { uuid: e } = this.getCurrentRoute() || {}; if (!e) return; const i = this.getMenusByRouteUuid(e); return m.isEmpty(i) ? void 0 : i[0]; }); - P(this, "getCurrentRoute", (e = 0) => { + N(this, "getCurrentRoute", (e = 0) => { var n; const i = (n = c(this, Te).state.matches[c(this, Te).state.matches.length - 1 - e]) == null ? void 0 : n.route; if (!i) return null; for (let [r, a] of c(this, ae)) if (a.uri === i.path) return a; return null; }); - P(this, "getPageParams", (e) => { + N(this, "getPageParams", (e) => { var r, a, o; let i = "", n = {}; - if (Ci()) n = bn(), i = (r = Cn()) == null ? void 0 : r.search; + if (Ci()) n = Cn(), i = (r = kn()) == null ? void 0 : r.search; else { const { location: s = {}, matches: l = [] } = ((a = c(this, Te)) == null ? void 0 : a.state) || {}; n = ((o = l[l.length - 1]) == null ? void 0 : o.params) || {}, i = s.search; @@ -616,46 +616,46 @@ const ge = class ge { n[l] = s; }), e ? m.get(n, e) : n; }); - P(this, "createBrowserRouter", (e = {}) => { + N(this, "createBrowserRouter", (e = {}) => { if (c(this, ae).size == 0) return null; const i = Ve.get("Common.WEBSITE_DEFAULT_THEME", "@pkg/ff/frameworks/DefaultTheme"), n = Ve.get(se.checkUserToken() ? "Common.WEBSITE_LOGIN_REDIRECT" : "Common.WEBSITE_DEFAULT", "/index"), r = { [i]: 0 }, a = (s, l) => () => Promise.all([se.getWidgetComponent(s), st(l)]).then(([u, d]) => [u.default || function() { return `${s}`; - }, d]).then(([u, d]) => ({ Component: () => $.createElement($i, {}, $.createElement(u, { $setting: d })) })), o = Array.from(c(this, ae).values()).reduce((s, { uuid: l, uri: u, name: d, type: p, component: f, widgetSetting: g, widgetProps: y, isLogin: w, isLayout: C, extra: k }) => { - let S = {}, E = 0; + }, d]).then(([u, d]) => ({ Component: () => E.createElement(Ei, {}, E.createElement(u, { $setting: d })) })), o = Array.from(c(this, ae).values()).reduce((s, { uuid: l, uri: u, name: d, type: p, component: f, widgetSetting: g, widgetProps: y, isLogin: w, isLayout: C, extra: k }) => { + let S = {}, $ = 0; switch (p) { case "list": - S.element = $.createElement(Qn, { component: f, $props: y }); + S.element = E.createElement(Zn, { component: f, $props: y }); break; case "fsdpf-component": - S.element = $.createElement(Zn, { key: f, component: f, $setting: g, $props: y }); + S.element = E.createElement(er, { key: f, component: f, $setting: g, $props: y }); } const T = (k == null ? void 0 : k.theme) ?? (k == null ? void 0 : k.layout); if (T) { 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]; + $ = r[T]; } - return C && E > -1 ? (s[E].children.push({ path: u, ...S }), s) : [...s, { path: u, ...S }]; + return C && $ > -1 ? (s[$].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 }) }), U(this, Te, kn(o, e)); + return o.push({ index: !0, element: E.createElement(tr, { to: n, replace: !0 }) }), U(this, Te, En(o, e)); }); - if (c(ge, Pe)) return c(ge, Pe); + if (c(ge, Ne)) return c(ge, Ne); } }; -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))); +Ne = new WeakMap(), ae = new WeakMap(), Pe = new WeakMap(), Te = new WeakMap(), Ze = new WeakMap(), et = new WeakMap(), x(ge, Ne, null), N(ge, "getInstance", () => (c(ge, Ne) || U(ge, Ne, new ge()), c(ge, Ne))); 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, Ue, Re; +const tr = ({ to: t, replace: e }) => Ci() ? E.createElement($n, { to: t, replace: e }) : (window.document.location = t, "redirect"), Ee = Bt.getInstance(), Me = new Worker(new URL("/ff-worker/index.js", self.location)), di = { getConfigure: (t) => Ve.get(t), route: { redirect: (...t) => Ee.redirect(...t), getPageParams: (...t) => Ee.getPageParams(...t), getCurrentRoute: () => Ee.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, Ue, Oe; const q = class q { constructor() { - P(this, "exec", (e, i = {}, n = {}, r = "") => new Promise((a, o) => { + N(this, "exec", (e, i = {}, n = {}, r = "") => new Promise((a, o) => { if (!/^(?!\s*(\/\/|\/\*|\*)).*?\S+/m.test(e)) return a(); 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(q, Re)) return c(q, Re); - Promise.resolve().then(() => xr).then((e) => { + N(this, "clear", (e) => Me.postMessage({ session: e, category: "clear" })); + if (c(q, Oe)) return c(q, Oe); + Promise.resolve().then(() => Pr).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" && 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); @@ -673,18 +673,18 @@ const q = class q { }, !1); } }; -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))); +St = new WeakMap(), Ue = new WeakMap(), Oe = new WeakMap(), N(q, "mQueue", /* @__PURE__ */ new Map()), x(q, St, 0), x(q, Ue, /* @__PURE__ */ new Map()), x(q, Oe, null), N(q, "getInstance", () => (c(q, Oe) || U(q, Oe, new q()), c(q, Oe))); let Wt = q; -const Fe = Wt.getInstance(), xt = () => { - const t = _(!0), [, e] = $.useReducer((i) => i + 1, 0); +const Fe = Wt.getInstance(), vt = () => { + const t = H(!0), [, e] = E.useReducer((i) => i + 1, 0); return V(() => () => t.current = !1, []), () => t.current && e(); -}, oa = (t) => { - const e = _(); +}, la = (t) => { + const e = H(); return V(() => { e.current = t; }, [t]), e.current; -}, sa = (t) => { - const [e, i] = j(t), n = _(null), r = X((a, o) => { +}, ca = (t) => { + const [e, i] = j(t), n = H(null), r = X((a, o) => { n.current = o, i(a); }, []); return V(() => { @@ -692,21 +692,21 @@ const Fe = Wt.getInstance(), xt = () => { }, [e]), [e, r]; }, lt = (t = (n) => { }, e, i = m.isEqual) => { - const n = $.useRef(); - i(e, n.current) || (n.current = m.cloneDeep(e)), $.useEffect(t, [n.current]); + const n = E.useRef(); + i(e, n.current) || (n.current = m.cloneDeep(e)), E.useEffect(t, [n.current]); }, ct = lt, Di = (t, e = "string") => { var i; if (!Array.isArray(t)) return t; 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] = j([{ label: "无", value: "", disabled: !0 }]), l = _([]), u = ie.useWatch((d) => l.current.length === 0 ? null : m.pick(d, l.current), a) || null; +}, da = (t, e = "json", i = "string", n, r = null) => { + const [a] = ie.useForm(n), [o, s] = j([{ label: "无", value: "", disabled: !0 }]), l = H([]), 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) => { +}, ua = (t) => { 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)); @@ -716,15 +716,15 @@ const Fe = Wt.getInstance(), xt = () => { a = Ai.subscribe(m.throttle(r, 180, { leading: !1, trailing: !0 }), o.res); }), () => a == null ? void 0 : a(); }, n), e; -}, tr = (t) => { - const [e, i] = $.useState({ items: [], hides: [] }); - return $.useEffect(() => { - t && I.get(`/api/_/${t}`).then(({ pk: n, uuid: r, code: a, resource: o, align: s, cols: l, rowHeight: u, marginX: d, marginY: p, listenChangeFields: f, listenChangeFieldsFunc: g, fields: y, theme: w, themeSetting: C, groups: k }) => ({ pk: n, uuid: r, code: a, resource: o, align: s, cols: l, rowHeight: u, marginX: d, marginY: p, theme: w, themeProps: C, groups: k, listenChangeFields: f, listenChangeFieldsFunc: g, ...y.reduce((S, E) => { +}, ir = (t) => { + const [e, i] = E.useState({ items: [], hides: [] }); + return E.useEffect(() => { + t && I.get(`/api/_/${t}`).then(({ pk: n, uuid: r, code: a, resource: o, align: s, cols: l, rowHeight: u, marginX: d, marginY: p, listenChangeFields: f, listenChangeFieldsFunc: g, fields: y, theme: w, themeSetting: C, groups: k }) => ({ pk: n, uuid: r, code: a, resource: o, align: s, cols: l, rowHeight: u, marginX: d, marginY: p, theme: w, themeProps: C, groups: k, listenChangeFields: f, listenChangeFieldsFunc: g, ...y.reduce((S, $) => { var T; - return (T = E == null ? void 0 : E.field) != null && T.hidden ? S.hides.push(E == null ? void 0 : E.field) : S.items.push(E), S; + return (T = $ == null ? void 0 : $.field) != null && T.hidden ? S.hides.push($ == null ? void 0 : $.field) : S.items.push($), S; }, { 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) => { +}, nr = ({ max: t = 0, min: e = 0, type: i = "", message: n, pattern: r, required: a = !1, validator: o } = {}, s, l) => { const [u, d] = j([]); return V(() => { const p = []; @@ -758,7 +758,7 @@ const Fe = Wt.getInstance(), xt = () => { } d(p); }, [t, e, i, n, r, a, o]), u; -}, nr = (t, e, i) => { +}, rr = (t, e, i) => { const [n, r] = j(null); return V(() => { const { initDataUri: a = `/api/${t}`, initDataMethod: o = "GET" } = i || {}; @@ -766,29 +766,29 @@ const Fe = Wt.getInstance(), xt = () => { r(s); }); }, [t, e, i]), n; -}, rr = (t, e, i) => X((n, r = { serialize: (a) => a, onSuccess: () => { +}, ar = (t, e, i) => X((n, r = { serialize: (a) => a, onSuccess: () => { }, onFail: (a) => (a == null ? void 0 : a.errorFields) && ee.error("请先完善表单信息", { duration: 2e3 }) }) => { const a = n.getFieldValue("__RESOURCE__"), { submitDataUri: o = `/api/${t}`, submitDataMethod: s = "POST" } = i || {}; return n.validateFields().then((l) => a ? m.pick(l, [a]) : l).then(r.serialize).then((l) => I.request({ method: s, url: m.trimEnd(`${o}/${e || ""}`, "/"), data: l }).msg(r.onSuccess)).catch(r.onFail); -}, [t, e, i]), ar = (t, e, i, n) => { - const r = nr(e, i, n); +}, [t, e, i]), or = (t, e, i, n) => { + const r = rr(e, i, n); V(() => { r ? t.setFieldsValue(r) : t.resetFields(); }, [t, r]); - const a = rr(e, i, n); + const a = ar(e, i, n); return m.partial(a, t); -}, or = (t, e, i = [], n = {}) => { - const r = _({}), a = _(), o = m.debounce(xt(), 180), s = ["disabled", "required"], l = (f, g) => { +}, sr = (t, e, i = [], n = {}) => { + const r = H({}), a = H(), o = m.debounce(vt(), 180), s = ["disabled", "required"], l = (f, g) => { s.includes(f) && (r.current[f] = g), o(); }, 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]; - t = vi(f, g), r.current = m.merge(y, m.pick(r.current, s)); + t = xi(f, g), r.current = m.merge(y, m.pick(r.current, s)); } return [t, r.current]; -}, ui = (t) => t === void 0 || t === !1 ? "" : (Array.isArray(t) ? t : [t]).join("_"), da = ({ value: t, onChange: e }, i = null) => { - const n = _(), [r] = ie.useForm(i), a = _({}); +}, ui = (t) => t === void 0 || t === !1 ? "" : (Array.isArray(t) ? t : [t]).join("_"), pa = ({ value: t, onChange: e }, i = null) => { + const n = H(), [r] = ie.useForm(i), a = H({}); return ct(() => { m.isEqual(n.current, t) || r.setFieldsValue(t); }, [t]), V(() => () => r.resetFields(), []), [K(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: { itemRef: (o) => (s) => { @@ -805,43 +805,43 @@ 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] = j(); + const o = xi(t, e), [s, l] = sr(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, 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) => { + s && se.getWidgetComponent(s).then(({ defaultProps: p = {}, default: f }) => ({ default: lr(f, p, r) })).catch((p) => ({ default: () => `${p}` })).then((p) => d(E.createElement(p.default, a))); + }, [s]), u && E.cloneElement(u, { ...a, ...l }); +}, lr = (t, e = {}, i = null) => (n) => { + 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"]), $ = nr(Object.assign({}, f, d ? { required: !0 } : {}), a, r), T = K(() => { + const R = Object.keys((e == null ? void 0 : e.extras) || {}); + return m.over([m.partialRight(m.pick, R), m.partialRight(m.omit, R)]); + }, [e == null ? void 0 : e.extras]), [F, L] = T(S), D = { label: o, noStyle: s, style: l, colon: !1, layout: "vertical" }, W = X((R) => R == null ? void 0 : oe(R, r), [r]); + return h(Ht, { name: a, rules: $, initialValue: W(C), normalize: W, children: (R, M, v) => { 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) }); + return h(t, { type: r, rcform: v, basicForm: i, itemProps: { validateStatus: M.errors.length > 0 ? "error" : "success", tooltip: g || null, help: M.errors.length > 0 ? M.errors.join("、") : null, required: ((B = $ == null ? void 0 : $[0]) == null ? void 0 : B.required) || !1, ...D }, fieldProps: { placeholder: u, ...L, ...R }, $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, ...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 })] }); +}, 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: $ = [{ key: "default", label: "默认" }], children: T, ...F }) => { + const [L] = ie.useForm(e), D = X((M, v) => { + C == null || C(M, v), w && Array.isArray(y) && Fe.exec(w, { changedValues: M, allValues: v }, { 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]), R = (M, v, B) => { + const z = _t(v, Gt, i); + return A("div", { className: O("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 && E.cloneElement(B, { cols: a, rowHeight: o, itemMargin: s, containerPadding: l, fields: v, basicForm: i })] }); }; - 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: 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)); + return A(ie, { ...F, form: L, fields: W, onValuesChange: D, children: [k ? h(Ii, { ...S, items: $, theme: k, itemRender: R, fields: u, children: T, basicForm: i }) : R(0, u, T), d == null ? void 0 : d.map((M) => { + var v; + return h(Ht, { name: M.code, children: h(cr, { form: L, basicForm: i, name: M.code, type: M.type, initialValue: M.initialValue, initialValueLanguage: (v = M.extras) == null ? void 0 : v.initialValueLanguage }) }, JSON.stringify(M.code)); })] }); -}, lr = ({ type: t, initialValue: e, initialValueLanguage: i, onChange: n, basicForm: r }) => { +}, cr = ({ type: t, initialValue: e, initialValueLanguage: i, onChange: n, basicForm: r }) => { const [a, o] = ji(i == "javascript" && e, i == "javascript" ? void 0 : e, {}, {}, r); return V(() => { i == "javascript" ? n(oe(a, t)) : e && n(oe(e, t)); }, [t, e, a]), null; }; 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 = 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] }); +const dr = /* @__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: $ } = ir(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: $, ...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: 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 }) }); + const [o] = ie.useForm(), s = or(o, n, r, t); + return h(G, { actions: A(E.Fragment, { children: [h(P, { name: (t == null ? void 0 : t.okText) || "保存", type: "primary", widget: () => s({ onSuccess: e }) }), h(P, { name: (t == null ? void 0 : t.cancelText) || "取消", widget: () => e(!1) })] }), extras: i, children: h(dr, { 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)) { @@ -852,9 +852,9 @@ const cr = /* @__PURE__ */ ((t) => ({ code: e, isPreview: i = !1, ...n }) => { Ut(t, e + 1); }), pi.add(i), document.body.appendChild(n); } -}, bt = ({ className: t, type: e, style: i = {}, ...n }) => h("span", { role: "img", className: R("ff-iconfont", t), style: i, ...n, children: h("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: h("use", { xlinkHref: `#${e}` }) }) }); +}, bt = ({ className: t, type: e, style: i = {}, ...n }) => h("span", { role: "img", className: O("ff-iconfont", t), style: i, ...n, children: h("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: h("use", { xlinkHref: `#${e}` }) }) }); bt.propTypes = { className: b.string, type: b.string.isRequired, style: b.object }, bt.init = Ut; -const dr = (t, e, i, n) => $e.redirect(i, e, n), ur = (t, e = {}, i, n = {}) => { +const ur = (t, e, i, n) => Ee.redirect(i, e, n), pr = (t, e = {}, i, n = {}) => { var a; const r = (a = n.router) == null ? void 0 : a.reduce((o, [s, l, u]) => { const d = m.get(e, ["router", s]); @@ -867,68 +867,68 @@ const dr = (t, e, i, n) => $e.redirect(i, e, n), ur = (t, e = {}, i, n = {}) => return m.isFunction(i) ? i.call(null, { ...e, ...o }) : m.isString(i) && i ? Fe.exec(i, e, o) : null; }, 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 } = {}) => { +}) : ee.modal(i, { ...e, $setting: n }, r != null && r.title ? { ...r, title: m.template(r.title)(t) } : r), gr = (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), hr = (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), mr = ({ widget: t, widgetType: e, widgetData: i, widgetProps: n, widgetSetting: r, widgetContainerProps: a }, { onAfterClick: o, onBeforeClick: s } = {}) => { const l = le(ne), [u, d] = j({ leading: !0, trailing: !1 }), p = K(() => { switch (e) { case "redirect": - return m.partialRight(dr, t, r); + return m.partialRight(ur, t, r); case "func": return m.partialRight(gi, (r == null ? void 0 : r.code) ?? t, { status: u, setStatus: d }); case "component": case "fsdpf-component": return m.partialRight(hi, t, r, a); case "grid-layout-form": - return m.partialRight(pr, t, r, a); - case "data-list": return m.partialRight(gr, t, r, a); + case "data-list": + return m.partialRight(hr, t, r, a); case "destroy": - return m.partialRight(ur, t, r, a); + return m.partialRight(pr, t, r, a); default: - if (Zt(t) || $.isValidElement(t)) return m.partialRight(hi, t, r, a); + if (Zt(t) || E.isValidElement(t)) return m.partialRight(hi, t, r, a); if (m.isFunction(t)) return m.partialRight(gi, (r == null ? void 0 : r.code) || t, { status: u, setStatus: d }); } 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") => 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] = 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 || {}; + const s = { type: "primary", className: O("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 = O(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]), Nt = ({ 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] = j(!1), [y, w] = j("hover"), [C, k] = j({}), [S, $] = j(), { placement: T, align: F, zIndex: L, arrow: D = { pointAtCenter: !0 }, getPopupContainer: W, isPopupMountBodyContainer: R = !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: 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 })); + 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) => $(z.toString())) : Zt(e) ? $(E.createElement(e, { ...n, $setting: a })) : E.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 = (z, Ee = !1) => (g(z), !z && w("hover"), z ? l == null ? void 0 : l(C) : s == null ? void 0 : s(Ee)), B = (z) => { + const v = (z, $e = !1) => (g(z), !z && w("hover"), z ? l == null ? void 0 : l(C) : s == null ? void 0 : s($e)), B = (z) => { g(!0), w("click"); }; - 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] = 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] })] }) }); + return h(mn, { zIndex: L, placement: T, onPopupClick: B, onClick: B, open: f, align: F, arrow: D, trigger: y, getPopupContainer: W || R ? void 0 : (z) => z, content: h(fr, { ...M, extras: d, children: S && E.cloneElement(S, { ...C, $close: (z) => v(!1, z) }) }), children: u, onOpenChange: v }); +}, fr = ({ title: t, className: e, classNames: i, children: n, extras: r, width: a, height: o, ...s }) => { + const [l, u] = j({}), d = X((y, w) => u((C) => ({ ...C, [y]: w })), []), p = X((y) => u((w) => ({ ...w, [y]: void 0 })), []), f = t ? E.createElement("div", { className: "ff-popup-title" }, t) : l == null ? void 0 : l.title, g = r ?? E.createElement("div", { className: "ff-popup-reserved-extras" }, r); + return h(ot.Provider, { value: { ele: l, mount: d, unmount: p }, children: A("div", { className: O("ff-popup ff-popover", e, l.rootClassName), style: { width: a ?? 260, height: o }, ...s, children: [A("div", { className: O("ff-popup-header", "ff-popover-header", i == null ? void 0 : i.header), children: [f, l == null ? void 0 : l["sub-title"]] }), h("div", { className: O("ff-popup-body", "ff-popover-body", i == null ? void 0 : i.body), children: n }), A("div", { className: O("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"]) }; +Nt.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: 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); - B.enabled ? Ee(te) : ut(p); +}, widgetType: k, widgetData: S, widgetProps: $, widgetSetting: T, widgetContainerProps: F, ...L }) { + const { mode: D, ...W } = F || {}, R = Bi({ className: e, name: r, type: o, icon: a, iconPosition: s }, i ?? t), M = h(yt, { ...R, ...L, children: n || r }); + if (D === "popover" && !["destroy", "redirect", "func"].includes(k)) return h(Nt, { data: p, widget: C, widgetType: k, widgetData: S, widgetProps: $, widgetSetting: T, widgetContainerProps: W, onAfterClick: u, onBeforeClick: d, children: M }); + const v = m.isEmpty(y) || !y.enabled ? {} : y, B = m.isEmpty(w) ? { enabled: !1 } : Object.assign({ enabled: !0 }, w), [z, $e] = j(!1), [ut, { disabled: pt, loading: Pt }] = mr({ widget: C, widgetType: k, widgetData: S, widgetProps: $, widgetSetting: T, widgetContainerProps: W }, { onAfterClick: u, onBeforeClick: d }); + return h(fn, { okText: "确定", cancelText: "取消", getPopupContainer: (te) => te, ...B, disabled: pt || g, open: z, onOpenChange: (te) => { + if (!te) return $e(te); + B.enabled ? $e(te) : ut(p); }, onConfirm: (te) => { ut(p, te); }, onClick: (te) => { te.stopPropagation(); - }, 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) => { + }, children: h(yn, { getPopupContainer: (te) => te, ...v, title: z ? null : v == null ? void 0 : v.title, trigger: ["hover", "click"], children: E.cloneElement(M, { loading: Pt || f, disabled: pt || g }) }) }); +}, P = dt("default"); +P.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 yr = dt("link"), wr = dt("circle"), br = dt("round"), Cr = 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 }) => { +}, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: u = (g, y) => h(P, { ...g, data: y }, g.uuid || Lt()), widgetContainerProps: d = {}, children: p, data: f }) => { if (m.isEmpty(t)) return p; const [g, y] = K(() => (t || []).reduce((C, k) => { const S = e.indexOf(k.widgetType); @@ -936,29 +936,29 @@ const fr = dt("link"), yr = dt("circle"), wr = dt("round"), br = dt("dashed"), m }, [null, []]), [t, e]); o ? p = o(g, f) || p : p || (p = h(yt, { ...Bi(Object.assign(g != null && g.name || g != null && g.icon ? {} : { icon: "icon-location" }, g, { size: a }), r) })); const w = y.map((C) => u(Object.assign({ uuid: C.uuid, type: C.type, name: C.name, widget: C.widget, widgetType: C.widgetType, widgetProps: C.widgetProps, widgetData: C.widgetData, widgetSetting: C.widgetSetting, widgetContainerProps: C.widgetContainerSetting, confirm: C.confirm, onAfterClick: m.partialRight(i, C, f), onBeforeClick: m.partialRight(n, C, f) }, { size: l, variant: s }), f)); - return h(Pt, { widget: g == null ? void 0 : g.widget, widgetType: g == null ? void 0 : g.widgetType, widgetProps: g == null ? void 0 : g.widgetProps, widgetSetting: g == null ? void 0 : g.widgetSetting, widgetContainerProps: Object.assign({}, d, g == null ? void 0 : g.widgetContainerProps), data: f, widgetData: g == null ? void 0 : g.widgetData, extras: w, onAfterClick: m.partialRight(i, g, f), onBeforeClick: m.partialRight(n, g, f), children: p }); + return h(Nt, { widget: g == null ? void 0 : g.widget, widgetType: g == null ? void 0 : g.widgetType, widgetProps: g == null ? void 0 : g.widgetProps, widgetSetting: g == null ? void 0 : g.widgetSetting, widgetContainerProps: Object.assign({}, d, g == null ? void 0 : g.widgetContainerProps), data: f, widgetData: g == null ? void 0 : g.widgetData, extras: w, onAfterClick: m.partialRight(i, g, f), onBeforeClick: m.partialRight(n, g, f), children: p }); }; -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 }) => { +mi.propTypes = { triggerWeights: b.array, options: b.arrayOf(b.shape({ ...P.propTypes, widgetType: P.propTypes.widgetType.isRequired })), btnSize: P.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: P.propTypes.size, onAfterClick: b.func, onBeforeClick: b.func, widgetContainerProps: P.propTypes.widgetContainerProps, data: P.propTypes.data }, P.Link = yr, P.Link.defaultProps = P.defaultProps, P.Link.propTypes = P.propTypes, P.Circle = wr, P.Circle.defaultProps = P.defaultProps, P.Circle.propTypes = P.propTypes, P.Round = br, P.Round.defaultProps = P.defaultProps, P.Round.propTypes = P.propTypes, P.Dashed = Cr, P.Dashed.defaultProps = P.defaultProps, P.Dashed.propTypes = P.propTypes, P.Popover = Nt, P.GroupPopover = mi; +const kr = ({ fields: t, formProps: e, $close: i }) => { 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 }) => { + return h(G, { actions: A(E.Fragment, { children: [h(P, { name: "取消", widget: () => i(!1) }), h(P, { 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)) }) }); +}, Er = ({ className: t, classNames: e, $close: i, children: n, title: r, subTitle: a, actions: o, extras: s, ...l }) => A(Sn, { ...l, prefixCls: "ff-drawer", className: O("ff-popup", t), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (u) => ({ motionAppear: !0, motionName: `panel-motion-${u}` }), children: [A("div", { className: O("ff-popup-header", "ff-drawer-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: O("ff-popup-close", "ff-drawer-close", e == null ? void 0 : e.close), onClick: l.onClose, children: h(Jt, { type: "close" }) }), r, a] }), h("div", { className: O("ff-popup-body", "ff-drawer-body", e == null ? void 0 : e.body), children: n }), A("div", { className: O("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: () => 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] })] }) }); + return h(xn, { ...d, ...p, prefixCls: "ff-modal", modalRender: () => A("div", { className: O("ff-modal-content ff-popup", t), children: [A("div", { className: O("ff-popup-header", "ff-modal-header", e == null ? void 0 : e.header), children: [h("button", { "aria-label": "Close", className: O("ff-popup-close", "ff-modal-close", e == null ? void 0 : e.close), onClick: d.onClose, children: h(Jt, { type: "close" }) }), a, o] }), h("div", { className: O("ff-popup-body", "ff-modal-body", e == null ? void 0 : e.body), children: r }), A("div", { className: O("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] = 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) }; + let f = { ...a, className: o.rootClassName, title: o.title || r && E.createElement("div", { className: O("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); }; - return h(ot.Provider, { value: { ele: o, mount: d, unmount: p }, children: t && t !== "center" ? h(kr, { ...f, placement: t, open: l, afterOpenChange: (y) => !y && g() }) : h($r, { ...f, visible: l, afterClose: g }) }); + return h(ot.Provider, { value: { ele: o, mount: d, unmount: p }, children: t && t !== "center" ? h(Er, { ...f, placement: t, open: l, afterOpenChange: (y) => !y && g() }) : h($r, { ...f, visible: l, afterClose: g }) }); }; Wi.propTypes = { placement: b.oneOf(["center", "left", "top", "right", "bottom"]) }; const Z = () => { const [t, e] = an({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (a) => { const { offsetHeight: o } = a; return { height: o }; - }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, i] = $.useReducer((a) => a + 1, 0); + }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, i] = E.useReducer((a) => a + 1, 0); V(() => { Z.$onClick = n, Z.$queue.forEach(([a, o, s], l, u) => { r([o, s], ...a), delete u[l]; @@ -966,57 +966,55 @@ const Z = () => { }, []); const n = (a, o = {}, s = {}) => new Promise((l, u) => r([l, u], a, o, s)), r = ([a, o], s, l = {}, u = {}) => { const d = Z.$index++, p = (f) => ((g, y) => (Z.$popups.delete(g), i(), y == null ? void 0 : y()))(d, () => a(f)); - 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(); + if (s === $i) return t.open({ ...u, key: d, content: E.createElement(s, { ...l, $close: () => t.close(d) }) }); + Z.$popups.set(d, E.createElement(Wi, { maskClosable: !1, $event: l == null ? void 0 : l.$event, ...u, key: d, $close: p }, E.isValidElement(s) ? E.cloneElement(s, { ...l, $close: p }) : s != null && s.name || ai.isForwardRef(s) || (s == null ? void 0 : s.$$typeof) === ai.ForwardRef ? E.createElement(s, { ...l, $close: p }) : s)), i(); }; - return A($.Fragment, { children: [Array.from(Z.$popups).map(([a, o]) => o), e] }); + return A(E.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]); }); -const fi = (t, e, i = {}) => Z.$onClick(t, e, i), Ft = (t, { showProgress: e, duration: i, ...n } = { duration: 1.5 }) => Z.$onClick(Ei, { content: t, ...n }, { showProgress: e, duration: i }), ee = { modal: fi, confirm: (t, e = {}) => Z.$onClick(vn, { content: t, ...e }, { placement: "center" }), form: (t, e = {}, i = {}) => fi(Cr, { formProps: i, fields: t }, { placement: "center", ...e }).then((n) => { +const fi = (t, e, i = {}) => Z.$onClick(t, e, i), Ft = (t, { showProgress: e, duration: i, ...n } = { duration: 1.5 }) => Z.$onClick($i, { content: t, ...n }, { showProgress: e, duration: i }), ee = { modal: fi, confirm: (t, e = {}) => Z.$onClick(vn, { content: t, ...e }, { placement: "center" }), form: (t, e = {}, i = {}) => fi(kr, { formProps: i, fields: t }, { placement: "center", ...e }).then((n) => { 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" }) }; -He.configure({ showSpinner: !1 }), De.interceptors.request.use((t) => { +Je.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, 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"))); + return t.headers.Authorization = e ? `Bearer ${e} ` : void 0, Je.inc(), t; +}, (t) => (Je.done(), Promise.reject({ code: -1, msg: t }))), De.interceptors.response.use(({ data: t, headers: e }) => (Je.done(), { ...t, res: e == null ? void 0 : e.res }), function(t) { + return Je.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 && Ee.redirect(Ve.get("Common.WEBSITE_LOGIN_PAGE"))); +const Sr = new on(De, { delayResponse: 200 }); var Ie, qe; -const J = class J { +const _ = class _ { constructor() { - P(this, "appUrl", ""); - 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); + N(this, "appUrl", ""); + return c(_, Ie) || (U(_, qe, new jt()), U(_, Ie, new Proxy(this, { get: (e, i) => i === "init" ? e.init : i === "appUrl" ? e.appUrl : i === "mock" ? Sr : c(_, qe)[i] }))), c(_, Ie); } init(e, i, n) { - De.defaults.baseURL = this.appUrl = n, De.defaults.timeout = 15e3, c(J, qe).init(e, i, De); - } - get driver() { - return De; + De.defaults.baseURL = this.appUrl = n, De.defaults.timeout = 15e3, c(_, qe).init(e, i, De); } }; -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; +Ie = new WeakMap(), qe = new WeakMap(), x(_, Ie, null), x(_, qe, null), N(_, "getInstance", () => c(_, Ie) ?? U(_, Ie, new _())); +let qt = _; const I = qt.getInstance(); class Qt extends Error { constructor(e, i) { - super(i), Error.captureStackTrace && Error.captureStackTrace(this, Qt), !i instanceof Je && (this.name = `${e} Error Runtime`); + super(i), Error.captureStackTrace && Error.captureStackTrace(this, Qt), !i instanceof _e && (this.name = `${e} Error Runtime`); } } -class Je extends Error { +class _e extends Error { constructor(e, ...i) { - super(...i), Error.captureStackTrace && Error.captureStackTrace(this, Je), this.name = `${e} Not Found`; + super(...i), Error.captureStackTrace && Error.captureStackTrace(this, _e), this.name = `${e} Not Found`; } } const At = "mine", ft = "token"; -var Oe, Ke; +var Re, Ke; const he = class he { constructor() { - v(this, Ke, /* @__PURE__ */ new Map()); - P(this, "setVendor", (e, i) => c(this, Ke).set(e, new ki(i, async (n, r) => { + x(this, Ke, /* @__PURE__ */ new Map()); + N(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; @@ -1025,25 +1023,25 @@ const he = class he { case typeof (a = (s = n.default) == null ? void 0 : s[`./${r}/index.js`]): return a(); } - throw new Je(r); + throw new _e(r); }))); - P(this, "getWidgetComponent", async (e) => { + N(this, "getWidgetComponent", async (e) => { if (!e) throw "getWidgetComponent widget is required"; if (e != null && e.startsWith("blob:") || e != null && e.startsWith("http:") || e != null && e.startsWith("https:")) return await import(e); const [, i] = e == null ? void 0 : e.split("@pkg/"); - if (!i) throw new Je(e); + if (!i) throw new _e(e); try { 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); } }); - P(this, "getRoutes", () => I.get("/api/my-router").then((e) => [...e, { uuid: "data-list-setting", isLayout: !0, uri: "/data-list-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/DataListSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-setting", isLayout: !0, uri: "/grid-layout-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-form-setting", isLayout: !0, uri: "/grid-layout-form-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutFormSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "resource-api-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ResourceApiSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "charts-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ChartsSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "fsm-setting", isLayout: !0, uri: "/fsm-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/FsmSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "component-setting", isLayout: !0, uri: "/component-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ComponentSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "login", uri: "/login", name: "登录", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/Login" }, { uuid: "not-found", uri: "*", name: "Not Found", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/NotFound" }].map(({ uuid: i, ...n }) => [i, { uuid: i, ...n }])).then((e) => new Map(e))); - P(this, "getMenus", () => I.get("/api/my-menu")); - P(this, "getConfigure", () => I.get("api/init-configure")); - P(this, "getWidgetOperationAuth", () => I.get("/api/init-widget-operation-auth").then((e) => e.reduce((i, { uuid: n, auth: r }) => [...i, [n, r]], []))); - P(this, "getPhoneNumber", (e) => I.get(`/api/user-wx-phone-number/${e}`)); - P(this, "getUserToken", () => { + N(this, "getRoutes", () => I.get("/api/my-router").then((e) => [...e, { uuid: "data-list-setting", isLayout: !0, uri: "/data-list-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/DataListSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-setting", isLayout: !0, uri: "/grid-layout-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-form-setting", isLayout: !0, uri: "/grid-layout-form-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutFormSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "resource-api-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ResourceApiSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "charts-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ChartsSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "fsm-setting", isLayout: !0, uri: "/fsm-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/FsmSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "component-setting", isLayout: !0, uri: "/component-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ComponentSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "login", uri: "/login", name: "登录", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/Login" }, { uuid: "not-found", uri: "*", name: "Not Found", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/NotFound" }].map(({ uuid: i, ...n }) => [i, { uuid: i, ...n }])).then((e) => new Map(e))); + N(this, "getMenus", () => I.get("/api/my-menu")); + N(this, "getConfigure", () => I.get("api/init-configure")); + N(this, "getWidgetOperationAuth", () => I.get("/api/init-widget-operation-auth").then((e) => e.reduce((i, { uuid: n, auth: r }) => [...i, [n, r]], []))); + N(this, "getPhoneNumber", (e) => I.get(`/api/user-wx-phone-number/${e}`)); + N(this, "getUserToken", () => { const e = window.localStorage.getItem(ft); if (!e) return ""; const i = e.split("."); @@ -1052,14 +1050,14 @@ const he = class he { if (Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) - n > 2592e3) throw "登录令牌已过期, 请重新登录!"; return e; }); - P(this, "checkUserToken", () => { + N(this, "checkUserToken", () => { try { return !!this.getUserToken(); } catch { return !1; } }); - P(this, "getUserInfo", (e = !0) => { + N(this, "getUserInfo", (e = !0) => { var i; try { const n = this.getUserToken(); @@ -1071,61 +1069,61 @@ const he = class he { } return Promise.resolve(null); }); - P(this, "login", (e, i, n = {}) => I.post("/api/user-token", { username: e, passwd: on.hash(i), platform: "web", ...n }).then(({ token: r }) => (window.localStorage.setItem(ft, r), r)).then(async (r) => (await this.initAppEnv(), r))); - P(this, "logout", (e) => (window.localStorage.removeItem(At), window.localStorage.removeItem(ft), e == null ? void 0 : e())); - P(this, "initAppEnv", async () => { + N(this, "login", (e, i, n = {}) => I.post("/api/user-token", { username: e, passwd: sn.hash(i), platform: "web", ...n }).then(({ token: r }) => (window.localStorage.setItem(ft, r), r)).then(async (r) => (await this.initAppEnv(), r))); + N(this, "logout", (e) => (window.localStorage.removeItem(At), window.localStorage.removeItem(ft), e == null ? void 0 : e())); + N(this, "initAppEnv", async () => { const [e, i, n, r] = await Promise.all([this.getWidgetOperationAuth(), this.getRoutes(), this.getMenus(), this.getConfigure()]); - return Si.init(e), Ve.init(r), $e.init(i, n), bt.init(Ve.get("Common.ICONFONT")), { widgetOperationAuth: e, routes: i, menus: n, configures: r }; + return Si.init(e), Ve.init(r), Ee.init(i, n), bt.init(Ve.get("Common.ICONFONT")), { widgetOperationAuth: e, routes: i, menus: n, configures: r }; }); - if (c(he, Oe)) return c(he, Oe); + if (c(he, Re)) return c(he, Re); } }; -Oe = new WeakMap(), Ke = new WeakMap(), v(he, Oe, null), P(he, "getInstance", () => (c(he, Oe) || U(he, Oe, new he()), c(he, Oe))); +Re = new WeakMap(), Ke = new WeakMap(), x(he, Re, null), N(he, "getInstance", () => (c(he, Re) || U(he, Re, new he()), c(he, Re))); let Kt = he; -const se = Kt.getInstance(), Er = $.createContext({ user: {}, initUser: () => { -}, initUserComplete: !1 }), Sr = $.createContext({ set: () => { +const se = Kt.getInstance(), xr = E.createContext({ user: {}, initUser: () => { +}, initUserComplete: !1 }), vr = E.createContext({ set: () => { }, get: () => { }, assign: () => { }, currentRoute: () => { -} }), Zt = (t) => !!(t != null && t.name) && (t.prototype instanceof $.Component || /^[A-Z]/.test(t.name)), vr = (t, e) => { +} }), Zt = (t) => !!(t != null && t.name) && (t.prototype instanceof E.Component || /^[A-Z]/.test(t.name)), Nr = (t, e) => { if (!t || typeof window > "u") return; 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, _e, ke, me, fe, Q, Y, H, ye, tt, it, nt, rt, vt, at; +}, Pr = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: xr, AppGlobalParamsContext: vr, cache: ki, configure: Ve, default: se, func: Fe, http: I, insertStyle: Nr, isReactComponent: Zt, route: Ee }, Symbol.toStringTag, { value: "Module" })); +var Ce, He, ke, me, fe, Q, Y, J, ye, tt, it, nt, rt, xt, at; const ei = class ei { constructor(e, i = "/") { - v(this, Ce, "/"); - v(this, _e, /* @__PURE__ */ new Set()); - v(this, ke, (e) => { - for (const i of c(this, _e)) try { + x(this, Ce, "/"); + x(this, He, /* @__PURE__ */ new Set()); + x(this, ke, (e) => { + for (const i of c(this, He)) try { i(e); } catch (n) { console.error("Error in VirtualFS event listener:", n); } }); - v(this, me, (e) => { + x(this, me, (e) => { const i = Date.now(); if (e && (e.lastModified = i), c(this, Ce) != "/") { - const n = c(this, H).call(this, c(this, Ce)); + const n = c(this, J).call(this, c(this, Ce)); n && (n.lastModified = i); } this.root.lastModified = i; }); - v(this, fe, (e) => { + x(this, fe, (e) => { let i = ce.normalize(e); return i.startsWith("/") || (i = "/" + i), i.length > 1 && i.endsWith("/") && (i = i.slice(0, -1)), i; }); - v(this, Q, (e) => { + x(this, Q, (e) => { const i = ce.join(c(this, Ce), e); return c(this, fe).call(this, i); }); - v(this, Y, (e) => { + x(this, Y, (e) => { if (!e || typeof e != "string") return !1; const i = c(this, fe).call(this, e); return !i.includes("..") && i.startsWith("/"); }); - v(this, H, (e) => { + x(this, J, (e) => { var a; const i = c(this, fe).call(this, e); if (i === "/") return this.root; @@ -1139,13 +1137,13 @@ const ei = class ei { } return r; }); - v(this, ye, (e) => { + x(this, ye, (e) => { const i = c(this, fe).call(this, e), n = ce.basename(i), r = ce.dirname(i); - return { parent: c(this, H).call(this, r), name: n }; + return { parent: c(this, J).call(this, r), name: n }; }); - v(this, tt, (e, i, n) => n === !1 ? e : n === "root" ? e.map((r) => ce.join(i, r)) : n === !0 || n === "working" ? e.map((r) => ce.relative(c(this, Ce), ce.join(i, r))) : e); - v(this, it, async (e, i, n, r = "") => { - const a = [], o = c(this, H).call(this, e); + x(this, tt, (e, i, n) => n === !1 ? e : n === "root" ? e.map((r) => ce.join(i, r)) : n === !0 || n === "working" ? e.map((r) => ce.relative(c(this, Ce), ce.join(i, r))) : e); + x(this, it, async (e, i, n, r = "") => { + const a = [], o = c(this, J).call(this, e); if (!o || o.type !== "dir") return a; const s = o.children; for (const l of s) { @@ -1162,16 +1160,16 @@ const ei = class ei { } return a; }); - v(this, nt, async (e, i, n, r = "") => { - const a = [], o = Array.isArray(i) ? i : [i], s = c(this, H).call(this, e); + x(this, nt, async (e, i, n, r = "") => { + const a = [], o = Array.isArray(i) ? i : [i], s = c(this, J).call(this, e); if (!s || s.type !== "dir") return a; if (!n) { for (const u of o) if (c(this, rt).call(this, u)) { - const d = await c(this, vt).call(this, e, u); + const d = await c(this, xt).call(this, e, u); a.push(...d); } else { const d = ce.join(e, u), p = c(this, fe).call(this, d); - c(this, H).call(this, p) && a.push(u); + c(this, J).call(this, p) && a.push(u); } return a; } @@ -1196,15 +1194,15 @@ const ei = class ei { } return a; }); - v(this, rt, (e) => /[*?[\]{}]/.test(e)); - v(this, vt, async (e, i) => { - const n = [], r = c(this, H).call(this, e); + x(this, rt, (e) => /[*?[\]{}]/.test(e)); + x(this, xt, async (e, i) => { + const n = [], r = c(this, J).call(this, e); if (!r || r.type !== "dir") return n; const a = r.children.map((o) => o.name); for (const o of a) c(this, at).call(this, o, i) && n.push(o); return n; }); - v(this, at, (e, i) => { + x(this, at, (e, i) => { const n = i.replace(/\./g, "\\.").replace(/\*/g, ".*").replace(/\?/g, ".").replace(/\{([^}]+)\}/g, (r, a) => "(" + a.split(",").join("|") + ")"); return new RegExp(`^${n}$`).test(e); }); @@ -1214,14 +1212,14 @@ const ei = class ei { async stat(e) { const i = c(this, Q).call(this, e); if (!c(this, Y).call(this, i)) throw new Error(`EINVAL: invalid path '${e}'`); - const n = c(this, H).call(this, i); + const n = c(this, J).call(this, i); if (!n) throw new Error(`ENOENT: no such file or directory, stat '${e}'`); return { isFile: () => n.type === "file", isDirectory: () => n.type === "dir", lastModified: n.lastModified }; } async dir(e) { const i = c(this, Q).call(this, e); if (!c(this, Y).call(this, i)) throw new Error(`EINVAL: invalid path '${e}'`); - const n = c(this, H).call(this, i); + const n = c(this, J).call(this, i); if (!n) throw new Error(`ENOENT: no such file or directory, scandir '${e}'`); if (n.type !== "dir") throw new Error(`ENOTDIR: not a directory, scandir '${e}'`); return n.children.map((r) => r.name); @@ -1229,7 +1227,7 @@ const ei = class ei { async readFile(e) { const i = c(this, Q).call(this, e); if (!c(this, Y).call(this, i)) throw new Error(`EINVAL: invalid path '${e}'`); - const n = c(this, H).call(this, i); + const n = c(this, J).call(this, i); if (!n) throw new Error(`ENOENT: no such file or directory, open '${e}'`); if (n.type !== "file") throw new Error("EISDIR: illegal operation on a directory, read"); return n.content || ""; @@ -1251,7 +1249,7 @@ const ei = class ei { const a = n.split("/").filter((s) => s); let o = "/"; for (const s of a) - if (o = ce.join(o, s), !c(this, H).call(this, o)) { + if (o = ce.join(o, s), !c(this, J).call(this, o)) { const { parent: l, name: u } = c(this, ye).call(this, o); if (l && l.type === "dir") { const d = { name: u, type: "dir", children: [], lastModified: Date.now() }; @@ -1293,24 +1291,24 @@ const ei = class ei { const n = c(this, Q).call(this, e), r = c(this, Q).call(this, i); if (!c(this, Y).call(this, n)) throw new Error(`EINVAL: invalid path '${e}'`); if (!c(this, Y).call(this, r)) throw new Error(`EINVAL: invalid path '${i}'`); - if (!c(this, H).call(this, n)) throw new Error(`ENOENT: no such file or directory, rename '${e}' -> '${i}'`); + if (!c(this, J).call(this, n)) throw new Error(`ENOENT: no such file or directory, rename '${e}' -> '${i}'`); const { parent: a, name: o } = c(this, ye).call(this, n), { parent: s, name: l } = c(this, ye).call(this, r); if (!s) throw new Error(`ENOENT: no such file or directory, rename '${e}' -> '${i}'`); - if (c(this, H).call(this, r)) throw new Error(`EEXIST: file already exists, rename '${e}' -> '${i}'`); + if (c(this, J).call(this, r)) throw new Error(`EEXIST: file already exists, rename '${e}' -> '${i}'`); const u = a.children.findIndex((p) => p.name === o), d = { ...a.children[u], name: l, lastModified: Date.now() }; a.children.splice(u, 1), s.children.push(d), c(this, me).call(this, a), a !== s && c(this, me).call(this, s), c(this, ke).call(this, { action: "rename", path: r, oldPath: n, type: d.type, timestamp: Date.now() }); } async exists(e) { const i = c(this, Q).call(this, e); - return c(this, Y).call(this, i) ? c(this, H).call(this, i) !== null : !1; + return c(this, Y).call(this, i) ? c(this, J).call(this, i) !== null : !1; } getLastModified() { return this.root.lastModified; } subscribe(e) { if (typeof e != "function") throw new Error("Callback must be a function"); - return c(this, _e).add(e), () => { - c(this, _e).delete(e); + return c(this, He).add(e), () => { + c(this, He).delete(e); }; } getWorkingDirectory() { @@ -1319,7 +1317,7 @@ const ei = class ei { scope(e = "/") { const i = c(this, fe).call(this, e); if (!c(this, Y).call(this, i)) throw new Error(`EINVAL: invalid path '${e}'`); - const n = c(this, H).call(this, i); + const n = c(this, J).call(this, i); if (!n) throw new Error(`ENOENT: no such file or directory '${e}'`); if (n.type !== "dir") throw new Error(`ENOTDIR: not a directory '${e}'`); return n.children ?? (n.children = []), n.lastModified ?? (n.lastModified = Date.now()), new ei(this.root, i); @@ -1327,7 +1325,7 @@ const ei = class ei { async findFiles(e, i, n = {}) { const r = c(this, Q).call(this, e); if (!c(this, Y).call(this, r)) throw new Error(`EINVAL: invalid path '${e}'`); - const a = c(this, H).call(this, r); + const a = c(this, J).call(this, r); if (!a) throw new Error(`ENOENT: no such file or directory '${e}'`); if (a.type !== "dir") throw new Error(`ENOTDIR: not a directory '${e}'`); const { recursive: o = !1, fullPath: s = !1 } = n; @@ -1339,9 +1337,9 @@ const ei = class ei { return c(this, tt).call(this, l, r, s); } }; -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(); +Ce = new WeakMap(), He = new WeakMap(), ke = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), Q = new WeakMap(), Y = new WeakMap(), J = new WeakMap(), ye = new WeakMap(), tt = new WeakMap(), it = new WeakMap(), nt = new WeakMap(), rt = new WeakMap(), xt = new WeakMap(), at = new WeakMap(); let yi = ei; -const Pr = async (t, e = "/", i = "") => { +const Tr = async (t, e = "/", i = "") => { try { const n = await t.stat(e), r = e === "/" ? "/" : ce.basename(e), a = { title: r, key: i ? `${i}${e}` : e, isLeaf: n.isFile() }; if (n.isDirectory()) { @@ -1361,7 +1359,7 @@ const Pr = async (t, e = "/", i = "") => { for (const u of [...s, ...l]) { const d = e === "/" ? `/${u}` : `${e}/${u}`; try { - const p = await Pr(t, d, i); + const p = await Tr(t, d, i); a.children.push(p); } catch (p) { console.warn(`Failed to process ${d}:`, p.message); @@ -1375,99 +1373,99 @@ const Pr = async (t, e = "/", i = "") => { } }; export { - xt as $, + vt as $, Fi as A, - Oi as B, - qn as C, + Ri as B, + Kn as C, wt as D, - Un as E, - Bn as F, - na as G, - _n as H, + qn as E, + Wn as F, + aa as G, + Jn as H, Yt as I, ne as J, - Kn as K, - Xn as L, - Vn as M, - Dn as N, - An as O, - Ln as P, - Zr as Q, + Hn as K, + Qn as L, + Mn as M, + zn as N, + Ln as O, + jn as P, + ta as Q, Ai as R, - ea as S, + ia as S, Ti as T, Dt as U, - jn as V, - In as W, - Qn as X, - Zn as Y, - ra as Z, - aa as _, - vi as a, - oa as a0, - sa as a1, + In as V, + Vn as W, + Zn as X, + er as Y, + oa as Z, + sa as _, + xi as a, + la as a0, + ca as a1, lt as a2, ct as a3, - la as a4, - ca as a5, - cr as a6, + da as a4, + ua as a5, + dr as a6, Xt as a7, Gt as a8, zi as a9, - $e as aA, - Er as aB, - Sr as aC, + Ee as aA, + xr as aB, + vr as aC, yi as aD, - Pr as aE, - tr as aa, - ir as ab, - nr as ac, - rr as ad, - ar as ae, - or as af, - da as ag, + Tr as aE, + ir as aa, + nr as ab, + rr as ac, + ar as ad, + or as ae, + sr as af, + pa as ag, bt as ah, - N as ai, + P as ai, Si as aj, - hr as ak, + mr as ak, G as al, ot as am, - $i as an, + Ei as an, Z as ao, ee as ap, - Kr as aq, + Jr as aq, _r as ar, - Hr as as, + Yr as as, se as at, Zt as au, - vr as av, + Nr as av, I as aw, ki as ax, Ve as ay, Fe as az, Pn as b, st as c, - xi as d, - Yr as e, - Gr as f, - xn as g, - Xr as h, - Nn as i, + vi as d, + Xr as e, + Qr as f, + Nn as g, + Zr as h, + Tn as i, Rn as j, - Qr as k, - Ri as l, - Tn as m, - ta as n, - Jt as o, + ea as k, + Oi as l, + On as m, + na as n, + _t as o, Li as p, Vi as q, - Ot as r, - Yn as s, + Rt as r, + Gn as s, oe as t, - Jr as u, + Gr as u, Ii as v, - Hn as w, - Jn as x, - ia as y, + _n as w, + Yn as x, + ra as y, ji as z }; diff --git a/dist/common/vender-BkiRbACr.js b/dist/common/vender-BkiRbACr.js new file mode 100644 index 0000000..09b3606 --- /dev/null +++ b/dist/common/vender-BkiRbACr.js @@ -0,0 +1,1864 @@ +function je(t, e) { + return function() { + return t.apply(e, arguments); + }; +} +const { toString: sr } = Object.prototype, { getPrototypeOf: Jt } = Object, ft = (bt = /* @__PURE__ */ Object.create(null), (t) => { + const e = sr.call(t); + return bt[e] || (bt[e] = e.slice(8, -1).toLowerCase()); +}); +var bt; +const B = (t) => (t = t.toLowerCase(), (e) => ft(e) === t), gt = (t) => (e) => typeof e === t, { isArray: J } = Array, Z = gt("undefined"), Xt = B("ArrayBuffer"), ir = gt("string"), k = gt("function"), Qt = gt("number"), ot = (t) => t !== null && typeof t == "object", st = (t) => { + if (ft(t) !== "object") return !1; + const e = Jt(t); + return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t); +}, ar = B("Date"), cr = B("File"), ur = B("Blob"), lr = B("FileList"), fr = B("URLSearchParams"), [hr, dr, pr, gr] = ["ReadableStream", "Request", "Response", "Headers"].map(B); +function Y(t, e, { allOwnKeys: r = !1 } = {}) { + if (t == null) return; + let n, o; + if (typeof t != "object" && (t = [t]), J(t)) for (n = 0, o = t.length; n < o; n++) e.call(null, t[n], n, t); + else { + const c = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = c.length; + let m; + for (n = 0; n < a; n++) m = c[n], e.call(null, t[m], m, t); + } +} +function Zt(t, e) { + e = e.toLowerCase(); + const r = Object.keys(t); + let n, o = r.length; + for (; o-- > 0; ) if (n = r[o], e === n.toLowerCase()) return n; + return null; +} +const ke = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yt = (t) => !Z(t) && t !== ke, yr = (wt = typeof Uint8Array < "u" && Jt(Uint8Array), (t) => wt && t instanceof wt); +var wt; +const mr = B("HTMLFormElement"), te = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), br = B("RegExp"), ee = (t, e) => { + const r = Object.getOwnPropertyDescriptors(t), n = {}; + Y(r, (o, c) => { + let a; + (a = e(o, c, t)) !== !1 && (n[c] = a || o); + }), Object.defineProperties(t, n); +}, vt = "abcdefghijklmnopqrstuvwxyz", re = "0123456789", ne = { DIGIT: re, ALPHA: vt, ALPHA_DIGIT: vt + vt.toUpperCase() + re }, wr = B("AsyncFunction"), v = { isArray: J, isArrayBuffer: Xt, isBuffer: function(t) { + return t !== null && !Z(t) && t.constructor !== null && !Z(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t); +}, isFormData: (t) => { + let e; + return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = ft(t)) === "formdata" || e === "object" && k(t.toString) && t.toString() === "[object FormData]")); +}, isArrayBufferView: function(t) { + let e; + return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && Xt(t.buffer), e; +}, isString: ir, isNumber: Qt, isBoolean: (t) => t === !0 || t === !1, isObject: ot, isPlainObject: st, isReadableStream: hr, isRequest: dr, isResponse: pr, isHeaders: gr, isUndefined: Z, isDate: ar, isFile: cr, isBlob: ur, isRegExp: br, isFunction: k, isStream: (t) => ot(t) && k(t.pipe), isURLSearchParams: fr, isTypedArray: yr, isFileList: lr, forEach: Y, merge: function t() { + const { caseless: e } = Yt(this) && this || {}, r = {}, n = (o, c) => { + const a = e && Zt(r, c) || c; + st(r[a]) && st(o) ? r[a] = t(r[a], o) : st(o) ? r[a] = t({}, o) : J(o) ? r[a] = o.slice() : r[a] = o; + }; + for (let o = 0, c = arguments.length; o < c; o++) arguments[o] && Y(arguments[o], n); + return r; +}, extend: (t, e, r, { allOwnKeys: n } = {}) => (Y(e, (o, c) => { + r && k(o) ? t[c] = je(o, r) : t[c] = o; +}, { 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 o, c, a; + const m = {}; + if (e = e || {}, t == null) return e; + do { + for (o = Object.getOwnPropertyNames(t), c = o.length; c-- > 0; ) a = o[c], n && !n(a, t, e) || m[a] || (e[a] = t[a], m[a] = !0); + t = r !== !1 && Jt(t); + } while (t && (!r || r(t, e)) && t !== Object.prototype); + return e; +}, kindOf: ft, kindOfTest: B, endsWith: (t, e, r) => { + t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; + const n = t.indexOf(e, r); + return n !== -1 && n === r; +}, toArray: (t) => { + if (!t) return null; + if (J(t)) return t; + let e = t.length; + if (!Qt(e)) return null; + const r = new Array(e); + for (; e-- > 0; ) r[e] = t[e]; + return r; +}, forEachEntry: (t, e) => { + const r = (t && t[Symbol.iterator]).call(t); + let n; + for (; (n = r.next()) && !n.done; ) { + const o = n.value; + e.call(t, o[0], o[1]); + } +}, matchAll: (t, e) => { + let r; + const n = []; + for (; (r = t.exec(e)) !== null; ) n.push(r); + return n; +}, isHTMLForm: mr, hasOwnProperty: te, hasOwnProp: te, reduceDescriptors: ee, freezeMethods: (t) => { + ee(t, (e, r) => { + if (k(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1; + const n = t[r]; + k(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { + throw Error("Can not rewrite read-only method '" + r + "'"); + })); + }); +}, toObjectSet: (t, e) => { + const r = {}, n = (o) => { + o.forEach((c) => { + r[c] = !0; + }); + }; + return J(t) ? n(t) : n(String(t).split(e)), r; +}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) { + return r.toUpperCase() + n; +}), noop: () => { +}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Zt, global: ke, isContextDefined: Yt, ALPHABET: ne, generateString: (t = 16, e = ne.ALPHA_DIGIT) => { + let r = ""; + const { length: n } = e; + for (; t--; ) r += e[Math.random() * n | 0]; + return r; +}, isSpecCompliantForm: function(t) { + return !!(t && k(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); +}, toJSONObject: (t) => { + const e = new Array(10), r = (n, o) => { + if (ot(n)) { + if (e.indexOf(n) >= 0) return; + if (!("toJSON" in n)) { + e[o] = n; + const c = J(n) ? [] : {}; + return Y(n, (a, m) => { + const y = r(a, o + 1); + !Z(y) && (c[m] = y); + }), e[o] = void 0, c; + } + } + return n; + }; + return r(t, 0); +}, isAsyncFn: wr, isThenable: (t) => t && (ot(t) || k(t)) && k(t.then) && k(t.catch) }; +function C(t, e, r, n, o) { + 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), o && (this.response = o); +} +v.inherits(C, Error, { toJSON: function() { + return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: v.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; +} }); +const oe = C.prototype, se = {}; +["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) => { + se[t] = { value: t }; +}), Object.defineProperties(C, se), Object.defineProperty(oe, "isAxiosError", { value: !0 }), C.from = (t, e, r, n, o, c) => { + const a = Object.create(oe); + return v.toFlatObject(t, a, function(m) { + return m !== Error.prototype; + }, (m) => m !== "isAxiosError"), C.call(a, t.message, e, r, n, o), a.cause = t, a.name = t.name, c && Object.assign(a, c), a; +}; +function Et(t) { + return v.isPlainObject(t) || v.isArray(t); +} +function Ue(t) { + return v.endsWith(t, "[]") ? t.slice(0, -2) : t; +} +function ie(t, e, r) { + return t ? t.concat(e).map(function(n, o) { + return n = Ue(n), !r && o ? "[" + n + "]" : n; + }).join(r ? "." : "") : e; +} +const vr = v.toFlatObject(v, {}, null, function(t) { + return /^is[A-Z]/.test(t); +}); +function ht(t, e, r) { + if (!v.isObject(t)) throw new TypeError("target must be an object"); + e = e || new FormData(); + const n = (r = v.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, E) { + return !v.isUndefined(E[w]); + })).metaTokens, o = r.visitor || g, c = r.dots, a = r.indexes, m = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e); + if (!v.isFunction(o)) throw new TypeError("visitor must be a function"); + function y(w) { + if (w === null) return ""; + if (v.isDate(w)) return w.toISOString(); + if (!m && v.isBlob(w)) throw new C("Blob is not supported. Use a Buffer instead."); + return v.isArrayBuffer(w) || v.isTypedArray(w) ? m && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w; + } + function g(w, E, d) { + let l = w; + if (w && !d && typeof w == "object") { + if (v.endsWith(E, "{}")) E = n ? E : E.slice(0, -2), w = JSON.stringify(w); + else if (v.isArray(w) && function(i) { + return v.isArray(i) && !i.some(Et); + }(w) || (v.isFileList(w) || v.endsWith(E, "[]")) && (l = v.toArray(w))) return E = Ue(E), l.forEach(function(i, u) { + !v.isUndefined(i) && i !== null && e.append(a === !0 ? ie([E], u, c) : a === null ? E : E + "[]", y(i)); + }), !1; + } + return !!Et(w) || (e.append(ie(d, E, c), y(w)), !1); + } + const s = [], b = Object.assign(vr, { defaultVisitor: g, convertValue: y, isVisitable: Et }); + if (!v.isObject(t)) throw new TypeError("data must be an object"); + return function w(E, d) { + if (!v.isUndefined(E)) { + if (s.indexOf(E) !== -1) throw Error("Circular reference detected in " + d.join(".")); + s.push(E), v.forEach(E, function(l, i) { + (!(v.isUndefined(l) || l === null) && o.call(e, l, v.isString(i) ? i.trim() : i, d, b)) === !0 && w(l, d ? d.concat(i) : [i]); + }), s.pop(); + } + }(t), e; +} +function ae(t) { + const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; + return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) { + return e[r]; + }); +} +function zt(t, e) { + this._pairs = [], t && ht(t, this, e); +} +const ce = zt.prototype; +function Er(t) { + return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); +} +function Be(t, e, r) { + if (!e) return t; + const n = r && r.encode || Er, o = r && r.serialize; + let c; + if (c = o ? o(e, r) : v.isURLSearchParams(e) ? e.toString() : new zt(e, r).toString(n), c) { + const a = t.indexOf("#"); + a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + c; + } + return t; +} +ce.append = function(t, e) { + this._pairs.push([t, e]); +}, ce.toString = function(t) { + const e = t ? function(r) { + return t.call(this, r, ae); + } : ae; + return this._pairs.map(function(r) { + return e(r[0]) + "=" + e(r[1]); + }, "").join("&"); +}; +class ue { + constructor() { + this.handlers = []; + } + use(e, r, n) { + return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; + } + eject(e) { + this.handlers[e] && (this.handlers[e] = null); + } + clear() { + this.handlers && (this.handlers = []); + } + forEach(e) { + v.forEach(this.handlers, function(r) { + r !== null && e(r); + }); + } +} +const Me = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Ar = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : zt, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Vt = typeof window < "u" && typeof document < "u", Or = (le = typeof navigator < "u" && navigator.product, Vt && ["ReactNative", "NativeScript", "NS"].indexOf(le) < 0); +var le; +const Sr = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cr = Vt && window.location.href || "http://localhost", U = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: Vt, hasStandardBrowserEnv: Or, hasStandardBrowserWebWorkerEnv: Sr, origin: Cr }, Symbol.toStringTag, { value: "Module" })), ...Ar }; +function Le(t) { + function e(r, n, o, c) { + let a = r[c++]; + if (a === "__proto__") return !0; + const m = Number.isFinite(+a), y = c >= r.length; + return a = !a && v.isArray(o) ? o.length : a, y ? (v.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !m) : (o[a] && v.isObject(o[a]) || (o[a] = []), e(r, n, o[a], c) && v.isArray(o[a]) && (o[a] = function(g) { + const s = {}, b = Object.keys(g); + let w; + const E = b.length; + let d; + for (w = 0; w < E; w++) d = b[w], s[d] = g[d]; + return s; + }(o[a])), !m); + } + if (v.isFormData(t) && v.isFunction(t.entries)) { + const r = {}; + return v.forEachEntry(t, (n, o) => { + e(function(c) { + return v.matchAll(/\w+|\[(\w*)]/g, c).map((a) => a[0] === "[]" ? "" : a[1] || a[0]); + }(n), o, r, 0); + }), r; + } + return null; +} +const rt = { transitional: Me, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) { + const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, o = v.isObject(t); + if (o && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t)) return n ? JSON.stringify(Le(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 c; + if (o) { + if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(a, m) { + return ht(a, new U.classes.URLSearchParams(), Object.assign({ visitor: function(y, g, s, b) { + return U.isNode && v.isBuffer(y) ? (this.append(g, y.toString("base64")), !1) : b.defaultVisitor.apply(this, arguments); + } }, m)); + }(t, this.formSerializer).toString(); + if ((c = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + const a = this.env && this.env.FormData; + return ht(c ? { "files[]": t } : t, a && new a(), this.formSerializer); + } + } + return o || n ? (e.setContentType("application/json", !1), function(a, m, y) { + if (v.isString(a)) try { + return (m || JSON.parse)(a), v.trim(a); + } catch (g) { + if (g.name !== "SyntaxError") throw g; + } + return (y || JSON.stringify)(a); + }(t)) : t; +}], transformResponse: [function(t) { + const e = this.transitional || rt.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 o = !(e && e.silentJSONParsing) && n; + try { + return JSON.parse(t); + } catch (c) { + if (o) + throw c.name === "SyntaxError" ? C.from(c, C.ERR_BAD_RESPONSE, this, null, this.response) : c; + } + } + return t; +}], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: U.classes.FormData, Blob: U.classes.Blob }, validateStatus: function(t) { + return t >= 200 && t < 300; +}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; +v.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { + rt.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"]), fe = Symbol("internals"); +function X(t) { + return t && String(t).trim().toLowerCase(); +} +function it(t) { + return t === !1 || t == null ? t : v.isArray(t) ? t.map(it) : String(t); +} +function At(t, e, r, n, o) { + return v.isFunction(n) ? n.call(this, e, r) : (o && (e = r), v.isString(e) ? v.isString(n) ? e.indexOf(n) !== -1 : v.isRegExp(n) ? n.test(e) : void 0 : void 0); +} +let j = class { + constructor(t) { + t && this.set(t); + } + set(t, e, r) { + const n = this; + function o(a, m, y) { + const g = X(m); + if (!g) throw new Error("header name must be a non-empty string"); + const s = v.findKey(n, g); + (!s || n[s] === void 0 || y === !0 || y === void 0 && n[s] !== !1) && (n[s || m] = it(a)); + } + const c = (a, m) => v.forEach(a, (y, g) => o(y, g, m)); + if (v.isPlainObject(t) || t instanceof this.constructor) c(t, e); + else if (v.isString(t) && (t = t.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())) c(((a) => { + const m = {}; + let y, g, s; + return a && a.split(` +`).forEach(function(b) { + s = b.indexOf(":"), y = b.substring(0, s).trim().toLowerCase(), g = b.substring(s + 1).trim(), !y || m[y] && Rr[y] || (y === "set-cookie" ? m[y] ? m[y].push(g) : m[y] = [g] : m[y] = m[y] ? m[y] + ", " + g : g); + }), m; + })(t), e); + else if (v.isHeaders(t)) for (const [a, m] of t.entries()) o(m, a, r); + else t != null && o(e, t, r); + return this; + } + get(t, e) { + if (t = X(t)) { + const r = v.findKey(this, t); + if (r) { + const n = this[r]; + if (!e) return n; + if (e === !0) return function(o) { + const c = /* @__PURE__ */ Object.create(null), a = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let m; + for (; m = a.exec(o); ) c[m[1]] = m[2]; + return c; + }(n); + if (v.isFunction(e)) return e.call(this, n, r); + if (v.isRegExp(e)) return e.exec(n); + throw new TypeError("parser must be boolean|regexp|function"); + } + } + } + has(t, e) { + if (t = X(t)) { + const r = v.findKey(this, t); + return !(!r || this[r] === void 0 || e && !At(0, this[r], r, e)); + } + return !1; + } + delete(t, e) { + const r = this; + let n = !1; + function o(c) { + if (c = X(c)) { + const a = v.findKey(r, c); + !a || e && !At(0, r[a], a, e) || (delete r[a], n = !0); + } + } + return v.isArray(t) ? t.forEach(o) : o(t), n; + } + clear(t) { + const e = Object.keys(this); + let r = e.length, n = !1; + for (; r--; ) { + const o = e[r]; + t && !At(0, this[o], o, t, !0) || (delete this[o], n = !0); + } + return n; + } + normalize(t) { + const e = this, r = {}; + return v.forEach(this, (n, o) => { + const c = v.findKey(r, o); + if (c) return e[c] = it(n), void delete e[o]; + const a = t ? function(m) { + return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (y, g, s) => g.toUpperCase() + s); + }(o) : String(o).trim(); + a !== o && delete e[o], e[a] = it(n), r[a] = !0; + }), this; + } + concat(...t) { + return this.constructor.concat(this, ...t); + } + toJSON(t) { + const e = /* @__PURE__ */ Object.create(null); + return v.forEach(this, (r, n) => { + r != null && r !== !1 && (e[n] = t && v.isArray(r) ? r.join(", ") : r); + }), e; + } + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + toString() { + return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(` +`); + } + get [Symbol.toStringTag]() { + return "AxiosHeaders"; + } + static from(t) { + return t instanceof this ? t : new this(t); + } + static concat(t, ...e) { + const r = new this(t); + return e.forEach((n) => r.set(n)), r; + } + static accessor(t) { + const e = (this[fe] = this[fe] = { accessors: {} }).accessors, r = this.prototype; + function n(o) { + const c = X(o); + e[c] || (function(a, m) { + const y = v.toCamelCase(" " + m); + ["get", "set", "has"].forEach((g) => { + Object.defineProperty(a, g + y, { value: function(s, b, w) { + return this[g].call(this, m, s, b, w); + }, configurable: !0 }); + }); + }(r, o), e[c] = !0); + } + return v.isArray(t) ? t.forEach(n) : n(t), this; + } +}; +function Ot(t, e) { + const r = this || rt, n = e || r, o = j.from(n.headers); + let c = n.data; + return v.forEach(t, function(a) { + c = a.call(r, c, o.normalize(), e ? e.status : void 0); + }), o.normalize(), c; +} +function De(t) { + return !(!t || !t.__CANCEL__); +} +function G(t, e, r) { + C.call(this, t ?? "canceled", C.ERR_CANCELED, e, r), this.name = "CanceledError"; +} +function Fe(t, e, r) { + const n = r.config.validateStatus; + r.status && n && !n(r.status) ? e(new C("Request failed with status code " + r.status, [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r); +} +j.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), v.reduceDescriptors(j.prototype, ({ value: t }, e) => { + let r = e[0].toUpperCase() + e.slice(1); + return { get: () => t, set(n) { + this[r] = n; + } }; +}), v.freezeMethods(j), v.inherits(G, C, { __CANCEL__: !0 }); +const dt = (t, e, r = 3) => { + let n = 0; + const o = function(c, a) { + c = c || 10; + const m = new Array(c), y = new Array(c); + let g, s = 0, b = 0; + return a = a !== void 0 ? a : 1e3, function(w) { + const E = Date.now(), d = y[b]; + g || (g = E), m[s] = w, y[s] = E; + let l = b, i = 0; + for (; l !== s; ) i += m[l++], l %= c; + if (s = (s + 1) % c, s === b && (b = (b + 1) % c), E - g < a) return; + const u = d && E - d; + return u ? Math.round(1e3 * i / u) : void 0; + }; + }(50, 250); + return function(c, a) { + let m = 0; + const y = 1e3 / a; + let g = null; + return function() { + const s = this === !0, b = Date.now(); + if (s || b - m > y) return g && (clearTimeout(g), g = null), m = b, c.apply(null, arguments); + g || (g = setTimeout(() => (g = null, m = Date.now(), c.apply(null, arguments)), y - (b - m))); + }; + }((c) => { + const a = c.loaded, m = c.lengthComputable ? c.total : void 0, y = a - n, g = o(y); + n = a; + const s = { loaded: a, total: m, progress: m ? a / m : void 0, bytes: y, rate: g || void 0, estimated: g && m && a <= m ? (m - a) / g : void 0, event: c, lengthComputable: m != null }; + s[e ? "download" : "upload"] = !0, t(s); + }, r); +}, Tr = U.hasStandardBrowserEnv ? function() { + const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); + let r; + function n(o) { + let c = o; + 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(o) { + const c = v.isString(o) ? n(o) : o; + return c.protocol === r.protocol && c.host === r.host; + }; +}() : function() { + return !0; +}, xr = U.hasStandardBrowserEnv ? { write(t, e, r, n, o, c) { + const a = [t + "=" + encodeURIComponent(e)]; + v.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), v.isString(n) && a.push("path=" + n), v.isString(o) && a.push("domain=" + o), c === !0 && a.push("secure"), document.cookie = a.join("; "); +}, read(t) { + const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); + return e ? decodeURIComponent(e[3]) : null; +}, remove(t) { + this.write(t, "", Date.now() - 864e5); +} } : { write() { +}, read: () => null, remove() { +} }; +function Ie(t, e) { + return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) { + return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r; + }(t, e) : e; +} +const he = (t) => t instanceof j ? { ...t } : t; +function H(t, e) { + e = e || {}; + const r = {}; + function n(g, s, b) { + return v.isPlainObject(g) && v.isPlainObject(s) ? v.merge.call({ caseless: b }, g, s) : v.isPlainObject(s) ? v.merge({}, s) : v.isArray(s) ? s.slice() : s; + } + function o(g, s, b) { + return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g, b) : n(g, s, b); + } + function c(g, s) { + if (!v.isUndefined(s)) return n(void 0, s); + } + function a(g, s) { + return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, s); + } + function m(g, s, b) { + return b in e ? n(g, s) : b in t ? n(void 0, g) : void 0; + } + const y = { url: c, method: c, data: c, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: m, headers: (g, s) => o(he(g), he(s), !0) }; + return v.forEach(Object.keys(Object.assign({}, t, e)), function(g) { + const s = y[g] || o, b = s(t[g], e[g], g); + v.isUndefined(b) && s !== m || (r[g] = b); + }), r; +} +const qe = (t) => { + const e = H({}, t); + let r, { data: n, withXSRFToken: o, xsrfHeaderName: c, xsrfCookieName: a, headers: m, auth: y } = e; + if (e.headers = m = j.from(m), e.url = Be(Ie(e.baseURL, e.url), t.params, t.paramsSerializer), y && m.set("Authorization", "Basic " + btoa((y.username || "") + ":" + (y.password ? unescape(encodeURIComponent(y.password)) : ""))), v.isFormData(n)) { + if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) m.setContentType(void 0); + else if ((r = m.getContentType()) !== !1) { + const [g, ...s] = r ? r.split(";").map((b) => b.trim()).filter(Boolean) : []; + m.setContentType([g || "multipart/form-data", ...s].join("; ")); + } + } + if (U.hasStandardBrowserEnv && (o && v.isFunction(o) && (o = o(e)), o || o !== !1 && Tr(e.url))) { + const g = c && a && xr.read(a); + g && m.set(c, g); + } + return e; +}, Nr = typeof XMLHttpRequest < "u" && function(t) { + return new Promise(function(e, r) { + const n = qe(t); + let o = n.data; + const c = j.from(n.headers).normalize(); + let a, { responseType: m } = n; + function y() { + n.cancelToken && n.cancelToken.unsubscribe(a), n.signal && n.signal.removeEventListener("abort", a); + } + let g = new XMLHttpRequest(); + function s() { + if (!g) return; + const w = j.from("getAllResponseHeaders" in g && g.getAllResponseHeaders()); + Fe(function(E) { + e(E), y(); + }, function(E) { + r(E), y(); + }, { data: m && m !== "text" && m !== "json" ? g.response : g.responseText, status: g.status, statusText: g.statusText, headers: w, config: t, request: g }), g = null; + } + g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = s : g.onreadystatechange = function() { + g && g.readyState === 4 && (g.status !== 0 || g.responseURL && g.responseURL.indexOf("file:") === 0) && setTimeout(s); + }, g.onabort = function() { + g && (r(new C("Request aborted", C.ECONNABORTED, n, g)), g = null); + }, g.onerror = function() { + r(new C("Network Error", C.ERR_NETWORK, n, g)), g = null; + }, g.ontimeout = function() { + let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded"; + const E = n.transitional || Me; + n.timeoutErrorMessage && (w = n.timeoutErrorMessage), r(new C(w, E.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED, n, g)), g = null; + }, o === void 0 && c.setContentType(null), "setRequestHeader" in g && v.forEach(c.toJSON(), function(w, E) { + g.setRequestHeader(E, w); + }), v.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), m && m !== "json" && (g.responseType = n.responseType), typeof n.onDownloadProgress == "function" && g.addEventListener("progress", dt(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && g.upload && g.upload.addEventListener("progress", dt(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (w) => { + g && (r(!w || w.type ? new G(null, t, g) : w), g.abort(), g = null); + }, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a))); + const b = function(w) { + const E = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w); + return E && E[1] || ""; + }(n.url); + b && U.protocols.indexOf(b) === -1 ? r(new C("Unsupported protocol " + b + ":", C.ERR_BAD_REQUEST, t)) : g.send(o || null); + }); +}, _r = (t, e) => { + let r, n = new AbortController(); + const o = function(y) { + if (!r) { + r = !0, a(); + const g = y instanceof Error ? y : this.reason; + n.abort(g instanceof C ? g : new G(g instanceof Error ? g.message : g)); + } + }; + let c = e && setTimeout(() => { + o(new C(`timeout ${e} of ms exceeded`, C.ETIMEDOUT)); + }, e); + const a = () => { + t && (c && clearTimeout(c), c = null, t.forEach((y) => { + y && (y.removeEventListener ? y.removeEventListener("abort", o) : y.unsubscribe(o)); + }), t = null); + }; + t.forEach((y) => y && y.addEventListener && y.addEventListener("abort", o)); + const { signal: m } = n; + return m.unsubscribe = a, [m, () => { + c && clearTimeout(c), c = null; + }]; +}, Pr = function* (t, e) { + let r = t.byteLength; + if (!e || r < e) return void (yield t); + let n, o = 0; + for (; o < r; ) n = o + e, yield t.slice(o, n), o = n; +}, de = (t, e, r, n, o) => { + const c = async function* (m, y, g) { + for await (const s of m) yield* Pr(ArrayBuffer.isView(s) ? s : await g(String(s)), y); + }(t, e, o); + let a = 0; + return new ReadableStream({ type: "bytes", async pull(m) { + const { done: y, value: g } = await c.next(); + if (y) return m.close(), void n(); + let s = g.byteLength; + r && r(a += s), m.enqueue(new Uint8Array(g)); + }, cancel: (m) => (n(m), c.return()) }, { highWaterMark: 2 }); +}, pe = (t, e) => { + const r = t != null; + return (n) => setTimeout(() => e({ lengthComputable: r, total: t, loaded: n })); +}, yt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = yt && typeof ReadableStream == "function", _t = yt && (typeof TextEncoder == "function" ? (ge = new TextEncoder(), (t) => ge.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); +var ge; +const jr = We && (() => { + let t = !1; + const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() { + return t = !0, "half"; + } }).headers.has("Content-Type"); + return t && !e; +})(), Pt = We && !!(() => { + try { + return v.isReadableStream(new Response("").body); + } catch { + } +})(), pt = { stream: Pt && ((t) => t.body) }; +var ye; +yt && (ye = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { + !pt[t] && (pt[t] = v.isFunction(ye[t]) ? (e) => e[t]() : (e, r) => { + throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r); + }); +})); +const kr = 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 _t(n)).byteLength : void 0))(e); +}, $e = { http: null, xhr: Nr, fetch: yt && (async (t) => { + let { url: e, method: r, data: n, signal: o, cancelToken: c, timeout: a, onDownloadProgress: m, onUploadProgress: y, responseType: g, headers: s, withCredentials: b = "same-origin", fetchOptions: w } = qe(t); + g = g ? (g + "").toLowerCase() : "text"; + let E, d, [l, i] = o || c || a ? _r([o, c], a) : []; + const u = () => { + !E && setTimeout(() => { + l && l.unsubscribe(); + }), E = !0; + }; + let h; + try { + if (y && jr && r !== "get" && r !== "head" && (h = await kr(s, n)) !== 0) { + let O, T = new Request(e, { method: "POST", body: n, duplex: "half" }); + v.isFormData(n) && (O = T.headers.get("content-type")) && s.setContentType(O), T.body && (n = de(T.body, 65536, pe(h, dt(y)), null, _t)); + } + v.isString(b) || (b = b ? "cors" : "omit"), d = new Request(e, { ...w, signal: l, method: r.toUpperCase(), headers: s.normalize().toJSON(), body: n, duplex: "half", withCredentials: b }); + let p = await fetch(d); + const f = Pt && (g === "stream" || g === "response"); + if (Pt && (m || f)) { + const O = {}; + ["status", "statusText", "headers"].forEach((P) => { + O[P] = p[P]; + }); + const T = v.toFiniteNumber(p.headers.get("content-length")); + p = new Response(de(p.body, 65536, m && pe(T, dt(m, !0)), f && u, _t), O); + } + g = g || "text"; + let A = await pt[v.findKey(pt, g) || "text"](p, t); + return !f && u(), i && i(), await new Promise((O, T) => { + Fe(O, T, { data: A, headers: j.from(p.headers), status: p.status, statusText: p.statusText, config: t, request: d }); + }); + } catch (p) { + throw u(), p && p.name === "TypeError" && /fetch/i.test(p.message) ? Object.assign(new C("Network Error", C.ERR_NETWORK, t, d), { cause: p.cause || p }) : C.from(p, p && p.code, t, d); + } +}) }; +v.forEach($e, (t, e) => { + if (t) { + try { + Object.defineProperty(t, "name", { value: e }); + } catch { + } + Object.defineProperty(t, "adapterName", { value: e }); + } +}); +const me = (t) => `- ${t}`, Ur = (t) => v.isFunction(t) || t === null || t === !1, He = (t) => { + t = v.isArray(t) ? t : [t]; + const { length: e } = t; + let r, n; + const o = {}; + for (let c = 0; c < e; c++) { + let a; + if (r = t[c], n = r, !Ur(r) && (n = $e[(a = String(r)).toLowerCase()], n === void 0)) throw new C(`Unknown adapter '${a}'`); + if (n) break; + o[a || "#" + c] = n; + } + if (!n) { + const c = Object.entries(o).map(([a, m]) => `adapter ${a} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")); + throw new C("There is no suitable adapter to dispatch the request " + (e ? c.length > 1 ? `since : +` + c.map(me).join(` +`) : " " + me(c[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); + } + return n; +}; +function St(t) { + if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new G(null, t); +} +function be(t) { + return St(t), t.headers = j.from(t.headers), t.data = Ot.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), He(t.adapter || rt.adapter)(t).then(function(e) { + return St(t), e.data = Ot.call(t, t.transformResponse, e), e.headers = j.from(e.headers), e; + }, function(e) { + return De(e) || (St(t), e && e.response && (e.response.data = Ot.call(t, t.transformResponse, e.response), e.response.headers = j.from(e.response.headers))), Promise.reject(e); + }); +} +const Br = "1.7.2", Kt = {}; +["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { + Kt[t] = function(r) { + return typeof r === t || "a" + (e < 1 ? "n " : " ") + t; + }; +}); +const we = {}; +Kt.transitional = function(t, e, r) { + function n(o, c) { + return "[Axios v1.7.2] Transitional option '" + o + "'" + c + (r ? ". " + r : ""); + } + return (o, c, a) => { + if (t === !1) throw new C(n(c, " has been removed" + (e ? " in " + e : "")), C.ERR_DEPRECATED); + return e && !we[c] && (we[c] = !0, console.warn(n(c, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(o, c, a); + }; +}; +const jt = { assertOptions: function(t, e, r) { + if (typeof t != "object") throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE); + const n = Object.keys(t); + let o = n.length; + for (; o-- > 0; ) { + const c = n[o], a = e[c]; + if (a) { + const m = t[c], y = m === void 0 || a(m, c, t); + if (y !== !0) throw new C("option " + c + " must be " + y, C.ERR_BAD_OPTION_VALUE); + } else if (r !== !0) throw new C("Unknown option " + c, C.ERR_BAD_OPTION); + } +}, validators: Kt }, F = jt.validators; +let $ = class { + constructor(t) { + this.defaults = t, this.interceptors = { request: new ue(), response: new ue() }; + } + async request(t, e) { + try { + return await this._request(t, e); + } catch (r) { + if (r instanceof Error) { + let n; + Error.captureStackTrace ? Error.captureStackTrace(n = {}) : n = new Error(); + const o = n.stack ? n.stack.replace(/^.+\n/, "") : ""; + try { + r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += ` +` + o) : r.stack = o; + } catch { + } + } + throw r; + } + } + _request(t, e) { + typeof t == "string" ? (e = e || {}).url = t : e = t || {}, e = H(this.defaults, e); + const { transitional: r, paramsSerializer: n, headers: o } = e; + r !== void 0 && jt.assertOptions(r, { silentJSONParsing: F.transitional(F.boolean), forcedJSONParsing: F.transitional(F.boolean), clarifyTimeoutError: F.transitional(F.boolean) }, !1), n != null && (v.isFunction(n) ? e.paramsSerializer = { serialize: n } : jt.assertOptions(n, { encode: F.function, serialize: F.function }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase(); + let c = o && v.merge(o.common, o[e.method]); + o && v.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (E) => { + delete o[E]; + }), e.headers = j.concat(c, o); + const a = []; + let m = !0; + this.interceptors.request.forEach(function(E) { + typeof E.runWhen == "function" && E.runWhen(e) === !1 || (m = m && E.synchronous, a.unshift(E.fulfilled, E.rejected)); + }); + const y = []; + let g; + this.interceptors.response.forEach(function(E) { + y.push(E.fulfilled, E.rejected); + }); + let s, b = 0; + if (!m) { + const E = [be.bind(this), void 0]; + for (E.unshift.apply(E, a), E.push.apply(E, y), s = E.length, g = Promise.resolve(e); b < s; ) g = g.then(E[b++], E[b++]); + return g; + } + s = a.length; + let w = e; + for (b = 0; b < s; ) { + const E = a[b++], d = a[b++]; + try { + w = E(w); + } catch (l) { + d.call(this, l); + break; + } + } + try { + g = be.call(this, w); + } catch (E) { + return Promise.reject(E); + } + for (b = 0, s = y.length; b < s; ) g = g.then(y[b++], y[b++]); + return g; + } + getUri(t) { + return Be(Ie((t = H(this.defaults, t)).baseURL, t.url), t.params, t.paramsSerializer); + } +}; +v.forEach(["delete", "get", "head", "options"], function(t) { + $.prototype[t] = function(e, r) { + return this.request(H(r || {}, { method: t, url: e, data: (r || {}).data })); + }; +}), v.forEach(["post", "put", "patch"], function(t) { + function e(r) { + return function(n, o, c) { + return this.request(H(c || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: o })); + }; + } + $.prototype[t] = e(), $.prototype[t + "Form"] = e(!0); +}); +const kt = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; +Object.entries(kt).forEach(([t, e]) => { + kt[e] = t; +}); +const N = function t(e) { + const r = new $(e), n = je($.prototype.request, r); + return v.extend(n, $.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(o) { + return t(H(e, o)); + }, n; +}(rt); +N.Axios = $, N.CanceledError = G, N.CancelToken = class Je { + constructor(e) { + if (typeof e != "function") throw new TypeError("executor must be a function."); + let r; + this.promise = new Promise(function(o) { + r = o; + }); + const n = this; + this.promise.then((o) => { + if (!n._listeners) return; + let c = n._listeners.length; + for (; c-- > 0; ) n._listeners[c](o); + n._listeners = null; + }), this.promise.then = (o) => { + let c; + const a = new Promise((m) => { + n.subscribe(m), c = m; + }).then(o); + return a.cancel = function() { + n.unsubscribe(c); + }, a; + }, e(function(o, c, a) { + n.reason || (n.reason = new G(o, c, a), r(n.reason)); + }); + } + throwIfRequested() { + if (this.reason) throw this.reason; + } + subscribe(e) { + this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]; + } + unsubscribe(e) { + if (!this._listeners) return; + const r = this._listeners.indexOf(e); + r !== -1 && this._listeners.splice(r, 1); + } + static source() { + let e; + return { token: new Je(function(r) { + e = r; + }), cancel: e }; + } +}, N.isCancel = De, N.VERSION = Br, N.toFormData = ht, N.AxiosError = C, N.Cancel = N.CanceledError, N.all = function(t) { + return Promise.all(t); +}, N.spread = function(t) { + return function(e) { + return t.apply(null, e); + }; +}, N.isAxiosError = function(t) { + return v.isObject(t) && t.isAxiosError === !0; +}, N.mergeConfig = H, N.AxiosHeaders = j, N.formToJSON = (t) => Le(v.isHTMLForm(t) ? new FormData(t) : t), N.getAdapter = He, N.HttpStatusCode = kt, N.default = N; +const { Axios: Mr, AxiosError: Lr, CanceledError: Dr, isCancel: Fr, CancelToken: Ir, VERSION: qr, all: Wr, Cancel: $r, isAxiosError: Hr, spread: Jr, toFormData: zr, AxiosHeaders: Vr, HttpStatusCode: Kr, formToJSON: Gr, getAdapter: Xr, mergeConfig: Qr } = N, Zr = Object.freeze(Object.defineProperty({ __proto__: null, Axios: Mr, AxiosError: Lr, AxiosHeaders: Vr, Cancel: $r, CancelToken: Ir, CanceledError: Dr, HttpStatusCode: Kr, VERSION: qr, all: Wr, default: N, formToJSON: Gr, getAdapter: Xr, isAxiosError: Hr, isCancel: Fr, mergeConfig: Qr, spread: Jr, toFormData: zr }, Symbol.toStringTag, { value: "Module" })); +function mt(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +function Yr(t) { + if (t.__esModule) return t; + var e = t.default; + if (typeof e == "function") { + var r = function n() { + return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments); + }; + r.prototype = e.prototype; + } else r = {}; + return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) { + var o = Object.getOwnPropertyDescriptor(t, n); + Object.defineProperty(r, n, o.get ? o : { enumerable: !0, get: function() { + return t[n]; + } }); + }), r; +} +var Ut = { exports: {} }; +const ve = Yr(Zr), ze = function t(e, r) { + if (e === r) return !0; + if (e && r && typeof e == "object" && typeof r == "object") { + if (e.constructor !== r.constructor) return !1; + var n, o, c; + if (Array.isArray(e)) { + if ((n = e.length) != r.length) return !1; + for (o = n; o-- != 0; ) if (!t(e[o], r[o])) return !1; + return !0; + } + if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags; + if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf(); + if (e.toString !== Object.prototype.toString) return e.toString() === r.toString(); + if ((n = (c = Object.keys(e)).length) !== Object.keys(r).length) return !1; + for (o = n; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(r, c[o])) return !1; + for (o = n; o-- != 0; ) { + var a = c[o]; + if (!t(e[a], r[a])) return !1; + } + return !0; + } + return e != e && r != r; +}, Ve = function(t) { + return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t); +}, Ke = ( + /*! + * MIT License + * + * Copyright (c) Sindre Sorhus (https://sindresorhus.com) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated + * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit + * persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + function(t) { + return typeof Blob < "u" && (t instanceof Blob || Object.prototype.toString.call(t) === "[object Blob]"); + } +), Ge = Object.prototype.toString; +function Ee(t, e) { + const r = t.length; + for (let n = 0; n < r; n++) { + const o = t[n]; + if (e(o)) return o; + } +} +function Gt(t) { + return t !== null && typeof t == "object"; +} +function tn(t) { + return Gt(t) && function(e) { + return Ge.call(e) === "[object Function]"; + }(t.pipe); +} +function Ae(t, e) { + return t ? `${t.replace(/\/+$/, "")}/${e.replace(/^\/+/, "")}` : e; +} +function Oe(t, e) { + return (t[0] === "/" ? t.substr(1) : t) === (e[0] === "/" ? e.substr(1) : e); +} +function Se(t, e, r) { + return Bt(e, r.params) && function(n, o) { + if (o === void 0) return !0; + let c; + try { + c = JSON.parse(n); + } catch { + } + return Bt(c || n, o); + }(t, r.data); +} +function Bt(t, e) { + return e === void 0 || (typeof e.asymmetricMatch == "function" ? e.asymmetricMatch(t) : ze(t, e)); +} +function en(t) { + return e = t, Ge.call(e) === "[object ArrayBuffer]" || Ve(t) || tn(t) || Ke(t) ? t : Gt(t) ? JSON.parse(JSON.stringify(t)) : t; + var e; +} +function Ce(t, e, r, n) { + if (typeof ve.AxiosError == "function") return ve.AxiosError.from(new Error(t), n, e, null, r); + const o = new Error(t); + return o.isAxiosError = !0, o.config = e, r !== void 0 && (o.response = r), n !== void 0 && (o.code = n), o.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: this.config, code: this.code }; + }, o; +} +var Xe = { find: Ee, findHandler: function(t, e, r, n, o, c, a) { + return Ee(t[e.toLowerCase()], function(m) { + let y = !1; + return typeof m.url == "string" ? y = Oe(r, m.url) || Oe(Ae(a, r), m.url) : m.url instanceof RegExp && (y = m.url.test(r) || m.url.test(Ae(a, r))), y && Se(n, o, m) && Bt(c, m.headers); + }); +}, purgeIfReplyOnce: function(t, e) { + const r = t.handlers.indexOf(e); + r > -1 && t.handlers.splice(r, 1); +}, settle: async function(t, e, r) { + r > 0 && await new Promise((o) => setTimeout(o, r)); + const n = await async function(o, c) { + typeof o == "function" && (o = await o(c)); + const a = o.status || o[0], m = en(o.data || o[1]), y = o.headers || o[2]; + return o.config && (c = o.config), { status: a, data: m, headers: y, config: c, request: { responseURL: c.url } }; + }(e, t); + if (!n.config.validateStatus || n.config.validateStatus(n.status)) return n; + throw Ce(`Request failed with status code ${n.status}`, n.config, n); +}, isObjectOrArray: Gt, isBuffer: Ve, isBlob: Ke, isBodyOrParametersMatching: Se, isEqual: ze, createAxiosError: Ce, createCouldNotFindMockError: function(t) { + const e = `Could not find mock for: +${JSON.stringify({ method: t.method, url: t.url, params: t.params, headers: t.headers }, null, 2)}`, r = new Error(e); + return r.isCouldNotFindMockError = !0, r.url = t.url, r.method = t.method, r; +} }; +const Q = Xe; +function Re(t, e) { + let r = e.baseURL; + return r && !/^https?:/.test(r) && (r = void 0), typeof t.originalAdapter == "function" ? t.originalAdapter(e) : t.axiosInstanceWithoutInterceptors(Object.assign({}, e, { baseURL: r, adapter: t.originalAdapter, transformRequest: [], transformResponse: [] })); +} +const rn = async function(t, e) { + let r = e.url || ""; + e.baseURL && r.substr(0, e.baseURL.length) === e.baseURL && (r = r.slice(e.baseURL.length)), delete e.adapter, t.history.push(e); + const n = Q.findHandler(t.handlers, e.method, r, e.data, e.params, e.headers && e.headers.constructor.name === "AxiosHeaders" ? Object.assign({}, e.headers.toJSON()) : e.headers, e.baseURL); + if (n) return n.replyOnce && Q.purgeIfReplyOnce(t, n), n.passThrough ? Re(t, e) : Q.settle(e, n.response, function(o, c) { + return typeof c.delay == "number" ? c.delay : o.delayResponse; + }(t, n)); + switch (t.onNoMatch) { + case "passthrough": + return Re(t, e); + case "throwException": + throw Q.createCouldNotFindMockError(e); + default: + return Q.settle(e, { status: 404 }, t.delayResponse); + } +}, D = Xe, Qe = ["get", "post", "head", "delete", "patch", "put", "options", "list", "link", "unlink"]; +function Te() { + const t = []; + return Qe.forEach(function(e) { + Object.defineProperty(t, e, { get: () => t.filter(function(r) { + return !r.method || r.method === e; + }) }); + }), t; +} +class Ct { + constructor(e, r = {}) { + if (this.reset(), !e) throw new Error("Please provide an instance of axios to mock"); + this.axiosInstance = e, this.axiosInstanceWithoutInterceptors = e.create ? e.create() : void 0, this.originalAdapter = e.defaults.adapter, this.delayResponse = r.delayResponse > 0 ? r.delayResponse : null, this.onNoMatch = r.onNoMatch || null, e.defaults.adapter = this.adapter(); + } + adapter() { + return (e) => rn(this, e); + } + restore() { + this.axiosInstance && (this.axiosInstance.defaults.adapter = this.originalAdapter, this.axiosInstance = void 0); + } + reset() { + this.resetHandlers(), this.resetHistory(); + } + resetHandlers() { + this.handlers ? this.handlers.length = 0 : this.handlers = Te(); + } + resetHistory() { + this.history ? this.history.length = 0 : this.history = Te(); + } +} +const nn = ["any", "get", "delete", "head", "options"], on = ["headers", "params", "data"]; +function xe(t, e) { + for (const r in e) if (!on.includes(r)) throw new Error(`Invalid config property ${JSON.stringify(r)} provided to ${Ze(t)}. Config: ${JSON.stringify(e)}`); + return e; +} +function Ze(t) { + return `on${t.charAt(0).toUpperCase()}${t.slice(1)}`; +} +function Rt(t, e, r) { + if (t === "any") e.push(r); + else { + const n = function(o, c) { + let a = -1; + for (let m = 0; m < o.length; m += 1) { + const y = o[m], g = y.url instanceof RegExp && c.url instanceof RegExp ? String(y.url) === String(c.url) : y.url === c.url; + (!y.method || y.method === c.method) && g && D.isEqual(y.params, c.params) && D.isEqual(y.data, c.data) && D.isEqual(y.headers, c.headers) && !y.replyOnce && (a = m); + } + return a; + }(e, r); + n > -1 && !r.replyOnce ? e.splice(n, 1, r) : e.push(r); + } +} +Qe.concat("any").forEach(function(t) { + Ct.prototype[Ze(t)] = function(e, r, n) { + const o = this; + let c; + e = e === void 0 ? /.*/ : e; + const a = function(s, b, w) { + return nn.includes(s) ? xe(s, b || {}) : xe(s, Object.assign({}, w, { data: b })); + }(t, r, n); + function m(s, b, w) { + const E = { url: e, method: t === "any" ? void 0 : t, params: a.params, data: a.data, headers: a.headers, replyOnce: !1, delay: c, response: typeof s == "function" ? s : [s, b, w] }; + return Rt(t, o.handlers, E), o; + } + function y(s, b, w) { + const E = { url: e, method: t === "any" ? void 0 : t, params: a.params, data: a.data, headers: a.headers, replyOnce: !0, delay: c, response: typeof s == "function" ? s : [s, b, w] }; + return Rt(t, o.handlers, E), o; + } + const g = { reply: m, replyOnce: y, withDelayInMs: function(s) { + c = s; + const b = g.reply.bind(g); + return Object.assign(b, g), b; + }, passThrough() { + const s = { passThrough: !0, method: t === "any" ? void 0 : t, url: e, params: a.params, data: a.data, headers: a.headers }; + return Rt(t, o.handlers, s), o; + }, abortRequest: () => m(async function(s) { + throw D.createAxiosError("Request aborted", s, void 0, "ECONNABORTED"); + }), abortRequestOnce: () => y(async function(s) { + throw D.createAxiosError("Request aborted", s, void 0, "ECONNABORTED"); + }), networkError: () => m(async function(s) { + throw D.createAxiosError("Network Error", s); + }), networkErrorOnce: () => y(async function(s) { + throw D.createAxiosError("Network Error", s); + }), timeout: () => m(async function(s) { + throw D.createAxiosError(s.timeoutErrorMessage || `timeout of ${s.timeout}ms exceeded`, s, void 0, s.transitional && s.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED"); + }), timeoutOnce: () => y(async function(s) { + throw D.createAxiosError(s.timeoutErrorMessage || `timeout of ${s.timeout}ms exceeded`, s, void 0, s.transitional && s.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED"); + }) }; + return g; + }; +}), Ut.exports = Ct, Ut.exports.default = Ct; +const hn = mt(Ut.exports); +var sn = Object.defineProperty, Ye = (t) => { + throw TypeError(t); +}, x = (t, e, r) => ((n, o, c) => o in n ? sn(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c)(t, typeof e != "symbol" ? e + "" : e, r), tr = (t, e, r) => e.has(t) || Ye("Cannot " + r), S = (t, e, r) => (tr(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? Ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (tr(t, e, "write to private field"), e.set(t, r), r); +function an(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +var Ne, er = {}; +Ne = er, function(t, e) { + var r = e(); + for (var n in r) Ne[n] = r[n]; +}(0, function() { + var t = function(c) { + return typeof c != "string" ? c : c.replace(/[\+ \|\^\%]/g, function(a) { + return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[a]; + }); + }, e = function(c) { + return typeof c != "string" ? c : c.replace(/\+|%2B|%7C|%5E|%25/g, function(a) { + return { "+": " ", "%2B": "+", "%7C": "|", "%5E": "^", "%25": "%" }[a]; + }); + }, r = function(c) { + return Number.prototype.toString.call(c, 36).toUpperCase(); + }, n = function(c) { + return parseInt(c, 36); + }, o = Array.prototype.indexOf || function(c, a) { + for (var m = a || 0, y = this.length; m < y; m++) if (this[m] === c) return m; + return -1; + }; + return { JSON, pack: function(c, a) { + var m = (a = a || {}).verbose || !1; + m && console.log("Normalize the JSON Object"), c = typeof c == "string" ? this.JSON.parse(c) : c, m && console.log("Creating a empty dictionary"); + var y = { strings: [], integers: [], floats: [] }; + m && console.log("Creating the AST"); + var g = function E(d) { + m && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(d)); + var l, i = typeof d; + if (d === null) return { type: "null", index: -3 }; + if (typeof d > "u") return { type: "undefined", index: -5 }; + if (d instanceof Array) { + var u = ["@"]; + for (var h in d) d.hasOwnProperty(h) && u.push(E(d[h])); + return u; + } + if (i === "object") { + for (var p in u = ["$"], d) d.hasOwnProperty(p) && (u.push(E(p)), u.push(E(d[p]))); + return u; + } + if (d === "") return { type: "empty", index: -4 }; + if (i === "string") return (l = o.call(y.strings, d)) == -1 && (y.strings.push(t(d)), l = y.strings.length - 1), { type: "strings", index: l }; + if (i === "number" && d % 1 == 0) return (l = o.call(y.integers, d)) == -1 && (y.integers.push(r(d)), l = y.integers.length - 1), { type: "integers", index: l }; + if (i === "number") return (l = o.call(y.floats, d)) == -1 && (y.floats.push(d), l = y.floats.length - 1), { type: "floats", index: l }; + if (i === "boolean") return { type: "boolean", index: d ? -1 : -2 }; + throw new Error("Unexpected argument of type " + typeof d); + }(c), s = y.strings.length, b = y.integers.length; + y.floats.length, m && console.log("Parsing the dictionary"); + var w = y.strings.join("|"); + return w += "^" + y.integers.join("|"), w += "^" + y.floats.join("|"), m && console.log("Parsing the structure"), w += "^" + function E(d) { + if (m && console.log("Calling a recursiveParser with " + this.JSON.stringify(d)), d instanceof Array) { + var l = d.shift(); + for (var i in d) d.hasOwnProperty(i) && (l += E(d[i]) + "|"); + return (l[l.length - 1] === "|" ? l.slice(0, -1) : l) + "]"; + } + var u = d.type, h = d.index; + if (u === "strings") return r(h); + if (u === "integers") return r(s + h); + if (u === "floats") return r(s + b + h); + if (u === "boolean") return d.index; + if (u === "null") return -3; + if (u === "undefined") return -5; + if (u === "empty") return -4; + throw new TypeError("The item is alien!"); + }(g), m && console.log("Ending parser"), a.debug ? { dictionary: y, ast: g, packed: w } : w; + }, unpack: function(c, a) { + a = a || {}; + var m = c.split("^"); + a.verbose && console.log("Building dictionary"); + var y = [], g = m[0]; + if (g !== "") { + g = g.split("|"), a.verbose && console.log("Parse the strings dictionary"); + for (var s = 0, b = g.length; s < b; s++) y.push(e(g[s])); + } + if ((g = m[1]) !== "") for (g = g.split("|"), a.verbose && console.log("Parse the integers dictionary"), s = 0, b = g.length; s < b; s++) y.push(n(g[s])); + if ((g = m[2]) !== "") for (g = g.split("|"), a.verbose && console.log("Parse the floats dictionary"), s = 0, b = g.length; s < b; s++) y.push(parseFloat(g[s])); + g = null, a.verbose && console.log("Tokenizing the structure"); + var w = "", E = [], d = m[3].length; + for (s = 0; s < d; s++) { + var l = m[3].charAt(s); + l === "|" || l === "$" || l === "@" || l === "]" ? (w && (E.push(n(w)), w = ""), l !== "|" && E.push(l)) : w += l; + } + var i = E.length, u = 0; + return a.verbose && console.log("Starting recursive parser"), function h() { + var p = E[u++]; + if (a.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") { + for (var f = []; u < i; u++) { + var A = E[u]; + if (a.verbose && console.log("Read " + A + " symbol"), A === "]") return f; + if (A === "@" || A === "$") f.push(h()); + else switch (A) { + case -1: + f.push(!0); + break; + case -2: + f.push(!1); + break; + case -3: + f.push(null); + break; + case -5: + f.push(void 0); + break; + case -4: + f.push(""); + break; + default: + f.push(y[A]); + } + } + return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + if (p === "$") { + for (f = {}; u < i; u++) { + var O = E[u]; + if (O === "]") return f; + if (O = O === -4 ? "" : y[O], (A = E[++u]) === "@" || A === "$") f[O] = h(); + else switch (A) { + case -1: + f[O] = !0; + break; + case -2: + f[O] = !1; + break; + case -3: + f[O] = null; + break; + case -5: + f[O] = void 0; + break; + case -4: + f[O] = ""; + break; + default: + f[O] = y[A]; + } + } + return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + throw new TypeError("Bad token " + p + " isn't a type"); + }(); + } }; +}); +const _e = an(er); +var tt, et, z, q, Mt, Lt, at, Dt, Ft; +class It { + constructor(e, r, n, o, c) { + return x(this, "code", 0), x(this, "message", "操作成功"), x(this, "data", null), x(this, "url", ""), x(this, "res", ""), _(this, tt), _(this, et, !0), _(this, z, !0), _(this, q, { get: (a, m) => S(this, Mt).call(this, m), ownKeys: () => Object.keys(S(this, q).getPrototypeOf() || {}), getPrototypeOf: () => S(this, et) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: S(this, q).getPrototypeOf() }) }), _(this, Mt, (a) => a === "$echoMsg" ? S(this, at) : a === "msg" ? S(this, Lt) : a === "then" || a === "resp" ? (M(this, z, !0), M(this, et, a === "resp"), S(this, Dt)) : a === "catch" ? S(this, Ft) : a === "IS_ECHO_MSG" ? S(this, z) : Reflect.get(this, a)), _(this, Lt, (a = (y) => y, m = !1) => (S(this, at).call(this), M(this, et, m), Promise.resolve(a == null ? void 0 : a(S(this, q).getPrototypeOf())))), _(this, at, () => { + S(this, z) && (M(this, z, !1), $t.onMsg(this.code, this.message)); + }), _(this, Dt, (a) => [0, 1].includes(this.code) ? Promise.resolve(a == null ? void 0 : a(S(this, q).getPrototypeOf())) : Promise.reject(S(this, tt))), _(this, Ft, (a) => Promise.resolve(a(S(this, tt)))), this.code = e, this.message = r, this.data = n, this.url = o, this.res = c, M(this, tt, new Proxy(this, S(this, q))); + } +} +tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(); +const Tt = (t, e, r, n = "/", o = "") => new It(t, e, r, n, o); +var Pe = ["utf8", "utf-8", "unicode-1-1-utf-8"], rr = { TextEncoder: function(t) { + if (Pe.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 o = r.split(""); + for (let c = 0; c < o.length; c++) n[c] = o[c].charCodeAt(0); + return n; + }; +}, TextDecoder: function(t) { + if (Pe.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); + this.encoding = "utf-8", this.decode = function(e, r) { + if (typeof e > "u") return ""; + var n = typeof r < "u" && n in r && r.stream; + if (typeof n != "boolean") throw new TypeError("stream option must be boolean"); + if (ArrayBuffer.isView(e)) { + var o = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), c = new Array(o.length); + for (let a = 0; a < o.length; a++) c[a] = String.fromCharCode(o[a]); + return decodeURIComponent(escape(c.join(""))); + } + throw new TypeError("passed argument must be an array buffer view"); + }; +} }; +const cn = new rr.TextEncoder("utf8"); +new rr.TextDecoder("utf8"); +class un { + constructor(e) { + if (x(this, "encodeTable", []), x(this, "decodeMap", new Uint8Array(256).fill(255)), e.length !== 62) throw new Error("Encoding alphabet must be 62 characters long"); + if (e.includes(` +`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character"); + this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255); + for (let r = 0; r < e.length; r++) this.decodeMap[e.charCodeAt(r)] = r; + } + encode(e) { + if (!e || e.length === 0) return ""; + const r = new ln(this).encodeV2(e); + return String.fromCharCode(...r); + } + decode(e) { + if (!e || e.length === 0) return ""; + const r = new fn(this).decode(e); + return new TextDecoder().decode(r); + } +} +var ct, ut, V, W, qt, L, I, K, Wt, lt; +class ln { + constructor(e) { + _(this, ct), x(this, "src", new Uint8Array()), x(this, "pos", 0), M(this, ct, e); + } + get6bits() { + let e = 7 & this.pos, r = this.pos >> 3; + e === 0 && (r -= 1, e = 8); + let n = this.src[r] >> 8 - e; + return e < 6 && r > 0 && (n |= this.src[r - 1] << e), 63 & n; + } + encodeV2(e) { + this.src = function(n) { + return cn.encode(n || ""); + }(e), this.pos = 8 * this.src.length; + const r = []; + for (; this.pos > 0; ) { + let n = 6, o = this.get6bits(); + !(30 & ~o) && ((this.pos > 6 || o > 31) && (n = 5), o &= 31), r.push(S(this, ct).encodeTable[o].charCodeAt(0)), this.pos -= n; + } + return r; + } +} +ct = /* @__PURE__ */ new WeakMap(); +class fn { + constructor(e) { + _(this, ut), M(this, ut, e); + } + decode(e) { + const r = new Uint8Array(Math.ceil(6 * e.length / 8) + 1); + let n = r.length, o = 0, c = 0; + for (let a = 0; a < e.length; a++) { + const m = e[a].charCodeAt(0), y = S(this, ut).decodeMap[m]; + if (y === 255) throw new Error(`CorruptInputError at index ${a}`); + a === e.length - 1 ? (c |= y << o, o += Math.ceil(Math.log2(y + 1))) : 30 & ~y ? (c |= y << o, o += 6) : (c |= y << o, o += 5), o >= 8 && (n--, r[n] = 255 & c, o %= 8, c >>= 8); + } + return o > 0 && (n--, r[n] = 255 & c), r.slice(n); + } +} +ut = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { + let t, e; + return { promise: new Promise((r, n) => { + t = r, e = n; + }), resolve: t, reject: e }; +}); +class $t { + constructor(e, r, n) { + _(this, V), _(this, W), _(this, qt), _(this, L, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), _(this, I, /* @__PURE__ */ new Map()), _(this, K, /* @__PURE__ */ new Set()), x(this, "init", (o, c, a) => { + o && M(this, qt, o), a && M(this, V, a), c && M(this, W, new un(c)), S(this, Wt).call(this); + }), _(this, Wt, () => { + !S(this, K).size || !S(this, V) || (S(this, K).forEach((o) => S(this, lt).call(this, ...o)), S(this, K).clear()); + }), _(this, lt, (o, c, a, m = !1) => { + if (S(this, V)) { + const { url: y, method: g, ...s } = a || {}; + S(this, V).call(this, { url: y, method: g, ...s }).then((b) => { + if (![0, 1].includes(b.code)) throw Tt(b.code, b.msg, b.data, y, b == null ? void 0 : b.res); + return [b.code, b.msg, b.data, y, (b == null ? void 0 : b.res) ?? ""]; + }).then((b) => { + const w = b; + return (c == "#" || g == "GET") && S(this, L)[c].set(o, w), c != "#" && g == "GET" && !m && setTimeout(() => { + S(this, L)[c].delete(o); + }, 300), w; + }).then((b) => { + var w; + return (w = S(this, I).get(o)) == null ? void 0 : w.forEach((E, d, l) => { + E && E[0](b), delete l[d]; + }); + }).catch((b) => { + var w; + S(this, L)[c].delete(o), (w = S(this, I).get(o)) == null || w.forEach((E, d, l) => { + E && E[1](b instanceof It ? b : Tt(-1, b, null, y)), delete l[d]; + }); + }).finally(() => S(this, I).delete(o)); + } else S(this, K).add([o, c, a, m]); + }), x(this, "request", ({ url: o = "/", method: c = "GET", ...a }, m = !1) => { + var y, g; + o = function(i, u) { + return i.replace(new RegExp(`^${u}+|${u}+$`, "g"), ""); + }(o, "/"); + const s = c.toUpperCase(), b = function(i) { + let u = 5381; + for (let h = 0; h < i.length; h++) u = 33 * u ^ i.charCodeAt(h); + return (u >>> 0).toString(16); + }(JSON.stringify([o, s, a])), w = (y = o == null ? void 0 : o.includes) != null && y.call(o, "/_/") ? "#" : "$", { promise: E, resolve: d, reject: l } = Promise.withResolvers(); + return S(this, L)[w].has(b) ? (console.log("cache", o), d(S(this, L)[w].get(b))) : S(this, I).has(b) ? (g = S(this, I).get(b)) == null || g.push([d, l]) : (S(this, I).set(b, [[d, l]]), S(this, lt).call(this, b, w, { url: o, method: s, ...a }, m)), new Proxy(E, { get: (i, u) => (...h) => i.then((p) => Tt(...p)[u](...h)).catch((p) => { + if (!(p instanceof It)) throw p; + return typeof p[u] == "function" ? p[u](...h) : p[u]; + }) }); + }), x(this, "get", (o, c = {}) => this.request({ url: o, method: "GET", params: c })), x(this, "post", (o, c = {}, a = {}) => this.request({ url: o, method: "POST", data: c, params: a })), x(this, "put", (o, c = {}, a = {}) => this.request({ url: o, method: "PUT", data: c, params: a })), x(this, "del", (o, c = {}, a = {}) => this.request({ url: o, method: "DELETE", data: c, params: a })), x(this, "download", (o, c) => { + }), x(this, "cache", (o, c = {}) => this.request({ url: o, method: "GET", params: c }, !0)), x(this, "list", (o, c = {}) => this.get(`/api/${o}/${this.encode(c)}`)), x(this, "getAppInfo", () => { + }), x(this, "refreshCache", (o = !1) => { + o && S(this, L)["#"].clear(), S(this, L).$.clear(); + }), x(this, "decode", (o = "", c = {}) => { + if (o === void 0 || o === "" || o === null) return c; + try { + if (!S(this, W)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); + const a = S(this, W).decode(o); + return _e.unpack(a); + } catch { + return console.warn("core.decode", o), c; + } + }), x(this, "encode", (o = {}) => { + if (!S(this, W)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); + const c = JSON.stringify(o, (a, m) => m === void 0 ? null : m); + return S(this, W).encode(_e.pack(c)); + }), this.init(e, r, n); + } +} +V = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), $t.onUnhandledRejection = (t) => { + var e, r, n, o, c, a; + 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 = (o = t.reason) == null ? void 0 : o.$echoMsg) == null || c.call(o), (a = t == null ? void 0 : t.preventDefault) == null || a.call(t)); +}, $t.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e); +var nr = { exports: {} }; +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ +nr.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 o(d, l, i) { + return d < l ? l : d > i ? i : d; + } + function c(d) { + return 100 * (-1 + d); + } + function a(d, l, i) { + var u; + return (u = n.positionUsing === "translate3d" ? { transform: "translate3d(" + c(d) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + c(d) + "%,0)" } : { "margin-left": c(d) + "%" }).transition = "all " + l + "ms " + i, u; + } + r.configure = function(d) { + var l, i; + for (l in d) (i = d[l]) !== void 0 && d.hasOwnProperty(l) && (n[l] = i); + return this; + }, r.status = null, r.set = function(d) { + var l = r.isStarted(); + d = o(d, n.minimum, 1), r.status = d === 1 ? null : d; + var i = r.render(!l), u = i.querySelector(n.barSelector), h = n.speed, p = n.easing; + return i.offsetWidth, m(function(f) { + n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), y(u, a(d, h, p)), d === 1 ? (y(i, { transition: "none", opacity: 1 }), i.offsetWidth, setTimeout(function() { + y(i, { transition: "all " + h + "ms linear", opacity: 0 }), setTimeout(function() { + r.remove(), f(); + }, h); + }, h)) : setTimeout(f, h); + }), this; + }, r.isStarted = function() { + return typeof r.status == "number"; + }, r.start = function() { + r.status || r.set(0); + var d = function() { + setTimeout(function() { + r.status && (r.trickle(), d()); + }, n.trickleSpeed); + }; + return n.trickle && d(), this; + }, r.done = function(d) { + return d || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this; + }, r.inc = function(d) { + var l = r.status; + return l ? (typeof d != "number" && (d = (1 - l) * o(Math.random() * l, 0.1, 0.95)), l = o(l + d, 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(d) { + return d && d.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, d.always(function() { + --e == 0 ? (t = 0, r.done()) : r.set((t - e) / t); + }), this) : this; + }, r.render = function(d) { + if (r.isRendered()) return document.getElementById("nprogress"); + s(document.documentElement, "nprogress-busy"); + var l = document.createElement("div"); + l.id = "nprogress", l.innerHTML = n.template; + var i, u = l.querySelector(n.barSelector), h = d ? "-100" : c(r.status || 0), p = document.querySelector(n.parent); + return y(u, { transition: "all 0 linear", transform: "translate3d(" + h + "%,0,0)" }), n.showSpinner || (i = l.querySelector(n.spinnerSelector)) && E(i), p != document.body && s(p, "nprogress-custom-parent"), p.appendChild(l), l; + }, r.remove = function() { + b(document.documentElement, "nprogress-busy"), b(document.querySelector(n.parent), "nprogress-custom-parent"); + var d = document.getElementById("nprogress"); + d && E(d); + }, r.isRendered = function() { + return !!document.getElementById("nprogress"); + }, r.getPositioningCSS = function() { + var d = document.body.style, l = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : ""; + return l + "Perspective" in d ? "translate3d" : l + "Transform" in d ? "translate" : "margin"; + }; + var m = /* @__PURE__ */ function() { + var d = []; + function l() { + var i = d.shift(); + i && i(l); + } + return function(i) { + d.push(i), d.length == 1 && l(); + }; + }(), y = /* @__PURE__ */ function() { + var d = ["Webkit", "O", "Moz", "ms"], l = {}; + function i(f) { + return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, O) { + return O.toUpperCase(); + }); + } + function u(f) { + var A = document.body.style; + if (f in A) return f; + for (var O, T = d.length, P = f.charAt(0).toUpperCase() + f.slice(1); T--; ) if ((O = d[T] + P) in A) return O; + return f; + } + function h(f) { + return f = i(f), l[f] || (l[f] = u(f)); + } + function p(f, A, O) { + A = h(A), f.style[A] = O; + } + return function(f, A) { + var O, T, P = arguments; + if (P.length == 2) for (O in A) (T = A[O]) !== void 0 && A.hasOwnProperty(O) && p(f, O, T); + else p(f, P[1], P[2]); + }; + }(); + function g(d, l) { + return (typeof d == "string" ? d : w(d)).indexOf(" " + l + " ") >= 0; + } + function s(d, l) { + var i = w(d), u = i + l; + g(i, l) || (d.className = u.substring(1)); + } + function b(d, l) { + var i, u = w(d); + g(d, l) && (i = u.replace(" " + l + " ", " "), d.className = i.substring(1, i.length - 1)); + } + function w(d) { + return (" " + (d.className || "") + " ").replace(/\s+/gi, " "); + } + function E(d) { + d && d.parentNode && d.parentNode.removeChild(d); + } + return r; +}(); +const dn = mt(nr.exports); +var xt, Nt, Ht = { exports: {} }; +xt = Ht, Nt = Ht.exports, function() { + var t = { version: "3.0.1", x86: {}, x64: {} }; + function e(s, b) { + return (65535 & s) * b + (((s >>> 16) * b & 65535) << 16); + } + function r(s, b) { + return s << b | s >>> 32 - b; + } + function n(s) { + return s = e(s ^= s >>> 16, 2246822507), s = e(s ^= s >>> 13, 3266489909), s ^= s >>> 16; + } + function o(s, b) { + s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]]; + var w = [0, 0, 0, 0]; + return w[3] += s[3] + b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] + b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] + b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] + b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; + } + function c(s, b) { + s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]]; + var w = [0, 0, 0, 0]; + return w[3] += s[3] * b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] * b[3], w[1] += w[2] >>> 16, w[2] &= 65535, w[2] += s[3] * b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] * b[3], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[2] * b[2], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[3] * b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] * b[3] + s[1] * b[2] + s[2] * b[1] + s[3] * b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]]; + } + function a(s, b) { + return (b %= 64) == 32 ? [s[1], s[0]] : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b | s[0] >>> 32 - b] : (b -= 32, [s[1] << b | s[0] >>> 32 - b, s[0] << b | s[1] >>> 32 - b]); + } + function m(s, b) { + return (b %= 64) == 0 ? s : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b] : [s[1] << b - 32, 0]; + } + function y(s, b) { + return [s[0] ^ b[0], s[1] ^ b[1]]; + } + function g(s) { + return s = y(s, [0, s[0] >>> 1]), s = y(s = c(s, [4283543511, 3981806797]), [0, s[0] >>> 1]), s = y(s = c(s, [3301882366, 444984403]), [0, s[0] >>> 1]); + } + t.x86.hash32 = function(s, b) { + b = b || 0; + for (var w = (s = s || "").length % 4, E = s.length - w, d = b, l = 0, i = 3432918353, u = 461845907, h = 0; h < E; h += 4) l = e(l = 255 & s.charCodeAt(h) | (255 & s.charCodeAt(h + 1)) << 8 | (255 & s.charCodeAt(h + 2)) << 16 | (255 & s.charCodeAt(h + 3)) << 24, i), l = e(l = r(l, 15), u), d = e(d = r(d ^= l, 13), 5) + 3864292196; + switch (l = 0, w) { + case 3: + l ^= (255 & s.charCodeAt(h + 2)) << 16; + case 2: + l ^= (255 & s.charCodeAt(h + 1)) << 8; + case 1: + l = e(l ^= 255 & s.charCodeAt(h), i), d ^= l = e(l = r(l, 15), u); + } + return (d = n(d ^= s.length)) >>> 0; + }, t.x86.hash128 = function(s, b) { + b = b || 0; + for (var w = (s = s || "").length % 16, E = s.length - w, d = b, l = b, i = b, u = b, h = 0, p = 0, f = 0, A = 0, O = 597399067, T = 2869860233, P = 951274213, nt = 2716044179, R = 0; R < E; R += 16) h = 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, A = 255 & s.charCodeAt(R + 12) | (255 & s.charCodeAt(R + 13)) << 8 | (255 & s.charCodeAt(R + 14)) << 16 | (255 & s.charCodeAt(R + 15)) << 24, h = r(h = e(h, O), 15), d = r(d ^= h = e(h, T), 19), d = e(d += l, 5) + 1444728091, p = r(p = e(p, T), 16), l = r(l ^= p = e(p, P), 17), l = e(l += i, 5) + 197830471, f = r(f = e(f, P), 17), i = r(i ^= f = e(f, nt), 15), i = e(i += u, 5) + 2530024501, A = r(A = e(A, nt), 18), u = r(u ^= A = e(A, O), 13), u = e(u += d, 5) + 850148119; + switch (h = 0, p = 0, f = 0, A = 0, w) { + case 15: + A ^= s.charCodeAt(R + 14) << 16; + case 14: + A ^= s.charCodeAt(R + 13) << 8; + case 13: + A = e(A ^= s.charCodeAt(R + 12), nt), u ^= A = e(A = r(A, 18), O); + case 12: + f ^= s.charCodeAt(R + 11) << 24; + case 11: + f ^= s.charCodeAt(R + 10) << 16; + case 10: + f ^= s.charCodeAt(R + 9) << 8; + case 9: + f = e(f ^= s.charCodeAt(R + 8), P), i ^= f = e(f = r(f, 17), nt); + case 8: + p ^= s.charCodeAt(R + 7) << 24; + case 7: + p ^= s.charCodeAt(R + 6) << 16; + case 6: + p ^= s.charCodeAt(R + 5) << 8; + case 5: + p = e(p ^= s.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), P); + case 4: + h ^= s.charCodeAt(R + 3) << 24; + case 3: + h ^= s.charCodeAt(R + 2) << 16; + case 2: + h ^= s.charCodeAt(R + 1) << 8; + case 1: + h = e(h ^= s.charCodeAt(R), O), d ^= h = e(h = r(h, 15), T); + } + return d ^= s.length, d += l ^= s.length, d += i ^= s.length, l += d += u ^= s.length, i += d, u += d, d = n(d), d += l = n(l), d += i = n(i), l += d += u = n(u), i += d, u += d, ("00000000" + (d >>> 0).toString(16)).slice(-8) + ("00000000" + (l >>> 0).toString(16)).slice(-8) + ("00000000" + (i >>> 0).toString(16)).slice(-8) + ("00000000" + (u >>> 0).toString(16)).slice(-8); + }, t.x64.hash128 = function(s, b) { + b = b || 0; + for (var w = (s = s || "").length % 16, E = s.length - w, d = [0, b], l = [0, b], i = [0, 0], u = [0, 0], h = [2277735313, 289559509], p = [1291169091, 658871167], f = 0; f < E; f += 16) i = [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], u = [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], i = a(i = c(i, h), 31), d = o(d = a(d = y(d, i = c(i, p)), 27), l), d = o(c(d, [0, 5]), [0, 1390208809]), u = a(u = c(u, p), 33), l = o(l = a(l = y(l, u = c(u, h)), 31), d), l = o(c(l, [0, 5]), [0, 944331445]); + switch (i = [0, 0], u = [0, 0], w) { + case 15: + u = y(u, m([0, s.charCodeAt(f + 14)], 48)); + case 14: + u = y(u, m([0, s.charCodeAt(f + 13)], 40)); + case 13: + u = y(u, m([0, s.charCodeAt(f + 12)], 32)); + case 12: + u = y(u, m([0, s.charCodeAt(f + 11)], 24)); + case 11: + u = y(u, m([0, s.charCodeAt(f + 10)], 16)); + case 10: + u = y(u, m([0, s.charCodeAt(f + 9)], 8)); + case 9: + u = c(u = y(u, [0, s.charCodeAt(f + 8)]), p), l = y(l, u = c(u = a(u, 33), h)); + case 8: + i = y(i, m([0, s.charCodeAt(f + 7)], 56)); + case 7: + i = y(i, m([0, s.charCodeAt(f + 6)], 48)); + case 6: + i = y(i, m([0, s.charCodeAt(f + 5)], 40)); + case 5: + i = y(i, m([0, s.charCodeAt(f + 4)], 32)); + case 4: + i = y(i, m([0, s.charCodeAt(f + 3)], 24)); + case 3: + i = y(i, m([0, s.charCodeAt(f + 2)], 16)); + case 2: + i = y(i, m([0, s.charCodeAt(f + 1)], 8)); + case 1: + i = c(i = y(i, [0, s.charCodeAt(f)]), h), d = y(d, i = c(i = a(i, 31), p)); + } + return d = o(d = y(d, [0, s.length]), l = y(l, [0, s.length])), l = o(l, d), d = o(d = g(d), l = g(l)), l = o(l, d), ("00000000" + (d[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (d[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[1] >>> 0).toString(16)).slice(-8); + }, xt.exports && (Nt = xt.exports = t), Nt.murmurHash3 = t; +}(); +const pn = mt(Ht.exports); +var or = { exports: {} }; +or.exports = function(t) { + var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; + function r(l, i) { + var u = l[0], h = l[1], p = l[2], f = l[3]; + h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[0] - 680876936 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[1] - 389564586 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[2] + 606105819 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[3] - 1044525330 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[4] - 176418897 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[5] + 1200080426 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[6] - 1473231341 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[7] - 45705983 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[8] + 1770035416 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[9] - 1958414417 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[10] - 42063 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[11] - 1990404162 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[12] + 1804603682 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[13] - 40341101 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[14] - 1502002290 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[15] + 1236535329 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[1] - 165796510 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[6] - 1069501632 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[11] + 643717713 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[0] - 373897302 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[5] - 701558691 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[10] + 38016083 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[15] - 660478335 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[4] - 405537848 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[9] + 568446438 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[14] - 1019803690 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[3] - 187363961 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[8] + 1163531501 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[13] - 1444681467 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[2] - 51403784 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[7] + 1735328473 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[12] - 1926607734 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[5] - 378558 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[8] - 2022574463 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[11] + 1839030562 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[14] - 35309556 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[1] - 1530992060 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[4] + 1272893353 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[7] - 155497632 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[10] - 1094730640 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[13] + 681279174 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[0] - 358537222 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[3] - 722521979 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[6] + 76029189 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[9] - 640364487 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[12] - 421815835 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[15] + 530742520 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[2] - 995338651 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[0] - 198630844 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[7] + 1126891415 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[14] - 1416354905 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[5] - 57434055 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[12] + 1700485571 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[3] - 1894986606 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[10] - 1051523 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[1] - 2054922799 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[8] + 1873313359 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[15] - 30611744 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[6] - 1560198380 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[13] + 1309151649 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[4] - 145523070 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[11] - 1120210379 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[2] + 718787259 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[9] - 343485551 | 0) << 21 | h >>> 11) + p | 0, l[0] = u + l[0] | 0, l[1] = h + l[1] | 0, l[2] = p + l[2] | 0, l[3] = f + l[3] | 0; + } + function n(l) { + var i, u = []; + for (i = 0; i < 64; i += 4) u[i >> 2] = l.charCodeAt(i) + (l.charCodeAt(i + 1) << 8) + (l.charCodeAt(i + 2) << 16) + (l.charCodeAt(i + 3) << 24); + return u; + } + function o(l) { + var i, u = []; + for (i = 0; i < 64; i += 4) u[i >> 2] = l[i] + (l[i + 1] << 8) + (l[i + 2] << 16) + (l[i + 3] << 24); + return u; + } + function c(l) { + var i, u, h, p, f, A, O = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (i = 64; i <= O; i += 64) r(T, n(l.substring(i - 64, i))); + for (u = (l = l.substring(i - 64)).length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i = 0; i < u; i += 1) h[i >> 2] |= l.charCodeAt(i) << (i % 4 << 3); + if (h[i >> 2] |= 128 << (i % 4 << 3), i > 55) for (r(T, h), i = 0; i < 16; i += 1) h[i] = 0; + return p = (p = 8 * O).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), A = parseInt(p[1], 16) || 0, h[14] = f, h[15] = A, r(T, h), T; + } + function a(l) { + var i, u, h, p, f, A, O = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (i = 64; i <= O; i += 64) r(T, o(l.subarray(i - 64, i))); + for (u = (l = i - 64 < O ? l.subarray(i - 64) : new Uint8Array(0)).length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i = 0; i < u; i += 1) h[i >> 2] |= l[i] << (i % 4 << 3); + if (h[i >> 2] |= 128 << (i % 4 << 3), i > 55) for (r(T, h), i = 0; i < 16; i += 1) h[i] = 0; + return p = (p = 8 * O).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), A = parseInt(p[1], 16) || 0, h[14] = f, h[15] = A, r(T, h), T; + } + function m(l) { + var i, u = ""; + for (i = 0; i < 4; i += 1) u += e[l >> 8 * i + 4 & 15] + e[l >> 8 * i & 15]; + return u; + } + function y(l) { + var i; + for (i = 0; i < l.length; i += 1) l[i] = m(l[i]); + return l.join(""); + } + function g(l) { + return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l; + } + function s(l, i) { + var u, h = l.length, p = new ArrayBuffer(h), f = new Uint8Array(p); + for (u = 0; u < h; u += 1) f[u] = l.charCodeAt(u); + return i ? f : p; + } + function b(l) { + return String.fromCharCode.apply(null, new Uint8Array(l)); + } + function w(l, i, u) { + var h = new Uint8Array(l.byteLength + i.byteLength); + return h.set(new Uint8Array(l)), h.set(new Uint8Array(i), l.byteLength), h; + } + function E(l) { + var i, u = [], h = l.length; + for (i = 0; i < h - 1; i += 2) u.push(parseInt(l.substr(i, 2), 16)); + return String.fromCharCode.apply(String, u); + } + function d() { + this.reset(); + } + return y(c("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { + function l(i, u) { + return (i = 0 | i || 0) < 0 ? Math.max(i + u, 0) : Math.min(i, u); + } + ArrayBuffer.prototype.slice = function(i, u) { + var h, p, f, A, O = this.byteLength, T = l(i, O), P = O; + return u !== t && (P = l(u, O)), T > P ? new ArrayBuffer(0) : (h = P - T, p = new ArrayBuffer(h), f = new Uint8Array(p), A = new Uint8Array(this, T, h), f.set(A), p); + }; + }(), d.prototype.append = function(l) { + return this.appendBinary(g(l)), this; + }, d.prototype.appendBinary = function(l) { + this._buff += l, this._length += l.length; + var i, u = this._buff.length; + for (i = 64; i <= u; i += 64) r(this._hash, n(this._buff.substring(i - 64, i))); + return this._buff = this._buff.substring(i - 64), this; + }, d.prototype.end = function(l) { + var i, u, h = this._buff, p = h.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (i = 0; i < p; i += 1) f[i >> 2] |= h.charCodeAt(i) << (i % 4 << 3); + return this._finish(f, p), u = y(this._hash), l && (u = E(u)), this.reset(), u; + }, d.prototype.reset = function() { + return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, d.prototype.getState = function() { + return { buff: this._buff, length: this._length, hash: this._hash.slice() }; + }, d.prototype.setState = function(l) { + return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this; + }, d.prototype.destroy = function() { + delete this._hash, delete this._buff, delete this._length; + }, d.prototype._finish = function(l, i) { + var u, h, p, f = i; + if (l[f >> 2] |= 128 << (f % 4 << 3), f > 55) for (r(this._hash, l), f = 0; f < 16; f += 1) l[f] = 0; + u = (u = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(u[2], 16), p = parseInt(u[1], 16) || 0, l[14] = h, l[15] = p, r(this._hash, l); + }, d.hash = function(l, i) { + return d.hashBinary(g(l), i); + }, d.hashBinary = function(l, i) { + var u = y(c(l)); + return i ? E(u) : u; + }, d.ArrayBuffer = function() { + this.reset(); + }, d.ArrayBuffer.prototype.append = function(l) { + var i, u = w(this._buff.buffer, l), h = u.length; + for (this._length += l.byteLength, i = 64; i <= h; i += 64) r(this._hash, o(u.subarray(i - 64, i))); + return this._buff = i - 64 < h ? new Uint8Array(u.buffer.slice(i - 64)) : new Uint8Array(0), this; + }, d.ArrayBuffer.prototype.end = function(l) { + var i, u, h = this._buff, p = h.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (i = 0; i < p; i += 1) f[i >> 2] |= h[i] << (i % 4 << 3); + return this._finish(f, p), u = y(this._hash), l && (u = E(u)), this.reset(), u; + }, d.ArrayBuffer.prototype.reset = function() { + return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, d.ArrayBuffer.prototype.getState = function() { + var l = d.prototype.getState.call(this); + return l.buff = b(l.buff), l; + }, d.ArrayBuffer.prototype.setState = function(l) { + return l.buff = s(l.buff, !0), d.prototype.setState.call(this, l); + }, d.ArrayBuffer.prototype.destroy = d.prototype.destroy, d.ArrayBuffer.prototype._finish = d.prototype._finish, d.ArrayBuffer.hash = function(l, i) { + var u = y(a(new Uint8Array(l))); + return i ? E(u) : u; + }, d; +}(); +const gn = mt(or.exports); +export { + pn as M, + dn as N, + gn as S, + N as a, + hn as b, + $t as s +}; diff --git a/dist/common/vender-yKcgvbX-.js b/dist/common/vender-yKcgvbX-.js deleted file mode 100644 index dfdfb1f..0000000 --- a/dist/common/vender-yKcgvbX-.js +++ /dev/null @@ -1,1619 +0,0 @@ -function me(t, e) { - return function() { - return t.apply(e, arguments); - }; -} -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"), 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); -}, 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, 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 c = r ? Object.getOwnPropertyNames(t) : Object.keys(t), u = c.length; - let b; - 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, 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, Ve = (yt = typeof Uint8Array < "u" && Ft(Uint8Array), (t) => yt && t instanceof yt); -var yt; -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, (s, c) => { - let u; - (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 }, 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; - return t && (typeof FormData == "function" && t instanceof FormData || j(t.append) && ((e = ut(t)) === "formdata" || e === "object" && j(t.toString) && t.toString() === "[object FormData]")); -}, isArrayBufferView: function(t) { - let e; - return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && $t(t.buffer), e; -}, isString: 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 s = 0, c = arguments.length; s < c; s++) arguments[s] && Q(arguments[s], n); - return r; -}, 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 s, c, u; - const b = {}; - if (e = e || {}, t == null) return e; - do { - 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; -}, kindOf: ut, kindOfTest: B, endsWith: (t, e, r) => { - t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; - const n = t.indexOf(e, r); - return n !== -1 && n === r; -}, toArray: (t) => { - if (!t) return null; - if ($(t)) return t; - let e = t.length; - if (!Ht(e)) return null; - const r = new Array(e); - for (; e-- > 0; ) r[e] = t[e]; - return r; -}, forEachEntry: (t, e) => { - const r = (t && t[Symbol.iterator]).call(t); - let n; - for (; (n = r.next()) && !n.done; ) { - const 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: 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]; - j(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { - throw Error("Can not rewrite read-only method '" + r + "'"); - })); - }); -}, toObjectSet: (t, e) => { - const r = {}, n = (s) => { - s.forEach((c) => { - r[c] = !0; - }); - }; - return $(t) ? n(t) : n(String(t).split(e)), r; -}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) { - return r.toUpperCase() + n; -}), noop: () => { -}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Jt, global: be, isContextDefined: Vt, ALPHABET: Qt, generateString: (t = 16, e = Qt.ALPHA_DIGIT) => { - let r = ""; - const { length: n } = e; - for (; t--; ) r += e[Math.random() * n | 0]; - return r; -}, isSpecCompliantForm: function(t) { - return !!(t && j(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); -}, toJSONObject: (t) => { - const e = new Array(10), r = (n, s) => { - if (rt(n)) { - if (e.indexOf(n) >= 0) return; - if (!("toJSON" in n)) { - e[s] = n; - const c = $(n) ? [] : {}; - return Q(n, (u, b) => { - const m = r(u, s + 1); - !X(m) && (c[b] = m); - }), e[s] = void 0, c; - } - } - return n; - }; - return r(t, 0); -}, 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 }; -} }); -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, 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, s), u.cause = t, u.name = t.name, c && Object.assign(u, c), u; -}; -function bt(t) { - return v.isPlainObject(t) || v.isArray(t); -} -function we(t) { - return v.endsWith(t, "[]") ? t.slice(0, -2) : t; -} -function te(t, e, r) { - return t ? t.concat(e).map(function(n, s) { - return n = we(n), !r && s ? "[" + n + "]" : n; - }).join(r ? "." : "") : e; -} -const Qe = v.toFlatObject(v, {}, null, function(t) { - return /^is[A-Z]/.test(t); -}); -function lt(t, e, r) { - if (!v.isObject(t)) throw new TypeError("target must be an object"); - e = e || new FormData(); - const n = (r = v.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, A) { - return !v.isUndefined(A[w]); - })).metaTokens, 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(); - if (!b && v.isBlob(w)) throw new O("Blob is not supported. Use a Buffer instead."); - return v.isArrayBuffer(w) || v.isTypedArray(w) ? b && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w; - } - function g(w, A, h) { - let l = w; - if (w && !h && typeof w == "object") { - if (v.endsWith(A, "{}")) A = n ? A : A.slice(0, -2), w = JSON.stringify(w); - else if (v.isArray(w) && function(o) { - return v.isArray(o) && !o.some(bt); - }(w) || (v.isFileList(w) || v.endsWith(A, "[]")) && (l = v.toArray(w))) return A = we(A), l.forEach(function(o, 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, c), m(w)), !1); - } - 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 (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; -} -function ee(t) { - const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; - return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) { - return e[r]; - }); -} -function Dt(t, e) { - this._pairs = [], t && lt(t, this, e); -} -const re = Dt.prototype; -function 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 || 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 ? "?" : "&") + c; - } - return t; -} -re.append = function(t, e) { - this._pairs.push([t, e]); -}, re.toString = function(t) { - const e = t ? function(r) { - return t.call(this, r, ee); - } : ee; - return this._pairs.map(function(r) { - return e(r[0]) + "=" + e(r[1]); - }, "").join("&"); -}; -class ne { - constructor() { - this.handlers = []; - } - use(e, r, n) { - return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; - } - eject(e) { - this.handlers[e] && (this.handlers[e] = null); - } - clear() { - this.handlers && (this.handlers = []); - } - forEach(e) { - v.forEach(this.handlers, function(r) { - r !== null && e(r); - }); - } -} -const Ae = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, 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 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, s, c) { - let u = r[c++]; - if (u === "__proto__") return !0; - 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], i[h] = g[h]; - return i; - }(s[u])), !b); - } - if (v.isFormData(t) && v.isFunction(t.entries)) { - const r = {}; - 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, 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 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, 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 ((c = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { - const u = this.env && this.env.FormData; - return lt(c ? { "files[]": t } : t, u && new u(), this.formSerializer); - } - } - 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) { - if (g.name !== "SyntaxError") throw g; - } - return (m || JSON.stringify)(u); - }(t)) : t; -}], transformResponse: [function(t) { - const e = this.transitional || tt.transitional, r = e && e.forcedJSONParsing, n = this.responseType === "json"; - if (v.isResponse(t) || v.isReadableStream(t)) return t; - if (t && v.isString(t) && (r && !this.responseType || n)) { - const s = !(e && e.silentJSONParsing) && n; - try { - return JSON.parse(t); - } catch (c) { - if (s) - throw c.name === "SyntaxError" ? O.from(c, O.ERR_BAD_RESPONSE, this, null, this.response) : c; - } - } - return t; -}], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: U.classes.FormData, Blob: U.classes.Blob }, validateStatus: function(t) { - return t >= 200 && t < 300; -}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; -v.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { - tt.headers[t] = {}; -}); -const 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, 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 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, 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, i, y; - return b && b.split(` -`).forEach(function(w) { - 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()) 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 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(c); ) u[m[1]] = m[2]; - return u; - }(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"); - } - } - } - has(e, r) { - if (e = G(e)) { - const n = v.findKey(this, e); - return !(!n || this[n] === void 0 || r && !wt(0, this[n], n, r)); - } - return !1; - } - delete(e, r) { - const n = this; - let 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], s = !0); - } - } - return v.isArray(e) ? e.forEach(c) : c(e), s; - } - clear(e) { - const r = Object.keys(this); - let n = r.length, s = !1; - for (; n--; ) { - const c = r[n]; - e && !wt(0, this[c], c, e, !0) || (delete this[c], s = !0); - } - return s; - } - normalize(e) { - const r = this, n = {}; - 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, i, y) => i.toUpperCase() + y); - }(c) : String(c).trim(); - b !== c && delete r[c], r[b] = ot(s), n[b] = !0; - }), this; - } - concat(...e) { - return this.constructor.concat(this, ...e); - } - toJSON(e) { - const r = /* @__PURE__ */ Object.create(null); - return v.forEach(this, (n, s) => { - n != null && n !== !1 && (r[s] = e && v.isArray(n) ? n.join(", ") : n); - }), r; - } - [Symbol.iterator]() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - toString() { - return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(` -`); - } - get [Symbol.toStringTag]() { - return "AxiosHeaders"; - } - static from(e) { - return e instanceof this ? e : new this(e); - } - static concat(e, ...r) { - const n = new this(e); - return r.forEach((s) => n.set(s)), n; - } - static accessor(e) { - const r = (this[se] = this[se] = { accessors: {} }).accessors, n = this.prototype; - function s(c) { - const u = G(c); - r[u] || (function(b, m) { - const g = v.toCamelCase(" " + m); - ["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, c), r[u] = !0); - } - return v.isArray(e) ? e.forEach(s) : s(e), this; - } -} -function vt(t, e) { - const r = this || tt, n = e || r, s = N.from(n.headers); - let c = n.data; - return v.forEach(t, function(u) { - c = u.call(r, c, s.normalize(), e ? e.status : void 0); - }), s.normalize(), c; -} -function Se(t) { - return !(!t || !t.__CANCEL__); -} -function K(t, e, r) { - O.call(this, t ?? "canceled", O.ERR_CANCELED, e, r), this.name = "CanceledError"; -} -function Ce(t, e, r) { - const n = r.config.validateStatus; - r.status && n && !n(r.status) ? e(new O("Request failed with status code " + r.status, [O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r); -} -N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), v.reduceDescriptors(N.prototype, ({ value: t }, e) => { - let r = e[0].toUpperCase() + e.slice(1); - return { get: () => t, set(n) { - this[r] = n; - } }; -}), v.freezeMethods(N), v.inherits(K, O, { __CANCEL__: !0 }); -const ht = (t, e, r = 3) => { - let n = 0; - const 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[i] = w, m[i] = A; - let l = y, o = 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(c, u) { - let b = 0; - const m = 1e3 / u; - let g = null; - return function() { - 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))); - }; - }((c) => { - const u = c.loaded, b = c.lengthComputable ? c.total : void 0, m = u - n, g = s(m); - n = u; - 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); -}, or = U.hasStandardBrowserEnv ? function() { - const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); - let r; - 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(s) { - const c = v.isString(s) ? n(s) : s; - return c.protocol === r.protocol && c.host === r.host; - }; -}() : function() { - return !0; -}, 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(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; -}, remove(t) { - this.write(t, "", Date.now() - 864e5); -} } : { write() { -}, read: () => null, remove() { -} }; -function Oe(t, e) { - return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) { - return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r; - }(t, e) : e; -} -const ie = (t) => t instanceof N ? { ...t } : t; -function z(t, e) { - e = e || {}; - const r = {}; - function n(g, 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 s(g, i, y) { - return v.isUndefined(i) ? v.isUndefined(g) ? void 0 : n(void 0, g, y) : n(g, i, y); - } - function c(g, i) { - if (!v.isUndefined(i)) return n(void 0, i); - } - function u(g, i) { - return v.isUndefined(i) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, i); - } - function b(g, i, y) { - return y in e ? n(g, i) : y in t ? n(void 0, g) : void 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 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: 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, ...i] = r ? r.split(";").map((y) => y.trim()).filter(Boolean) : []; - b.setContentType([g || "multipart/form-data", ...i].join("; ")); - } - } - 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; -}, ir = typeof XMLHttpRequest < "u" && function(t) { - return new Promise(function(e, r) { - const n = Re(t); - 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 i() { - if (!g) return; - const w = N.from("getAllResponseHeaders" in g && g.getAllResponseHeaders()); - Ce(function(A) { - e(A), m(); - }, function(A) { - r(A), m(); - }, { data: b && b !== "text" && b !== "json" ? g.response : g.responseText, status: g.status, statusText: g.statusText, headers: w, config: t, request: g }), g = null; - } - g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = 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() { - r(new O("Network Error", O.ERR_NETWORK, n, g)), g = null; - }, g.ontimeout = function() { - let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded"; - const A = n.transitional || Ae; - n.timeoutErrorMessage && (w = n.timeoutErrorMessage), r(new O(w, A.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED, n, g)), g = null; - }, 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); - }, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u))); - const y = function(w) { - const A = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w); - return A && A[1] || ""; - }(n.url); - y && U.protocols.indexOf(y) === -1 ? r(new O("Unsupported protocol " + y + ":", O.ERR_BAD_REQUEST, t)) : g.send(s || null); - }); -}, ar = (t, e) => { - let r, n = new AbortController(); - 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 c = e && setTimeout(() => { - s(new O(`timeout ${e} of ms exceeded`, O.ETIMEDOUT)); - }, e); - const u = () => { - 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", s)); - const { signal: b } = n; - return b.unsubscribe = u, [b, () => { - c && clearTimeout(c), c = null; - }]; -}, cr = function* (t, e) { - let r = t.byteLength; - if (!e || r < e) return void (yield t); - 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 c.next(); - if (m) return b.close(), void n(); - 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 ur = Te && (() => { - let t = !1; - const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() { - return t = !0, "half"; - } }).headers.has("Content-Type"); - return t && !e; -})(), Rt = Te && !!(() => { - try { - return v.isReadableStream(new Response("").body); - } catch { - } -})(), ft = { stream: Rt && ((t) => t.body) }; -var le; -pt && (le = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { - !ft[t] && (ft[t] = v.isFunction(le[t]) ? (e) => e[t]() : (e, r) => { - throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, r); - }); -})); -const 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: 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] = s || c || u ? ar([s, c], u) : []; - const a = () => { - !A && setTimeout(() => { - l && l.unsubscribe(); - }), A = !0; - }; - let d; - try { - 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")) && 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: 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)) { - const S = {}; - ["status", "statusText", "headers"].forEach((k) => { - S[k] = p[k]; - }); - const T = v.toFiniteNumber(p.headers.get("content-length")); - p = new Response(ae(p.body, 65536, b && ce(T, ht(b, !0)), f && a, Ot), S); - } - g = g || "text"; - let E = await ft[v.findKey(ft, g) || "text"](p, 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 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) => { - if (t) { - try { - Object.defineProperty(t, "name", { value: e }); - } catch { - } - Object.defineProperty(t, "adapterName", { value: e }); - } -}); -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 s = {}; - for (let c = 0; c < e; c++) { - let 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; - s[u || "#" + c] = n; - } - if (!n) { - 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; -}; -function At(t) { - if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new K(null, t); -} -function fe(t) { - return At(t), t.headers = N.from(t.headers), t.data = vt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), _e(t.adapter || tt.adapter)(t).then(function(e) { - return At(t), e.data = vt.call(t, t.transformResponse, e), e.headers = N.from(e.headers), e; - }, function(e) { - return Se(e) || (At(t), e && e.response && (e.response.data = vt.call(t, t.transformResponse, e.response), e.response.headers = N.from(e.response.headers))), Promise.reject(e); - }); -} -const 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; - }; -}); -const de = {}; -It.transitional = function(t, e, r) { - function n(s, c) { - return "[Axios v1.7.2] Transitional option '" + s + "'" + c + (r ? ". " + r : ""); - } - 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 s = n.length; - for (; s-- > 0; ) { - const c = n[s], u = e[c]; - if (u) { - 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 { - constructor(e) { - this.defaults = e, this.interceptors = { request: new ne(), response: new ne() }; - } - async request(e, r) { - try { - return await this._request(e, r); - } catch (n) { - if (n instanceof Error) { - let s; - Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error(); - const c = s.stack ? s.stack.replace(/^.+\n/, "") : ""; - try { - n.stack ? c && !String(n.stack).endsWith(c.replace(/^.+\n.+\n/, "")) && (n.stack += ` -` + c) : n.stack = c; - } catch { - } - } - throw n; - } - } - _request(e, r) { - typeof e == "string" ? (r = r || {}).url = e : r = e || {}, r = z(this.defaults, r); - 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 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, i = Promise.resolve(r); w < y; ) i = i.then(h[w++], h[w++]); - return i; - } - y = b.length; - let A = r; - for (w = 0; w < y; ) { - const h = b[w++], l = b[w++]; - try { - A = h(A); - } catch (o) { - l.call(this, o); - break; - } - } - try { - i = fe.call(this, A); - } catch (h) { - return Promise.reject(h); - } - 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); - } -} -v.forEach(["delete", "get", "head", "options"], function(t) { - W.prototype[t] = function(e, r) { - return this.request(z(r || {}, { method: t, url: e, data: (r || {}).data })); - }; -}), v.forEach(["post", "put", "patch"], function(t) { - function e(r) { - return function(n, 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); -}); -class Wt { - constructor(e) { - if (typeof e != "function") throw new TypeError("executor must be a function."); - let r; - this.promise = new Promise(function(s) { - r = s; - }); - const n = this; - this.promise.then((s) => { - if (!n._listeners) return; - let c = n._listeners.length; - for (; c-- > 0; ) n._listeners[c](s); - n._listeners = null; - }), this.promise.then = (s) => { - let c; - const u = new Promise((b) => { - n.subscribe(b), c = b; - }).then(s); - return u.cancel = function() { - n.unsubscribe(c); - }, u; - }, e(function(s, c, u) { - n.reason || (n.reason = new K(s, c, u), r(n.reason)); - }); - } - throwIfRequested() { - if (this.reason) throw this.reason; - } - subscribe(e) { - this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]; - } - unsubscribe(e) { - if (!this._listeners) return; - const r = this._listeners.indexOf(e); - r !== -1 && this._listeners.splice(r, 1); - } - static source() { - let e; - return { token: new Wt(function(r) { - e = r; - }), cancel: e }; - } -} -const xt = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; -Object.entries(xt).forEach(([t, e]) => { - xt[e] = t; -}); -const _ = function t(e) { - const r = new W(e), n = me(W.prototype.request, r); - return v.extend(n, W.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(s) { - return t(z(e, s)); - }, n; -}(tt); -_.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) { - return t.apply(null, e); - }; -}, _.isAxiosError = function(t) { - return v.isObject(t) && t.isAxiosError === !0; -}, _.mergeConfig = z, _.AxiosHeaders = N, _.formToJSON = (t) => Ee(v.isHTMLForm(t) ? new FormData(t) : t), _.getAdapter = _e, _.HttpStatusCode = xt, _.default = _; -var 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, Ne = {}; -pe = Ne, function(t, e) { - var r = e(); - for (var n in r) pe[n] = r[n]; -}(0, function() { - var t = function(c) { - return typeof c != "string" ? c : c.replace(/[\+ \|\^\%]/g, function(u) { - return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[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(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(c, u) { - var b = (u = u || {}).verbose || !1; - 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) { - b && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(h)); - var l, o = typeof h; - if (h === null) return { type: "null", index: -3 }; - if (typeof h > "u") return { type: "undefined", index: -5 }; - if (h instanceof Array) { - var a = ["@"]; - for (var d in h) h.hasOwnProperty(d) && a.push(A(h[d])); - return a; - } - if (o === "object") { - 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 = 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); - }(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) { - if (b && console.log("Calling a recursiveParser with " + this.JSON.stringify(h)), h instanceof Array) { - var l = h.shift(); - for (var o in h) h.hasOwnProperty(o) && (l += A(h[o]) + "|"); - return (l[l.length - 1] === "|" ? l.slice(0, -1) : l) + "]"; - } - var 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(c, u) { - u = u || {}; - 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 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"), 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 (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, a = 0; - return u.verbose && console.log("Starting recursive parser"), function d() { - var p = A[a++]; - if (u.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") { - 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) { - case -1: - f.push(!0); - break; - case -2: - f.push(!1); - break; - case -3: - f.push(null); - break; - case -5: - f.push(void 0); - break; - case -4: - f.push(""); - break; - default: - f.push(m[E]); - } - } - return u.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; - } - if (p === "$") { - for (f = {}; a < o; a++) { - var S = A[a]; - if (S === "]") return f; - if (S = S === -4 ? "" : m[S], (E = A[++a]) === "@" || E === "$") f[S] = d(); - else switch (E) { - case -1: - f[S] = !0; - break; - case -2: - f[S] = !1; - break; - case -3: - f[S] = null; - break; - case -5: - f[S] = void 0; - break; - case -4: - f[S] = ""; - break; - default: - f[S] = m[E]; - } - } - return u.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; - } - throw new TypeError("Bad token " + p + " isn't a type"); - }(); - } }; -}); -const ge = pr(Ne); -var Y, Z, H, q, _t, Pt, st, kt, Nt; -class jt { - 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 = "/", 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 s = r.split(""); - for (let c = 0; c < s.length; c++) n[c] = s[c].charCodeAt(0); - return n; - }; -}, TextDecoder: function(t) { - if (ye.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); - this.encoding = "utf-8", this.decode = function(e, r) { - if (typeof e > "u") return ""; - var n = typeof r < "u" && n in r && r.stream; - if (typeof n != "boolean") throw new TypeError("stream option must be boolean"); - if (ArrayBuffer.isView(e)) { - var 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 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(` -`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character"); - this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255); - for (let r = 0; r < e.length; r++) this.decodeMap[e.charCodeAt(r)] = r; - } - encode(e) { - if (!e || e.length === 0) return ""; - const r = new mr(this).encodeV2(e); - return String.fromCharCode(...r); - } - 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 mr { - constructor(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; - e === 0 && (r -= 1, e = 8); - let n = this.src[r] >> 8 - e; - return e < 6 && r > 0 && (n |= this.src[r - 1] << e), 63 & n; - } - encodeV2(e) { - this.src = function(n) { - return gr.encode(n || ""); - }(e), this.pos = 8 * this.src.length; - const r = []; - for (; this.pos > 0; ) { - 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 br { - constructor(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, 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 ? (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 s > 0 && (n--, r[n] = 255 & c), r.slice(n); - } -} -at = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { - let t, e; - return { promise: new Promise((r, n) => { - t = r, e = n; - }), resolve: t, reject: e }; -}); -class Lt { - constructor(e, r, n) { - P(this, J), 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((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, ...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) => { - 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(s)) == null ? void 0 : w.forEach((A, h, l) => { - A && A[0](y), delete l[h]; - }); - }).catch((y) => { - var w; - 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(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", (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(s); - return ge.unpack(u); - } catch { - return console.warn("core.decode", s), c; - } - }), x(this, "encode", (s = {}) => { - if (!C(this, I)) throw new Error("未初始化 appSecret,请先通过 init 设置 appSecret"); - 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(), 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 Ue = { exports: {} }; -/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */ -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 s(h, l, o) { - return h < l ? l : h > o ? o : h; - } - function c(h) { - return 100 * (-1 + h); - } - function u(h, l, o) { - 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; - for (l in h) (o = h[l]) !== void 0 && h.hasOwnProperty(l) && (n[l] = o); - return this; - }, r.status = null, r.set = function(h) { - var l = r.isStarted(); - h = 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(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); - }, d)) : setTimeout(f, d); - }), this; - }, r.isStarted = function() { - return typeof r.status == "number"; - }, r.start = function() { - r.status || r.set(0); - var h = function() { - setTimeout(function() { - r.status && (r.trickle(), h()); - }, n.trickleSpeed); - }; - return n.trickle && h(), this; - }, r.done = function(h) { - return h || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this; - }, r.inc = function(h) { - var l = r.status; - return l ? (typeof h != "number" && (h = (1 - l) * 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) { - return h && h.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, h.always(function() { - --e == 0 ? (t = 0, r.done()) : r.set((t - e) / t); - }), this) : this; - }, r.render = function(h) { - if (r.isRendered()) return document.getElementById("nprogress"); - i(document.documentElement, "nprogress-busy"); - var l = document.createElement("div"); - l.id = "nprogress", l.innerHTML = n.template; - 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"); - h && A(h); - }, r.isRendered = function() { - return !!document.getElementById("nprogress"); - }, r.getPositioningCSS = function() { - var h = document.body.style, l = "WebkitTransform" in h ? "Webkit" : "MozTransform" in h ? "Moz" : "msTransform" in h ? "ms" : "OTransform" in h ? "O" : ""; - return l + "Perspective" in h ? "translate3d" : l + "Transform" in h ? "translate" : "margin"; - }; - var b = /* @__PURE__ */ function() { - var h = []; - function l() { - var o = h.shift(); - o && o(l); - } - return function(o) { - h.push(o), h.length == 1 && l(); - }; - }(), m = /* @__PURE__ */ function() { - var h = ["Webkit", "O", "Moz", "ms"], l = {}; - function o(f) { - return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(E, S) { - return S.toUpperCase(); - }); - } - function 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] = a(f)); - } - function p(f, E, S) { - E = d(E), f.style[E] = S; - } - return function(f, E) { - var S, T, k = arguments; - if (k.length == 2) for (S in E) (T = E[S]) !== void 0 && E.hasOwnProperty(S) && p(f, S, T); - else p(f, k[1], k[2]); - }; - }(); - function g(h, l) { - return (typeof h == "string" ? h : w(h)).indexOf(" " + l + " ") >= 0; - } - function i(h, l) { - var o = w(h), a = o + l; - g(o, l) || (h.className = a.substring(1)); - } - function y(h, l) { - 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, " "); - } - function A(h) { - h && h.parentNode && h.parentNode.removeChild(h); - } - return r; -}(); -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(i, y) { - return (65535 & i) * y + (((i >>> 16) * y & 65535) << 16); - } - function r(i, y) { - return i << y | i >>> 32 - y; - } - function n(i) { - return i = e(i ^= i >>> 16, 2246822507), i = e(i ^= i >>> 13, 3266489909), i ^= i >>> 16; - } - 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] += 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 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] += 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(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(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(i, y) { - return [i[0] ^ y[0], i[1] ^ y[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(i, y) { - y = y || 0; - 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 & i.charCodeAt(d + 2)) << 16; - case 2: - l ^= (255 & i.charCodeAt(d + 1)) << 8; - case 1: - l = e(l ^= 255 & i.charCodeAt(d), o), h ^= l = e(l = r(l, 15), a); - } - return (h = n(h ^= i.length)) >>> 0; - }, t.x86.hash128 = function(i, y) { - y = y || 0; - 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 ^= i.charCodeAt(R + 14) << 16; - case 14: - E ^= i.charCodeAt(R + 13) << 8; - case 13: - E = e(E ^= i.charCodeAt(R + 12), et), a ^= E = e(E = r(E, 18), S); - case 12: - f ^= i.charCodeAt(R + 11) << 24; - case 11: - f ^= i.charCodeAt(R + 10) << 16; - case 10: - f ^= i.charCodeAt(R + 9) << 8; - case 9: - f = e(f ^= i.charCodeAt(R + 8), k), o ^= f = e(f = r(f, 17), et); - case 8: - p ^= i.charCodeAt(R + 7) << 24; - case 7: - p ^= i.charCodeAt(R + 6) << 16; - case 6: - p ^= i.charCodeAt(R + 5) << 8; - case 5: - p = e(p ^= i.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), k); - case 4: - d ^= i.charCodeAt(R + 3) << 24; - case 3: - d ^= i.charCodeAt(R + 2) << 16; - case 2: - d ^= i.charCodeAt(R + 1) << 8; - case 1: - d = e(d ^= i.charCodeAt(R), S), h ^= d = e(d = r(d, 15), T); - } - 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 = (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: - a = m(a, b([0, i.charCodeAt(f + 14)], 48)); - case 14: - a = m(a, b([0, i.charCodeAt(f + 13)], 40)); - case 13: - a = m(a, b([0, i.charCodeAt(f + 12)], 32)); - case 12: - a = m(a, b([0, i.charCodeAt(f + 11)], 24)); - case 11: - a = m(a, b([0, i.charCodeAt(f + 10)], 16)); - case 10: - a = m(a, b([0, i.charCodeAt(f + 9)], 8)); - case 9: - 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, i.charCodeAt(f + 7)], 56)); - case 7: - o = m(o, b([0, i.charCodeAt(f + 6)], 48)); - case 6: - o = m(o, b([0, i.charCodeAt(f + 5)], 40)); - case 5: - o = m(o, b([0, i.charCodeAt(f + 4)], 32)); - case 4: - o = m(o, b([0, i.charCodeAt(f + 3)], 24)); - case 3: - o = m(o, b([0, i.charCodeAt(f + 2)], 16)); - case 2: - o = m(o, b([0, i.charCodeAt(f + 1)], 8)); - case 1: - o = c(o = m(o, [0, i.charCodeAt(f)]), d), h = m(h, o = c(o = u(o, 31), p)); - } - 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 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 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, 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 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 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 (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, 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, 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; - for (o = 0; o < l.length; o += 1) l[o] = b(l[o]); - return l.join(""); - } - function g(l) { - return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l; - } - function 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, 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, 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(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, a) { - var d, p, f, E, S = this.byteLength, T = l(o, S), k = S; - 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, 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, 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), 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() { - return { buff: this._buff, length: this._length, hash: this._hash.slice() }; - }, h.prototype.setState = function(l) { - return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this; - }, h.prototype.destroy = function() { - delete this._hash, delete this._buff, delete this._length; - }, h.prototype._finish = function(l, o) { - var 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; - 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 a = m(c(l)); - return o ? A(a) : a; - }, h.ArrayBuffer = function() { - this.reset(); - }, h.ArrayBuffer.prototype.append = function(l) { - 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, 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), 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 = 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 a = m(u(new Uint8Array(l))); - return o ? A(a) : a; - }, h; -}(); -const Ar = zt(Be.exports); -export { - vr as M, - wr as N, - Ar as S, - _ as a, - Lt as s -}; diff --git a/dist/components.js b/dist/components.js index cd7bdf0..9d3e4d9 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-xbA_iREM.js"; +import { aq as s, ah as p, ar as n, as as r, ap as t } from "./common/main-czq-W-Zi.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index fb2cfed..6a5e29e 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-xbA_iREM.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-czq-W-Zi.js"; export { s as Context, e as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 2444aca..83e78b6 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-xbA_iREM.js"; +import { D as p } from "./common/main-czq-W-Zi.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 16a9f6f..d3e6dcb 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-xbA_iREM.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-czq-W-Zi.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index 220d824..756a243 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-xbA_iREM.js"; +import { p as t } from "../common/main-czq-W-Zi.js"; export { t as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 08e3848..0974fe9 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-xbA_iREM.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-czq-W-Zi.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 ef96d98..4918734 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-xbA_iREM.js"; +import { a as o, g } from "../common/main-czq-W-Zi.js"; export { o as getNormalizeWidget, g as getOptionItemByValue diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 2517159..b8d5b0d 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-xbA_iREM.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-czq-W-Zi.js"; export { u as GridLayout, e as GridLayoutFramework, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index cd0ce2f..cb8f636 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-xbA_iREM.js"; +import { l as t, o as a, n as l } from "../common/main-czq-W-Zi.js"; export { t as getBoxStyle, a as getNormalizeFields, diff --git a/dist/hooks.js b/dist/hooks.js index 0e18008..41048fe 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-xbA_iREM.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-czq-W-Zi.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 aa75065..3be72ed 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-xbA_iREM.js"; +import { ah as a } from "./common/main-czq-W-Zi.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 71e1c11..d61bbbe 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-xbA_iREM.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-czq-W-Zi.js"; export { s as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index 3684efc..4d496b9 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-xbA_iREM.js"; +import { Y as t, X as e, Z as o, _ as g } from "./common/main-czq-W-Zi.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index 43ea1b8..75ea3f4 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-xbA_iREM.js"; +import { R as a } from "./common/main-czq-W-Zi.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index 50a7266..a21d030 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-xbA_iREM.js"; -import "./common/vender-yKcgvbX-.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-czq-W-Zi.js"; +import "./common/vender-BkiRbACr.js"; export { s as deepSome, i as getPkgCategory, diff --git a/dist/virtual-fs.js b/dist/virtual-fs.js index 18e8375..ecfa567 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-xbA_iREM.js"; +import { aD as o, aE as r } from "./common/main-czq-W-Zi.js"; export { o as default, r as toTreePaths diff --git a/package.json b/package.json index f16b699..66ff979 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.6.24", + "version": "0.6.25", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",