epic-designer-cjh
Version:
基于vue3的设计器,可视化开发页面表单
1,621 lines • 207 kB
JavaScript
import { _ as u, a as k, L as _r, C as Ir, b as Fr, E as Dr, f as Nr, o as jr, i as Lr, s as Rr } from "./ExclamationCircleFilled-5f7de9d7.js";
import { Fragment as de, Comment as Hr, Text as kr, isVNode as Ze, computed as b, inject as K, ref as X, provide as Q, defineComponent as V, unref as se, shallowRef as j, getCurrentInstance as Je, watch as q, watchEffect as Ce, onBeforeUnmount as Be, isRef as Br, reactive as He, createVNode as x, h as Nt, Transition as xt, withDirectives as Qt, resolveDirective as zr, onMounted as Ae, cloneVNode as ho, nextTick as ve, onUpdated as Zt, onUnmounted as Vr, toRef as Wr, withModifiers as wn, vShow as vo, onBeforeMount as Xr, Teleport as qr, TransitionGroup as Gr, toRaw as jt } from "vue";
import { z as Ur } from "./vue-types.m-76c57684.js";
import { g as Jt, b as Yr } from "./index.esm-56aac43a.js";
import { c as at } from "./cloneDeep-aa0cb853.js";
import { m as en, r as Kr, u as Qr } from "./stylis-9146bd77.js";
import { T as ne } from "./index-2b6651fc.js";
import { S as Zr } from "./index-97ce4605.js";
import { a as Jr, b as ei } from "./index-c3e64a00.js";
import { i as ti } from "./ResizeObserver.es-fc1a163b.js";
import { i as tn } from "./isEqual-eac09a18.js";
import { d as ni } from "./debounce-30ba20d9.js";
const oi = (e) => typeof e == "function", ri = Array.isArray, ii = (e) => typeof e == "string", li = (e) => e !== null && typeof e == "object", ai = /^on[^a-z]/, si = (e) => ai.test(e), yo = (e) => {
const t = /* @__PURE__ */ Object.create(null);
return (n) => t[n] || (t[n] = e(n));
}, ci = /-(\w)/g, nn = yo((e) => e.replace(ci, (t, n) => n ? n.toUpperCase() : "")), ui = /\B([A-Z])/g, di = yo((e) => e.replace(ui, "-$1").toLowerCase()), fi = Object.prototype.hasOwnProperty, Tn = (e, t) => fi.call(e, t);
function pi(e, t, n, o) {
const r = e[n];
if (r != null) {
const i = Tn(r, "default");
if (i && o === void 0) {
const l = r.default;
o = r.type !== Function && oi(l) ? l() : l;
}
r.type === Boolean && (!Tn(t, n) && !i ? o = !1 : o === "" && (o = !0));
}
return o;
}
function te() {
const e = [];
for (let t = 0; t < arguments.length; t++) {
const n = t < 0 || arguments.length <= t ? void 0 : arguments[t];
if (n) {
if (ii(n))
e.push(n);
else if (ri(n))
for (let o = 0; o < n.length; o++) {
const r = te(n[o]);
r && e.push(r);
}
else if (li(n))
for (const o in n)
n[o] && e.push(o);
}
}
return e.join(" ");
}
const mi = (e) => e != null && e !== "", gi = mi, hi = (e, t) => {
const n = u({}, e);
return Object.keys(t).forEach((o) => {
const r = n[o];
if (r)
r.type || r.default ? r.default = t[o] : r.def ? r.def(t[o]) : n[o] = {
type: r,
default: t[o]
};
else
throw new Error(`not have ${o} prop`);
}), n;
}, bo = hi, vi = (e) => {
const t = Object.keys(e), n = {}, o = {}, r = {};
for (let i = 0, l = t.length; i < l; i++) {
const a = t[i];
si(a) ? (n[a[2].toLowerCase() + a.slice(3)] = e[a], o[a] = e[a]) : r[a] = e[a];
}
return {
onEvents: o,
events: n,
extraAttrs: r
};
}, yi = function() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
const n = {}, o = /;(?![^(]*\))/g, r = /:(.+)/;
return typeof e == "object" ? e : (e.split(o).forEach(function(i) {
if (i) {
const l = i.split(r);
if (l.length > 1) {
const a = t ? nn(l[0].trim()) : l[0].trim();
n[a] = l[1].trim();
}
}
}), n);
}, bi = (e, t) => e[t] !== void 0, Ci = Symbol("skipFlatten"), ye = function() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
const n = Array.isArray(e) ? e : [e], o = [];
return n.forEach((r) => {
Array.isArray(r) ? o.push(...ye(r, t)) : r && r.type === de ? r.key === Ci ? o.push(r) : o.push(...ye(r.children, t)) : r && Ze(r) ? t && !Co(r) ? o.push(r) : t || o.push(r) : gi(r) && o.push(r);
}), o;
}, xi = function(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
if (Ze(e))
return e.type === de ? t === "default" ? ye(e.children) : [] : e.children && e.children[t] ? ye(e.children[t](n)) : [];
{
const o = e.$slots[t] && e.$slots[t](n);
return ye(o);
}
}, nt = (e) => {
var t;
let n = ((t = e == null ? void 0 : e.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e);
for (; n && !n.tagName; )
n = n.nextSibling;
return n;
}, $i = (e) => {
const t = {};
if (e.$ && e.$.vnode) {
const n = e.$.vnode.props || {};
Object.keys(e.$props).forEach((o) => {
const r = e.$props[o], i = di(o);
(r !== void 0 || i in n) && (t[o] = r);
});
} else if (Ze(e) && typeof e.type == "object") {
const n = e.props || {}, o = {};
Object.keys(n).forEach((i) => {
o[nn(i)] = n[i];
});
const r = e.type.props || {};
Object.keys(r).forEach((i) => {
const l = pi(r, o, i, o[i]);
(l !== void 0 || i in o) && (t[i] = l);
});
}
return t;
}, Si = function(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, r;
if (e.$) {
const i = e[t];
if (i !== void 0)
return typeof i == "function" && o ? i(n) : i;
r = e.$slots[t], r = o && r ? r(n) : r;
} else if (Ze(e)) {
const i = e.props && e.props[t];
if (i !== void 0 && e.props !== null)
return typeof i == "function" && o ? i(n) : i;
e.type === de ? r = e.children : e.children && e.children[t] && (r = e.children[t], r = o && r ? r(n) : r);
}
return Array.isArray(r) && (r = ye(r), r = r.length === 1 ? r[0] : r, r = r.length === 0 ? void 0 : r), r;
};
function Pn() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {};
return e.$ ? n = u(u({}, n), e.$attrs) : n = u(u({}, n), e.props), vi(n)[t ? "onEvents" : "events"];
}
function wi(e, t) {
let o = ((Ze(e) ? e.props : e.$attrs) || {}).style || {};
if (typeof o == "string")
o = yi(o, t);
else if (t && o) {
const r = {};
return Object.keys(o).forEach((i) => r[nn(i)] = o[i]), r;
}
return o;
}
function Ti(e) {
return e.length === 1 && e[0].type === de;
}
function Co(e) {
return e && (e.type === Hr || e.type === de && e.children.length === 0 || e.type === kr && e.children.trim() === "");
}
function Me() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
const t = [];
return e.forEach((n) => {
Array.isArray(n) ? t.push(...n) : (n == null ? void 0 : n.type) === de ? t.push(...Me(n.children)) : t.push(n);
}), t.filter((n) => !Co(n));
}
function xo(e) {
return Array.isArray(e) && e.length === 1 && (e = e[0]), e && e.__v_isVNode && typeof e.type != "symbol";
}
function Pi(e, t) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
var o, r;
return (o = t[n]) !== null && o !== void 0 ? o : (r = e[n]) === null || r === void 0 ? void 0 : r.call(e);
}
let $o = (e) => setTimeout(e, 16), So = (e) => clearTimeout(e);
typeof window < "u" && "requestAnimationFrame" in window && ($o = (e) => window.requestAnimationFrame(e), So = (e) => window.cancelAnimationFrame(e));
let On = 0;
const on = /* @__PURE__ */ new Map();
function wo(e) {
on.delete(e);
}
function ue(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
On += 1;
const n = On;
function o(r) {
if (r === 0)
wo(n), e();
else {
const i = $o(() => {
o(r - 1);
});
on.set(n, i);
}
}
return o(t), n;
}
ue.cancel = (e) => {
const t = on.get(e);
return wo(t), So(t);
};
const $t = function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return t;
}, rn = (e) => {
const t = e;
return t.install = function(n) {
n.component(t.displayName || t.name, e);
}, e;
};
function ce(e) {
return {
type: Object,
default: e
};
}
function he(e) {
return {
type: Boolean,
default: e
};
}
function Fe(e) {
return {
type: Function,
default: e
};
}
function ut(e, t) {
const n = {
validator: () => !0,
default: e
};
return n;
}
function En(e) {
return {
type: Array,
default: e
};
}
function dt(e) {
return {
type: String,
default: e
};
}
function Le(e, t) {
return e ? {
type: e,
default: t
} : ut(t);
}
let To = !1;
try {
const e = Object.defineProperty({}, "passive", {
get() {
To = !0;
}
});
window.addEventListener("testPassive", null, e), window.removeEventListener("testPassive", null, e);
} catch {
}
const Ne = To;
function Ge(e, t, n, o) {
if (e && e.addEventListener) {
let r = o;
r === void 0 && Ne && (t === "touchstart" || t === "touchmove" || t === "wheel") && (r = {
passive: !1
}), e.addEventListener(t, n, r);
}
return {
remove: () => {
e && e.removeEventListener && e.removeEventListener(t, n);
}
};
}
const Oi = "anticon", Ei = Symbol("GlobalFormContextKey"), Ai = () => K(Ei, {
validateMessages: b(() => {
})
}), Po = Symbol("configProvider"), Oo = {
getPrefixCls: (e, t) => t || (e ? `ant-${e}` : "ant"),
iconPrefixCls: b(() => Oi),
getPopupContainer: b(() => () => document.body),
direction: b(() => "ltr")
}, Mi = () => K(Po, Oo), Eo = Symbol("DisabledContextKey"), Ao = () => K(Eo, X(void 0)), _i = (e) => {
const t = Ao();
return Q(Eo, b(() => {
var n;
return (n = e.value) !== null && n !== void 0 ? n : t.value;
})), e;
}, Ii = {
// Options.jsx
items_per_page: "/ page",
jump_to: "Go to",
jump_to_confirm: "confirm",
page: "",
// Pagination.jsx
prev_page: "Previous Page",
next_page: "Next Page",
prev_5: "Previous 5 Pages",
next_5: "Next 5 Pages",
prev_3: "Previous 3 Pages",
next_3: "Next 3 Pages"
}, Fi = {
locale: "en_US",
today: "Today",
now: "Now",
backToToday: "Back to today",
ok: "Ok",
clear: "Clear",
month: "Month",
year: "Year",
timeSelect: "select time",
dateSelect: "select date",
weekSelect: "Choose a week",
monthSelect: "Choose a month",
yearSelect: "Choose a year",
decadeSelect: "Choose a decade",
yearFormat: "YYYY",
dateFormat: "M/D/YYYY",
dayFormat: "D",
dateTimeFormat: "M/D/YYYY HH:mm:ss",
monthBeforeYear: !0,
previousMonth: "Previous month (PageUp)",
nextMonth: "Next month (PageDown)",
previousYear: "Last year (Control + left)",
nextYear: "Next year (Control + right)",
previousDecade: "Last decade",
nextDecade: "Next decade",
previousCentury: "Last century",
nextCentury: "Next century"
}, Di = Fi, Ni = {
placeholder: "Select time",
rangePlaceholder: ["Start time", "End time"]
}, Mo = Ni, ji = {
lang: u({
placeholder: "Select date",
yearPlaceholder: "Select year",
quarterPlaceholder: "Select quarter",
monthPlaceholder: "Select month",
weekPlaceholder: "Select week",
rangePlaceholder: ["Start date", "End date"],
rangeYearPlaceholder: ["Start year", "End year"],
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
rangeMonthPlaceholder: ["Start month", "End month"],
rangeWeekPlaceholder: ["Start week", "End week"]
}, Di),
timePickerLocale: u({}, Mo)
}, An = ji, oe = "${label} is not a valid ${type}", Li = {
locale: "en",
Pagination: Ii,
DatePicker: An,
TimePicker: Mo,
Calendar: An,
global: {
placeholder: "Please select"
},
Table: {
filterTitle: "Filter menu",
filterConfirm: "OK",
filterReset: "Reset",
filterEmptyText: "No filters",
filterCheckall: "Select all items",
filterSearchPlaceholder: "Search in filters",
emptyText: "No data",
selectAll: "Select current page",
selectInvert: "Invert current page",
selectNone: "Clear all data",
selectionAll: "Select all data",
sortTitle: "Sort",
expand: "Expand row",
collapse: "Collapse row",
triggerDesc: "Click to sort descending",
triggerAsc: "Click to sort ascending",
cancelSort: "Click to cancel sorting"
},
Tour: {
Next: "Next",
Previous: "Previous",
Finish: "Finish"
},
Modal: {
okText: "OK",
cancelText: "Cancel",
justOkText: "OK"
},
Popconfirm: {
okText: "OK",
cancelText: "Cancel"
},
Transfer: {
titles: ["", ""],
searchPlaceholder: "Search here",
itemUnit: "item",
itemsUnit: "items",
remove: "Remove",
selectCurrent: "Select current page",
removeCurrent: "Remove current page",
selectAll: "Select all data",
removeAll: "Remove all data",
selectInvert: "Invert current page"
},
Upload: {
uploading: "Uploading...",
removeFile: "Remove file",
uploadError: "Upload error",
previewFile: "Preview file",
downloadFile: "Download file"
},
Empty: {
description: "No data"
},
Icon: {
icon: "icon"
},
Text: {
edit: "Edit",
copy: "Copy",
copied: "Copied",
expand: "Expand"
},
PageHeader: {
back: "Back"
},
Form: {
optional: "(optional)",
defaultValidateMessages: {
default: "Field validation error for ${label}",
required: "Please enter ${label}",
enum: "${label} must be one of [${enum}]",
whitespace: "${label} cannot be a blank character",
date: {
format: "${label} date format is invalid",
parse: "${label} cannot be converted to a date",
invalid: "${label} is an invalid date"
},
types: {
string: oe,
method: oe,
array: oe,
object: oe,
number: oe,
date: oe,
boolean: oe,
integer: oe,
float: oe,
regexp: oe,
email: oe,
url: oe,
hex: oe
},
string: {
len: "${label} must be ${len} characters",
min: "${label} must be at least ${min} characters",
max: "${label} must be up to ${max} characters",
range: "${label} must be between ${min}-${max} characters"
},
number: {
len: "${label} must be equal to ${len}",
min: "${label} must be minimum ${min}",
max: "${label} must be maximum ${max}",
range: "${label} must be between ${min}-${max}"
},
array: {
len: "Must be ${len} ${label}",
min: "At least ${min} ${label}",
max: "At most ${max} ${label}",
range: "The amount of ${label} must be between ${min}-${max}"
},
pattern: {
mismatch: "${label} does not match the pattern ${pattern}"
}
}
},
Image: {
preview: "Preview"
},
QRCode: {
expired: "QR code expired",
refresh: "Refresh"
}
}, ft = Li, Ri = V({
compatConfig: {
MODE: 3
},
name: "LocaleReceiver",
props: {
componentName: String,
defaultLocale: {
type: [Object, Function]
},
children: {
type: Function
}
},
setup(e, t) {
let {
slots: n
} = t;
const o = K("localeData", {}), r = b(() => {
const {
componentName: l = "global",
defaultLocale: a
} = e, c = a || ft[l || "global"], {
antLocale: s
} = o, d = l && s ? s[l] : {};
return u(u({}, typeof c == "function" ? c() : c), d || {});
}), i = b(() => {
const {
antLocale: l
} = o, a = l && l.locale;
return l && l.exist && !a ? ft.locale : a;
});
return () => {
const l = e.children || n.default, {
antLocale: a
} = o;
return l == null ? void 0 : l(r.value, i.value, a);
};
}
});
function Hi(e, t, n) {
const o = K("localeData", {});
return [b(() => {
const {
antLocale: i
} = o, l = se(t) || ft[e || "global"], a = e && i ? i[e] : {};
return u(u(u({}, typeof l == "function" ? l() : l), a || {}), se(n) || {});
})];
}
const Mn = "%";
class ki {
constructor(t) {
this.cache = /* @__PURE__ */ new Map(), this.instanceId = t;
}
get(t) {
return this.cache.get(Array.isArray(t) ? t.join(Mn) : t) || null;
}
update(t, n) {
const o = Array.isArray(t) ? t.join(Mn) : t, r = this.cache.get(o), i = n(r);
i === null ? this.cache.delete(o) : this.cache.set(o, i);
}
}
const Bi = ki, _o = "data-token-hash", Oe = "data-css-hash", zi = "data-cache-path", je = "__cssinjs_instance__";
function Qe() {
const e = Math.random().toString(12).slice(2);
if (typeof document < "u" && document.head && document.body) {
const t = document.body.querySelectorAll(`style[${Oe}]`) || [], {
firstChild: n
} = document.head;
Array.from(t).forEach((r) => {
r[je] = r[je] || e, r[je] === e && document.head.insertBefore(r, n);
});
const o = {};
Array.from(document.querySelectorAll(`style[${Oe}]`)).forEach((r) => {
var i;
const l = r.getAttribute(Oe);
o[l] ? r[je] === e && ((i = r.parentNode) === null || i === void 0 || i.removeChild(r)) : o[l] = !0;
});
}
return new Bi(e);
}
const Io = Symbol("StyleContextKey"), Vi = () => {
var e, t, n;
const o = Je();
let r;
if (o && o.appContext) {
const i = (n = (t = (e = o.appContext) === null || e === void 0 ? void 0 : e.config) === null || t === void 0 ? void 0 : t.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__;
i ? r = i : (r = Qe(), o.appContext.config.globalProperties && (o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r));
} else
r = Qe();
return r;
}, Fo = {
cache: Qe(),
defaultCache: !0,
hashPriority: "low"
}, St = () => {
const e = Vi();
return K(Io, j(u(u({}, Fo), {
cache: e
})));
}, Wi = (e) => {
const t = St(), n = j(u(u({}, Fo), {
cache: Qe()
}));
return q([() => se(e), t], () => {
const o = u({}, t.value), r = se(e);
Object.keys(r).forEach((l) => {
const a = r[l];
r[l] !== void 0 && (o[l] = a);
});
const {
cache: i
} = r;
o.cache = o.cache || Qe(), o.defaultCache = !i && t.value.defaultCache, n.value = o;
}, {
immediate: !0
}), Q(Io, n), n;
}, Xi = () => ({
autoClear: he(),
/** @private Test only. Not work in production. */
mock: dt(),
/**
* Only set when you need ssr to extract style on you own.
* If not provided, it will auto create <style /> on the end of Provider in server side.
*/
cache: ce(),
/** Tell children that this context is default generated context */
defaultCache: he(),
/** Use `:where` selector to reduce hashId css selector priority */
hashPriority: dt(),
/** Tell cssinjs where to inject style in */
container: Le(),
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
ssrInline: he(),
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
transformers: En(),
/**
* Linters to lint css before inject in document.
* Styles will be linted after transforming.
* Please note that `linters` do not support dynamic update.
*/
linters: En()
});
rn(V({
name: "AStyleProvider",
inheritAttrs: !1,
props: Xi(),
setup(e, t) {
let {
slots: n
} = t;
return Wi(e), () => {
var o;
return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
};
}
}));
function qi() {
return !1;
}
let Lt = !1;
function Gi() {
return Lt;
}
const Ui = process.env.NODE_ENV === "production" ? qi : Gi;
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
const e = window;
if (typeof e.webpackHotUpdate == "function") {
const t = e.webpackHotUpdate;
e.webpackHotUpdate = function() {
return Lt = !0, setTimeout(() => {
Lt = !1;
}, 0), t(...arguments);
};
}
}
function Do(e, t, n, o) {
const r = St(), i = j(""), l = j();
Ce(() => {
i.value = [e, ...t.value].join("%");
});
const a = Ui(), c = (s) => {
r.value.cache.update(s, (d) => {
const [f = 0, m] = d || [];
return f - 1 === 0 ? (o == null || o(m, !1), null) : [f - 1, m];
});
};
return q(i, (s, d) => {
d && c(d), r.value.cache.update(s, (f) => {
const [m = 0, p] = f || [];
let v = p;
process.env.NODE_ENV !== "production" && p && a && (o == null || o(v, a), v = null);
const $ = v || n();
return [m + 1, $];
}), l.value = r.value.cache.get(i.value)[1];
}, {
immediate: !0
}), Be(() => {
c(i.value);
}), l;
}
function me() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
function we(e, t) {
return e && e.contains ? e.contains(t) : !1;
}
const _n = "data-vc-order", Yi = "vc-util-key", Rt = /* @__PURE__ */ new Map();
function No() {
let {
mark: e
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
return e ? e.startsWith("data-") ? e : `data-${e}` : Yi;
}
function wt(e) {
return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
}
function Ki(e) {
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
}
function jo(e) {
return Array.from((Rt.get(e) || e).children).filter((t) => t.tagName === "STYLE");
}
function Lo(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (!me())
return null;
const {
csp: n,
prepend: o
} = t, r = document.createElement("style");
r.setAttribute(_n, Ki(o)), n != null && n.nonce && (r.nonce = n == null ? void 0 : n.nonce), r.innerHTML = e;
const i = wt(t), {
firstChild: l
} = i;
if (o) {
if (o === "queue") {
const a = jo(i).filter((c) => ["prepend", "prependQueue"].includes(c.getAttribute(_n)));
if (a.length)
return i.insertBefore(r, a[a.length - 1].nextSibling), r;
}
i.insertBefore(r, l);
} else
i.appendChild(r);
return r;
}
function Ro(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const n = wt(t);
return jo(n).find((o) => o.getAttribute(No(t)) === e);
}
function pt(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const n = Ro(e, t);
n && wt(t).removeChild(n);
}
function Qi(e, t) {
const n = Rt.get(e);
if (!n || !we(document, n)) {
const o = Lo("", t), {
parentNode: r
} = o;
Rt.set(e, r), e.removeChild(o);
}
}
function mt(e, t) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
var o, r, i;
const l = wt(n);
Qi(l, n);
const a = Ro(t, n);
if (a)
return !((o = n.csp) === null || o === void 0) && o.nonce && a.nonce !== ((r = n.csp) === null || r === void 0 ? void 0 : r.nonce) && (a.nonce = (i = n.csp) === null || i === void 0 ? void 0 : i.nonce), a.innerHTML !== e && (a.innerHTML = e), a;
const c = Lo(e, n);
return c.setAttribute(No(n), t), c;
}
function Zi(e, t) {
if (e.length !== t.length)
return !1;
for (let n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0;
}
class ke {
constructor() {
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
}
size() {
return this.keys.length;
}
internalGet(t) {
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o = {
map: this.cache
};
return t.forEach((r) => {
var i;
o ? o = (i = o == null ? void 0 : o.map) === null || i === void 0 ? void 0 : i.get(r) : o = void 0;
}), o != null && o.value && n && (o.value[1] = this.cacheCallTimes++), o == null ? void 0 : o.value;
}
get(t) {
var n;
return (n = this.internalGet(t, !0)) === null || n === void 0 ? void 0 : n[0];
}
has(t) {
return !!this.internalGet(t);
}
set(t, n) {
if (!this.has(t)) {
if (this.size() + 1 > ke.MAX_CACHE_SIZE + ke.MAX_CACHE_OFFSET) {
const [r] = this.keys.reduce((i, l) => {
const [, a] = i;
return this.internalGet(l)[1] < a ? [l, this.internalGet(l)[1]] : i;
}, [this.keys[0], this.cacheCallTimes]);
this.delete(r);
}
this.keys.push(t);
}
let o = this.cache;
t.forEach((r, i) => {
if (i === t.length - 1)
o.set(r, {
value: [n, this.cacheCallTimes++]
});
else {
const l = o.get(r);
l ? l.map || (l.map = /* @__PURE__ */ new Map()) : o.set(r, {
map: /* @__PURE__ */ new Map()
}), o = o.get(r).map;
}
});
}
deleteByPath(t, n) {
var o;
const r = t.get(n[0]);
if (n.length === 1)
return r.map ? t.set(n[0], {
map: r.map
}) : t.delete(n[0]), (o = r.value) === null || o === void 0 ? void 0 : o[0];
const i = this.deleteByPath(r.map, n.slice(1));
return (!r.map || r.map.size === 0) && !r.value && t.delete(n[0]), i;
}
delete(t) {
if (this.has(t))
return this.keys = this.keys.filter((n) => !Zi(n, t)), this.deleteByPath(this.cache, t);
}
}
ke.MAX_CACHE_SIZE = 20;
ke.MAX_CACHE_OFFSET = 5;
let Ht = {};
function gt(e, t) {
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${t}`);
}
function Ji() {
Ht = {};
}
function el(e, t, n) {
!t && !Ht[n] && (e(!1, n), Ht[n] = !0);
}
function ln(e, t) {
el(gt, e, t);
}
function tl() {
}
let Ho = tl;
process.env.NODE_ENV !== "production" && (Ho = (e, t, n) => {
ln(e, `[ant-design-vue: ${t}] ${n}`), process.env.NODE_ENV === "test" && Ji();
});
const Re = Ho;
let In = 0;
class ko {
constructor(t) {
this.derivatives = Array.isArray(t) ? t : [t], this.id = In, t.length === 0 && Re(t.length > 0, "[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."), In += 1;
}
getDerivativeToken(t) {
return this.derivatives.reduce((n, o) => o(t, n), void 0);
}
}
const Et = new ke();
function nl(e) {
const t = Array.isArray(e) ? e : [e];
return Et.has(t) || Et.set(t, new ko(t)), Et.get(t);
}
const Fn = /* @__PURE__ */ new WeakMap();
function ht(e) {
let t = Fn.get(e) || "";
return t || (Object.keys(e).forEach((n) => {
const o = e[n];
t += n, o instanceof ko ? t += o.id : o && typeof o == "object" ? t += ht(o) : t += o;
}), Fn.set(e, t)), t;
}
function ol(e, t) {
return en(`${t}_${ht(e)}`);
}
const Ye = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Bo = "_bAmBoO_";
function rl(e, t, n) {
var o, r;
if (me()) {
mt(e, Ye);
const i = document.createElement("div");
i.style.position = "fixed", i.style.left = "0", i.style.top = "0", t == null || t(i), document.body.appendChild(i), process.env.NODE_ENV !== "production" && (i.innerHTML = "Test", i.style.zIndex = "9999999");
const l = n ? n(i) : (o = getComputedStyle(i).content) === null || o === void 0 ? void 0 : o.includes(Bo);
return (r = i.parentNode) === null || r === void 0 || r.removeChild(i), pt(Ye), l;
}
return !1;
}
let At;
function il() {
return At === void 0 && (At = rl(`@layer ${Ye} { .${Ye} { content: "${Bo}"!important; } }`, (e) => {
e.className = Ye;
})), At;
}
const Dn = {}, ll = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", Te = /* @__PURE__ */ new Map();
function al(e) {
Te.set(e, (Te.get(e) || 0) + 1);
}
function sl(e, t) {
typeof document < "u" && document.querySelectorAll(`style[${_o}="${e}"]`).forEach((o) => {
var r;
o[je] === t && ((r = o.parentNode) === null || r === void 0 || r.removeChild(o));
});
}
const cl = 0;
function ul(e, t) {
Te.set(e, (Te.get(e) || 0) - 1);
const n = Array.from(Te.keys()), o = n.filter((r) => (Te.get(r) || 0) <= 0);
n.length - o.length > cl && o.forEach((r) => {
sl(r, t), Te.delete(r);
});
}
const dl = (e, t, n, o) => {
const r = n.getDerivativeToken(e);
let i = u(u({}, r), t);
return o && (i = o(i)), i;
};
function fl(e, t) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : X({});
const o = St(), r = b(() => u({}, ...t.value)), i = b(() => ht(r.value)), l = b(() => ht(n.value.override || Dn));
return Do("token", b(() => [n.value.salt || "", e.value.id, i.value, l.value]), () => {
const {
salt: c = "",
override: s = Dn,
formatToken: d,
getComputedToken: f
} = n.value, m = f ? f(r.value, s, e.value) : dl(r.value, s, e.value, d), p = ol(m, c);
m._tokenKey = p, al(p);
const v = `${ll}-${en(p)}`;
return m._hashId = v, [m, v];
}, (c) => {
var s;
ul(c[0]._tokenKey, (s = o.value) === null || s === void 0 ? void 0 : s.cache.instanceId);
});
}
var Mt = Kr();
function zo(e, t) {
const {
path: n,
parentSelectors: o
} = t;
ln(!1, `[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${e}${o.length ? ` Selector info: ${o.join(" -> ")}` : ""}`);
}
const pl = (e, t, n) => {
if (e === "content") {
const o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
(typeof t != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(t) === -1 && !o.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")) && zo(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`, n);
}
}, ml = pl, gl = (e, t, n) => {
e === "animation" && n.hashId && t !== "none" && zo(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`, n);
}, hl = gl, Nn = "data-ant-cssinjs-cache-path", vl = "_FILE_STYLE__";
let Ee, Vo = !0;
function yl() {
var e;
if (!Ee && (Ee = {}, me())) {
const t = document.createElement("div");
t.className = Nn, t.style.position = "fixed", t.style.visibility = "hidden", t.style.top = "-9999px", document.body.appendChild(t);
let n = getComputedStyle(t).content || "";
n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((r) => {
const [i, l] = r.split(":");
Ee[i] = l;
});
const o = document.querySelector(`style[${Nn}]`);
o && (Vo = !1, (e = o.parentNode) === null || e === void 0 || e.removeChild(o)), document.body.removeChild(t);
}
}
function bl(e) {
return yl(), !!Ee[e];
}
function Cl(e) {
const t = Ee[e];
let n = null;
if (t && me())
if (Vo)
n = vl;
else {
const o = document.querySelector(`style[${Oe}="${Ee[e]}"]`);
o ? n = o.innerHTML : delete Ee[e];
}
return [n, t];
}
const jn = me(), Wo = "_skip_check_", Xo = "_multi_value_";
function Ln(e) {
return Mt.serialize(Mt.compile(e), Mt.stringify).replace(/\{%%%\:[^;];}/g, ";");
}
function xl(e) {
return typeof e == "object" && e && (Wo in e || Xo in e);
}
function $l(e, t, n) {
if (!t)
return e;
const o = `.${t}`, r = n === "low" ? `:where(${o})` : o;
return e.split(",").map((l) => {
var a;
const c = l.trim().split(/\s+/);
let s = c[0] || "";
const d = ((a = s.match(/^\w+/)) === null || a === void 0 ? void 0 : a[0]) || "";
return s = `${d}${r}${s.slice(d.length)}`, [s, ...c.slice(1)].join(" ");
}).join(",");
}
const kt = /* @__PURE__ */ new Set();
process.env.NODE_ENV;
const Bt = function(e) {
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
root: n,
injectHash: o,
parentSelectors: r
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
root: !0,
parentSelectors: []
};
const {
hashId: i,
layer: l,
path: a,
hashPriority: c,
transformers: s = [],
linters: d = []
} = t;
let f = "", m = {};
function p(P) {
const E = P.getName(i);
if (!m[E]) {
const [T] = Bt(P.style, t, {
root: !1,
parentSelectors: r
});
m[E] = `@keyframes ${P.getName(i)}${T}`;
}
}
function v(P) {
let E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
return P.forEach((T) => {
Array.isArray(T) ? v(T, E) : T && E.push(T);
}), E;
}
if (v(Array.isArray(e) ? e : [e]).forEach((P) => {
const E = typeof P == "string" && !n ? {} : P;
if (typeof E == "string")
f += `${E}
`;
else if (E._keyframe)
p(E);
else {
const T = s.reduce((g, y) => {
var C;
return ((C = y == null ? void 0 : y.visit) === null || C === void 0 ? void 0 : C.call(y, g)) || g;
}, E);
Object.keys(T).forEach((g) => {
var y;
const C = T[g];
if (typeof C == "object" && C && (g !== "animationName" || !C._keyframe) && !xl(C)) {
let h = !1, S = g.trim(), O = !1;
(n || o) && i ? S.startsWith("@") ? h = !0 : S = $l(g, i, c) : n && !i && (S === "&" || S === "") && (S = "", O = !0);
const [F, w] = Bt(C, t, {
root: O,
injectHash: h,
parentSelectors: [...r, S]
});
m = u(u({}, m), w), f += `${S}${F}`;
} else {
let h = function(O, F) {
process.env.NODE_ENV !== "production" && (typeof C != "object" || !(C != null && C[Wo])) && [ml, hl, ...d].forEach((N) => N(O, F, {
path: a,
hashId: i,
parentSelectors: r
}));
const w = O.replace(/[A-Z]/g, (N) => `-${N.toLowerCase()}`);
let A = F;
!Qr[O] && typeof A == "number" && A !== 0 && (A = `${A}px`), O === "animationName" && (F != null && F._keyframe) && (p(F), A = F.getName(i)), f += `${w}:${A};`;
};
const S = (y = C == null ? void 0 : C.value) !== null && y !== void 0 ? y : C;
typeof C == "object" && (C != null && C[Xo]) && Array.isArray(S) ? S.forEach((O) => {
h(g, O);
}) : h(g, S);
}
});
}
}), !n)
f = `{${f}}`;
else if (l && il()) {
const P = l.split(",");
f = `@layer ${P[P.length - 1].trim()} {${f}}`, P.length > 1 && (f = `@layer ${l}{%%%:%}${f}`);
}
return [f, m];
};
function Sl(e, t) {
return en(`${e.join("%")}${t}`);
}
function Rn(e, t) {
const n = St(), o = b(() => e.value.token._tokenKey), r = b(() => [o.value, ...e.value.path]);
let i = jn;
return process.env.NODE_ENV !== "production" && n.value.mock !== void 0 && (i = n.value.mock === "client"), Do(
"style",
r,
// Create cache if needed
() => {
const {
path: l,
hashId: a,
layer: c,
nonce: s,
clientOnly: d,
order: f = 0
} = e.value, m = r.value.join("|");
if (bl(m)) {
const [S, O] = Cl(m);
if (S)
return [S, o.value, O, {}, d, f];
}
const p = t(), {
hashPriority: v,
container: $,
transformers: P,
linters: E,
cache: T
} = n.value, [g, y] = Bt(p, {
hashId: a,
hashPriority: v,
layer: c,
path: l.join("-"),
transformers: P,
linters: E
}), C = Ln(g), h = Sl(r.value, C);
if (i) {
const S = {
mark: Oe,
prepend: "queue",
attachTo: $,
priority: f
}, O = typeof s == "function" ? s() : s;
O && (S.csp = {
nonce: O
});
const F = mt(C, h, S);
F[je] = T.instanceId, F.setAttribute(_o, o.value), process.env.NODE_ENV !== "production" && F.setAttribute(zi, r.value.join("|")), Object.keys(y).forEach((w) => {
kt.has(w) || (kt.add(w), mt(Ln(y[w]), `_effect-${w}`, {
mark: Oe,
prepend: "queue",
attachTo: $
}));
});
}
return [C, o.value, h, y, d, f];
},
// Remove cache if no need
(l, a) => {
let [, , c] = l;
(a || n.value.autoClear) && jn && pt(c, {
mark: Oe
});
}
), (l) => l;
}
class wl {
constructor(t, n) {
this._keyframe = !0, this.name = t, this.style = n;
}
getName() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
return t ? `${t}-${this.name}` : this.name;
}
}
const ae = wl, Tl = "4.0.6", vt = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], Pl = (e) => {
const {
controlHeight: t
} = e;
return {
controlHeightSM: t * 0.75,
controlHeightXS: t * 0.5,
controlHeightLG: t * 1.25
};
}, Ol = Pl;
function El(e) {
const {
sizeUnit: t,
sizeStep: n
} = e;
return {
sizeXXL: t * (n + 8),
sizeXL: t * (n + 4),
sizeLG: t * (n + 2),
sizeMD: t * (n + 1),
sizeMS: t * n,
size: t * n,
sizeSM: t * (n - 1),
sizeXS: t * (n - 2),
sizeXXS: t * (n - 3)
// 4
};
}
const qo = {
blue: "#1677ff",
purple: "#722ED1",
cyan: "#13C2C2",
green: "#52C41A",
magenta: "#EB2F96",
pink: "#eb2f96",
red: "#F5222D",
orange: "#FA8C16",
yellow: "#FADB14",
volcano: "#FA541C",
geekblue: "#2F54EB",
gold: "#FAAD14",
lime: "#A0D911"
}, Al = u(u({}, qo), {
// Color
colorPrimary: "#1677ff",
colorSuccess: "#52c41a",
colorWarning: "#faad14",
colorError: "#ff4d4f",
colorInfo: "#1677ff",
colorTextBase: "",
colorBgBase: "",
// Font
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,
fontSize: 14,
// Line
lineWidth: 1,
lineType: "solid",
// Motion
motionUnit: 0.1,
motionBase: 0,
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
// Radius
borderRadius: 6,
// Size
sizeUnit: 4,
sizeStep: 4,
sizePopupArrow: 16,
// Control Base
controlHeight: 32,
// zIndex
zIndexBase: 0,
zIndexPopupBase: 1e3,
// Image
opacityImage: 1,
// Wireframe
wireframe: !1
}), an = Al;
function Ml(e, t) {
let {
generateColorPalettes: n,
generateNeutralColorPalettes: o
} = t;
const {
colorSuccess: r,
colorWarning: i,
colorError: l,
colorInfo: a,
colorPrimary: c,
colorBgBase: s,
colorTextBase: d
} = e, f = n(c), m = n(r), p = n(i), v = n(l), $ = n(a), P = o(s, d);
return u(u({}, P), {
colorPrimaryBg: f[1],
colorPrimaryBgHover: f[2],
colorPrimaryBorder: f[3],
colorPrimaryBorderHover: f[4],
colorPrimaryHover: f[5],
colorPrimary: f[6],
colorPrimaryActive: f[7],
colorPrimaryTextHover: f[8],
colorPrimaryText: f[9],
colorPrimaryTextActive: f[10],
colorSuccessBg: m[1],
colorSuccessBgHover: m[2],
colorSuccessBorder: m[3],
colorSuccessBorderHover: m[4],
colorSuccessHover: m[4],
colorSuccess: m[6],
colorSuccessActive: m[7],
colorSuccessTextHover: m[8],
colorSuccessText: m[9],
colorSuccessTextActive: m[10],
colorErrorBg: v[1],
colorErrorBgHover: v[2],
colorErrorBorder: v[3],
colorErrorBorderHover: v[4],
colorErrorHover: v[5],
colorError: v[6],
colorErrorActive: v[7],
colorErrorTextHover: v[8],
colorErrorText: v[9],
colorErrorTextActive: v[10],
colorWarningBg: p[1],
colorWarningBgHover: p[2],
colorWarningBorder: p[3],
colorWarningBorderHover: p[4],
colorWarningHover: p[4],
colorWarning: p[6],
colorWarningActive: p[7],
colorWarningTextHover: p[8],
colorWarningText: p[9],
colorWarningTextActive: p[10],
colorInfoBg: $[1],
colorInfoBgHover: $[2],
colorInfoBorder: $[3],
colorInfoBorderHover: $[4],
colorInfoHover: $[4],
colorInfo: $[6],
colorInfoActive: $[7],
colorInfoTextHover: $[8],
colorInfoText: $[9],
colorInfoTextActive: $[10],
colorBgMask: new ne("#000").setAlpha(0.45).toRgbString(),
colorWhite: "#fff"
});
}
const _l = (e) => {
let t = e, n = e, o = e, r = e;
return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? n = 4 : e < 8 && e >= 7 ? n = 5 : e < 14 && e >= 8 ? n = 6 : e < 16 && e >= 14 ? n = 7 : e >= 16 && (n = 8), e < 6 && e >= 2 ? o = 1 : e >= 6 && (o = 2), e > 4 && e < 8 ? r = 4 : e >= 8 && (r = 6), {
borderRadius: e > 16 ? 16 : e,
borderRadiusXS: o,
borderRadiusSM: n,
borderRadiusLG: t,
borderRadiusOuter: r
};
}, Il = _l;
function Fl(e) {
const {
motionUnit: t,
motionBase: n,
borderRadius: o,
lineWidth: r
} = e;
return u({
// motion
motionDurationFast: `${(n + t).toFixed(1)}s`,
motionDurationMid: `${(n + t * 2).toFixed(1)}s`,
motionDurationSlow: `${(n + t * 3).toFixed(1)}s`,
// line
lineWidthBold: r + 1
}, Il(o));
}
const ge = (e, t) => new ne(e).setAlpha(t).toRgbString(), Xe = (e, t) => new ne(e).darken(t).toHexString(), Dl = (e) => {
const t = Jt(e);
return {
1: t[0],
2: t[1],
3: t[2],
4: t[3],
5: t[4],
6: t[5],
7: t[6],
8: t[4],
9: t[5],
10: t[6]
// 8: colors[7],
// 9: colors[8],
// 10: colors[9],
};
}, Nl = (e, t) => {
const n = e || "#fff", o = t || "#000";
return {
colorBgBase: n,
colorTextBase: o,
colorText: ge(o, 0.88),
colorTextSecondary: ge(o, 0.65),
colorTextTertiary: ge(o, 0.45),
colorTextQuaternary: ge(o, 0.25),
colorFill: ge(o, 0.15),
colorFillSecondary: ge(o, 0.06),
colorFillTertiary: ge(o, 0.04),
colorFillQuaternary: ge(o, 0.02),
colorBgLayout: Xe(n, 4),
colorBgContainer: Xe(n, 0),
colorBgElevated: Xe(n, 0),
colorBgSpotlight: ge(o, 0.85),
colorBorder: Xe(n, 15),
colorBorderSecondary: Xe(n, 6)
};
};
function jl(e) {
const t = new Array(10).fill(null).map((n, o) => {
const r = o - 1, i = e * Math.pow(2.71828, r / 5), l = o > 1 ? Math.floor(i) : Math.ceil(i);
return Math.floor(l / 2) * 2;
});
return t[1] = e, t.map((n) => {
const o = n + 8;
return {
size: n,
lineHeight: o / n
};
});
}
const Ll = (e) => {
const t = jl(e), n = t.map((r) => r.size), o = t.map((r) => r.lineHeight);
return {
fontSizeSM: n[0],
fontSize: n[1],
fontSizeLG: n[2],
fontSizeXL: n[3],
fontSizeHeading1: n[6],
fontSizeHeading2: n[5],
fontSizeHeading3: n[4],
fontSizeHeading4: n[3],
fontSizeHeading5: n[2],
lineHeight: o[1],
lineHeightLG: o[2],
lineHeightSM: o[0],
lineHeightHeading1: o[6],
lineHeightHeading2: o[5],
lineHeightHeading3: o[4],
lineHeightHeading4: o[3],
lineHeightHeading5: o[2]
};
}, Rl = Ll;
function Hl(e) {
const t = Object.keys(qo).map((n) => {
const o = Jt(e[n]);
return new Array(10).fill(1).reduce((r, i, l) => (r[`${n}-${l + 1}`] = o[l], r), {});
}).reduce((n, o) => (n = u(u({}, n), o), n), {});
return u(u(u(u(u(u(u({}, e), t), Ml(e, {
generateColorPalettes: Dl,
generateNeutralColorPalettes: Nl
})), Rl(e.fontSize)), El(e)), Ol(e)), Fl(e));
}
function _t(e) {
return e >= 0 && e <= 255;
}
function ot(e, t) {
const {
r: n,
g: o,
b: r,
a: i
} = new ne(e).toRgb();
if (i < 1)
return e;
const {
r: l,
g: a,
b: c
} = new ne(t).toRgb();
for (let s = 0.01; s <= 1; s += 0.01) {
const d = Math.round((n - l * (1 - s)) / s), f = Math.round((o - a * (1 - s)) / s), m = Math.round((r - c * (1 - s)) / s);
if (_t(d) && _t(f) && _t(m))
return new ne({
r: d,
g: f,
b: m,
a: Math.round(s * 100) / 100
}).toRgbString();
}
return new ne({
r: n,
g: o,
b: r,
a: 1
}).toRgbString();
}
var kl = globalThis && globalThis.__rest || function(e, t) {
var n = {};
for (var o in e)
Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
return n;
};
function Bl(e) {
const {
override: t
} = e, n = kl(e, ["override"]), o = u({}, t);
Object.keys(an).forEach((p) => {
delete o[p];
});
const r = u(u({}, n), o), i = 480, l = 576, a = 768, c = 992, s = 1200, d = 1600, f = 2e3;
return u(u(u({}, r), {
colorLink: r.colorInfoText,
colorLinkHover: r.colorInfoHover,
colorLinkActive: r.colorInfoActive,
// ============== Background ============== //
colorFillContent: r.colorFillSecondary,
colorFillContentHover: r.colorFill,
colorFillAlter: r.colorFillQuaternary,
colorBgContainerDisabled: r.colorFillTertiary,
// ============== Split ============== //
colorBorderBg: r.colorBgContainer,
colorSplit: ot(r.colorBorderSecondary, r.colorBgContainer),
// ============== Text ============== //
colorTextPlaceholder: r.colorTextQuaternary,
colorTextDisabled: r.colorTextQuaternary,
colorTextHeading: r.colorText,
colorTextLabel: r.colorTextSecondary,
colorTextDescription: r.colorTextTertiary,
colorTextLightSolid: r.colorWhite,
colorHighlight: r.colorError,
colorBgTextHover: r.colorFillSecondary,
colorBgTextActive: r.colorFill,
colorIcon: r.colorTextTertiary,
colorIconHover: r.colorText,
colorErrorOutline: ot(r.colorErrorBg, r.colorBgContainer),
colorWarningOutline: ot(r.colorWarningBg, r.colorBgContainer),
// Font
fontSizeIcon: r.fontSizeSM,
// Control
lineWidth: r.lineWidth,
controlOutlineWidth: r.lineWidth * 2,
// Checkbox size and expand icon size
controlInteractiveSize: r.controlHeight / 2,
controlItemBgHover: r.colorFillTertiary,
controlItemBgActive: r.colorPrimaryBg,
controlItemBgActiveHover: r.colorPrimaryBgHover,
controlItemBgActiveDisabled: r.colorFill,
controlTmpOutline: r.colorFillQuaternary,
controlOutline: ot(r.colorPrimaryBg, r.colorBgContainer),
lineType: r.lineType,
borderRadius: r.borderRadius,
borderRadiusXS: r.borderRadiusXS,
borderRadiusSM: r.borderRadiusSM,
borderRadiusLG: r.borderRadiusLG,
fontWeightStrong: 600,
opacityLoading: 0.65,
linkDecoration: "none",
linkHoverDecoration: "none",
linkFocusDecoration: "none",
controlPaddingHorizontal: 12,
controlPaddingHorizontalSM: 8,
paddingXXS: r.sizeXXS,
paddingXS: r.sizeXS,
paddingSM: r.sizeSM,
padding: r.size,
paddingMD: r.sizeMD,
paddingLG: r.sizeLG,
paddingXL: r.sizeXL,
paddingContentHorizontalLG: r.sizeLG,
paddingContentVerticalLG: r.sizeMS,
paddingContentHorizontal: r.sizeMS,
paddingContentVertical: r.sizeSM,
paddingContentHorizontalSM: r.size,
paddingContentVerticalSM: r.sizeXS,
marginXXS: r.sizeXXS,
marginXS: r.sizeXS,
marginSM: r.sizeSM,
margin: r.size,
marginMD: r.sizeMD,
marginLG: r.sizeLG,
marginXL: r.sizeXL,
marginXXL: r.sizeXXL,
boxShadow: `
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,
boxShadowSecondary: `
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowTertiary: `
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,
screenXS: i,
screenXSMin: i,
screenXSMax: l - 1,
screenSM: l,
screenSMMin: l,
screenSMMax: a - 1,
screenMD: a,
screenMDMin: a,
screenMDMax: c - 1,
screenLG: c,
screenLGMin: c,
screenLGMax: s - 1,
screenXL: s,
screenXLMin: s,
screenXLMax: d - 1,
screenXXL: d,
screenXXLMin: d,
screenXXLMax: f - 1,
screenXXXL: f,
screenXXXLMin: f,
// FIXME: component box-shadow, should be removed
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
boxShadowCard: `
0 1px 2px -2px ${new ne("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new ne("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new ne("rgba(0, 0, 0, 0.09)").toRgbString()}
`,
boxShadowDrawerRight: `
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerLeft: `
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerUp: `
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerDown: `
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
}), o);
}
const zl = (e, t, n, o, r) => {
const i = e / 2, l = 0, a = i, c = n * 1 / Math.sqrt(2), s = i - n * (1 - 1 / Math.sqrt(2)), d = i - t * (1 / Math.sqrt(2)), f = n * (Math.sqrt(2) - 1) + t * (1 / Math.sqrt(2)), m = 2 * i - d, p = f, v = 2 * i - c, $ = s, P = 2 * i - l, E = a, T = i * Math.sqrt(2) + n * (Math.sqrt(2) - 2), g = n * (Math.sqrt(2) - 1);
return {
pointerEvents: "none