antd-mobile
Version:
<div align="center">
20,327 lines • 652 kB
JavaScript
import * as D from "react";
import s, { useContext as ot, useRef as W, useMemo as de, useEffect as J, useState as Q, useCallback as Ue, useLayoutEffect as io, forwardRef as we, useImperativeHandle as $e, memo as Ke, version as Rm, isValidElement as En, createContext as dl, cloneElement as Nm } from "react";
import Ta, { unstable_batchedUpdates as Bf, createPortal as Pm } from "react-dom";
const Ar = !!(typeof window < "u" && typeof document < "u" && window.document && window.document.createElement);
Ar && document.addEventListener("touchstart", () => {
}, !0);
var Ia = function() {
return Ia = Object.assign || function(t) {
for (var n, r = 1, i = arguments.length; r < i; r++) {
n = arguments[r];
for (var a in n)
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
}
return t;
}, Ia.apply(this, arguments);
};
function mn(e, t) {
var n = {};
for (var r in e)
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
return n;
}
function Te(e, t, n, r) {
function i(a) {
return a instanceof n ? a : new n(function(o) {
o(a);
});
}
return new (n || (n = Promise))(function(a, o) {
function l(f) {
try {
u(r.next(f));
} catch (d) {
o(d);
}
}
function c(f) {
try {
u(r.throw(f));
} catch (d) {
o(d);
}
}
function u(f) {
f.done ? a(f.value) : i(f.value).then(l, c);
}
u((r = r.apply(e, t || [])).next());
});
}
function Mm(e, t) {
var n = { label: 0, sent: function() {
if (a[0] & 1)
throw a[1];
return a[1];
}, trys: [], ops: [] }, r, i, a, o;
return o = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
return this;
}), o;
function l(u) {
return function(f) {
return c([u, f]);
};
}
function c(u) {
if (r)
throw new TypeError("Generator is already executing.");
for (; o && (o = 0, u[0] && (n = 0)), n; )
try {
if (r = 1, i && (a = u[0] & 2 ? i.return : u[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, u[1])).done)
return a;
switch (i = 0, a && (u = [u[0] & 2, a.value]), u[0]) {
case 0:
case 1:
a = u;
break;
case 4:
return n.label++, { value: u[1], done: !1 };
case 5:
n.label++, i = u[1], u = [0];
continue;
case 7:
u = n.ops.pop(), n.trys.pop();
continue;
default:
if (a = n.trys, !(a = a.length > 0 && a[a.length - 1]) && (u[0] === 6 || u[0] === 2)) {
n = 0;
continue;
}
if (u[0] === 3 && (!a || u[1] > a[0] && u[1] < a[3])) {
n.label = u[1];
break;
}
if (u[0] === 6 && n.label < a[1]) {
n.label = a[1], a = u;
break;
}
if (a && n.label < a[2]) {
n.label = a[2], n.ops.push(u);
break;
}
a[2] && n.ops.pop(), n.trys.pop();
continue;
}
u = t.call(e, n);
} catch (f) {
u = [6, f], i = 0;
} finally {
r = a = 0;
}
if (u[0] & 5)
throw u[1];
return { value: u[0] ? u[1] : void 0, done: !0 };
}
}
function Am(e) {
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
if (n)
return n.call(e);
if (e && typeof e.length == "number")
return {
next: function() {
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function Dt(e, t) {
var n = typeof Symbol == "function" && e[Symbol.iterator];
if (!n)
return e;
var r = n.call(e), i, a = [], o;
try {
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
a.push(i.value);
} catch (l) {
o = { error: l };
} finally {
try {
i && !i.done && (n = r.return) && n.call(r);
} finally {
if (o)
throw o.error;
}
}
return a;
}
function ml(e, t, n) {
if (n || arguments.length === 2)
for (var r = 0, i = t.length, a; r < i; r++)
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
return e.concat(a || Array.prototype.slice.call(t));
}
const et = "${label}不是一个有效的${type}", Tm = {
locale: "zh-CH",
common: {
confirm: "确定",
cancel: "取消",
loading: "加载中",
close: "关闭"
},
Calendar: {
title: "日期选择",
confirm: "确认",
start: "开始",
end: "结束",
startAndEnd: "开始/结束",
today: "今日",
markItems: ["一", "二", "三", "四", "五", "六", "日"],
yearAndMonth: "${year}年${month}月"
},
Cascader: {
placeholder: "请选择"
},
Dialog: {
ok: "我知道了"
},
DatePicker: {
tillNow: "至今"
},
ErrorBlock: {
default: {
title: "页面遇到一些小问题",
description: "待会来试试"
},
busy: {
title: "前方拥堵",
description: "刷新试试"
},
disconnected: {
title: "网络有点忙",
description: "动动手指帮忙修复"
},
empty: {
title: "没有找到你需要的东西",
description: "找找其他的吧"
}
},
Form: {
required: "必填",
optional: "选填",
defaultValidateMessages: {
default: "字段验证错误${label}",
required: "请输入${label}",
enum: "${label}必须是其中一个[${enum}]",
whitespace: "${label}不能为空字符",
date: {
format: "${label}日期格式无效",
parse: "${label}不能转换为日期",
invalid: "${label}是一个无效日期"
},
types: {
string: et,
method: et,
array: et,
object: et,
number: et,
date: et,
boolean: et,
integer: et,
float: et,
regexp: et,
email: et,
url: et,
hex: et
},
string: {
len: "${label}须为${len}个字符",
min: "${label}最少${min}个字符",
max: "${label}最多${max}个字符",
range: "${label}须在${min}-${max}字符之间"
},
number: {
len: "${label}必须等于${len}",
min: "${label}最小值为${min}",
max: "${label}最大值为${max}",
range: "${label}须在${min}-${max}之间"
},
array: {
len: "须为${len}个${label}",
min: "最少${min}个${label}",
max: "最多${max}个${label}",
range: "${label}数量须在${min}-${max}之间"
},
pattern: {
mismatch: "${label}与模式不匹配${pattern}"
}
}
},
ImageUploader: {
uploading: "上传中...",
upload: "上传"
},
InfiniteScroll: {
noMore: "没有更多了",
failedToLoad: "加载失败",
retry: "重新加载"
},
Input: {
clear: "清除"
},
Mask: {
name: "背景蒙层"
},
Modal: {
ok: "我知道了"
},
NumberKeyboard: {
backspace: "删除"
},
PasscodeInput: {
name: "密码输入框"
},
PullToRefresh: {
pulling: "下拉刷新",
canRelease: "释放立即刷新",
complete: "刷新成功"
},
SearchBar: {
name: "搜索框"
},
Slider: {
name: "滑动输入条"
},
Stepper: {
decrease: "减少",
increase: "增加"
},
Switch: {
name: "开关"
},
Selector: {
name: "选择组"
}
}, Im = Tm, Wf = {
current: {
locale: Im
}
};
function Fb(e) {
Wf.current = e;
}
function Ti() {
return Wf.current;
}
const Zf = s.createContext(null), Rb = (e) => {
const {
children: t
} = e, n = mn(e, ["children"]), r = fe();
return s.createElement(Zf.Provider, {
value: Object.assign(Object.assign({}, r), n)
}, t);
};
function fe() {
var e;
return (e = ot(Zf)) !== null && e !== void 0 ? e : Ti();
}
function ge(e, t) {
const n = e;
for (const r in t)
t.hasOwnProperty(r) && (n[r] = t[r]);
return n;
}
var vt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Ot(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var qf = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
(function(e) {
(function() {
var t = {}.hasOwnProperty;
function n() {
for (var r = [], i = 0; i < arguments.length; i++) {
var a = arguments[i];
if (a) {
var o = typeof a;
if (o === "string" || o === "number")
r.push(a);
else if (Array.isArray(a)) {
if (a.length) {
var l = n.apply(null, a);
l && r.push(l);
}
} else if (o === "object") {
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
r.push(a.toString());
continue;
}
for (var c in a)
t.call(a, c) && a[c] && r.push(c);
}
}
}
return r.join(" ");
}
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
})();
})(qf);
var Lm = qf.exports;
const Z = /* @__PURE__ */ Ot(Lm);
function U(e, t) {
const n = Object.assign({}, t.props);
e.className && (n.className = Z(t.props.className, e.className)), e.style && (n.style = Object.assign(Object.assign({}, n.style), e.style)), e.tabIndex !== void 0 && (n.tabIndex = e.tabIndex);
for (const r in e)
e.hasOwnProperty(r) && (r.startsWith("data-") || r.startsWith("aria-")) && (n[r] = e[r]);
return s.cloneElement(t, n);
}
function Y(...e) {
const t = {};
return e.forEach((n) => {
n && Object.keys(n).forEach((r) => {
n[r] !== void 0 && (t[r] = n[r]);
});
}), t;
}
function wn(e, ...t) {
for (let n = t.length - 1; n >= 0; n -= 1)
if (t[n] !== void 0)
return t[n];
return e;
}
var Hf = function(e) {
return function(t, n) {
var r = W(!1);
e(function() {
return function() {
r.current = !1;
};
}, []), e(function() {
if (!r.current)
r.current = !0;
else
return t();
}, n);
};
}, Tr = function(e) {
return typeof e == "function";
}, Dm = function(e) {
return typeof e == "number";
}, Vm = !1;
const Ii = Vm;
function Xt(e) {
Ii && (Tr(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
var t = W(e);
t.current = de(function() {
return e;
}, [e]);
var n = W();
return n.current || (n.current = function() {
for (var r = [], i = 0; i < arguments.length; i++)
r[i] = arguments[i];
return t.current.apply(this, r);
}), n.current;
}
const hl = Hf(J);
function Pc(e, t) {
if (e === t)
return !0;
for (var n = 0; n < e.length; n++)
if (!Object.is(e[n], t[n]))
return !1;
return !0;
}
function ao(e) {
var t = W(e);
return t.current = e, t;
}
var jm = function(e) {
Ii && (Tr(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
var t = ao(e);
J(function() {
return function() {
t.current();
};
}, []);
};
const Li = jm;
function Bm(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var vl = Bm, Wm = typeof vt == "object" && vt && vt.Object === Object && vt, Zm = Wm, qm = Zm, Hm = typeof self == "object" && self && self.Object === Object && self, Um = qm || Hm || Function("return this")(), Uf = Um, zm = Uf, Km = function() {
return zm.Date.now();
}, Ym = Km, Gm = /\s/;
function Xm(e) {
for (var t = e.length; t-- && Gm.test(e.charAt(t)); )
;
return t;
}
var Qm = Xm, Jm = Qm, eh = /^\s+/;
function th(e) {
return e && e.slice(0, Jm(e) + 1).replace(eh, "");
}
var nh = th, rh = Uf, ih = rh.Symbol, zf = ih, Mc = zf, Kf = Object.prototype, ah = Kf.hasOwnProperty, oh = Kf.toString, Hr = Mc ? Mc.toStringTag : void 0;
function sh(e) {
var t = ah.call(e, Hr), n = e[Hr];
try {
e[Hr] = void 0;
var r = !0;
} catch {
}
var i = oh.call(e);
return r && (t ? e[Hr] = n : delete e[Hr]), i;
}
var lh = sh, ch = Object.prototype, uh = ch.toString;
function fh(e) {
return uh.call(e);
}
var dh = fh, Ac = zf, mh = lh, hh = dh, vh = "[object Null]", ph = "[object Undefined]", Tc = Ac ? Ac.toStringTag : void 0;
function gh(e) {
return e == null ? e === void 0 ? ph : vh : Tc && Tc in Object(e) ? mh(e) : hh(e);
}
var yh = gh;
function bh(e) {
return e != null && typeof e == "object";
}
var Eh = bh, wh = yh, Ch = Eh, xh = "[object Symbol]";
function kh(e) {
return typeof e == "symbol" || Ch(e) && wh(e) == xh;
}
var $h = kh, _h = nh, Ic = vl, Sh = $h, Lc = NaN, Oh = /^[-+]0x[0-9a-f]+$/i, Fh = /^0b[01]+$/i, Rh = /^0o[0-7]+$/i, Nh = parseInt;
function Ph(e) {
if (typeof e == "number")
return e;
if (Sh(e))
return Lc;
if (Ic(e)) {
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
e = Ic(t) ? t + "" : t;
}
if (typeof e != "string")
return e === 0 ? e : +e;
e = _h(e);
var n = Fh.test(e);
return n || Rh.test(e) ? Nh(e.slice(2), n ? 2 : 8) : Oh.test(e) ? Lc : +e;
}
var Mh = Ph, Ah = vl, Wo = Ym, Dc = Mh, Th = "Expected a function", Ih = Math.max, Lh = Math.min;
function Dh(e, t, n) {
var r, i, a, o, l, c, u = 0, f = !1, d = !1, m = !0;
if (typeof e != "function")
throw new TypeError(Th);
t = Dc(t) || 0, Ah(n) && (f = !!n.leading, d = "maxWait" in n, a = d ? Ih(Dc(n.maxWait) || 0, t) : a, m = "trailing" in n ? !!n.trailing : m);
function h(x) {
var k = r, _ = i;
return r = i = void 0, u = x, o = e.apply(_, k), o;
}
function E(x) {
return u = x, l = setTimeout(v, t), f ? h(x) : o;
}
function b(x) {
var k = x - c, _ = x - u, R = t - k;
return d ? Lh(R, a - _) : R;
}
function g(x) {
var k = x - c, _ = x - u;
return c === void 0 || k >= t || k < 0 || d && _ >= a;
}
function v() {
var x = Wo();
if (g(x))
return w(x);
l = setTimeout(v, b(x));
}
function w(x) {
return l = void 0, m && r ? h(x) : (r = i = void 0, o);
}
function p() {
l !== void 0 && clearTimeout(l), u = 0, r = c = i = l = void 0;
}
function y() {
return l === void 0 ? o : w(Wo());
}
function C() {
var x = Wo(), k = g(x);
if (r = arguments, i = this, c = x, k) {
if (l === void 0)
return E(c);
if (d)
return clearTimeout(l), l = setTimeout(v, t), h(c);
}
return l === void 0 && (l = setTimeout(v, t)), o;
}
return C.cancel = p, C.flush = y, C;
}
var Yf = Dh;
const Vh = /* @__PURE__ */ Ot(Yf);
var jh = !!(typeof window < "u" && window.document && window.document.createElement);
const pl = jh;
var Bh = Yf, Wh = vl, Zh = "Expected a function";
function qh(e, t, n) {
var r = !0, i = !0;
if (typeof e != "function")
throw new TypeError(Zh);
return Wh(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Bh(e, t, {
leading: r,
maxWait: t,
trailing: i
});
}
var Hh = qh;
const Uh = /* @__PURE__ */ Ot(Hh);
var zh = function(e) {
Ii && (Tr(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), J(function() {
e == null || e();
}, []);
};
const Kh = zh;
var Yh = function() {
var e = Dt(Q({}), 2), t = e[1];
return Ue(function() {
return t({});
}, []);
};
const Gf = Yh;
function hn(e, t) {
if (pl) {
if (!e)
return t;
var n;
return Tr(e) ? n = e() : "current" in e ? n = e.current : n = e, n;
}
}
var Gh = function(e) {
return e.every(function(t) {
var n = hn(t);
if (!n)
return !1;
if (n.getRootNode() instanceof ShadowRoot)
return !0;
});
}, Xh = function(e) {
return e ? e.getRootNode() : document;
}, Qh = function(e) {
if (!e || !document.getRootNode)
return document;
var t = Array.isArray(e) ? e : [e];
return Gh(t) ? Xh(hn(t[0])) : document;
};
const Jh = Qh;
var ev = function(e) {
var t = function(n, r, i) {
var a = W(!1), o = W([]), l = W([]), c = W();
e(function() {
var u, f = Array.isArray(i) ? i : [i], d = f.map(function(m) {
return hn(m);
});
if (!a.current) {
a.current = !0, o.current = d, l.current = r, c.current = n();
return;
}
(d.length !== o.current.length || !Pc(d, o.current) || !Pc(r, l.current)) && ((u = c.current) === null || u === void 0 || u.call(c), o.current = d, l.current = r, c.current = n());
}), Li(function() {
var u;
(u = c.current) === null || u === void 0 || u.call(c), a.current = !1;
});
};
return t;
};
const Xf = ev;
var tv = Xf(J);
const gl = tv;
function Qf(e, t, n) {
n === void 0 && (n = "click");
var r = ao(e);
gl(function() {
var i = function(l) {
var c = Array.isArray(t) ? t : [t];
c.some(function(u) {
var f = hn(u);
return !f || f.contains(l.target);
}) || r.current(l);
}, a = Jh(t), o = Array.isArray(n) ? n : [n];
return o.forEach(function(l) {
return a.addEventListener(l, i);
}), function() {
o.forEach(function(l) {
return a.removeEventListener(l, i);
});
};
}, Array.isArray(n) ? n : [n], t);
}
var Jf = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", c = "hour", u = "day", f = "week", d = "month", m = "quarter", h = "year", E = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, w = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
var N = ["th", "st", "nd", "rd"], T = M % 100;
return "[" + M + (N[(T - 20) % 10] || N[T] || N[0]) + "]";
} }, p = function(M, N, T) {
var P = String(M);
return !P || P.length >= N ? M : "" + Array(N + 1 - P.length).join(T) + M;
}, y = { s: p, z: function(M) {
var N = -M.utcOffset(), T = Math.abs(N), P = Math.floor(T / 60), S = T % 60;
return (N <= 0 ? "+" : "-") + p(P, 2, "0") + ":" + p(S, 2, "0");
}, m: function M(N, T) {
if (N.date() < T.date())
return -M(T, N);
var P = 12 * (T.year() - N.year()) + (T.month() - N.month()), S = N.clone().add(P, d), I = T - S < 0, $ = N.clone().add(P + (I ? -1 : 1), d);
return +(-(P + (T - S) / (I ? S - $ : $ - S)) || 0);
}, a: function(M) {
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
}, p: function(M) {
return { M: d, y: h, w: f, d: u, D: E, h: c, m: l, s: o, ms: a, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
}, u: function(M) {
return M === void 0;
} }, C = "en", x = {};
x[C] = w;
var k = function(M) {
return M instanceof V;
}, _ = function M(N, T, P) {
var S;
if (!N)
return C;
if (typeof N == "string") {
var I = N.toLowerCase();
x[I] && (S = I), T && (x[I] = T, S = I);
var $ = N.split("-");
if (!S && $.length > 1)
return M($[0]);
} else {
var F = N.name;
x[F] = N, S = F;
}
return !P && S && (C = S), S || !P && C;
}, R = function(M, N) {
if (k(M))
return M.clone();
var T = typeof N == "object" ? N : {};
return T.date = M, T.args = arguments, new V(T);
}, O = y;
O.l = _, O.i = k, O.w = function(M, N) {
return R(M, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
};
var V = function() {
function M(T) {
this.$L = _(T.locale, null, !0), this.parse(T);
}
var N = M.prototype;
return N.parse = function(T) {
this.$d = function(P) {
var S = P.date, I = P.utc;
if (S === null)
return /* @__PURE__ */ new Date(NaN);
if (O.u(S))
return /* @__PURE__ */ new Date();
if (S instanceof Date)
return new Date(S);
if (typeof S == "string" && !/Z$/i.test(S)) {
var $ = S.match(g);
if ($) {
var F = $[2] - 1 || 0, L = ($[7] || "0").substring(0, 3);
return I ? new Date(Date.UTC($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, L)) : new Date($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, L);
}
}
return new Date(S);
}(T), this.$x = T.x || {}, this.init();
}, N.init = function() {
var T = this.$d;
this.$y = T.getFullYear(), this.$M = T.getMonth(), this.$D = T.getDate(), this.$W = T.getDay(), this.$H = T.getHours(), this.$m = T.getMinutes(), this.$s = T.getSeconds(), this.$ms = T.getMilliseconds();
}, N.$utils = function() {
return O;
}, N.isValid = function() {
return this.$d.toString() !== b;
}, N.isSame = function(T, P) {
var S = R(T);
return this.startOf(P) <= S && S <= this.endOf(P);
}, N.isAfter = function(T, P) {
return R(T) < this.startOf(P);
}, N.isBefore = function(T, P) {
return this.endOf(P) < R(T);
}, N.$g = function(T, P, S) {
return O.u(T) ? this[P] : this.set(S, T);
}, N.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, N.valueOf = function() {
return this.$d.getTime();
}, N.startOf = function(T, P) {
var S = this, I = !!O.u(P) || P, $ = O.p(T), F = function(ae, re) {
var z = O.w(S.$u ? Date.UTC(S.$y, re, ae) : new Date(S.$y, re, ae), S);
return I ? z : z.endOf(u);
}, L = function(ae, re) {
return O.w(S.toDate()[ae].apply(S.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), S);
}, B = this.$W, j = this.$M, q = this.$D, H = "set" + (this.$u ? "UTC" : "");
switch ($) {
case h:
return I ? F(1, 0) : F(31, 11);
case d:
return I ? F(1, j) : F(0, j + 1);
case f:
var X = this.$locale().weekStart || 0, te = (B < X ? B + 7 : B) - X;
return F(I ? q - te : q + (6 - te), j);
case u:
case E:
return L(H + "Hours", 0);
case c:
return L(H + "Minutes", 1);
case l:
return L(H + "Seconds", 2);
case o:
return L(H + "Milliseconds", 3);
default:
return this.clone();
}
}, N.endOf = function(T) {
return this.startOf(T, !1);
}, N.$set = function(T, P) {
var S, I = O.p(T), $ = "set" + (this.$u ? "UTC" : ""), F = (S = {}, S[u] = $ + "Date", S[E] = $ + "Date", S[d] = $ + "Month", S[h] = $ + "FullYear", S[c] = $ + "Hours", S[l] = $ + "Minutes", S[o] = $ + "Seconds", S[a] = $ + "Milliseconds", S)[I], L = I === u ? this.$D + (P - this.$W) : P;
if (I === d || I === h) {
var B = this.clone().set(E, 1);
B.$d[F](L), B.init(), this.$d = B.set(E, Math.min(this.$D, B.daysInMonth())).$d;
} else
F && this.$d[F](L);
return this.init(), this;
}, N.set = function(T, P) {
return this.clone().$set(T, P);
}, N.get = function(T) {
return this[O.p(T)]();
}, N.add = function(T, P) {
var S, I = this;
T = Number(T);
var $ = O.p(P), F = function(j) {
var q = R(I);
return O.w(q.date(q.date() + Math.round(j * T)), I);
};
if ($ === d)
return this.set(d, this.$M + T);
if ($ === h)
return this.set(h, this.$y + T);
if ($ === u)
return F(1);
if ($ === f)
return F(7);
var L = (S = {}, S[l] = r, S[c] = i, S[o] = n, S)[$] || 1, B = this.$d.getTime() + T * L;
return O.w(B, this);
}, N.subtract = function(T, P) {
return this.add(-1 * T, P);
}, N.format = function(T) {
var P = this, S = this.$locale();
if (!this.isValid())
return S.invalidDate || b;
var I = T || "YYYY-MM-DDTHH:mm:ssZ", $ = O.z(this), F = this.$H, L = this.$m, B = this.$M, j = S.weekdays, q = S.months, H = S.meridiem, X = function(re, z, ne, G) {
return re && (re[z] || re(P, I)) || ne[z].slice(0, G);
}, te = function(re) {
return O.s(F % 12 || 12, re, "0");
}, ae = H || function(re, z, ne) {
var G = re < 12 ? "AM" : "PM";
return ne ? G.toLowerCase() : G;
};
return I.replace(v, function(re, z) {
return z || function(ne) {
switch (ne) {
case "YY":
return String(P.$y).slice(-2);
case "YYYY":
return O.s(P.$y, 4, "0");
case "M":
return B + 1;
case "MM":
return O.s(B + 1, 2, "0");
case "MMM":
return X(S.monthsShort, B, q, 3);
case "MMMM":
return X(q, B);
case "D":
return P.$D;
case "DD":
return O.s(P.$D, 2, "0");
case "d":
return String(P.$W);
case "dd":
return X(S.weekdaysMin, P.$W, j, 2);
case "ddd":
return X(S.weekdaysShort, P.$W, j, 3);
case "dddd":
return j[P.$W];
case "H":
return String(F);
case "HH":
return O.s(F, 2, "0");
case "h":
return te(1);
case "hh":
return te(2);
case "a":
return ae(F, L, !0);
case "A":
return ae(F, L, !1);
case "m":
return String(L);
case "mm":
return O.s(L, 2, "0");
case "s":
return String(P.$s);
case "ss":
return O.s(P.$s, 2, "0");
case "SSS":
return O.s(P.$ms, 3, "0");
case "Z":
return $;
}
return null;
}(re) || $.replace(":", "");
});
}, N.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, N.diff = function(T, P, S) {
var I, $ = this, F = O.p(P), L = R(T), B = (L.utcOffset() - this.utcOffset()) * r, j = this - L, q = function() {
return O.m($, L);
};
switch (F) {
case h:
I = q() / 12;
break;
case d:
I = q();
break;
case m:
I = q() / 3;
break;
case f:
I = (j - B) / 6048e5;
break;
case u:
I = (j - B) / 864e5;
break;
case c:
I = j / i;
break;
case l:
I = j / r;
break;
case o:
I = j / n;
break;
default:
I = j;
}
return S ? I : O.a(I);
}, N.daysInMonth = function() {
return this.endOf(d).$D;
}, N.$locale = function() {
return x[this.$L];
}, N.locale = function(T, P) {
if (!T)
return this.$L;
var S = this.clone(), I = _(T, P, !0);
return I && (S.$L = I), S;
}, N.clone = function() {
return O.w(this.$d, this);
}, N.toDate = function() {
return new Date(this.valueOf());
}, N.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, N.toISOString = function() {
return this.$d.toISOString();
}, N.toString = function() {
return this.$d.toUTCString();
}, M;
}(), A = V.prototype;
return R.prototype = A, [["$ms", a], ["$s", o], ["$m", l], ["$H", c], ["$W", u], ["$M", d], ["$y", h], ["$D", E]].forEach(function(M) {
A[M[1]] = function(N) {
return this.$g(N, M[0], M[1]);
};
}), R.extend = function(M, N) {
return M.$i || (M(N, V, R), M.$i = !0), R;
}, R.locale = _, R.isDayjs = k, R.unix = function(M) {
return R(1e3 * M);
}, R.en = x[C], R.Ls = x, R.p = {}, R;
});
})(Jf);
var nv = Jf.exports;
const me = /* @__PURE__ */ Ot(nv);
function rv(e, t) {
var n;
Ii && (Tr(e) || console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));
var r = ao(e), i = (n = t == null ? void 0 : t.wait) !== null && n !== void 0 ? n : 1e3, a = de(function() {
return Vh(function() {
for (var o = [], l = 0; l < arguments.length; l++)
o[l] = arguments[l];
return r.current.apply(r, ml([], Dt(o), !1));
}, i, t);
}, []);
return Li(function() {
a.cancel();
}), {
run: a,
cancel: a.cancel,
flush: a.flush
};
}
function iv(e, t, n) {
var r = Dt(Q({}), 2), i = r[0], a = r[1], o = rv(function() {
a({});
}, n).run;
J(function() {
return o();
}, t), hl(e, [i]);
}
function av(e) {
var t = Dt(Q(e), 2), n = t[0], r = t[1], i = W(n);
i.current = n;
var a = Ue(function() {
return i.current;
}, []);
return [n, r, a];
}
(function() {
if (typeof window != "object")
return;
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
"isIntersecting" in window.IntersectionObserverEntry.prototype || Object.defineProperty(
window.IntersectionObserverEntry.prototype,
"isIntersecting",
{
get: function() {
return this.intersectionRatio > 0;
}
}
);
return;
}
function e(p) {
try {
return p.defaultView && p.defaultView.frameElement || null;
} catch {
return null;
}
}
var t = function(p) {
for (var y = p, C = e(y); C; )
y = C.ownerDocument, C = e(y);
return y;
}(window.document), n = [], r = null, i = null;
function a(p) {
this.time = p.time, this.target = p.target, this.rootBounds = E(p.rootBounds), this.boundingClientRect = E(p.boundingClientRect), this.intersectionRect = E(p.intersectionRect || h()), this.isIntersecting = !!p.intersectionRect;
var y = this.boundingClientRect, C = y.width * y.height, x = this.intersectionRect, k = x.width * x.height;
C ? this.intersectionRatio = Number((k / C).toFixed(4)) : this.intersectionRatio = this.isIntersecting ? 1 : 0;
}
function o(p, y) {
var C = y || {};
if (typeof p != "function")
throw new Error("callback must be a function");
if (C.root && C.root.nodeType != 1 && C.root.nodeType != 9)
throw new Error("root must be a Document or Element");
this._checkForIntersections = c(
this._checkForIntersections.bind(this),
this.THROTTLE_TIMEOUT
), this._callback = p, this._observationTargets = [], this._queuedEntries = [], this._rootMarginValues = this._parseRootMargin(C.rootMargin), this.thresholds = this._initThresholds(C.threshold), this.root = C.root || null, this.rootMargin = this._rootMarginValues.map(function(x) {
return x.value + x.unit;
}).join(" "), this._monitoringDocuments = [], this._monitoringUnsubscribes = [];
}
o.prototype.THROTTLE_TIMEOUT = 100, o.prototype.POLL_INTERVAL = null, o.prototype.USE_MUTATION_OBSERVER = !0, o._setupCrossOriginUpdater = function() {
return r || (r = function(p, y) {
!p || !y ? i = h() : i = b(p, y), n.forEach(function(C) {
C._checkForIntersections();
});
}), r;
}, o._resetCrossOriginUpdater = function() {
r = null, i = null;
}, o.prototype.observe = function(p) {
var y = this._observationTargets.some(function(C) {
return C.element == p;
});
if (!y) {
if (!(p && p.nodeType == 1))
throw new Error("target must be an Element");
this._registerInstance(), this._observationTargets.push({ element: p, entry: null }), this._monitorIntersections(p.ownerDocument), this._checkForIntersections();
}
}, o.prototype.unobserve = function(p) {
this._observationTargets = this._observationTargets.filter(function(y) {
return y.element != p;
}), this._unmonitorIntersections(p.ownerDocument), this._observationTargets.length == 0 && this._unregisterInstance();
}, o.prototype.disconnect = function() {
this._observationTargets = [], this._unmonitorAllIntersections(), this._unregisterInstance();
}, o.prototype.takeRecords = function() {
var p = this._queuedEntries.slice();
return this._queuedEntries = [], p;
}, o.prototype._initThresholds = function(p) {
var y = p || [0];
return Array.isArray(y) || (y = [y]), y.sort().filter(function(C, x, k) {
if (typeof C != "number" || isNaN(C) || C < 0 || C > 1)
throw new Error("threshold must be a number between 0 and 1 inclusively");
return C !== k[x - 1];
});
}, o.prototype._parseRootMargin = function(p) {
var y = p || "0px", C = y.split(/\s+/).map(function(x) {
var k = /^(-?\d*\.?\d+)(px|%)$/.exec(x);
if (!k)
throw new Error("rootMargin must be specified in pixels or percent");
return { value: parseFloat(k[1]), unit: k[2] };
});
return C[1] = C[1] || C[0], C[2] = C[2] || C[0], C[3] = C[3] || C[1], C;
}, o.prototype._monitorIntersections = function(p) {
var y = p.defaultView;
if (y && this._monitoringDocuments.indexOf(p) == -1) {
var C = this._checkForIntersections, x = null, k = null;
this.POLL_INTERVAL ? x = y.setInterval(C, this.POLL_INTERVAL) : (u(y, "resize", C, !0), u(p, "scroll", C, !0), this.USE_MUTATION_OBSERVER && "MutationObserver" in y && (k = new y.MutationObserver(C), k.observe(p, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
}))), this._monitoringDocuments.push(p), this._monitoringUnsubscribes.push(function() {
var O = p.defaultView;
O && (x && O.clearInterval(x), f(O, "resize", C, !0)), f(p, "scroll", C, !0), k && k.disconnect();
});
var _ = this.root && (this.root.ownerDocument || this.root) || t;
if (p != _) {
var R = e(p);
R && this._monitorIntersections(R.ownerDocument);
}
}
}, o.prototype._unmonitorIntersections = function(p) {
var y = this._monitoringDocuments.indexOf(p);
if (y != -1) {
var C = this.root && (this.root.ownerDocument || this.root) || t, x = this._observationTargets.some(function(R) {
var O = R.element.ownerDocument;
if (O == p)
return !0;
for (; O && O != C; ) {
var V = e(O);
if (O = V && V.ownerDocument, O == p)
return !0;
}
return !1;
});
if (!x) {
var k = this._monitoringUnsubscribes[y];
if (this._monitoringDocuments.splice(y, 1), this._monitoringUnsubscribes.splice(y, 1), k(), p != C) {
var _ = e(p);
_ && this._unmonitorIntersections(_.ownerDocument);
}
}
}
}, o.prototype._unmonitorAllIntersections = function() {
var p = this._monitoringUnsubscribes.slice(0);
this._monitoringDocuments.length = 0, this._monitoringUnsubscribes.length = 0;
for (var y = 0; y < p.length; y++)
p[y]();
}, o.prototype._checkForIntersections = function() {
if (!(!this.root && r && !i)) {
var p = this._rootIsInDom(), y = p ? this._getRootRect() : h();
this._observationTargets.forEach(function(C) {
var x = C.element, k = m(x), _ = this._rootContainsTarget(x), R = C.entry, O = p && _ && this._computeTargetAndRootIntersection(x, k, y), V = null;
this._rootContainsTarget(x) ? (!r || this.root) && (V = y) : V = h();
var A = C.entry = new a({
time: l(),
target: x,
boundingClientRect: k,
rootBounds: V,
intersectionRect: O
});
R ? p && _ ? this._hasCrossedThreshold(R, A) && this._queuedEntries.push(A) : R && R.isIntersecting && this._queuedEntries.push(A) : this._queuedEntries.push(A);
}, this), this._queuedEntries.length && this._callback(this.takeRecords(), this);
}
}, o.prototype._computeTargetAndRootIntersection = function(p, y, C) {
if (window.getComputedStyle(p).display != "none") {
for (var x = y, k = v(p), _ = !1; !_ && k; ) {
var R = null, O = k.nodeType == 1 ? window.getComputedStyle(k) : {};
if (O.display == "none")
return null;
if (k == this.root || k.nodeType == /* DOCUMENT */
9)
if (_ = !0, k == this.root || k == t)
r && !this.root ? !i || i.width == 0 && i.height == 0 ? (k = null, R = null, x = null) : R = i : R = C;
else {
var V = v(k), A = V && m(V), M = V && this._computeTargetAndRootIntersection(V, A, C);
A && M ? (k = V, R = b(A, M)) : (k = null, x = null);
}
else {
var N = k.ownerDocument;
k != N.body && k != N.documentElement && O.overflow != "visible" && (R = m(k));
}
if (R && (x = d(R, x)), !x)
break;
k = k && v(k);
}
return x;
}
}, o.prototype._getRootRect = function() {
var p;
if (this.root && !w(this.root))
p = m(this.root);
else {
var y = w(this.root) ? this.root : t, C = y.documentElement, x = y.body;
p = {
top: 0,
left: 0,
right: C.clientWidth || x.clientWidth,
width: C.clientWidth || x.clientWidth,
bottom: C.clientHeight || x.clientHeight,
height: C.clientHeight || x.clientHeight
};
}
return this._expandRectByRootMargin(p);
}, o.prototype._expandRectByRootMargin = function(p) {
var y = this._rootMarginValues.map(function(x, k) {
return x.unit == "px" ? x.value : x.value * (k % 2 ? p.width : p.height) / 100;
}), C = {
top: p.top - y[0],
right: p.right + y[1],
bottom: p.bottom + y[2],
left: p.left - y[3]
};
return C.width = C.right - C.left, C.height = C.bottom - C.top, C;
}, o.prototype._hasCrossedThreshold = function(p, y) {
var C = p && p.isIntersecting ? p.intersectionRatio || 0 : -1, x = y.isIntersecting ? y.intersectionRatio || 0 : -1;
if (C !== x)
for (var k = 0; k < this.thresholds.length; k++) {
var _ = this.thresholds[k];
if (_ == C || _ == x || _ < C != _ < x)
return !0;
}
}, o.prototype._rootIsInDom = function() {
return !this.root || g(t, this.root);
}, o.prototype._rootContainsTarget = function(p) {
var y = this.root && (this.root.ownerDocument || this.root) || t;
return g(y, p) && (!this.root || y == p.ownerDocument);
}, o.prototype._registerInstance = function() {
n.indexOf(this) < 0 && n.push(this);
}, o.prototype._unregisterInstance = function() {
var p = n.indexOf(this);
p != -1 && n.splice(p, 1);
};
function l() {
return window.performance && performance.now && performance.now();
}
function c(p, y) {
var C = null;
return function() {
C || (C = setTimeout(function() {
p(), C = null;
}, y));
};
}
function u(p, y, C, x) {
typeof p.addEventListener == "function" ? p.addEventListener(y, C, x || !1) : typeof p.attachEvent == "function" && p.attachEvent("on" + y, C);
}
function f(p, y, C, x) {
typeof p.removeEventListener == "function" ? p.removeEventListener(y, C, x || !1) : typeof p.detachEvent == "function" && p.detachEvent("on" + y, C);
}
function d(p, y) {
var C = Math.max(p.top, y.top), x = Math.min(p.bottom, y.bottom), k = Math.max(p.left, y.left), _ = Math.min(p.right, y.right), R = _ - k, O = x - C;
return R >= 0 && O >= 0 && {
top: C,
bottom: x,
left: k,
right: _,
width: R,
height: O
} || null;
}
function m(p) {
var y;
try {
y = p.getBoundingClientRect();
} catch {
}
return y ? (y.width && y.height || (y = {
top: y.top,
right: y.right,
bottom: y.bottom,
left: y.left,
width: y.right - y.left,
height: y.bottom - y.top
}), y) : h();
}
function h() {
return {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
};
}
function E(p) {
return !p || "x" in p ? p : {
top: p.top,
y: p.top,
bottom: p.bottom,
left: p.left,
x: p.left,
right: p.right,
width: p.width,
height: p.height
};
}
function b(p, y) {
var C = y.top - p.top, x = y.left - p.left;
return {
top: C,
left: x,
height: y.height,
width: y.width,
bottom: C + y.height,
right: x + y.width
};
}
function g(p, y) {
for (var C = y; C; ) {
if (C == p)
return !0;
C = v(C);
}
return !1;
}
function v(p) {
var y = p.parentNode;
return p.nodeType == /* DOCUMENT */
9 && p != t ? e(p) : (y && y.assignedSlot && (y = y.assignedSlot.parentNode), y && y.nodeType == 11 && y.host ? y.host : y);
}
function w(p) {
return p && p.nodeType === 9;
}
window.IntersectionObserver = o, window.IntersectionObserverEntry = a;
})();
function ov(e, t) {
var n = Dt(Q(), 2), r = n[0], i = n[1], a = Dt(Q(), 2), o = a[0], l = a[1];
return gl(function() {
var c = hn(e);
if (c) {
var u = new IntersectionObserver(function(f) {
var d, m;
try {
for (var h = Am(f), E = h.next(); !E.done; E = h.next()) {
var b = E.value;
l(b.intersectionRatio), i(b.isIntersecting);
}
} catch (g) {
d = {
error: g
};
} finally {
try {
E && !E.done && (m = h.return) && m.call(h);
} finally {
if (d)
throw d.error;
}
}
}, Ia(Ia({}, t), {
root: hn(t == null ? void 0 : t.root)
}));
return u.observe(c), function() {
u.disconnect();
};
}
}, [t == null ? void 0 : t.rootMargin, t == null ? void 0 : t.threshold], e), [r, o];
}
var sv = pl ? io : J;
const De = sv;
function lv(e) {
var t = this, n = W(!1);
return Ue(function() {
for (var r = [], i = 0; i < arguments.length; i++)
r[i] = arguments[i];
return Te(t, void 0, void 0, function() {
var a, o;
return Mm(this, function(l) {
switch (l.label) {
case 0:
if (n.current)
return [
2
/*return*/
];
n.current = !0, l.label = 1;
case 1:
return l.trys.push([1, 3, , 4]), [4, e.apply(void 0, ml([], Dt(r), !1))];
case 2:
return a = l.sent(), n.current = !1, [2, a];
case 3:
throw o = l.sent(), n.current = !1, o;
case 4:
return [
2
/*return*/
];
}
});
});
}, [e]);
}
function cv(e) {
var t = W(0), n = Dt(Q(e), 2), r = n[0], i = n[1], a = Ue(function(o) {
cancelAnimationFrame(t.current), t.current = requestAnimationFrame(function() {
i(o);
});
}, []);
return Li(function() {
cancelAnimationFrame(t.current);
}), [r, a];
}
var uv = function() {
var e = W(!1);
return J(function() {
return e.current = !1, function() {
e.current = !0;
};
}, []), e;
};
const yl = uv;
var ed = function() {
if (typeof Map < "u")
return Map;
function e(t, n) {
var r = -1;
return t.some(function(i, a) {
return i[0] === n ? (r = a, !0) : !1;
}), r;
}
return (
/** @class */
function() {
function t() {
this.__entries__ = [];
}
return Object.defineProperty(t.prototype, "size", {
/**
* @returns {boolean}
*/
get: function() {
return this.__entries__.length;
},
enumerable: !0,
configurable: !0
}), t.prototype.get = function(n) {
var r = e(this.__entries__, n), i = this.__entries__[r];
return i && i[1];
}, t.prototype.set = function(n, r) {
var i = e(this.__entries__, n);
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
}, t.prototype.delete = function(n) {
var r = this.__entries__, i = e(r, n);
~i && r.splice(i, 1);
}, t.prototype.has = function(n) {
return !!~e(this.__entries__, n);
}, t.prototype.clear = function() {
this.__entries__.splice(0);
}, t.prototype.forEach = function(n, r) {
r === void 0 && (r = null);
for (var i = 0, a = this.__entries__; i < a.length; i++) {
var o = a[i];
n.call(r, o[1], o[0]);
}
}, t;
}()
);
}(), hs = typeof window < "u" && typeof document < "u" && window.document === document, La = function() {
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
}(), fv = function() {
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(La) : function(e) {
return setTimeout(function() {
return e(Date.now());
}, 1e3 / 60);
};
}(), dv = 2;
function mv(e, t) {
var n = !1, r = !1, i = 0;
function a() {
n && (n = !1, e()), r && l();
}
function o() {
fv(a);
}
function l() {
var c = Date.now();
if (n) {
if (c - i < dv)
return;
r = !0;
} else
n = !0, r = !1, setTimeout(o, t);
i = c;
}
return l;
}
var hv = 20, vv = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], pv = typeof MutationObserver < "u", gv = (
/** @class */
function() {
function e() {
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = mv(this.refresh.bind(this), hv);
}
return e.prototype.addObserver = function(t) {
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
}, e.prototype.removeObserver = function(t) {
var n = this.observers_, r = n.indexOf(t);
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
}, e.prototype.refresh = function() {
var t = this.updateObservers_();
t && this.refresh();
}, e.prototype.updateObservers_ = function() {
var t = this.observers_.filter(function(n) {
return n.gatherActive(), n.hasActive();
});
return t.forEach(function(n) {
return n.broadcastActive();
}), t.length > 0;
}, e.prototype.connect_ = function() {
!hs || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), pv ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
}, e.prototype.disconnect_ = function() {
!hs || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
}, e.prototype.onTransitionEnd_ = function(t) {
var n = t.propertyName, r = n === void 0 ? "" : n, i = vv.some(function(a) {
return !!~r.indexOf(a);
});
i && this.refresh();
}, e.getInstance = function() {
return this.instance_ || (this.instance_ = new e()), this.instance_;
}, e.instance_ = null, e;
}()
), td = function(e, t) {
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
var i = r[n];
Object.defineProperty(e, i, {
value: t[i],
enumerable: !1,
writable: !1,
configurable: !0
});
}
return e;
}, $r = function(e) {
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
return t || La;
}, nd = oo(0, 0, 0, 0);
function Da(e) {
return parseFloat(e) || 0;
}
function Vc(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return t.reduce(function(r, i) {
var a = e["border-" + i + "-width"];
return r + Da(a);
}, 0);
}
function yv(e) {
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
var a = i[r], o = e["padding-" + a];
n[a] = Da(o);
}
return n;
}
function bv(e) {
var t = e.getBBox();
return oo(0, 0, t.width, t.height);
}
function Ev(e) {
var t = e.clientWidth, n = e.clientHeight;
if (!t && !n)
return nd;
var r = $r(e).getComputedStyle(e), i = yv(r), a = i.left + i.right, o = i.top + i.bottom, l = Da(r.width), c = Da(r.height);
if (r.boxSizing === "border-box" && (Math.round(l + a) !== t && (l -= Vc(r, "left", "right") + a), Math.round(c + o) !== n && (c -= Vc(r, "top", "bottom") + o)), !Cv(e)) {
var u = Math.round(l + a) - t, f = Math.round(c + o) - n;
Math.abs(u) !== 1 && (l -= u), Math.abs(f) !== 1 && (c -= f);
}
return oo(i.left, i.top, l, c);
}
var wv = /* @__PURE__ */ function() {
return typeof SVGGraphicsElement < "u" ? function(e) {
return e instanceof $r(e).SVGGraphicsElement;
} : function(e) {
return e instanceof $r(e).SVGElement && typeof e.getBBox == "function";
};
}();
function Cv(e) {
return e === $r(e).document.documentElement;
}
function xv(e) {
return hs ? wv(e) ? bv(e) : Ev(e) : nd;
}
function kv(e) {
var t = e.x, n = e.y, r = e.width, i = e.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(a.prototype);
return td(o, {
x: t,
y: n,
width: r,
height: i,
top: n,
right: t + r,
bottom: i + n,
left: t
}), o;
}
function oo(e, t, n, r) {
return { x: e, y: t, width: n, height: r };
}
var $v = (
/** @class */
function() {
function e(t) {
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = oo(0, 0, 0, 0), this.target = t;
}
return e.prototype.isActive = function() {
var t = xv(this.target);
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
}, e.prototype.broadcastRect = function() {
var t = this.contentRect_;
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
}, e;
}()
), _v = (
/** @class */
/* @__PURE__ */ function() {
function e(t, n) {
var r = kv(n);
td(this, { target: t, contentRect: r });
}
return e;
}()
), Sv = (
/** @class */
function() {
function e(t, n, r) {
if (this.activeObservations_ = [], this.observations_ = new ed(), typeof t != "function")
throw new TypeError("The callback provided as parameter 1 is not a function.");
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
}
return e.prototype.observe = function(t) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof $r(t).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(t) || (n.set(t, new $v(t)), this.controller_.addObserver(this), this.controller_.refresh());
}
}, e.prototype.unobserve = function(t) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof $r(t).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
}
}, e.prototype.disconnect = function() {
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
}, e.prototype.gatherActive = function() {
var t = this;
this.clearActive(), this.observations_.forEach(function(n) {
n.isActive() && t.activeObservations_.push(n);
});
}, e.prototype.broadcastActive = function() {
if (this.hasActive()) {
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
return new _v(r.target, r.broadcastRect());
});
this.callback_.call(t, n, t), this.clearActive();
}
}, e.prototype.clearActive = function() {
this.activeObservations_.splice(0);
}, e.prototype.hasActive = function() {
return this.activeObservations_.length > 0;
}, e;
}()
), rd = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new ed(), id = (
/** @class */
/* @__PURE__ */ function() {
function e(t) {
if (!(this instanceof e))
throw new TypeError("Cannot call a class as a function.");
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
var n = gv.getInstance(), r = new Sv(t, n, this);
rd.set(this, r);
}
return e;
}()
);
[
"observe",
"unobserve",
"disconnect"
].forEach(function(e) {
id.prototype[e] = function() {
var t;
return (t = rd.get(this))[e].apply(t, arguments);
};
});
var Ov = function() {
return typeof La.ResizeObserver < "u" ? La.ResizeObserver : id;
}(), Fv = Xf(io);
const Rv = Fv;
var Nv = pl ? Rv : gl;
const Pv = Nv;
function vs(e) {
var t = Dt(cv(function() {
var i = hn(e);
return i ? {
width: i.clientWidth,
height: i.clientHeight
} : void 0;
}), 2), n = t[0], r = t[1];
return Pv(function() {
var i = hn(e);
if (i) {
var a = new Ov(function(o) {
o.forEach(function(l) {
var c = l.target, u = c.clientWidth, f = c.clientHeight;
r({
width: u,
height: f
});
});
});
return a.observe(i), function() {
a.disconnect();
};
}
}, [], e), n;
}
function so(e, t) {
var n;
Ii && (Tr(e) || console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));
var r = ao(e), i = (n = t == null ? void 0 : t.wait) !== null && n !== void 0 ? n : 1e3, a = de(function() {
return Uh(function() {
for (var o = [], l = 0; l < arguments.length; l++)
o[l] = arguments[l];
return r.current.apply(r, ml([], Dt(o), !1));
}, i, t);
}, []);
return Li(function() {
a.cancel();
}), {
run: a,
cancel: a.cancel,
flush: a.flush
};
}
var Mv = function(e, t) {
var n = Xt(e), r = W(null), i = Ue(function() {
r.current && clearTimeout(r.current);
}, []);
return J(function() {
if (!(!Dm(t) || t < 0))
return r.current = setTimeout(n, t), i;
}, [t]), i;
};
const Av = Mv, jc = 10;
function Tv(e, t) {
return e > t && e > jc ? "horizontal" : t > e && t > jc ? "vertical" : "";
}
function Iv() {
const e = W(0), t = W(0), n = W(0), r = W(0), i = W(0), a = W(0), o = W(""), l = () => o.current === "vertical", c = () => o.current === "horizontal", u = () => {
n.current = 0, r.current = 0, i.current = 0, a.current = 0, o.current = "";
};
return {
move: (m) => {
const h = m.touches[0];
n.current = h.clientX < 0 ? 0 : h.clientX - e.current, r.current = h.clientY - t.current, i.current = Math.abs(n.current), a.current = Math.abs(r.current), o.current || (o.current = Tv(i.current, a.current));
},
start: (m) => {
u(), e.current = m.touches[0].clientX, t.current = m.touches[0].clientY;
},
reset: u,
startX: e,
startY: t,
deltaX: n,
deltaY: r,
offsetX: i,
offsetY: a,
direction: o,
isVertical: l,
isHorizontal: c
};
}
const Lv = Ar ? window : void 0, Dv = ["scroll", "auto", "overlay"];
function Vv(e) {
return e.nodeType === 1;
}
function Va(e, t = Lv) {
let n = e;
for (; n && n !== t && Vv(n); ) {
if (n === document.body)
return t;
const {
overflowY: r
} = window.getComputedStyle(n);
if (Dv.includes(r) && n.scrollHeight > n.clientHeight)
return n;
n = n.parentNode;
}
return t;
}
let Un = !1;
if (Ar)
try {
const e = {};
Object.defineProperty(e, "passive", {
get() {
Un = !0;
}
}), window.addEventListener("test-passive", null, e);
} catch {
}
let Ur = 0;
const Bc = "adm-overflow-hidden";
function jv(e) {
let t = e == null ? void 0 : e.parentElement;
for (; t; ) {
if (t.clientHeight < t.scrollHeight)
return t;
t = t.parentElement;
}
return null;
}
function lo(e, t) {
const n = Iv(), r = (o) => {
n.move(o);
const l = n.deltaY.current > 0 ? "10" : "01", c = Va(o.target, e.current);
if (!c)
return;
if (t === "strict") {
const E = jv(o.target);
if (E === document.body || E === document.documentElement) {
o.preventDefault();
return;
}
}
const {
scrollHeight: u,
offsetHeight: f,
scrollTop: d
} = c, {
height: m
} = c.getBoundingClientRect();
let h = "11";
d === 0 ? h = f >= u ? "00" : "01" : u <= Math.round(m + d) && (h = "10"), h !== "11" && n.isVertical() && !(parseInt(h, 2) & parseInt(l, 2)) && o.cancelable && Un && o.preventDefault();
}, i = () => {
document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", r, Un ? {
passive: !1
} : !1), Ur || document.body.classList.add(Bc), Ur++;
}, a = () => {
Ur && (document.removeEventListener("touchstart", n.start), document.removeEventListener("touchmove", r), Ur--, Ur || document.body.classList.remove(Bc));
};
J(() => {
if (t)
return i(), () => {
a();
};
}, [t]);
}
let bl = Vi();
const ie = (e) => Di(e, bl);
let El = Vi();
ie.write = (e) => Di(e, El);
let co = Vi();
ie.onStart = (e) => Di(e, co);
let wl = Vi();
ie.onFrame = (e) => Di(e, wl);
let Cl = Vi();
ie.onFinish = (e) => Di(e, Cl);
let Er = [];
ie.setTimeout = (e, t) => {
let n = ie.now() + t, r = () => {
let a = Er.findIndex((o) => o.cancel == r);
~a && Er.splice(a, 1), un -= ~a ? 1 : 0;
}, i = {
time: n,
handler: e,
cancel: r
};
return Er.splice(ad(n), 0, i), un += 1, od(), i;
};
let ad = (e) => ~(~Er.findIndex((t) => t.time > e) || ~Er.length);
ie.cancel = (e) => {
co.delete(e), wl.delete(e), Cl.delete(e), bl.delete(e), El.delete(e);
};
ie.sync = (e) => {
ps = !0, ie.batchedUpdates(e), ps = !1;
};
ie.throttle = (e) => {
let t;
function n() {
try {
e(...t);
} finally {
t = null;
}
}
function r(...i) {
t = i, ie.onStart(n);
}
return r.handler = e, r.cancel = () => {
co.delete(n), t = null;
}, r;
};
let xl = typeof window < "u" ? window.requestAnimationFrame : () => {
};
ie.use = (e) => xl = e;
ie.now = typeof performance < "u" ? () => performance.now() : Date.now;
ie.batchedUpdates = (e) => e();
ie.catch = console.error;
ie.frameLoop = "always";
ie.advance = () => {
ie.frameLoop !== "demand" ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : ld();
};
let cn = -1, un = 0, ps = !1;
function Di(e, t) {
ps ? (t.delete(e), e(0)) : (t.add(e), od());
}
function od() {
cn < 0 && (cn = 0, ie.frameLoop !== "demand" && xl(sd));
}
function Bv() {
cn = -1;
}
function sd() {
~cn && (xl(sd), ie.batchedUpdates(ld));
}
function ld() {
let e = cn;
cn = ie.now();
let t = ad(cn);
if (t && (cd(Er.splice(0, t), (n) => n.handler()), un -= t), !un) {
Bv();
return;
}
co.flush(), bl.flush(e ? Math.min(64, cn - e) : 16.667), wl.flush(), El.flush(), Cl.flush();
}
function Vi() {
let e = /* @__PURE__ */ new Set(), t = e;
return {
add(n) {
un += t == e && !e.has(n) ? 1 : 0, e.add(n);
},
delete(n) {
return un -= t == e && e.has(n) ? 1 : 0, e.delete(n);
},
flush(n) {
t.size && (e = /* @__PURE__ */ new Set(), un -= t.size, cd(t, (r) => r(n) && e.add(r)), un += e.size, t = e);
}
};
}
function cd(e, t) {
e.forEach((n) => {
try {
t(n);
} catch (r) {
ie.catch(r);
}
});
}
function gs() {
}
const Wv = (e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
}), K = {
arr: Array.isArray,
obj: (e) => !!e && e.constructor.name === "Object",
fun: (e) => typeof e == "function",
str: (e) => typeof e == "string",
num: (e) => typeof e == "number",
und: (e) => e === void 0
};
function Ut(e, t) {
if (K.arr(e)) {
if (!K.arr(t) || e.length !== t.length)
return !1;
for (let n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0;
}
return e === t;
}
const ce = (e, t) => e.forEach(t);
function Vt(e, t, n) {
if (K.arr(e)) {
for (let r = 0; r < e.length; r++)
t.call(n, e[r], `${r}`);
return;
}
for (const r in e)
e.hasOwnProperty(r) && t.call(n, e[r], r);
}
const it = (e) => K.und(e) ? [] : K.arr(e) ? e : [e];
function fi(e, t) {
if (e.size) {
const n = Array.from(e);
e.clear(), ce(n, t);
}
}
const si = (e, ...t) => fi(e, (n) => n(...t)), kl = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent);
let $l, ud, dn = null, fd = !1, _l = gs;
const Zv = (e) => {
e.to && (ud = e.to), e.now && (ie.now = e.now), e.colors !== void 0 && (dn = e.colors), e.skipAnimation != null && (fd = e.skipAnimation), e.createStringInterpolator && ($l = e.createStringInterpolator), e.requestAnimationFrame && ie.use(e.requestAnimationFrame), e.batchedUpdates && (ie.batchedUpdates = e.batchedUpdates), e.willAdvance && (_l = e.willAdvance), e.frameLoop && (ie.frameLoop = e.frameLoop);
};
var gt = /* @__PURE__ */ Object.freeze({
__proto__: null,
get createStringInterpolator() {
return $l;
},
get to() {
return ud;
},
get colors() {
return dn;
},
get skipAnimation() {
return fd;
},
get willAdvance() {
return _l;
},
assign: Zv
});
const di = /* @__PURE__ */ new Set();
let ht = [], Zo = [], ja = 0;
const uo = {
get idle() {
return !di.size && !ht.length;
},
start(e) {
ja > e.priority ? (di.add(e), ie.onStart(qv)) : (dd(e), ie(ys));
},
advance: ys,
sort(e) {
if (ja)
ie.onFrame(() => uo.sort(e));
else {
const t = ht.indexOf(e);
~t && (ht.splice(t, 1), md(e));
}
},
clear() {
ht = [], di.clear();
}
};
function qv() {
di.forEach(dd), di.clear(), ie(ys);
}
function dd(e) {
ht.includes(e) || md(e);
}
function md(e) {
ht.splice(Hv(ht, (t) => t.priority > e.priority), 0, e);
}
function ys(e) {
const t = Zo;
for (let n = 0; n < ht.length; n++) {
const r = ht[n];
ja = r.priority, r.idle || (_l(r), r.advance(e), r.idle || t.push(r));
}
return ja = 0, Zo = ht, Zo.length = 0, ht = t, ht.length > 0;
}
function Hv(e, t) {
const n = e.findIndex(t);
return n < 0 ? e.length : n;
}
const Uv = (e, t, n) => Math.min(Math.max(n, e), t), zv = {
transparent: 0,
aliceblue: 4042850303,
antiquewhite: 4209760255,
aqua: 16777215,
aquamarine: 2147472639,
azure: 4043309055,
beige: 4126530815,
bisque: 4293182719,
black: 255,
blanchedalmond: 4293643775,
blue: 65535,
blueviolet: 2318131967,
brown: 2771004159,
burlywood: 3736635391,
burntsienna: 3934150143,
cadetblue: 1604231423,
chartreuse: 2147418367,
chocolate: 3530104575,
coral: 4286533887,
cornflowerblue: 1687547391,
cornsilk: 4294499583,
crimson: 3692313855,
cyan: 16777215,
darkblue: 35839,
darkcyan: 9145343,
darkgoldenrod: 3095792639,
darkgray: 2846468607,
darkgreen: 6553855,
darkgrey: 2846468607,
darkkhaki: 3182914559,
darkmagenta: 2332068863,
darkolivegreen: 1433087999,
darkorange: 4287365375,
darkorchid: 2570243327,
darkred: 2332033279,
darksalmon: 3918953215,
darkseagreen: 2411499519,
darkslateblue: 1211993087,
darkslategray: 793726975,
darkslategrey: 793726975,
darkturquoise: 13554175,
darkviolet: 2483082239,
deeppink: 4279538687,
deepskyblue: 12582911,
dimgray: 1768516095,
dimgrey: 1768516095,
dodgerblue: 512819199,
firebrick: 2988581631,
floralwhite: 4294635775,
forestgreen: 579543807,
fuchsia: 4278255615,
gainsboro: 3705462015,
ghostwhite: 4177068031,
gold: 4292280575,
goldenrod: 3668254975,
gray: 2155905279,
green: 8388863,
greenyellow: 2919182335,
grey: 2155905279,
honeydew: 4043305215,
hotpink: 4285117695,
indianred: 3445382399,
indigo: 1258324735,
ivory: 4294963455,
khaki: 4041641215,
lavender: 3873897215,
lavenderblush: 4293981695,
lawngreen: 2096890111,
lemonchiffon: 4294626815,
lightblue: 2916673279,
lightcoral: 4034953471,
lightcyan: 3774873599,
lightgoldenrodyellow: 4210742015,
lightgray: 3553874943,
lightgreen: 2431553791,
lightgrey: 3553874943,
lightpink: 4290167295,
lightsalmon: 4288707327,
lightseagreen: 548580095,
lightskyblue: 2278488831,
lightslategray: 2005441023,
lightslategrey: 2005441023,
lightsteelblue: 2965692159,
lightyellow: 4294959359,
lime: 16711935,
limegreen: 852308735,
linen: 4210091775,
magenta: 4278255615,
maroon: 2147483903,
mediumaquamarine: 1724754687,
mediumblue: 52735,
mediumorchid: 3126187007,
mediumpurple: 2473647103,
mediumseagreen: 1018393087,
mediumslateblue: 2070474495,
mediumspringgreen: 16423679,
mediumturquoise: 1221709055,
mediumvioletred: 3340076543,
midnightblue: 421097727,
mintcream: 4127193855,
mistyrose: 4293190143,
moccasin: 4293178879,
navajowhite: 4292783615,
navy: 33023,
oldlace: 4260751103,
olive: 2155872511,
olivedrab: 1804477439,
orange: 4289003775,
orangered: 4282712319,
orchid: 3664828159,
palegoldenrod: 4008225535,
palegreen: 2566625535,
paleturquoise: 2951671551,
palevioletred: 3681588223,
papayawhip: 4293907967,
peachpuff: 4292524543,
peru: 3448061951,
pink: 4290825215,
plum: 3718307327,
powderblue: 2967529215,
purple: 2147516671,
rebeccapurple: 1714657791,
red: 4278190335,
rosybrown: 3163525119,
royalblue: 1097458175,
saddlebrown: 2336560127,
salmon: 4202722047,
sandybrown: 4104413439,
seagreen: 780883967,
seashell: 4294307583,
sienna: 2689740287,
silver: 3233857791,
skyblue: 2278484991,
slateblue: 1784335871,
slategray: 1887473919,
slategrey: 1887473919,
snow: 4294638335,
springgreen: 16744447,
steelblue: 1182971135,
tan: 3535047935,
teal: 8421631,
thistle: 3636451583,
tomato: 4284696575,
turquoise: 1088475391,
violet: 4001558271,
wheat: 4125012991,
white: 4294967295,
whitesmoke: 4126537215,
yellow: 4294902015,
yellowgreen: 2597139199
}, _t = "[-+]?\\d*\\.?\\d+", Ba = _t + "%";
function fo(...e) {
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
}
const Kv = new RegExp("rgb" + fo(_t, _t, _t)), Yv = new RegExp("rgba" + fo(_t, _t, _t, _t)), Gv = new RegExp("hsl" + fo(_t, Ba, Ba)), Xv = new RegExp("hsla" + fo(_t, Ba, Ba, _t)), Qv = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Jv = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, e2 = /^#([0-9a-fA-F]{6})$/, t2 = /^#([0-9a-fA-F]{8})$/;
function n2(e) {
let t;
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = e2.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : dn && dn[e] !== void 0 ? dn[e] : (t = Kv.exec(e)) ? (nr(t[1]) << 24 | nr(t[2]) << 16 | nr(t[3]) << 8 | 255) >>> 0 : (t = Yv.exec(e)) ? (nr(t[1]) << 24 | nr(t[2]) << 16 | nr(t[3]) << 8 | qc(t[4])) >>> 0 : (t = Qv.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = t2.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Jv.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = Gv.exec(e)) ? (Wc(Zc(t[1]), ta(t[2]), ta(t[3])) | 255) >>> 0 : (t = Xv.exec(e)) ? (Wc(Zc(t[1]), ta(t[2]), ta(t[3])) | qc(t[4])) >>> 0 : null;
}
function qo(e, t, n) {
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
function Wc(e, t, n) {
const r = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r, a = qo(i, r, e + 1 / 3), o = qo(i, r, e), l = qo(i, r, e - 1 / 3);
return Math.round(a * 255) << 24 | Math.round(o * 255) << 16 | Math.round(l * 255) << 8;
}
function nr(e) {
const t = parseInt(e, 10);
return t < 0 ? 0 : t > 255 ? 255 : t;
}
function Zc(e) {
return (parseFloat(e) % 360 + 360) % 360 / 360;
}
function qc(e) {
const t = parseFloat(e);
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
}
function ta(e) {
const t = parseFloat(e);
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
}
function Hc(e) {
let t = n2(e);
if (t === null)
return e;
t = t || 0;
let n = (t & 4278190080) >>> 24, r = (t & 16711680) >>> 16, i = (t & 65280) >>> 8, a = (t & 255) / 255;
return `rgba(${n}, ${r}, ${i}, ${a})`;
}
const bi = (e, t, n) => {
if (K.fun(e))
return e;
if (K.arr(e))
return bi({
range: e,
output: t,
extrapolate: n
});
if (K.str(e.output[0]))
return $l(e);
const r = e, i = r.output, a = r.range || [0, 1], o = r.extrapolateLeft || r.extrapolate || "extend", l = r.extrapolateRight || r.extrapolate || "extend", c = r.easing || ((u) => u);
return (u) => {
const f = i2(u, a);
return r2(u, a[f], a[f + 1], i[f], i[f + 1], c, o, l, r.map);
};
};
function r2(e, t, n, r, i, a, o, l, c) {
let u = c ? c(e) : e;
if (u < t) {
if (o === "identity")
return u;
o === "clamp" && (u = t);
}
if (u > n) {
if (l === "identity")
return u;
l === "clamp" && (u = n);
}
return r === i ? r : t === n ? e <= t ? r : i : (t === -1 / 0 ? u = -u : n === 1 / 0 ? u = u - t : u = (u - t) / (n - t), u = a(u), r === -1 / 0 ? u = -u : i === 1 / 0 ? u = u + r : u = u * (i - r) + r, u);
}
function i2(e, t) {
for (var n = 1; n < t.length - 1 && !(t[n] >= e); ++n)
;
return n - 1;
}
const a2 = (e, t = "end") => (n) => {
n = t === "end" ? Math.min(n, 0.999) : Math.max(n, 1e-3);
const r = n * e, i = t === "end" ? Math.floor(r) : Math.ceil(r);
return Uv(0, 1, i / e);
}, Wa = 1.70158, na = Wa * 1.525, Uc = Wa + 1, zc = 2 * Math.PI / 3, Kc = 2 * Math.PI / 4.5, ra = (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375, o2 = {
linear: (e) => e,
easeInQuad: (e) => e * e,
easeOutQuad: (e) => 1 - (1 - e) * (1 - e),
easeInOutQuad: (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2,
easeInCubic: (e) => e * e * e,
easeOutCubic: (e) => 1 - Math.pow(1 - e, 3),
easeInOutCubic: (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2,
easeInQuart: (e) => e * e * e * e,
easeOutQuart: (e) => 1 - Math.pow(1 - e, 4),
easeInOutQuart: (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2,
easeInQuint: (e) => e * e * e * e * e,
easeOutQuint: (e) => 1 - Math.pow(1 - e, 5),
easeInOutQuint: (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2,
easeInSine: (e) => 1 - Math.cos(e * Math.PI / 2),
easeOutSine: (e) => Math.sin(e * Math.PI / 2),
easeInOutSine: (e) => -(Math.cos(Math.PI * e) - 1) / 2,
easeInExpo: (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10),
easeOutExpo: (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e),
easeInOutExpo: (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? Math.pow(2, 20 * e - 10) / 2 : (2 - Math.pow(2, -20 * e + 10)) / 2,
easeInCirc: (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)),
easeOutCirc: (e) => Math.sqrt(1 - Math.pow(e - 1, 2)),
easeInOutCirc: (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2,
easeInBack: (e) => Uc * e * e * e - Wa * e * e,
easeOutBack: (e) => 1 + Uc * Math.pow(e - 1, 3) + Wa * Math.pow(e - 1, 2),
easeInOutBack: (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((na + 1) * 2 * e - na) / 2 : (Math.pow(2 * e - 2, 2) * ((na + 1) * (e * 2 - 2) + na) + 2) / 2,
easeInElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * zc),
easeOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * zc) + 1,
easeInOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * Kc)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * Kc) / 2 + 1,
easeInBounce: (e) => 1 - ra(1 - e),
easeOutBounce: ra,
easeInOutBounce: (e) => e < 0.5 ? (1 - ra(1 - 2 * e)) / 2 : (1 + ra(2 * e - 1)) / 2,
steps: a2
};
function bs() {
return bs = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, bs.apply(this, arguments);
}
const _r = Symbol.for("FluidValue.get"), zn = Symbol.for("FluidValue.observers"), dt = (e) => !!(e && e[_r]), Qe = (e) => e && e[_r] ? e[_r]() : e, Yc = (e) => e[zn] || null;
function s2(e, t) {
e.eventObserved ? e.eventObserved(t) : e(t);
}
function Ei(e, t) {
let n = e[zn];
n && n.forEach((r) => {
s2(r, t);
});
}
class hd {
constructor(t) {
if (this[_r] = void 0, this[zn] = void 0, !t && !(t = this.get))
throw Error("Unknown getter");
l2(this, t);
}
}
const l2 = (e, t) => vd(e, _r, t);
function Ir(e, t) {
if (e[_r]) {
let n = e[zn];
n || vd(e, zn, n = /* @__PURE__ */ new Set()), n.has(t) || (n.add(t), e.observerAdded && e.observerAdded(n.size, t));
}
return t;
}
function wi(e, t) {
let n = e[zn];
if (n && n.has(t)) {
const r = n.size - 1;
r ? n.delete(t) : e[zn] = null, e.observerRemoved && e.observerRemoved(r, t);
}
}
const vd = (e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
}), $a = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, c2 = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Gc = new RegExp(`(${$a.source})(%|[a-z]+)`, "i"), u2 = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, mo = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, pd = (e) => {
const [t, n] = f2(e);
if (!t || kl())
return e;
const r = window.getComputedStyle(document.documentElement).getPropertyValue(t);
if (r)
return r.trim();
if (n && n.startsWith("--")) {
const i = window.getComputedStyle(document.documentElement).getPropertyValue(n);
return i || e;
} else {
if (n && mo.test(n))
return pd(n);
if (n)
return n;
}
return e;
}, f2 = (e) => {
const t = mo.exec(e);
if (!t)
return [,];
const [, n, r] = t;
return [n, r];
};
let Ho;
const d2 = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, gd = (e) => {
Ho || (Ho = dn ? new RegExp(`(${Object.keys(dn).join("|")})(?!\\w)`, "g") : /^\b$/);
const t = e.output.map((a) => Qe(a).replace(mo, pd).replace(c2, Hc).replace(Ho, Hc)), n = t.map((a) => a.match($a).map(Number)), i = n[0].map((a, o) => n.map((l) => {
if (!(o in l))
throw Error('The arity of each "output" value must be equal');
return l[o];
})).map((a) => bi(bs({}, e, {
output: a
})));
return (a) => {
var o;
const l = !Gc.test(t[0]) && ((o = t.find((u) => Gc.test(u))) == null ? void 0 : o.replace($a, ""));
let c = 0;
return t[0].replace($a, () => `${i[c++](a)}${l || ""}`).replace(u2, d2);
};
}, Sl = "react-spring: ", yd = (e) => {
const t = e;
let n = !1;
if (typeof t != "function")
throw new TypeError(`${Sl}once requires a function parameter`);
return (...r) => {
n || (t(...r), n = !0);
};
}, m2 = yd(console.warn);
function h2() {
m2(`${Sl}The "interpolate" function is deprecated in v9 (use "to" instead)`);
}
const v2 = yd(console.warn);
function p2() {
v2(`${Sl}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);
}
function ho(e) {
return K.str(e) && (e[0] == "#" || /\d/.test(e) || !kl() && mo.test(e) || e in (dn || {}));
}
const Ol = kl() ? J : io, g2 = () => {
const e = W(!1);
return Ol(() => (e.current = !0, () => {
e.current = !1;
}), []), e;
};
function bd() {
const e = Q()[1], t = g2();
return () => {
t.current && e(Math.random());
};
}
function y2(e, t) {
const [n] = Q(() => ({
inputs: t,
result: e()
})), r = W(), i = r.current;
let a = i;
return a ? t && a.inputs && b2(t, a.inputs) || (a = {
inputs: t,
result: e()
}) : a = n, J(() => {
r.current = a, i == n && (n.inputs = n.result = void 0);
}, [a]), a.result;
}
function b2(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;
}
const Ed = (e) => J(e, E2), E2 = [];
function Xc(e) {
const t = W();
return J(() => {
t.current = e;
}), t.current;
}
const Ci = Symbol.for("Animated:node"), w2 = (e) => !!e && e[Ci] === e, It = (e) => e && e[Ci], Fl = (e, t) => Wv(e, Ci, t), vo = (e) => e && e[Ci] && e[Ci].getPayload();
class wd {
constructor() {
this.payload = void 0, Fl(this, this);
}
getPayload() {
return this.payload || [];
}
}
class Lr extends wd {
constructor(t) {
super(), this.done = !0, this.elapsedTime = void 0, this.lastPosition = void 0, this.lastVelocity = void 0, this.v0 = void 0, this.durationProgress = 0, this._value = t, K.num(this._value) && (this.lastPosition = this._value);
}
static create(t) {
return new Lr(t);
}
getPayload() {
return [this];
}
getValue() {
return this._value;
}
setValue(t, n) {
return K.num(t) && (this.lastPosition = t, n && (t = Math.round(t / n) * n, this.done && (this.lastPosition = t))), this._value === t ? !1 : (this._value = t, !0);
}
reset() {
const {
done: t
} = this;
this.done = !1, K.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, t && (this.lastVelocity = null), this.v0 = null);
}
}
class Sr extends Lr {
constructor(t) {
super(0), this._string = null, this._toString = void 0, this._toString = bi({
output: [t, t]
});
}
static create(t) {
return new Sr(t);
}
getValue() {
let t = this._string;
return t ?? (this._string = this._toString(this._value));
}
setValue(t) {
if (K.str(t)) {
if (t == this._string)
return !1;
this._string = t, this._value = 1;
} else if (super.setValue(t))
this._string = null;
else
return !1;
return !0;
}
reset(t) {
t && (this._toString = bi({
output: [this.getValue(), t]
})), this._value = 0, super.reset();
}
}
const Za = {
dependencies: null
};
class po extends wd {
constructor(t) {
super(), this.source = t, this.setValue(t);
}
getValue(t) {
const n = {};
return Vt(this.source, (r, i) => {
w2(r) ? n[i] = r.getValue(t) : dt(r) ? n[i] = Qe(r) : t || (n[i] = r);
}), n;
}
setValue(t) {
this.source = t, this.payload = this._makePayload(t);
}
reset() {
this.payload && ce(this.payload, (t) => t.reset());
}
_makePayload(t) {
if (t) {
const n = /* @__PURE__ */ new Set();
return Vt(t, this._addToPayload, n), Array.from(n);
}
}
_addToPayload(t) {
Za.dependencies && dt(t) && Za.dependencies.add(t);
const n = vo(t);
n && ce(n, (r) => this.add(r));
}
}
class Rl extends po {
constructor(t) {
super(t);
}
static create(t) {
return new Rl(t);
}
getValue() {
return this.source.map((t) => t.getValue());
}
setValue(t) {
const n = this.getPayload();
return t.length == n.length ? n.map((r, i) => r.setValue(t[i])).some(Boolean) : (super.setValue(t.map(C2)), !0);
}
}
function C2(e) {
return (ho(e) ? Sr : Lr).create(e);
}
function Es(e) {
const t = It(e);
return t ? t.constructor : K.arr(e) ? Rl : ho(e) ? Sr : Lr;
}
function qa() {
return qa = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, qa.apply(this, arguments);
}
const Qc = (e, t) => {
const n = !K.fun(e) || e.prototype && e.prototype.isReactComponent;
return we((r, i) => {
const a = W(null), o = n && Ue((E) => {
a.current = $2(i, E);
}, [i]), [l, c] = k2(r, t), u = bd(), f = () => {
const E = a.current;
if (n && !E)
return;
(E ? t.applyAnimatedValues(E, l.getValue(!0)) : !1) === !1 && u();
}, d = new x2(f, c), m = W();
Ol(() => (m.current = d, ce(c, (E) => Ir(E, d)), () => {
m.current && (ce(m.current.deps, (E) => wi(E, m.current)), ie.cancel(m.current.update));
})), J(f, []), Ed(() => () => {
const E = m.current;
ce(E.deps, (b) => wi(b, E));
});
const h = t.getComponentProps(l.getValue());
return D.createElement(e, qa({}, h, {
ref: o
}));
});
};
class x2 {
constructor(t, n) {
this.update = t, this.deps = n;
}
eventObserved(t) {
t.type == "change" && ie.write(this.update);
}
}
function k2(e, t) {
const n = /* @__PURE__ */ new Set();
return Za.dependencies = n, e.style && (e = qa({}, e, {
style: t.createAnimatedStyle(e.style)
})), e = new po(e), Za.dependencies = null, [e, n];
}
function $2(e, t) {
return e && (K.fun(e) ? e(t) : e.current = t), t;
}
const Jc = Symbol.for("AnimatedComponent"), _2 = (e, {
applyAnimatedValues: t = () => !1,
createAnimatedStyle: n = (i) => new po(i),
getComponentProps: r = (i) => i
} = {}) => {
const i = {
applyAnimatedValues: t,
createAnimatedStyle: n,
getComponentProps: r
}, a = (o) => {
const l = eu(o) || "Anonymous";
return K.str(o) ? o = a[o] || (a[o] = Qc(o, i)) : o = o[Jc] || (o[Jc] = Qc(o, i)), o.displayName = `Animated(${l})`, o;
};
return Vt(e, (o, l) => {
K.arr(e) && (l = eu(o)), a[l] = a(o);
}), {
animated: a
};
}, eu = (e) => K.str(e) ? e : e && K.str(e.displayName) ? e.displayName : K.fun(e) && e.name || null;
function Le() {
return Le = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, Le.apply(this, arguments);
}
function Ln(e, ...t) {
return K.fun(e) ? e(...t) : e;
}
const mi = (e, t) => e === !0 || !!(t && e && (K.fun(e) ? e(t) : it(e).includes(t))), Cd = (e, t) => K.obj(e) ? t && e[t] : e, xd = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, S2 = (e) => e, Nl = (e, t = S2) => {
let n = O2;
e.default && e.default !== !0 && (e = e.default, n = Object.keys(e));
const r = {};
for (const i of n) {
const a = t(e[i], i);
K.und(a) || (r[i] = a);
}
return r;
}, O2 = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], F2 = {
config: 1,
from: 1,
to: 1,
ref: 1,
loop: 1,
reset: 1,
pause: 1,
cancel: 1,
reverse: 1,
immediate: 1,
default: 1,
delay: 1,
onProps: 1,
onStart: 1,
onChange: 1,
onPause: 1,
onResume: 1,
onRest: 1,
onResolve: 1,
items: 1,
trail: 1,
sort: 1,
expires: 1,
initial: 1,
enter: 1,
update: 1,
leave: 1,
children: 1,
onDestroyed: 1,
keys: 1,
callId: 1,
parentId: 1
};
function R2(e) {
const t = {};
let n = 0;
if (Vt(e, (r, i) => {
F2[i] || (t[i] = r, n++);
}), n)
return t;
}
function kd(e) {
const t = R2(e);
if (t) {
const n = {
to: t
};
return Vt(e, (r, i) => i in t || (n[i] = r)), n;
}
return Le({}, e);
}
function xi(e) {
return e = Qe(e), K.arr(e) ? e.map(xi) : ho(e) ? gt.createStringInterpolator({
range: [0, 1],
output: [e, e]
})(1) : e;
}
function N2(e) {
for (const t in e)
return !0;
return !1;
}
function ws(e) {
return K.fun(e) || K.arr(e) && K.obj(e[0]);
}
function P2(e, t) {
var n;
(n = e.ref) == null || n.delete(e), t == null || t.delete(e);
}
function M2(e, t) {
if (t && e.ref !== t) {
var n;
(n = e.ref) == null || n.delete(e), t.add(e), e.ref = t;
}
}
const A2 = {
default: {
tension: 170,
friction: 26
},
gentle: {
tension: 120,
friction: 14
},
wobbly: {
tension: 180,
friction: 12
},
stiff: {
tension: 210,
friction: 20
},
slow: {
tension: 280,
friction: 60
},
molasses: {
tension: 280,
friction: 120
}
}, Cs = Le({}, A2.default, {
mass: 1,
damping: 1,
easing: o2.linear,
clamp: !1
});
class T2 {
constructor() {
this.tension = void 0, this.friction = void 0, this.frequency = void 0, this.damping = void 0, this.mass = void 0, this.velocity = 0, this.restVelocity = void 0, this.precision = void 0, this.progress = void 0, this.duration = void 0, this.easing = void 0, this.clamp = void 0, this.bounce = void 0, this.decay = void 0, this.round = void 0, Object.assign(this, Cs);
}
}
function I2(e, t, n) {
n && (n = Le({}, n), tu(n, t), t = Le({}, n, t)), tu(e, t), Object.assign(e, t);
for (const o in Cs)
e[o] == null && (e[o] = Cs[o]);
let {
mass: r,
frequency: i,
damping: a
} = e;
return K.und(i) || (i < 0.01 && (i = 0.01), a < 0 && (a = 0), e.tension = Math.pow(2 * Math.PI / i, 2) * r, e.friction = 4 * Math.PI * a * r / i), e;
}
function tu(e, t) {
if (!K.und(t.decay))
e.duration = void 0;
else {
const n = !K.und(t.tension) || !K.und(t.friction);
(n || !K.und(t.frequency) || !K.und(t.damping) || !K.und(t.mass)) && (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0);
}
}
const nu = [];
class L2 {
constructor() {
this.changed = !1, this.values = nu, this.toValues = null, this.fromValues = nu, this.to = void 0, this.from = void 0, this.config = new T2(), this.immediate = !1;
}
}
function $d(e, {
key: t,
props: n,
defaultProps: r,
state: i,
actions: a
}) {
return new Promise((o, l) => {
var c;
let u, f, d = mi((c = n.cancel) != null ? c : r == null ? void 0 : r.cancel, t);
if (d)
E();
else {
K.und(n.pause) || (i.paused = mi(n.pause, t));
let b = r == null ? void 0 : r.pause;
b !== !0 && (b = i.paused || mi(b, t)), u = Ln(n.delay || 0, t), b ? (i.resumeQueue.add(h), a.pause()) : (a.resume(), h());
}
function m() {
i.resumeQueue.add(h), i.timeouts.delete(f), f.cancel(), u = f.time - ie.now();
}
function h() {
u > 0 && !gt.skipAnimation ? (i.delayed = !0, f = ie.setTimeout(E, u), i.pauseQueue.add(m), i.timeouts.add(f)) : E();
}
function E() {
i.delayed && (i.delayed = !1), i.pauseQueue.delete(m), i.timeouts.delete(f), e <= (i.cancelId || 0) && (d = !0);
try {
a.start(Le({}, n, {
callId: e,
cancel: d
}), o);
} catch (b) {
l(b);
}
}
});
}
const Pl = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? wr(e.get()) : t.every((n) => n.noop) ? _d(e.get()) : $t(e.get(), t.every((n) => n.finished)), _d = (e) => ({
value: e,
noop: !0,
finished: !0,
cancelled: !1
}), $t = (e, t, n = !1) => ({
value: e,
finished: t,
cancelled: n
}), wr = (e) => ({
value: e,
cancelled: !0,
finished: !1
});
function Sd(e, t, n, r) {
const {
callId: i,
parentId: a,
onRest: o
} = t, {
asyncTo: l,
promise: c
} = n;
return !a && e === l && !t.reset ? c : n.promise = (async () => {
n.asyncId = i, n.asyncTo = e;
const u = Nl(t, (g, v) => v === "onRest" ? void 0 : g);
let f, d;
const m = new Promise((g, v) => (f = g, d = v)), h = (g) => {
const v = i <= (n.cancelId || 0) && wr(r) || i !== n.asyncId && $t(r, !1);
if (v)
throw g.result = v, d(g), g;
}, E = (g, v) => {
const w = new ru(), p = new iu();
return (async () => {
if (gt.skipAnimation)
throw ki(n), p.result = $t(r, !1), d(p), p;
h(w);
const y = K.obj(g) ? Le({}, g) : Le({}, v, {
to: g
});
y.parentId = i, Vt(u, (x, k) => {
K.und(y[k]) && (y[k] = x);
});
const C = await r.start(y);
return h(w), n.paused && await new Promise((x) => {
n.resumeQueue.add(x);
}), C;
})();
};
let b;
if (gt.skipAnimation)
return ki(n), $t(r, !1);
try {
let g;
K.arr(e) ? g = (async (v) => {
for (const w of v)
await E(w);
})(e) : g = Promise.resolve(e(E, r.stop.bind(r))), await Promise.all([g.then(f), m]), b = $t(r.get(), !0, !1);
} catch (g) {
if (g instanceof ru)
b = g.result;
else if (g instanceof iu)
b = g.result;
else
throw g;
} finally {
i == n.asyncId && (n.asyncId = a, n.asyncTo = a ? l : void 0, n.promise = a ? c : void 0);
}
return K.fun(o) && ie.batchedUpdates(() => {
o(b, r, r.item);
}), b;
})();
}
function ki(e, t) {
fi(e.timeouts, (n) => n.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
}
class ru extends Error {
constructor() {
super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."), this.result = void 0;
}
}
class iu extends Error {
constructor() {
super("SkipAnimationSignal"), this.result = void 0;
}
}
const xs = (e) => e instanceof Ml;
let D2 = 1;
class Ml extends hd {
constructor(...t) {
super(...t), this.id = D2++, this.key = void 0, this._priority = 0;
}
get priority() {
return this._priority;
}
set priority(t) {
this._priority != t && (this._priority = t, this._onPriorityChange(t));
}
get() {
const t = It(this);
return t && t.getValue();
}
to(...t) {
return gt.to(this, t);
}
interpolate(...t) {
return h2(), gt.to(this, t);
}
toJSON() {
return this.get();
}
observerAdded(t) {
t == 1 && this._attach();
}
observerRemoved(t) {
t == 0 && this._detach();
}
_attach() {
}
_detach() {
}
_onChange(t, n = !1) {
Ei(this, {
type: "change",
parent: this,
value: t,
idle: n
});
}
_onPriorityChange(t) {
this.idle || uo.sort(this), Ei(this, {
type: "priority",
parent: this,
priority: t
});
}
}
const Kn = Symbol.for("SpringPhase"), Od = 1, ks = 2, $s = 4, Uo = (e) => (e[Kn] & Od) > 0, Jt = (e) => (e[Kn] & ks) > 0, zr = (e) => (e[Kn] & $s) > 0, au = (e, t) => t ? e[Kn] |= ks | Od : e[Kn] &= ~ks, ou = (e, t) => t ? e[Kn] |= $s : e[Kn] &= ~$s;
class V2 extends Ml {
constructor(t, n) {
if (super(), this.key = void 0, this.animation = new L2(), this.queue = void 0, this.defaultProps = {}, this._state = {
paused: !1,
delayed: !1,
pauseQueue: /* @__PURE__ */ new Set(),
resumeQueue: /* @__PURE__ */ new Set(),
timeouts: /* @__PURE__ */ new Set()
}, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !K.und(t) || !K.und(n)) {
const r = K.obj(t) ? Le({}, t) : Le({}, n, {
from: t
});
K.und(r.default) && (r.default = !0), this.start(r);
}
}
get idle() {
return !(Jt(this) || this._state.asyncTo) || zr(this);
}
get goal() {
return Qe(this.animation.to);
}
get velocity() {
const t = It(this);
return t instanceof Lr ? t.lastVelocity || 0 : t.getPayload().map((n) => n.lastVelocity || 0);
}
get hasAnimated() {
return Uo(this);
}
get isAnimating() {
return Jt(this);
}
get isPaused() {
return zr(this);
}
get isDelayed() {
return this._state.delayed;
}
advance(t) {
let n = !0, r = !1;
const i = this.animation;
let {
config: a,
toValues: o
} = i;
const l = vo(i.to);
!l && dt(i.to) && (o = it(Qe(i.to))), i.values.forEach((f, d) => {
if (f.done)
return;
const m = f.constructor == Sr ? 1 : l ? l[d].lastPosition : o[d];
let h = i.immediate, E = m;
if (!h) {
if (E = f.lastPosition, a.tension <= 0) {
f.done = !0;
return;
}
let b = f.elapsedTime += t;
const g = i.fromValues[d], v = f.v0 != null ? f.v0 : f.v0 = K.arr(a.velocity) ? a.velocity[d] : a.velocity;
let w;
const p = a.precision || (g == m ? 5e-3 : Math.min(1, Math.abs(m - g) * 1e-3));
if (K.und(a.duration))
if (a.decay) {
const y = a.decay === !0 ? 0.998 : a.decay, C = Math.exp(-(1 - y) * b);
E = g + v / (1 - y) * (1 - C), h = Math.abs(f.lastPosition - E) <= p, w = v * C;
} else {
w = f.lastVelocity == null ? v : f.lastVelocity;
const y = a.restVelocity || p / 10, C = a.clamp ? 0 : a.bounce, x = !K.und(C), k = g == m ? f.v0 > 0 : g < m;
let _, R = !1;
const O = 1, V = Math.ceil(t / O);
for (let A = 0; A < V && (_ = Math.abs(w) > y, !(!_ && (h = Math.abs(m - E) <= p, h))); ++A) {
x && (R = E == m || E > m == k, R && (w = -w * C, E = m));
const M = -a.tension * 1e-6 * (E - m), N = -a.friction * 1e-3 * w, T = (M + N) / a.mass;
w = w + T * O, E = E + w * O;
}
}
else {
let y = 1;
a.duration > 0 && (this._memoizedDuration !== a.duration && (this._memoizedDuration = a.duration, f.durationProgress > 0 && (f.elapsedTime = a.duration * f.durationProgress, b = f.elapsedTime += t)), y = (a.progress || 0) + b / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, f.durationProgress = y), E = g + a.easing(y) * (m - g), w = (E - f.lastPosition) / t, h = y == 1;
}
f.lastVelocity = w, Number.isNaN(E) && (console.warn("Got NaN while animating:", this), h = !0);
}
l && !l[d].done && (h = !1), h ? f.done = !0 : n = !1, f.setValue(E, a.round) && (r = !0);
});
const c = It(this), u = c.getValue();
if (n) {
const f = Qe(i.to);
(u !== f || r) && !a.decay ? (c.setValue(f), this._onChange(f)) : r && a.decay && this._onChange(u), this._stop();
} else
r && this._onChange(u);
}
set(t) {
return ie.batchedUpdates(() => {
this._stop(), this._focus(t), this._set(t);
}), this;
}
pause() {
this._update({
pause: !0
});
}
resume() {
this._update({
pause: !1
});
}
finish() {
if (Jt(this)) {
const {
to: t,
config: n
} = this.animation;
ie.batchedUpdates(() => {
this._onStart(), n.decay || this._set(t, !1), this._stop();
});
}
return this;
}
update(t) {
return (this.queue || (this.queue = [])).push(t), this;
}
start(t, n) {
let r;
return K.und(t) ? (r = this.queue || [], this.queue = []) : r = [K.obj(t) ? t : Le({}, n, {
to: t
})], Promise.all(r.map((i) => this._update(i))).then((i) => Pl(this, i));
}
stop(t) {
const {
to: n
} = this.animation;
return this._focus(this.get()), ki(this._state, t && this._lastCallId), ie.batchedUpdates(() => this._stop(n, t)), this;
}
reset() {
this._update({
reset: !0
});
}
eventObserved(t) {
t.type == "change" ? this._start() : t.type == "priority" && (this.priority = t.priority + 1);
}
_prepareNode(t) {
const n = this.key || "";
let {
to: r,
from: i
} = t;
r = K.obj(r) ? r[n] : r, (r == null || ws(r)) && (r = void 0), i = K.obj(i) ? i[n] : i, i == null && (i = void 0);
const a = {
to: r,
from: i
};
return Uo(this) || (t.reverse && ([r, i] = [i, r]), i = Qe(i), K.und(i) ? It(this) || this._set(r) : this._set(i)), a;
}
_update(t, n) {
let r = Le({}, t);
const {
key: i,
defaultProps: a
} = this;
r.default && Object.assign(a, Nl(r, (c, u) => /^on/.test(u) ? Cd(c, i) : c)), lu(this, r, "onProps"), Yr(this, "onProps", r, this);
const o = this._prepareNode(r);
if (Object.isFrozen(this))
throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");
const l = this._state;
return $d(++this._lastCallId, {
key: i,
props: r,
defaultProps: a,
state: l,
actions: {
pause: () => {
zr(this) || (ou(this, !0), si(l.pauseQueue), Yr(this, "onPause", $t(this, Kr(this, this.animation.to)), this));
},
resume: () => {
zr(this) && (ou(this, !1), Jt(this) && this._resume(), si(l.resumeQueue), Yr(this, "onResume", $t(this, Kr(this, this.animation.to)), this));
},
start: this._merge.bind(this, o)
}
}).then((c) => {
if (r.loop && c.finished && !(n && c.noop)) {
const u = Fd(r);
if (u)
return this._update(u, !0);
}
return c;
});
}
_merge(t, n, r) {
if (n.cancel)
return this.stop(!0), r(wr(this));
const i = !K.und(t.to), a = !K.und(t.from);
if (i || a)
if (n.callId > this._lastToId)
this._lastToId = n.callId;
else
return r(wr(this));
const {
key: o,
defaultProps: l,
animation: c
} = this, {
to: u,
from: f
} = c;
let {
to: d = u,
from: m = f
} = t;
a && !i && (!n.default || K.und(d)) && (d = m), n.reverse && ([d, m] = [m, d]);
const h = !Ut(m, f);
h && (c.from = m), m = Qe(m);
const E = !Ut(d, u);
E && this._focus(d);
const b = ws(n.to), {
config: g
} = c, {
decay: v,
velocity: w
} = g;
(i || a) && (g.velocity = 0), n.config && !b && I2(g, Ln(n.config, o), n.config !== l.config ? Ln(l.config, o) : void 0);
let p = It(this);
if (!p || K.und(d))
return r($t(this, !0));
const y = K.und(n.reset) ? a && !n.default : !K.und(m) && mi(n.reset, o), C = y ? m : this.get(), x = xi(d), k = K.num(x) || K.arr(x) || ho(x), _ = !b && (!k || mi(l.immediate || n.immediate, o));
if (E) {
const A = Es(d);
if (A !== p.constructor)
if (_)
p = this._set(x);
else
throw Error(`Cannot animate between ${p.constructor.name} and ${A.name}, as the "to" prop suggests`);
}
const R = p.constructor;
let O = dt(d), V = !1;
if (!O) {
const A = y || !Uo(this) && h;
(E || A) && (V = Ut(xi(C), x), O = !V), (!Ut(c.immediate, _) && !_ || !Ut(g.decay, v) || !Ut(g.velocity, w)) && (O = !0);
}
if (V && Jt(this) && (c.changed && !y ? O = !0 : O || this._stop(u)), !b && ((O || dt(u)) && (c.values = p.getPayload(), c.toValues = dt(d) ? null : R == Sr ? [1] : it(x)), c.immediate != _ && (c.immediate = _, !_ && !y && this._set(u)), O)) {
const {
onRest: A
} = c;
ce(B2, (N) => lu(this, n, N));
const M = $t(this, Kr(this, u));
si(this._pendingCalls, M), this._pendingCalls.add(r), c.changed && ie.batchedUpdates(() => {
c.changed = !y, A == null || A(M, this), y ? Ln(l.onRest, M) : c.onStart == null || c.onStart(M, this);
});
}
y && this._set(C), b ? r(Sd(n.to, n, this._state, this)) : O ? this._start() : Jt(this) && !E ? this._pendingCalls.add(r) : r(_d(C));
}
_focus(t) {
const n = this.animation;
t !== n.to && (Yc(this) && this._detach(), n.to = t, Yc(this) && this._attach());
}
_attach() {
let t = 0;
const {
to: n
} = this.animation;
dt(n) && (Ir(n, this), xs(n) && (t = n.priority + 1)), this.priority = t;
}
_detach() {
const {
to: t
} = this.animation;
dt(t) && wi(t, this);
}
_set(t, n = !0) {
const r = Qe(t);
if (!K.und(r)) {
const i = It(this);
if (!i || !Ut(r, i.getValue())) {
const a = Es(r);
!i || i.constructor != a ? Fl(this, a.create(r)) : i.setValue(r), i && ie.batchedUpdates(() => {
this._onChange(r, n);
});
}
}
return It(this);
}
_onStart() {
const t = this.animation;
t.changed || (t.changed = !0, Yr(this, "onStart", $t(this, Kr(this, t.to)), this));
}
_onChange(t, n) {
n || (this._onStart(), Ln(this.animation.onChange, t, this)), Ln(this.defaultProps.onChange, t, this), super._onChange(t, n);
}
_start() {
const t = this.animation;
It(this).reset(Qe(t.to)), t.immediate || (t.fromValues = t.values.map((n) => n.lastPosition)), Jt(this) || (au(this, !0), zr(this) || this._resume());
}
_resume() {
gt.skipAnimation ? this.finish() : uo.start(this);
}
_stop(t, n) {
if (Jt(this)) {
au(this, !1);
const r = this.animation;
ce(r.values, (a) => {
a.done = !0;
}), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), Ei(this, {
type: "idle",
parent: this
});
const i = n ? wr(this.get()) : $t(this.get(), Kr(this, t ?? r.to));
si(this._pendingCalls, i), r.changed && (r.changed = !1, Yr(this, "onRest", i, this));
}
}
}
function Kr(e, t) {
const n = xi(t), r = xi(e.get());
return Ut(r, n);
}
function Fd(e, t = e.loop, n = e.to) {
let r = Ln(t);
if (r) {
const i = r !== !0 && kd(r), a = (i || e).reverse, o = !i || i.reset;
return $i(Le({}, e, {
loop: t,
default: !1,
pause: void 0,
to: !a || ws(n) ? n : void 0,
from: o ? e.from : void 0,
reset: o
}, i));
}
}
function $i(e) {
const {
to: t,
from: n
} = e = kd(e), r = /* @__PURE__ */ new Set();
return K.obj(t) && su(t, r), K.obj(n) && su(n, r), e.keys = r.size ? Array.from(r) : null, e;
}
function j2(e) {
const t = $i(e);
return K.und(t.default) && (t.default = Nl(t)), t;
}
function su(e, t) {
Vt(e, (n, r) => n != null && t.add(r));
}
const B2 = ["onStart", "onRest", "onChange", "onPause", "onResume"];
function lu(e, t, n) {
e.animation[n] = t[n] !== xd(t, n) ? Cd(t[n], e.key) : void 0;
}
function Yr(e, t, ...n) {
var r, i, a, o;
(r = (i = e.animation)[t]) == null || r.call(i, ...n), (a = (o = e.defaultProps)[t]) == null || a.call(o, ...n);
}
const W2 = ["onStart", "onChange", "onRest"];
let Z2 = 1, q2 = class {
constructor(t, n) {
this.id = Z2++, this.springs = {}, this.queue = [], this.ref = void 0, this._flush = void 0, this._initialProps = void 0, this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._item = void 0, this._state = {
paused: !1,
pauseQueue: /* @__PURE__ */ new Set(),
resumeQueue: /* @__PURE__ */ new Set(),
timeouts: /* @__PURE__ */ new Set()
}, this._events = {
onStart: /* @__PURE__ */ new Map(),
onChange: /* @__PURE__ */ new Map(),
onRest: /* @__PURE__ */ new Map()
}, this._onFrame = this._onFrame.bind(this), n && (this._flush = n), t && this.start(Le({
default: !0
}, t));
}
get idle() {
return !this._state.asyncTo && Object.values(this.springs).every((t) => t.idle && !t.isDelayed && !t.isPaused);
}
get item() {
return this._item;
}
set item(t) {
this._item = t;
}
get() {
const t = {};
return this.each((n, r) => t[r] = n.get()), t;
}
set(t) {
for (const n in t) {
const r = t[n];
K.und(r) || this.springs[n].set(r);
}
}
update(t) {
return t && this.queue.push($i(t)), this;
}
start(t) {
let {
queue: n
} = this;
return t ? n = it(t).map($i) : this.queue = [], this._flush ? this._flush(this, n) : (Ad(this, n), _s(this, n));
}
stop(t, n) {
if (t !== !!t && (n = t), n) {
const r = this.springs;
ce(it(n), (i) => r[i].stop(!!t));
} else
ki(this._state, this._lastAsyncId), this.each((r) => r.stop(!!t));
return this;
}
pause(t) {
if (K.und(t))
this.start({
pause: !0
});
else {
const n = this.springs;
ce(it(t), (r) => n[r].pause());
}
return this;
}
resume(t) {
if (K.und(t))
this.start({
pause: !1
});
else {
const n = this.springs;
ce(it(t), (r) => n[r].resume());
}
return this;
}
each(t) {
Vt(this.springs, t);
}
_onFrame() {
const {
onStart: t,
onChange: n,
onRest: r
} = this._events, i = this._active.size > 0, a = this._changed.size > 0;
(i && !this._started || a && !this._started) && (this._started = !0, fi(t, ([c, u]) => {
u.value = this.get(), c(u, this, this._item);
}));
const o = !i && this._started, l = a || o && r.size ? this.get() : null;
a && n.size && fi(n, ([c, u]) => {
u.value = l, c(u, this, this._item);
}), o && (this._started = !1, fi(r, ([c, u]) => {
u.value = l, c(u, this, this._item);
}));
}
eventObserved(t) {
if (t.type == "change")
this._changed.add(t.parent), t.idle || this._active.add(t.parent);
else if (t.type == "idle")
this._active.delete(t.parent);
else
return;
ie.onFrame(this._onFrame);
}
};
function _s(e, t) {
return Promise.all(t.map((n) => Rd(e, n))).then((n) => Pl(e, n));
}
async function Rd(e, t, n) {
const {
keys: r,
to: i,
from: a,
loop: o,
onRest: l,
onResolve: c
} = t, u = K.obj(t.default) && t.default;
o && (t.loop = !1), i === !1 && (t.to = null), a === !1 && (t.from = null);
const f = K.arr(i) || K.fun(i) ? i : void 0;
f ? (t.to = void 0, t.onRest = void 0, u && (u.onRest = void 0)) : ce(W2, (b) => {
const g = t[b];
if (K.fun(g)) {
const v = e._events[b];
t[b] = ({
finished: w,
cancelled: p
}) => {
const y = v.get(g);
y ? (w || (y.finished = !1), p && (y.cancelled = !0)) : v.set(g, {
value: null,
finished: w || !1,
cancelled: p || !1
});
}, u && (u[b] = t[b]);
}
});
const d = e._state;
t.pause === !d.paused ? (d.paused = t.pause, si(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0);
const m = (r || Object.keys(e.springs)).map((b) => e.springs[b].start(t)), h = t.cancel === !0 || xd(t, "cancel") === !0;
(f || h && d.asyncId) && m.push($d(++e._lastAsyncId, {
props: t,
state: d,
actions: {
pause: gs,
resume: gs,
start(b, g) {
h ? (ki(d, e._lastAsyncId), g(wr(e))) : (b.onRest = l, g(Sd(f, b, d, e)));
}
}
})), d.paused && await new Promise((b) => {
d.resumeQueue.add(b);
});
const E = Pl(e, await Promise.all(m));
if (o && E.finished && !(n && E.noop)) {
const b = Fd(t, o, i);
if (b)
return Ad(e, [b]), Rd(e, b, !0);
}
return c && ie.batchedUpdates(() => c(E, e, e.item)), E;
}
function cu(e, t) {
const n = Le({}, e.springs);
return t && ce(it(t), (r) => {
K.und(r.keys) && (r = $i(r)), K.obj(r.to) || (r = Le({}, r, {
to: void 0
})), Md(n, r, (i) => Pd(i));
}), Nd(e, n), n;
}
function Nd(e, t) {
Vt(t, (n, r) => {
e.springs[r] || (e.springs[r] = n, Ir(n, e));
});
}
function Pd(e, t) {
const n = new V2();
return n.key = e, t && Ir(n, t), n;
}
function Md(e, t, n) {
t.keys && ce(t.keys, (r) => {
(e[r] || (e[r] = n(r)))._prepareNode(t);
});
}
function Ad(e, t) {
ce(t, (n) => {
Md(e.springs, n, (r) => Pd(r, e));
});
}
function H2(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
return n;
}
const U2 = ["children"], go = (e) => {
let {
children: t
} = e, n = H2(e, U2);
const r = ot(Ha), i = n.pause || !!r.pause, a = n.immediate || !!r.immediate;
n = y2(() => ({
pause: i,
immediate: a
}), [i, a]);
const {
Provider: o
} = Ha;
return D.createElement(o, {
value: n
}, t);
}, Ha = z2(go, {});
go.Provider = Ha.Provider;
go.Consumer = Ha.Consumer;
function z2(e, t) {
return Object.assign(e, D.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
}
const K2 = () => {
const e = [], t = function(i) {
p2();
const a = [];
return ce(e, (o, l) => {
if (K.und(i))
a.push(o.start());
else {
const c = n(i, o, l);
c && a.push(o.start(c));
}
}), a;
};
t.current = e, t.add = function(r) {
e.includes(r) || e.push(r);
}, t.delete = function(r) {
const i = e.indexOf(r);
~i && e.splice(i, 1);
}, t.pause = function() {
return ce(e, (r) => r.pause(...arguments)), this;
}, t.resume = function() {
return ce(e, (r) => r.resume(...arguments)), this;
}, t.set = function(r) {
ce(e, (i) => i.set(r));
}, t.start = function(r) {
const i = [];
return ce(e, (a, o) => {
if (K.und(r))
i.push(a.start());
else {
const l = this._getProps(r, a, o);
l && i.push(a.start(l));
}
}), i;
}, t.stop = function() {
return ce(e, (r) => r.stop(...arguments)), this;
}, t.update = function(r) {
return ce(e, (i, a) => i.update(this._getProps(r, i, a))), this;
};
const n = function(i, a, o) {
return K.fun(i) ? i(o, a) : i;
};
return t._getProps = n, t;
};
function Y2(e, t, n) {
const r = K.fun(t) && t;
r && !n && (n = []);
const i = de(() => r || arguments.length == 3 ? K2() : void 0, []), a = W(0), o = bd(), l = de(() => ({
ctrls: [],
queue: [],
flush(v, w) {
const p = cu(v, w);
return a.current > 0 && !l.queue.length && !Object.keys(p).some((C) => !v.springs[C]) ? _s(v, w) : new Promise((C) => {
Nd(v, p), l.queue.push(() => {
C(_s(v, w));
}), o();
});
}
}), []), c = W([...l.ctrls]), u = [], f = Xc(e) || 0;
de(() => {
ce(c.current.slice(e, f), (v) => {
P2(v, i), v.stop(!0);
}), c.current.length = e, d(f, e);
}, [e]), de(() => {
d(0, Math.min(f, e));
}, n);
function d(v, w) {
for (let p = v; p < w; p++) {
const y = c.current[p] || (c.current[p] = new q2(null, l.flush)), C = r ? r(p, y) : t[p];
C && (u[p] = j2(C));
}
}
const m = c.current.map((v, w) => cu(v, u[w])), h = ot(go), E = Xc(h), b = h !== E && N2(h);
Ol(() => {
a.current++, l.ctrls = c.current;
const {
queue: v
} = l;
v.length && (l.queue = [], ce(v, (w) => w())), ce(c.current, (w, p) => {
i == null || i.add(w), b && w.start({
default: h
});
const y = u[p];
y && (M2(w, y.ref), w.ref ? w.queue.push(y) : w.start(y));
});
}), Ed(() => () => {
ce(l.ctrls, (v) => v.stop(!0));
});
const g = m.map((v) => Le({}, v));
return i ? [g, i] : g;
}
function Ve(e, t) {
const n = K.fun(e), [[r], i] = Y2(1, n ? e : [e], n ? t || [] : t);
return n || arguments.length == 2 ? [r, i] : r;
}
let uu;
(function(e) {
e.MOUNT = "mount", e.ENTER = "enter", e.UPDATE = "update", e.LEAVE = "leave";
})(uu || (uu = {}));
class Td extends Ml {
constructor(t, n) {
super(), this.key = void 0, this.idle = !0, this.calc = void 0, this._active = /* @__PURE__ */ new Set(), this.source = t, this.calc = bi(...n);
const r = this._get(), i = Es(r);
Fl(this, i.create(r));
}
advance(t) {
const n = this._get(), r = this.get();
Ut(n, r) || (It(this).setValue(n), this._onChange(n, this.idle)), !this.idle && fu(this._active) && zo(this);
}
_get() {
const t = K.arr(this.source) ? this.source.map(Qe) : it(Qe(this.source));
return this.calc(...t);
}
_start() {
this.idle && !fu(this._active) && (this.idle = !1, ce(vo(this), (t) => {
t.done = !1;
}), gt.skipAnimation ? (ie.batchedUpdates(() => this.advance()), zo(this)) : uo.start(this));
}
_attach() {
let t = 1;
ce(it(this.source), (n) => {
dt(n) && Ir(n, this), xs(n) && (n.idle || this._active.add(n), t = Math.max(t, n.priority + 1));
}), this.priority = t, this._start();
}
_detach() {
ce(it(this.source), (t) => {
dt(t) && wi(t, this);
}), this._active.clear(), zo(this);
}
eventObserved(t) {
t.type == "change" ? t.idle ? this.advance() : (this._active.add(t.parent), this._start()) : t.type == "idle" ? this._active.delete(t.parent) : t.type == "priority" && (this.priority = it(this.source).reduce((n, r) => Math.max(n, (xs(r) ? r.priority : 0) + 1), 0));
}
}
function G2(e) {
return e.idle !== !1;
}
function fu(e) {
return !e.size || Array.from(e).every(G2);
}
function zo(e) {
e.idle || (e.idle = !0, ce(vo(e), (t) => {
t.done = !0;
}), Ei(e, {
type: "idle",
parent: e
}));
}
const X2 = (e, ...t) => new Td(e, t);
gt.assign({
createStringInterpolator: gd,
to: (e, t) => new Td(e, t)
});
function Al(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
return n;
}
const Q2 = ["style", "children", "scrollTop", "scrollLeft", "viewBox"], Id = /^--/;
function J2(e, t) {
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !Id.test(e) && !(hi.hasOwnProperty(e) && hi[e]) ? t + "px" : ("" + t).trim();
}
const du = {};
function ep(e, t) {
if (!e.nodeType || !e.setAttribute)
return !1;
const n = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", r = t, {
style: i,
children: a,
scrollTop: o,
scrollLeft: l,
viewBox: c
} = r, u = Al(r, Q2), f = Object.values(u), d = Object.keys(u).map((m) => n || e.hasAttribute(m) ? m : du[m] || (du[m] = m.replace(/([A-Z])/g, (h) => "-" + h.toLowerCase())));
a !== void 0 && (e.textContent = a);
for (let m in i)
if (i.hasOwnProperty(m)) {
const h = J2(m, i[m]);
Id.test(m) ? e.style.setProperty(m, h) : e.style[m] = h;
}
d.forEach((m, h) => {
e.setAttribute(m, f[h]);
}), o !== void 0 && (e.scrollTop = o), l !== void 0 && (e.scrollLeft = l), c !== void 0 && e.setAttribute("viewBox", c);
}
let hi = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
};
const tp = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), np = ["Webkit", "Ms", "Moz", "O"];
hi = Object.keys(hi).reduce((e, t) => (np.forEach((n) => e[tp(n, t)] = e[t]), e), hi);
const rp = ["x", "y", "z"], ip = /^(matrix|translate|scale|rotate|skew)/, ap = /^(translate)/, op = /^(rotate|skew)/, Ko = (e, t) => K.num(e) && e !== 0 ? e + t : e, _a = (e, t) => K.arr(e) ? e.every((n) => _a(n, t)) : K.num(e) ? e === t : parseFloat(e) === t;
class sp extends po {
constructor(t) {
let {
x: n,
y: r,
z: i
} = t, a = Al(t, rp);
const o = [], l = [];
(n || r || i) && (o.push([n || 0, r || 0, i || 0]), l.push((c) => [`translate3d(${c.map((u) => Ko(u, "px")).join(",")})`, _a(c, 0)])), Vt(a, (c, u) => {
if (u === "transform")
o.push([c || ""]), l.push((f) => [f, f === ""]);
else if (ip.test(u)) {
if (delete a[u], K.und(c))
return;
const f = ap.test(u) ? "px" : op.test(u) ? "deg" : "";
o.push(it(c)), l.push(u === "rotate3d" ? ([d, m, h, E]) => [`rotate3d(${d},${m},${h},${Ko(E, f)})`, _a(E, 0)] : (d) => [`${u}(${d.map((m) => Ko(m, f)).join(",")})`, _a(d, u.startsWith("scale") ? 1 : 0)]);
}
}), o.length && (a.transform = new lp(o, l)), super(a);
}
}
class lp extends hd {
constructor(t, n) {
super(), this._value = null, this.inputs = t, this.transforms = n;
}
get() {
return this._value || (this._value = this._get());
}
_get() {
let t = "", n = !0;
return ce(this.inputs, (r, i) => {
const a = Qe(r[0]), [o, l] = this.transforms[i](K.arr(a) ? a : r.map(Qe));
t += " " + o, n = n && l;
}), n ? "none" : t;
}
observerAdded(t) {
t == 1 && ce(this.inputs, (n) => ce(n, (r) => dt(r) && Ir(r, this)));
}
observerRemoved(t) {
t == 0 && ce(this.inputs, (n) => ce(n, (r) => dt(r) && wi(r, this)));
}
eventObserved(t) {
t.type == "change" && (this._value = null), Ei(this, t);
}
}
const cp = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"], up = ["scrollTop", "scrollLeft"];
gt.assign({
batchedUpdates: Bf,
createStringInterpolator: gd,
colors: zv
});
const fp = _2(cp, {
applyAnimatedValues: ep,
createAnimatedStyle: (e) => new sp(e),
getComponentProps: (e) => Al(e, up)
}), xe = fp.animated;
function dp(e) {
return (typeof e == "function" ? e() : e) || document.body;
}
function Dr(e, t) {
if (Ar && e) {
const n = dp(e);
return Pm(t, n);
}
return t;
}
function mp(e) {
const t = W(e);
return e && (t.current = !0), !!t.current;
}
const Vr = (e) => yo(e.active, e.forceRender, e.destroyOnClose) ? e.children : null;
function yo(e, t, n) {
const r = mp(e);
return t || e ? !0 : r ? !n : !1;
}
const hp = {
click: "onClick",
touchstart: "onTouchStart"
};
function vn(e, t) {
const n = Object.assign({}, t.props);
for (const r of e) {
const i = hp[r];
n[i] = function(a) {
var o, l;
a.stopPropagation(), a.nativeEvent.stopImmediatePropagation(), (l = (o = t.props)[i]) === null || l === void 0 || l.call(o, a);
};
}
return s.cloneElement(t, n);
}
const Yo = "adm-mask", vp = {
default: 0.55,
thin: 0.35,
thick: 0.75
}, pp = {
black: "0, 0, 0",
white: "255, 255, 255"
}, gp = {
visible: !0,
destroyOnClose: !1,
forceRender: !1,
color: "black",
opacity: "default",
disableBodyScroll: !0,
getContainer: null,
stopPropagation: ["click"]
}, ji = (e) => {
const t = Y(gp, e), {
locale: n
} = fe(), r = W(null);
lo(r, t.visible && t.disableBodyScroll);
const i = de(() => {
var f;
const d = (f = vp[t.opacity]) !== null && f !== void 0 ? f : t.opacity, m = pp[t.color];
return m ? `rgba(${m}, ${d})` : t.color;
}, [t.color, t.opacity]), [a, o] = Q(t.visible), l = yl(), {
opacity: c
} = Ve({
opacity: t.visible ? 1 : 0,
config: {
precision: 0.01,
mass: 1,
tension: 250,
friction: 30,
clamp: !0
},
onStart: () => {
o(!0);
},
onRest: () => {
var f, d;
l.current || (o(t.visible), t.visible ? (f = t.afterShow) === null || f === void 0 || f.call(t) : (d = t.afterClose) === null || d === void 0 || d.call(t));
}
}), u = vn(t.stopPropagation, U(t, s.createElement(xe.div, {
className: Yo,
ref: r,
"aria-hidden": !0,
style: Object.assign(Object.assign({}, t.style), {
background: i,
opacity: c,
display: a ? void 0 : "none"
}),
onClick: (f) => {
var d;
f.target === f.currentTarget && ((d = t.onMaskClick) === null || d === void 0 || d.call(t, f));
}
}, t.onMaskClick && s.createElement("div", {
className: `${Yo}-aria-button`,
role: "button",
"aria-label": n.Mask.name,
onClick: t.onMaskClick
}), s.createElement("div", {
className: `${Yo}-content`
}, t.children))));
return s.createElement(Vr, {
active: a,
forceRender: t.forceRender,
destroyOnClose: t.destroyOnClose
}, Dr(t.getContainer, u));
};
function Ld(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "AddOutline-AddOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "AddOutline-add"
}, /* @__PURE__ */ D.createElement("rect", {
id: "AddOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
id: "AddOutline-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function yp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "CheckCircleFill-CheckCircleFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "CheckCircleFill-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "CheckCircleFill-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
id: "CheckCircleFill-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Dd(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "CheckOutline-CheckOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "CheckOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "CheckOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
id: "CheckOutline-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function bp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "ClockCircleFill-ClockCircleFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "ClockCircleFill-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "ClockCircleFill-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
id: "ClockCircleFill-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Tl(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "CloseCircleFill-CloseCircleFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "CloseCircleFill-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "CloseCircleFill-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
id: "CloseCircleFill-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function bo(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "CloseOutline-CloseOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "CloseOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "CloseOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
id: "CloseOutline-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Ep(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "DownFill-DownFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "DownFill-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "DownFill-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
id: "DownFill-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Vd(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "DownOutline-DownOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", null, /* @__PURE__ */ D.createElement("rect", {
id: "DownOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",
id: "DownOutline-down",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function wp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "ExclamationCircleFill-ExclamationCircleFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", null, /* @__PURE__ */ D.createElement("rect", {
id: "ExclamationCircleFill-矩形",
fill: "#D76060",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
id: "ExclamationCircleFill-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Cp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "InformationCircleFill-InformationCircleFill",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "InformationCircleFill-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "InformationCircleFill-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
id: "InformationCircleFill-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function xp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "LeftOutline-LeftOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "LeftOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "LeftOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
id: "LeftOutline-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function kp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "MinusOutline-MinusOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "MinusOutline-add"
}, /* @__PURE__ */ D.createElement("rect", {
id: "MinusOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
id: "MinusOutline-路径",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function $p(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "QuestionCircleOutline-QuestionCircleOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "QuestionCircleOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "QuestionCircleOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
id: "QuestionCircleOutline-形状",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function _p(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "RightOutline-RightOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "RightOutline-RightOutlined"
}, /* @__PURE__ */ D.createElement("rect", {
id: "RightOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",
id: "RightOutline-right",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Sp(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "SearchOutline-SearchOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "SearchOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "SearchOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
id: "SearchOutline-形状",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function Op(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "SoundOutline-SoundOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "SoundOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "SoundOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
id: "SoundOutline-形状",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
function mu(e) {
return /* @__PURE__ */ D.createElement("svg", Object.assign({
width: "1em",
height: "1em",
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, e, {
style: Object.assign({
verticalAlign: "-0.125em"
}, e.style),
className: ["antd-mobile-icon", e.className].filter(Boolean).join(" ")
}), /* @__PURE__ */ D.createElement("g", {
id: "TextDeletionOutline-TextDeletionOutline",
stroke: "none",
strokeWidth: 1,
fill: "none",
fillRule: "evenodd"
}, /* @__PURE__ */ D.createElement("g", {
id: "TextDeletionOutline-编组"
}, /* @__PURE__ */ D.createElement("rect", {
id: "TextDeletionOutline-矩形",
fill: "#FFFFFF",
opacity: 0,
x: 0,
y: 0,
width: 48,
height: 48
}), /* @__PURE__ */ D.createElement("path", {
d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
id: "TextDeletionOutline-形状结合",
fill: "currentColor",
fillRule: "nonzero"
}))));
}
const Il = {
closeOnMaskClick: !1,
closeIcon: s.createElement(bo, null),
destroyOnClose: !1,
disableBodyScroll: !0,
forceRender: !1,
getContainer: () => document.body,
mask: !0,
showCloseButton: !1,
stopPropagation: ["click"],
visible: !1
};
function jd(e) {
const [t, n] = Q(e);
return De(() => {
n(e);
}, [e]), t;
}
function Fp(e, t, n) {
return Math.max(t, Math.min(e, n));
}
const Ae = {
toVector(e, t) {
return e === void 0 && (e = t), Array.isArray(e) ? e : [e, e];
},
add(e, t) {
return [e[0] + t[0], e[1] + t[1]];
},
sub(e, t) {
return [e[0] - t[0], e[1] - t[1]];
},
addTo(e, t) {
e[0] += t[0], e[1] += t[1];
},
subTo(e, t) {
e[0] -= t[0], e[1] -= t[1];
}
};
function hu(e, t, n) {
return t === 0 || Math.abs(t) === 1 / 0 ? Math.pow(e, n * 5) : e * t * n / (t + n * e);
}
function vu(e, t, n, r = 0.15) {
return r === 0 ? Fp(e, t, n) : e < t ? -hu(t - e, n - t, r) + t : e > n ? +hu(e - n, n - t, r) + n : e;
}
function Rp(e, [t, n], [r, i]) {
const [[a, o], [l, c]] = e;
return [vu(t, a, o, r), vu(n, l, c, i)];
}
function Np(e, t) {
if (typeof e != "object" || e === null)
return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t || "default");
if (typeof r != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function Pp(e) {
var t = Np(e, "string");
return typeof t == "symbol" ? t : String(t);
}
function We(e, t, n) {
return t = Pp(t), t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function pu(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(e, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function _e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
t % 2 ? pu(Object(n), !0).forEach(function(r) {
We(e, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pu(Object(n)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return e;
}
const Bd = {
pointer: {
start: "down",
change: "move",
end: "up"
},
mouse: {
start: "down",
change: "move",
end: "up"
},
touch: {
start: "start",
change: "move",
end: "end"
},
gesture: {
start: "start",
change: "change",
end: "end"
}
};
function gu(e) {
return e ? e[0].toUpperCase() + e.slice(1) : "";
}
const Mp = ["enter", "leave"];
function Ap(e = !1, t) {
return e && !Mp.includes(t);
}
function Tp(e, t = "", n = !1) {
const r = Bd[e], i = r && r[t] || t;
return "on" + gu(e) + gu(i) + (Ap(n, i) ? "Capture" : "");
}
const Ip = ["gotpointercapture", "lostpointercapture"];
function Lp(e) {
let t = e.substring(2).toLowerCase();
const n = !!~t.indexOf("passive");
n && (t = t.replace("passive", ""));
const r = Ip.includes(t) ? "capturecapture" : "capture", i = !!~t.indexOf(r);
return i && (t = t.replace("capture", "")), {
device: t,
capture: i,
passive: n
};
}
function Dp(e, t = "") {
const n = Bd[e], r = n && n[t] || t;
return e + r;
}
function Eo(e) {
return "touches" in e;
}
function Wd(e) {
return Eo(e) ? "touch" : "pointerType" in e ? e.pointerType : "mouse";
}
function Vp(e) {
return Array.from(e.touches).filter((t) => {
var n, r;
return t.target === e.currentTarget || ((n = e.currentTarget) === null || n === void 0 || (r = n.contains) === null || r === void 0 ? void 0 : r.call(n, t.target));
});
}
function jp(e) {
return e.type === "touchend" || e.type === "touchcancel" ? e.changedTouches : e.targetTouches;
}
function Zd(e) {
return Eo(e) ? jp(e)[0] : e;
}
function Ss(e, t) {
try {
const n = t.clientX - e.clientX, r = t.clientY - e.clientY, i = (t.clientX + e.clientX) / 2, a = (t.clientY + e.clientY) / 2, o = Math.hypot(n, r);
return {
angle: -(Math.atan2(n, r) * 180) / Math.PI,
distance: o,
origin: [i, a]
};
} catch {
}
return null;
}
function Bp(e) {
return Vp(e).map((t) => t.identifier);
}
function yu(e, t) {
const [n, r] = Array.from(e.touches).filter((i) => t.includes(i.identifier));
return Ss(n, r);
}
function Go(e) {
const t = Zd(e);
return Eo(e) ? t.identifier : t.pointerId;
}
function bu(e) {
const t = Zd(e);
return [t.clientX, t.clientY];
}
const Eu = 40, wu = 800;
function qd(e) {
let {
deltaX: t,
deltaY: n,
deltaMode: r
} = e;
return r === 1 ? (t *= Eu, n *= Eu) : r === 2 && (t *= wu, n *= wu), [t, n];
}
function Wp(e) {
const t = {};
if ("buttons" in e && (t.buttons = e.buttons), "shiftKey" in e) {
const {
shiftKey: n,
altKey: r,
metaKey: i,
ctrlKey: a
} = e;
Object.assign(t, {
shiftKey: n,
altKey: r,
metaKey: i,
ctrlKey: a
});
}
return t;
}
function Ua(e, ...t) {
return typeof e == "function" ? e(...t) : e;
}
function Zp() {
}
function qp(...e) {
return e.length === 0 ? Zp : e.length === 1 ? e[0] : function() {
let t;
for (const n of e)
t = n.apply(this, arguments) || t;
return t;
};
}
function Cu(e, t) {
return Object.assign({}, t, e || {});
}
const Hp = 32;
class Hd {
constructor(t, n, r) {
this.ctrl = t, this.args = n, this.key = r, this.state || (this.state = {}, this.computeValues([0, 0]), this.computeInitial(), this.init && this.init(), this.reset());
}
get state() {
return this.ctrl.state[this.key];
}
set state(t) {
this.ctrl.state[this.key] = t;
}
get shared() {
return this.ctrl.state.shared;
}
get eventStore() {
return this.ctrl.gestureEventStores[this.key];
}
get timeoutStore() {
return this.ctrl.gestureTimeoutStores[this.key];
}
get config() {
return this.ctrl.config[this.key];
}
get sharedConfig() {
return this.ctrl.config.shared;
}
get handler() {
return this.ctrl.handlers[this.key];
}
reset() {
const {
state: t,
shared: n,
ingKey: r,
args: i
} = this;
n[r] = t._active = t.active = t._blocked = t._force = !1, t._step = [!1, !1], t.intentional = !1, t._movement = [0, 0], t._distance = [0, 0], t._direction = [0, 0], t._delta = [0, 0], t._bounds = [[-1 / 0, 1 / 0], [-1 / 0, 1 / 0]], t.args = i, t.axis = void 0, t.memo = void 0, t.elapsedTime = t.timeDelta = 0, t.direction = [0, 0], t.distance = [0, 0], t.overflow = [0, 0], t._movementBound = [!1, !1], t.velocity = [0, 0], t.movement = [0, 0], t.delta = [0, 0], t.timeStamp = 0;
}
start(t) {
const n = this.state, r = this.config;
n._active || (this.reset(), this.computeInitial(), n._active = !0, n.target = t.target, n.currentTarget = t.currentTarget, n.lastOffset = r.from ? Ua(r.from, n) : n.offset, n.offset = n.lastOffset, n.startTime = n.timeStamp = t.timeStamp);
}
computeValues(t) {
const n = this.state;
n._values = t, n.values = this.config.transform(t);
}
computeInitial() {
const t = this.state;
t._initial = t._values, t.initial = t.values;
}
compute(t) {
const {
state: n,
config: r,
shared: i
} = this;
n.args = this.args;
let a = 0;
if (t && (n.event = t, r.preventDefault && t.cancelable && n.event.preventDefault(), n.type = t.type, i.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, i.locked = !!document.pointerLockElement, Object.assign(i, Wp(t)), i.down = i.pressed = i.buttons % 2 === 1 || i.touches > 0, a = t.timeStamp - n.timeStamp, n.timeStamp = t.timeStamp, n.elapsedTime = n.timeStamp - n.startTime), n._active) {
const x = n._delta.map(Math.abs);
Ae.addTo(n._distance, x);
}
this.axisIntent && this.axisIntent(t);
const [o, l] = n._movement, [c, u] = r.threshold, {
_step: f,
values: d
} = n;
if (r.hasCustomTransform ? (f[0] === !1 && (f[0] = Math.abs(o) >= c && d[0]), f[1] === !1 && (f[1] = Math.abs(l) >= u && d[1])) : (f[0] === !1 && (f[0] = Math.abs(o) >= c && Math.sign(o) * c), f[1] === !1 && (f[1] = Math.abs(l) >= u && Math.sign(l) * u)), n.intentional = f[0] !== !1 || f[1] !== !1, !n.intentional)
return;
const m = [0, 0];
if (r.hasCustomTransform) {
const [x, k] = d;
m[0] = f[0] !== !1 ? x - f[0] : 0, m[1] = f[1] !== !1 ? k - f[1] : 0;
} else
m[0] = f[0] !== !1 ? o - f[0] : 0, m[1] = f[1] !== !1 ? l - f[1] : 0;
this.restrictToAxis && !n._blocked && this.restrictToAxis(m);
const h = n.offset, E = n._active && !n._blocked || n.active;
E && (n.first = n._active && !n.active, n.last = !n._active && n.active, n.active = i[this.ingKey] = n._active, t && (n.first && ("bounds" in r && (n._bounds = Ua(r.bounds, n)), this.setup && this.setup()), n.movement = m, this.computeOffset()));
const [b, g] = n.offset, [[v, w], [p, y]] = n._bounds;
n.overflow = [b < v ? -1 : b > w ? 1 : 0, g < p ? -1 : g > y ? 1 : 0], n._movementBound[0] = n.overflow[0] ? n._movementBound[0] === !1 ? n._movement[0] : n._movementBound[0] : !1, n._movementBound[1] = n.overflow[1] ? n._movementBound[1] === !1 ? n._movement[1] : n._movementBound[1] : !1;
const C = n._active ? r.rubberband || [0, 0] : [0, 0];
if (n.offset = Rp(n._bounds, n.offset, C), n.delta = Ae.sub(n.offset, h), this.computeMovement(), E && (!n.last || a > Hp)) {
n.delta = Ae.sub(n.offset, h);
const x = n.delta.map(Math.abs);
Ae.addTo(n.distance, x), n.direction = n.delta.map(Math.sign), n._direction = n._delta.map(Math.sign), !n.first && a > 0 && (n.velocity = [x[0] / a, x[1] / a], n.timeDelta = a);
}
}
emit() {
const t = this.state, n = this.shared, r = this.config;
if (t._active || this.clean(), (t._blocked || !t.intentional) && !t._force && !r.triggerAllEvents)
return;
const i = this.handler(_e(_e(_e({}, n), t), {}, {
[this.aliasKey]: t.values
}));
i !== void 0 && (t.memo = i);
}
clean() {
this.eventStore.clean(), this.timeoutStore.clean();
}
}
function Up([e, t], n) {
const r = Math.abs(e), i = Math.abs(t);
if (r > i && r > n)
return "x";
if (i > r && i > n)
return "y";
}
class Ud extends Hd {
constructor(...t) {
super(...t), We(this, "aliasKey", "xy");
}
reset() {
super.reset(), this.state.axis = void 0;
}
init() {
this.state.offset = [0, 0], this.state.lastOffset = [0, 0];
}
computeOffset() {
this.state.offset = Ae.add(this.state.lastOffset, this.state.movement);
}
computeMovement() {
this.state.movement = Ae.sub(this.state.offset, this.state.lastOffset);
}
axisIntent(t) {
const n = this.state, r = this.config;
if (!n.axis && t) {
const i = typeof r.axisThreshold == "object" ? r.axisThreshold[Wd(t)] : r.axisThreshold;
n.axis = Up(n._movement, i);
}
n._blocked = (r.lockDirection || !!r.axis) && !n.axis || !!r.axis && r.axis !== n.axis;
}
restrictToAxis(t) {
if (this.config.axis || this.config.lockDirection)
switch (this.state.axis) {
case "x":
t[1] = 0;
break;
case "y":
t[0] = 0;
break;
}
}
}
const zp = (e) => e, xu = 0.15, zd = {
enabled(e = !0) {
return e;
},
eventOptions(e, t, n) {
return _e(_e({}, n.shared.eventOptions), e);
},
preventDefault(e = !1) {
return e;
},
triggerAllEvents(e = !1) {
return e;
},
rubberband(e = 0) {
switch (e) {
case !0:
return [xu, xu];
case !1:
return [0, 0];
default:
return Ae.toVector(e);
}
},
from(e) {
if (typeof e == "function")
return e;
if (e != null)
return Ae.toVector(e);
},
transform(e, t, n) {
const r = e || n.shared.transform;
return this.hasCustomTransform = !!r, r || zp;
},
threshold(e) {
return Ae.toVector(e, 0);
}
}, Kp = 0, jr = _e(_e({}, zd), {}, {
axis(e, t, {
axis: n
}) {
if (this.lockDirection = n === "lock", !this.lockDirection)
return n;
},
axisThreshold(e = Kp) {
return e;
},
bounds(e = {}) {
if (typeof e == "function")
return (a) => jr.bounds(e(a));
if ("current" in e)
return () => e.current;
if (typeof HTMLElement == "function" && e instanceof HTMLElement)
return e;
const {
left: t = -1 / 0,
right: n = 1 / 0,
top: r = -1 / 0,
bottom: i = 1 / 0
} = e;
return [[t, n], [r, i]];
}
}), ku = {
ArrowRight: (e, t = 1) => [e * t, 0],
ArrowLeft: (e, t = 1) => [-1 * e * t, 0],
ArrowUp: (e, t = 1) => [0, -1 * e * t],
ArrowDown: (e, t = 1) => [0, e * t]
};
class Yp extends Ud {
constructor(...t) {
super(...t), We(this, "ingKey", "dragging");
}
reset() {
super.reset();
const t = this.state;
t._pointerId = void 0, t._pointerActive = !1, t._keyboardActive = !1, t._preventScroll = !1, t._delayed = !1, t.swipe = [0, 0], t.tap = !1, t.canceled = !1, t.cancel = this.cancel.bind(this);
}
setup() {
const t = this.state;
if (t._bounds instanceof HTMLElement) {
const n = t._bounds.getBoundingClientRect(), r = t.currentTarget.getBoundingClientRect(), i = {
left: n.left - r.left + t.offset[0],
right: n.right - r.right + t.offset[0],
top: n.top - r.top + t.offset[1],
bottom: n.bottom - r.bottom + t.offset[1]
};
t._bounds = jr.bounds(i);
}
}
cancel() {
const t = this.state;
t.canceled || (t.canceled = !0, t._active = !1, setTimeout(() => {
this.compute(), this.emit();
}, 0));
}
setActive() {
this.state._active = this.state._pointerActive || this.state._keyboardActive;
}
clean() {
this.pointerClean(), this.state._pointerActive = !1, this.state._keyboardActive = !1, super.clean();
}
pointerDown(t) {
const n = this.config, r = this.state;
if (t.buttons != null && (Array.isArray(n.pointerButtons) ? !n.pointerButtons.includes(t.buttons) : n.pointerButtons !== -1 && n.pointerButtons !== t.buttons))
return;
const i = this.ctrl.setEventIds(t);
n.pointerCapture && t.target.setPointerCapture(t.pointerId), !(i && i.size > 1 && r._pointerActive) && (this.start(t), this.setupPointer(t), r._pointerId = Go(t), r._pointerActive = !0, this.computeValues(bu(t)), this.computeInitial(), n.preventScrollAxis && Wd(t) !== "mouse" ? (r._active = !1, this.setupScrollPrevention(t)) : n.delay > 0 ? (this.setupDelayTrigger(t), n.triggerAllEvents && (this.compute(t), this.emit())) : this.startPointerDrag(t));
}
startPointerDrag(t) {
const n = this.state;
n._active = !0, n._preventScroll = !0, n._delayed = !1, this.compute(t), this.emit();
}
pointerMove(t) {
const n = this.state, r = this.config;
if (!n._pointerActive)
return;
const i = Go(t);
if (n._pointerId !== void 0 && i !== n._pointerId)
return;
const a = bu(t);
if (document.pointerLockElement === t.target ? n._delta = [t.movementX, t.movementY] : (n._delta = Ae.sub(a, n._values), this.computeValues(a)), Ae.addTo(n._movement, n._delta), this.compute(t), n._delayed && n.intentional) {
this.timeoutStore.remove("dragDelay"), n.active = !1, this.startPointerDrag(t);
return;
}
if (r.preventScrollAxis && !n._preventScroll)
if (n.axis)
if (n.axis === r.preventScrollAxis || r.preventScrollAxis === "xy") {
n._active = !1, this.clean();
return;
} else {
this.timeoutStore.remove("startPointerDrag"), this.startPointerDrag(t);
return;
}
else
return;
this.emit();
}
pointerUp(t) {
this.ctrl.setEventIds(t);
try {
this.config.pointerCapture && t.target.hasPointerCapture(t.pointerId) && t.target.releasePointerCapture(t.pointerId);
} catch {
}
const n = this.state, r = this.config;
if (!n._active || !n._pointerActive)
return;
const i = Go(t);
if (n._pointerId !== void 0 && i !== n._pointerId)
return;
this.state._pointerActive = !1, this.setActive(), this.compute(t);
const [a, o] = n._distance;
if (n.tap = a <= r.tapsThreshold && o <= r.tapsThreshold, n.tap && r.filterTaps)
n._force = !0;
else {
const [l, c] = n._delta, [u, f] = n._movement, [d, m] = r.swipe.velocity, [h, E] = r.swipe.distance, b = r.swipe.duration;
if (n.elapsedTime < b) {
const g = Math.abs(l / n.timeDelta), v = Math.abs(c / n.timeDelta);
g > d && Math.abs(u) > h && (n.swipe[0] = Math.sign(l)), v > m && Math.abs(f) > E && (n.swipe[1] = Math.sign(c));
}
}
this.emit();
}
pointerClick(t) {
!this.state.tap && t.detail > 0 && (t.preventDefault(), t.stopPropagation());
}
setupPointer(t) {
const n = this.config, r = n.device;
n.pointerLock && t.currentTarget.requestPointerLock(), n.pointerCapture || (this.eventStore.add(this.sharedConfig.window, r, "change", this.pointerMove.bind(this)), this.eventStore.add(this.sharedConfig.window, r, "end", this.pointerUp.bind(this)), this.eventStore.add(this.sharedConfig.window, r, "cancel", this.pointerUp.bind(this)));
}
pointerClean() {
this.config.pointerLock && document.pointerLockElement === this.state.currentTarget && document.exitPointerLock();
}
preventScroll(t) {
this.state._preventScroll && t.cancelable && t.preventDefault();
}
setupScrollPrevention(t) {
this.state._preventScroll = !1, Gp(t);
const n = this.eventStore.add(this.sharedConfig.window, "touch", "change", this.preventScroll.bind(this), {
passive: !1
});
this.eventStore.add(this.sharedConfig.window, "touch", "end", n), this.eventStore.add(this.sharedConfig.window, "touch", "cancel", n), this.timeoutStore.add("startPointerDrag", this.startPointerDrag.bind(this), this.config.preventScrollDelay, t);
}
setupDelayTrigger(t) {
this.state._delayed = !0, this.timeoutStore.add("dragDelay", () => {
this.state._step = [0, 0], this.startPointerDrag(t);
}, this.config.delay);
}
keyDown(t) {
const n = ku[t.key];
if (n) {
const r = this.state, i = t.shiftKey ? 10 : t.altKey ? 0.1 : 1;
this.start(t), r._delta = n(this.config.keyboardDisplacement, i), r._keyboardActive = !0, Ae.addTo(r._movement, r._delta), this.compute(t), this.emit();
}
}
keyUp(t) {
t.key in ku && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit());
}
bind(t) {
const n = this.config.device;
t(n, "start", this.pointerDown.bind(this)), this.config.pointerCapture && (t(n, "change", this.pointerMove.bind(this)), t(n, "end", this.pointerUp.bind(this)), t(n, "cancel", this.pointerUp.bind(this)), t("lostPointerCapture", "", this.pointerUp.bind(this))), this.config.keys && (t("key", "down", this.keyDown.bind(this)), t("key", "up", this.keyUp.bind(this))), this.config.filterTaps && t("click", "", this.pointerClick.bind(this), {
capture: !0,
passive: !1
});
}
}
function Gp(e) {
"persist" in e && typeof e.persist == "function" && e.persist();
}
const Bi = typeof window < "u" && window.document && window.document.createElement;
function Kd() {
return Bi && "ontouchstart" in window;
}
function Xp() {
return Kd() || Bi && window.navigator.maxTouchPoints > 1;
}
function Qp() {
return Bi && "onpointerdown" in window;
}
function Jp() {
return Bi && "exitPointerLock" in window.document;
}
function e3() {
try {
return "constructor" in GestureEvent;
} catch {
return !1;
}
}
const mt = {
isBrowser: Bi,
gesture: e3(),
touch: Kd(),
touchscreen: Xp(),
pointer: Qp(),
pointerLock: Jp()
}, t3 = 250, n3 = 180, r3 = 0.5, i3 = 50, a3 = 250, o3 = 10, $u = {
mouse: 0,
touch: 0,
pen: 8
}, s3 = _e(_e({}, jr), {}, {
device(e, t, {
pointer: {
touch: n = !1,
lock: r = !1,
mouse: i = !1
} = {}
}) {
return this.pointerLock = r && mt.pointerLock, mt.touch && n ? "touch" : this.pointerLock ? "mouse" : mt.pointer && !i ? "pointer" : mt.touch ? "touch" : "mouse";
},
preventScrollAxis(e, t, {
preventScroll: n
}) {
if (this.preventScrollDelay = typeof n == "number" ? n : n || n === void 0 && e ? t3 : void 0, !(!mt.touchscreen || n === !1))
return e || (n !== void 0 ? "y" : void 0);
},
pointerCapture(e, t, {
pointer: {
capture: n = !0,
buttons: r = 1,
keys: i = !0
} = {}
}) {
return this.pointerButtons = r, this.keys = i, !this.pointerLock && this.device === "pointer" && n;
},
threshold(e, t, {
filterTaps: n = !1,
tapsThreshold: r = 3,
axis: i = void 0
}) {
const a = Ae.toVector(e, n ? r : i ? 1 : 0);
return this.filterTaps = n, this.tapsThreshold = r, a;
},
swipe({
velocity: e = r3,
distance: t = i3,
duration: n = a3
} = {}) {
return {
velocity: this.transform(Ae.toVector(e)),
distance: this.transform(Ae.toVector(t)),
duration: n
};
},
delay(e = 0) {
switch (e) {
case !0:
return n3;
case !1:
return 0;
default:
return e;
}
},
axisThreshold(e) {
return e ? _e(_e({}, $u), e) : $u;
},
keyboardDisplacement(e = o3) {
return e;
}
});
function Yd(e) {
const [t, n] = e.overflow, [r, i] = e._delta, [a, o] = e._direction;
(t < 0 && r > 0 && a < 0 || t > 0 && r < 0 && a > 0) && (e._movement[0] = e._movementBound[0]), (n < 0 && i > 0 && o < 0 || n > 0 && i < 0 && o > 0) && (e._movement[1] = e._movementBound[1]);
}
const l3 = 30, c3 = 100;
class u3 extends Hd {
constructor(...t) {
super(...t), We(this, "ingKey", "pinching"), We(this, "aliasKey", "da");
}
init() {
this.state.offset = [1, 0], this.state.lastOffset = [1, 0], this.state._pointerEvents = /* @__PURE__ */ new Map();
}
reset() {
super.reset();
const t = this.state;
t._touchIds = [], t.canceled = !1, t.cancel = this.cancel.bind(this), t.turns = 0;
}
computeOffset() {
const {
type: t,
movement: n,
lastOffset: r
} = this.state;
t === "wheel" ? this.state.offset = Ae.add(n, r) : this.state.offset = [(1 + n[0]) * r[0], n[1] + r[1]];
}
computeMovement() {
const {
offset: t,
lastOffset: n
} = this.state;
this.state.movement = [t[0] / n[0], t[1] - n[1]];
}
axisIntent() {
const t = this.state, [n, r] = t._movement;
if (!t.axis) {
const i = Math.abs(n) * l3 - Math.abs(r);
i < 0 ? t.axis = "angle" : i > 0 && (t.axis = "scale");
}
}
restrictToAxis(t) {
this.config.lockDirection && (this.state.axis === "scale" ? t[1] = 0 : this.state.axis === "angle" && (t[0] = 0));
}
cancel() {
const t = this.state;
t.canceled || setTimeout(() => {
t.canceled = !0, t._active = !1, this.compute(), this.emit();
}, 0);
}
touchStart(t) {
this.ctrl.setEventIds(t);
const n = this.state, r = this.ctrl.touchIds;
if (n._active && n._touchIds.every((a) => r.has(a)) || r.size < 2)
return;
this.start(t), n._touchIds = Array.from(r).slice(0, 2);
const i = yu(t, n._touchIds);
i && this.pinchStart(t, i);
}
pointerStart(t) {
if (t.buttons != null && t.buttons % 2 !== 1)
return;
this.ctrl.setEventIds(t), t.target.setPointerCapture(t.pointerId);
const n = this.state, r = n._pointerEvents, i = this.ctrl.pointerIds;
if (n._active && Array.from(r.keys()).every((o) => i.has(o)) || (r.size < 2 && r.set(t.pointerId, t), n._pointerEvents.size < 2))
return;
this.start(t);
const a = Ss(...Array.from(r.values()));
a && this.pinchStart(t, a);
}
pinchStart(t, n) {
const r = this.state;
r.origin = n.origin, this.computeValues([n.distance, n.angle]), this.computeInitial(), this.compute(t), this.emit();
}
touchMove(t) {
if (!this.state._active)
return;
const n = yu(t, this.state._touchIds);
n && this.pinchMove(t, n);
}
pointerMove(t) {
const n = this.state._pointerEvents;
if (n.has(t.pointerId) && n.set(t.pointerId, t), !this.state._active)
return;
const r = Ss(...Array.from(n.values()));
r && this.pinchMove(t, r);
}
pinchMove(t, n) {
const r = this.state, i = r._values[1], a = n.angle - i;
let o = 0;
Math.abs(a) > 270 && (o += Math.sign(a)), this.computeValues([n.distance, n.angle - 360 * o]), r.origin = n.origin, r.turns = o, r._movement = [r._values[0] / r._initial[0] - 1, r._values[1] - r._initial[1]], this.compute(t), this.emit();
}
touchEnd(t) {
this.ctrl.setEventIds(t), this.state._active && this.state._touchIds.some((n) => !this.ctrl.touchIds.has(n)) && (this.state._active = !1, this.compute(t), this.emit());
}
pointerEnd(t) {
const n = this.state;
this.ctrl.setEventIds(t);
try {
t.target.releasePointerCapture(t.pointerId);
} catch {
}
n._pointerEvents.has(t.pointerId) && n._pointerEvents.delete(t.pointerId), n._active && n._pointerEvents.size < 2 && (n._active = !1, this.compute(t), this.emit());
}
gestureStart(t) {
t.cancelable && t.preventDefault();
const n = this.state;
n._active || (this.start(t), this.computeValues([t.scale, t.rotation]), n.origin = [t.clientX, t.clientY], this.compute(t), this.emit());
}
gestureMove(t) {
if (t.cancelable && t.preventDefault(), !this.state._active)
return;
const n = this.state;
this.computeValues([t.scale, t.rotation]), n.origin = [t.clientX, t.clientY];
const r = n._movement;
n._movement = [t.scale - 1, t.rotation], n._delta = Ae.sub(n._movement, r), this.compute(t), this.emit();
}
gestureEnd(t) {
this.state._active && (this.state._active = !1, this.compute(t), this.emit());
}
wheel(t) {
const n = this.config.modifierKey;
n && (Array.isArray(n) ? !n.find((r) => t[r]) : !t[n]) || (this.state._active ? this.wheelChange(t) : this.wheelStart(t), this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this)));
}
wheelStart(t) {
this.start(t), this.wheelChange(t);
}
wheelChange(t) {
"uv" in t || t.cancelable && t.preventDefault();
const r = this.state;
r._delta = [-qd(t)[1] / c3 * r.offset[0], 0], Ae.addTo(r._movement, r._delta), Yd(r), this.state.origin = [t.clientX, t.clientY], this.compute(t), this.emit();
}
wheelEnd() {
this.state._active && (this.state._active = !1, this.compute(), this.emit());
}
bind(t) {
const n = this.config.device;
n && (t(n, "start", this[n + "Start"].bind(this)), t(n, "change", this[n + "Move"].bind(this)), t(n, "end", this[n + "End"].bind(this)), t(n, "cancel", this[n + "End"].bind(this)), t("lostPointerCapture", "", this[n + "End"].bind(this))), this.config.pinchOnWheel && t("wheel", "", this.wheel.bind(this), {
passive: !1
});
}
}
const f3 = _e(_e({}, zd), {}, {
device(e, t, {
shared: n,
pointer: {
touch: r = !1
} = {}
}) {
if (n.target && !mt.touch && mt.gesture)
return "gesture";
if (mt.touch && r)
return "touch";
if (mt.touchscreen) {
if (mt.pointer)
return "pointer";
if (mt.touch)
return "touch";
}
},
bounds(e, t, {
scaleBounds: n = {},
angleBounds: r = {}
}) {
const i = (o) => {
const l = Cu(Ua(n, o), {
min: -1 / 0,
max: 1 / 0
});
return [l.min, l.max];
}, a = (o) => {
const l = Cu(Ua(r, o), {
min: -1 / 0,
max: 1 / 0
});
return [l.min, l.max];
};
return typeof n != "function" && typeof r != "function" ? [i(), a()] : (o) => [i(o), a(o)];
},
threshold(e, t, n) {
return this.lockDirection = n.axis === "lock", Ae.toVector(e, this.lockDirection ? [0.1, 3] : 0);
},
modifierKey(e) {
return e === void 0 ? "ctrlKey" : e;
},
pinchOnWheel(e = !0) {
return e;
}
});
_e(_e({}, jr), {}, {
mouseOnly: (e = !0) => e
});
class d3 extends Ud {
constructor(...t) {
super(...t), We(this, "ingKey", "wheeling");
}
wheel(t) {
this.state._active || this.start(t), this.wheelChange(t), this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this));
}
wheelChange(t) {
const n = this.state;
n._delta = qd(t), Ae.addTo(n._movement, n._delta), Yd(n), this.compute(t), this.emit();
}
wheelEnd() {
this.state._active && (this.state._active = !1, this.compute(), this.emit());
}
bind(t) {
t("wheel", "", this.wheel.bind(this));
}
}
const m3 = jr;
_e(_e({}, jr), {}, {
mouseOnly: (e = !0) => e
});
const Ll = /* @__PURE__ */ new Map(), Os = /* @__PURE__ */ new Map();
function Dl(e) {
Ll.set(e.key, e.engine), Os.set(e.key, e.resolver);
}
const Gd = {
key: "drag",
engine: Yp,
resolver: s3
}, h3 = {
key: "pinch",
engine: u3,
resolver: f3
}, v3 = {
key: "wheel",
engine: d3,
resolver: m3
};
function p3(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
return n;
}
function g3(e, t) {
if (e == null)
return {};
var n = p3(e, t), r, i;
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (i = 0; i < a.length; i++)
r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
}
return n;
}
const y3 = {
target(e) {
if (e)
return () => "current" in e ? e.current : e;
},
enabled(e = !0) {
return e;
},
window(e = mt.isBrowser ? window : void 0) {
return e;
},
eventOptions({
passive: e = !0,
capture: t = !1
} = {}) {
return {
passive: e,
capture: t
};
},
transform(e) {
return e;
}
}, b3 = ["target", "eventOptions", "window", "enabled", "transform"];
function Sa(e = {}, t) {
const n = {};
for (const [r, i] of Object.entries(t))
switch (typeof i) {
case "function":
n[r] = i.call(n, e[r], r, e);
break;
case "object":
n[r] = Sa(e[r], i);
break;
case "boolean":
i && (n[r] = e[r]);
break;
}
return n;
}
function E3(e, t, n = {}) {
const r = e, {
target: i,
eventOptions: a,
window: o,
enabled: l,
transform: c
} = r, u = g3(r, b3);
if (n.shared = Sa({
target: i,
eventOptions: a,
window: o,
enabled: l,
transform: c
}, y3), t) {
const f = Os.get(t);
n[t] = Sa(_e({
shared: n.shared
}, u), f);
} else
for (const f in u) {
const d = Os.get(f);
d && (n[f] = Sa(_e({
shared: n.shared
}, u[f]), d));
}
return n;
}
class Xd {
constructor(t, n) {
We(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = t, this._gestureKey = n;
}
add(t, n, r, i, a) {
const o = this._listeners, l = Dp(n, r), c = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, u = _e(_e({}, c), a);
t.addEventListener(l, i, u);
const f = () => {
t.removeEventListener(l, i, u), o.delete(f);
};
return o.add(f), f;
}
clean() {
this._listeners.forEach((t) => t()), this._listeners.clear();
}
}
class w3 {
constructor() {
We(this, "_timeouts", /* @__PURE__ */ new Map());
}
add(t, n, r = 140, ...i) {
this.remove(t), this._timeouts.set(t, window.setTimeout(n, r, ...i));
}
remove(t) {
const n = this._timeouts.get(t);
n && window.clearTimeout(n);
}
clean() {
this._timeouts.forEach((t) => void window.clearTimeout(t)), this._timeouts.clear();
}
}
class C3 {
constructor(t) {
We(this, "gestures", /* @__PURE__ */ new Set()), We(this, "_targetEventStore", new Xd(this)), We(this, "gestureEventStores", {}), We(this, "gestureTimeoutStores", {}), We(this, "handlers", {}), We(this, "config", {}), We(this, "pointerIds", /* @__PURE__ */ new Set()), We(this, "touchIds", /* @__PURE__ */ new Set()), We(this, "state", {
shared: {
shiftKey: !1,
metaKey: !1,
ctrlKey: !1,
altKey: !1
}
}), x3(this, t);
}
setEventIds(t) {
if (Eo(t))
return this.touchIds = new Set(Bp(t)), this.touchIds;
if ("pointerId" in t)
return t.type === "pointerup" || t.type === "pointercancel" ? this.pointerIds.delete(t.pointerId) : t.type === "pointerdown" && this.pointerIds.add(t.pointerId), this.pointerIds;
}
applyHandlers(t, n) {
this.handlers = t, this.nativeHandlers = n;
}
applyConfig(t, n) {
this.config = E3(t, n, this.config);
}
clean() {
this._targetEventStore.clean();
for (const t of this.gestures)
this.gestureEventStores[t].clean(), this.gestureTimeoutStores[t].clean();
}
effect() {
return this.config.shared.target && this.bind(), () => this._targetEventStore.clean();
}
bind(...t) {
const n = this.config.shared, r = {};
let i;
if (!(n.target && (i = n.target(), !i))) {
if (n.enabled) {
for (const o of this.gestures) {
const l = this.config[o], c = _u(r, l.eventOptions, !!i);
if (l.enabled) {
const u = Ll.get(o);
new u(this, t, o).bind(c);
}
}
const a = _u(r, n.eventOptions, !!i);
for (const o in this.nativeHandlers)
a(o, "", (l) => this.nativeHandlers[o](_e(_e({}, this.state.shared), {}, {
event: l,
args: t
})), void 0, !0);
}
for (const a in r)
r[a] = qp(...r[a]);
if (!i)
return r;
for (const a in r) {
const {
device: o,
capture: l,
passive: c
} = Lp(a);
this._targetEventStore.add(i, o, "", r[a], {
capture: l,
passive: c
});
}
}
}
}
function rr(e, t) {
e.gestures.add(t), e.gestureEventStores[t] = new Xd(e, t), e.gestureTimeoutStores[t] = new w3();
}
function x3(e, t) {
t.drag && rr(e, "drag"), t.wheel && rr(e, "wheel"), t.scroll && rr(e, "scroll"), t.move && rr(e, "move"), t.pinch && rr(e, "pinch"), t.hover && rr(e, "hover");
}
const _u = (e, t, n) => (r, i, a, o = {}, l = !1) => {
var c, u;
const f = (c = o.capture) !== null && c !== void 0 ? c : t.capture, d = (u = o.passive) !== null && u !== void 0 ? u : t.passive;
let m = l ? r : Tp(r, i, f);
n && d && (m += "Passive"), e[m] = e[m] || [], e[m].push(a);
}, k3 = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;
function $3(e) {
const t = {}, n = {}, r = /* @__PURE__ */ new Set();
for (let i in e)
k3.test(i) ? (r.add(RegExp.lastMatch), n[i] = e[i]) : t[i] = e[i];
return [n, t, r];
}
function ir(e, t, n, r, i, a) {
if (!e.has(n) || !Ll.has(r))
return;
const o = n + "Start", l = n + "End", c = (u) => {
let f;
return u.first && o in t && t[o](u), n in t && (f = t[n](u)), u.last && l in t && t[l](u), f;
};
i[r] = c, a[r] = a[r] || {};
}
function _3(e, t) {
const [n, r, i] = $3(e), a = {};
return ir(i, n, "onDrag", "drag", a, t), ir(i, n, "onWheel", "wheel", a, t), ir(i, n, "onScroll", "scroll", a, t), ir(i, n, "onPinch", "pinch", a, t), ir(i, n, "onMove", "move", a, t), ir(i, n, "onHover", "hover", a, t), {
handlers: a,
config: t,
nativeHandlers: r
};
}
function Vl(e, t = {}, n, r) {
const i = s.useMemo(() => new C3(e), []);
if (i.applyHandlers(e, r), i.applyConfig(t, n), s.useEffect(i.effect.bind(i)), s.useEffect(() => i.clean.bind(i), []), t.target === void 0)
return i.bind.bind(i);
}
function Bt(e, t) {
return Dl(Gd), Vl({
drag: e
}, t || {}, "drag");
}
function S3(e, t) {
return Dl(v3), Vl({
wheel: e
}, t || {}, "wheel");
}
function O3(e) {
return e.forEach(Dl), function(n, r) {
const {
handlers: i,
nativeHandlers: a,
config: o
} = _3(n, r || {});
return Vl(i, o, void 0, a);
};
}
const ia = "adm-popup", F3 = Object.assign(Object.assign({}, Il), {
closeOnSwipe: !1,
position: "bottom"
}), Br = (e) => {
const {
locale: t,
popup: n = {}
} = fe(), r = Y(F3, n, e), i = Z(`${ia}-body`, r.bodyClassName, `${ia}-body-position-${r.position}`), [a, o] = Q(r.visible), l = W(null);
lo(l, r.disableBodyScroll && a ? "strict" : !1), De(() => {
r.visible && o(!0);
}, [r.visible]);
const c = yl(), {
percent: u
} = Ve({
percent: r.visible ? 0 : 100,
config: {
precision: 0.1,
mass: 0.4,
tension: 300,
friction: 30
},
onRest: () => {
var h, E;
c.current || (o(r.visible), r.visible ? (h = r.afterShow) === null || h === void 0 || h.call(r) : (E = r.afterClose) === null || E === void 0 || E.call(r));
}
}), f = Bt(({
swipe: [, h]
}) => {
var E;
r.closeOnSwipe && (h === 1 && r.position === "bottom" || h === -1 && r.position === "top") && ((E = r.onClose) === null || E === void 0 || E.call(r));
}, {
axis: "y",
enabled: ["top", "bottom"].includes(r.position)
}), d = jd(a && r.visible), m = vn(r.stopPropagation, U(r, s.createElement("div", Object.assign({
className: ia,
onClick: r.onClick,
style: {
display: a ? void 0 : "none",
touchAction: ["top", "bottom"].includes(r.position) ? "none" : "auto"
}
}, f()), r.mask && s.createElement(ji, {
visible: d,
forceRender: r.forceRender,
destroyOnClose: r.destroyOnClose,
onMaskClick: (h) => {
var E, b;
(E = r.onMaskClick) === null || E === void 0 || E.call(r, h), r.closeOnMaskClick && ((b = r.onClose) === null || b === void 0 || b.call(r));
},
className: r.maskClassName,
style: r.maskStyle,
disableBodyScroll: !1,
stopPropagation: r.stopPropagation
}), s.createElement(xe.div, {
className: i,
style: Object.assign(Object.assign({}, r.bodyStyle), {
pointerEvents: u.to((h) => h === 0 ? "unset" : "none"),
transform: u.to((h) => r.position === "bottom" ? `translate(0, ${h}%)` : r.position === "top" ? `translate(0, -${h}%)` : r.position === "left" ? `translate(-${h}%, 0)` : r.position === "right" ? `translate(${h}%, 0)` : "none")
}),
ref: l
}, r.showCloseButton && s.createElement("a", {
className: Z(`${ia}-close-icon`, "adm-plain-anchor"),
onClick: () => {
var h;
(h = r.onClose) === null || h === void 0 || h.call(r);
},
role: "button",
"aria-label": t.common.close
}, r.closeIcon), r.children))));
return s.createElement(Vr, {
active: a,
forceRender: r.forceRender,
destroyOnClose: r.destroyOnClose
}, Dr(r.getContainer, m));
}, Su = "adm-safe-area", Wr = (e) => U(e, s.createElement("div", {
className: Z(Su, `${Su}-position-${e.position}`)
}));
var bt = {};
Object.defineProperty(bt, "__esModule", {
value: !0
});
bt.call = jl;
bt.default = void 0;
bt.note = Jd;
bt.noteOnce = t1;
bt.preMessage = void 0;
bt.resetWarned = e1;
bt.warning = Qd;
bt.warningOnce = Wi;
var Fs = {}, R3 = bt.preMessage = function(t) {
};
function Qd(e, t) {
}
function Jd(e, t) {
}
function e1() {
Fs = {};
}
function jl(e, t, n) {
!t && !Fs[n] && (e(!1, n), Fs[n] = !0);
}
function Wi(e, t) {
jl(Qd, e, t);
}
function t1(e, t) {
jl(Jd, e, t);
}
Wi.preMessage = R3;
Wi.resetWarned = e1;
Wi.noteOnce = t1;
bt.default = Wi;
var Zi = {}, n1 = { exports: {} }, r1 = { exports: {} };
(function(e) {
function t(n) {
"@babel/helpers - typeof";
return e.exports = t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
return typeof r;
} : function(r) {
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(n);
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(r1);
var Cn = r1.exports;
(function(e) {
var t = Cn.default;
function n(i) {
if (typeof WeakMap != "function")
return null;
var a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
return (n = function(c) {
return c ? o : a;
})(i);
}
function r(i, a) {
if (!a && i && i.__esModule)
return i;
if (i === null || t(i) !== "object" && typeof i != "function")
return {
default: i
};
var o = n(a);
if (o && o.has(i))
return o.get(i);
var l = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var u in i)
if (u !== "default" && Object.prototype.hasOwnProperty.call(i, u)) {
var f = c ? Object.getOwnPropertyDescriptor(i, u) : null;
f && (f.get || f.set) ? Object.defineProperty(l, u, f) : l[u] = i[u];
}
return l.default = i, o && o.set(i, l), l;
}
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
})(n1);
var qi = n1.exports, i1 = { exports: {} };
(function(e) {
function t(n) {
return n && n.__esModule ? n : {
default: n
};
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(i1);
var xn = i1.exports, a1 = { exports: {} };
(function(e) {
var t = Cn.default;
function n() {
e.exports = n = function() {
return i;
}, e.exports.__esModule = !0, e.exports.default = e.exports;
var r, i = {}, a = Object.prototype, o = a.hasOwnProperty, l = Object.defineProperty || function($, F, L) {
$[F] = L.value;
}, c = typeof Symbol == "function" ? Symbol : {}, u = c.iterator || "@@iterator", f = c.asyncIterator || "@@asyncIterator", d = c.toStringTag || "@@toStringTag";
function m($, F, L) {
return Object.defineProperty($, F, {
value: L,
enumerable: !0,
configurable: !0,
writable: !0
}), $[F];
}
try {
m({}, "");
} catch {
m = function(L, B, j) {
return L[B] = j;
};
}
function h($, F, L, B) {
var j = F && F.prototype instanceof y ? F : y, q = Object.create(j.prototype), H = new S(B || []);
return l(q, "_invoke", {
value: M($, L, H)
}), q;
}
function E($, F, L) {
try {
return {
type: "normal",
arg: $.call(F, L)
};
} catch (B) {
return {
type: "throw",
arg: B
};
}
}
i.wrap = h;
var b = "suspendedStart", g = "suspendedYield", v = "executing", w = "completed", p = {};
function y() {
}
function C() {
}
function x() {
}
var k = {};
m(k, u, function() {
return this;
});
var _ = Object.getPrototypeOf, R = _ && _(_(I([])));
R && R !== a && o.call(R, u) && (k = R);
var O = x.prototype = y.prototype = Object.create(k);
function V($) {
["next", "throw", "return"].forEach(function(F) {
m($, F, function(L) {
return this._invoke(F, L);
});
});
}
function A($, F) {
function L(j, q, H, X) {
var te = E($[j], $, q);
if (te.type !== "throw") {
var ae = te.arg, re = ae.value;
return re && t(re) == "object" && o.call(re, "__await") ? F.resolve(re.__await).then(function(z) {
L("next", z, H, X);
}, function(z) {
L("throw", z, H, X);
}) : F.resolve(re).then(function(z) {
ae.value = z, H(ae);
}, function(z) {
return L("throw", z, H, X);
});
}
X(te.arg);
}
var B;
l(this, "_invoke", {
value: function(q, H) {
function X() {
return new F(function(te, ae) {
L(q, H, te, ae);
});
}
return B = B ? B.then(X, X) : X();
}
});
}
function M($, F, L) {
var B = b;
return function(j, q) {
if (B === v)
throw new Error("Generator is already running");
if (B === w) {
if (j === "throw")
throw q;
return {
value: r,
done: !0
};
}
for (L.method = j, L.arg = q; ; ) {
var H = L.delegate;
if (H) {
var X = N(H, L);
if (X) {
if (X === p)
continue;
return X;
}
}
if (L.method === "next")
L.sent = L._sent = L.arg;
else if (L.method === "throw") {
if (B === b)
throw B = w, L.arg;
L.dispatchException(L.arg);
} else
L.method === "return" && L.abrupt("return", L.arg);
B = v;
var te = E($, F, L);
if (te.type === "normal") {
if (B = L.done ? w : g, te.arg === p)
continue;
return {
value: te.arg,
done: L.done
};
}
te.type === "throw" && (B = w, L.method = "throw", L.arg = te.arg);
}
};
}
function N($, F) {
var L = F.method, B = $.iterator[L];
if (B === r)
return F.delegate = null, L === "throw" && $.iterator.return && (F.method = "return", F.arg = r, N($, F), F.method === "throw") || L !== "return" && (F.method = "throw", F.arg = new TypeError("The iterator does not provide a '" + L + "' method")), p;
var j = E(B, $.iterator, F.arg);
if (j.type === "throw")
return F.method = "throw", F.arg = j.arg, F.delegate = null, p;
var q = j.arg;
return q ? q.done ? (F[$.resultName] = q.value, F.next = $.nextLoc, F.method !== "return" && (F.method = "next", F.arg = r), F.delegate = null, p) : q : (F.method = "throw", F.arg = new TypeError("iterator result is not an object"), F.delegate = null, p);
}
function T($) {
var F = {
tryLoc: $[0]
};
1 in $ && (F.catchLoc = $[1]), 2 in $ && (F.finallyLoc = $[2], F.afterLoc = $[3]), this.tryEntries.push(F);
}
function P($) {
var F = $.completion || {};
F.type = "normal", delete F.arg, $.completion = F;
}
function S($) {
this.tryEntries = [{
tryLoc: "root"
}], $.forEach(T, this), this.reset(!0);
}
function I($) {
if ($ || $ === "") {
var F = $[u];
if (F)
return F.call($);
if (typeof $.next == "function")
return $;
if (!isNaN($.length)) {
var L = -1, B = function j() {
for (; ++L < $.length; )
if (o.call($, L))
return j.value = $[L], j.done = !1, j;
return j.value = r, j.done = !0, j;
};
return B.next = B;
}
}
throw new TypeError(t($) + " is not iterable");
}
return C.prototype = x, l(O, "constructor", {
value: x,
configurable: !0
}), l(x, "constructor", {
value: C,
configurable: !0
}), C.displayName = m(x, d, "GeneratorFunction"), i.isGeneratorFunction = function($) {
var F = typeof $ == "function" && $.constructor;
return !!F && (F === C || (F.displayName || F.name) === "GeneratorFunction");
}, i.mark = function($) {
return Object.setPrototypeOf ? Object.setPrototypeOf($, x) : ($.__proto__ = x, m($, d, "GeneratorFunction")), $.prototype = Object.create(O), $;
}, i.awrap = function($) {
return {
__await: $
};
}, V(A.prototype), m(A.prototype, f, function() {
return this;
}), i.AsyncIterator = A, i.async = function($, F, L, B, j) {
j === void 0 && (j = Promise);
var q = new A(h($, F, L, B), j);
return i.isGeneratorFunction(F) ? q : q.next().then(function(H) {
return H.done ? H.value : q.next();
});
}, V(O), m(O, d, "Generator"), m(O, u, function() {
return this;
}), m(O, "toString", function() {
return "[object Generator]";
}), i.keys = function($) {
var F = Object($), L = [];
for (var B in F)
L.push(B);
return L.reverse(), function j() {
for (; L.length; ) {
var q = L.pop();
if (q in F)
return j.value = q, j.done = !1, j;
}
return j.done = !0, j;
};
}, i.values = I, S.prototype = {
constructor: S,
reset: function(F) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = r, this.done = !1, this.delegate = null, this.method = "next", this.arg = r, this.tryEntries.forEach(P), !F)
for (var L in this)
L.charAt(0) === "t" && o.call(this, L) && !isNaN(+L.slice(1)) && (this[L] = r);
},
stop: function() {
this.done = !0;
var F = this.tryEntries[0].completion;
if (F.type === "throw")
throw F.arg;
return this.rval;
},
dispatchException: function(F) {
if (this.done)
throw F;
var L = this;
function B(ae, re) {
return H.type = "throw", H.arg = F, L.next = ae, re && (L.method = "next", L.arg = r), !!re;
}
for (var j = this.tryEntries.length - 1; j >= 0; --j) {
var q = this.tryEntries[j], H = q.completion;
if (q.tryLoc === "root")
return B("end");
if (q.tryLoc <= this.prev) {
var X = o.call(q, "catchLoc"), te = o.call(q, "finallyLoc");
if (X && te) {
if (this.prev < q.catchLoc)
return B(q.catchLoc, !0);
if (this.prev < q.finallyLoc)
return B(q.finallyLoc);
} else if (X) {
if (this.prev < q.catchLoc)
return B(q.catchLoc, !0);
} else {
if (!te)
throw new Error("try statement without catch or finally");
if (this.prev < q.finallyLoc)
return B(q.finallyLoc);
}
}
}
},
abrupt: function(F, L) {
for (var B = this.tryEntries.length - 1; B >= 0; --B) {
var j = this.tryEntries[B];
if (j.tryLoc <= this.prev && o.call(j, "finallyLoc") && this.prev < j.finallyLoc) {
var q = j;
break;
}
}
q && (F === "break" || F === "continue") && q.tryLoc <= L && L <= q.finallyLoc && (q = null);
var H = q ? q.completion : {};
return H.type = F, H.arg = L, q ? (this.method = "next", this.next = q.finallyLoc, p) : this.complete(H);
},
complete: function(F, L) {
if (F.type === "throw")
throw F.arg;
return F.type === "break" || F.type === "continue" ? this.next = F.arg : F.type === "return" ? (this.rval = this.arg = F.arg, this.method = "return", this.next = "end") : F.type === "normal" && L && (this.next = L), p;
},
finish: function(F) {
for (var L = this.tryEntries.length - 1; L >= 0; --L) {
var B = this.tryEntries[L];
if (B.finallyLoc === F)
return this.complete(B.completion, B.afterLoc), P(B), p;
}
},
catch: function(F) {
for (var L = this.tryEntries.length - 1; L >= 0; --L) {
var B = this.tryEntries[L];
if (B.tryLoc === F) {
var j = B.completion;
if (j.type === "throw") {
var q = j.arg;
P(B);
}
return q;
}
}
throw new Error("illegal catch attempt");
},
delegateYield: function(F, L, B) {
return this.delegate = {
iterator: I(F),
resultName: L,
nextLoc: B
}, this.method === "next" && (this.arg = r), p;
}
}, i;
}
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
})(a1);
var N3 = a1.exports, o1 = { exports: {} };
(function(e) {
function t(r, i, a, o, l, c, u) {
try {
var f = r[c](u), d = f.value;
} catch (m) {
a(m);
return;
}
f.done ? i(d) : Promise.resolve(d).then(o, l);
}
function n(r) {
return function() {
var i = this, a = arguments;
return new Promise(function(o, l) {
var c = r.apply(i, a);
function u(d) {
t(c, o, l, u, f, "next", d);
}
function f(d) {
t(c, o, l, u, f, "throw", d);
}
u(void 0);
});
};
}
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
})(o1);
var P3 = o1.exports, s1 = { exports: {} }, l1 = { exports: {} }, c1 = { exports: {} }, u1 = { exports: {} };
(function(e) {
var t = Cn.default;
function n(r, i) {
if (t(r) !== "object" || r === null)
return r;
var a = r[Symbol.toPrimitive];
if (a !== void 0) {
var o = a.call(r, i || "default");
if (t(o) !== "object")
return o;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (i === "string" ? String : Number)(r);
}
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
})(u1);
var M3 = u1.exports;
(function(e) {
var t = Cn.default, n = M3;
function r(i) {
var a = n(i, "string");
return t(a) === "symbol" ? a : String(a);
}
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
})(c1);
var A3 = c1.exports;
(function(e) {
var t = A3;
function n(r, i, a) {
return i = t(i), i in r ? Object.defineProperty(r, i, {
value: a,
enumerable: !0,
configurable: !0,
writable: !0
}) : r[i] = a, r;
}
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
})(l1);
var T3 = l1.exports;
(function(e) {
var t = T3;
function n(i, a) {
var o = Object.keys(i);
if (Object.getOwnPropertySymbols) {
var l = Object.getOwnPropertySymbols(i);
a && (l = l.filter(function(c) {
return Object.getOwnPropertyDescriptor(i, c).enumerable;
})), o.push.apply(o, l);
}
return o;
}
function r(i) {
for (var a = 1; a < arguments.length; a++) {
var o = arguments[a] != null ? arguments[a] : {};
a % 2 ? n(Object(o), !0).forEach(function(l) {
t(i, l, o[l]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(o)) : n(Object(o)).forEach(function(l) {
Object.defineProperty(i, l, Object.getOwnPropertyDescriptor(o, l));
});
}
return i;
}
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
})(s1);
var f1 = s1.exports, I3 = qi.default, wo = xn.default;
Object.defineProperty(Zi, "__esModule", {
value: !0
});
Zi._r = z3;
Zi._u = X3;
var L3 = Zi.render = K3, D3 = Zi.unmount = Q3, za = wo(N3), d1 = wo(P3), V3 = wo(Cn), j3 = wo(f1), B3 = I3(Ta), Hi = (0, j3.default)({}, B3), W3 = Hi.version, Xo = Hi.render, Z3 = Hi.unmountComponentAtNode, Co;
try {
var q3 = Number((W3 || "").split(".")[0]);
q3 >= 18 && (Co = Hi.createRoot);
} catch {
}
function Ou(e) {
var t = Hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
t && (0, V3.default)(t) === "object" && (t.usingClientEntryPoint = e);
}
var Ka = "__rc_react_root__";
function H3(e, t) {
Ou(!0);
var n = t[Ka] || Co(t);
Ou(!1), n.render(e), t[Ka] = n;
}
function U3(e, t) {
Xo == null || Xo(e, t);
}
function z3(e, t) {
}
function K3(e, t) {
if (Co) {
H3(e, t);
return;
}
U3(e, t);
}
function Y3(e) {
return Rs.apply(this, arguments);
}
function Rs() {
return Rs = (0, d1.default)(/* @__PURE__ */ (0, za.default)().mark(function e(t) {
return (0, za.default)().wrap(function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.abrupt("return", Promise.resolve().then(function() {
var i;
(i = t[Ka]) === null || i === void 0 || i.unmount(), delete t[Ka];
}));
case 1:
case "end":
return r.stop();
}
}, e);
})), Rs.apply(this, arguments);
}
function G3(e) {
Z3(e);
}
function X3(e) {
}
function Q3(e) {
return Ns.apply(this, arguments);
}
function Ns() {
return Ns = (0, d1.default)(/* @__PURE__ */ (0, za.default)().mark(function e(t) {
return (0, za.default)().wrap(function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
if (Co === void 0) {
r.next = 2;
break;
}
return r.abrupt("return", Y3(t));
case 2:
G3(t);
case 3:
case "end":
return r.stop();
}
}, e);
})), Ns.apply(this, arguments);
}
const J3 = (e, t) => (L3(e, t), () => D3(t));
let Fu = J3;
function eg(e) {
return e && (Fu = e), Fu;
}
function Ui(e) {
const t = document.createElement("div");
document.body.appendChild(t);
const n = eg()(e, t);
return () => {
var r;
n(), (r = t.parentNode) === null || r === void 0 || r.removeChild(t);
};
}
function Yn(e) {
const t = s.forwardRef((i, a) => {
const [o, l] = Q(!1), c = W(!1), [u, f] = Q(e), d = W(0);
J(() => {
c.current ? h() : l(!0);
}, []);
function m() {
var E, b;
c.current = !0, l(!1), (b = (E = u.props).onClose) === null || b === void 0 || b.call(E);
}
function h() {
var E, b;
r(), (b = (E = u.props).afterClose) === null || b === void 0 || b.call(E);
}
return $e(a, () => ({
close: m,
replace: (E) => {
var b, g;
d.current++, (g = (b = u.props).afterClose) === null || g === void 0 || g.call(b), f(E);
}
})), s.cloneElement(u, Object.assign(Object.assign({}, u.props), {
key: d.current,
visible: o,
onClose: m,
afterClose: h
}));
}), n = s.createRef(), r = Ui(s.createElement(t, {
ref: n
}));
return {
close: () => Te(this, void 0, void 0, function* () {
var i, a, o;
n.current ? (o = n.current) === null || o === void 0 || o.close() : (r(), (a = (i = e.props).afterClose) === null || a === void 0 || a.call(i));
}),
replace: (i) => {
var a;
(a = n.current) === null || a === void 0 || a.replace(i);
},
isRendered: () => !!n.current
};
}
const ze = "adm-action-sheet", tg = {
visible: !1,
actions: [],
cancelText: "",
closeOnAction: !1,
closeOnMaskClick: !0,
safeArea: !0,
destroyOnClose: !1,
forceRender: !1
}, m1 = (e) => {
const t = Y(tg, e), {
styles: n
} = t;
return s.createElement(Br, {
visible: t.visible,
onMaskClick: () => {
var r, i;
(r = t.onMaskClick) === null || r === void 0 || r.call(t), t.closeOnMaskClick && ((i = t.onClose) === null || i === void 0 || i.call(t));
},
afterClose: t.afterClose,
className: Z(`${ze}-popup`, t.popupClassName),
style: t.popupStyle,
getContainer: t.getContainer,
destroyOnClose: t.destroyOnClose,
forceRender: t.forceRender,
bodyStyle: n == null ? void 0 : n.body,
maskStyle: n == null ? void 0 : n.mask
}, U(t, s.createElement("div", {
className: ze
}, t.extra && s.createElement("div", {
className: `${ze}-extra`
}, t.extra), s.createElement("div", {
className: `${ze}-button-list`
}, t.actions.map((r, i) => s.createElement("div", {
key: r.key,
className: `${ze}-button-item-wrapper`
}, s.createElement("a", {
className: Z("adm-plain-anchor", `${ze}-button-item`, {
[`${ze}-button-item-danger`]: r.danger,
[`${ze}-button-item-disabled`]: r.disabled,
[`${ze}-button-item-bold`]: r.bold
}),
onClick: () => {
var a, o, l;
(a = r.onClick) === null || a === void 0 || a.call(r), (o = t.onAction) === null || o === void 0 || o.call(t, r, i), t.closeOnAction && ((l = t.onClose) === null || l === void 0 || l.call(t));
},
role: "option",
"aria-disabled": r.disabled
}, s.createElement("div", {
className: `${ze}-button-item-name`
}, r.text), r.description && s.createElement("div", {
className: `${ze}-button-item-description`
}, r.description))))), t.cancelText && s.createElement("div", {
className: `${ze}-cancel`,
role: "option",
"aria-label": t.cancelText
}, s.createElement("div", {
className: `${ze}-button-item-wrapper`
}, s.createElement("a", {
className: Z("adm-plain-anchor", `${ze}-button-item`),
onClick: t.onClose
}, s.createElement("div", {
className: `${ze}-button-item-name`
}, t.cancelText)))), t.safeArea && s.createElement(Wr, {
position: "bottom"
}))));
};
function ng(e) {
return Yn(s.createElement(m1, Object.assign({}, e)));
}
const Pb = ge(m1, {
show: ng
}), Ru = "adm-auto-center", _i = (e) => U(e, s.createElement("div", {
className: Ru
}, s.createElement("div", {
className: `${Ru}-content`
}, e.children)));
var Bl = {}, rg = vt && vt.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(Bl, "__esModule", { value: !0 });
var Wl = Bl.staged = void 0;
const ig = rg(s);
function h1(e) {
return typeof e == "function" ? ig.default.createElement(ag, { stage: e }) : e;
}
function ag(e) {
const t = e.stage();
return h1(t);
}
function og(e) {
return function(n, r) {
const i = e(n, r);
return h1(i);
};
}
Wl = Bl.staged = og;
function Dn(e) {
return typeof e == "number" ? `${e}px` : e;
}
const zi = Hf(De), sg = () => s.createElement("svg", {
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg"
}, s.createElement("path", {
d: "M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",
fill: "#DBDBDB",
fillRule: "nonzero"
})), lg = () => s.createElement("svg", {
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg"
}, s.createElement("path", {
d: "M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",
fill: "#DBDBDB",
fillRule: "nonzero"
})), cg = (e) => {
const t = W(null), [n] = ov(t);
return J(() => {
n && e.onActive();
}, [n]), s.createElement("div", {
ref: t
});
}, Ya = "adm-image", ug = {
fit: "fill",
placeholder: s.createElement("div", {
className: `${Ya}-tip`
}, s.createElement(lg, null)),
fallback: s.createElement("div", {
className: `${Ya}-tip`
}, s.createElement(sg, null)),
lazy: !1,
draggable: !1
}, xo = Wl((e) => {
const t = Y(ug, e), [n, r] = Q(!1), [i, a] = Q(!1), o = W(null), l = W(null);
let c = t.src, u = t.srcSet;
const [f, d] = Q(!t.lazy);
c = f ? t.src : void 0, u = f ? t.srcSet : void 0, zi(() => {
r(!1), a(!1);
}, [c]), J(() => {
var E;
!((E = l.current) === null || E === void 0) && E.complete && r(!0);
}, []);
function m() {
if (i || c === void 0 && !u)
return s.createElement(s.Fragment, null, t.fallback);
const E = s.createElement("img", {
ref: l,
id: t.id,
className: `${Ya}-img`,
src: c,
alt: t.alt,
onClick: t.onClick,
onLoad: (b) => {
var g;
r(!0), (g = t.onLoad) === null || g === void 0 || g.call(t, b);
},
onError: (b) => {
var g;
a(!0), (g = t.onError) === null || g === void 0 || g.call(t, b);
},
style: {
objectFit: t.fit,
display: n ? "block" : "none"
},
crossOrigin: t.crossOrigin,
decoding: t.decoding,
loading: t.loading,
referrerPolicy: t.referrerPolicy,
sizes: t.sizes,
srcSet: u,
useMap: t.useMap,
draggable: t.draggable
});
return s.createElement(s.Fragment, null, !n && t.placeholder, E);
}
const h = {};
return t.width && (h["--width"] = Dn(t.width), h.width = Dn(t.width)), t.height && (h["--height"] = Dn(t.height), h.height = Dn(t.height)), U(t, s.createElement("div", {
ref: o,
className: Ya,
style: h,
onClick: t.onContainerClick
}, t.lazy && !f && s.createElement(cg, {
onActive: () => {
d(!0);
}
}), m()));
}), fg = Ke(() => s.createElement("svg", {
className: "adm-avatar-fallback",
width: "88px",
height: "88px",
viewBox: "0 0 88 88",
version: "1.1"
}, s.createElement("title", null, "编组 3"), s.createElement("defs", null, s.createElement("polygon", {
id: "path-1",
points: "0 0 88 0 88 88 0 88"
})), s.createElement("g", {
id: "页面-1",
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("g", {
id: "语雀",
transform: "translate(-495.000000, -71.000000)"
}, s.createElement("g", {
id: "编组-3",
transform: "translate(495.000000, 71.000000)"
}, s.createElement("mask", {
id: "mask-2",
fill: "white"
}, s.createElement("use", {
xlinkHref: "#path-1"
})), s.createElement("use", {
id: "Mask",
fill: "#EEEEEE",
fillRule: "nonzero",
xlinkHref: "#path-1"
}), s.createElement("path", {
d: "M44.5707528,16 L43.4292117,16 L42.9575197,16.0086403 L42.9575195,16.0086403 C36.5215787,16.2615464 31.4341803,21.5678078 31.4344832,28.0273864 L31.4344832,34.7776551 L31.4495601,35.3716788 L31.4495593,35.3716628 C31.599687,38.5368723 32.9422041,41.5269327 35.2058513,43.7376716 L38.2147759,46.6775505 L38.4086219,46.8913989 C38.7747759,47.3385365 38.9750835,47.9001589 38.9750835,48.4833848 L38.9750835,48.8938006 L38.9556989,49.1897326 L38.9556989,49.1897325 C38.8577746,49.9812662 38.3754713,50.67284 37.667703,51.036605 L18.7375269,60.7440265 L18.4101421,60.9276334 L18.4101423,60.9276333 C16.9141658,61.8418636 16.0009389,63.4714674 16,65.2283758 L16,66.070809 L16.0129231,66.3948217 C16.1766149,68.4123376 17.860922,70 19.91569,70 L68.0843101,70 L68.08431,70 C70.2460467,70 71.9988087,68.243122 72,66.0751224 L72,65.2326893 C72,63.3382982 70.9446194,61.6037466 69.2624598,60.7440295 L50.3322837,51.036608 L50.3322835,51.0366079 C49.5291218,50.6249082 49.0240448,49.7962466 49.024903,48.8916436 L49.024903,48.4812278 C49.024903,47.8029608 49.3005955,47.1527756 49.7852106,46.6775603 L52.7941352,43.7376813 L52.7941354,43.7376811 C55.204308,41.3832325 56.5636029,38.151975 56.5633606,34.7776456 L56.5633606,28.0273769 L56.5633606,28.0273774 C56.5633606,21.3848531 51.1940878,16 44.5707524,16 L44.5707528,16 Z",
id: "形状",
fill: "#CCCCCC",
fillRule: "nonzero",
mask: "url(#mask-2)"
})))))), dg = "adm-avatar", mg = {
fallback: s.createElement(fg, null),
fit: "cover"
}, Mb = (e) => {
var t;
const n = Y(mg, e), r = ((t = n.src) === null || t === void 0 ? void 0 : t.trim()) || void 0;
return U(n, s.createElement(xo, {
className: dg,
src: r,
fallback: n.fallback,
placeholder: n.fallback,
alt: n.alt,
lazy: n.lazy,
fit: n.fit,
onClick: n.onClick,
onError: n.onError,
onLoad: n.onLoad
}));
}, ar = "adm-badge", v1 = s.createElement(s.Fragment, null), hg = (e) => {
const {
content: t,
color: n,
children: r
} = e, i = t === v1, a = Z(ar, {
[`${ar}-fixed`]: !!r,
[`${ar}-dot`]: i,
[`${ar}-bordered`]: e.bordered
}), o = t || t === 0 ? U(e, s.createElement("div", {
className: a,
style: {
"--color": n
}
}, !i && s.createElement("div", {
className: `${ar}-content`
}, t))) : null;
return r ? s.createElement("div", {
className: Z(`${ar}-wrapper`, e.wrapperClassName),
style: e.wrapperStyle
}, r, o) : o;
}, Ps = ge(hg, {
dot: v1
}), vg = "adm-dot-loading", pg = {
default: "var(--adm-color-weak)",
primary: "var(--adm-color-primary)",
white: "var(--adm-color-white)"
}, gg = {
color: "default"
}, p1 = Ke((e) => {
var t;
const n = Y(gg, e);
return U(n, s.createElement("div", {
style: {
color: (t = pg[n.color]) !== null && t !== void 0 ? t : n.color
},
className: Z("adm-loading", vg)
}, s.createElement("svg", {
height: "1em",
viewBox: "0 0 100 40",
style: {
verticalAlign: "-0.125em"
}
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("g", {
transform: "translate(-100.000000, -71.000000)"
}, s.createElement("g", {
transform: "translate(95.000000, 71.000000)"
}, s.createElement("g", {
transform: "translate(5.000000, 0.000000)"
}, [0, 1, 2].map((r) => s.createElement("rect", {
key: r,
fill: "currentColor",
x: 20 + r * 26,
y: "16",
width: "8",
height: "8",
rx: "2"
}, s.createElement("animate", {
attributeName: "y",
from: "16",
to: "16",
dur: "2s",
begin: `${r * 0.2}s`,
repeatCount: "indefinite",
values: "16; 6; 26; 16; 16",
keyTimes: "0; 0.1; 0.3; 0.4; 1"
}))))))))));
});
function g1(e) {
return !!e && typeof e == "object" && typeof e.then == "function";
}
function yg() {
return Ar ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
}
const lt = "adm-button", bg = {
color: "default",
fill: "solid",
block: !1,
loading: !1,
loadingIcon: s.createElement(p1, {
color: "currentColor"
}),
type: "button",
shape: "default",
size: "middle"
}, Kt = we((e, t) => {
const n = Y(bg, e), [r, i] = Q(!1), a = W(null), o = n.loading === "auto" ? r : n.loading, l = n.disabled || o;
$e(t, () => ({
get nativeElement() {
return a.current;
}
}));
const c = (u) => Te(void 0, void 0, void 0, function* () {
if (!n.onClick)
return;
const f = n.onClick(u);
if (g1(f))
try {
i(!0), yield f, i(!1);
} catch (d) {
throw i(!1), d;
}
});
return U(n, s.createElement("button", {
ref: a,
type: n.type,
form: n.form,
onClick: c,
className: Z(lt, {
[`${lt}-${n.color}`]: n.color,
[`${lt}-block`]: n.block,
[`${lt}-disabled`]: l,
[`${lt}-fill-outline`]: n.fill === "outline",
[`${lt}-fill-none`]: n.fill === "none",
[`${lt}-mini`]: n.size === "mini",
[`${lt}-small`]: n.size === "small",
[`${lt}-large`]: n.size === "large",
[`${lt}-loading`]: o
}, `${lt}-shape-${n.shape}`),
disabled: l,
onMouseDown: n.onMouseDown,
onMouseUp: n.onMouseUp,
onTouchStart: n.onTouchStart,
onTouchEnd: n.onTouchEnd
}, o ? s.createElement("div", {
className: `${lt}-loading-wrapper`
}, n.loadingIcon, n.loadingText) : s.createElement("span", null, n.children)));
});
var y1 = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
var n = "day";
return function(r, i, a) {
var o = function(u) {
return u.add(4 - u.isoWeekday(), n);
}, l = i.prototype;
l.isoWeekYear = function() {
return o(this).year();
}, l.isoWeek = function(u) {
if (!this.$utils().u(u))
return this.add(7 * (u - this.isoWeek()), n);
var f, d, m, h, E = o(this), b = (f = this.isoWeekYear(), d = this.$u, m = (d ? a.utc : a)().year(f).startOf("year"), h = 4 - m.isoWeekday(), m.isoWeekday() > 4 && (h += 7), m.add(h, n));
return E.diff(b, "week") + 1;
}, l.isoWeekday = function(u) {
return this.$utils().u(u) ? this.day() || 7 : this.day(this.day() % 7 ? u : u - 7);
};
var c = l.startOf;
l.startOf = function(u, f) {
var d = this.$utils(), m = !!d.u(f) || f;
return d.p(u) === "isoweek" ? m ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : c.bind(this)(u, f);
};
};
});
})(y1);
var Eg = y1.exports;
const Zl = /* @__PURE__ */ Ot(Eg);
function wg(e, t) {
return e.replace(/\$\{\w+\}/g, (n) => {
const r = n.slice(2, -1);
return t[r];
});
}
function ue(e) {
const {
value: t,
defaultValue: n,
onChange: r
} = e, i = Gf(), a = W(t !== void 0 ? t : n);
t !== void 0 && (a.current = t);
const o = Xt((l, c = !1) => {
const u = typeof l == "function" ? l(a.current) : l;
if (!(!c && u === a.current))
return a.current = u, i(), r == null ? void 0 : r(u);
});
return [a.current, o];
}
const Nu = () => s.createElement("svg", {
height: "1em",
viewBox: "0 0 44 44"
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("g", {
transform: "translate(-100.000000, -22.000000)"
}, s.createElement("g", {
transform: "translate(100.000000, 22.000000)"
}, s.createElement("rect", {
x: "0",
y: "0",
width: "44",
height: "44"
}), s.createElement("g", {
transform: "translate(12.000000, 4.000000)",
fill: "currentColor",
fillRule: "nonzero"
}, s.createElement("path", {
d: "M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"
})))))), Pu = () => s.createElement("svg", {
height: "1em",
viewBox: "0 0 44 44"
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("g", {
transform: "translate(-24.000000, -22.000000)"
}, s.createElement("g", {
transform: "translate(24.000000, 22.000000)"
}, s.createElement("rect", {
x: "0",
y: "0",
width: "44",
height: "44"
}), s.createElement("g", {
transform: "translate(7.000000, 4.000000)",
fill: "currentColor",
fillRule: "nonzero"
}, s.createElement("path", {
d: "M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"
}), s.createElement("path", {
d: "M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"
}))))));
function Mu(e, t) {
return e === void 0 || t === null ? null : Array.isArray(t) ? t : [t, t];
}
function Qo(e) {
return me().year(e.year).month(e.month - 1).date(1);
}
me.extend(Zl);
const Ce = "adm-calendar", Cg = {
weekStartsOn: "Sunday",
defaultValue: null,
allowClear: !0,
prevMonthButton: s.createElement(Nu, null),
prevYearButton: s.createElement(Pu, null),
nextMonthButton: s.createElement(Nu, null),
nextYearButton: s.createElement(Pu, null)
}, Ab = we((e, t) => {
const n = me(), r = Y(Cg, e), {
locale: i
} = fe(), a = [...i.Calendar.markItems];
if (r.weekStartsOn === "Sunday") {
const p = a.pop();
p && a.unshift(p);
}
const [o, l] = ue({
value: r.value === void 0 ? void 0 : Mu(r.selectionMode, r.value),
defaultValue: Mu(r.selectionMode, r.defaultValue),
onChange: (p) => {
var y, C;
r.selectionMode === "single" ? (y = r.onChange) === null || y === void 0 || y.call(r, p ? p[0] : null) : r.selectionMode === "range" && ((C = r.onChange) === null || C === void 0 || C.call(r, p));
}
}), [c, u] = Q(!1), [f, d] = Q(() => me(o ? o[0] : n).date(1));
hl(() => {
var p;
(p = r.onPageChange) === null || p === void 0 || p.call(r, f.year(), f.month() + 1);
}, [f]), $e(t, () => ({
jumpTo: (p) => {
let y;
typeof p == "function" ? y = p({
year: f.year(),
month: f.month() + 1
}) : y = p, d(Qo(y));
},
jumpToToday: () => {
d(me().date(1));
}
}));
const m = (p, y, C) => {
const x = f[p](y, C);
if (p === "subtract" && r.minPage) {
const k = Qo(r.minPage);
if (x.isBefore(k, C))
return;
}
if (p === "add" && r.maxPage) {
const k = Qo(r.maxPage);
if (x.isAfter(k, C))
return;
}
d(x);
}, h = s.createElement("div", {
className: `${Ce}-header`
}, r.prevYearButton !== null && s.createElement("a", {
className: `${Ce}-arrow-button ${Ce}-arrow-button-year`,
onClick: () => {
m("subtract", 1, "year");
}
}, r.prevYearButton), r.prevMonthButton !== null && s.createElement("a", {
className: `${Ce}-arrow-button ${Ce}-arrow-button-month`,
onClick: () => {
m("subtract", 1, "month");
}
}, r.prevMonthButton), s.createElement("div", {
className: `${Ce}-title`
}, wg(i.Calendar.yearAndMonth, {
year: f.year().toString(),
month: (f.month() + 1).toString()
})), r.nextMonthButton !== null && s.createElement("a", {
className: Z(`${Ce}-arrow-button`, `${Ce}-arrow-button-right`, `${Ce}-arrow-button-right-month`),
onClick: () => {
m("add", 1, "month");
}
}, r.nextMonthButton), r.nextYearButton !== null && s.createElement("a", {
className: Z(`${Ce}-arrow-button`, `${Ce}-arrow-button-right`, `${Ce}-arrow-button-right-year`),
onClick: () => {
m("add", 1, "year");
}
}, r.nextYearButton)), E = de(() => r.max && me(r.max), [r.max]), b = de(() => r.min && me(r.min), [r.min]);
function g() {
var p;
const y = [];
let C = f.subtract(f.isoWeekday(), "day");
for (r.weekStartsOn === "Monday" && (C = C.add(1, "day")); y.length < 6 * 7; ) {
const x = C;
let k = !1, _ = !1, R = !1, O = !1, V = !1;
if (o) {
const [P, S] = o;
_ = x.isSame(P, "day"), R = x.isSame(S, "day"), k = _ || R || x.isAfter(P, "day") && x.isBefore(S, "day"), k && (O = (y.length % 7 === 0 || x.isSame(x.startOf("month"), "day")) && !_, V = (y.length % 7 === 6 || x.isSame(x.endOf("month"), "day")) && !R);
}
const A = x.month() === f.month(), M = r.shouldDisableDate ? r.shouldDisableDate(x.toDate()) : E && x.isAfter(E, "day") || b && x.isBefore(b, "day"), N = s.createElement("div", {
key: x.valueOf(),
className: Z(`${Ce}-cell`, (M || !A) && `${Ce}-cell-disabled`, A && {
[`${Ce}-cell-today`]: x.isSame(n, "day"),
[`${Ce}-cell-selected`]: k,
[`${Ce}-cell-selected-begin`]: _,
[`${Ce}-cell-selected-end`]: R,
[`${Ce}-cell-selected-row-begin`]: O,
[`${Ce}-cell-selected-row-end`]: V
}),
onClick: () => {
if (!r.selectionMode || M)
return;
const P = x.toDate();
A || d(x.clone().date(1));
function S() {
if (!r.allowClear || !o)
return !1;
const [I, $] = o;
return x.isSame(I, "date") && x.isSame($, "day");
}
if (r.selectionMode === "single") {
if (r.allowClear && S()) {
l(null);
return;
}
l([P, P]);
} else if (r.selectionMode === "range") {
if (!o) {
l([P, P]), u(!0);
return;
}
if (S()) {
l(null), u(!1);
return;
}
if (c) {
const I = o[0];
l(I > P ? [P, I] : [I, P]), u(!1);
} else
l([P, P]), u(!0);
}
}
}, s.createElement("div", {
className: `${Ce}-cell-top`
}, r.renderDate ? r.renderDate(x.toDate()) : x.date()), s.createElement("div", {
className: `${Ce}-cell-bottom`
}, (p = r.renderLabel) === null || p === void 0 ? void 0 : p.call(r, x.toDate()))), T = r.cellRender ? s.createElement(s.Fragment, {
key: x.valueOf()
}, r.cellRender(N, {
date: x.toDate()
})) : N;
y.push(T), C = C.add(1, "day");
}
return y;
}
const v = s.createElement("div", {
className: `${Ce}-cells`
}, g()), w = s.createElement("div", {
className: `${Ce}-mark`
}, a.map((p, y) => s.createElement("div", {
key: y,
className: `${Ce}-mark-cell`
}, p)));
return U(r, s.createElement("div", {
className: Ce
}, h, w, v));
});
var b1 = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
return function(n, r) {
r.prototype.isSameOrBefore = function(i, a) {
return this.isSame(i, a) || this.isBefore(i, a);
};
};
});
})(b1);
var xg = b1.exports;
const kg = /* @__PURE__ */ Ot(xg);
function Au(e, t) {
return e === void 0 || t === null ? null : Array.isArray(t) ? t : [t, t];
}
function $g(e) {
return me().year(e.year).month(e.month - 1).date(1);
}
function Si(e) {
var t = D.useRef();
t.current = e;
var n = D.useCallback(function() {
for (var r, i = arguments.length, a = new Array(i), o = 0; o < i; o++)
a[o] = arguments[o];
return (r = t.current) === null || r === void 0 ? void 0 : r.call.apply(r, [t].concat(a));
}, []);
return n;
}
function E1(e) {
if (Array.isArray(e))
return e;
}
function _g(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, l = [], c = !0, u = !1;
try {
if (a = (n = n.call(e)).next, t === 0) {
if (Object(n) !== n)
return;
c = !1;
} else
for (; !(c = (r = a.call(n)).done) && (l.push(r.value), l.length !== t); c = !0)
;
} catch (f) {
u = !0, i = f;
} finally {
try {
if (!c && n.return != null && (o = n.return(), Object(o) !== o))
return;
} finally {
if (u)
throw i;
}
}
return l;
}
}
function Ms(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++)
r[n] = e[n];
return r;
}
function ql(e, t) {
if (e) {
if (typeof e == "string")
return Ms(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
return Array.from(e);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return Ms(e, t);
}
}
function w1() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Fe(e, t) {
return E1(e) || _g(e, t) || ql(e, t) || w1();
}
function ko() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
var Tu = ko() ? D.useLayoutEffect : D.useEffect, C1 = function(t, n) {
var r = D.useRef(!0);
Tu(function() {
return t(r.current);
}, n), Tu(function() {
return r.current = !1, function() {
r.current = !0;
};
}, []);
}, Iu = function(t, n) {
C1(function(r) {
if (!r)
return t();
}, n);
};
function Cr(e) {
var t = D.useRef(!1), n = D.useState(e), r = Fe(n, 2), i = r[0], a = r[1];
D.useEffect(function() {
return t.current = !1, function() {
t.current = !0;
};
}, []);
function o(l, c) {
c && t.current || a(l);
}
return [i, o];
}
function Jo(e) {
return e !== void 0;
}
function x1(e, t) {
var n = t || {}, r = n.defaultValue, i = n.value, a = n.onChange, o = n.postState, l = Cr(function() {
return Jo(i) ? i : Jo(r) ? typeof r == "function" ? r() : r : typeof e == "function" ? e() : e;
}), c = Fe(l, 2), u = c[0], f = c[1], d = i !== void 0 ? i : u, m = o ? o(d) : d, h = Si(a), E = Cr([d]), b = Fe(E, 2), g = b[0], v = b[1];
Iu(function() {
var p = g[0];
u !== p && h(u, p);
}, [g]), Iu(function() {
Jo(i) || f(i);
}, [i]);
var w = Si(function(p, y) {
f(p, y), v([d], y);
});
return [m, w];
}
function ke(e) {
"@babel/helpers - typeof";
return ke = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, ke(e);
}
var k1 = { exports: {} }, ye = {};
/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Hl = Symbol.for("react.element"), Ul = Symbol.for("react.portal"), $o = Symbol.for("react.fragment"), _o = Symbol.for("react.strict_mode"), So = Symbol.for("react.profiler"), Oo = Symbol.for("react.provider"), Fo = Symbol.for("react.context"), Sg = Symbol.for("react.server_context"), Ro = Symbol.for("react.forward_ref"), No = Symbol.for("react.suspense"), Po = Symbol.for("react.suspense_list"), Mo = Symbol.for("react.memo"), Ao = Symbol.for("react.lazy"), Og = Symbol.for("react.offscreen"), $1;
$1 = Symbol.for("react.module.reference");
function Et(e) {
if (typeof e == "object" && e !== null) {
var t = e.$$typeof;
switch (t) {
case Hl:
switch (e = e.type, e) {
case $o:
case So:
case _o:
case No:
case Po:
return e;
default:
switch (e = e && e.$$typeof, e) {
case Sg:
case Fo:
case Ro:
case Ao:
case Mo:
case Oo:
return e;
default:
return t;
}
}
case Ul:
return t;
}
}
}
ye.ContextConsumer = Fo;
ye.ContextProvider = Oo;
ye.Element = Hl;
ye.ForwardRef = Ro;
ye.Fragment = $o;
ye.Lazy = Ao;
ye.Memo = Mo;
ye.Portal = Ul;
ye.Profiler = So;
ye.StrictMode = _o;
ye.Suspense = No;
ye.SuspenseList = Po;
ye.isAsyncMode = function() {
return !1;
};
ye.isConcurrentMode = function() {
return !1;
};
ye.isContextConsumer = function(e) {
return Et(e) === Fo;
};
ye.isContextProvider = function(e) {
return Et(e) === Oo;
};
ye.isElement = function(e) {
return typeof e == "object" && e !== null && e.$$typeof === Hl;
};
ye.isForwardRef = function(e) {
return Et(e) === Ro;
};
ye.isFragment = function(e) {
return Et(e) === $o;
};
ye.isLazy = function(e) {
return Et(e) === Ao;
};
ye.isMemo = function(e) {
return Et(e) === Mo;
};
ye.isPortal = function(e) {
return Et(e) === Ul;
};
ye.isProfiler = function(e) {
return Et(e) === So;
};
ye.isStrictMode = function(e) {
return Et(e) === _o;
};
ye.isSuspense = function(e) {
return Et(e) === No;
};
ye.isSuspenseList = function(e) {
return Et(e) === Po;
};
ye.isValidElementType = function(e) {
return typeof e == "string" || typeof e == "function" || e === $o || e === So || e === _o || e === No || e === Po || e === Og || typeof e == "object" && e !== null && (e.$$typeof === Ao || e.$$typeof === Mo || e.$$typeof === Oo || e.$$typeof === Fo || e.$$typeof === Ro || e.$$typeof === $1 || e.getModuleId !== void 0);
};
ye.typeOf = Et;
k1.exports = ye;
var Wn = k1.exports, Fg = Symbol.for("react.element"), Rg = Symbol.for("react.transitional.element"), Ng = Symbol.for("react.fragment");
function _1(e) {
return (
// Base object type
e && ke(e) === "object" && // React Element type
(e.$$typeof === Fg || e.$$typeof === Rg) && // React Fragment type
e.type === Ng
);
}
var Pg = Number(Rm.split(".")[0]), S1 = function(t, n) {
typeof t == "function" ? t(n) : ke(t) === "object" && t && "current" in t && (t.current = n);
}, O1 = function() {
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
var i = n.filter(Boolean);
return i.length <= 1 ? i[0] : function(a) {
n.forEach(function(o) {
S1(o, a);
});
};
}, Mg = function(t) {
var n, r;
if (!t)
return !1;
if (Ag(t) && Pg >= 19)
return !0;
var i = Wn.isMemo(t) ? t.type.type : t.type;
return !(typeof i == "function" && !((n = i.prototype) !== null && n !== void 0 && n.render) && i.$$typeof !== Wn.ForwardRef || typeof t == "function" && !((r = t.prototype) !== null && r !== void 0 && r.render) && t.$$typeof !== Wn.ForwardRef);
};
function Ag(e) {
return /* @__PURE__ */ En(e) && !_1(e);
}
function St(e, t) {
for (var n = e, r = 0; r < t.length; r += 1) {
if (n == null)
return;
n = n[t[r]];
}
return n;
}
function Tg(e, t) {
if (ke(e) !== "object" || e === null)
return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t || "default");
if (ke(r) !== "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function F1(e) {
var t = Tg(e, "string");
return ke(t) === "symbol" ? t : String(t);
}
function he(e, t, n) {
return t = F1(t), t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function Lu(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(e, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function ee(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
t % 2 ? Lu(Object(n), !0).forEach(function(r) {
he(e, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lu(Object(n)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return e;
}
function Ig(e) {
if (Array.isArray(e))
return Ms(e);
}
function R1(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
return Array.from(e);
}
function Lg() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function ve(e) {
return Ig(e) || R1(e) || ql(e) || Lg();
}
function Dg(e) {
return E1(e) || R1(e) || ql(e) || w1();
}
function N1(e, t, n, r) {
if (!t.length)
return n;
var i = Dg(t), a = i[0], o = i.slice(1), l;
return !e && typeof a == "number" ? l = [] : Array.isArray(e) ? l = ve(e) : l = ee({}, e), r && n === void 0 && o.length === 1 ? delete l[a][o[0]] : l[a] = N1(l[a], o, n, r), l;
}
function xt(e, t, n) {
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
return t.length && r && n === void 0 && !St(e, t.slice(0, -1)) ? e : N1(e, t, n, r);
}
function Vg(e) {
return ke(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
}
function Du(e) {
return Array.isArray(e) ? [] : {};
}
var jg = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
function li() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
var r = Du(t[0]);
return t.forEach(function(i) {
function a(o, l) {
var c = new Set(l), u = St(i, o), f = Array.isArray(u);
if (f || Vg(u)) {
if (!c.has(u)) {
c.add(u);
var d = St(r, o);
f ? r = xt(r, o, []) : (!d || ke(d) !== "object") && (r = xt(r, o, Du(u))), jg(u).forEach(function(m) {
a([].concat(ve(o), [m]), c);
});
}
} else
r = xt(r, o, u);
}
a([]);
}), r;
}
var As = {}, Bg = function(t) {
};
function Wg(e, t) {
}
function Zg(e, t) {
}
function qg() {
As = {};
}
function P1(e, t, n) {
!t && !As[n] && (e(!1, n), As[n] = !0);
}
function pt(e, t) {
P1(Wg, e, t);
}
function Hg(e, t) {
P1(Zg, e, t);
}
pt.preMessage = Bg;
pt.resetWarned = qg;
pt.noteOnce = Hg;
function Ug(e, t, n) {
const r = W(), i = () => {
r.current && cancelAnimationFrame(r.current);
}, a = Si((o) => {
i(), r.current = requestAnimationFrame(() => {
if (n.current) {
const l = o.format("YYYY-M"), c = n.current.querySelector(`[data-year-month="${l}"]`);
c && c.scrollIntoView({
block: "start",
inline: "nearest"
});
}
});
});
return J(() => {
if (t && e)
return a(e), i;
}, [e, t]), a;
}
me.extend(Zl);
me.extend(kg);
const Me = "adm-calendar-picker-view", M1 = s.createContext({
visible: !1
}), zg = {
weekStartsOn: "Sunday",
defaultValue: null,
allowClear: !0,
usePopup: !0,
selectionMode: "single"
}, Kg = we((e, t) => {
var n;
const r = W(null), i = me(), a = Y(zg, e), {
locale: o
} = fe(), l = [...o.Calendar.markItems];
if (a.weekStartsOn === "Sunday") {
const A = l.pop();
A && l.unshift(A);
}
const [c, u] = ue({
value: a.value === void 0 ? void 0 : Au(a.selectionMode, a.value),
defaultValue: Au(a.selectionMode, a.defaultValue),
onChange: (A) => {
var M, N;
a.selectionMode === "single" ? (M = a.onChange) === null || M === void 0 || M.call(a, A ? A[0] : null) : a.selectionMode === "range" && ((N = a.onChange) === null || N === void 0 || N.call(a, A));
}
}), [f, d] = Q(!1), [m, h] = Q(() => me(c ? c[0] : i).date(1)), E = (A) => {
A && h(me(A[0]).date(1)), u(A);
}, b = a.title !== !1, g = ot(M1), v = Ug(m, g.visible, r), [w, p] = Q(m), [y, C] = Q(() => m.add(6, "month"));
J(() => {
if (c) {
const [A, M] = c;
!a.min && A && me(A).isBefore(w) && p(me(A).date(1)), !a.max && M && me(M).isAfter(y) && C(me(M).endOf("month"));
}
}, [c]);
const x = de(() => a.max ? me(a.max) : y, [a.max, y]), k = de(() => a.min ? me(a.min) : w, [a.min, w]);
$e(t, () => ({
jumpTo: (A) => {
let M;
typeof A == "function" ? M = A({
year: m.year(),
month: m.month() + 1
}) : M = A;
const N = $g(M);
h(N), v(N);
},
jumpToToday: () => {
const A = me().date(1);
h(A), v(A);
},
getDateRange: () => c
}));
const _ = s.createElement("div", {
className: `${Me}-header`
}, s.createElement("div", {
className: `${Me}-title`
}, (n = a.title) !== null && n !== void 0 ? n : o.Calendar.title));
function R() {
var A;
const M = [];
let N = k;
for (; N.isSameOrBefore(x, "month"); ) {
const T = N.year(), P = N.month() + 1, S = {
year: T,
month: P
}, I = `${T}-${P}`, $ = a.weekStartsOn === "Monday" ? N.date(1).isoWeekday() - 1 : N.date(1).isoWeekday(), F = $ == 7 ? null : Array($).fill(null).map((L, B) => s.createElement("div", {
key: B,
className: `${Me}-cell`
}));
M.push(s.createElement("div", {
key: I,
"data-year-month": I
}, s.createElement("div", {
className: `${Me}-title`
}, (A = o.Calendar.yearAndMonth) === null || A === void 0 ? void 0 : A.replace(/\${(.*?)}/g, (L, B) => {
var j;
return (j = S[B]) === null || j === void 0 ? void 0 : j.toString();
})), s.createElement("div", {
className: `${Me}-cells`
}, F, Array(N.daysInMonth()).fill(null).map((L, B) => {
const j = N.date(B + 1);
let q = !1, H = !1, X = !1, te = !1, ae = !1;
if (c) {
const [G, pe] = c;
H = j.isSame(G, "day"), X = j.isSame(pe, "day"), q = H || X || j.isAfter(G, "day") && j.isBefore(pe, "day"), q && (te = (M.length % 7 === 0 || j.isSame(j.startOf("month"), "day")) && !H, ae = (M.length % 7 === 6 || j.isSame(j.endOf("month"), "day")) && !X);
}
const re = a.shouldDisableDate ? a.shouldDisableDate(j.toDate()) : x && j.isAfter(x, "day") || k && j.isBefore(k, "day"), z = () => {
var G;
if (a.renderTop === !1)
return null;
const pe = (oe) => s.createElement("div", {
className: `${Me}-cell-top`
}, oe), le = (G = a.renderTop) === null || G === void 0 ? void 0 : G.call(a, j.toDate());
if (le)
return pe(le);
if (a.selectionMode === "range") {
if (H && X)
return pe(o.Calendar.startAndEnd);
if (H)
return pe(o.Calendar.start);
if (X)
return pe(o.Calendar.end);
}
return j.isSame(i, "day") && !q ? pe(o.Calendar.today) : pe(null);
}, ne = () => {
var G;
return a.renderBottom === !1 ? null : s.createElement("div", {
className: `${Me}-cell-bottom`
}, (G = a.renderBottom) === null || G === void 0 ? void 0 : G.call(a, j.toDate()));
};
return s.createElement("div", {
key: j.valueOf(),
className: Z(`${Me}-cell`, {
[`${Me}-cell-today`]: j.isSame(i, "day"),
[`${Me}-cell-selected`]: q,
[`${Me}-cell-selected-begin`]: H,
[`${Me}-cell-selected-end`]: X,
[`${Me}-cell-selected-row-begin`]: te,
[`${Me}-cell-selected-row-end`]: ae,
[`${Me}-cell-disabled`]: !!re
}),
onClick: () => {
if (!a.selectionMode || re)
return;
const G = j.toDate();
function pe() {
if (!a.allowClear || !c)
return !1;
const [le, oe] = c;
return j.isSame(le, "date") && j.isSame(oe, "day");
}
if (a.selectionMode === "single") {
if (a.allowClear && pe()) {
E(null);
return;
}
E([G, G]);
} else if (a.selectionMode === "range") {
if (!c) {
E([G, G]), d(!0);
return;
}
if (pe()) {
E(null), d(!1);
return;
}
if (f) {
const le = c[0];
E(le > G ? [G, le] : [le, G]), d(!1);
} else
E([G, G]), d(!0);
}
}
}, z(), s.createElement("div", {
className: `${Me}-cell-date`
}, a.renderDate ? a.renderDate(j.toDate()) : j.date()), ne());
})))), N = N.add(1, "month");
}
return M;
}
const O = s.createElement("div", {
className: `${Me}-body`,
ref: r
}, R()), V = s.createElement("div", {
className: `${Me}-mark`
}, l.map((A, M) => s.createElement("div", {
key: M,
className: `${Me}-mark-cell`
}, A)));
return U(a, s.createElement("div", {
className: Me
}, b && _, V, O));
}), aa = "adm-divider", Yg = {
contentPosition: "center",
direction: "horizontal"
}, Ts = (e) => {
const t = Y(Yg, e);
return U(t, s.createElement("div", {
className: Z(aa, `${aa}-${t.direction}`, `${aa}-${t.contentPosition}`)
}, t.children && s.createElement("div", {
className: `${aa}-content`
}, t.children)));
}, oa = "adm-calendar-picker", Gg = {
weekStartsOn: "Sunday",
defaultValue: null,
allowClear: !0,
usePopup: !0,
selectionMode: "single"
}, Tb = we((e, t) => {
const n = Y(Gg, e), {
locale: r
} = fe(), i = t ?? W(null), {
visible: a,
confirmText: o,
popupClassName: l,
popupStyle: c,
popupBodyStyle: u,
forceRender: f,
closeOnMaskClick: d,
onClose: m,
onConfirm: h,
onMaskClick: E,
getContainer: b
} = n, g = mn(n, ["visible", "confirmText", "popupClassName", "popupStyle", "popupBodyStyle", "forceRender", "closeOnMaskClick", "onClose", "onConfirm", "onMaskClick", "getContainer"]), v = s.useMemo(() => ({
visible: !!a
}), [a]), w = s.createElement("div", {
className: `${oa}-footer`
}, s.createElement(Ts, null), s.createElement("div", {
className: `${oa}-footer-bottom`
}, s.createElement(Kt, {
color: "primary",
onClick: () => {
var p, y, C, x;
const k = (y = (p = i.current) === null || p === void 0 ? void 0 : p.getDateRange()) !== null && y !== void 0 ? y : null;
n.selectionMode === "single" ? (C = n.onConfirm) === null || C === void 0 || C.call(n, k ? k[0] : null) : n.selectionMode === "range" && ((x = n.onConfirm) === null || x === void 0 || x.call(n, k)), m == null || m();
}
}, o ?? r.Calendar.confirm)));
return U(n, s.createElement("div", {
className: oa
}, s.createElement(Br, {
visible: a,
className: Z(`${oa}-popup`, l),
showCloseButton: !0,
forceRender: t ? !0 : f,
style: c,
bodyStyle: Object.assign({
borderTopLeftRadius: "8px",
borderTopRightRadius: "8px",
minHeight: "80vh",
overflow: "auto"
}, u),
onClose: m,
onMaskClick: () => {
E == null || E(), d && (m == null || m());
},
getContainer: b
}, s.createElement(M1.Provider, {
value: v
}, s.createElement(Kg, Object.assign({
ref: i
}, g))), w)));
});
function Ki(e, t) {
const n = Xt(e);
De(() => {
const r = t.current;
if (r)
if (window.ResizeObserver) {
let i;
const a = new ResizeObserver(() => {
i = window.requestAnimationFrame(() => n(r));
});
return a.observe(r), () => {
window.cancelAnimationFrame(i), a.disconnect();
};
} else
n(r);
}, [t]);
}
function A1(e, t, n) {
if (e && typeof MutationObserver < "u") {
let r = new MutationObserver(() => {
n();
});
return r.observe(e, t), () => {
r && (r.disconnect(), r = null);
};
}
return () => {
};
}
function zl(e, t, n) {
const r = Xt(e);
J(() => A1(t.current, n, r), [t]);
}
function Re(e, t, n) {
let r = e;
return t !== void 0 && (r = Math.max(e, t)), n !== void 0 && (r = Math.min(r, n)), r;
}
const T1 = (e, t) => {
const [{
scrollLeft: n
}, r] = Ve(() => ({
scrollLeft: 0,
config: {
tension: 300,
clamp: !0
}
}));
function i(a = !1) {
const o = e.current;
if (!o || t === void 0)
return;
const c = o.children.item(t).children.item(0), u = c.offsetLeft, f = c.offsetWidth, d = o.offsetWidth, m = o.scrollWidth, h = o.scrollLeft;
if (m - d <= 0)
return;
const b = Re(u - (d - f) / 2, 0, m - d);
r.start({
scrollLeft: b,
from: {
scrollLeft: h
},
immediate: a && !n.isAnimating
});
}
return De(() => {
i(!0);
}, []), zi(() => {
i();
}, [t]), zl(() => {
i(!0);
}, e, {
subtree: !0,
childList: !0,
characterData: !0
}), {
scrollLeft: n,
animate: i
};
}, sa = "adm-scroll-mask", I1 = (e) => {
const t = W(null), [{
leftMaskOpacity: n,
rightMaskOpacity: r
}, i] = Ve(() => ({
leftMaskOpacity: 0,
rightMaskOpacity: 0,
config: {
clamp: !0
}
})), {
run: a
} = so((o = !1) => {
if (!t.current)
return;
const c = e.scrollTrackRef.current;
if (!c)
return;
const u = c.scrollLeft, f = u > 0, d = u + c.offsetWidth < c.scrollWidth;
i.start({
leftMaskOpacity: f ? 1 : 0,
rightMaskOpacity: d ? 1 : 0,
immediate: o
});
}, {
wait: 100,
trailing: !0,
leading: !0
});
return J(() => {
a(!0);
}, []), J(() => {
const o = e.scrollTrackRef.current;
if (o)
return o.addEventListener("scroll", a), () => o.removeEventListener("scroll", a);
}, []), s.createElement(s.Fragment, null, s.createElement(xe.div, {
ref: t,
className: Z(sa, `${sa}-left`),
style: {
opacity: n
}
}), s.createElement(xe.div, {
className: Z(sa, `${sa}-right`),
style: {
opacity: r
}
}));
};
function kn(e, t) {
let n = 0;
function r(i) {
s.Children.forEach(i, (a) => {
Wn.isFragment(a) ? r(a.props.children) : (t(a, n), n += 1);
});
}
r(e);
}
const en = "adm-capsule-tabs", Xg = () => null, Qg = (e) => {
var t;
const n = W(null), r = W(null), i = {};
let a = null;
const o = [];
kn(e.children, (d, m) => {
if (!En(d))
return;
const h = d.key;
if (typeof h != "string")
return;
m === 0 && (a = h);
const E = o.push(d);
i[h] = E - 1;
});
const [l, c] = ue({
value: e.activeKey,
defaultValue: (t = e.defaultActiveKey) !== null && t !== void 0 ? t : a,
onChange: (d) => {
var m;
d !== null && ((m = e.onChange) === null || m === void 0 || m.call(e, d));
}
}), {
scrollLeft: u,
animate: f
} = T1(n, i[l]);
return Ki(() => {
f(!0);
}, r), U(e, s.createElement("div", {
className: en,
ref: r
}, s.createElement("div", {
className: `${en}-header`
}, s.createElement(I1, {
scrollTrackRef: n
}), s.createElement(xe.div, {
className: `${en}-tab-list`,
ref: n,
scrollLeft: u
}, o.map((d) => U(d.props, s.createElement("div", {
key: d.key,
className: `${en}-tab-wrapper`
}, s.createElement("div", {
onClick: () => {
const {
key: m
} = d;
d.props.disabled || m != null && c(m.toString());
},
className: Z(`${en}-tab`, {
[`${en}-tab-active`]: d.key === l,
[`${en}-tab-disabled`]: d.props.disabled
})
}, d.props.title)))))), o.map((d) => {
if (d.props.children === void 0)
return null;
const m = d.key === l;
return s.createElement(Vr, {
key: d.key,
active: m,
forceRender: d.props.forceRender,
destroyOnClose: d.props.destroyOnClose
}, s.createElement("div", {
className: `${en}-content`,
style: {
display: m ? "block" : "none"
}
}, d.props.children));
})));
}, Ib = ge(Qg, {
Tab: Xg
}), or = "adm-card", Lb = (e) => {
const t = () => e.title || e.extra ? s.createElement("div", {
className: Z(`${or}-header`, e.headerClassName),
style: e.headerStyle,
onClick: e.onHeaderClick
}, e.icon && s.createElement("div", {
className: `${or}-header-icon`
}, e.icon), s.createElement("div", {
className: `${or}-header-title`
}, e.title), e.extra && s.createElement("div", {
className: `${or}-header-extra`
}, e.extra)) : null, n = () => e.children ? s.createElement("div", {
className: Z(`${or}-body`, e.bodyClassName),
style: e.bodyStyle,
onClick: e.onBodyClick
}, e.children) : null;
return U(e, s.createElement("div", {
className: or,
onClick: e.onClick
}, t(), n()));
};
function Vu(e, t, n) {
return e * t * n / (t + n * e);
}
function Oi(e, t, n, r, i = 0.15) {
return i === 0 ? Re(e, t, n) : e < t ? -Vu(t - e, r, i) + t : e > n ? +Vu(e - n, r, i) + n : e;
}
var Jg = typeof Element < "u", e4 = typeof Map == "function", t4 = typeof Set == "function", n4 = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function Oa(e, t) {
if (e === t)
return !0;
if (e && t && typeof e == "object" && typeof t == "object") {
if (e.constructor !== t.constructor)
return !1;
var n, r, i;
if (Array.isArray(e)) {
if (n = e.length, n != t.length)
return !1;
for (r = n; r-- !== 0; )
if (!Oa(e[r], t[r]))
return !1;
return !0;
}
var a;
if (e4 && e instanceof Map && t instanceof Map) {
if (e.size !== t.size)
return !1;
for (a = e.entries(); !(r = a.next()).done; )
if (!t.has(r.value[0]))
return !1;
for (a = e.entries(); !(r = a.next()).done; )
if (!Oa(r.value[1], t.get(r.value[0])))
return !1;
return !0;
}
if (t4 && e instanceof Set && t instanceof Set) {
if (e.size !== t.size)
return !1;
for (a = e.entries(); !(r = a.next()).done; )
if (!t.has(r.value[0]))
return !1;
return !0;
}
if (n4 && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
if (n = e.length, n != t.length)
return !1;
for (r = n; r-- !== 0; )
if (e[r] !== t[r])
return !1;
return !0;
}
if (e.constructor === RegExp)
return e.source === t.source && e.flags === t.flags;
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function")
return e.valueOf() === t.valueOf();
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function")
return e.toString() === t.toString();
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
return !1;
for (r = n; r-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(t, i[r]))
return !1;
if (Jg && e instanceof Element)
return !1;
for (r = n; r-- !== 0; )
if (!((i[r] === "_owner" || i[r] === "__v" || i[r] === "__o") && e.$$typeof) && !Oa(e[i[r]], t[i[r]]))
return !1;
return !0;
}
return e !== e && t !== t;
}
var r4 = function(t, n) {
try {
return Oa(t, n);
} catch (r) {
if ((r.message || "").match(/stack|recursion/i))
return console.warn("react-fast-compare cannot handle circular refs"), !1;
throw r;
}
};
const Is = /* @__PURE__ */ Ot(r4);
function L1(e) {
if (e == null || e === "")
return 0;
const t = e.trim();
return t.endsWith("px") ? parseFloat(t) : t.endsWith("rem") ? parseFloat(t) * parseFloat(window.getComputedStyle(document.documentElement).fontSize) : t.endsWith("vw") ? parseFloat(t) * window.innerWidth / 100 : 0;
}
const Rt = "adm-picker-view", D1 = Ke((e) => {
const {
value: t,
column: n,
renderLabel: r
} = e;
function i(v) {
e.onSelect(v, e.index);
}
const [{
y: a
}, o] = Ve(() => ({
from: {
y: 0
},
config: {
tension: 400,
mass: 0.8
}
})), l = W(!1), c = W(null), u = W(null), f = W(34);
De(() => {
const v = u.current;
v && (f.current = L1(window.getComputedStyle(v).getPropertyValue("height")));
}), De(() => {
if (l.current || t === null)
return;
const v = n.findIndex((p) => p.value === t);
if (v < 0)
return;
const w = v * -f.current;
o.start({
y: w,
immediate: a.goal !== w
});
}, [t, n]), De(() => {
if (n.length === 0)
t !== null && i(null);
else if (!n.some((v) => v.value === t)) {
const v = n[0];
i(v.value);
}
}, [n, t]);
function d(v) {
const w = v * -f.current;
o.start({
y: w
});
const p = n[v];
p && i(p.value);
}
const m = (v) => {
const {
direction: [, w],
distance: [, p],
velocity: [, y],
offset: [, C],
last: x
} = v;
return {
direction: w,
distance: p,
velocity: y,
offset: C,
last: x
};
}, h = (v) => {
l.current = !0;
const w = -((n.length - 1) * f.current), p = 0, {
direction: y,
last: C,
velocity: x,
offset: k
} = m(v);
if (C) {
l.current = !1;
const _ = k + x * y * 50, R = Re(_, w, p), O = -Math.round(R / f.current);
d(O);
} else {
const _ = k;
o.start({
y: Oi(_, w, p, f.current * 50, 0.2)
});
}
}, E = (v) => {
l.current = !0;
const w = -((n.length - 1) * f.current), p = 0, {
direction: y,
last: C,
velocity: x,
distance: k
} = m(v), _ = -y, R = a.get();
if (C) {
l.current = !1;
const O = x * _ * 50, V = R + k * _ + O, A = Re(V, w, p), M = -Math.round(A / f.current);
d(M);
} else {
const O = R + k * _;
o.start({
y: Oi(O, w, p, f.current * 50, 0.2)
});
}
};
Bt((v) => {
v.event.stopPropagation(), h(v);
}, {
axis: "y",
from: () => [0, a.get()],
filterTaps: !0,
pointer: {
touch: !0
},
target: c
}), S3((v) => {
v.event.stopPropagation(), E(v);
}, {
target: e.mouseWheel ? c : void 0,
axis: "y",
from: () => [0, a.get()],
preventDefault: !0,
eventOptions: Un ? {
passive: !1
} : void 0
});
let b = null;
function g() {
if (b === null)
return null;
const v = n[b], w = b - 1, p = b + 1, y = n[w], C = n[p];
return s.createElement("div", {
className: `${Rt}-column-accessible`
}, s.createElement("div", {
className: `${Rt}-column-accessible-current`,
role: "button",
"aria-label": v ? `当前选择的是:${v.label}` : "当前未选择"
}, "-"), s.createElement("div", {
className: `${Rt}-column-accessible-button`,
onClick: () => {
y && d(w);
},
role: y ? "button" : "text",
"aria-label": y ? `选择上一项:${y.label}` : "没有上一项"
}, "-"), s.createElement("div", {
className: `${Rt}-column-accessible-button`,
onClick: () => {
C && d(p);
},
role: C ? "button" : "text",
"aria-label": C ? `选择下一项:${C.label}` : "没有下一项"
}, "-"));
}
return s.createElement("div", {
className: `${Rt}-column`
}, s.createElement("div", {
className: `${Rt}-item-height-measure`,
ref: u
}), s.createElement(xe.div, {
ref: c,
style: {
translateY: a
},
className: `${Rt}-column-wheel`,
"aria-hidden": !0
}, n.map((v, w) => {
var p;
const y = e.value === v.value;
y && (b = w);
function C() {
l.current = !1, d(w);
}
return s.createElement("div", {
key: (p = v.key) !== null && p !== void 0 ? p : v.value,
"data-selected": y,
className: Z(`${Rt}-column-item`, {
[`${Rt}-column-item-active`]: y
}),
onClick: C,
"aria-hidden": !y,
"aria-label": y ? "active" : ""
}, s.createElement("div", {
className: `${Rt}-column-item-label`
}, r(v)));
})), g());
}, (e, t) => !(e.index !== t.index || e.value !== t.value || e.onSelect !== t.onSelect || e.renderLabel !== t.renderLabel || e.mouseWheel !== t.mouseWheel || !Is(e.column, t.column)));
D1.displayName = "Wheel";
function ju(e) {
let t = null;
return () => (t === null && (t = e()), t);
}
function V1(e, t) {
const n = ju(() => (typeof e == "function" ? e(t) : e).map((o) => o.map((l) => typeof l == "string" ? {
label: l,
value: l
} : l))), r = ju(() => t.map((a, o) => {
var l;
const c = n()[o];
return c && (l = c.find((u) => u.value === a)) !== null && l !== void 0 ? l : null;
}));
return {
get columns() {
return n();
},
get items() {
return r();
}
};
}
function j1(e, t) {
return de(() => V1(e, t), [e, t]);
}
const B1 = (e) => e.label;
var W1 = { exports: {} }, Z1 = {};
/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Or = s;
function i4(e, t) {
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
}
var a4 = typeof Object.is == "function" ? Object.is : i4, o4 = Or.useState, s4 = Or.useEffect, l4 = Or.useLayoutEffect, c4 = Or.useDebugValue;
function u4(e, t) {
var n = t(), r = o4({ inst: { value: n, getSnapshot: t } }), i = r[0].inst, a = r[1];
return l4(function() {
i.value = n, i.getSnapshot = t, es(i) && a({ inst: i });
}, [e, n, t]), s4(function() {
return es(i) && a({ inst: i }), e(function() {
es(i) && a({ inst: i });
});
}, [e]), c4(n), n;
}
function es(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !a4(e, n);
} catch {
return !0;
}
}
function f4(e, t) {
return t();
}
var d4 = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f4 : u4;
Z1.useSyncExternalStore = Or.useSyncExternalStore !== void 0 ? Or.useSyncExternalStore : d4;
W1.exports = Z1;
var m4 = W1.exports;
let Kl = !1;
const Ls = /* @__PURE__ */ new Set();
function q1() {
Ls.forEach((e) => {
e();
});
}
function Db() {
Kl = !0, q1(), gt.assign({
skipAnimation: !0
});
}
function Vb() {
Kl = !1, q1(), gt.assign({
skipAnimation: !1
});
}
function Bu() {
return Kl;
}
function h4(e) {
return Ls.add(e), () => {
Ls.delete(e);
};
}
function v4() {
return m4.useSyncExternalStore(h4, Bu, Bu);
}
const ts = "adm-spin-loading", p4 = {
default: "var(--adm-color-weak)",
primary: "var(--adm-color-primary)",
white: "var(--adm-color-white)"
}, g4 = {
color: "default"
}, y4 = 15 * 3.14159265358979 * 2, Yl = Ke((e) => {
var t;
const n = Y(g4, e), r = v4(), {
percent: i
} = Ve({
cancel: r,
loop: {
reverse: !0
},
from: {
percent: 80
},
to: {
percent: 30
},
config: {
duration: 1200
}
});
return U(n, s.createElement(xe.div, {
className: ts,
style: {
"--color": (t = p4[n.color]) !== null && t !== void 0 ? t : n.color,
"--percent": i
}
}, s.createElement("svg", {
className: `${ts}-svg`,
viewBox: "0 0 32 32"
}, s.createElement(xe.circle, {
className: `${ts}-fill`,
fill: "transparent",
strokeWidth: "2",
strokeDasharray: y4,
strokeDashoffset: i,
strokeLinecap: "square",
r: 15,
cx: 16,
cy: 16
}))));
}), gr = "adm-picker-view", b4 = {
defaultValue: [],
renderLabel: B1,
mouseWheel: !1,
loadingContent: s.createElement("div", {
className: `${gr}-loading-content`
}, s.createElement(Yl, null))
}, To = Ke((e) => {
const t = Y(b4, e), [n, r] = Q(t.value === void 0 ? t.defaultValue : t.value);
J(() => {
t.value !== void 0 && t.value !== n && r(t.value);
}, [t.value]), J(() => {
if (t.value === n)
return;
const l = window.setTimeout(() => {
t.value !== void 0 && t.value !== n && r(t.value);
}, 1e3);
return () => {
window.clearTimeout(l);
};
}, [t.value, n]);
const i = j1(t.columns, n), a = i.columns;
iv(() => {
var l;
t.value !== n && ((l = t.onChange) === null || l === void 0 || l.call(t, n, i));
}, [n], {
wait: 0,
leading: !1,
trailing: !0
});
const o = Ue((l, c) => {
r((u) => {
const f = [...u];
return f[c] = l, f;
});
}, []);
return U(t, s.createElement("div", {
className: `${gr}`
}, t.loading ? t.loadingContent : s.createElement(s.Fragment, null, a.map((l, c) => s.createElement(D1, {
key: c,
index: c,
column: l,
value: n[c],
onSelect: o,
renderLabel: t.renderLabel,
mouseWheel: t.mouseWheel
})), s.createElement("div", {
className: `${gr}-mask`
}, s.createElement("div", {
className: `${gr}-mask-top`
}), s.createElement("div", {
className: `${gr}-mask-middle`
}), s.createElement("div", {
className: `${gr}-mask-bottom`
})))));
});
To.displayName = "PickerView";
const tn = "adm-picker", E4 = {
defaultValue: [],
closeOnMaskClick: !0,
renderLabel: B1,
destroyOnClose: !1,
forceRender: !1
}, Gl = Ke(we((e, t) => {
var n;
const {
locale: r
} = fe(), i = Y(E4, {
confirmText: r.common.confirm,
cancelText: r.common.cancel
}, e), [a, o] = ue({
value: i.visible,
defaultValue: !1,
onChange: (g) => {
var v;
g === !1 && ((v = i.onClose) === null || v === void 0 || v.call(i));
}
}), l = {
toggle: () => {
o((g) => !g);
},
open: () => {
o(!0);
},
close: () => {
o(!1);
}
};
$e(t, () => l);
const [c, u] = ue(Object.assign(Object.assign({}, i), {
onChange: (g) => {
var v;
const w = V1(i.columns, g);
(v = i.onConfirm) === null || v === void 0 || v.call(i, g, w);
}
})), f = j1(i.columns, c), [d, m] = Q(c);
J(() => {
d !== c && m(c);
}, [a]), J(() => {
a || m(c);
}, [c]);
const h = Xt((g, v) => {
var w;
m(g), a && ((w = i.onSelect) === null || w === void 0 || w.call(i, g, v));
}), E = U(i, s.createElement("div", {
className: tn
}, s.createElement("div", {
className: `${tn}-header`
}, s.createElement("a", {
role: "button",
className: `${tn}-header-button`,
onClick: () => {
var g;
(g = i.onCancel) === null || g === void 0 || g.call(i), o(!1);
}
}, i.cancelText), s.createElement("div", {
className: `${tn}-header-title`
}, i.title), s.createElement("a", {
role: "button",
className: Z(`${tn}-header-button`, i.loading && `${tn}-header-button-disabled`),
onClick: () => {
i.loading || (u(d, !0), o(!1));
},
"aria-disabled": i.loading
}, i.confirmText)), s.createElement("div", {
className: `${tn}-body`
}, s.createElement(To, {
loading: i.loading,
loadingContent: i.loadingContent,
columns: i.columns,
renderLabel: i.renderLabel,
value: d,
mouseWheel: i.mouseWheel,
onChange: h
})))), b = s.createElement(Br, {
style: i.popupStyle,
className: Z(`${tn}-popup`, i.popupClassName),
visible: a,
position: "bottom",
onMaskClick: () => {
var g;
i.closeOnMaskClick && ((g = i.onCancel) === null || g === void 0 || g.call(i), o(!1));
},
getContainer: i.getContainer,
destroyOnClose: i.destroyOnClose,
afterShow: i.afterShow,
afterClose: i.afterClose,
onClick: i.onClick,
forceRender: i.forceRender,
stopPropagation: i.stopPropagation
}, E, s.createElement(Wr, {
position: "bottom"
}));
return s.createElement(s.Fragment, null, b, (n = i.children) === null || n === void 0 ? void 0 : n.call(i, f.items, l));
}));
Gl.displayName = "Picker";
function w4(e) {
return new Promise((t) => {
const n = () => {
const [i, a] = Q(!1);
return J(() => {
a(!0);
}, []), s.createElement(Gl, Object.assign({}, e, {
visible: i,
onConfirm: (o, l) => {
var c;
(c = e.onConfirm) === null || c === void 0 || c.call(e, o, l), t(o);
},
onClose: () => {
var o;
(o = e.onClose) === null || o === void 0 || o.call(e), a(!1), t(null);
},
afterClose: () => {
var o;
(o = e.afterClose) === null || o === void 0 || o.call(e), r();
}
}));
}, r = Ui(s.createElement(n, null));
});
}
const H1 = ge(Gl, {
prompt: w4
});
function U1(e) {
const t = de(() => {
let n = 0;
function r(i, a) {
a > n && (n = a);
const o = a + 1;
i.forEach((l) => {
l.children && r(l.children, o);
});
}
return r(e, 1), n;
}, [e]);
return (n) => {
const r = [];
let i = e, a = 0;
for (; ; ) {
r.push(i.map((c) => ({
label: c.label,
value: c.value
})));
const o = n[a], l = i.find((c) => c.value === o);
if (!l || !l.children)
break;
i = l.children, a++;
}
for (; a < t - 1; )
r.push([]), a++;
return r;
};
}
const z1 = we((e, t) => {
const {
options: n
} = e, r = mn(e, ["options"]), i = U1(n);
return s.createElement(H1, Object.assign({}, r, {
ref: t,
columns: i
}));
});
function C4(e) {
return new Promise((t) => {
const n = () => {
const [i, a] = Q(!1);
return J(() => {
a(!0);
}, []), s.createElement(z1, Object.assign({}, e, {
visible: i,
onConfirm: (o, l) => {
var c;
(c = e.onConfirm) === null || c === void 0 || c.call(e, o, l), t(o);
},
onClose: () => {
var o;
(o = e.onClose) === null || o === void 0 || o.call(e), a(!1), t(null);
},
afterClose: () => {
var o;
(o = e.afterClose) === null || o === void 0 || o.call(e), r();
}
}));
}, r = Ui(s.createElement(n, null));
});
}
const jb = ge(z1, {
prompt: C4
}), Bb = (e) => {
const {
options: t
} = e, n = mn(e, ["options"]), r = U1(t);
return s.createElement(To, Object.assign({}, n, {
columns: r
}));
}, Yi = (e = {}) => de(() => {
const {
label: n = "label",
value: r = "value",
disabled: i = "disabled",
children: a = "children"
} = e;
return [n, r, a, i];
}, [JSON.stringify(e)]), Gr = "adm-list", x4 = {
mode: "default"
}, k4 = we((e, t) => {
const n = Y(x4, e), r = W(null);
return $e(t, () => ({
get nativeElement() {
return r.current;
}
})), U(n, s.createElement("div", {
className: Z(Gr, `${Gr}-${n.mode}`),
ref: r
}, n.header && s.createElement("div", {
className: `${Gr}-header`
}, n.header), s.createElement("div", {
className: `${Gr}-body`
}, s.createElement("div", {
className: `${Gr}-body-inner`
}, n.children))));
});
function fn(e) {
return e != null && e !== !1;
}
const Wt = "adm-list-item", $4 = (e) => {
var t, n;
const {
arrow: r,
arrowIcon: i
} = e, {
list: a = {}
} = fe(), o = (t = e.clickable) !== null && t !== void 0 ? t : !!e.onClick, l = (n = r ?? i) !== null && n !== void 0 ? n : o, c = wn(a.arrowIcon, r !== !0 ? r : void 0, i !== !0 ? i : void 0), u = s.createElement("div", {
className: `${Wt}-content`
}, fn(e.prefix) && s.createElement("div", {
className: `${Wt}-content-prefix`
}, e.prefix), s.createElement("div", {
className: `${Wt}-content-main`
}, fn(e.title) && s.createElement("div", {
className: `${Wt}-title`
}, e.title), e.children, fn(e.description) && s.createElement("div", {
className: `${Wt}-description`
}, e.description)), fn(e.extra) && s.createElement("div", {
className: `${Wt}-content-extra`
}, e.extra), l && s.createElement("div", {
className: `${Wt}-content-arrow`
}, c || s.createElement(_p, null)));
return U(e, s.createElement(o ? "a" : "div", {
className: Z(`${Wt}`, o ? ["adm-plain-anchor"] : [], e.disabled && `${Wt}-disabled`),
onClick: e.disabled ? void 0 : e.onClick
}, u));
}, Lt = ge(k4, {
Item: $4
}), K1 = dl(null), _4 = "adm-check-list", S4 = {
multiple: !1,
defaultValue: [],
activeIcon: s.createElement(Dd, null)
}, O4 = (e) => {
const {
checkList: t = {}
} = fe(), n = Y(S4, t, e), [r, i] = ue(n);
function a(d) {
n.multiple ? i([...r, d]) : i([d]);
}
function o(d) {
i(r.filter((m) => m !== d));
}
const {
activeIcon: l,
extra: c,
disabled: u,
readOnly: f
} = n;
return s.createElement(K1.Provider, {
value: {
value: r,
check: a,
uncheck: o,
activeIcon: l,
extra: c,
disabled: u,
readOnly: f
}
}, U(n, s.createElement(Lt, {
mode: n.mode,
className: _4
}, n.children)));
}, la = "adm-check-list-item", F4 = (e) => {
const t = ot(K1);
if (t === null)
return null;
const n = t.value.includes(e.value), r = e.readOnly || t.readOnly, i = n ? t.activeIcon : null, a = t.extra ? t.extra(n) : i, o = s.createElement("div", {
className: `${la}-extra`
}, a);
return U(e, s.createElement(Lt.Item, {
title: e.title,
className: Z(la, r && `${la}-readonly`, n && `${la}-active`),
description: e.description,
prefix: e.prefix,
onClick: (l) => {
var c;
r || (n ? t.uncheck(e.value) : t.check(e.value), (c = e.onClick) === null || c === void 0 || c.call(e, l));
},
arrow: !1,
clickable: !r,
extra: o,
disabled: e.disabled || t.disabled
}, e.children));
}, Wu = ge(O4, {
Item: F4
});
function R4(e, t) {
const n = [];
for (let r = e; r <= t; r++)
n.push(r);
return n;
}
const Fi = "adm-skeleton", Xl = (e) => U(e, s.createElement("div", {
className: Z(Fi, {
[`${Fi}-animated`]: e.animated
})
})), N4 = (e) => U(e, s.createElement(Xl, {
animated: e.animated,
className: `${Fi}-title`
})), P4 = {
lineCount: 3
}, M4 = (e) => {
const t = Y(P4, e), n = R4(1, t.lineCount), r = s.createElement("div", {
className: `${Fi}-paragraph`
}, n.map((i) => s.createElement(Xl, {
key: i,
animated: t.animated,
className: `${Fi}-paragraph-line`
})));
return U(t, r);
}, ca = ge(Xl, {
Title: N4,
Paragraph: M4
}), Ge = "adm-tabs", A4 = () => null, T4 = {
activeLineMode: "auto",
stretch: !0,
direction: "ltr"
}, I4 = (e) => {
var t;
const n = Y(T4, e), r = W(null), i = W(null), a = W({}), o = {};
let l = null;
const c = [], u = n.direction === "rtl";
kn(n.children, (_, R) => {
if (!En(_))
return;
const O = _.key;
if (typeof O != "string")
return;
R === 0 && (l = O);
const V = c.push(_);
o[O] = V - 1;
});
const [f, d] = ue({
value: n.activeKey,
defaultValue: (t = n.defaultActiveKey) !== null && t !== void 0 ? t : l,
onChange: (_) => {
var R;
_ !== null && ((R = n.onChange) === null || R === void 0 || R.call(n, _));
}
}), m = W(null), [{
x: h,
width: E
}, b] = Ve(() => ({
x: 0,
width: 0,
config: {
tension: 300,
clamp: !0
}
})), [{
scrollLeft: g
}, v] = Ve(() => ({
scrollLeft: 0,
config: {
tension: 300,
clamp: !0
}
})), [{
leftMaskOpacity: w,
rightMaskOpacity: p
}, y] = Ve(() => ({
leftMaskOpacity: 0,
rightMaskOpacity: 0,
config: {
clamp: !0
}
}));
function C(_ = !1, R = !1) {
const O = r.current;
if (!O)
return;
const V = o[f];
if (V === void 0) {
b.start({
x: 0,
width: 0,
immediate: !0
});
return;
}
const A = i.current;
if (!A)
return;
const M = O.children.item(V + 1), N = M.children.item(0), T = N.offsetLeft, P = N.offsetWidth, S = M.offsetLeft, I = M.offsetWidth, $ = O.offsetWidth, F = O.scrollWidth, L = O.scrollLeft, B = A.offsetWidth;
let j = 0, q = 0;
if (n.activeLineMode === "auto" ? (j = T, q = P) : n.activeLineMode === "full" ? (j = S, q = I) : j = T + (P - B) / 2, u) {
const te = ["auto", "full"].includes(n.activeLineMode) ? q : B;
j = -($ - j - te);
}
b.start({
x: j,
width: q,
immediate: _
});
const H = F - $;
if (H <= 0)
return;
let X = 0;
u ? X = -Re($ / 2 - T + P / 2 - B, 0, H) : X = Re(T - ($ - P) / 2, 0, H), (!R || n.autoScroll !== !1) && v.start({
scrollLeft: X,
from: {
scrollLeft: L
},
immediate: _
});
}
De(() => {
C(!h.isAnimating);
}, []), zi(() => {
C();
}, [f, u, n.activeLineMode]), Ki(() => {
C(!h.isAnimating);
}, r), zl(() => {
C(!h.isAnimating, !0);
}, r, {
subtree: !0,
childList: !0,
characterData: !0
});
const {
run: x
} = so((_) => {
const R = r.current;
if (!R)
return;
const O = R.scrollLeft;
let V = !1, A = !1;
u ? (V = Math.round(-O) + R.offsetWidth < R.scrollWidth, A = O < 0) : (V = O > 0, A = O + R.offsetWidth < R.scrollWidth), y.start({
leftMaskOpacity: V ? 1 : 0,
rightMaskOpacity: A ? 1 : 0,
immediate: _
});
}, {
wait: 100,
trailing: !0,
leading: !0
});
De(() => {
x(!0);
}, []);
const k = (_) => {
const R = Object.keys(o), O = o[f], V = u ? _.key === "ArrowLeft" : _.key === "ArrowRight", A = u ? _.key === "ArrowRight" : _.key === "ArrowLeft", T = ((P, S) => {
const I = R.length;
for (let $ = 0; $ < I; $++) {
const F = (P + S * ($ + 1) + I) % I, L = R[F], B = c.find((j) => j.key === L);
if (!(B != null && B.props.disabled))
return L;
}
return R[P];
})(O, V ? 1 : -1);
(V || A) && (_.preventDefault(), m.current = T, d(T));
};
return J(() => {
var _;
f && a.current[f] && m.current === f && ((_ = a.current[f]) === null || _ === void 0 || _.focus(), m.current = null);
}, [f]), U(n, s.createElement("div", {
className: Ge,
style: {
direction: n.direction
}
}, s.createElement("div", {
className: `${Ge}-header`
}, s.createElement(xe.div, {
className: Z(`${Ge}-header-mask`, `${Ge}-header-mask-left`),
style: {
opacity: w
}
}), s.createElement(xe.div, {
className: Z(`${Ge}-header-mask`, `${Ge}-header-mask-right`),
style: {
opacity: p
}
}), s.createElement(xe.div, {
className: `${Ge}-tab-list`,
ref: r,
scrollLeft: g,
onScroll: x,
onKeyDown: k,
role: "tablist"
}, s.createElement(xe.div, {
ref: i,
className: `${Ge}-tab-line`,
style: {
width: n.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : E,
x: h
}
}), c.map((_) => U(_.props, s.createElement("div", {
key: _.key,
className: Z(`${Ge}-tab-wrapper`, {
[`${Ge}-tab-wrapper-stretch`]: n.stretch
})
}, s.createElement("div", {
role: "tab",
"aria-selected": _.key === f,
tabIndex: _.key === f ? 0 : -1,
ref: (R) => a.current[_.key] = R,
onClick: () => {
const {
key: R
} = _;
_.props.disabled || R != null && d(R.toString());
},
className: Z(`${Ge}-tab`, {
[`${Ge}-tab-active`]: _.key === f,
[`${Ge}-tab-disabled`]: _.props.disabled
})
}, _.props.title)))))), c.map((_) => {
if (_.props.children === void 0)
return null;
const R = _.key === f;
return s.createElement(Vr, {
key: _.key,
active: R,
forceRender: _.props.forceRender,
destroyOnClose: _.props.destroyOnClose
}, s.createElement("div", {
className: `${Ge}-content`,
style: {
display: R ? "block" : "none"
}
}, _.props.children));
})));
}, Zu = ge(I4, {
Tab: A4
}), Ql = [];
function L4(e) {
var t = e + "", n = t.indexOf("...");
return n >= 0 && (n < t.indexOf(")") || t.indexOf("arguments") >= 0);
}
function qu(e, t) {
t || (t = {});
var n = t.vargs || L4(e), r = [], i = /* @__PURE__ */ new Map(), a, o, l = function(h) {
return o = setTimeout(function() {
if (a) {
i.delete(h);
return;
}
r.splice(h, 1);
}, t.maxAge);
}, c = t.maxAge > 0 && t.maxAge < 1 / 0 ? l : 0, u = t.equals ? t.equals : 0, f = t.maxArgs, d = t.serializer, m;
return e.length === 1 && !t.equals && !n ? (m = function(h) {
d && (h = d(h));
var E;
return i.get(h) || (!c || c(h), i.set(h, E = e.call(this, h)), E);
}, a = 1) : u ? m = function() {
for (var h = f || arguments.length, E = r.length, b = -1; ++b < E; )
if (r[b].length === h) {
for (var g = -1; ++g < h && u(arguments[g], r[b][g]); )
;
if (g === h)
return r[b].val;
}
return r[b] = arguments, !c || c(b), arguments.val = e.apply(this, r[b]);
} : m = function() {
for (var h = f || arguments.length, E = r.length, b = -1; ++b < E; )
if (r[b].length === h) {
for (var g = -1; ++g < h && arguments[g] === r[b][g]; )
;
if (g === h)
return r[b].val;
}
return r[b] = arguments, !c || c(b), arguments.val = e.apply(this, r[b]);
}, m.clear = function() {
o && clearTimeout(o), i.clear(), r = [];
}, m.keys = function() {
return a ? [
...i.keys()
] : r.slice();
}, m.values = function() {
return a ? [
...i.values()
] : r.map((h) => h.val);
}, m;
}
function Y1(e, t) {
const {
valueName: n,
childrenName: r
} = t, i = de(() => qu((l) => {
const c = [];
let u = e;
for (const f of l) {
const d = u.find((m) => m[n] === f);
if (!d || (c.push(d), !d[r]))
break;
u = d[r];
}
return c;
}, {
equals: Is
}), [e]), a = de(() => qu((l) => l.reduce((u, f) => {
var d;
return ((d = u.find((m) => m[n] === f)) === null || d === void 0 ? void 0 : d[r]) || [];
}, e).length === 0, {
equals: Is
}), [e]);
function o(l) {
return {
get items() {
return i(l);
},
get isLeaf() {
return a(l);
}
};
}
return o;
}
const wt = "adm-cascader-view", D4 = {
defaultValue: []
}, V4 = (e) => {
const t = Y(D4, e), {
locale: n
} = fe(), [r, i, a, o] = Yi(t.fieldNames), l = Y1(t.options, {
valueName: i,
childrenName: a
}), [c, u] = ue(Object.assign(Object.assign({}, t), {
onChange: (g) => {
var v;
(v = t.onChange) === null || v === void 0 || v.call(t, g, l(g));
}
})), [f, d] = Q(0), m = de(() => {
const g = [];
let v = t.options, w = !1;
for (const p of c) {
const y = v.find((C) => C[i] === p);
if (g.push({
selected: y,
options: v
}), !y || !y[a]) {
w = !0;
break;
}
v = y[a];
}
return w || g.push({
selected: void 0,
options: v
}), g;
}, [c, t.options]);
hl(() => {
var g;
(g = t.onTabsChange) === null || g === void 0 || g.call(t, f);
}, [f]), J(() => {
d(m.length - 1);
}, [c]), J(() => {
const g = m.length - 1;
f > g && d(g);
}, [f, m]);
const h = (g, v) => {
const w = c.slice(0, v);
g !== void 0 && (w[v] = g), u(w);
}, E = (g) => t.loading || g === Ql, b = t.placeholder || n.Cascader.placeholder;
return U(t, s.createElement("div", {
className: wt
}, s.createElement(Zu, {
activeKey: f.toString(),
onChange: (g) => {
const v = parseInt(g);
d(v);
},
stretch: !1,
className: `${wt}-tabs`
}, m.map((g, v) => {
const w = g.selected;
return s.createElement(Zu.Tab, {
key: v.toString(),
title: s.createElement("div", {
className: `${wt}-header-title`
}, w ? w[r] : typeof b == "function" ? b(v) : b),
forceRender: !0
}, s.createElement("div", {
className: `${wt}-content`
}, E(g.options) ? s.createElement("div", {
className: `${wt}-skeleton`
}, s.createElement(ca, {
className: `${wt}-skeleton-line-1`,
animated: !0
}), s.createElement(ca, {
className: `${wt}-skeleton-line-2`,
animated: !0
}), s.createElement(ca, {
className: `${wt}-skeleton-line-3`,
animated: !0
}), s.createElement(ca, {
className: `${wt}-skeleton-line-4`,
animated: !0
})) : s.createElement(Wu, {
value: [c[v]],
onChange: (p) => h(p[0], v),
activeIcon: t.activeIcon
}, g.options.map((p) => {
const y = c[v] === p[i];
return s.createElement(Wu.Item, {
value: p[i],
key: p[i],
disabled: p[o],
className: Z(`${wt}-item`, {
[`${wt}-item-active`]: y
})
}, t.optionRender ? t.optionRender(p, {
depth: v,
active: y
}) : p[r]);
}))));
}))));
}, j4 = ge(V4, {
optionSkeleton: Ql
}), $n = "adm-cascader", B4 = {
defaultValue: [],
destroyOnClose: !0,
forceRender: !1
}, G1 = we((e, t) => {
var n;
const {
locale: r
} = fe(), i = Y(B4, {
confirmText: r.common.confirm,
cancelText: r.common.cancel,
placeholder: r.Cascader.placeholder
}, e), [a, o] = ue({
value: i.visible,
defaultValue: !1,
onChange: (v) => {
var w;
v === !1 && ((w = i.onClose) === null || w === void 0 || w.call(i));
}
}), l = {
toggle: () => {
o((v) => !v);
},
open: () => {
o(!0);
},
close: () => {
o(!1);
}
};
$e(t, () => l);
const [c, u] = ue(Object.assign(Object.assign({}, i), {
onChange: (v) => {
var w;
(w = i.onConfirm) === null || w === void 0 || w.call(i, v, m(v));
}
})), [, f, d] = Yi(i.fieldNames), m = Y1(i.options, {
valueName: f,
childrenName: d
}), [h, E] = Q(c);
J(() => {
E(c);
}, [a, c]);
const b = U(i, s.createElement("div", {
className: $n
}, s.createElement("div", {
className: `${$n}-header`
}, s.createElement("a", {
className: `${$n}-header-button`,
onClick: () => {
var v;
(v = i.onCancel) === null || v === void 0 || v.call(i), o(!1);
}
}, i.cancelText), s.createElement("div", {
className: `${$n}-header-title`
}, i.title), s.createElement("a", {
className: `${$n}-header-button`,
onClick: () => {
u(h, !0), o(!1);
}
}, i.confirmText)), s.createElement("div", {
className: `${$n}-body`
}, s.createElement(j4, Object.assign({}, i, {
value: h,
onChange: (v, w) => {
var p;
E(v), a && ((p = i.onSelect) === null || p === void 0 || p.call(i, v, w));
}
}))))), g = s.createElement(Br, {
className: `${$n}-popup`,
visible: a,
position: "bottom",
onMaskClick: () => {
var v;
(v = i.onCancel) === null || v === void 0 || v.call(i), o(!1);
},
getContainer: i.getContainer,
destroyOnClose: i.destroyOnClose,
forceRender: i.forceRender,
afterShow: i.afterShow,
afterClose: i.afterClose,
onClick: i.onClick,
stopPropagation: i.stopPropagation
}, b);
return s.createElement(s.Fragment, null, g, (n = i.children) === null || n === void 0 ? void 0 : n.call(i, m(c).items, l));
});
function W4(e) {
return new Promise((t) => {
const n = () => {
const [i, a] = Q(!1);
return J(() => {
a(!0);
}, []), s.createElement(G1, Object.assign({}, e, {
visible: i,
onConfirm: (o, l) => {
var c;
(c = e.onConfirm) === null || c === void 0 || c.call(e, o, l), t(o);
},
onClose: () => {
var o;
(o = e.onClose) === null || o === void 0 || o.call(e), a(!1), t(null);
},
afterClose: () => {
var o;
(o = e.afterClose) === null || o === void 0 || o.call(e), r();
}
}));
}, r = Ui(s.createElement(n, null));
});
}
const Wb = ge(G1, {
prompt: W4,
optionSkeleton: Ql
}), Xr = "adm-center-popup", Z4 = Object.assign(Object.assign({}, Il), {
getContainer: null
}), X1 = (e) => {
const {
popup: t = {}
} = fe(), n = Y(Z4, t, e), r = yl(), i = Ve({
scale: n.visible ? 1 : 0.8,
opacity: n.visible ? 1 : 0,
config: {
mass: 1.2,
tension: 200,
friction: 25,
clamp: !0
},
onRest: () => {
var d, m;
r.current || (o(n.visible), n.visible ? (d = n.afterShow) === null || d === void 0 || d.call(n) : (m = n.afterClose) === null || m === void 0 || m.call(n));
}
}), [a, o] = Q(n.visible);
De(() => {
n.visible && o(!0);
}, [n.visible]);
const l = W(null);
lo(l, n.disableBodyScroll && a);
const c = jd(a && n.visible), u = s.createElement("div", {
className: Z(`${Xr}-body`, n.bodyClassName),
style: n.bodyStyle
}, n.children), f = vn(n.stopPropagation, U(n, s.createElement("div", {
className: Xr,
style: {
display: a ? void 0 : "none",
pointerEvents: a ? void 0 : "none"
}
}, n.mask && s.createElement(ji, {
visible: c,
forceRender: n.forceRender,
destroyOnClose: n.destroyOnClose,
onMaskClick: (d) => {
var m, h;
(m = n.onMaskClick) === null || m === void 0 || m.call(n, d), n.closeOnMaskClick && ((h = n.onClose) === null || h === void 0 || h.call(n));
},
style: n.maskStyle,
className: Z(`${Xr}-mask`, n.maskClassName),
disableBodyScroll: !1,
stopPropagation: n.stopPropagation
}), s.createElement("div", {
className: `${Xr}-wrap`,
role: n.role,
"aria-label": n["aria-label"]
}, s.createElement(xe.div, {
style: Object.assign(Object.assign({}, i), {
pointerEvents: i.opacity.to((d) => d === 1 ? "unset" : "none")
}),
ref: l
}, n.showCloseButton && s.createElement("a", {
className: Z(`${Xr}-close`, "adm-plain-anchor"),
onClick: () => {
var d;
(d = n.onClose) === null || d === void 0 || d.call(n);
}
}, n.closeIcon), u)))));
return s.createElement(Vr, {
active: a,
forceRender: n.forceRender,
destroyOnClose: n.destroyOnClose
}, Dr(n.getContainer, f));
}, Q1 = dl(null), q4 = {
disabled: !1,
defaultValue: []
}, H4 = (e) => {
const t = Y(q4, e), [n, r] = ue(t);
return s.createElement(
Q1.Provider,
{
// TODO: 性能优化
value: {
value: n,
disabled: t.disabled,
check: (i) => {
r([...n, i]);
},
uncheck: (i) => {
r(n.filter((a) => a !== i));
}
}
},
t.children
);
}, J1 = Ke((e) => U(e, s.createElement("svg", {
viewBox: "0 0 40 40"
}, s.createElement("path", {
d: "M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",
fill: "currentColor"
})))), U4 = Ke((e) => U(e, s.createElement("svg", {
viewBox: "0 0 40 40"
}, s.createElement("path", {
d: "M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",
fill: "currentColor"
})))), e0 = (e) => {
const t = W(null), n = Xt((r) => {
r.stopPropagation(), r.stopImmediatePropagation();
const i = r.target.checked;
i !== e.checked && e.onChange(i);
});
return J(() => {
if (e.disabled || !t.current)
return;
const r = t.current;
return r.addEventListener("click", n), () => {
r.removeEventListener("click", n);
};
}, [e.disabled, e.onChange]), s.createElement("input", {
ref: t,
type: e.type,
checked: e.checked,
onChange: () => {
},
disabled: e.disabled,
id: e.id
});
}, nn = "adm-checkbox", z4 = {
defaultChecked: !1,
indeterminate: !1
}, K4 = we((e, t) => {
const n = ot(Q1), r = Y(z4, e);
let [i, a] = ue({
value: r.checked,
defaultValue: r.defaultChecked,
onChange: r.onChange
}), o = r.disabled;
const {
value: l
} = r;
n && l !== void 0 && (i = n.value.includes(l), a = (u) => {
var f;
u ? n.check(l) : n.uncheck(l), (f = r.onChange) === null || f === void 0 || f.call(r, u);
}, o = o || n.disabled), $e(t, () => ({
check: () => {
a(!0);
},
uncheck: () => {
a(!1);
},
toggle: () => {
a(!i);
}
}));
const c = () => r.icon ? s.createElement("div", {
className: `${nn}-custom-icon`
}, r.icon(i, r.indeterminate)) : s.createElement("div", {
className: `${nn}-icon`
}, r.indeterminate ? s.createElement(U4, null) : i && s.createElement(J1, null));
return U(r, s.createElement("label", {
onClick: r.onClick,
className: Z(nn, {
[`${nn}-checked`]: i && !r.indeterminate,
[`${nn}-indeterminate`]: r.indeterminate,
[`${nn}-disabled`]: o,
[`${nn}-block`]: r.block
})
}, s.createElement(e0, {
type: "checkbox",
checked: i,
onChange: a,
disabled: o,
id: r.id
}), c(), r.children && s.createElement("div", {
className: `${nn}-content`
}, r.children)));
}), Hu = ge(K4, {
Group: H4
}), Vn = "adm-collapse", Y4 = () => null, G4 = (e) => {
const {
visible: t
} = e, n = W(null), r = yo(t, e.forceRender, e.destroyOnClose), [{
height: i
}, a] = Ve(() => ({
from: {
height: 0
},
config: {
precision: 0.01,
mass: 1,
tension: 200,
friction: 25,
clamp: !0
}
}));
return Kh(() => {
if (!t)
return;
const o = n.current;
o && a.start({
height: o.offsetHeight,
immediate: !0
});
}), zi(() => {
const o = n.current;
if (o)
if (t) {
let l = 0, c = () => {
};
const u = () => {
l += 1;
const f = l;
a.start({
height: o.offsetHeight
})[0].then(() => {
f === l && c();
});
};
return c = A1(o, {
childList: !0,
subtree: !0
}, u), u(), c;
} else
a.start({
height: o.offsetHeight,
immediate: !0
}), a.start({
height: 0
});
}, [t]), s.createElement(xe.div, {
className: Z(`${Vn}-panel-content`, {
[`${Vn}-panel-content-active`]: t
}),
style: {
height: i.to((o) => i.idle && t ? "auto" : o)
}
}, s.createElement("div", {
className: `${Vn}-panel-content-inner`,
ref: n
}, s.createElement(Lt.Item, null, r && e.children)));
}, X4 = (e) => {
const {
collapse: t = {}
} = fe(), n = Y(t, e), r = [];
kn(n.children, (c) => {
!En(c) || typeof c.key != "string" || r.push(c);
});
const i = () => {
var c;
if (!n.accordion)
return {
value: n.activeKey,
defaultValue: (c = n.defaultActiveKey) !== null && c !== void 0 ? c : [],
onChange: n.onChange
};
const u = {
value: [],
defaultValue: [],
onChange: (f) => {
var d, m;
(d = n.onChange) === null || d === void 0 || d.call(n, (m = f[0]) !== null && m !== void 0 ? m : null);
}
};
return n.activeKey === void 0 ? u.value = void 0 : n.activeKey !== null && (u.value = [n.activeKey]), [null, void 0].includes(n.defaultActiveKey) || (u.defaultValue = [n.defaultActiveKey]), u;
}, [a, o] = ue(i()), l = a === null ? [] : Array.isArray(a) ? a : [a];
return U(n, s.createElement("div", {
className: Vn
}, s.createElement(Lt, null, r.map((c) => {
const u = c.key, f = l.includes(u);
function d(E) {
var b, g;
n.accordion ? o(f ? [] : [u]) : o(f ? l.filter((v) => v !== u) : [...l, u]), (g = (b = c.props).onClick) === null || g === void 0 || g.call(b, E);
}
const m = wn(s.createElement(Vd, null), n.arrow, n.arrowIcon, c.props.arrow, c.props.arrowIcon), h = typeof m == "function" ? m(f) : s.createElement("div", {
className: Z(`${Vn}-arrow`, {
[`${Vn}-arrow-active`]: f
})
}, m);
return s.createElement(s.Fragment, {
key: u
}, U(c.props, s.createElement(Lt.Item, {
className: `${Vn}-panel-header`,
onClick: d,
disabled: c.props.disabled,
arrowIcon: h
}, c.props.title)), s.createElement(G4, {
visible: f,
forceRender: !!c.props.forceRender,
destroyOnClose: !!c.props.destroyOnClose
}, c.props.children));
}))));
}, Zb = ge(X4, {
Panel: Y4
}), Zn = "TILL_NOW", rn = {
year: 0,
month: 1,
day: 2,
hour: 3,
minute: 4,
second: 5
};
function Q4(e, t) {
return new Date(Date.UTC(e, t, 0)).getUTCDate();
}
function J4(e, t, n, r, i, a, o) {
const l = [], c = t.getFullYear(), u = t.getMonth() + 1, f = t.getDate(), d = t.getHours(), m = t.getMinutes(), h = t.getSeconds(), E = n.getFullYear(), b = n.getMonth() + 1, g = n.getDate(), v = n.getHours(), w = n.getMinutes(), p = n.getSeconds(), y = rn[r], C = parseInt(e[0]), x = parseInt(e[1]), k = parseInt(e[2]), _ = parseInt(e[3]), R = parseInt(e[4]), O = parseInt(e[5]), V = C === c, A = C === E, M = V && x === u, N = A && x === b, T = M && k === f, P = N && k === g, S = T && _ === d, I = P && _ === v, $ = S && R === m, F = I && R === w, L = (B, j, q) => {
let H = [];
for (let ae = B; ae <= j; ae++)
H.push(ae);
const X = e.slice(0, rn[q]), te = a == null ? void 0 : a[q];
return te && typeof te == "function" && (H = H.filter((ae) => te(ae, {
get date() {
const re = [...X, ae.toString()];
return t0(re);
}
}))), H;
};
if (y >= rn.year) {
const q = L(c, E, "year");
l.push(q.map((H) => ({
label: i("year", H, {
selected: C === H
}),
value: H.toString()
})));
}
if (y >= rn.month) {
const q = L(V ? u : 1, A ? b : 12, "month");
l.push(q.map((H) => ({
label: i("month", H, {
selected: x === H
}),
value: H.toString()
})));
}
if (y >= rn.day) {
const B = M ? f : 1, j = N ? g : Q4(C, x), q = L(B, j, "day");
l.push(q.map((H) => ({
label: i("day", H, {
selected: k === H
}),
value: H.toString()
})));
}
if (y >= rn.hour) {
const q = L(T ? d : 0, P ? v : 23, "hour");
l.push(q.map((H) => ({
label: i("hour", H, {
selected: _ === H
}),
value: H.toString()
})));
}
if (y >= rn.minute) {
const q = L(S ? m : 0, I ? w : 59, "minute");
l.push(q.map((H) => ({
label: i("minute", H, {
selected: R === H
}),
value: H.toString()
})));
}
if (y >= rn.second) {
const q = L($ ? h : 0, F ? p : 59, "second");
l.push(q.map((H) => ({
label: i("second", H, {
selected: O === H
}),
value: H.toString()
})));
}
if (o && (l[0].push({
label: i("now", null, {
selected: e[0] === Zn
}),
value: Zn
}), Zn === (e == null ? void 0 : e[0])))
for (let B = 1; B < l.length; B += 1)
l[B] = [];
return l;
}
function e5(e) {
return e ? [e.getFullYear().toString(), (e.getMonth() + 1).toString(), e.getDate().toString(), e.getHours().toString(), e.getMinutes().toString(), e.getSeconds().toString()] : [];
}
function t0(e) {
var t, n, r, i, a, o;
const l = (t = e[0]) !== null && t !== void 0 ? t : "1900", c = (n = e[1]) !== null && n !== void 0 ? n : "1", u = (r = e[2]) !== null && r !== void 0 ? r : "1", f = (i = e[3]) !== null && i !== void 0 ? i : "0", d = (a = e[4]) !== null && a !== void 0 ? a : "0", m = (o = e[5]) !== null && o !== void 0 ? o : "0";
return new Date(parseInt(l), parseInt(c) - 1, parseInt(u), parseInt(f), parseInt(d), parseInt(m));
}
var n0 = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
var n = "month", r = "quarter";
return function(i, a) {
var o = a.prototype;
o.quarter = function(u) {
return this.$utils().u(u) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (u - 1));
};
var l = o.add;
o.add = function(u, f) {
return u = Number(u), this.$utils().p(f) === r ? this.add(3 * u, n) : l.bind(this)(u, f);
};
var c = o.startOf;
o.startOf = function(u, f) {
var d = this.$utils(), m = !!d.u(f) || f;
if (d.p(u) === r) {
var h = this.quarter() - 1;
return m ? this.month(3 * h).startOf(n).startOf("day") : this.month(3 * h + 2).endOf(n).endOf("day");
}
return c.bind(this)(u, f);
};
};
});
})(n0);
var t5 = n0.exports;
const n5 = /* @__PURE__ */ Ot(t5);
me.extend(n5);
const ua = {
year: 0,
quarter: 1
};
function r5(e, t, n, r, i, a) {
const o = [], l = t.getFullYear(), c = n.getFullYear(), u = ua[r], f = parseInt(e[0]), d = f === l, m = f === c, h = me(t), E = me(n), b = h.quarter(), g = E.quarter(), v = parseInt(e[1]), w = (p, y, C) => {
let x = [];
for (let R = p; R <= y; R++)
x.push(R);
const k = e.slice(0, ua[C]), _ = a == null ? void 0 : a[C];
return _ && typeof _ == "function" && (x = x.filter((R) => _(R, {
get date() {
const O = [...k, R.toString()];
return r0(O);
}
}))), x;
};
if (u >= ua.year) {
const C = w(l, c, "year");
o.push(C.map((x) => ({
label: i("year", x, {
selected: f === x
}),
value: x.toString()
})));
}
if (u >= ua.quarter) {
const C = w(d ? b : 1, m ? g : 4, "quarter");
o.push(C.map((x) => ({
label: i("quarter", x, {
selected: v === x
}),
value: x.toString()
})));
}
return o;
}
function i5(e) {
if (!e)
return [];
const t = me(e);
return [t.year().toString(), t.quarter().toString()];
}
function r0(e) {
var t, n;
const r = (t = e[0]) !== null && t !== void 0 ? t : "1900", i = (n = e[1]) !== null && n !== void 0 ? n : "1";
return me().year(parseInt(r)).quarter(parseInt(i)).hour(0).minute(0).second(0).toDate();
}
var i0 = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
return function(n, r) {
r.prototype.isLeapYear = function() {
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
};
};
});
})(i0);
var a5 = i0.exports;
const o5 = /* @__PURE__ */ Ot(a5);
var a0 = { exports: {} };
(function(e, t) {
(function(n, r) {
e.exports = r();
})(vt, function() {
return function(n, r) {
r.prototype.isoWeeksInYear = function() {
var i = this.isLeapYear(), a = this.endOf("y").day();
return a === 4 || i && a === 5 ? 53 : 52;
};
};
});
})(a0);
var s5 = a0.exports;
const l5 = /* @__PURE__ */ Ot(s5);
me.extend(Zl);
me.extend(l5);
me.extend(o5);
const Qr = {
year: 0,
week: 1,
"week-day": 2
};
function c5(e, t, n, r, i, a) {
const o = [], l = me(t), c = me(n), u = l.isoWeekYear(), f = c.isoWeekYear(), d = Qr[r], m = parseInt(e[0]), h = m === u, E = m === f, b = l.isoWeek(), g = c.isoWeek(), v = l.isoWeekday(), w = c.isoWeekday(), p = parseInt(e[1]), y = parseInt(e[2]), C = h && p === b, x = E && p === g, k = me(`${m}-01-01`).isoWeeksInYear(), _ = (R, O, V) => {
let A = [];
for (let T = R; T <= O; T++)
A.push(T);
const M = e.slice(0, Qr[V]), N = a == null ? void 0 : a[V];
return N && typeof N == "function" && (A = A.filter((T) => N(T, {
get date() {
const P = [...M, T.toString()];
return o0(P);
}
}))), A;
};
if (d >= Qr.year) {
const V = _(u, f, "year");
o.push(V.map((A) => ({
label: i("year", A, {
selected: m === A
}),
value: A.toString()
})));
}
if (d >= Qr.week) {
const V = _(h ? b : 1, E ? g : k, "week");
o.push(V.map((A) => ({
label: i("week", A, {
selected: p === A
}),
value: A.toString()
})));
}
if (d >= Qr["week-day"]) {
const V = _(C ? v : 1, x ? w : 7, "week-day");
o.push(V.map((A) => ({
label: i("week-day", A, {
selected: y === A
}),
value: A.toString()
})));
}
return o;
}
function u5(e) {
if (!e)
return [];
const t = me(e);
return [t.isoWeekYear().toString(), t.isoWeek().toString(), t.isoWeekday().toString()];
}
function o0(e) {
var t, n, r;
const i = (t = e[0]) !== null && t !== void 0 ? t : "1900", a = (n = e[1]) !== null && n !== void 0 ? n : "1", o = (r = e[2]) !== null && r !== void 0 ? r : "1";
return me(`${parseInt(i)}-01-04`).isoWeek(parseInt(a)).isoWeekday(parseInt(o)).hour(0).minute(0).second(0).toDate();
}
const f5 = {
year: 1,
month: 2,
day: 3,
hour: 4,
minute: 5,
second: 6
}, s0 = (e, t) => {
if (t.includes("week"))
return u5(e);
if (t.includes("quarter"))
return i5(e);
{
const n = t;
return e5(e).slice(0, f5[n]);
}
}, Ds = (e, t) => {
if ((e == null ? void 0 : e[0]) === Zn) {
const n = /* @__PURE__ */ new Date();
return n.tillNow = !0, n;
}
return t.includes("week") ? o0(e) : t.includes("quarter") ? r0(e) : t0(e);
}, l0 = (e, t, n, r, i, a, o) => r.startsWith("week") ? c5(e, t, n, r, i, a) : r.startsWith("quarter") ? r5(e, t, n, r, i, a) : J4(e, t, n, r, i, a, o);
function c0(e) {
const {
locale: t
} = fe();
return Ue((n, r, i) => {
if (e)
return e(n, r, i);
switch (n) {
case "minute":
case "second":
case "hour":
return ("0" + r.toString()).slice(-2);
case "now":
return t.DatePicker.tillNow;
default:
return r.toString();
}
}, [e]);
}
const Uu = (/* @__PURE__ */ new Date()).getFullYear(), d5 = {
min: new Date((/* @__PURE__ */ new Date()).setFullYear(Uu - 10)),
max: new Date((/* @__PURE__ */ new Date()).setFullYear(Uu + 10)),
precision: "day",
defaultValue: null
}, u0 = we((e, t) => {
const n = Y(d5, e), {
renderLabel: r
} = n, [i, a] = ue({
value: n.value,
defaultValue: n.defaultValue,
onChange: (m) => {
var h;
m !== null && ((h = n.onConfirm) === null || h === void 0 || h.call(n, m));
}
}), o = de(() => /* @__PURE__ */ new Date(), []), l = c0(r), c = de(() => {
let m = i ?? o;
return m.tillNow ? [Zn] : (m = new Date(Re(m.getTime(), n.min.getTime(), n.max.getTime())), s0(m, n.precision));
}, [i, n.precision, n.min, n.max]), u = Ue((m) => {
const h = Ds(m, n.precision);
a(h, !0);
}, [a, n.precision]), f = Xt((m) => {
var h;
const E = Ds(m, n.precision);
(h = n.onSelect) === null || h === void 0 || h.call(n, E);
}), d = Ue((m) => l0(m, n.min, n.max, n.precision, l, n.filter, n.tillNow), [n.min, n.max, n.precision, l, n.tillNow]);
return U(n, s.createElement(H1, {
ref: t,
columns: d,
value: c,
onCancel: n.onCancel,
onClose: n.onClose,
closeOnMaskClick: n.closeOnMaskClick,
visible: n.visible,
confirmText: n.confirmText,
cancelText: n.cancelText,
onConfirm: u,
onSelect: f,
getContainer: n.getContainer,
loading: n.loading,
loadingContent: n.loadingContent,
afterShow: n.afterShow,
afterClose: n.afterClose,
onClick: n.onClick,
title: n.title,
stopPropagation: n.stopPropagation,
mouseWheel: n.mouseWheel,
destroyOnClose: n.destroyOnClose,
forceRender: n.forceRender
}, (m, h) => {
var E;
return (E = n.children) === null || E === void 0 ? void 0 : E.call(n, i, h);
}));
});
function m5(e) {
return new Promise((t) => {
const n = () => {
const [i, a] = Q(!1);
return J(() => {
a(!0);
}, []), s.createElement(u0, Object.assign({}, e, {
visible: i,
onConfirm: (o) => {
var l;
(l = e.onConfirm) === null || l === void 0 || l.call(e, o), t(o);
},
onClose: () => {
var o;
(o = e.onClose) === null || o === void 0 || o.call(e), a(!1), t(null);
},
afterClose: () => {
var o;
(o = e.afterClose) === null || o === void 0 || o.call(e), r();
}
}));
}, r = Ui(s.createElement(n, null));
});
}
const qb = ge(u0, {
prompt: m5,
DATE_NOW: Zn
}), zu = (/* @__PURE__ */ new Date()).getFullYear(), h5 = {
min: new Date((/* @__PURE__ */ new Date()).setFullYear(zu - 10)),
max: new Date((/* @__PURE__ */ new Date()).setFullYear(zu + 10)),
precision: "day"
}, Hb = (e) => {
var t;
const n = Y(h5, e), {
renderLabel: r
} = n, [i, a] = ue({
value: n.value,
defaultValue: (t = n.defaultValue) !== null && t !== void 0 ? t : null
}), o = c0(r), l = de(() => i != null && i.tillNow ? [Zn, null, null] : s0(i, n.precision), [i, n.precision]), c = Ue((u) => {
var f;
const d = Ds(u, n.precision);
d && (a(d), (f = n.onChange) === null || f === void 0 || f.call(n, d));
}, [n.onChange, n.precision]);
return U(n, s.createElement(To, {
columns: (u) => l0(u, n.min, n.max, n.precision, o, n.filter, n.tillNow),
loading: n.loading,
loadingContent: n.loadingContent,
value: l,
mouseWheel: n.mouseWheel,
onChange: c
}));
}, v5 = (e) => {
const {
action: t
} = e;
return U(e.action, s.createElement(Kt, {
key: t.key,
onClick: e.onAction,
className: Z("adm-dialog-button", {
"adm-dialog-button-bold": t.bold
}),
fill: "none",
shape: "rectangular",
block: !0,
color: t.danger ? "danger" : "primary",
loading: "auto",
disabled: t.disabled
}, t.text));
}, p5 = {
actions: [],
closeOnAction: !1,
closeOnMaskClick: !1,
getContainer: null
}, f0 = (e) => {
const t = Y(p5, e), n = s.createElement(s.Fragment, null, !!t.image && s.createElement("div", {
className: Nt("image-container")
}, s.createElement(xo, {
src: t.image,
alt: "dialog header image",
width: "100%"
})), !!t.header && s.createElement("div", {
className: Nt("header")
}, s.createElement(_i, null, t.header)), !!t.title && s.createElement("div", {
className: Nt("title")
}, t.title), s.createElement("div", {
className: Z(Nt("content"), !t.content && Nt("content-empty"))
}, typeof t.content == "string" ? s.createElement(_i, null, t.content) : t.content), s.createElement("div", {
className: Nt("footer")
}, t.actions.map((r, i) => {
const a = Array.isArray(r) ? r : [r];
return s.createElement("div", {
className: Nt("action-row"),
key: i
}, a.map((o, l) => s.createElement(v5, {
key: o.key,
action: o,
onAction: () => Te(void 0, void 0, void 0, function* () {
var c, u, f;
yield Promise.all([(c = o.onClick) === null || c === void 0 ? void 0 : c.call(o), (u = t.onAction) === null || u === void 0 ? void 0 : u.call(t, o, l)]), t.closeOnAction && ((f = t.onClose) === null || f === void 0 || f.call(t));
})
})));
})));
return s.createElement(X1, {
className: Z(Nt(), t.className),
style: t.style,
afterClose: t.afterClose,
afterShow: t.afterShow,
onMaskClick: t.closeOnMaskClick ? () => {
var r;
(r = t.onClose) === null || r === void 0 || r.call(t);
} : void 0,
visible: t.visible,
getContainer: t.getContainer,
bodyStyle: t.bodyStyle,
bodyClassName: Z(Nt("body"), t.image && Nt("with-image"), t.bodyClassName),
maskStyle: t.maskStyle,
maskClassName: t.maskClassName,
stopPropagation: t.stopPropagation,
disableBodyScroll: t.disableBodyScroll,
destroyOnClose: t.destroyOnClose,
forceRender: t.forceRender,
role: "dialog",
"aria-label": t["aria-label"]
}, n);
};
function Nt(e = "") {
return "adm-dialog" + (e && "-") + e;
}
const Vs = /* @__PURE__ */ new Set();
function Jl(e) {
const t = Yn(s.createElement(f0, Object.assign({}, e, {
afterClose: () => {
var n;
Vs.delete(t.close), (n = e.afterClose) === null || n === void 0 || n.call(e);
}
})));
return Vs.add(t.close), t;
}
function g5(e) {
const t = {
confirmText: Ti().locale.Dialog.ok
}, n = Y(t, e);
return new Promise((r) => {
Jl(Object.assign(Object.assign({}, n), {
closeOnAction: !0,
actions: [{
key: "confirm",
text: n.confirmText
}],
onAction: n.onConfirm,
onClose: () => {
var i;
(i = n.onClose) === null || i === void 0 || i.call(n), r();
}
}));
});
}
const y5 = {
confirmText: "确认",
cancelText: "取消"
};
function b5(e) {
const {
locale: t
} = Ti(), n = Y(y5, {
confirmText: t.common.confirm,
cancelText: t.common.cancel
}, e);
return new Promise((r) => {
Jl(Object.assign(Object.assign({}, n), {
closeOnAction: !0,
onClose: () => {
var i;
(i = n.onClose) === null || i === void 0 || i.call(n), r(!1);
},
actions: [[{
key: "cancel",
text: n.cancelText,
onClick: () => Te(this, void 0, void 0, function* () {
var i;
yield (i = n.onCancel) === null || i === void 0 ? void 0 : i.call(n), r(!1);
})
}, {
key: "confirm",
text: n.confirmText,
bold: !0,
onClick: () => Te(this, void 0, void 0, function* () {
var i;
yield (i = n.onConfirm) === null || i === void 0 ? void 0 : i.call(n), r(!0);
})
}]]
}));
});
}
function E5() {
Vs.forEach((e) => {
e();
});
}
const Ub = ge(f0, {
show: Jl,
alert: g5,
confirm: b5,
clear: E5
});
var ec = {};
Object.defineProperty(ec, "__esModule", {
value: !0
});
var Fa = ec.default = void 0, d0 = function(t) {
return +setTimeout(t, 16);
}, m0 = function(t) {
return clearTimeout(t);
};
typeof window < "u" && "requestAnimationFrame" in window && (d0 = function(t) {
return window.requestAnimationFrame(t);
}, m0 = function(t) {
return window.cancelAnimationFrame(t);
});
var Ku = 0, tc = /* @__PURE__ */ new Map();
function h0(e) {
tc.delete(e);
}
var v0 = function(t) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
Ku += 1;
var r = Ku;
function i(a) {
if (a === 0)
h0(r), t();
else {
var o = d0(function() {
i(a - 1);
});
tc.set(r, o);
}
}
return i(n), r;
};
v0.cancel = function(e) {
var t = tc.get(e);
return h0(e), m0(t);
};
Fa = ec.default = v0;
const p0 = s.createContext(null), zt = "adm-dropdown-item", w5 = (e) => {
const {
dropdown: t = {}
} = fe(), n = Y(t, e), {
active: r,
highlight: i,
onClick: a,
title: o
} = n, l = Z(zt, {
[`${zt}-active`]: r,
[`${zt}-highlight`]: i ?? r
}), c = s.useContext(p0), u = wn(s.createElement(Ep, null), c, n.arrow, n.arrowIcon);
return U(e, s.createElement("div", {
className: l,
onClick: a
}, s.createElement("div", {
className: `${zt}-title`
}, s.createElement("span", {
className: `${zt}-title-text`
}, o), s.createElement("span", {
className: Z(`${zt}-title-arrow`, {
[`${zt}-title-arrow-active`]: r
})
}, u))));
}, C5 = w5, x5 = (e) => {
const {
active: t = !1
} = e, n = yo(t, e.forceRender, e.destroyOnClose), r = Z(`${zt}-content`, {
[`${zt}-content-hidden`]: !t
});
return n ? s.createElement("div", {
className: r,
onClick: e.onClick
}, e.children) : null;
}, sr = "adm-dropdown", k5 = {
defaultActiveKey: null,
closeOnMaskClick: !0,
closeOnClickAway: !1,
getContainer: Il.getContainer
}, $5 = we((e, t) => {
const {
dropdown: n = {}
} = fe(), r = Y(k5, n, e), i = wn(n.arrowIcon, e.arrow, e.arrowIcon), [a, o] = ue({
value: r.activeKey,
defaultValue: r.defaultActiveKey,
onChange: r.onChange
}), l = W(null);
l.current = a ?? l.current;
const c = W(null), u = W(null);
Qf(() => {
r.closeOnClickAway && o(null);
}, [c, u]);
const [f, d] = Q(), m = W(null), h = W(0), E = Ue(() => {
const y = m.current;
y && d(y.getBoundingClientRect().bottom);
}, []), b = Ue(() => {
Fa.cancel(h.current), h.current = Fa(E);
}, [E]);
J(() => {
if (a)
return E(), window.addEventListener("scroll", b, {
passive: !0,
capture: !0
}), window.addEventListener("resize", b), () => {
Fa.cancel(h.current), window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
};
}, [a, b, E]);
const g = (y) => {
o(a === y ? null : y);
};
let v = !1;
const w = [], p = s.Children.map(r.children, (y) => {
if (En(y)) {
const C = Object.assign(Object.assign({}, y.props), {
onClick: (x) => {
var k, _;
g(y.key), (_ = (k = y.props).onClick) === null || _ === void 0 || _.call(k, x);
},
active: y.key === a
});
return w.push(y), y.props.forceRender && (v = !0), Nm(y, C);
} else
return y;
});
return $e(t, () => ({
close: () => {
o(null);
}
}), [o]), U(r, s.createElement("div", {
className: Z(sr, {
[`${sr}-open`]: !!a
}),
ref: m
}, s.createElement(p0.Provider, {
value: i
}, s.createElement("div", {
className: `${sr}-nav`,
ref: c
}, p)), s.createElement(Br, {
visible: !!a,
position: "top",
getContainer: r.getContainer,
className: `${sr}-popup`,
maskClassName: `${sr}-popup-mask`,
bodyClassName: `${sr}-popup-body`,
style: {
top: f
},
forceRender: v,
onMaskClick: r.closeOnMaskClick ? () => {
g(null);
} : void 0,
afterShow: () => {
var y;
(y = r.onVisibleChange) === null || y === void 0 || y.call(r, !0, {
key: l.current
});
},
afterClose: () => {
var y;
(y = r.onVisibleChange) === null || y === void 0 || y.call(r, !1, {
key: l.current
});
}
}, s.createElement("div", {
ref: u
}, w.map((y) => {
const C = y.key === a;
return s.createElement(x5, {
key: y.key,
active: C,
forceRender: y.props.forceRender,
destroyOnClose: y.props.destroyOnClose
}, y.props.children);
})))));
}), _5 = $5, zb = ge(_5, {
Item: C5
});
var Ri = {}, nc = {};
Object.defineProperty(nc, "__esModule", {
value: !0
});
nc.default = S5;
function S5() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
var vi, O5 = xn.default, F5 = qi.default;
Object.defineProperty(Ri, "__esModule", {
value: !0
});
Ri.useLayoutUpdateEffect = vi = Ri.default = void 0;
var js = F5(s), R5 = O5(nc), Yu = (0, R5.default)() ? js.useLayoutEffect : js.useEffect, g0 = function(t, n) {
var r = js.useRef(!0);
Yu(function() {
return t(r.current);
}, n), Yu(function() {
return r.current = !1, function() {
r.current = !0;
};
}, []);
};
Ri.useLayoutUpdateEffect = function(t, n) {
g0(function(r) {
if (!r)
return t();
}, n);
};
vi = Ri.default = g0;
var Gu;
(function(e) {
e[e.HIGH_SURROGATE_START = 55296] = "HIGH_SURROGATE_START", e[e.HIGH_SURROGATE_END = 56319] = "HIGH_SURROGATE_END", e[e.LOW_SURROGATE_START = 56320] = "LOW_SURROGATE_START", e[e.REGIONAL_INDICATOR_START = 127462] = "REGIONAL_INDICATOR_START", e[e.REGIONAL_INDICATOR_END = 127487] = "REGIONAL_INDICATOR_END", e[e.FITZPATRICK_MODIFIER_START = 127995] = "FITZPATRICK_MODIFIER_START", e[e.FITZPATRICK_MODIFIER_END = 127999] = "FITZPATRICK_MODIFIER_END", e[e.VARIATION_MODIFIER_START = 65024] = "VARIATION_MODIFIER_START", e[e.VARIATION_MODIFIER_END = 65039] = "VARIATION_MODIFIER_END", e[e.DIACRITICAL_MARKS_START = 8400] = "DIACRITICAL_MARKS_START", e[e.DIACRITICAL_MARKS_END = 8447] = "DIACRITICAL_MARKS_END", e[e.SUBDIVISION_INDICATOR_START = 127988] = "SUBDIVISION_INDICATOR_START", e[e.TAGS_START = 917504] = "TAGS_START", e[e.TAGS_END = 917631] = "TAGS_END", e[e.ZWJ = 8205] = "ZWJ";
})(Gu || (Gu = {}));
const N5 = Object.freeze([776, 2359, 2367, 2984, 3007, 3021, 3633, 3635, 3648, 3657, 4352, 4449, 4520]);
var Xu;
function Ra(e) {
if (typeof e != "string")
throw new TypeError("string cannot be undefined or null");
const t = [];
let n = 0, r = 0;
for (; n < e.length; )
r += P5(n + r, e), V5(e[n + r]) && r++, I5(e[n + r]) && r++, L5(e[n + r]) && r++, j5(e[n + r]) ? r++ : (t.push(e.substring(n, n + r)), n += r, r = 0);
return t;
}
function P5(e, t) {
const n = t[e];
if (!M5(n) || e === t.length - 1)
return 1;
const r = n + t[e + 1];
let i = t.substring(e + 2, e + 5);
return Qu(r) && Qu(i) ? 4 : A5(r) && D5(i) ? t.slice(e).indexOf(String.fromCodePoint(917631)) + 2 : T5(i) ? 4 : 2;
}
function M5(e) {
return e && Jn(e[0].charCodeAt(0), 55296, 56319);
}
function Qu(e) {
return Jn(rc(e), 127462, 127487);
}
function A5(e) {
return Jn(rc(e), 127988, 127988);
}
function T5(e) {
return Jn(rc(e), 127995, 127999);
}
function I5(e) {
return typeof e == "string" && Jn(e.charCodeAt(0), 65024, 65039);
}
function L5(e) {
return typeof e == "string" && Jn(e.charCodeAt(0), 8400, 8447);
}
function D5(e) {
const t = e.codePointAt(0);
return typeof e == "string" && typeof t == "number" && Jn(t, 917504, 917631);
}
function V5(e) {
return typeof e == "string" && N5.includes(e.charCodeAt(0));
}
function j5(e) {
return typeof e == "string" && e.charCodeAt(0) === 8205;
}
function rc(e) {
return (e.charCodeAt(0) - 55296 << 10) + (e.charCodeAt(1) - 56320) + 65536;
}
function Jn(e, t, n) {
return e >= t && e <= n;
}
(function(e) {
e[e.unit_1 = 1] = "unit_1", e[e.unit_2 = 2] = "unit_2", e[e.unit_4 = 4] = "unit_4";
})(Xu || (Xu = {}));
const fa = "...", ns = {
visibility: "hidden",
whiteSpace: "inherit",
lineHeight: "inherit",
fontSize: "inherit"
};
function B5(e, t, n, r, i, a, o) {
const l = s.useMemo(() => Ra(t), [t]), [c, u] = s.useState(0), [f, d] = s.useState([0, 0]), m = Math.ceil((f[0] + f[1]) / 2), [h, E] = s.useState(
100
/* STABLE_NO_ELLIPSIS */
), b = s.useRef(null), g = s.useRef(null), v = s.useRef(null), w = Si(() => {
Bf(() => {
E(
1
/* PREPARE */
), d([0, r === "middle" ? Math.ceil(l.length / 2) : l.length]);
});
});
vi(() => {
w();
}, [l, n]), vi(() => {
var x, k;
if (h === 1) {
const _ = ((x = g.current) === null || x === void 0 ? void 0 : x.offsetHeight) || 0, O = (((k = b.current) === null || k === void 0 ? void 0 : k.offsetHeight) || 0) * (n + 0.5);
_ <= O ? E(
100
/* STABLE_NO_ELLIPSIS */
) : (u(O), E(
2
/* MEASURE_WALKING */
));
}
}, [h]), vi(() => {
var x;
if (h === 2) {
const k = f[1] - f[0], _ = ((x = v.current) === null || x === void 0 ? void 0 : x.offsetHeight) || 0;
k > 1 ? _ > c ? d([f[0], m]) : d([m, f[1]]) : (_ > c ? d([f[0], f[0]]) : d([f[1], f[1]]), E(
99
/* STABLE_ELLIPSIS */
));
}
}, [h, f]);
const p = (x) => {
const k = l.slice(0, x), _ = l.slice(l.length - x);
return s.createElement(s.Fragment, null, r === "start" && s.createElement(s.Fragment, null, a, fa), r !== "start" && k.join(""), r === "middle" && s.createElement(s.Fragment, null, fa, a, fa), r !== "end" && _.join(""), r === "end" && s.createElement(s.Fragment, null, fa, a));
}, y = s.useMemo(() => i || h === 100 ? s.createElement(s.Fragment, {
key: "display"
}, t, h === 99 && o) : h === 99 ? p(m) : null, [i, h, t, o, m]);
return [s.createElement(s.Fragment, null, h === 1 && s.createElement("div", {
key: "full",
"aria-hidden": !0,
ref: g,
style: ns
}, t, a), h === 1 && s.createElement("div", {
key: "stable",
"aria-hidden": !0,
ref: b,
style: ns
}, " "), h === 2 && s.createElement("div", {
key: "walking-mid",
"aria-hidden": !0,
ref: v,
style: ns
}, p(m)), y), w];
}
const W5 = "adm-ellipsis", Z5 = {
direction: "end",
rows: 1,
expandText: "",
content: "",
collapseText: "",
stopPropagationForActionButtons: [],
onContentClick: () => {
},
defaultExpanded: !1
}, Kb = (e) => {
const t = Y(Z5, e), {
content: n,
direction: r,
rows: i,
expandText: a,
collapseText: o,
stopPropagationForActionButtons: l,
onContentClick: c,
defaultExpanded: u
} = t, f = s.useRef(null), [d, m] = s.useState(u), h = a ? vn(l, s.createElement("a", {
onClick: (v) => {
var w;
m(!0), (w = t.onExpand) === null || w === void 0 || w.call(t, !0, {
event: v
});
}
}, a)) : null, E = o ? vn(l, s.createElement("a", {
onClick: (v) => {
var w;
m(!1), (w = t.onExpand) === null || w === void 0 || w.call(t, !1, {
event: v
});
}
}, o)) : null, [b, g] = B5(f, n, i, r, d, h, E);
return Ki(g, f), U(t, s.createElement("div", {
ref: f,
className: W5,
onClick: (v) => {
v.target === v.currentTarget && c(v);
}
}, b));
}, q5 = (e) => U(e, s.createElement("svg", {
viewBox: "0 0 64 41"
}, s.createElement("g", {
transform: "translate(0 1)",
fill: "none",
fillRule: "evenodd"
}, s.createElement("ellipse", {
fill: "#f5f5f5",
cx: "32",
cy: "33",
rx: "32",
ry: "7"
}), s.createElement("g", {
stroke: "#d9d9d9"
}, s.createElement("path", {
d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
}), s.createElement("path", {
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
fill: "#fafafa"
}))))), Jr = "adm-empty", Yb = (e) => {
function t() {
const {
image: n
} = e;
return n === void 0 ? s.createElement(q5, {
className: `${Jr}-image`,
style: e.imageStyle
}) : typeof n == "string" ? s.createElement("img", {
className: `${Jr}-image`,
style: e.imageStyle,
src: n,
alt: "empty"
}) : n;
}
return U(e, s.createElement("div", {
className: Jr
}, s.createElement("div", {
className: `${Jr}-image-container`
}, t()), e.description && s.createElement("div", {
className: Z(`${Jr}-description`)
}, e.description)));
}, _n = "adm-error-block", H5 = {
status: "default"
};
function U5(e) {
return (n) => {
var r;
const i = Y(H5, n), {
locale: a
} = fe(), o = a.ErrorBlock[i.status], l = "description" in i ? i.description : o.description, c = "title" in i ? i.title : o.title, u = (r = i.image) !== null && r !== void 0 ? r : e[i.status], f = typeof u == "string" ? s.createElement("img", {
src: u,
alt: "error block image"
}) : u;
return U(i, s.createElement("div", {
className: Z(_n, {
[`${_n}-full-page`]: i.fullPage
})
}, s.createElement("div", {
className: `${_n}-image`
}, f), s.createElement("div", {
className: `${_n}-description`
}, ![void 0, null].includes(c) && s.createElement("div", {
className: `${_n}-description-title`
}, c), ![void 0, null].includes(l) && s.createElement("div", {
className: `${_n}-description-subtitle`
}, l)), i.children && s.createElement("div", {
className: `${_n}-content`
}, i.children)));
};
}
var Io = {}, y0 = { exports: {} }, b0 = { exports: {} };
(function(e) {
function t(n) {
if (Array.isArray(n))
return n;
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(b0);
var z5 = b0.exports, E0 = { exports: {} };
(function(e) {
function t(n, r) {
var i = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
if (i != null) {
var a, o, l, c, u = [], f = !0, d = !1;
try {
if (l = (i = i.call(n)).next, r === 0) {
if (Object(i) !== i)
return;
f = !1;
} else
for (; !(f = (a = l.call(i)).done) && (u.push(a.value), u.length !== r); f = !0)
;
} catch (m) {
d = !0, o = m;
} finally {
try {
if (!f && i.return != null && (c = i.return(), Object(c) !== c))
return;
} finally {
if (d)
throw o;
}
}
return u;
}
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(E0);
var K5 = E0.exports, w0 = { exports: {} }, C0 = { exports: {} };
(function(e) {
function t(n, r) {
(r == null || r > n.length) && (r = n.length);
for (var i = 0, a = new Array(r); i < r; i++)
a[i] = n[i];
return a;
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(C0);
var Y5 = C0.exports;
(function(e) {
var t = Y5;
function n(r, i) {
if (r) {
if (typeof r == "string")
return t(r, i);
var a = Object.prototype.toString.call(r).slice(8, -1);
if (a === "Object" && r.constructor && (a = r.constructor.name), a === "Map" || a === "Set")
return Array.from(r);
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
return t(r, i);
}
}
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
})(w0);
var G5 = w0.exports, x0 = { exports: {} };
(function(e) {
function t() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
})(x0);
var X5 = x0.exports;
(function(e) {
var t = z5, n = K5, r = G5, i = X5;
function a(o, l) {
return t(o) || n(o, l) || r(o, l) || i();
}
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
})(y0);
var Q5 = y0.exports, J5 = qi.default, k0 = xn.default;
Object.defineProperty(Io, "__esModule", {
value: !0
});
var Gi = Io.default = void 0;
Io.resetUuid = r6;
var e6 = k0(Q5), t6 = k0(f1), Bs = J5(s);
function n6() {
var e = (0, t6.default)({}, Bs);
return e.useId;
}
var Ju = 0;
function r6() {
}
var ef = n6();
Gi = Io.default = ef ? (
// Use React `useId`
function(t) {
var n = ef();
return t || n;
}
) : (
// Use compatible of `useId`
function(t) {
var n = Bs.useState("ssr-id"), r = (0, e6.default)(n, 2), i = r[0], a = r[1];
return Bs.useEffect(function() {
var o = Ju;
Ju += 1, a("rc_unique_".concat(o));
}, []), t || i;
}
);
const i6 = () => {
const e = `error-block-image-${Gi()}`;
return s.createElement("svg", {
viewBox: "0 0 400 400",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, s.createElement("defs", null, s.createElement("linearGradient", {
x1: "50%",
y1: "-116.862%",
x2: "50%",
y2: "90.764%",
id: `${e}-a`
}, s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.207,
offset: "0%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.115,
offset: "80.072%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0,
offset: "100%"
})), s.createElement("circle", {
id: `${e}-b`,
cx: 34.857,
cy: 34.857,
r: 34.857
})), s.createElement("g", {
fill: "none",
fillRule: "evenodd"
}, s.createElement("path", {
d: "M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",
transform: "translate(18.286 51.286)",
fill: `url(#${e}-a)`
}), s.createElement("path", {
d: "m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",
fill: "#377EFF"
}), s.createElement("path", {
d: "M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",
fill: "#003CFF",
fillRule: "nonzero"
}), s.createElement("path", {
d: "m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",
fill: "#7EACFF"
}), s.createElement("path", {
stroke: "#003CFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round",
d: "m196.824 197.298 52.216-.506M193.329 330.5h52.215"
}), s.createElement("path", {
d: "M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",
stroke: "#FFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
}), s.createElement("circle", {
cx: 14.857,
cy: 14.857,
r: 14.857,
transform: "translate(106.857 248.571)",
fill: "#FFCD6B",
fillRule: "nonzero"
}), s.createElement("g", {
transform: "translate(236.571 284.571)"
}, s.createElement("mask", {
id: `${e}-c`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-b`
})), s.createElement("use", {
fill: "#FBBE47",
fillRule: "nonzero",
xlinkHref: `#${e}-b`
}), s.createElement("circle", {
fill: "#FFCD6B",
fillRule: "nonzero",
mask: `url(#${e}-c)`,
cx: 25.714,
cy: 28,
r: 34.857
}), s.createElement("circle", {
fill: "#FFF",
fillRule: "nonzero",
mask: `url(#${e}-c)`,
cx: 22.286,
cy: 18.857,
r: 3.429
}))));
}, a6 = s.createElement(i6, null), o6 = () => {
const e = `error-block-image-${Gi()}`;
return s.createElement("svg", {
viewBox: "0 0 200 200",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, s.createElement("defs", null, s.createElement("linearGradient", {
x1: "50%",
y1: "-116.862%",
x2: "50%",
y2: "90.764%",
id: `${e}-a`
}, s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.207,
offset: "0%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.115,
offset: "80.072%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0,
offset: "100%"
})), s.createElement("circle", {
id: `${e}-d`,
cx: 18.823,
cy: 18.823,
r: 18.823
}), s.createElement("rect", {
id: `${e}-b`,
x: 3.5,
y: 9,
width: 51.429,
height: 88,
rx: 4.571
})), s.createElement("g", {
fill: "none",
fillRule: "evenodd"
}, s.createElement("path", {
d: "M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",
transform: "translate(2.286 22.286)",
fill: `url(#${e}-a)`
}), s.createElement("g", {
transform: "rotate(-90 102.429 55.357)"
}, s.createElement("path", {
d: "M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",
fill: "#7EACFF"
}), s.createElement("mask", {
id: `${e}-c`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-b`
})), s.createElement("use", {
fill: "#377EFF",
xlinkHref: `#${e}-b`
}), s.createElement("path", {
d: "M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",
fill: "#003CFF",
fillRule: "nonzero",
mask: `url(#${e}-c)`,
transform: "rotate(116 12.367 83.503)"
}), s.createElement("path", {
stroke: "#FFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M36.774 5.474H21.523"
}), s.createElement("path", {
d: "m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",
stroke: "#4486FE",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
})), s.createElement("circle", {
cx: 8.571,
cy: 8.571,
r: 8.571,
transform: "translate(22.857 142)",
fill: "#FFCD6B",
fillRule: "nonzero"
}), s.createElement("g", {
transform: "translate(132.857 124)"
}, s.createElement("mask", {
id: `${e}-e`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-d`
})), s.createElement("use", {
fill: "#FBBE47",
fillRule: "nonzero",
xlinkHref: `#${e}-d`
}), s.createElement("circle", {
fill: "#FFCD6B",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 13.886,
cy: 15.12,
r: 18.823
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 23.4,
cy: 29.057,
r: 1
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 30.343,
cy: 29.829,
r: 1
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 18.771,
cy: 32.657,
r: 1.286
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 29.571,
cy: 25.971,
r: 1.286
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 19.286,
cy: 7.971,
r: 1.286
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 26.486,
cy: 5.914,
r: 1.286
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 11.057,
cy: 6.943,
r: 1
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 30.086,
cy: 15.686,
r: 1.286
}), s.createElement("circle", {
fill: "#FFB400",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 22.886,
cy: 14.657,
r: 1
})), s.createElement("path", {
d: "m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",
fill: "#FFF",
fillRule: "nonzero"
})));
}, s6 = s.createElement(o6, null), l6 = () => {
const e = `error-block-image-${Gi()}`;
return s.createElement("svg", {
viewBox: "0 0 400 400",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, s.createElement("title", null, "@反馈/异常/网络服务异常"), s.createElement("defs", null, s.createElement("linearGradient", {
x1: "50%",
y1: "-116.862%",
x2: "50%",
y2: "90.764%",
id: `${e}-c`
}, s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.207,
offset: "0%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.115,
offset: "80.072%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0,
offset: "100%"
})), s.createElement("circle", {
id: `${e}-d`,
cx: 22.309,
cy: 22.309,
r: 22.309
}), s.createElement("path", {
id: `${e}-a`,
d: "M0 0h400v400H0z"
})), s.createElement("g", {
fill: "none",
fillRule: "evenodd"
}, s.createElement("mask", {
id: `${e}-b`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-a`
})), s.createElement("g", {
mask: `url(#${e}-b)`,
fill: `url(#${e}-c)`
}, s.createElement("path", {
d: "M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"
})), s.createElement("g", {
mask: `url(#${e}-b)`
}, s.createElement("g", {
transform: "translate(85.858 150.644)"
}, s.createElement("path", {
d: "M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",
fill: "#377EFF",
fillRule: "nonzero"
}), s.createElement("path", {
d: "M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",
fill: "#377EFF",
fillRule: "nonzero"
}), s.createElement("path", {
d: "M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",
stroke: "#FFF",
strokeWidth: 0.571,
strokeLinecap: "round"
}), s.createElement("ellipse", {
fill: "#7EACFF",
transform: "rotate(10 147 41.933)",
cx: 147,
cy: 41.933,
rx: 9.143,
ry: 10.286
}), s.createElement("path", {
d: "M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",
stroke: "#003CFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
}), s.createElement("path", {
d: "M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",
stroke: "#FFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
}), s.createElement("path", {
d: "m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",
stroke: "#4486FE",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
}))), s.createElement("g", {
mask: `url(#${e}-b)`
}, s.createElement("g", {
transform: "translate(275.143 302.571)"
}, s.createElement("mask", {
id: `${e}-e`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-d`
})), s.createElement("use", {
fill: "#FBBE47",
fillRule: "nonzero",
xlinkHref: `#${e}-d`
}), s.createElement("circle", {
fill: "#FFCD6B",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 16.457,
cy: 17.92,
r: 22.309
}), s.createElement("circle", {
fill: "#FFF",
fillRule: "nonzero",
mask: `url(#${e}-e)`,
cx: 14.263,
cy: 12.069,
r: 2.194
}))), s.createElement("g", {
mask: `url(#${e}-b)`,
fill: "#FBBE47",
fillRule: "nonzero"
}, s.createElement("circle", {
cx: 12,
cy: 12,
r: 12,
transform: "translate(84 297.714)"
}))));
}, c6 = s.createElement(l6, null), u6 = () => {
const e = `error-block-image-${Gi()}`;
return s.createElement("svg", {
viewBox: "0 0 400 400",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, s.createElement("defs", null, s.createElement("linearGradient", {
x1: "50%",
y1: "-116.862%",
x2: "50%",
y2: "90.764%",
id: `${e}-a`
}, s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.207,
offset: "0%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0.115,
offset: "80.072%"
}), s.createElement("stop", {
stopColor: "#72A7FD",
stopOpacity: 0,
offset: "100%"
})), s.createElement("path", {
d: "M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",
id: `${e}-b`
})), s.createElement("g", {
fill: "none",
fillRule: "evenodd"
}, s.createElement("path", {
d: "M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",
transform: "translate(18.286 50.286)",
fill: `url(#${e}-a)`
}), s.createElement("g", {
transform: "translate(108.571 189.886)"
}, s.createElement("mask", {
id: `${e}-c`,
fill: "#fff"
}, s.createElement("use", {
xlinkHref: `#${e}-b`
})), s.createElement("use", {
fill: "#377EFF",
xlinkHref: `#${e}-b`
}), s.createElement("path", {
d: "M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",
fill: "#003CFF",
fillRule: "nonzero",
mask: `url(#${e}-c)`
})), s.createElement("path", {
d: "M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",
fill: "#5D96FE"
}), s.createElement("path", {
d: "M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",
stroke: "#FFF",
strokeWidth: 0.75,
strokeLinecap: "round",
strokeLinejoin: "round"
}), s.createElement("path", {
d: "M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",
fill: "#FFCD6B",
fillRule: "nonzero"
}), s.createElement("g", {
transform: "translate(283.429 177.143)",
fillRule: "nonzero"
}, s.createElement("path", {
d: "M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",
fill: "#FFCD6B"
}), s.createElement("path", {
d: "M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",
fill: "#FFCD6B"
}), s.createElement("circle", {
fill: "#FFB400",
cx: 26.4,
cy: 56.869,
r: 1.45
}), s.createElement("circle", {
fill: "#FFB400",
cx: 39.453,
cy: 58.319,
r: 1
}), s.createElement("circle", {
fill: "#FFB400",
cx: 17.698,
cy: 63.637,
r: 2.417
}), s.createElement("circle", {
fill: "#FFB400",
cx: 38.002,
cy: 51.068,
r: 2.417
}), s.createElement("circle", {
fill: "#FFB400",
cx: 18.665,
cy: 17.228,
r: 2.417
}), s.createElement("circle", {
fill: "#FFB400",
cx: 32.201,
cy: 13.36,
r: 2.417
}), s.createElement("circle", {
fill: "#FFB400",
cx: 26.83,
cy: 20.666,
r: 1.45
}), s.createElement("circle", {
fill: "#FFB400",
cx: 38.969,
cy: 31.731,
r: 2.417
}), s.createElement("circle", {
fill: "#FFB400",
cx: 25.433,
cy: 29.797,
r: 1.45
}), s.createElement("path", {
d: "M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",
fill: "#FBBE47"
}))));
}, f6 = s.createElement(u6, null), d6 = {
default: s6,
disconnected: c6,
empty: f6,
busy: a6
}, Gb = U5(d6), da = "adm-floating-bubble", m6 = {
axis: "y",
defaultOffset: {
x: 0,
y: 0
}
}, Xb = (e) => {
const t = Y(m6, e), n = W(null), r = W(null), [i, a] = Q(t.offset === void 0 ? t.defaultOffset : t.offset);
J(() => {
t.offset !== void 0 && u.start({
x: t.offset.x,
y: t.offset.y
});
}, [t.offset]);
const [{
x: o,
y: l,
opacity: c
}, u] = Ve(() => ({
x: i.x,
y: i.y,
opacity: 1
})), f = Bt((d) => {
var m;
let h = d.offset[0], E = d.offset[1];
if (d.last && t.magnetic) {
const g = n.current, v = r.current;
if (!g || !v)
return;
const w = g.getBoundingClientRect(), p = v.getBoundingClientRect();
if (t.magnetic === "x") {
const y = o.goal - o.get(), C = p.left + y - w.left, x = w.right - (p.right + y);
x <= C ? h += x : h -= C;
} else if (t.magnetic === "y") {
const y = l.goal - l.get(), C = p.top + y - w.top, x = w.bottom - (p.bottom + y);
x <= C ? E += x : E -= C;
}
}
const b = {
x: h,
y: E
};
t.offset === void 0 ? u.start(b) : a(b), (m = t.onOffsetChange) === null || m === void 0 || m.call(t, b), u.start({
opacity: d.active ? 0.8 : 1
});
}, {
axis: t.axis === "xy" ? void 0 : t.axis,
pointer: {
touch: !0
},
// the component won't trigger drag logic if the user just clicked on the component.
filterTaps: !0,
// set constraints to the user gesture
bounds: n,
from: () => [o.get(), l.get()]
});
return U(t, s.createElement("div", {
className: da
}, s.createElement("div", {
className: `${da}-boundary-outer`
}, s.createElement("div", {
className: `${da}-boundary`,
ref: n
})), s.createElement(xe.div, Object.assign({}, f(), {
style: {
opacity: c,
transform: X2([o, l], (d, m) => `translate(${d}px, ${m}px)`)
},
onClick: t.onClick,
className: `${da}-button`,
ref: r
}), t.children)));
};
function ic(e, t) {
return e.reduce((n, r) => Math.abs(n - t) < Math.abs(r - t) ? n : r);
}
const lr = "adm-floating-panel", h6 = {
handleDraggingOfContent: !0,
inertiaFactor: 50
}, Qb = we((e, t) => {
var n, r;
const i = Y(h6, e), {
anchors: a,
placement: o = "bottom",
inertiaFactor: l
} = i, c = (n = a[a.length - 1]) !== null && n !== void 0 ? n : window.innerHeight, u = o !== "top", f = u ? a.map((x) => -x) : a, d = W(null), m = W(null), h = W(null), [E, b] = Q(!1), g = W(!1), v = {
top: Math.min(...f),
bottom: Math.max(...f)
}, w = Xt((r = i.onHeightChange) !== null && r !== void 0 ? r : () => {
}), [{
y: p
}, y] = Ve(() => ({
y: u ? v.bottom : v.top,
config: {
tension: 300
},
onChange: (x) => {
w(-x.value.y, p.isAnimating);
}
}));
Bt((x) => {
const [, k] = x.offset;
if (x.first) {
const O = x.event.target, V = m.current;
if (V === O || V != null && V.contains(O))
g.current = !0;
else {
if (!i.handleDraggingOfContent)
return;
const A = p.goal <= v.top, M = h.current;
if (!M)
return;
A ? M.scrollTop <= 0 && x.direction[1] > 0 && (g.current = !0) : g.current = !0;
}
}
if (b(g.current), !g.current)
return;
const {
event: _
} = x;
_.cancelable && Un && _.preventDefault(), _.stopPropagation();
let R = k;
if (x.last) {
g.current = !1, b(!1);
const [, O] = x.velocity, [, V] = x.direction;
R = ic(f, k + V * O * (l ?? 0));
}
y.start({
y: R
});
}, {
axis: "y",
bounds: v,
rubberband: !0,
from: () => [0, p.get()],
pointer: {
touch: !0
},
target: d,
eventOptions: Un ? {
passive: !1
} : void 0
}), $e(t, () => ({
setHeight: (x, k) => {
y.start({
y: -x,
immediate: k == null ? void 0 : k.immediate
});
}
}), [y]), lo(d, !0);
const C = s.createElement("div", {
className: `${lr}-header`,
ref: m
}, s.createElement("div", {
className: `${lr}-bar`
}));
return U(i, s.createElement(xe.div, {
ref: d,
className: Z(lr, `${lr}-${o}`),
style: {
height: Math.round(c),
translateY: p.to((x) => u ? `calc(100% + (${Math.round(x)}px))` : o === "top" ? `calc(-100% + (${Math.round(x)}px))` : x)
}
}, s.createElement("div", {
className: `${lr}-mask`,
style: {
display: E ? "block" : "none"
}
}), u && C, s.createElement("div", {
className: `${lr}-content`,
ref: h
}, i.children), o === "top" && C));
});
function Gn() {
return Gn = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, Gn.apply(this, arguments);
}
function v6(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
return n;
}
function Fr(e, t) {
if (e == null)
return {};
var n = v6(e, t), r, i;
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (i = 0; i < a.length; i++)
r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
}
return n;
}
function er(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function tf(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, F1(r.key), r);
}
}
function tr(e, t, n) {
return t && tf(e.prototype, t), n && tf(e, n), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function Ga(e) {
if (e === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function Ws(e, t) {
return Ws = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
return r.__proto__ = i, r;
}, Ws(e, t);
}
function ac(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), Object.defineProperty(e, "prototype", {
writable: !1
}), t && Ws(e, t);
}
function Xa(e) {
return Xa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
return n.__proto__ || Object.getPrototypeOf(n);
}, Xa(e);
}
function p6() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
return !1;
if (typeof Proxy == "function")
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function g6(e, t) {
if (t && (ke(t) === "object" || typeof t == "function"))
return t;
if (t !== void 0)
throw new TypeError("Derived constructors may only return object or undefined");
return Ga(e);
}
function oc(e) {
var t = p6();
return function() {
var r = Xa(e), i;
if (t) {
var a = Xa(this).constructor;
i = Reflect.construct(r, arguments, a);
} else
i = r.apply(this, arguments);
return g6(this, i);
};
}
function Zs(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [];
return s.Children.forEach(e, function(r) {
r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(Zs(r)) : _1(r) && r.props ? n = n.concat(Zs(r.props.children, t)) : n.push(r));
}), n;
}
function y6(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = /* @__PURE__ */ new Set();
function i(a, o) {
var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, c = r.has(a);
if (pt(!c, "Warning: There may be circular references"), c)
return !1;
if (a === o)
return !0;
if (n && l > 1)
return !1;
r.add(a);
var u = l + 1;
if (Array.isArray(a)) {
if (!Array.isArray(o) || a.length !== o.length)
return !1;
for (var f = 0; f < a.length; f++)
if (!i(a[f], o[f], u))
return !1;
return !0;
}
if (a && o && ke(a) === "object" && ke(o) === "object") {
var d = Object.keys(a);
return d.length !== Object.keys(o).length ? !1 : d.every(function(m) {
return i(a[m], o[m], u);
});
}
return !1;
}
return i(e, t);
}
var jn = "RC_FORM_INTERNAL_HOOKS", be = function() {
pt(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
}, Xn = /* @__PURE__ */ D.createContext({
getFieldValue: be,
getFieldsValue: be,
getFieldError: be,
getFieldWarning: be,
getFieldsError: be,
isFieldsTouched: be,
isFieldTouched: be,
isFieldValidating: be,
isFieldsValidating: be,
resetFields: be,
setFields: be,
setFieldValue: be,
setFieldsValue: be,
validateFields: be,
submit: be,
getInternalHooks: function() {
return be(), {
dispatch: be,
initEntityValue: be,
registerField: be,
useSubscribe: be,
setInitialValues: be,
destroyForm: be,
setCallbacks: be,
registerWatch: be,
getFields: be,
setValidateMessages: be,
setPreserve: be,
getInitialValue: be
};
}
}), Qa = /* @__PURE__ */ D.createContext(null);
function qs(e) {
return e == null ? [] : Array.isArray(e) ? e : [e];
}
function b6(e) {
return e && !!e._init;
}
function Yt() {
Yt = function() {
return t;
};
var e, t = {}, n = Object.prototype, r = n.hasOwnProperty, i = Object.defineProperty || function(P, S, I) {
P[S] = I.value;
}, a = typeof Symbol == "function" ? Symbol : {}, o = a.iterator || "@@iterator", l = a.asyncIterator || "@@asyncIterator", c = a.toStringTag || "@@toStringTag";
function u(P, S, I) {
return Object.defineProperty(P, S, {
value: I,
enumerable: !0,
configurable: !0,
writable: !0
}), P[S];
}
try {
u({}, "");
} catch {
u = function(I, $, F) {
return I[$] = F;
};
}
function f(P, S, I, $) {
var F = S && S.prototype instanceof v ? S : v, L = Object.create(F.prototype), B = new N($ || []);
return i(L, "_invoke", {
value: O(P, I, B)
}), L;
}
function d(P, S, I) {
try {
return {
type: "normal",
arg: P.call(S, I)
};
} catch ($) {
return {
type: "throw",
arg: $
};
}
}
t.wrap = f;
var m = "suspendedStart", h = "suspendedYield", E = "executing", b = "completed", g = {};
function v() {
}
function w() {
}
function p() {
}
var y = {};
u(y, o, function() {
return this;
});
var C = Object.getPrototypeOf, x = C && C(C(T([])));
x && x !== n && r.call(x, o) && (y = x);
var k = p.prototype = v.prototype = Object.create(y);
function _(P) {
["next", "throw", "return"].forEach(function(S) {
u(P, S, function(I) {
return this._invoke(S, I);
});
});
}
function R(P, S) {
function I(F, L, B, j) {
var q = d(P[F], P, L);
if (q.type !== "throw") {
var H = q.arg, X = H.value;
return X && ke(X) == "object" && r.call(X, "__await") ? S.resolve(X.__await).then(function(te) {
I("next", te, B, j);
}, function(te) {
I("throw", te, B, j);
}) : S.resolve(X).then(function(te) {
H.value = te, B(H);
}, function(te) {
return I("throw", te, B, j);
});
}
j(q.arg);
}
var $;
i(this, "_invoke", {
value: function(L, B) {
function j() {
return new S(function(q, H) {
I(L, B, q, H);
});
}
return $ = $ ? $.then(j, j) : j();
}
});
}
function O(P, S, I) {
var $ = m;
return function(F, L) {
if ($ === E)
throw new Error("Generator is already running");
if ($ === b) {
if (F === "throw")
throw L;
return {
value: e,
done: !0
};
}
for (I.method = F, I.arg = L; ; ) {
var B = I.delegate;
if (B) {
var j = V(B, I);
if (j) {
if (j === g)
continue;
return j;
}
}
if (I.method === "next")
I.sent = I._sent = I.arg;
else if (I.method === "throw") {
if ($ === m)
throw $ = b, I.arg;
I.dispatchException(I.arg);
} else
I.method === "return" && I.abrupt("return", I.arg);
$ = E;
var q = d(P, S, I);
if (q.type === "normal") {
if ($ = I.done ? b : h, q.arg === g)
continue;
return {
value: q.arg,
done: I.done
};
}
q.type === "throw" && ($ = b, I.method = "throw", I.arg = q.arg);
}
};
}
function V(P, S) {
var I = S.method, $ = P.iterator[I];
if ($ === e)
return S.delegate = null, I === "throw" && P.iterator.return && (S.method = "return", S.arg = e, V(P, S), S.method === "throw") || I !== "return" && (S.method = "throw", S.arg = new TypeError("The iterator does not provide a '" + I + "' method")), g;
var F = d($, P.iterator, S.arg);
if (F.type === "throw")
return S.method = "throw", S.arg = F.arg, S.delegate = null, g;
var L = F.arg;
return L ? L.done ? (S[P.resultName] = L.value, S.next = P.nextLoc, S.method !== "return" && (S.method = "next", S.arg = e), S.delegate = null, g) : L : (S.method = "throw", S.arg = new TypeError("iterator result is not an object"), S.delegate = null, g);
}
function A(P) {
var S = {
tryLoc: P[0]
};
1 in P && (S.catchLoc = P[1]), 2 in P && (S.finallyLoc = P[2], S.afterLoc = P[3]), this.tryEntries.push(S);
}
function M(P) {
var S = P.completion || {};
S.type = "normal", delete S.arg, P.completion = S;
}
function N(P) {
this.tryEntries = [{
tryLoc: "root"
}], P.forEach(A, this), this.reset(!0);
}
function T(P) {
if (P || P === "") {
var S = P[o];
if (S)
return S.call(P);
if (typeof P.next == "function")
return P;
if (!isNaN(P.length)) {
var I = -1, $ = function F() {
for (; ++I < P.length; )
if (r.call(P, I))
return F.value = P[I], F.done = !1, F;
return F.value = e, F.done = !0, F;
};
return $.next = $;
}
}
throw new TypeError(ke(P) + " is not iterable");
}
return w.prototype = p, i(k, "constructor", {
value: p,
configurable: !0
}), i(p, "constructor", {
value: w,
configurable: !0
}), w.displayName = u(p, c, "GeneratorFunction"), t.isGeneratorFunction = function(P) {
var S = typeof P == "function" && P.constructor;
return !!S && (S === w || (S.displayName || S.name) === "GeneratorFunction");
}, t.mark = function(P) {
return Object.setPrototypeOf ? Object.setPrototypeOf(P, p) : (P.__proto__ = p, u(P, c, "GeneratorFunction")), P.prototype = Object.create(k), P;
}, t.awrap = function(P) {
return {
__await: P
};
}, _(R.prototype), u(R.prototype, l, function() {
return this;
}), t.AsyncIterator = R, t.async = function(P, S, I, $, F) {
F === void 0 && (F = Promise);
var L = new R(f(P, S, I, $), F);
return t.isGeneratorFunction(S) ? L : L.next().then(function(B) {
return B.done ? B.value : L.next();
});
}, _(k), u(k, c, "Generator"), u(k, o, function() {
return this;
}), u(k, "toString", function() {
return "[object Generator]";
}), t.keys = function(P) {
var S = Object(P), I = [];
for (var $ in S)
I.push($);
return I.reverse(), function F() {
for (; I.length; ) {
var L = I.pop();
if (L in S)
return F.value = L, F.done = !1, F;
}
return F.done = !0, F;
};
}, t.values = T, N.prototype = {
constructor: N,
reset: function(S) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(M), !S)
for (var I in this)
I.charAt(0) === "t" && r.call(this, I) && !isNaN(+I.slice(1)) && (this[I] = e);
},
stop: function() {
this.done = !0;
var S = this.tryEntries[0].completion;
if (S.type === "throw")
throw S.arg;
return this.rval;
},
dispatchException: function(S) {
if (this.done)
throw S;
var I = this;
function $(H, X) {
return B.type = "throw", B.arg = S, I.next = H, X && (I.method = "next", I.arg = e), !!X;
}
for (var F = this.tryEntries.length - 1; F >= 0; --F) {
var L = this.tryEntries[F], B = L.completion;
if (L.tryLoc === "root")
return $("end");
if (L.tryLoc <= this.prev) {
var j = r.call(L, "catchLoc"), q = r.call(L, "finallyLoc");
if (j && q) {
if (this.prev < L.catchLoc)
return $(L.catchLoc, !0);
if (this.prev < L.finallyLoc)
return $(L.finallyLoc);
} else if (j) {
if (this.prev < L.catchLoc)
return $(L.catchLoc, !0);
} else {
if (!q)
throw new Error("try statement without catch or finally");
if (this.prev < L.finallyLoc)
return $(L.finallyLoc);
}
}
}
},
abrupt: function(S, I) {
for (var $ = this.tryEntries.length - 1; $ >= 0; --$) {
var F = this.tryEntries[$];
if (F.tryLoc <= this.prev && r.call(F, "finallyLoc") && this.prev < F.finallyLoc) {
var L = F;
break;
}
}
L && (S === "break" || S === "continue") && L.tryLoc <= I && I <= L.finallyLoc && (L = null);
var B = L ? L.completion : {};
return B.type = S, B.arg = I, L ? (this.method = "next", this.next = L.finallyLoc, g) : this.complete(B);
},
complete: function(S, I) {
if (S.type === "throw")
throw S.arg;
return S.type === "break" || S.type === "continue" ? this.next = S.arg : S.type === "return" ? (this.rval = this.arg = S.arg, this.method = "return", this.next = "end") : S.type === "normal" && I && (this.next = I), g;
},
finish: function(S) {
for (var I = this.tryEntries.length - 1; I >= 0; --I) {
var $ = this.tryEntries[I];
if ($.finallyLoc === S)
return this.complete($.completion, $.afterLoc), M($), g;
}
},
catch: function(S) {
for (var I = this.tryEntries.length - 1; I >= 0; --I) {
var $ = this.tryEntries[I];
if ($.tryLoc === S) {
var F = $.completion;
if (F.type === "throw") {
var L = F.arg;
M($);
}
return L;
}
}
throw new Error("illegal catch attempt");
},
delegateYield: function(S, I, $) {
return this.delegate = {
iterator: T(S),
resultName: I,
nextLoc: $
}, this.method === "next" && (this.arg = e), g;
}
}, t;
}
function nf(e, t, n, r, i, a, o) {
try {
var l = e[a](o), c = l.value;
} catch (u) {
n(u);
return;
}
l.done ? t(c) : Promise.resolve(c).then(r, i);
}
function Lo(e) {
return function() {
var t = this, n = arguments;
return new Promise(function(r, i) {
var a = e.apply(t, n);
function o(c) {
nf(a, r, i, o, l, "next", c);
}
function l(c) {
nf(a, r, i, o, l, "throw", c);
}
o(void 0);
});
};
}
function Bn() {
return Bn = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, Bn.apply(this, arguments);
}
function E6(e, t) {
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ni(e, t);
}
function Hs(e) {
return Hs = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
return n.__proto__ || Object.getPrototypeOf(n);
}, Hs(e);
}
function Ni(e, t) {
return Ni = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
return r.__proto__ = i, r;
}, Ni(e, t);
}
function w6() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
return !1;
if (typeof Proxy == "function")
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function Na(e, t, n) {
return w6() ? Na = Reflect.construct.bind() : Na = function(i, a, o) {
var l = [null];
l.push.apply(l, a);
var c = Function.bind.apply(i, l), u = new c();
return o && Ni(u, o.prototype), u;
}, Na.apply(null, arguments);
}
function C6(e) {
return Function.toString.call(e).indexOf("[native code]") !== -1;
}
function Us(e) {
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return Us = function(r) {
if (r === null || !C6(r))
return r;
if (typeof r != "function")
throw new TypeError("Super expression must either be null or a function");
if (typeof t < "u") {
if (t.has(r))
return t.get(r);
t.set(r, i);
}
function i() {
return Na(r, arguments, Hs(this).constructor);
}
return i.prototype = Object.create(r.prototype, {
constructor: {
value: i,
enumerable: !1,
writable: !0,
configurable: !0
}
}), Ni(i, r);
}, Us(e);
}
var x6 = /%[sdj%]/g, k6 = function() {
};
typeof process < "u" && process.env;
function zs(e) {
if (!e || !e.length)
return null;
var t = {};
return e.forEach(function(n) {
var r = n.field;
t[r] = t[r] || [], t[r].push(n);
}), t;
}
function at(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i = 0, a = n.length;
if (typeof e == "function")
return e.apply(null, n);
if (typeof e == "string") {
var o = e.replace(x6, function(l) {
if (l === "%%")
return "%";
if (i >= a)
return l;
switch (l) {
case "%s":
return String(n[i++]);
case "%d":
return Number(n[i++]);
case "%j":
try {
return JSON.stringify(n[i++]);
} catch {
return "[Circular]";
}
break;
default:
return l;
}
});
return o;
}
return e;
}
function $6(e) {
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
}
function Ie(e, t) {
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || $6(t) && typeof e == "string" && !e);
}
function _6(e, t, n) {
var r = [], i = 0, a = e.length;
function o(l) {
r.push.apply(r, l || []), i++, i === a && n(r);
}
e.forEach(function(l) {
t(l, o);
});
}
function rf(e, t, n) {
var r = 0, i = e.length;
function a(o) {
if (o && o.length) {
n(o);
return;
}
var l = r;
r = r + 1, l < i ? t(e[l], a) : n([]);
}
a([]);
}
function S6(e) {
var t = [];
return Object.keys(e).forEach(function(n) {
t.push.apply(t, e[n] || []);
}), t;
}
var af = /* @__PURE__ */ function(e) {
E6(t, e);
function t(n, r) {
var i;
return i = e.call(this, "Async Validation Error") || this, i.errors = n, i.fields = r, i;
}
return t;
}(/* @__PURE__ */ Us(Error));
function O6(e, t, n, r, i) {
if (t.first) {
var a = new Promise(function(m, h) {
var E = function(v) {
return r(v), v.length ? h(new af(v, zs(v))) : m(i);
}, b = S6(e);
rf(b, n, E);
});
return a.catch(function(m) {
return m;
}), a;
}
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), c = l.length, u = 0, f = [], d = new Promise(function(m, h) {
var E = function(g) {
if (f.push.apply(f, g), u++, u === c)
return r(f), f.length ? h(new af(f, zs(f))) : m(i);
};
l.length || (r(f), m(i)), l.forEach(function(b) {
var g = e[b];
o.indexOf(b) !== -1 ? rf(g, n, E) : _6(g, n, E);
});
});
return d.catch(function(m) {
return m;
}), d;
}
function F6(e) {
return !!(e && e.message !== void 0);
}
function R6(e, t) {
for (var n = e, r = 0; r < t.length; r++) {
if (n == null)
return n;
n = n[t[r]];
}
return n;
}
function of(e, t) {
return function(n) {
var r;
return e.fullFields ? r = R6(t, e.fullFields) : r = t[n.field || e.fullField], F6(n) ? (n.field = n.field || e.fullField, n.fieldValue = r, n) : {
message: typeof n == "function" ? n() : n,
fieldValue: r,
field: n.field || e.fullField
};
};
}
function sf(e, t) {
if (t) {
for (var n in t)
if (t.hasOwnProperty(n)) {
var r = t[n];
typeof r == "object" && typeof e[n] == "object" ? e[n] = Bn({}, e[n], r) : e[n] = r;
}
}
return e;
}
var $0 = function(t, n, r, i, a, o) {
t.required && (!r.hasOwnProperty(t.field) || Ie(n, o || t.type)) && i.push(at(a.messages.required, t.fullField));
}, N6 = function(t, n, r, i, a) {
(/^\s+$/.test(n) || n === "") && i.push(at(a.messages.whitespace, t.fullField));
}, ma, P6 = function() {
if (ma)
return ma;
var e = "[a-fA-F\\d:]", t = function(y) {
return y && y.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
}, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", i = (`
(?:
(?:` + r + ":){7}(?:" + r + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:` + r + ":){6}(?:" + n + "|:" + r + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + n + "$)|(?:^" + i + "$)"), o = new RegExp("^" + n + "$"), l = new RegExp("^" + i + "$"), c = function(y) {
return y && y.exact ? a : new RegExp("(?:" + t(y) + n + t(y) + ")|(?:" + t(y) + i + t(y) + ")", "g");
};
c.v4 = function(p) {
return p && p.exact ? o : new RegExp("" + t(p) + n + t(p), "g");
}, c.v6 = function(p) {
return p && p.exact ? l : new RegExp("" + t(p) + i + t(p), "g");
};
var u = "(?:(?:[a-z]+:)?//)", f = "(?:\\S+(?::\\S*)?@)?", d = c.v4().source, m = c.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", E = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", b = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", v = '(?:[/?#][^\\s"]*)?', w = "(?:" + u + "|www\\.)" + f + "(?:localhost|" + d + "|" + m + "|" + h + E + b + ")" + g + v;
return ma = new RegExp("(?:^" + w + "$)", "i"), ma;
}, lf = {
// http://emailregex.com/
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
// url: new RegExp(
// '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
// 'i',
// ),
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
}, ci = {
integer: function(t) {
return ci.number(t) && parseInt(t, 10) === t;
},
float: function(t) {
return ci.number(t) && !ci.integer(t);
},
array: function(t) {
return Array.isArray(t);
},
regexp: function(t) {
if (t instanceof RegExp)
return !0;
try {
return !!new RegExp(t);
} catch {
return !1;
}
},
date: function(t) {
return typeof t.getTime == "function" && typeof t.getMonth == "function" && typeof t.getYear == "function" && !isNaN(t.getTime());
},
number: function(t) {
return isNaN(t) ? !1 : typeof t == "number";
},
object: function(t) {
return typeof t == "object" && !ci.array(t);
},
method: function(t) {
return typeof t == "function";
},
email: function(t) {
return typeof t == "string" && t.length <= 320 && !!t.match(lf.email);
},
url: function(t) {
return typeof t == "string" && t.length <= 2048 && !!t.match(P6());
},
hex: function(t) {
return typeof t == "string" && !!t.match(lf.hex);
}
}, M6 = function(t, n, r, i, a) {
if (t.required && n === void 0) {
$0(t, n, r, i, a);
return;
}
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
o.indexOf(l) > -1 ? ci[l](n) || i.push(at(a.messages.types[l], t.fullField, t.type)) : l && typeof n !== t.type && i.push(at(a.messages.types[l], t.fullField, t.type));
}, A6 = function(t, n, r, i, a) {
var o = typeof t.len == "number", l = typeof t.min == "number", c = typeof t.max == "number", u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, f = n, d = null, m = typeof n == "number", h = typeof n == "string", E = Array.isArray(n);
if (m ? d = "number" : h ? d = "string" : E && (d = "array"), !d)
return !1;
E && (f = n.length), h && (f = n.replace(u, "_").length), o ? f !== t.len && i.push(at(a.messages[d].len, t.fullField, t.len)) : l && !c && f < t.min ? i.push(at(a.messages[d].min, t.fullField, t.min)) : c && !l && f > t.max ? i.push(at(a.messages[d].max, t.fullField, t.max)) : l && c && (f < t.min || f > t.max) && i.push(at(a.messages[d].range, t.fullField, t.min, t.max));
}, cr = "enum", T6 = function(t, n, r, i, a) {
t[cr] = Array.isArray(t[cr]) ? t[cr] : [], t[cr].indexOf(n) === -1 && i.push(at(a.messages[cr], t.fullField, t[cr].join(", ")));
}, I6 = function(t, n, r, i, a) {
if (t.pattern) {
if (t.pattern instanceof RegExp)
t.pattern.lastIndex = 0, t.pattern.test(n) || i.push(at(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
else if (typeof t.pattern == "string") {
var o = new RegExp(t.pattern);
o.test(n) || i.push(at(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
}
}
}, se = {
required: $0,
whitespace: N6,
type: M6,
range: A6,
enum: T6,
pattern: I6
}, L6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n, "string") && !t.required)
return r();
se.required(t, n, i, o, a, "string"), Ie(n, "string") || (se.type(t, n, i, o, a), se.range(t, n, i, o, a), se.pattern(t, n, i, o, a), t.whitespace === !0 && se.whitespace(t, n, i, o, a));
}
r(o);
}, D6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && se.type(t, n, i, o, a);
}
r(o);
}, V6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (n === "" && (n = void 0), Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && (se.type(t, n, i, o, a), se.range(t, n, i, o, a));
}
r(o);
}, j6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && se.type(t, n, i, o, a);
}
r(o);
}, B6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), Ie(n) || se.type(t, n, i, o, a);
}
r(o);
}, W6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && (se.type(t, n, i, o, a), se.range(t, n, i, o, a));
}
r(o);
}, Z6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && (se.type(t, n, i, o, a), se.range(t, n, i, o, a));
}
r(o);
}, q6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (n == null && !t.required)
return r();
se.required(t, n, i, o, a, "array"), n != null && (se.type(t, n, i, o, a), se.range(t, n, i, o, a));
}
r(o);
}, H6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && se.type(t, n, i, o, a);
}
r(o);
}, U6 = "enum", z6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a), n !== void 0 && se[U6](t, n, i, o, a);
}
r(o);
}, K6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n, "string") && !t.required)
return r();
se.required(t, n, i, o, a), Ie(n, "string") || se.pattern(t, n, i, o, a);
}
r(o);
}, Y6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n, "date") && !t.required)
return r();
if (se.required(t, n, i, o, a), !Ie(n, "date")) {
var c;
n instanceof Date ? c = n : c = new Date(n), se.type(t, c, i, o, a), c && se.range(t, c.getTime(), i, o, a);
}
}
r(o);
}, G6 = function(t, n, r, i, a) {
var o = [], l = Array.isArray(n) ? "array" : typeof n;
se.required(t, n, i, o, a, l), r(o);
}, rs = function(t, n, r, i, a) {
var o = t.type, l = [], c = t.required || !t.required && i.hasOwnProperty(t.field);
if (c) {
if (Ie(n, o) && !t.required)
return r();
se.required(t, n, i, l, a, o), Ie(n, o) || se.type(t, n, i, l, a);
}
r(l);
}, X6 = function(t, n, r, i, a) {
var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
if (l) {
if (Ie(n) && !t.required)
return r();
se.required(t, n, i, o, a);
}
r(o);
}, pi = {
string: L6,
method: D6,
number: V6,
boolean: j6,
regexp: B6,
integer: W6,
float: Z6,
array: q6,
object: H6,
enum: z6,
pattern: K6,
date: Y6,
url: rs,
hex: rs,
email: rs,
required: G6,
any: X6
};
function Ks() {
return {
default: "Validation error on field %s",
required: "%s is required",
enum: "%s must be one of %s",
whitespace: "%s cannot be empty",
date: {
format: "%s date %s is invalid for format %s",
parse: "%s date could not be parsed, %s is invalid ",
invalid: "%s date %s is invalid"
},
types: {
string: "%s is not a %s",
method: "%s is not a %s (function)",
array: "%s is not an %s",
object: "%s is not an %s",
number: "%s is not a %s",
date: "%s is not a %s",
boolean: "%s is not a %s",
integer: "%s is not an %s",
float: "%s is not a %s",
regexp: "%s is not a valid %s",
email: "%s is not a valid %s",
url: "%s is not a valid %s",
hex: "%s is not a valid %s"
},
string: {
len: "%s must be exactly %s characters",
min: "%s must be at least %s characters",
max: "%s cannot be longer than %s characters",
range: "%s must be between %s and %s characters"
},
number: {
len: "%s must equal %s",
min: "%s cannot be less than %s",
max: "%s cannot be greater than %s",
range: "%s must be between %s and %s"
},
array: {
len: "%s must be exactly %s in length",
min: "%s cannot be less than %s in length",
max: "%s cannot be greater than %s in length",
range: "%s must be between %s and %s in length"
},
pattern: {
mismatch: "%s value %s does not match pattern %s"
},
clone: function() {
var t = JSON.parse(JSON.stringify(this));
return t.clone = this.clone, t;
}
};
}
var Ys = Ks(), Xi = /* @__PURE__ */ function() {
function e(n) {
this.rules = null, this._messages = Ys, this.define(n);
}
var t = e.prototype;
return t.define = function(r) {
var i = this;
if (!r)
throw new Error("Cannot configure a schema with no rules");
if (typeof r != "object" || Array.isArray(r))
throw new Error("Rules must be an object");
this.rules = {}, Object.keys(r).forEach(function(a) {
var o = r[a];
i.rules[a] = Array.isArray(o) ? o : [o];
});
}, t.messages = function(r) {
return r && (this._messages = sf(Ks(), r)), this._messages;
}, t.validate = function(r, i, a) {
var o = this;
i === void 0 && (i = {}), a === void 0 && (a = function() {
});
var l = r, c = i, u = a;
if (typeof c == "function" && (u = c, c = {}), !this.rules || Object.keys(this.rules).length === 0)
return u && u(null, l), Promise.resolve(l);
function f(b) {
var g = [], v = {};
function w(y) {
if (Array.isArray(y)) {
var C;
g = (C = g).concat.apply(C, y);
} else
g.push(y);
}
for (var p = 0; p < b.length; p++)
w(b[p]);
g.length ? (v = zs(g), u(g, v)) : u(null, l);
}
if (c.messages) {
var d = this.messages();
d === Ys && (d = Ks()), sf(d, c.messages), c.messages = d;
} else
c.messages = this.messages();
var m = {}, h = c.keys || Object.keys(this.rules);
h.forEach(function(b) {
var g = o.rules[b], v = l[b];
g.forEach(function(w) {
var p = w;
typeof p.transform == "function" && (l === r && (l = Bn({}, l)), v = l[b] = p.transform(v)), typeof p == "function" ? p = {
validator: p
} : p = Bn({}, p), p.validator = o.getValidationMethod(p), p.validator && (p.field = b, p.fullField = p.fullField || b, p.type = o.getType(p), m[b] = m[b] || [], m[b].push({
rule: p,
value: v,
source: l,
field: b
}));
});
});
var E = {};
return O6(m, c, function(b, g) {
var v = b.rule, w = (v.type === "object" || v.type === "array") && (typeof v.fields == "object" || typeof v.defaultField == "object");
w = w && (v.required || !v.required && b.value), v.field = b.field;
function p(x, k) {
return Bn({}, k, {
fullField: v.fullField + "." + x,
fullFields: v.fullFields ? [].concat(v.fullFields, [x]) : [x]
});
}
function y(x) {
x === void 0 && (x = []);
var k = Array.isArray(x) ? x : [x];
!c.suppressWarning && k.length && e.warning("async-validator:", k), k.length && v.message !== void 0 && (k = [].concat(v.message));
var _ = k.map(of(v, l));
if (c.first && _.length)
return E[v.field] = 1, g(_);
if (!w)
g(_);
else {
if (v.required && !b.value)
return v.message !== void 0 ? _ = [].concat(v.message).map(of(v, l)) : c.error && (_ = [c.error(v, at(c.messages.required, v.field))]), g(_);
var R = {};
v.defaultField && Object.keys(b.value).map(function(A) {
R[A] = v.defaultField;
}), R = Bn({}, R, b.rule.fields);
var O = {};
Object.keys(R).forEach(function(A) {
var M = R[A], N = Array.isArray(M) ? M : [M];
O[A] = N.map(p.bind(null, A));
});
var V = new e(O);
V.messages(c.messages), b.rule.options && (b.rule.options.messages = c.messages, b.rule.options.error = c.error), V.validate(b.value, b.rule.options || c, function(A) {
var M = [];
_ && _.length && M.push.apply(M, _), A && A.length && M.push.apply(M, A), g(M.length ? M : null);
});
}
}
var C;
if (v.asyncValidator)
C = v.asyncValidator(v, b.value, y, b.source, c);
else if (v.validator) {
try {
C = v.validator(v, b.value, y, b.source, c);
} catch (x) {
console.error == null || console.error(x), c.suppressValidatorError || setTimeout(function() {
throw x;
}, 0), y(x.message);
}
C === !0 ? y() : C === !1 ? y(typeof v.message == "function" ? v.message(v.fullField || v.field) : v.message || (v.fullField || v.field) + " fails") : C instanceof Array ? y(C) : C instanceof Error && y(C.message);
}
C && C.then && C.then(function() {
return y();
}, function(x) {
return y(x);
});
}, function(b) {
f(b);
}, l);
}, t.getType = function(r) {
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !pi.hasOwnProperty(r.type))
throw new Error(at("Unknown rule type %s", r.type));
return r.type || "string";
}, t.getValidationMethod = function(r) {
if (typeof r.validator == "function")
return r.validator;
var i = Object.keys(r), a = i.indexOf("message");
return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ? pi.required : pi[this.getType(r)] || void 0;
}, e;
}();
Xi.register = function(t, n) {
if (typeof n != "function")
throw new Error("Cannot register a validator by type, validator is not a function");
pi[t] = n;
};
Xi.warning = k6;
Xi.messages = Ys;
Xi.validators = pi;
var tt = "'${name}' is not a valid ${type}", _0 = {
default: "Validation error on field '${name}'",
required: "'${name}' is required",
enum: "'${name}' must be one of [${enum}]",
whitespace: "'${name}' cannot be empty",
date: {
format: "'${name}' is invalid for format date",
parse: "'${name}' could not be parsed as date",
invalid: "'${name}' is invalid date"
},
types: {
string: tt,
method: tt,
array: tt,
object: tt,
number: tt,
date: tt,
boolean: tt,
integer: tt,
float: tt,
regexp: tt,
email: tt,
url: tt,
hex: tt
},
string: {
len: "'${name}' must be exactly ${len} characters",
min: "'${name}' must be at least ${min} characters",
max: "'${name}' cannot be longer than ${max} characters",
range: "'${name}' must be between ${min} and ${max} characters"
},
number: {
len: "'${name}' must equal ${len}",
min: "'${name}' cannot be less than ${min}",
max: "'${name}' cannot be greater than ${max}",
range: "'${name}' must be between ${min} and ${max}"
},
array: {
len: "'${name}' must be exactly ${len} in length",
min: "'${name}' cannot be less than ${min} in length",
max: "'${name}' cannot be greater than ${max} in length",
range: "'${name}' must be between ${min} and ${max} in length"
},
pattern: {
mismatch: "'${name}' does not match pattern ${pattern}"
}
}, cf = Xi;
function Q6(e, t) {
return e.replace(/\$\{\w+\}/g, function(n) {
var r = n.slice(2, -1);
return t[r];
});
}
var uf = "CODE_LOGIC_ERROR";
function Gs(e, t, n, r, i) {
return Xs.apply(this, arguments);
}
function Xs() {
return Xs = Lo(/* @__PURE__ */ Yt().mark(function e(t, n, r, i, a) {
var o, l, c, u, f, d, m, h, E;
return Yt().wrap(function(g) {
for (; ; )
switch (g.prev = g.next) {
case 0:
return o = ee({}, r), delete o.ruleIndex, cf.warning = function() {
}, o.validator && (l = o.validator, o.validator = function() {
try {
return l.apply(void 0, arguments);
} catch (v) {
return console.error(v), Promise.reject(uf);
}
}), c = null, o && o.type === "array" && o.defaultField && (c = o.defaultField, delete o.defaultField), u = new cf(he({}, t, [o])), f = li(_0, i.validateMessages), u.messages(f), d = [], g.prev = 10, g.next = 13, Promise.resolve(u.validate(he({}, t, n), ee({}, i)));
case 13:
g.next = 18;
break;
case 15:
g.prev = 15, g.t0 = g.catch(10), g.t0.errors && (d = g.t0.errors.map(function(v, w) {
var p = v.message, y = p === uf ? f.default : p;
return /* @__PURE__ */ D.isValidElement(y) ? (
// Wrap ReactNode with `key`
D.cloneElement(y, {
key: "error_".concat(w)
})
) : y;
}));
case 18:
if (!(!d.length && c)) {
g.next = 23;
break;
}
return g.next = 21, Promise.all(n.map(function(v, w) {
return Gs("".concat(t, ".").concat(w), v, c, i, a);
}));
case 21:
return m = g.sent, g.abrupt("return", m.reduce(function(v, w) {
return [].concat(ve(v), ve(w));
}, []));
case 23:
return h = ee(ee({}, r), {}, {
name: t,
enum: (r.enum || []).join(", ")
}, a), E = d.map(function(v) {
return typeof v == "string" ? Q6(v, h) : v;
}), g.abrupt("return", E);
case 26:
case "end":
return g.stop();
}
}, e, null, [[10, 15]]);
})), Xs.apply(this, arguments);
}
function J6(e, t, n, r, i, a) {
var o = e.join("."), l = n.map(function(f, d) {
var m = f.validator, h = ee(ee({}, f), {}, {
ruleIndex: d
});
return m && (h.validator = function(E, b, g) {
var v = !1, w = function() {
for (var C = arguments.length, x = new Array(C), k = 0; k < C; k++)
x[k] = arguments[k];
Promise.resolve().then(function() {
pt(!v, "Your validator function has already return a promise. `callback` will be ignored."), v || g.apply(void 0, x);
});
}, p = m(E, b, w);
v = p && typeof p.then == "function" && typeof p.catch == "function", pt(v, "`callback` is deprecated. Please return a promise instead."), v && p.then(function() {
g();
}).catch(function(y) {
g(y || " ");
});
}), h;
}).sort(function(f, d) {
var m = f.warningOnly, h = f.ruleIndex, E = d.warningOnly, b = d.ruleIndex;
return !!m == !!E ? h - b : m ? 1 : -1;
}), c;
if (i === !0)
c = new Promise(/* @__PURE__ */ function() {
var f = Lo(/* @__PURE__ */ Yt().mark(function d(m, h) {
var E, b, g;
return Yt().wrap(function(w) {
for (; ; )
switch (w.prev = w.next) {
case 0:
E = 0;
case 1:
if (!(E < l.length)) {
w.next = 12;
break;
}
return b = l[E], w.next = 5, Gs(o, t, b, r, a);
case 5:
if (g = w.sent, !g.length) {
w.next = 9;
break;
}
return h([{
errors: g,
rule: b
}]), w.abrupt("return");
case 9:
E += 1, w.next = 1;
break;
case 12:
m([]);
case 13:
case "end":
return w.stop();
}
}, d);
}));
return function(d, m) {
return f.apply(this, arguments);
};
}());
else {
var u = l.map(function(f) {
return Gs(o, t, f, r, a).then(function(d) {
return {
errors: d,
rule: f
};
});
});
c = (i ? ty(u) : ey(u)).then(function(f) {
return Promise.reject(f);
});
}
return c.catch(function(f) {
return f;
}), c;
}
function ey(e) {
return Qs.apply(this, arguments);
}
function Qs() {
return Qs = Lo(/* @__PURE__ */ Yt().mark(function e(t) {
return Yt().wrap(function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.abrupt("return", Promise.all(t).then(function(i) {
var a, o = (a = []).concat.apply(a, ve(i));
return o;
}));
case 1:
case "end":
return r.stop();
}
}, e);
})), Qs.apply(this, arguments);
}
function ty(e) {
return Js.apply(this, arguments);
}
function Js() {
return Js = Lo(/* @__PURE__ */ Yt().mark(function e(t) {
var n;
return Yt().wrap(function(i) {
for (; ; )
switch (i.prev = i.next) {
case 0:
return n = 0, i.abrupt("return", new Promise(function(a) {
t.forEach(function(o) {
o.then(function(l) {
l.errors.length && a([l]), n += 1, n === t.length && a([]);
});
});
}));
case 2:
case "end":
return i.stop();
}
}, e);
})), Js.apply(this, arguments);
}
function Oe(e) {
return qs(e);
}
function ff(e, t) {
var n = {};
return t.forEach(function(r) {
var i = St(e, r);
n = xt(n, r, i);
}), n;
}
function gi(e, t) {
return e && e.some(function(n) {
return S0(n, t);
});
}
function S0(e, t) {
return !e || !t || e.length !== t.length ? !1 : e.every(function(n, r) {
return t[r] === n;
});
}
function ny(e, t) {
if (e === t)
return !0;
if (!e && t || e && !t || !e || !t || ke(e) !== "object" || ke(t) !== "object")
return !1;
var n = Object.keys(e), r = Object.keys(t), i = new Set([].concat(n, r));
return ve(i).every(function(a) {
var o = e[a], l = t[a];
return typeof o == "function" && typeof l == "function" ? !0 : o === l;
});
}
function ry(e) {
var t = arguments.length <= 1 ? void 0 : arguments[1];
return t && t.target && ke(t.target) === "object" && e in t.target ? t.target[e] : t;
}
function df(e, t, n) {
var r = e.length;
if (t < 0 || t >= r || n < 0 || n >= r)
return e;
var i = e[t], a = t - n;
return a > 0 ? [].concat(ve(e.slice(0, n)), [i], ve(e.slice(n, t)), ve(e.slice(t + 1, r))) : a < 0 ? [].concat(ve(e.slice(0, t)), ve(e.slice(t + 1, n + 1)), [i], ve(e.slice(n + 1, r))) : e;
}
var iy = ["name"], ct = [];
function mf(e, t, n, r, i, a) {
return typeof e == "function" ? e(t, n, "source" in a ? {
source: a.source
} : {}) : r !== i;
}
var sc = /* @__PURE__ */ function(e) {
ac(n, e);
var t = oc(n);
function n(r) {
var i;
if (er(this, n), i = t.call(this, r), i.state = {
resetCount: 0
}, i.cancelRegisterFunc = null, i.mounted = !1, i.touched = !1, i.dirty = !1, i.validatePromise = void 0, i.prevValidating = void 0, i.errors = ct, i.warnings = ct, i.cancelRegister = function() {
var c = i.props, u = c.preserve, f = c.isListField, d = c.name;
i.cancelRegisterFunc && i.cancelRegisterFunc(f, u, Oe(d)), i.cancelRegisterFunc = null;
}, i.getNamePath = function() {
var c = i.props, u = c.name, f = c.fieldContext, d = f.prefixName, m = d === void 0 ? [] : d;
return u !== void 0 ? [].concat(ve(m), ve(u)) : [];
}, i.getRules = function() {
var c = i.props, u = c.rules, f = u === void 0 ? [] : u, d = c.fieldContext;
return f.map(function(m) {
return typeof m == "function" ? m(d) : m;
});
}, i.refresh = function() {
i.mounted && i.setState(function(c) {
var u = c.resetCount;
return {
resetCount: u + 1
};
});
}, i.metaCache = null, i.triggerMetaEvent = function(c) {
var u = i.props.onMetaChange;
if (u) {
var f = ee(ee({}, i.getMeta()), {}, {
destroy: c
});
y6(i.metaCache, f) || u(f), i.metaCache = f;
} else
i.metaCache = null;
}, i.onStoreChange = function(c, u, f) {
var d = i.props, m = d.shouldUpdate, h = d.dependencies, E = h === void 0 ? [] : h, b = d.onReset, g = f.store, v = i.getNamePath(), w = i.getValue(c), p = i.getValue(g), y = u && gi(u, v);
switch (f.type === "valueUpdate" && f.source === "external" && w !== p && (i.touched = !0, i.dirty = !0, i.validatePromise = null, i.errors = ct, i.warnings = ct, i.triggerMetaEvent()), f.type) {
case "reset":
if (!u || y) {
i.touched = !1, i.dirty = !1, i.validatePromise = void 0, i.errors = ct, i.warnings = ct, i.triggerMetaEvent(), b == null || b(), i.refresh();
return;
}
break;
case "remove": {
if (m) {
i.reRender();
return;
}
break;
}
case "setField": {
if (y) {
var C = f.data;
"touched" in C && (i.touched = C.touched), "validating" in C && !("originRCField" in C) && (i.validatePromise = C.validating ? Promise.resolve([]) : null), "errors" in C && (i.errors = C.errors || ct), "warnings" in C && (i.warnings = C.warnings || ct), i.dirty = !0, i.triggerMetaEvent(), i.reRender();
return;
}
if (m && !v.length && mf(m, c, g, w, p, f)) {
i.reRender();
return;
}
break;
}
case "dependenciesUpdate": {
var x = E.map(Oe);
if (x.some(function(k) {
return gi(f.relatedFields, k);
})) {
i.reRender();
return;
}
break;
}
default:
if (y || (!E.length || v.length || m) && mf(m, c, g, w, p, f)) {
i.reRender();
return;
}
break;
}
m === !0 && i.reRender();
}, i.validateRules = function(c) {
var u = i.getNamePath(), f = i.getValue(), d = c || {}, m = d.triggerName, h = d.validateOnly, E = h === void 0 ? !1 : h, b = Promise.resolve().then(function() {
if (!i.mounted)
return [];
var g = i.props, v = g.validateFirst, w = v === void 0 ? !1 : v, p = g.messageVariables, y = i.getRules();
m && (y = y.filter(function(x) {
return x;
}).filter(function(x) {
var k = x.validateTrigger;
if (!k)
return !0;
var _ = qs(k);
return _.includes(m);
}));
var C = J6(u, f, y, c, w, p);
return C.catch(function(x) {
return x;
}).then(function() {
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ct;
if (i.validatePromise === b) {
var k;
i.validatePromise = null;
var _ = [], R = [];
(k = x.forEach) === null || k === void 0 || k.call(x, function(O) {
var V = O.rule.warningOnly, A = O.errors, M = A === void 0 ? ct : A;
V ? R.push.apply(R, ve(M)) : _.push.apply(_, ve(M));
}), i.errors = _, i.warnings = R, i.triggerMetaEvent(), i.reRender();
}
}), C;
});
return E || (i.validatePromise = b, i.dirty = !0, i.errors = ct, i.warnings = ct, i.triggerMetaEvent(), i.reRender()), b;
}, i.isFieldValidating = function() {
return !!i.validatePromise;
}, i.isFieldTouched = function() {
return i.touched;
}, i.isFieldDirty = function() {
if (i.dirty || i.props.initialValue !== void 0)
return !0;
var c = i.props.fieldContext, u = c.getInternalHooks(jn), f = u.getInitialValue;
return f(i.getNamePath()) !== void 0;
}, i.getErrors = function() {
return i.errors;
}, i.getWarnings = function() {
return i.warnings;
}, i.isListField = function() {
return i.props.isListField;
}, i.isList = function() {
return i.props.isList;
}, i.isPreserve = function() {
return i.props.preserve;
}, i.getMeta = function() {
i.prevValidating = i.isFieldValidating();
var c = {
touched: i.isFieldTouched(),
validating: i.prevValidating,
errors: i.errors,
warnings: i.warnings,
name: i.getNamePath(),
validated: i.validatePromise === null
};
return c;
}, i.getOnlyChild = function(c) {
if (typeof c == "function") {
var u = i.getMeta();
return ee(ee({}, i.getOnlyChild(c(i.getControlled(), u, i.props.fieldContext))), {}, {
isFunction: !0
});
}
var f = Zs(c);
return f.length !== 1 || !/* @__PURE__ */ D.isValidElement(f[0]) ? {
child: f,
isFunction: !1
} : {
child: f[0],
isFunction: !1
};
}, i.getValue = function(c) {
var u = i.props.fieldContext.getFieldsValue, f = i.getNamePath();
return St(c || u(!0), f);
}, i.getControlled = function() {
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = i.props, f = u.trigger, d = u.validateTrigger, m = u.getValueFromEvent, h = u.normalize, E = u.valuePropName, b = u.getValueProps, g = u.fieldContext, v = d !== void 0 ? d : g.validateTrigger, w = i.getNamePath(), p = g.getInternalHooks, y = g.getFieldsValue, C = p(jn), x = C.dispatch, k = i.getValue(), _ = b || function(A) {
return he({}, E, A);
}, R = c[f], O = ee(ee({}, c), _(k));
O[f] = function() {
i.touched = !0, i.dirty = !0, i.triggerMetaEvent();
for (var A, M = arguments.length, N = new Array(M), T = 0; T < M; T++)
N[T] = arguments[T];
m ? A = m.apply(void 0, N) : A = ry.apply(void 0, [E].concat(N)), h && (A = h(A, k, y(!0))), x({
type: "updateValue",
namePath: w,
value: A
}), R && R.apply(void 0, N);
};
var V = qs(v || []);
return V.forEach(function(A) {
var M = O[A];
O[A] = function() {
M && M.apply(void 0, arguments);
var N = i.props.rules;
N && N.length && x({
type: "validateField",
namePath: w,
triggerName: A
});
};
}), O;
}, r.fieldContext) {
var a = r.fieldContext.getInternalHooks, o = a(jn), l = o.initEntityValue;
l(Ga(i));
}
return i;
}
return tr(n, [{
key: "componentDidMount",
value: function() {
var i = this.props, a = i.shouldUpdate, o = i.fieldContext;
if (this.mounted = !0, o) {
var l = o.getInternalHooks, c = l(jn), u = c.registerField;
this.cancelRegisterFunc = u(this);
}
a === !0 && this.reRender();
}
}, {
key: "componentWillUnmount",
value: function() {
this.cancelRegister(), this.triggerMetaEvent(!0), this.mounted = !1;
}
}, {
key: "reRender",
value: function() {
this.mounted && this.forceUpdate();
}
}, {
key: "render",
value: function() {
var i = this.state.resetCount, a = this.props.children, o = this.getOnlyChild(a), l = o.child, c = o.isFunction, u;
return c ? u = l : /* @__PURE__ */ D.isValidElement(l) ? u = /* @__PURE__ */ D.cloneElement(l, this.getControlled(l.props)) : (pt(!l, "`children` of Field is not validate ReactElement."), u = l), /* @__PURE__ */ D.createElement(D.Fragment, {
key: i
}, u);
}
}]), n;
}(D.Component);
sc.contextType = Xn;
sc.defaultProps = {
trigger: "onChange",
valuePropName: "value"
};
function lc(e) {
var t = e.name, n = Fr(e, iy), r = D.useContext(Xn), i = D.useContext(Qa), a = t !== void 0 ? Oe(t) : void 0, o = "keep";
return n.isListField || (o = "_".concat((a || []).join("_"))), /* @__PURE__ */ D.createElement(sc, Gn({
key: o,
name: a,
isListField: !!i
}, n, {
fieldContext: r
}));
}
var O0 = function(t) {
var n = t.name, r = t.initialValue, i = t.children, a = t.rules, o = t.validateTrigger, l = t.isListField, c = D.useContext(Xn), u = D.useContext(Qa), f = D.useRef({
keys: [],
id: 0
}), d = f.current, m = D.useMemo(function() {
var g = Oe(c.prefixName) || [];
return [].concat(ve(g), ve(Oe(n)));
}, [c.prefixName, n]), h = D.useMemo(function() {
return ee(ee({}, c), {}, {
prefixName: m
});
}, [c, m]), E = D.useMemo(function() {
return {
getKey: function(v) {
var w = m.length, p = v[w];
return [d.keys[p], v.slice(w + 1)];
}
};
}, [m]);
if (typeof i != "function")
return pt(!1, "Form.List only accepts function as children."), null;
var b = function(v, w, p) {
var y = p.source;
return y === "internal" ? !1 : v !== w;
};
return /* @__PURE__ */ D.createElement(Qa.Provider, {
value: E
}, /* @__PURE__ */ D.createElement(Xn.Provider, {
value: h
}, /* @__PURE__ */ D.createElement(lc, {
name: [],
shouldUpdate: b,
rules: a,
validateTrigger: o,
initialValue: r,
isList: !0,
isListField: l ?? !!u
}, function(g, v) {
var w = g.value, p = w === void 0 ? [] : w, y = g.onChange, C = c.getFieldValue, x = function() {
var O = C(m || []);
return O || [];
}, k = {
add: function(O, V) {
var A = x();
V >= 0 && V <= A.length ? (d.keys = [].concat(ve(d.keys.slice(0, V)), [d.id], ve(d.keys.slice(V))), y([].concat(ve(A.slice(0, V)), [O], ve(A.slice(V))))) : (d.keys = [].concat(ve(d.keys), [d.id]), y([].concat(ve(A), [O]))), d.id += 1;
},
remove: function(O) {
var V = x(), A = new Set(Array.isArray(O) ? O : [O]);
A.size <= 0 || (d.keys = d.keys.filter(function(M, N) {
return !A.has(N);
}), y(V.filter(function(M, N) {
return !A.has(N);
})));
},
move: function(O, V) {
if (O !== V) {
var A = x();
O < 0 || O >= A.length || V < 0 || V >= A.length || (d.keys = df(d.keys, O, V), y(df(A, O, V)));
}
}
}, _ = p || [];
return Array.isArray(_) || (_ = []), i(_.map(function(R, O) {
var V = d.keys[O];
return V === void 0 && (d.keys[O] = d.id, V = d.keys[O], d.id += 1), {
name: O,
key: V,
isListField: !0
};
}), k, v);
})));
};
function ay(e) {
var t = !1, n = e.length, r = [];
return e.length ? new Promise(function(i, a) {
e.forEach(function(o, l) {
o.catch(function(c) {
return t = !0, c;
}).then(function(c) {
n -= 1, r[l] = c, !(n > 0) && (t && a(r), i(r));
});
});
}) : Promise.resolve([]);
}
var F0 = "__@field_split__";
function is(e) {
return e.map(function(t) {
return "".concat(ke(t), ":").concat(t);
}).join(F0);
}
var ur = /* @__PURE__ */ function() {
function e() {
er(this, e), this.kvs = /* @__PURE__ */ new Map();
}
return tr(e, [{
key: "set",
value: function(n, r) {
this.kvs.set(is(n), r);
}
}, {
key: "get",
value: function(n) {
return this.kvs.get(is(n));
}
}, {
key: "update",
value: function(n, r) {
var i = this.get(n), a = r(i);
a ? this.set(n, a) : this.delete(n);
}
}, {
key: "delete",
value: function(n) {
this.kvs.delete(is(n));
}
// Since we only use this in test, let simply realize this
}, {
key: "map",
value: function(n) {
return ve(this.kvs.entries()).map(function(r) {
var i = Fe(r, 2), a = i[0], o = i[1], l = a.split(F0);
return n({
key: l.map(function(c) {
var u = c.match(/^([^:]*):(.*)$/), f = Fe(u, 3), d = f[1], m = f[2];
return d === "number" ? Number(m) : m;
}),
value: o
});
});
}
}, {
key: "toJSON",
value: function() {
var n = {};
return this.map(function(r) {
var i = r.key, a = r.value;
return n[i.join(".")] = a, null;
}), n;
}
}]), e;
}(), oy = ["name"], sy = /* @__PURE__ */ tr(function e(t) {
var n = this;
er(this, e), this.formHooked = !1, this.forceRootUpdate = void 0, this.subscribable = !0, this.store = {}, this.fieldEntities = [], this.initialValues = {}, this.callbacks = {}, this.validateMessages = null, this.preserve = null, this.lastValidatePromise = null, this.getForm = function() {
return {
getFieldValue: n.getFieldValue,
getFieldsValue: n.getFieldsValue,
getFieldError: n.getFieldError,
getFieldWarning: n.getFieldWarning,
getFieldsError: n.getFieldsError,
isFieldsTouched: n.isFieldsTouched,
isFieldTouched: n.isFieldTouched,
isFieldValidating: n.isFieldValidating,
isFieldsValidating: n.isFieldsValidating,
resetFields: n.resetFields,
setFields: n.setFields,
setFieldValue: n.setFieldValue,
setFieldsValue: n.setFieldsValue,
validateFields: n.validateFields,
submit: n.submit,
_init: !0,
getInternalHooks: n.getInternalHooks
};
}, this.getInternalHooks = function(r) {
return r === jn ? (n.formHooked = !0, {
dispatch: n.dispatch,
initEntityValue: n.initEntityValue,
registerField: n.registerField,
useSubscribe: n.useSubscribe,
setInitialValues: n.setInitialValues,
destroyForm: n.destroyForm,
setCallbacks: n.setCallbacks,
setValidateMessages: n.setValidateMessages,
getFields: n.getFields,
setPreserve: n.setPreserve,
getInitialValue: n.getInitialValue,
registerWatch: n.registerWatch
}) : (pt(!1, "`getInternalHooks` is internal usage. Should not call directly."), null);
}, this.useSubscribe = function(r) {
n.subscribable = r;
}, this.prevWithoutPreserves = null, this.setInitialValues = function(r, i) {
if (n.initialValues = r || {}, i) {
var a, o = li(r, n.store);
(a = n.prevWithoutPreserves) === null || a === void 0 || a.map(function(l) {
var c = l.key;
o = xt(o, c, St(r, c));
}), n.prevWithoutPreserves = null, n.updateStore(o);
}
}, this.destroyForm = function() {
var r = new ur();
n.getFieldEntities(!0).forEach(function(i) {
n.isMergedPreserve(i.isPreserve()) || r.set(i.getNamePath(), !0);
}), n.prevWithoutPreserves = r;
}, this.getInitialValue = function(r) {
var i = St(n.initialValues, r);
return r.length ? li(i) : i;
}, this.setCallbacks = function(r) {
n.callbacks = r;
}, this.setValidateMessages = function(r) {
n.validateMessages = r;
}, this.setPreserve = function(r) {
n.preserve = r;
}, this.watchList = [], this.registerWatch = function(r) {
return n.watchList.push(r), function() {
n.watchList = n.watchList.filter(function(i) {
return i !== r;
});
};
}, this.notifyWatch = function() {
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
if (n.watchList.length) {
var i = n.getFieldsValue(), a = n.getFieldsValue(!0);
n.watchList.forEach(function(o) {
o(i, a, r);
});
}
}, this.timeoutId = null, this.warningUnhooked = function() {
}, this.updateStore = function(r) {
n.store = r;
}, this.getFieldEntities = function() {
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
return r ? n.fieldEntities.filter(function(i) {
return i.getNamePath().length;
}) : n.fieldEntities;
}, this.getFieldsMap = function() {
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = new ur();
return n.getFieldEntities(r).forEach(function(a) {
var o = a.getNamePath();
i.set(o, a);
}), i;
}, this.getFieldEntitiesForNamePathList = function(r) {
if (!r)
return n.getFieldEntities(!0);
var i = n.getFieldsMap(!0);
return r.map(function(a) {
var o = Oe(a);
return i.get(o) || {
INVALIDATE_NAME_PATH: Oe(a)
};
});
}, this.getFieldsValue = function(r, i) {
if (n.warningUnhooked(), r === !0 && !i)
return n.store;
var a = n.getFieldEntitiesForNamePathList(Array.isArray(r) ? r : null), o = [];
return a.forEach(function(l) {
var c, u = "INVALIDATE_NAME_PATH" in l ? l.INVALIDATE_NAME_PATH : l.getNamePath();
if (!(!r && (!((c = l.isListField) === null || c === void 0) && c.call(l))))
if (!i)
o.push(u);
else {
var f = "getMeta" in l ? l.getMeta() : null;
i(f) && o.push(u);
}
}), ff(n.store, o.map(Oe));
}, this.getFieldValue = function(r) {
n.warningUnhooked();
var i = Oe(r);
return St(n.store, i);
}, this.getFieldsError = function(r) {
n.warningUnhooked();
var i = n.getFieldEntitiesForNamePathList(r);
return i.map(function(a, o) {
return a && !("INVALIDATE_NAME_PATH" in a) ? {
name: a.getNamePath(),
errors: a.getErrors(),
warnings: a.getWarnings()
} : {
name: Oe(r[o]),
errors: [],
warnings: []
};
});
}, this.getFieldError = function(r) {
n.warningUnhooked();
var i = Oe(r), a = n.getFieldsError([i])[0];
return a.errors;
}, this.getFieldWarning = function(r) {
n.warningUnhooked();
var i = Oe(r), a = n.getFieldsError([i])[0];
return a.warnings;
}, this.isFieldsTouched = function() {
n.warningUnhooked();
for (var r = arguments.length, i = new Array(r), a = 0; a < r; a++)
i[a] = arguments[a];
var o = i[0], l = i[1], c, u = !1;
i.length === 0 ? c = null : i.length === 1 ? Array.isArray(o) ? (c = o.map(Oe), u = !1) : (c = null, u = o) : (c = o.map(Oe), u = l);
var f = n.getFieldEntities(!0), d = function(g) {
return g.isFieldTouched();
};
if (!c)
return u ? f.every(d) : f.some(d);
var m = new ur();
c.forEach(function(b) {
m.set(b, []);
}), f.forEach(function(b) {
var g = b.getNamePath();
c.forEach(function(v) {
v.every(function(w, p) {
return g[p] === w;
}) && m.update(v, function(w) {
return [].concat(ve(w), [b]);
});
});
});
var h = function(g) {
return g.some(d);
}, E = m.map(function(b) {
var g = b.value;
return g;
});
return u ? E.every(h) : E.some(h);
}, this.isFieldTouched = function(r) {
return n.warningUnhooked(), n.isFieldsTouched([r]);
}, this.isFieldsValidating = function(r) {
n.warningUnhooked();
var i = n.getFieldEntities();
if (!r)
return i.some(function(o) {
return o.isFieldValidating();
});
var a = r.map(Oe);
return i.some(function(o) {
var l = o.getNamePath();
return gi(a, l) && o.isFieldValidating();
});
}, this.isFieldValidating = function(r) {
return n.warningUnhooked(), n.isFieldsValidating([r]);
}, this.resetWithFieldInitialValue = function() {
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = new ur(), a = n.getFieldEntities(!0);
a.forEach(function(c) {
var u = c.props.initialValue, f = c.getNamePath();
if (u !== void 0) {
var d = i.get(f) || /* @__PURE__ */ new Set();
d.add({
entity: c,
value: u
}), i.set(f, d);
}
});
var o = function(u) {
u.forEach(function(f) {
var d = f.props.initialValue;
if (d !== void 0) {
var m = f.getNamePath(), h = n.getInitialValue(m);
if (h !== void 0)
pt(!1, "Form already set 'initialValues' with path '".concat(m.join("."), "'. Field can not overwrite it."));
else {
var E = i.get(m);
if (E && E.size > 1)
pt(!1, "Multiple Field with path '".concat(m.join("."), "' set 'initialValue'. Can not decide which one to pick."));
else if (E) {
var b = n.getFieldValue(m);
(!r.skipExist || b === void 0) && n.updateStore(xt(n.store, m, ve(E)[0].value));
}
}
}
});
}, l;
r.entities ? l = r.entities : r.namePathList ? (l = [], r.namePathList.forEach(function(c) {
var u = i.get(c);
if (u) {
var f;
(f = l).push.apply(f, ve(ve(u).map(function(d) {
return d.entity;
})));
}
})) : l = a, o(l);
}, this.resetFields = function(r) {
n.warningUnhooked();
var i = n.store;
if (!r) {
n.updateStore(li(n.initialValues)), n.resetWithFieldInitialValue(), n.notifyObservers(i, null, {
type: "reset"
}), n.notifyWatch();
return;
}
var a = r.map(Oe);
a.forEach(function(o) {
var l = n.getInitialValue(o);
n.updateStore(xt(n.store, o, l));
}), n.resetWithFieldInitialValue({
namePathList: a
}), n.notifyObservers(i, a, {
type: "reset"
}), n.notifyWatch(a);
}, this.setFields = function(r) {
n.warningUnhooked();
var i = n.store, a = [];
r.forEach(function(o) {
var l = o.name, c = Fr(o, oy), u = Oe(l);
a.push(u), "value" in c && n.updateStore(xt(n.store, u, c.value)), n.notifyObservers(i, [u], {
type: "setField",
data: o
});
}), n.notifyWatch(a);
}, this.getFields = function() {
var r = n.getFieldEntities(!0), i = r.map(function(a) {
var o = a.getNamePath(), l = a.getMeta(), c = ee(ee({}, l), {}, {
name: o,
value: n.getFieldValue(o)
});
return Object.defineProperty(c, "originRCField", {
value: !0
}), c;
});
return i;
}, this.initEntityValue = function(r) {
var i = r.props.initialValue;
if (i !== void 0) {
var a = r.getNamePath(), o = St(n.store, a);
o === void 0 && n.updateStore(xt(n.store, a, i));
}
}, this.isMergedPreserve = function(r) {
var i = r !== void 0 ? r : n.preserve;
return i ?? !0;
}, this.registerField = function(r) {
n.fieldEntities.push(r);
var i = r.getNamePath();
if (n.notifyWatch([i]), r.props.initialValue !== void 0) {
var a = n.store;
n.resetWithFieldInitialValue({
entities: [r],
skipExist: !0
}), n.notifyObservers(a, [r.getNamePath()], {
type: "valueUpdate",
source: "internal"
});
}
return function(o, l) {
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
if (n.fieldEntities = n.fieldEntities.filter(function(d) {
return d !== r;
}), !n.isMergedPreserve(l) && (!o || c.length > 1)) {
var u = o ? void 0 : n.getInitialValue(i);
if (i.length && n.getFieldValue(i) !== u && n.fieldEntities.every(function(d) {
return (
// Only reset when no namePath exist
!S0(d.getNamePath(), i)
);
})) {
var f = n.store;
n.updateStore(xt(f, i, u, !0)), n.notifyObservers(f, [i], {
type: "remove"
}), n.triggerDependenciesUpdate(f, i);
}
}
n.notifyWatch([i]);
};
}, this.dispatch = function(r) {
switch (r.type) {
case "updateValue": {
var i = r.namePath, a = r.value;
n.updateValue(i, a);
break;
}
case "validateField": {
var o = r.namePath, l = r.triggerName;
n.validateFields([o], {
triggerName: l
});
break;
}
}
}, this.notifyObservers = function(r, i, a) {
if (n.subscribable) {
var o = ee(ee({}, a), {}, {
store: n.getFieldsValue(!0)
});
n.getFieldEntities().forEach(function(l) {
var c = l.onStoreChange;
c(r, i, o);
});
} else
n.forceRootUpdate();
}, this.triggerDependenciesUpdate = function(r, i) {
var a = n.getDependencyChildrenFields(i);
return a.length && n.validateFields(a), n.notifyObservers(r, a, {
type: "dependenciesUpdate",
relatedFields: [i].concat(ve(a))
}), a;
}, this.updateValue = function(r, i) {
var a = Oe(r), o = n.store;
n.updateStore(xt(n.store, a, i)), n.notifyObservers(o, [a], {
type: "valueUpdate",
source: "internal"
}), n.notifyWatch([a]);
var l = n.triggerDependenciesUpdate(o, a), c = n.callbacks.onValuesChange;
if (c) {
var u = ff(n.store, [a]);
c(u, n.getFieldsValue());
}
n.triggerOnFieldsChange([a].concat(ve(l)));
}, this.setFieldsValue = function(r) {
n.warningUnhooked();
var i = n.store;
if (r) {
var a = li(n.store, r);
n.updateStore(a);
}
n.notifyObservers(i, null, {
type: "valueUpdate",
source: "external"
}), n.notifyWatch();
}, this.setFieldValue = function(r, i) {
n.setFields([{
name: r,
value: i
}]);
}, this.getDependencyChildrenFields = function(r) {
var i = /* @__PURE__ */ new Set(), a = [], o = new ur();
n.getFieldEntities().forEach(function(c) {
var u = c.props.dependencies;
(u || []).forEach(function(f) {
var d = Oe(f);
o.update(d, function() {
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
return m.add(c), m;
});
});
});
var l = function c(u) {
var f = o.get(u) || /* @__PURE__ */ new Set();
f.forEach(function(d) {
if (!i.has(d)) {
i.add(d);
var m = d.getNamePath();
d.isFieldDirty() && m.length && (a.push(m), c(m));
}
});
};
return l(r), a;
}, this.triggerOnFieldsChange = function(r, i) {
var a = n.callbacks.onFieldsChange;
if (a) {
var o = n.getFields();
if (i) {
var l = new ur();
i.forEach(function(u) {
var f = u.name, d = u.errors;
l.set(f, d);
}), o.forEach(function(u) {
u.errors = l.get(u.name) || u.errors;
});
}
var c = o.filter(function(u) {
var f = u.name;
return gi(r, f);
});
c.length && a(c, o);
}
}, this.validateFields = function(r, i) {
n.warningUnhooked();
var a, o;
Array.isArray(r) || typeof r == "string" || typeof i == "string" ? (a = r, o = i) : o = r;
var l = !!a, c = l ? a.map(Oe) : [], u = [], f = String(Date.now()), d = /* @__PURE__ */ new Set();
n.getFieldEntities(!0).forEach(function(b) {
var g;
if (l || c.push(b.getNamePath()), !((g = o) === null || g === void 0) && g.recursive && l) {
var v = b.getNamePath();
// nameList[i] === undefined 说明是以 nameList 开头的
// ['name'] -> ['name','list']
v.every(function(y, C) {
return a[C] === y || a[C] === void 0;
}) && c.push(v);
}
if (!(!b.props.rules || !b.props.rules.length)) {
var w = b.getNamePath();
if (d.add(w.join(f)), !l || gi(c, w)) {
var p = b.validateRules(ee({
validateMessages: ee(ee({}, _0), n.validateMessages)
}, o));
u.push(p.then(function() {
return {
name: w,
errors: [],
warnings: []
};
}).catch(function(y) {
var C, x = [], k = [];
return (C = y.forEach) === null || C === void 0 || C.call(y, function(_) {
var R = _.rule.warningOnly, O = _.errors;
R ? k.push.apply(k, ve(O)) : x.push.apply(x, ve(O));
}), x.length ? Promise.reject({
name: w,
errors: x,
warnings: k
}) : {
name: w,
errors: x,
warnings: k
};
}));
}
}
});
var m = ay(u);
n.lastValidatePromise = m, m.catch(function(b) {
return b;
}).then(function(b) {
var g = b.map(function(v) {
var w = v.name;
return w;
});
n.notifyObservers(n.store, g, {
type: "validateFinish"
}), n.triggerOnFieldsChange(g, b);
});
var h = m.then(function() {
return n.lastValidatePromise === m ? Promise.resolve(n.getFieldsValue(c)) : Promise.reject([]);
}).catch(function(b) {
var g = b.filter(function(v) {
return v && v.errors.length;
});
return Promise.reject({
values: n.getFieldsValue(c),
errorFields: g,
outOfDate: n.lastValidatePromise !== m
});
});
h.catch(function(b) {
return b;
});
var E = c.filter(function(b) {
return d.has(b.join(f));
});
return n.triggerOnFieldsChange(E), h;
}, this.submit = function() {
n.warningUnhooked(), n.validateFields().then(function(r) {
var i = n.callbacks.onFinish;
if (i)
try {
i(r);
} catch (a) {
console.error(a);
}
}).catch(function(r) {
var i = n.callbacks.onFinishFailed;
i && i(r);
});
}, this.forceRootUpdate = t;
});
function cc(e) {
var t = D.useRef(), n = D.useState({}), r = Fe(n, 2), i = r[1];
if (!t.current)
if (e)
t.current = e;
else {
var a = function() {
i({});
}, o = new sy(a);
t.current = o.getForm();
}
return [t.current];
}
var el = /* @__PURE__ */ D.createContext({
triggerFormChange: function() {
},
triggerFormFinish: function() {
},
registerForm: function() {
},
unregisterForm: function() {
}
}), ly = function(t) {
var n = t.validateMessages, r = t.onFormChange, i = t.onFormFinish, a = t.children, o = D.useContext(el), l = D.useRef({});
return /* @__PURE__ */ D.createElement(el.Provider, {
value: ee(ee({}, o), {}, {
validateMessages: ee(ee({}, o.validateMessages), n),
// =========================================================
// = Global Form Control =
// =========================================================
triggerFormChange: function(u, f) {
r && r(u, {
changedFields: f,
forms: l.current
}), o.triggerFormChange(u, f);
},
triggerFormFinish: function(u, f) {
i && i(u, {
values: f,
forms: l.current
}), o.triggerFormFinish(u, f);
},
registerForm: function(u, f) {
u && (l.current = ee(ee({}, l.current), {}, he({}, u, f))), o.registerForm(u, f);
},
unregisterForm: function(u) {
var f = ee({}, l.current);
delete f[u], l.current = f, o.unregisterForm(u);
}
})
}, a);
}, cy = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"], uy = function(t, n) {
var r = t.name, i = t.initialValues, a = t.fields, o = t.form, l = t.preserve, c = t.children, u = t.component, f = u === void 0 ? "form" : u, d = t.validateMessages, m = t.validateTrigger, h = m === void 0 ? "onChange" : m, E = t.onValuesChange, b = t.onFieldsChange, g = t.onFinish, v = t.onFinishFailed, w = Fr(t, cy), p = D.useContext(el), y = cc(o), C = Fe(y, 1), x = C[0], k = x.getInternalHooks(jn), _ = k.useSubscribe, R = k.setInitialValues, O = k.setCallbacks, V = k.setValidateMessages, A = k.setPreserve, M = k.destroyForm;
D.useImperativeHandle(n, function() {
return x;
}), D.useEffect(function() {
return p.registerForm(r, x), function() {
p.unregisterForm(r);
};
}, [p, x, r]), V(ee(ee({}, p.validateMessages), d)), O({
onValuesChange: E,
onFieldsChange: function(B) {
if (p.triggerFormChange(r, B), b) {
for (var j = arguments.length, q = new Array(j > 1 ? j - 1 : 0), H = 1; H < j; H++)
q[H - 1] = arguments[H];
b.apply(void 0, [B].concat(q));
}
},
onFinish: function(B) {
p.triggerFormFinish(r, B), g && g(B);
},
onFinishFailed: v
}), A(l);
var N = D.useRef(null);
R(i, !N.current), N.current || (N.current = !0), D.useEffect(
function() {
return M;
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
var T, P = typeof c == "function";
if (P) {
var S = x.getFieldsValue(!0);
T = c(S, x);
} else
T = c;
_(!P);
var I = D.useRef();
D.useEffect(function() {
ny(I.current || [], a || []) || x.setFields(a || []), I.current = a;
}, [a, x]);
var $ = D.useMemo(function() {
return ee(ee({}, x), {}, {
validateTrigger: h
});
}, [x, h]), F = /* @__PURE__ */ D.createElement(Qa.Provider, {
value: null
}, /* @__PURE__ */ D.createElement(Xn.Provider, {
value: $
}, T));
return f === !1 ? F : /* @__PURE__ */ D.createElement(f, Gn({}, w, {
onSubmit: function(B) {
B.preventDefault(), B.stopPropagation(), x.submit();
},
onReset: function(B) {
var j;
B.preventDefault(), x.resetFields(), (j = w.onReset) === null || j === void 0 || j.call(w, B);
}
}), F);
};
function hf(e) {
try {
return JSON.stringify(e);
} catch {
return Math.random();
}
}
function uc() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
var r = t[0], i = r === void 0 ? [] : r, a = t[1], o = a === void 0 ? {} : a, l = b6(o) ? {
form: o
} : o, c = l.form, u = Q(), f = Fe(u, 2), d = f[0], m = f[1], h = de(function() {
return hf(d);
}, [d]), E = W(h);
E.current = h;
var b = ot(Xn), g = c || b, v = g && g._init, w = Oe(i), p = W(w);
return p.current = w, J(
function() {
if (v) {
var y = g.getFieldsValue, C = g.getInternalHooks, x = C(jn), k = x.registerWatch, _ = k(function(O, V) {
var A = St(l.preserve ? V : O, p.current), M = hf(A);
E.current !== M && (E.current = M, m(A));
}), R = St(l.preserve ? y(!0) : y(), p.current);
return m(R), _;
}
},
// We do not need re-register since namePath content is the same
// eslint-disable-next-line react-hooks/exhaustive-deps
[v]
), d;
}
var fy = /* @__PURE__ */ D.forwardRef(uy), Zr = fy;
Zr.FormProvider = ly;
Zr.Field = lc;
Zr.List = O0;
Zr.useForm = cc;
Zr.useWatch = uc;
const R0 = {
name: void 0,
hasFeedback: !0,
layout: "vertical",
requiredMarkStyle: "asterisk",
disabled: !1
}, fc = s.createContext(R0), vf = s.createContext(null), N0 = () => null;
var dy = function(t) {
return my(t) && !hy(t);
};
function my(e) {
return !!e && typeof e == "object";
}
function hy(e) {
var t = Object.prototype.toString.call(e);
return t === "[object RegExp]" || t === "[object Date]" || gy(e);
}
var vy = typeof Symbol == "function" && Symbol.for, py = vy ? Symbol.for("react.element") : 60103;
function gy(e) {
return e.$$typeof === py;
}
function yy(e) {
return Array.isArray(e) ? [] : {};
}
function Pi(e, t) {
return t.clone !== !1 && t.isMergeableObject(e) ? Rr(yy(e), e, t) : e;
}
function by(e, t, n) {
return e.concat(t).map(function(r) {
return Pi(r, n);
});
}
function Ey(e, t) {
if (!t.customMerge)
return Rr;
var n = t.customMerge(e);
return typeof n == "function" ? n : Rr;
}
function wy(e) {
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
return Object.propertyIsEnumerable.call(e, t);
}) : [];
}
function pf(e) {
return Object.keys(e).concat(wy(e));
}
function P0(e, t) {
try {
return t in e;
} catch {
return !1;
}
}
function Cy(e, t) {
return P0(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
}
function xy(e, t, n) {
var r = {};
return n.isMergeableObject(e) && pf(e).forEach(function(i) {
r[i] = Pi(e[i], n);
}), pf(t).forEach(function(i) {
Cy(e, i) || (P0(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ey(i, n)(e[i], t[i], n) : r[i] = Pi(t[i], n));
}), r;
}
function Rr(e, t, n) {
n = n || {}, n.arrayMerge = n.arrayMerge || by, n.isMergeableObject = n.isMergeableObject || dy, n.cloneUnlessOtherwiseSpecified = Pi;
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
return a ? r ? n.arrayMerge(e, t, n) : xy(e, t, n) : Pi(t, n);
}
Rr.all = function(t, n) {
if (!Array.isArray(t))
throw new Error("first argument should be an array");
return t.reduce(function(r, i) {
return Rr(r, i, n);
}, {});
};
var ky = Rr, $y = ky;
const _y = /* @__PURE__ */ Ot($y), M0 = (e) => s.createElement(O0, {
name: e.name,
initialValue: e.initialValue
}, (t, n) => {
const r = t.map((a) => ({
index: a.name,
key: a.key
})), i = e.children(r, n).map((a, o) => {
var l;
return s.createElement(Lt, {
key: r[o].key,
mode: "card",
header: (l = e.renderHeader) === null || l === void 0 ? void 0 : l.call(e, r[o], n)
}, a);
});
return e.renderAdd && i.push(s.createElement(Lt, {
key: "add",
mode: "card"
}, s.createElement(Lt.Item, {
className: "adm-form-list-operation",
onClick: () => {
e.onAdd ? e.onAdd(n) : n.add();
},
arrow: !1
}, e.renderAdd()))), s.createElement(s.Fragment, null, i);
}), gf = "adm-form", Sy = R0, Oy = we((e, t) => {
const n = Y(Sy, e), {
className: r,
style: i,
hasFeedback: a,
children: o,
layout: l,
footer: c,
mode: u,
disabled: f,
requiredMarkStyle: d
} = n, m = mn(n, ["className", "style", "hasFeedback", "children", "layout", "footer", "mode", "disabled", "requiredMarkStyle"]), {
locale: h
} = fe(), E = de(() => _y(h.Form.defaultValidateMessages, m.validateMessages || {}), [h.Form.defaultValidateMessages, m.validateMessages]), b = [];
let g = null, v = [], w = 0;
function p() {
v.length !== 0 && (w += 1, b.push(s.createElement(Lt, {
header: g,
key: w,
mode: u
}, v)), v = []);
}
return kn(n.children, (y) => {
if (s.isValidElement(y)) {
if (y.type === N0) {
p(), g = y.props.children;
return;
}
if (y.type === M0) {
p(), b.push(y);
return;
}
}
v.push(y);
}), p(), s.createElement(Zr, Object.assign({
className: Z(gf, r),
style: i,
ref: t
}, m, {
validateMessages: E
}), s.createElement(fc.Provider, {
value: {
name: m.name,
hasFeedback: a,
layout: l,
requiredMarkStyle: d,
disabled: f
}
}, b), c && s.createElement("div", {
className: `${gf}-footer`
}, c));
});
var Mi = {}, Fy = qi.default, Ry = xn.default;
Object.defineProperty(Mi, "__esModule", {
value: !0
});
var A0 = Mi.default = Mi.HOOK_MARK = void 0, Ny = Ry(bt), Py = Fy(s), My = "RC_FORM_INTERNAL_HOOKS";
Mi.HOOK_MARK = My;
var Ee = function() {
(0, Ny.default)(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
}, Ay = /* @__PURE__ */ Py.createContext({
getFieldValue: Ee,
getFieldsValue: Ee,
getFieldError: Ee,
getFieldWarning: Ee,
getFieldsError: Ee,
isFieldsTouched: Ee,
isFieldTouched: Ee,
isFieldValidating: Ee,
isFieldsValidating: Ee,
resetFields: Ee,
setFields: Ee,
setFieldValue: Ee,
setFieldsValue: Ee,
validateFields: Ee,
submit: Ee,
getInternalHooks: function() {
return Ee(), {
dispatch: Ee,
initEntityValue: Ee,
registerField: Ee,
useSubscribe: Ee,
setInitialValues: Ee,
destroyForm: Ee,
setCallbacks: Ee,
registerWatch: Ee,
getFields: Ee,
setValidateMessages: Ee,
setPreserve: Ee,
getInitialValue: Ee
};
}
}), Ty = Ay;
A0 = Mi.default = Ty;
function Iy(...e) {
let t;
for (t = 0; t < e.length && e[t] === void 0; t++)
;
return e[t];
}
const Ly = ["top", "right", "bottom", "left"], Nr = Math.min, qn = Math.max, Ja = Math.round, ha = Math.floor, pn = (e) => ({
x: e,
y: e
}), Dy = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
}, Vy = {
start: "end",
end: "start"
};
function tl(e, t, n) {
return qn(e, Nr(t, n));
}
function gn(e, t) {
return typeof e == "function" ? e(t) : e;
}
function yn(e) {
return e.split("-")[0];
}
function Qi(e) {
return e.split("-")[1];
}
function dc(e) {
return e === "x" ? "y" : "x";
}
function mc(e) {
return e === "y" ? "height" : "width";
}
function Ji(e) {
return ["top", "bottom"].includes(yn(e)) ? "y" : "x";
}
function hc(e) {
return dc(Ji(e));
}
function jy(e, t, n) {
n === void 0 && (n = !1);
const r = Qi(e), i = hc(e), a = mc(i);
let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
return t.reference[a] > t.floating[a] && (o = eo(o)), [o, eo(o)];
}
function By(e) {
const t = eo(e);
return [nl(e), t, nl(t)];
}
function nl(e) {
return e.replace(/start|end/g, (t) => Vy[t]);
}
function Wy(e, t, n) {
const r = ["left", "right"], i = ["right", "left"], a = ["top", "bottom"], o = ["bottom", "top"];
switch (e) {
case "top":
case "bottom":
return n ? t ? i : r : t ? r : i;
case "left":
case "right":
return t ? a : o;
default:
return [];
}
}
function Zy(e, t, n, r) {
const i = Qi(e);
let a = Wy(yn(e), n === "start", r);
return i && (a = a.map((o) => o + "-" + i), t && (a = a.concat(a.map(nl)))), a;
}
function eo(e) {
return e.replace(/left|right|bottom|top/g, (t) => Dy[t]);
}
function qy(e) {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
...e
};
}
function T0(e) {
return typeof e != "number" ? qy(e) : {
top: e,
right: e,
bottom: e,
left: e
};
}
function to(e) {
return {
...e,
top: e.y,
left: e.x,
right: e.x + e.width,
bottom: e.y + e.height
};
}
function yf(e, t, n) {
let {
reference: r,
floating: i
} = e;
const a = Ji(t), o = hc(t), l = mc(o), c = yn(t), u = a === "y", f = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, m = r[l] / 2 - i[l] / 2;
let h;
switch (c) {
case "top":
h = {
x: f,
y: r.y - i.height
};
break;
case "bottom":
h = {
x: f,
y: r.y + r.height
};
break;
case "right":
h = {
x: r.x + r.width,
y: d
};
break;
case "left":
h = {
x: r.x - i.width,
y: d
};
break;
default:
h = {
x: r.x,
y: r.y
};
}
switch (Qi(t)) {
case "start":
h[o] -= m * (n && u ? -1 : 1);
break;
case "end":
h[o] += m * (n && u ? -1 : 1);
break;
}
return h;
}
const Hy = async (e, t, n) => {
const {
placement: r = "bottom",
strategy: i = "absolute",
middleware: a = [],
platform: o
} = n, l = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t));
let u = await o.getElementRects({
reference: e,
floating: t,
strategy: i
}), {
x: f,
y: d
} = yf(u, r, c), m = r, h = {}, E = 0;
for (let b = 0; b < l.length; b++) {
const {
name: g,
fn: v
} = l[b], {
x: w,
y: p,
data: y,
reset: C
} = await v({
x: f,
y: d,
initialPlacement: r,
placement: m,
strategy: i,
middlewareData: h,
rects: u,
platform: o,
elements: {
reference: e,
floating: t
}
});
if (f = w ?? f, d = p ?? d, h = {
...h,
[g]: {
...h[g],
...y
}
}, C && E <= 50) {
E++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (u = C.rects === !0 ? await o.getElementRects({
reference: e,
floating: t,
strategy: i
}) : C.rects), {
x: f,
y: d
} = yf(u, m, c)), b = -1;
continue;
}
}
return {
x: f,
y: d,
placement: m,
strategy: i,
middlewareData: h
};
};
async function no(e, t) {
var n;
t === void 0 && (t = {});
const {
x: r,
y: i,
platform: a,
rects: o,
elements: l,
strategy: c
} = e, {
boundary: u = "clippingAncestors",
rootBoundary: f = "viewport",
elementContext: d = "floating",
altBoundary: m = !1,
padding: h = 0
} = gn(t, e), E = T0(h), g = l[m ? d === "floating" ? "reference" : "floating" : d], v = to(await a.getClippingRect({
element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
boundary: u,
rootBoundary: f,
strategy: c
})), w = d === "floating" ? {
...o.floating,
x: r,
y: i
} : o.reference, p = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)), y = await (a.isElement == null ? void 0 : a.isElement(p)) ? await (a.getScale == null ? void 0 : a.getScale(p)) || {
x: 1,
y: 1
} : {
x: 1,
y: 1
}, C = to(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
rect: w,
offsetParent: p,
strategy: c
}) : w);
return {
top: (v.top - C.top + E.top) / y.y,
bottom: (C.bottom - v.bottom + E.bottom) / y.y,
left: (v.left - C.left + E.left) / y.x,
right: (C.right - v.right + E.right) / y.x
};
}
const Uy = (e) => ({
name: "arrow",
options: e,
async fn(t) {
const {
x: n,
y: r,
placement: i,
rects: a,
platform: o,
elements: l,
middlewareData: c
} = t, {
element: u,
padding: f = 0
} = gn(e, t) || {};
if (u == null)
return {};
const d = T0(f), m = {
x: n,
y: r
}, h = hc(i), E = mc(h), b = await o.getDimensions(u), g = h === "y", v = g ? "top" : "left", w = g ? "bottom" : "right", p = g ? "clientHeight" : "clientWidth", y = a.reference[E] + a.reference[h] - m[h] - a.floating[E], C = m[h] - a.reference[h], x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
let k = x ? x[p] : 0;
(!k || !await (o.isElement == null ? void 0 : o.isElement(x))) && (k = l.floating[p] || a.floating[E]);
const _ = y / 2 - C / 2, R = k / 2 - b[E] / 2 - 1, O = Nr(d[v], R), V = Nr(d[w], R), A = O, M = k - b[E] - V, N = k / 2 - b[E] / 2 + _, T = tl(A, N, M), P = !c.arrow && Qi(i) != null && N != T && a.reference[E] / 2 - (N < A ? O : V) - b[E] / 2 < 0, S = P ? N < A ? N - A : N - M : 0;
return {
[h]: m[h] + S,
data: {
[h]: T,
centerOffset: N - T - S,
...P && {
alignmentOffset: S
}
},
reset: P
};
}
}), zy = function(e) {
return e === void 0 && (e = {}), {
name: "flip",
options: e,
async fn(t) {
var n, r;
const {
placement: i,
middlewareData: a,
rects: o,
initialPlacement: l,
platform: c,
elements: u
} = t, {
mainAxis: f = !0,
crossAxis: d = !0,
fallbackPlacements: m,
fallbackStrategy: h = "bestFit",
fallbackAxisSideDirection: E = "none",
flipAlignment: b = !0,
...g
} = gn(e, t);
if ((n = a.arrow) != null && n.alignmentOffset)
return {};
const v = yn(i), w = yn(l) === l, p = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), y = m || (w || !b ? [eo(l)] : By(l));
!m && E !== "none" && y.push(...Zy(l, b, E, p));
const C = [l, ...y], x = await no(t, g), k = [];
let _ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
if (f && k.push(x[v]), d) {
const A = jy(i, o, p);
k.push(x[A[0]], x[A[1]]);
}
if (_ = [..._, {
placement: i,
overflows: k
}], !k.every((A) => A <= 0)) {
var R, O;
const A = (((R = a.flip) == null ? void 0 : R.index) || 0) + 1, M = C[A];
if (M)
return {
data: {
index: A,
overflows: _
},
reset: {
placement: M
}
};
let N = (O = _.filter((T) => T.overflows[0] <= 0).sort((T, P) => T.overflows[1] - P.overflows[1])[0]) == null ? void 0 : O.placement;
if (!N)
switch (h) {
case "bestFit": {
var V;
const T = (V = _.map((P) => [P.placement, P.overflows.filter((S) => S > 0).reduce((S, I) => S + I, 0)]).sort((P, S) => P[1] - S[1])[0]) == null ? void 0 : V[0];
T && (N = T);
break;
}
case "initialPlacement":
N = l;
break;
}
if (i !== N)
return {
reset: {
placement: N
}
};
}
return {};
}
};
};
function bf(e, t) {
return {
top: e.top - t.height,
right: e.right - t.width,
bottom: e.bottom - t.height,
left: e.left - t.width
};
}
function Ef(e) {
return Ly.some((t) => e[t] >= 0);
}
const Ky = function(e) {
return e === void 0 && (e = {}), {
name: "hide",
options: e,
async fn(t) {
const {
rects: n
} = t, {
strategy: r = "referenceHidden",
...i
} = gn(e, t);
switch (r) {
case "referenceHidden": {
const a = await no(t, {
...i,
elementContext: "reference"
}), o = bf(a, n.reference);
return {
data: {
referenceHiddenOffsets: o,
referenceHidden: Ef(o)
}
};
}
case "escaped": {
const a = await no(t, {
...i,
altBoundary: !0
}), o = bf(a, n.floating);
return {
data: {
escapedOffsets: o,
escaped: Ef(o)
}
};
}
default:
return {};
}
}
};
};
async function Yy(e, t) {
const {
placement: n,
platform: r,
elements: i
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = yn(n), l = Qi(n), c = Ji(n) === "y", u = ["left", "top"].includes(o) ? -1 : 1, f = a && c ? -1 : 1, d = gn(t, e);
let {
mainAxis: m,
crossAxis: h,
alignmentAxis: E
} = typeof d == "number" ? {
mainAxis: d,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: 0,
crossAxis: 0,
alignmentAxis: null,
...d
};
return l && typeof E == "number" && (h = l === "end" ? E * -1 : E), c ? {
x: h * f,
y: m * u
} : {
x: m * u,
y: h * f
};
}
const Gy = function(e) {
return e === void 0 && (e = 0), {
name: "offset",
options: e,
async fn(t) {
const {
x: n,
y: r
} = t, i = await Yy(t, e);
return {
x: n + i.x,
y: r + i.y,
data: i
};
}
};
}, Xy = function(e) {
return e === void 0 && (e = {}), {
name: "shift",
options: e,
async fn(t) {
const {
x: n,
y: r,
placement: i
} = t, {
mainAxis: a = !0,
crossAxis: o = !1,
limiter: l = {
fn: (g) => {
let {
x: v,
y: w
} = g;
return {
x: v,
y: w
};
}
},
...c
} = gn(e, t), u = {
x: n,
y: r
}, f = await no(t, c), d = Ji(yn(i)), m = dc(d);
let h = u[m], E = u[d];
if (a) {
const g = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = h + f[g], p = h - f[v];
h = tl(w, h, p);
}
if (o) {
const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", w = E + f[g], p = E - f[v];
E = tl(w, E, p);
}
const b = l.fn({
...t,
[m]: h,
[d]: E
});
return {
...b,
data: {
x: b.x - n,
y: b.y - r
}
};
}
};
}, Qy = function(e) {
return e === void 0 && (e = {}), {
options: e,
fn(t) {
const {
x: n,
y: r,
placement: i,
rects: a,
middlewareData: o
} = t, {
offset: l = 0,
mainAxis: c = !0,
crossAxis: u = !0
} = gn(e, t), f = {
x: n,
y: r
}, d = Ji(i), m = dc(d);
let h = f[m], E = f[d];
const b = gn(l, t), g = typeof b == "number" ? {
mainAxis: b,
crossAxis: 0
} : {
mainAxis: 0,
crossAxis: 0,
...b
};
if (c) {
const p = m === "y" ? "height" : "width", y = a.reference[m] - a.floating[p] + g.mainAxis, C = a.reference[m] + a.reference[p] - g.mainAxis;
h < y ? h = y : h > C && (h = C);
}
if (u) {
var v, w;
const p = m === "y" ? "width" : "height", y = ["top", "left"].includes(yn(i)), C = a.reference[d] - a.floating[p] + (y && ((v = o.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 : g.crossAxis), x = a.reference[d] + a.reference[p] + (y ? 0 : ((w = o.offset) == null ? void 0 : w[d]) || 0) - (y ? g.crossAxis : 0);
E < C ? E = C : E > x && (E = x);
}
return {
[m]: h,
[d]: E
};
}
};
};
function bn(e) {
return I0(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function st(e) {
var t;
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
}
function Qt(e) {
var t;
return (t = (I0(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
}
function I0(e) {
return e instanceof Node || e instanceof st(e).Node;
}
function Gt(e) {
return e instanceof Element || e instanceof st(e).Element;
}
function jt(e) {
return e instanceof HTMLElement || e instanceof st(e).HTMLElement;
}
function wf(e) {
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof st(e).ShadowRoot;
}
function ea(e) {
const {
overflow: t,
overflowX: n,
overflowY: r,
display: i
} = yt(e);
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
}
function Jy(e) {
return ["table", "td", "th"].includes(bn(e));
}
function vc(e) {
const t = pc(), n = yt(e);
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
}
function e7(e) {
let t = Pr(e);
for (; jt(t) && !Do(t); ) {
if (vc(t))
return t;
t = Pr(t);
}
return null;
}
function pc() {
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function Do(e) {
return ["html", "body", "#document"].includes(bn(e));
}
function yt(e) {
return st(e).getComputedStyle(e);
}
function Vo(e) {
return Gt(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : {
scrollLeft: e.pageXOffset,
scrollTop: e.pageYOffset
};
}
function Pr(e) {
if (bn(e) === "html")
return e;
const t = (
// Step into the shadow DOM of the parent of a slotted node.
e.assignedSlot || // DOM Element detected.
e.parentNode || // ShadowRoot detected.
wf(e) && e.host || // Fallback.
Qt(e)
);
return wf(t) ? t.host : t;
}
function L0(e) {
const t = Pr(e);
return Do(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : jt(t) && ea(t) ? t : L0(t);
}
function Ai(e, t, n) {
var r;
t === void 0 && (t = []), n === void 0 && (n = !0);
const i = L0(e), a = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = st(i);
return a ? t.concat(o, o.visualViewport || [], ea(i) ? i : [], o.frameElement && n ? Ai(o.frameElement) : []) : t.concat(i, Ai(i, [], n));
}
function D0(e) {
const t = yt(e);
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
const i = jt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, l = Ja(n) !== a || Ja(r) !== o;
return l && (n = a, r = o), {
width: n,
height: r,
$: l
};
}
function gc(e) {
return Gt(e) ? e : e.contextElement;
}
function xr(e) {
const t = gc(e);
if (!jt(t))
return pn(1);
const n = t.getBoundingClientRect(), {
width: r,
height: i,
$: a
} = D0(t);
let o = (a ? Ja(n.width) : n.width) / r, l = (a ? Ja(n.height) : n.height) / i;
return (!o || !Number.isFinite(o)) && (o = 1), (!l || !Number.isFinite(l)) && (l = 1), {
x: o,
y: l
};
}
const t7 = /* @__PURE__ */ pn(0);
function V0(e) {
const t = st(e);
return !pc() || !t.visualViewport ? t7 : {
x: t.visualViewport.offsetLeft,
y: t.visualViewport.offsetTop
};
}
function n7(e, t, n) {
return t === void 0 && (t = !1), !n || t && n !== st(e) ? !1 : t;
}
function Qn(e, t, n, r) {
t === void 0 && (t = !1), n === void 0 && (n = !1);
const i = e.getBoundingClientRect(), a = gc(e);
let o = pn(1);
t && (r ? Gt(r) && (o = xr(r)) : o = xr(e));
const l = n7(a, n, r) ? V0(a) : pn(0);
let c = (i.left + l.x) / o.x, u = (i.top + l.y) / o.y, f = i.width / o.x, d = i.height / o.y;
if (a) {
const m = st(a), h = r && Gt(r) ? st(r) : r;
let E = m.frameElement;
for (; E && r && h !== m; ) {
const b = xr(E), g = E.getBoundingClientRect(), v = yt(E), w = g.left + (E.clientLeft + parseFloat(v.paddingLeft)) * b.x, p = g.top + (E.clientTop + parseFloat(v.paddingTop)) * b.y;
c *= b.x, u *= b.y, f *= b.x, d *= b.y, c += w, u += p, E = st(E).frameElement;
}
}
return to({
width: f,
height: d,
x: c,
y: u
});
}
function r7(e) {
let {
rect: t,
offsetParent: n,
strategy: r
} = e;
const i = jt(n), a = Qt(n);
if (n === a)
return t;
let o = {
scrollLeft: 0,
scrollTop: 0
}, l = pn(1);
const c = pn(0);
if ((i || !i && r !== "fixed") && ((bn(n) !== "body" || ea(a)) && (o = Vo(n)), jt(n))) {
const u = Qn(n);
l = xr(n), c.x = u.x + n.clientLeft, c.y = u.y + n.clientTop;
}
return {
width: t.width * l.x,
height: t.height * l.y,
x: t.x * l.x - o.scrollLeft * l.x + c.x,
y: t.y * l.y - o.scrollTop * l.y + c.y
};
}
function i7(e) {
return Array.from(e.getClientRects());
}
function j0(e) {
return Qn(Qt(e)).left + Vo(e).scrollLeft;
}
function a7(e) {
const t = Qt(e), n = Vo(e), r = e.ownerDocument.body, i = qn(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = qn(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
let o = -n.scrollLeft + j0(e);
const l = -n.scrollTop;
return yt(r).direction === "rtl" && (o += qn(t.clientWidth, r.clientWidth) - i), {
width: i,
height: a,
x: o,
y: l
};
}
function o7(e, t) {
const n = st(e), r = Qt(e), i = n.visualViewport;
let a = r.clientWidth, o = r.clientHeight, l = 0, c = 0;
if (i) {
a = i.width, o = i.height;
const u = pc();
(!u || u && t === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
}
return {
width: a,
height: o,
x: l,
y: c
};
}
function s7(e, t) {
const n = Qn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = jt(e) ? xr(e) : pn(1), o = e.clientWidth * a.x, l = e.clientHeight * a.y, c = i * a.x, u = r * a.y;
return {
width: o,
height: l,
x: c,
y: u
};
}
function Cf(e, t, n) {
let r;
if (t === "viewport")
r = o7(e, n);
else if (t === "document")
r = a7(Qt(e));
else if (Gt(t))
r = s7(t, n);
else {
const i = V0(e);
r = {
...t,
x: t.x - i.x,
y: t.y - i.y
};
}
return to(r);
}
function B0(e, t) {
const n = Pr(e);
return n === t || !Gt(n) || Do(n) ? !1 : yt(n).position === "fixed" || B0(n, t);
}
function l7(e, t) {
const n = t.get(e);
if (n)
return n;
let r = Ai(e, [], !1).filter((l) => Gt(l) && bn(l) !== "body"), i = null;
const a = yt(e).position === "fixed";
let o = a ? Pr(e) : e;
for (; Gt(o) && !Do(o); ) {
const l = yt(o), c = vc(o);
!c && l.position === "fixed" && (i = null), (a ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ea(o) && !c && B0(e, o)) ? r = r.filter((f) => f !== o) : i = l, o = Pr(o);
}
return t.set(e, r), r;
}
function c7(e) {
let {
element: t,
boundary: n,
rootBoundary: r,
strategy: i
} = e;
const o = [...n === "clippingAncestors" ? l7(t, this._c) : [].concat(n), r], l = o[0], c = o.reduce((u, f) => {
const d = Cf(t, f, i);
return u.top = qn(d.top, u.top), u.right = Nr(d.right, u.right), u.bottom = Nr(d.bottom, u.bottom), u.left = qn(d.left, u.left), u;
}, Cf(t, l, i));
return {
width: c.right - c.left,
height: c.bottom - c.top,
x: c.left,
y: c.top
};
}
function u7(e) {
return D0(e);
}
function f7(e, t, n) {
const r = jt(t), i = Qt(t), a = n === "fixed", o = Qn(e, !0, a, t);
let l = {
scrollLeft: 0,
scrollTop: 0
};
const c = pn(0);
if (r || !r && !a)
if ((bn(t) !== "body" || ea(i)) && (l = Vo(t)), r) {
const u = Qn(t, !0, a, t);
c.x = u.x + t.clientLeft, c.y = u.y + t.clientTop;
} else
i && (c.x = j0(i));
return {
x: o.left + l.scrollLeft - c.x,
y: o.top + l.scrollTop - c.y,
width: o.width,
height: o.height
};
}
function xf(e, t) {
return !jt(e) || yt(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
}
function W0(e, t) {
const n = st(e);
if (!jt(e))
return n;
let r = xf(e, t);
for (; r && Jy(r) && yt(r).position === "static"; )
r = xf(r, t);
return r && (bn(r) === "html" || bn(r) === "body" && yt(r).position === "static" && !vc(r)) ? n : r || e7(e) || n;
}
const d7 = async function(e) {
let {
reference: t,
floating: n,
strategy: r
} = e;
const i = this.getOffsetParent || W0, a = this.getDimensions;
return {
reference: f7(t, await i(n), r),
floating: {
x: 0,
y: 0,
...await a(n)
}
};
};
function m7(e) {
return yt(e).direction === "rtl";
}
const h7 = {
convertOffsetParentRelativeRectToViewportRelativeRect: r7,
getDocumentElement: Qt,
getClippingRect: c7,
getOffsetParent: W0,
getElementRects: d7,
getClientRects: i7,
getDimensions: u7,
getScale: xr,
isElement: Gt,
isRTL: m7
};
function v7(e, t) {
let n = null, r;
const i = Qt(e);
function a() {
clearTimeout(r), n && n.disconnect(), n = null;
}
function o(l, c) {
l === void 0 && (l = !1), c === void 0 && (c = 1), a();
const {
left: u,
top: f,
width: d,
height: m
} = e.getBoundingClientRect();
if (l || t(), !d || !m)
return;
const h = ha(f), E = ha(i.clientWidth - (u + d)), b = ha(i.clientHeight - (f + m)), g = ha(u), w = {
rootMargin: -h + "px " + -E + "px " + -b + "px " + -g + "px",
threshold: qn(0, Nr(1, c)) || 1
};
let p = !0;
function y(C) {
const x = C[0].intersectionRatio;
if (x !== c) {
if (!p)
return o();
x ? o(!1, x) : r = setTimeout(() => {
o(!1, 1e-7);
}, 100);
}
p = !1;
}
try {
n = new IntersectionObserver(y, {
...w,
// Handle <iframe>s
root: i.ownerDocument
});
} catch {
n = new IntersectionObserver(y, w);
}
n.observe(e);
}
return o(!0), a;
}
function p7(e, t, n, r) {
r === void 0 && (r = {});
const {
ancestorScroll: i = !0,
ancestorResize: a = !0,
elementResize: o = typeof ResizeObserver == "function",
layoutShift: l = typeof IntersectionObserver == "function",
animationFrame: c = !1
} = r, u = gc(e), f = i || a ? [...u ? Ai(u) : [], ...Ai(t)] : [];
f.forEach((v) => {
i && v.addEventListener("scroll", n, {
passive: !0
}), a && v.addEventListener("resize", n);
});
const d = u && l ? v7(u, n) : null;
let m = -1, h = null;
o && (h = new ResizeObserver((v) => {
let [w] = v;
w && w.target === u && h && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
h && h.observe(t);
})), n();
}), u && !c && h.observe(u), h.observe(t));
let E, b = c ? Qn(e) : null;
c && g();
function g() {
const v = Qn(e);
b && (v.x !== b.x || v.y !== b.y || v.width !== b.width || v.height !== b.height) && n(), b = v, E = requestAnimationFrame(g);
}
return n(), () => {
f.forEach((v) => {
i && v.removeEventListener("scroll", n), a && v.removeEventListener("resize", n);
}), d && d(), h && h.disconnect(), h = null, c && cancelAnimationFrame(E);
};
}
const g7 = (e, t, n) => {
const r = /* @__PURE__ */ new Map(), i = {
platform: h7,
...n
}, a = {
...i.platform,
_c: r
};
return Hy(e, t, {
...i,
platform: a
});
};
let ln = null, kr = null;
function y7() {
ln === null && (!Ar || !document.body || (ln = document.createElement("div"), ln.className = "adm-px-tester", ln.style.setProperty("--size", "10"), document.body.appendChild(ln), kr = document.createElement("div"), kr.className = "adm-px-tester", document.body.appendChild(kr)));
}
function Hn(e) {
return ln === null && y7(), ln === null || kr === null || ln.getBoundingClientRect().height === 10 ? e : (kr.style.setProperty("--size", e.toString()), kr.getBoundingClientRect().height);
}
const b7 = Ke((e) => U(e, s.createElement("svg", {
viewBox: "0 0 30 16"
}, s.createElement("g", {
fill: "currentColor"
}, s.createElement("path", {
d: "M0,0 L30,0 L18.07289,14.312538 C16.65863,16.009645 14.13637,16.238942 12.43926,14.824685 C12.25341,14.669808 12.08199,14.49839 11.92711,14.312538 L0,0 L0,0 Z"
}))))), E7 = {
topLeft: "top-start",
topRight: "top-end",
bottomLeft: "bottom-start",
bottomRight: "bottom-end",
leftTop: "left-start",
leftBottom: "left-end",
rightTop: "right-start",
rightBottom: "right-end"
};
function w7(e) {
var t;
return (t = E7[e]) !== null && t !== void 0 ? t : e;
}
function C7() {
const e = W(!1), t = W(), n = () => {
e.current = !0, clearTimeout(t.current), t.current = setTimeout(() => {
e.current = !1;
});
}, r = () => e.current;
return J(() => () => {
clearTimeout(t.current);
}, []), {
markShowing: n,
isShowing: r
};
}
var jo = {}, yc = xn.default;
Object.defineProperty(jo, "__esModule", {
value: !0
});
var x7 = jo.default = S7, k7 = jo.getDOM = Z0;
jo.isDOM = rl;
var $7 = yc(Cn), _7 = yc(s), kf = yc(Ta);
function rl(e) {
return e instanceof HTMLElement || e instanceof SVGElement;
}
function Z0(e) {
return e && (0, $7.default)(e) === "object" && rl(e.nativeElement) ? e.nativeElement : rl(e) ? e : null;
}
function S7(e) {
var t = Z0(e);
if (t)
return t;
if (e instanceof _7.default.Component) {
var n;
return (n = kf.default.findDOMNode) === null || n === void 0 ? void 0 : n.call(kf.default, e);
}
return null;
}
var rt = {}, bc = {}, O7 = qi.default;
Object.defineProperty(bc, "__esModule", {
value: !0
});
bc.default = R7;
var F7 = O7(s);
function R7(e, t, n) {
var r = F7.useRef({});
return (!("value" in r.current) || n(r.current.condition, t)) && (r.current.value = e(), r.current.condition = t), r.current.value;
}
var Bo = {}, N7 = xn.default;
Object.defineProperty(Bo, "__esModule", {
value: !0
});
Bo.default = I7;
var P7 = N7(Cn), M7 = Symbol.for("react.element"), A7 = Symbol.for("react.transitional.element"), T7 = Symbol.for("react.fragment");
function I7(e) {
return (
// Base object type
e && (0, P7.default)(e) === "object" && // React Element type
(e.$$typeof === M7 || e.$$typeof === A7) && // React Fragment type
e.type === T7
);
}
var Ec, wc, Cc, xc = xn.default;
Object.defineProperty(rt, "__esModule", {
value: !0
});
rt.useComposeRef = Cc = rt.supportRef = rt.supportNodeRef = wc = rt.getNodeRef = rt.fillRef = Ec = rt.composeRef = void 0;
var L7 = xc(Cn), q0 = s, as = Wn, D7 = xc(bc), V7 = xc(Bo), j7 = Number(q0.version.split(".")[0]), B7 = rt.fillRef = function(t, n) {
typeof t == "function" ? t(n) : (0, L7.default)(t) === "object" && t && "current" in t && (t.current = n);
}, W7 = Ec = rt.composeRef = function() {
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
var i = n.filter(Boolean);
return i.length <= 1 ? i[0] : function(a) {
n.forEach(function(o) {
B7(o, a);
});
};
};
rt.useComposeRef = function() {
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
return (0, D7.default)(function() {
return W7.apply(void 0, n);
}, n, function(i, a) {
return i.length !== a.length || i.every(function(o, l) {
return o !== a[l];
});
});
};
var Z7 = Cc = rt.supportRef = function(t) {
var n, r;
if (!t)
return !1;
if (kc(t) && j7 >= 19)
return !0;
var i = (0, as.isMemo)(t) ? t.type.type : t.type;
return !(typeof i == "function" && !((n = i.prototype) !== null && n !== void 0 && n.render) && i.$$typeof !== as.ForwardRef || typeof t == "function" && !((r = t.prototype) !== null && r !== void 0 && r.render) && t.$$typeof !== as.ForwardRef);
};
function kc(e) {
return /* @__PURE__ */ (0, q0.isValidElement)(e) && !(0, V7.default)(e);
}
rt.supportNodeRef = function(t) {
return kc(t) && Z7(t);
};
wc = rt.getNodeRef = function(t) {
if (t && kc(t)) {
var n = t;
return n.props.propertyIsEnumerable("ref") ? n.props.ref : n.ref;
}
return null;
};
class q7 extends D.Component {
constructor() {
super(...arguments), this.element = null;
}
componentDidMount() {
this.componentDidUpdate();
}
componentDidUpdate() {
const t = x7(this);
t instanceof Element ? this.element = t : this.element = null;
}
render() {
return this.props.children;
}
}
const H7 = D.forwardRef(({
children: e
}, t) => {
const n = D.useRef(null), r = D.createRef(), i = D.Children.only(e), a = Cc(e), o = () => {
var c;
return a ? k7(n.current) : (c = r.current) === null || c === void 0 ? void 0 : c.element;
};
D.useImperativeHandle(t, () => ({
element: o()
}));
const l = Ec(n, wc(i));
return a ? D.cloneElement(i, {
ref: l
}) : D.createElement(q7, {
ref: r
}, i);
}), Sn = "adm-popover", U7 = {
placement: "top",
defaultVisible: !1,
stopPropagation: ["click"],
getContainer: () => document.body,
mode: "light"
}, H0 = we((e, t) => {
const n = Y(U7, e), r = w7(n.placement), [i, a] = ue({
value: n.visible,
defaultValue: n.defaultVisible,
onChange: n.onVisibleChange
}), {
markShowing: o,
isShowing: l
} = C7();
$e(t, () => ({
show: () => {
o(), a(!0);
},
hide: () => a(!1),
visible: i
}), [i]);
const c = W(null), u = W(null), f = W(null), d = vn(n.stopPropagation, U(n, s.createElement("div", {
className: Z(Sn, `${Sn}-${n.mode}`, {
[`${Sn}-hidden`]: !i
}),
ref: u
}, s.createElement("div", {
className: `${Sn}-arrow`,
ref: f
}, s.createElement(b7, {
className: `${Sn}-arrow-icon`
})), s.createElement("div", {
className: `${Sn}-inner`
}, s.createElement("div", {
className: `${Sn}-inner-content`
}, n.content))))), [m, h] = Q(null);
function E() {
var g, v, w;
return Te(this, void 0, void 0, function* () {
const p = (v = (g = c.current) === null || g === void 0 ? void 0 : g.element) !== null && v !== void 0 ? v : null, y = u.current, C = f.current;
if (h(p), !p || !y || !C)
return;
const {
x,
y: k,
placement: _,
middlewareData: R
} = yield g7(p, y, {
placement: r,
middleware: [Gy(Hn(12)), Xy({
padding: Hn(4),
crossAxis: !1,
limiter: Qy()
}), zy(), Ky(), Uy({
element: C,
padding: Hn(12)
})]
});
Object.assign(y.style, {
left: `${x}px`,
top: `${k}px`
});
const O = _.split("-")[0], V = {
top: "bottom",
right: "left",
bottom: "top",
left: "right"
}[O], {
x: A,
y: M
} = (w = R.arrow) !== null && w !== void 0 ? w : {};
Object.assign(C.style, {
left: A != null ? `${A}px` : "",
top: M != null ? `${M}px` : "",
right: "",
bottom: "",
[V]: "calc(var(--arrow-size) * -1)"
});
const N = {
top: "0deg",
bottom: "180deg",
left: "270deg",
right: "90deg"
}[O];
C.style.setProperty("--arrow-icon-rotate", N);
});
}
De(() => {
E();
}), J(() => {
if (!m || !n.trigger)
return;
function g() {
a((v) => !v);
}
return m.addEventListener("click", g), () => {
m.removeEventListener("click", g);
};
}, [m, n.trigger]), J(() => {
const g = u.current;
if (!(!m || !g || !i))
return p7(m, g, E, {
elementResize: typeof ResizeObserver < "u"
});
}, [m, i]), Qf(() => {
n.trigger && (l() || a(!1));
}, [() => {
var g;
return (g = c.current) === null || g === void 0 ? void 0 : g.element;
}, u], ["click", "touchmove"]);
const b = yo(i, !1, n.destroyOnHide);
return s.createElement(s.Fragment, null, s.createElement(H7, {
ref: c
}, n.children), b && Dr(n.getContainer, d));
}), an = "adm-popover-menu", z7 = we((e, t) => {
const n = W(null);
$e(t, () => n.current, []);
const r = Ue((a) => {
var o;
const {
onAction: l
} = e;
l && l(a), (o = n.current) === null || o === void 0 || o.hide();
}, [e.onAction]), i = de(() => {
const a = (e == null ? void 0 : e.maxCount) && e.actions.length > (e == null ? void 0 : e.maxCount), o = (e == null ? void 0 : e.maxCount) && (e == null ? void 0 : e.maxCount) * 48;
return s.createElement("div", {
className: `${an}-list`
}, s.createElement("div", {
className: Z(`${an}-list-inner`, {
[`${an}-list-scroll`]: a
}),
style: {
height: o
}
}, e.actions.map((l, c) => {
var u;
return s.createElement("a", {
key: (u = l.key) !== null && u !== void 0 ? u : c,
className: Z(`${an}-item`, "adm-plain-anchor", {
[`${an}-item-disabled`]: l.disabled
}),
onClick: () => {
var f;
l.disabled || (r(l), (f = l.onClick) === null || f === void 0 || f.call(l));
}
}, l.icon && s.createElement("div", {
className: `${an}-item-icon`
}, l.icon), s.createElement("div", {
className: `${an}-item-text`
}, l.text));
})));
}, [e.actions, r]);
return s.createElement(H0, Object.assign({
ref: n
}, e, {
className: Z(an, e.className),
content: i
}), e.children);
}), U0 = ge(H0, {
Menu: z7
});
function Pa(e) {
return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
}
function K7(e) {
const t = e.prototype;
return !!(t && t.isReactComponent);
}
function Y7(e) {
return typeof e == "function" && !K7(e) && e.defaultProps === void 0;
}
function z0(e) {
return Wn.isFragment(e) ? !1 : Wn.isMemo(e) ? z0(e.type) : !Y7(e.type);
}
const G7 = "__SPLIT__";
function X7(e) {
if (typeof e == "function")
return e;
const t = Pa(e);
return t.length <= 1 ? t[0] : t;
}
const Xe = "adm-form-item", Q7 = s.memo(({
children: e
}) => e, (e, t) => e.value === t.value && e.update === t.update), J7 = (e) => {
var t;
const {
locale: n,
form: r = {}
} = fe(), {
style: i,
extra: a,
label: o,
help: l,
helpIcon: c,
required: u,
children: f,
htmlFor: d,
hidden: m,
arrow: h,
arrowIcon: E,
childElementPosition: b = "normal"
} = Y(r, e), g = ot(fc), v = e.hasFeedback !== void 0 ? e.hasFeedback : g.hasFeedback, w = e.layout || g.layout, p = (t = e.disabled) !== null && t !== void 0 ? t : g.disabled, y = (() => {
const {
requiredMarkStyle: k
} = g;
switch (k) {
case "asterisk":
return u && s.createElement("span", {
className: `${Xe}-required-asterisk`
}, "*");
case "text-required":
return u && s.createElement("span", {
className: `${Xe}-required-text`
}, "(", n.Form.required, ")");
case "text-optional":
return !u && s.createElement("span", {
className: `${Xe}-required-text`
}, "(", n.Form.optional, ")");
case "none":
return null;
default:
return null;
}
})(), C = !!o && s.createElement("label", {
className: `${Xe}-label`,
htmlFor: d
}, o, y, l && s.createElement(U0, {
content: l,
mode: "dark",
trigger: "click"
}, s.createElement("span", {
className: `${Xe}-label-help`,
onClick: (k) => {
k.stopPropagation(), k.preventDefault();
}
}, c || s.createElement($p, null)))), x = (!!e.description || v) && s.createElement(s.Fragment, null, e.description, v && s.createElement(s.Fragment, null, e.errors.map((k, _) => s.createElement("div", {
key: `error-${_}`,
className: `${Xe}-feedback-error`
}, k)), e.warnings.map((k, _) => s.createElement("div", {
key: `warning-${_}`,
className: `${Xe}-feedback-warning`
}, k))));
return U(e, s.createElement(Lt.Item, {
style: i,
title: w === "vertical" && C,
prefix: w === "horizontal" && C,
extra: a,
description: x,
className: Z(Xe, `${Xe}-${w}`, {
[`${Xe}-hidden`]: m,
[`${Xe}-has-error`]: e.errors.length
}),
disabled: p,
onClick: e.onClick,
clickable: e.clickable,
arrowIcon: E || h
}, s.createElement("div", {
className: Z(`${Xe}-child`, `${Xe}-child-position-${b}`)
}, s.createElement("div", {
className: Z(`${Xe}-child-inner`)
}, f))));
}, e8 = (e) => {
const {
// 样式相关
style: t,
// FormItem 相关
label: n,
help: r,
helpIcon: i,
extra: a,
hasFeedback: o,
name: l,
required: c,
noStyle: u,
hidden: f,
layout: d,
childElementPosition: m,
description: h,
// Field 相关
disabled: E,
rules: b,
children: g,
messageVariables: v,
trigger: w = "onChange",
validateTrigger: p = w,
onClick: y,
shouldUpdate: C,
dependencies: x,
clickable: k,
arrow: _,
arrowIcon: R
} = e, O = mn(e, ["style", "label", "help", "helpIcon", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow", "arrowIcon"]), V = X7(g), {
name: A
} = ot(fc), {
validateTrigger: M
} = ot(A0), N = Iy(p, M, w), T = W(null), P = W(0);
P.current += 1;
const [S, I] = Q({}), $ = Ue((H, X) => {
I((te) => {
const ae = Object.assign({}, te), re = X.join(G7);
return H.destroy ? delete ae[re] : ae[re] = H, ae;
});
}, [I]);
function F(H, X, te, ae) {
var re, z;
if (u && !f)
return H;
const ne = (re = te == null ? void 0 : te.errors) !== null && re !== void 0 ? re : [], G = Object.keys(S).reduce((oe, Ye) => {
var Ne, je;
const Pe = (je = (Ne = S[Ye]) === null || Ne === void 0 ? void 0 : Ne.errors) !== null && je !== void 0 ? je : [];
return Pe.length && (oe = [...oe, ...Pe]), oe;
}, ne), pe = (z = te == null ? void 0 : te.warnings) !== null && z !== void 0 ? z : [], le = Object.keys(S).reduce((oe, Ye) => {
var Ne, je;
const Pe = (je = (Ne = S[Ye]) === null || Ne === void 0 ? void 0 : Ne.warnings) !== null && je !== void 0 ? je : [];
return Pe.length && (oe = [...oe, ...Pe]), oe;
}, pe);
return U(e, s.createElement(J7, {
style: t,
label: n,
extra: a,
help: r,
helpIcon: i,
description: h,
required: ae,
disabled: E,
hasFeedback: o,
htmlFor: X,
errors: G,
warnings: le,
onClick: y && ((oe) => y(oe, T)),
hidden: f,
layout: d,
childElementPosition: m,
clickable: k,
arrow: _,
arrowIcon: R
}, s.createElement(vf.Provider, {
value: $
}, H)));
}
const L = typeof V == "function";
if (!l && !L && !e.dependencies)
return F(V);
let B = {};
B.label = typeof n == "string" ? n : "", v && (B = Object.assign(Object.assign({}, B), v));
const j = ot(vf), q = (H) => {
if (u && j) {
const X = H.name;
j(H, X);
}
};
return s.createElement(lc, Object.assign({}, O, {
name: l,
shouldUpdate: C,
dependencies: x,
rules: b,
trigger: w,
validateTrigger: N,
onMetaChange: q,
messageVariables: B
}), (H, X, te) => {
let ae = null;
const re = c !== void 0 ? c : b && b.some((G) => !!(G && typeof G == "object" && G.required)), z = Pa(l).length && X ? X.name : [], ne = (z.length > 0 && A ? [A, ...z] : z).join("_");
if (L)
(C || x) && !l && (ae = V(te));
else if (!(x && !l))
if (s.isValidElement(V)) {
V.props.defaultValue;
const G = Object.assign(Object.assign({}, V.props), H);
z0(V) && (G.ref = (le) => {
const oe = V.ref;
oe && (typeof oe == "function" && oe(le), "current" in oe && (oe.current = le)), T.current = le;
}), G.id || (G.id = ne), (/* @__PURE__ */ new Set([...Pa(w), ...Pa(N)])).forEach((le) => {
G[le] = (...oe) => {
var Ye, Ne, je;
(Ye = H[le]) === null || Ye === void 0 || Ye.call(H, ...oe), (je = (Ne = V.props)[le]) === null || je === void 0 || je.call(Ne, ...oe);
};
}), ae = s.createElement(Q7, {
value: H[e.valuePropName || "value"],
update: P.current
}, s.cloneElement(V, G));
} else
ae = V;
return F(ae, ne, X, re);
});
}, t8 = (e) => {
const t = Gf(), n = ot(Xn), r = n.getFieldsValue(e.to), i = s.useMemo(() => e.children(r, n), [JSON.stringify(r), e.children]);
return s.createElement(s.Fragment, null, i, e.to.map((a) => s.createElement(n8, {
key: a.toString(),
form: n,
namePath: a,
onChange: t
})));
}, n8 = Ke((e) => {
const t = uc(e.namePath, e.form);
return zi(() => {
e.onChange();
}, [t]), null;
}), Jb = ge(Oy, {
Item: e8,
Subscribe: t8,
Header: N0,
Array: M0,
useForm: cc,
useWatch: uc
}), K0 = "adm-grid", r8 = (e) => {
const t = {
"--columns": e.columns.toString()
}, {
gap: n
} = e;
return n !== void 0 && (Array.isArray(n) ? (t["--gap-horizontal"] = Dn(n[0]), t["--gap-vertical"] = Dn(n[1])) : t["--gap"] = Dn(n)), U(e, s.createElement("div", {
className: K0,
style: t
}, e.children));
}, i8 = (e) => {
const t = Y({
span: 1
}, e), n = {
"--item-span": t.span
};
return U(t, s.createElement("div", {
className: `${K0}-item`,
style: n,
onClick: t.onClick
}, t.children));
}, Y0 = ge(r8, {
Item: i8
}), va = () => [1, 0, 0, 1, 0, 0], $f = (e) => e[4], _f = (e) => e[5], ei = (e) => e[0], ti = (e, t, n) => G0([1, 0, 0, 1, t, n], e), a8 = (e, t, n = t) => G0([t, 0, 0, n, 0, 0], e), o8 = (e, [t, n]) => [e[0] * t + e[2] * n + e[4], e[1] * t + e[3] * n + e[5]], G0 = (e, t) => [e[0] * t[0] + e[2] * t[1], e[1] * t[0] + e[3] * t[1], e[0] * t[2] + e[2] * t[3], e[1] * t[2] + e[3] * t[3], e[0] * t[4] + e[2] * t[5] + e[4], e[1] * t[4] + e[3] * t[5] + e[5]], s8 = O3([Gd, h3]), os = "adm-image-viewer", X0 = (e) => {
const {
dragLockRef: t,
maxZoom: n,
imageRender: r,
index: i
} = e, a = W([]), o = W(null), l = W(null), [{
matrix: c
}, u] = Ve(() => ({
matrix: va(),
config: {
tension: 200
}
})), f = vs(o), d = vs(l), m = W(!1), h = (v) => {
if (!f || !d)
return {
x: {
position: 0,
minX: 0,
maxX: 0
},
y: {
position: 0,
minY: 0,
maxY: 0
}
};
const w = -f.width / 2, p = -f.height / 2, y = -d.width / 2, C = -d.height / 2, x = ei(v), k = x * d.width, _ = x * d.height, R = w - (k - f.width), O = w, V = p - (_ - f.height), A = p, [M, N] = o8(v, [y, C]);
return {
x: {
position: M,
minX: R,
maxX: O
},
y: {
position: N,
minY: V,
maxY: A
}
};
}, E = (v, w, p, y = 0) => [v <= w - y, v >= p + y], b = (v, w, p = !1) => {
if (!f || !d)
return v;
const y = ei(v), C = y * d.width, x = y * d.height, {
x: {
position: k,
minX: _,
maxX: R
},
y: {
position: O,
minY: V,
maxY: A
}
} = h(v);
if (w === "translate") {
let M = k, N = O;
return C > f.width ? M = p ? Re(k, _, R) : Oi(k, _, R, y * 50) : M = -C / 2, x > f.height ? N = p ? Re(O, V, A) : Oi(O, V, A, y * 50) : N = -x / 2, ti(v, M - k, N - O);
}
if (w === "scale" && p) {
const [M, N] = [C > f.width ? Re(k, _, R) : -C / 2, x > f.height ? Re(O, V, A) : -x / 2];
return ti(v, M - k, N - O);
}
return v;
};
s8({
onDrag: (v) => {
var w;
if (v.first) {
const {
x: {
position: y,
minX: C,
maxX: x
}
} = h(c.get());
a.current = E(y, C, x);
return;
}
if (v.pinching)
return v.cancel();
if (v.tap && v.elapsedTime > 0 && v.elapsedTime < 1e3) {
(w = e.onTap) === null || w === void 0 || w.call(e);
return;
}
const p = ei(c.get());
if (t && (t.current = p !== 1), !m.current && p <= 1)
u.start({
matrix: va()
});
else {
const y = c.get(), C = [v.offset[0] - $f(y), v.offset[1] - _f(y)], x = ti(y, ...v.last ? [C[0] + v.velocity[0] * v.direction[0] * 200, C[1] + v.velocity[1] * v.direction[1] * 200] : C);
u.start({
matrix: b(x, "translate", v.last),
immediate: !v.last
});
const {
x: {
position: k,
minX: _,
maxX: R
}
} = h(x);
v.last && a.current.some((O) => O) && E(k, _, R).some((O) => O) && (t && (t.current = !1), u.start({
matrix: va()
}));
}
},
onPinch: (v) => {
var w;
m.current = !v.last;
const [p] = v.offset;
if (p < 0)
return;
let y;
n === "auto" ? y = f && d ? Math.max(f.height / d.height, f.width / d.width) : 1 : y = n;
const C = v.last ? Re(p, 1, y) : p;
if ((w = e.onZoomChange) === null || w === void 0 || w.call(e, C), v.last && C <= 1)
u.start({
matrix: va()
}), t && (t.current = !1);
else {
if (!f)
return;
const x = c.get(), k = ei(x), _ = v.origin[0] - f.width / 2, R = v.origin[1] - f.height / 2;
let O = ti(x, -_, -R);
O = a8(O, C / k), O = ti(O, _, R), u.start({
matrix: b(O, "scale", v.last),
immediate: !v.last
}), t && (t.current = !0);
}
}
}, {
target: o,
drag: {
from: () => [$f(c.get()), _f(c.get())],
pointer: {
touch: !0
}
},
pinch: {
from: () => [ei(c.get()), 0],
pointer: {
touch: !0
}
}
});
const g = typeof r == "function" && r(e.image, {
ref: l,
index: i ?? 0
});
return s.createElement("div", {
className: `${os}-slide`
}, s.createElement("div", {
className: `${os}-control`,
ref: o
}, s.createElement(xe.div, {
className: `${os}-image-wrapper`,
style: {
matrix: c
}
}, g || s.createElement("img", {
ref: l,
src: e.image,
draggable: !1,
alt: e.image
}))));
}, ss = "adm-image-viewer", l8 = we((e, t) => {
const n = window.innerWidth + Hn(16), [{
x: r
}, i] = Ve(() => ({
x: e.defaultIndex * n,
config: {
tension: 250,
clamp: !0
}
})), a = e.images.length;
function o(u, f = !1) {
var d;
const m = Re(u, 0, a - 1);
(d = e.onIndexChange) === null || d === void 0 || d.call(e, m), i.start({
x: m * n,
immediate: f
});
}
$e(t, () => ({
swipeTo: o
}));
const l = W(!1), c = Bt((u) => {
if (l.current)
return;
const [f] = u.offset;
if (u.last) {
const d = Math.floor(f / n), m = d + 1, h = Math.min(u.velocity[0] * 2e3, n) * u.direction[0];
o(Re(Math.round((f + h) / n), d, m));
} else
i.start({
x: f,
immediate: !0
});
}, {
transform: ([u, f]) => [-u, f],
from: () => [r.get(), 0],
bounds: () => ({
left: 0,
right: (a - 1) * n
}),
rubberband: !0,
axis: "x",
pointer: {
touch: !0
}
});
return s.createElement("div", Object.assign({
className: `${ss}-slides`
}, c()), s.createElement(xe.div, {
className: `${ss}-indicator`
}, r.to((u) => `${Re(Math.round(u / n), 0, a - 1) + 1} / ${a}`)), s.createElement(xe.div, {
className: `${ss}-slides-inner`,
style: {
x: r.to((u) => -u)
}
}, e.images.map((u, f) => s.createElement(X0, {
key: f,
image: u,
onTap: e.onTap,
maxZoom: e.maxZoom,
imageRender: e.imageRender,
index: f,
onZoomChange: (d) => {
if (d !== 1) {
const m = Math.round(r.get() / n);
i.start({
x: m * n
});
}
},
dragLockRef: l
}))));
}), ro = "adm-image-viewer", Q0 = {
maxZoom: 3,
getContainer: null,
visible: !1
}, J0 = (e) => {
var t, n, r, i;
const a = Y(Q0, e), o = s.createElement(ji, {
visible: a.visible,
afterClose: a == null ? void 0 : a.afterClose,
className: (t = a == null ? void 0 : a.classNames) === null || t === void 0 ? void 0 : t.mask,
onMaskClick: (n = a.mask) === null || n === void 0 ? void 0 : n.onClick,
disableBodyScroll: !1,
opacity: "thick",
destroyOnClose: !0
}, s.createElement("div", {
className: Z(`${ro}-content`, (r = a == null ? void 0 : a.classNames) === null || r === void 0 ? void 0 : r.body)
}, (a.image || typeof a.imageRender == "function") && s.createElement(X0, {
image: a.image,
onTap: a.onClose,
maxZoom: a.maxZoom,
imageRender: a.imageRender
})), a.image && s.createElement("div", {
className: `${ro}-footer`
}, (i = a.renderFooter) === null || i === void 0 ? void 0 : i.call(a, a.image), s.createElement(Wr, {
position: "bottom"
})));
return Dr(a.getContainer, o);
}, c8 = Object.assign(Object.assign({}, Q0), {
defaultIndex: 0
}), em = we((e, t) => {
var n, r, i, a;
const o = Y(c8, e), [l, c] = Q(o.defaultIndex), u = W(null);
$e(t, () => ({
swipeTo: (m, h) => {
var E;
c(m), (E = u.current) === null || E === void 0 || E.swipeTo(m, h);
}
}));
const f = Ue((m) => {
var h;
m !== l && (c(m), (h = o.onIndexChange) === null || h === void 0 || h.call(o, m));
}, [o.onIndexChange, l]), d = s.createElement(ji, {
visible: o.visible,
afterClose: o == null ? void 0 : o.afterClose,
className: (n = o == null ? void 0 : o.classNames) === null || n === void 0 ? void 0 : n.mask,
onMaskClick: (r = o.mask) === null || r === void 0 ? void 0 : r.onClick,
disableBodyScroll: !1,
opacity: "thick",
destroyOnClose: !0
}, s.createElement("div", {
className: Z(`${ro}-content`, (i = o == null ? void 0 : o.classNames) === null || i === void 0 ? void 0 : i.body)
}, o.images && s.createElement(l8, {
ref: u,
defaultIndex: l,
onIndexChange: f,
images: o.images,
onTap: o.onClose,
maxZoom: o.maxZoom,
imageRender: o.imageRender
})), o.images && s.createElement("div", {
className: `${ro}-footer`
}, (a = o.renderFooter) === null || a === void 0 ? void 0 : a.call(o, o.images[l], l), s.createElement(Wr, {
position: "bottom"
})));
return Dr(o.getContainer, d);
}), Mr = /* @__PURE__ */ new Set();
function u8(e) {
$c();
const t = Yn(s.createElement(J0, Object.assign({}, e, {
afterClose: () => {
var n;
Mr.delete(t), (n = e.afterClose) === null || n === void 0 || n.call(e);
}
})));
return Mr.add(t), t;
}
function f8(e) {
$c();
const t = Yn(s.createElement(em, Object.assign({}, e, {
afterClose: () => {
var n;
Mr.delete(t), (n = e.afterClose) === null || n === void 0 || n.call(e);
}
})));
return Mr.add(t), t;
}
function $c() {
Mr.forEach((e) => {
e.close();
}), Mr.clear();
}
const d8 = ge(em, {
show: f8
}), m8 = ge(J0, {
Multi: d8,
show: u8,
clear: $c
}), On = "adm-space", h8 = {
direction: "horizontal"
}, _c = (e) => {
const t = Y(h8, e), {
direction: n,
onClick: r
} = t;
return U(t, s.createElement("div", {
className: Z(On, {
[`${On}-wrap`]: t.wrap,
[`${On}-block`]: t.block,
[`${On}-${n}`]: !0,
[`${On}-align-${t.align}`]: !!t.align,
[`${On}-justify-${t.justify}`]: !!t.justify
}),
onClick: r
}, s.Children.map(t.children, (i) => i != null && s.createElement("div", {
className: `${On}-item`
}, i))));
}, Fn = "adm-image-uploader", v8 = (e) => {
const {
locale: t
} = fe(), {
url: n,
file: r,
deletable: i,
deleteIcon: a,
onDelete: o,
imageFit: l
} = e, c = de(() => n || (r ? URL.createObjectURL(r) : ""), [n, r]);
J(() => () => {
r && URL.revokeObjectURL(c);
}, [c, r]);
function u() {
return e.status === "pending" && s.createElement("div", {
className: `${Fn}-cell-mask`
}, s.createElement("span", {
className: `${Fn}-cell-loading`
}, s.createElement(Yl, {
color: "white"
}), s.createElement("span", {
className: `${Fn}-cell-mask-message`
}, t.ImageUploader.uploading)));
}
function f() {
return i && s.createElement("span", {
className: `${Fn}-cell-delete`,
onClick: o
}, a);
}
return s.createElement("div", {
className: Z(`${Fn}-cell`, e.status === "fail" && `${Fn}-cell-fail`)
}, s.createElement(xo, {
className: `${Fn}-cell-image`,
src: c,
fit: l,
onClick: e.onClick
}), u(), f());
}, Sf = v8, Tt = "adm-image-uploader", p8 = {
disableUpload: !1,
deletable: !0,
deleteIcon: s.createElement(bo, {
className: `${Tt}-cell-delete-icon`
}),
showUpload: !0,
multiple: !1,
maxCount: 0,
defaultValue: [],
accept: "image/*",
preview: !0,
showFailed: !0,
imageFit: "cover"
}, eE = we((e, t) => {
const {
locale: n
} = fe(), r = Y(p8, e), {
columns: i
} = r, [a, o] = ue(r), [l, c] = Q([]), u = W(null), f = vs(u), d = W(null), [m, h] = Q(80), E = W(null);
De(() => {
const M = d.current;
if (i && f && M) {
const N = f.width, T = L1(window.getComputedStyle(M).getPropertyValue("height"));
h((N - T * (i - 1)) / i);
}
}, [f == null ? void 0 : f.width]);
const b = {
"--cell-size": m + "px"
};
De(() => {
c((M) => M.filter((N) => N.url === void 0 ? !0 : !a.some((T) => T.url === N.url)));
}, [a]), De(() => {
var M;
(M = r.onUploadQueueChange) === null || M === void 0 || M.call(r, l.map((N) => ({
id: N.id,
status: N.status
})));
}, [l]);
const g = W(0), {
maxCount: v,
onPreview: w,
renderItem: p
} = r;
function y(M, N) {
return Te(this, void 0, void 0, function* () {
const {
beforeUpload: T
} = r;
let P = M;
return P = yield T == null ? void 0 : T(M, N), P;
});
}
function C(M) {
return r.showFailed ? M : M.filter((N) => N.status !== "fail");
}
const x = C(l);
function k(M) {
var N;
return Te(this, void 0, void 0, function* () {
M.persist();
const {
files: T
} = M.target;
if (!T)
return;
let P = [].slice.call(T);
if (M.target.value = "", r.beforeUpload) {
const $ = P.map((F) => y(F, P));
yield Promise.all($).then((F) => {
P = F.filter(Boolean);
});
}
if (P.length === 0)
return;
if (v > 0) {
const $ = a.length + P.length + x.length - v;
$ > 0 && (P = P.slice(0, P.length - $), (N = r.onCountExceed) === null || N === void 0 || N.call(r, $));
}
const S = P.map(($) => ({
id: g.current++,
status: "pending",
file: $
}));
c(($) => [...C($), ...S]);
const I = [];
yield Promise.all(S.map(($, F) => Te(this, void 0, void 0, function* () {
try {
const L = yield r.upload($.file);
I[F] = L, c((B) => B.map((j) => j.id === $.id ? Object.assign(Object.assign({}, j), {
status: "success",
url: L.url
}) : j));
} catch (L) {
c((B) => B.map((j) => j.id === $.id ? Object.assign(Object.assign({}, j), {
status: "fail"
}) : j)), console.error(L);
}
}))), o(($) => $.concat(I).filter(Boolean));
});
}
const _ = W(null);
function R(M) {
_.current = m8.Multi.show({
images: a.map((N) => N.url),
defaultIndex: M,
onClose: () => {
_.current = null;
}
});
}
Li(() => {
var M;
(M = _.current) === null || M === void 0 || M.close();
});
const O = r.showUpload && (v === 0 || a.length + x.length < v), V = () => a.map((M, N) => {
var T, P;
const S = s.createElement(Sf, {
key: (T = M.key) !== null && T !== void 0 ? T : N,
url: (P = M.thumbnailUrl) !== null && P !== void 0 ? P : M.url,
deletable: r.deletable,
deleteIcon: r.deleteIcon,
imageFit: r.imageFit,
onClick: () => {
r.preview && R(N), w && w(N, M);
},
onDelete: () => Te(void 0, void 0, void 0, function* () {
var I;
(yield (I = r.onDelete) === null || I === void 0 ? void 0 : I.call(r, M)) !== !1 && o(a.filter((F, L) => L !== N));
})
});
return p ? p(S, M, a) : S;
}), A = s.createElement(s.Fragment, null, V(), l.map((M) => !r.showFailed && M.status === "fail" ? null : s.createElement(Sf, {
key: M.id,
file: M.file,
deletable: M.status !== "pending",
deleteIcon: r.deleteIcon,
status: M.status,
imageFit: r.imageFit,
onDelete: () => {
c(l.filter((N) => N.id !== M.id));
}
})), s.createElement("div", {
className: `${Tt}-upload-button-wrap`,
style: O ? void 0 : {
display: "none"
}
}, r.children || s.createElement("span", {
className: `${Tt}-cell ${Tt}-upload-button`,
role: "button",
"aria-label": n.ImageUploader.upload
}, s.createElement("span", {
className: `${Tt}-upload-button-icon`
}, s.createElement(Ld, null))), !r.disableUpload && s.createElement("input", {
"aria-label": n.ImageUploader.upload,
ref: E,
capture: r.capture,
accept: r.accept,
multiple: r.multiple,
type: "file",
className: `${Tt}-input`,
onChange: k
})));
return $e(t, () => ({
get nativeElement() {
return E.current;
}
})), U(r, s.createElement("div", {
className: Tt,
ref: u
}, i ? s.createElement(Y0, {
className: `${Tt}-grid`,
columns: i,
style: b
}, s.createElement("div", {
className: `${Tt}-gap-measure`,
ref: d
}), A.props.children) : s.createElement(_c, {
className: `${Tt}-space`,
wrap: !0,
block: !0
}, A.props.children)));
}), tm = () => null, fr = "adm-index-bar", g8 = (e) => {
const [t, n] = Q(!1);
return s.createElement("div", {
className: Z(`${fr}-sidebar`, {
[`${fr}-sidebar-interacting`]: t
}),
onMouseDown: () => {
n(!0);
},
onMouseUp: () => {
n(!1);
},
onTouchStart: () => {
n(!0);
},
onTouchEnd: () => {
n(!1);
},
onTouchMove: (r) => {
if (!t)
return;
const {
clientX: i,
clientY: a
} = r.touches[0], o = document.elementFromPoint(i, a);
if (!o)
return;
const l = o.dataset.index;
l && e.onActive(l);
}
}, e.indexItems.map(({
index: r,
brief: i
}) => {
const a = r === e.activeIndex;
return s.createElement("div", {
className: `${fr}-sidebar-row`,
onMouseDown: () => {
e.onActive(r);
},
onTouchStart: () => {
e.onActive(r);
},
onMouseEnter: () => {
t && e.onActive(r);
},
"data-index": r,
key: r
}, t && a && s.createElement("div", {
className: `${fr}-sidebar-bubble`
}, i), s.createElement("div", {
className: Z(`${fr}-sidebar-item`, {
[`${fr}-sidebar-item-active`]: a
}),
"data-index": r
}, s.createElement("div", null, i)));
}));
}, dr = "adm-index-bar", y8 = {
sticky: !0
}, b8 = we((e, t) => {
const n = Y(y8, e), r = Hn(35), i = W(null), a = [], o = [];
kn(n.children, (d) => {
var m;
s.isValidElement(d) && d.type === tm && (a.push({
index: d.props.index,
brief: (m = d.props.brief) !== null && m !== void 0 ? m : d.props.index.charAt(0)
}), o.push(U(d.props, s.createElement("div", {
key: d.props.index,
"data-index": d.props.index,
className: `${dr}-anchor`
}, s.createElement("div", {
className: `${dr}-anchor-title`
}, d.props.title || d.props.index), d.props.children))));
});
const [l, c] = Q(() => {
const d = a[0];
return d ? d.index : null;
});
$e(t, () => ({
scrollTo: u
}));
function u(d) {
var m;
const h = i.current;
if (!h)
return;
const E = h.children;
for (let b = 0; b < E.length; b++) {
const g = E.item(b);
if (!g)
continue;
if (g.dataset.index === d) {
h.scrollTop = g.offsetTop, c(d), l !== d && ((m = n.onIndexChange) === null || m === void 0 || m.call(n, d));
return;
}
}
}
const {
run: f
} = so(() => {
var d;
const m = i.current;
if (!m)
return;
const h = m.scrollTop, E = m.getElementsByClassName(`${dr}-anchor`);
for (let b = 0; b < E.length; b++) {
const g = E.item(b);
if (!g)
continue;
const v = g.dataset.index;
if (v && g.offsetTop + g.clientHeight - r > h) {
c(v), l !== v && ((d = n.onIndexChange) === null || d === void 0 || d.call(n, v));
return;
}
}
}, {
wait: 50,
trailing: !0,
leading: !0
});
return U(n, s.createElement("div", {
className: Z(`${dr}`, {
[`${dr}-sticky`]: n.sticky
})
}, s.createElement(g8, {
indexItems: a,
activeIndex: l,
onActive: (d) => {
u(d);
}
}), s.createElement("div", {
className: `${dr}-body`,
ref: i,
onScroll: f
}, o)));
}), tE = ge(b8, {
Panel: tm
});
function E8(e) {
return e === window;
}
const nm = "adm-infinite-scroll", w8 = {
threshold: 250,
children: (e, t, n) => s.createElement(C8, {
hasMore: e,
failed: t,
retry: n
})
}, nE = (e) => {
const t = Y(w8, e), [n, r] = Q(!1), i = lv((h) => Te(void 0, void 0, void 0, function* () {
try {
yield t.loadMore(h);
} catch (E) {
throw r(!0), E;
}
})), a = W(null), [o, l] = Q({}), c = W(o), [u, f] = Q(), {
run: d
} = so(() => Te(void 0, void 0, void 0, function* () {
if (c.current !== o || !t.hasMore)
return;
const h = a.current;
if (!h || !h.offsetParent)
return;
const E = Va(h);
if (f(E), !E)
return;
const g = h.getBoundingClientRect().top;
if ((E8(E) ? window.innerHeight : E.getBoundingClientRect().bottom) >= g - t.threshold) {
const w = {};
c.current = w;
try {
yield i(!1), l(w);
} catch {
}
}
}), {
wait: 100,
leading: !0,
trailing: !0
});
J(() => {
d();
}), J(() => {
if (!a.current || !u)
return;
function E() {
d();
}
return u.addEventListener("scroll", E), () => {
u.removeEventListener("scroll", E);
};
}, [u]);
function m() {
return Te(this, void 0, void 0, function* () {
r(!1);
try {
yield i(!0), l(c.current);
} catch {
}
});
}
return U(t, s.createElement("div", {
className: nm,
ref: a
}, typeof t.children == "function" ? t.children(t.hasMore, n, m) : t.children));
}, C8 = (e) => {
const {
locale: t
} = fe();
return e.hasMore ? e.failed ? s.createElement("span", null, s.createElement("span", {
className: `${nm}-failed-text`
}, t.InfiniteScroll.failedToLoad), s.createElement("a", {
onClick: () => {
e.retry();
}
}, t.InfiniteScroll.retry)) : s.createElement(s.Fragment, null, s.createElement("span", null, t.common.loading), s.createElement(p1, null)) : s.createElement("span", null, t.InfiniteScroll.noMore);
};
function rm({
onEnterPress: e,
onKeyDown: t
}) {
return (r) => {
e && (r.code === "Enter" || r.keyCode === 13) && e(r), t == null || t(r);
};
}
const pa = "adm-input", x8 = {
defaultValue: "",
clearIcon: s.createElement(Tl, null),
onlyShowClearWhenFocus: !0
}, im = we((e, t) => {
const {
locale: n,
input: r = {}
} = fe(), i = Y(x8, r, e), [a, o] = ue(i), [l, c] = Q(!1), u = W(!1), f = W(null), d = rm({
onEnterPress: i.onEnterPress,
onKeyDown: i.onKeyDown
});
$e(t, () => ({
clear: () => {
o("");
},
focus: () => {
var E;
(E = f.current) === null || E === void 0 || E.focus();
},
blur: () => {
var E;
(E = f.current) === null || E === void 0 || E.blur();
},
get nativeElement() {
return f.current;
}
}));
function m() {
let E = a;
if (i.type === "number") {
const b = E && Re(parseFloat(E), i.min, i.max).toString();
Number(E) !== Number(b) && (E = b);
}
E !== a && o(E);
}
const h = !i.clearable || !a || i.readOnly ? !1 : i.onlyShowClearWhenFocus ? l : !0;
return U(i, s.createElement("div", {
className: Z(`${pa}`, i.disabled && `${pa}-disabled`)
}, s.createElement("input", Object.assign({
ref: f,
className: `${pa}-element`,
value: a,
onChange: (E) => {
o(E.target.value);
},
onFocus: (E) => {
var b;
c(!0), (b = i.onFocus) === null || b === void 0 || b.call(i, E);
},
onBlur: (E) => {
var b;
c(!1), m(), (b = i.onBlur) === null || b === void 0 || b.call(i, E);
},
onPaste: i.onPaste,
id: i.id,
placeholder: i.placeholder,
disabled: i.disabled,
readOnly: i.readOnly,
maxLength: i.maxLength,
minLength: i.minLength,
max: i.max,
min: i.min,
autoComplete: i.autoComplete
}, {
enterKeyHint: i.enterKeyHint
}, {
autoFocus: i.autoFocus,
pattern: i.pattern,
inputMode: i.inputMode,
type: i.type,
name: i.name,
autoCapitalize: i.autoCapitalize,
autoCorrect: i.autoCorrect,
onKeyDown: d,
onKeyUp: i.onKeyUp,
onCompositionStart: (E) => {
var b;
u.current = !0, (b = i.onCompositionStart) === null || b === void 0 || b.call(i, E);
},
onCompositionEnd: (E) => {
var b;
u.current = !1, (b = i.onCompositionEnd) === null || b === void 0 || b.call(i, E);
},
onClick: i.onClick,
step: i.step,
role: i.role,
"aria-valuenow": i["aria-valuenow"],
"aria-valuemax": i["aria-valuemax"],
"aria-valuemin": i["aria-valuemin"],
"aria-label": i["aria-label"]
})), h && s.createElement("div", {
className: `${pa}-clear`,
onMouseDown: (E) => {
E.preventDefault();
},
onClick: () => {
var E, b;
o(""), (E = i.onClear) === null || E === void 0 || E.call(i), yg() && u.current && (u.current = !1, (b = f.current) === null || b === void 0 || b.blur());
},
"aria-label": n.Input.clear
}, i.clearIcon)));
}), Pt = "adm-jumbo-tabs", k8 = () => null, $8 = (e) => {
var t;
const n = W(null), r = W(null), i = {};
let a = null;
const o = [];
kn(e.children, (d, m) => {
if (!En(d))
return;
const h = d.key;
if (typeof h != "string")
return;
m === 0 && (a = h);
const E = o.push(d);
i[h] = E - 1;
});
const [l, c] = ue({
value: e.activeKey,
defaultValue: (t = e.defaultActiveKey) !== null && t !== void 0 ? t : a,
onChange: (d) => {
var m;
d !== null && ((m = e.onChange) === null || m === void 0 || m.call(e, d));
}
}), {
scrollLeft: u,
animate: f
} = T1(n, i[l]);
return Ki(() => {
f(!0);
}, r), U(e, s.createElement("div", {
className: Pt,
ref: r
}, s.createElement("div", {
className: `${Pt}-header`
}, s.createElement(I1, {
scrollTrackRef: n
}), s.createElement(xe.div, {
className: `${Pt}-tab-list`,
ref: n,
scrollLeft: u
}, o.map((d) => U(d.props, s.createElement("div", {
key: d.key,
className: `${Pt}-tab-wrapper`
}, s.createElement("div", {
onClick: () => {
const {
key: m
} = d;
d.props.disabled || m != null && c(m.toString());
},
className: Z(`${Pt}-tab`, {
[`${Pt}-tab-active`]: d.key === l,
[`${Pt}-tab-disabled`]: d.props.disabled
})
}, s.createElement("div", {
className: `${Pt}-tab-title`
}, d.props.title), s.createElement("div", {
className: `${Pt}-tab-description`
}, d.props.description))))))), o.map((d) => {
if (d.props.children === void 0)
return null;
const m = d.key === l;
return s.createElement(Vr, {
key: d.key,
active: m,
forceRender: d.props.forceRender,
destroyOnClose: d.props.destroyOnClose
}, s.createElement("div", {
className: `${Pt}-content`,
style: {
display: m ? "block" : "none"
}
}, d.props.children));
})));
}, rE = ge($8, {
Tab: k8
}), _8 = (e) => {
const {
action: t
} = e;
return U(e.action, s.createElement(Kt, {
key: t.key,
onClick: e.onAction,
className: Z("adm-modal-button", {
"adm-modal-button-primary": e.action.primary
}),
fill: e.action.primary ? "solid" : "none",
size: e.action.primary ? "large" : "middle",
block: !0,
color: t.danger ? "danger" : "primary",
loading: "auto",
disabled: t.disabled
}, t.text));
}, S8 = {
actions: [],
closeOnAction: !1,
closeOnMaskClick: !1,
getContainer: null
}, am = (e) => {
const t = Y(S8, e), n = s.createElement(s.Fragment, null, !!t.image && s.createElement("div", {
className: Zt("image-container")
}, s.createElement(xo, {
src: t.image,
alt: "modal header image",
width: "100%"
})), !!t.header && s.createElement("div", {
className: Zt("header")
}, s.createElement(_i, null, t.header)), !!t.title && s.createElement("div", {
className: Zt("title")
}, t.title), s.createElement("div", {
className: Zt("content")
}, typeof t.content == "string" ? s.createElement(_i, null, t.content) : t.content), s.createElement(_c, {
direction: "vertical",
block: !0,
className: Z(Zt("footer"), t.actions.length === 0 && Zt("footer-empty"))
}, t.actions.map((r, i) => s.createElement(_8, {
key: r.key,
action: r,
onAction: () => Te(void 0, void 0, void 0, function* () {
var a, o, l;
yield Promise.all([(a = r.onClick) === null || a === void 0 ? void 0 : a.call(r), (o = t.onAction) === null || o === void 0 ? void 0 : o.call(t, r, i)]), t.closeOnAction && ((l = t.onClose) === null || l === void 0 || l.call(t));
})
}))));
return s.createElement(X1, {
className: Z(Zt(), t.className),
style: t.style,
afterClose: t.afterClose,
afterShow: t.afterShow,
showCloseButton: t.showCloseButton,
closeOnMaskClick: t.closeOnMaskClick,
onClose: t.onClose,
visible: t.visible,
getContainer: t.getContainer,
bodyStyle: t.bodyStyle,
bodyClassName: Z(Zt("body"), t.image && Zt("with-image"), t.bodyClassName),
maskStyle: t.maskStyle,
maskClassName: t.maskClassName,
stopPropagation: t.stopPropagation,
disableBodyScroll: t.disableBodyScroll,
destroyOnClose: t.destroyOnClose,
forceRender: t.forceRender
}, n);
};
function Zt(e = "") {
return "adm-modal" + (e && "-") + e;
}
const il = /* @__PURE__ */ new Set();
function Sc(e) {
const t = Yn(s.createElement(am, Object.assign({}, e, {
afterClose: () => {
var n;
il.delete(t.close), (n = e.afterClose) === null || n === void 0 || n.call(e);
}
})));
return il.add(t.close), t;
}
function O8(e) {
const t = {
confirmText: Ti().locale.Modal.ok
}, n = Y(t, e);
return new Promise((r) => {
Sc(Object.assign(Object.assign({}, n), {
closeOnAction: !0,
actions: [{
key: "confirm",
text: n.confirmText,
primary: !0
}],
onAction: n.onConfirm,
onClose: () => {
var i;
(i = n.onClose) === null || i === void 0 || i.call(n), r();
}
}));
});
}
const F8 = {
confirmText: "确认",
cancelText: "取消"
};
function R8(e) {
const {
locale: t
} = Ti(), n = Y(F8, {
confirmText: t.common.confirm,
cancelText: t.common.cancel
}, e);
return new Promise((r) => {
Sc(Object.assign(Object.assign({}, n), {
closeOnAction: !0,
onClose: () => {
var i;
(i = n.onClose) === null || i === void 0 || i.call(n), r(!1);
},
actions: [{
key: "confirm",
text: n.confirmText,
primary: !0,
onClick: () => Te(this, void 0, void 0, function* () {
var i;
yield (i = n.onConfirm) === null || i === void 0 ? void 0 : i.call(n), r(!0);
})
}, {
key: "cancel",
text: n.cancelText,
onClick: () => Te(this, void 0, void 0, function* () {
var i;
yield (i = n.onCancel) === null || i === void 0 ? void 0 : i.call(n), r(!1);
})
}]
}));
});
}
function N8() {
il.forEach((e) => {
e();
});
}
const iE = ge(am, {
show: Sc,
alert: O8,
confirm: R8,
clear: N8
}), mr = "adm-nav-bar", Of = s.createElement(xp, null), aE = (e) => {
const {
navBar: t = {}
} = fe(), n = Y(t, e), {
back: r,
backIcon: i,
backArrow: a
} = n, o = t.backIcon || Of, l = wn(Of, t.backIcon, a === !0 ? o : a, i === !0 ? o : i);
return U(n, s.createElement("div", {
className: Z(mr)
}, s.createElement("div", {
className: `${mr}-left`,
role: "button"
}, r !== null && s.createElement("div", {
className: `${mr}-back`,
onClick: n.onBack
}, l && s.createElement("span", {
className: `${mr}-back-arrow`
}, l), s.createElement("span", {
"aria-hidden": "true"
}, r)), n.left), s.createElement("div", {
className: `${mr}-title`
}, n.children), s.createElement("div", {
className: `${mr}-right`
}, n.right)));
}, ut = "adm-notice-bar", P8 = {
color: "default",
delay: 2e3,
speed: 50,
icon: s.createElement(Op, null),
wrap: !1,
shape: "rectangular",
bordered: "block"
}, oE = Ke((e) => {
const {
noticeBar: t = {}
} = fe(), n = Y(P8, t, e), r = wn(s.createElement(bo, {
className: `${ut}-close-icon`
}), t.closeIcon, e.closeIcon), i = W(null), a = W(null), [o, l] = Q(!0), c = n.speed, u = W(!0), f = W(!1);
function d() {
if (u.current || n.wrap)
return;
const m = i.current, h = a.current;
if (!m || !h)
return;
if (m.offsetWidth >= h.offsetWidth) {
f.current = !1, h.style.removeProperty("transition-duration"), h.style.removeProperty("transform");
return;
}
if (f.current)
return;
const E = !h.style.transform;
h.style.transitionDuration = "0s", E ? h.style.transform = "translateX(0)" : h.style.transform = `translateX(${m.offsetWidth}px)`;
const b = E ? h.offsetWidth : m.offsetWidth + h.offsetWidth;
f.current = !0, h.style.transitionDuration = `${Math.round(b / c)}s`, h.style.transform = `translateX(-${h.offsetWidth}px)`;
}
return Av(() => {
u.current = !1, d();
}, n.delay), Ki(() => {
d();
}, i), zl(() => {
d();
}, a, {
subtree: !0,
childList: !0,
characterData: !0
}), o ? U(n, s.createElement("div", {
className: Z(ut, `${ut}-${n.color}`, `${ut}-${n.shape}`, {
[`${ut}-wrap`]: n.wrap,
[`${ut}-bordered`]: n.bordered === !0,
[`${ut}-without-border`]: n.bordered === !1
}),
onClick: n.onClick
}, n.icon && s.createElement("span", {
className: `${ut}-left`
}, n.icon), s.createElement("span", {
ref: i,
className: `${ut}-content`
}, s.createElement("span", {
onTransitionEnd: () => {
f.current = !1, d();
},
ref: a,
className: `${ut}-content-inner`
}, n.content)), (n.closeable || n.extra) && s.createElement("span", {
className: `${ut}-right`
}, n.extra, n.closeable && s.createElement("div", {
className: `${ut}-close`,
onClick: (m) => {
var h;
m.stopPropagation(), l(!1), (h = n.onClose) === null || h === void 0 || h.call(n);
}
}, r)))) : null;
});
function M8(e) {
const t = [...e];
for (let n = t.length; n > 0; n--) {
const r = Math.floor(Math.random() * n);
[t[n - 1], t[r]] = [t[r], t[n - 1]];
}
return t;
}
const Se = "adm-number-keyboard", A8 = {
defaultVisible: !1,
randomOrder: !1,
showCloseButton: !0,
confirmText: null,
closeOnConfirm: !0,
safeArea: !0,
destroyOnClose: !1,
forceRender: !1
}, sE = (e) => {
const t = Y(A8, e), {
visible: n,
title: r,
getContainer: i,
confirmText: a,
customKey: o,
randomOrder: l,
showCloseButton: c,
onInput: u
} = t, {
locale: f
} = fe(), d = W(null), m = de(() => {
const k = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], _ = l ? M8(k) : k, R = Array.isArray(o) ? o : [o];
return _.push("0"), a ? (R.length === 2 && _.splice(9, 0, R.pop()), _.push(R[0] || "")) : (_.splice(9, 0, R[0] || ""), _.push(R[1] || "BACKSPACE")), _;
}, [o, a, l, l && n]), h = W(-1), E = W(-1), b = Xt(() => {
var k;
(k = t.onDelete) === null || k === void 0 || k.call(t);
}), g = () => {
h.current = window.setTimeout(() => {
b(), E.current = window.setInterval(b, 150);
}, 700);
}, v = () => {
clearTimeout(h.current), clearInterval(E.current);
}, w = (k, _) => {
var R, O;
switch (_) {
case "BACKSPACE":
b == null || b();
break;
case "OK":
(R = t.onConfirm) === null || R === void 0 || R.call(t), t.closeOnConfirm && ((O = t.onClose) === null || O === void 0 || O.call(t));
break;
default:
_ !== "" && (u == null || u(_));
break;
}
}, p = () => !c && !r ? null : s.createElement("div", {
className: Z(`${Se}-header`, {
[`${Se}-header-with-title`]: !!r
})
}, !!r && s.createElement("div", {
className: `${Se}-title`,
"aria-label": r
}, r), c && s.createElement("span", {
className: `${Se}-header-close-button`,
onClick: () => {
var k;
(k = t.onClose) === null || k === void 0 || k.call(t);
},
role: "button",
title: f.common.close,
tabIndex: -1
}, s.createElement(Vd, null))), y = () => {
v(), g();
}, C = (k) => {
k.preventDefault(), v(), w(k, "BACKSPACE");
}, x = (k, _) => {
const R = typeof k == "string" ? {
key: k,
title: k
} : k, O = R.key, V = /^\d$/.test(O), A = O === "BACKSPACE", M = A ? f.NumberKeyboard.backspace : R.title, N = Z(`${Se}-key`, {
[`${Se}-key-number`]: V,
[`${Se}-key-sign`]: !V && O,
[`${Se}-key-mid`]: _ === 9 && !!a && m.length < 12
}), T = O ? {
role: "button",
title: M,
"aria-label": M,
tabIndex: -1
} : void 0;
return s.createElement("div", Object.assign({
key: O,
className: N,
// 仅为 backspace 绑定,支持长按快速删除
onTouchStart: A ? y : void 0,
onTouchEnd: A ? C : void 0,
onTouchCancel: A ? v : void 0,
// <div role="button" title="1" onTouchEnd={e => {}}>1</div> 安卓上 talback 可读不可点
// see https://ua-gilded-eef7f9.netlify.app/grid-button-bug.html
// 所以普通按钮绑定 click 事件,而 backspace 仍然额外绑定 touch 事件支持长按删除
// backspace touchend 时会 preventDefault 阻止其后续 click 事件
onClick: (P) => {
v(), w(P, O);
}
}, T), A ? s.createElement(mu, null) : O);
};
return s.createElement(Br, {
visible: n,
getContainer: i,
mask: !1,
afterClose: t.afterClose,
afterShow: t.afterShow,
className: `${Se}-popup`,
stopPropagation: t.stopPropagation,
destroyOnClose: t.destroyOnClose,
forceRender: t.forceRender
}, U(t, s.createElement("div", {
ref: d,
className: Se,
onMouseDown: (k) => {
k.preventDefault();
}
}, p(), s.createElement("div", {
className: `${Se}-wrapper`
}, s.createElement("div", {
className: Z(`${Se}-main`, {
[`${Se}-main-confirmed-style`]: !!a
})
}, m.map(x)), !!a && s.createElement("div", {
className: `${Se}-confirm`
}, s.createElement("div", {
className: `${Se}-key ${Se}-key-extra ${Se}-key-bs`,
onTouchStart: y,
onTouchEnd: C,
onTouchCancel: v,
onClick: (k) => {
v(), w(k, "BACKSPACE");
},
onContextMenu: (k) => {
k.preventDefault();
},
title: f.NumberKeyboard.backspace,
role: "button",
tabIndex: -1
}, s.createElement(mu, null)), s.createElement("div", {
className: `${Se}-key ${Se}-key-extra ${Se}-key-ok`,
onClick: (k) => w(k, "OK"),
role: "button",
tabIndex: -1,
"aria-label": a
}, a))), t.safeArea && s.createElement("div", {
className: `${Se}-footer`
}, s.createElement(Wr, {
position: "bottom"
})))));
}, ni = "adm-page-indicator", T8 = {
color: "primary",
direction: "horizontal"
}, I8 = Ke((e) => {
const t = Y(T8, e), n = [];
for (let r = 0; r < t.total; r++)
n.push(s.createElement("div", {
key: r,
className: Z(`${ni}-dot`, {
[`${ni}-dot-active`]: t.current === r
})
}));
return U(t, s.createElement("div", {
className: Z(ni, `${ni}-${t.direction}`, `${ni}-color-${t.color}`)
}, n));
}), Ct = "adm-passcode-input", Ff = {
defaultValue: "",
length: 6,
plain: !1,
error: !1,
seperated: !1,
caret: !0,
inputMode: "numeric",
direction: "ltr"
}, lE = we((e, t) => {
const n = Y(Ff, e), r = n.length > 0 && n.length < 1 / 0 ? Math.floor(n.length) : Ff.length, {
locale: i
} = fe(), [a, o] = Q(!1), [l, c] = ue(n), u = W(null), f = W(null);
J(() => {
var g;
l.length >= r && ((g = n.onFill) === null || g === void 0 || g.call(n, l));
}, [l, r]);
const d = () => {
var g, v;
n.keyboard || (g = f.current) === null || g === void 0 || g.focus(), o(!0), (v = n.onFocus) === null || v === void 0 || v.call(n);
};
J(() => {
if (!a)
return;
const g = window.setTimeout(() => {
var v;
(v = u.current) === null || v === void 0 || v.scrollIntoView({
block: "center",
inline: "center",
behavior: "smooth"
});
}, 100);
return () => {
window.clearTimeout(g);
};
}, [a]);
const m = () => {
var g;
o(!1), (g = n.onBlur) === null || g === void 0 || g.call(n);
};
$e(t, () => ({
focus: () => {
var g;
return (g = u.current) === null || g === void 0 ? void 0 : g.focus();
},
blur: () => {
var g, v;
(g = u.current) === null || g === void 0 || g.blur(), (v = f.current) === null || v === void 0 || v.blur();
}
}));
const h = n.direction === "rtl", E = () => {
const g = [], v = l.split(""), w = v.length, p = Re(v.length, 0, r - 1);
for (let y = 0; y < r; y++)
g.push(s.createElement("div", {
className: Z(`${Ct}-cell`, {
[`${Ct}-cell-caret`]: n.caret && w === y && a,
[`${Ct}-cell-focused`]: p === y && a,
[`${Ct}-cell-dot`]: !n.plain && v[y]
}),
key: y
}, v[y] && n.plain ? v[y] : ""));
return g;
}, b = Z(Ct, {
[`${Ct}-focused`]: a,
[`${Ct}-error`]: n.error,
[`${Ct}-seperated`]: n.seperated,
[`${Ct}-rtl`]: h
});
return s.createElement(s.Fragment, null, U(n, s.createElement("div", {
ref: u,
tabIndex: 0,
className: b,
onFocus: d,
onBlur: m,
role: "button",
"aria-label": i.PasscodeInput.name
}, s.createElement("div", {
className: `${Ct}-cell-container`
}, E()), s.createElement("input", {
ref: f,
className: `${Ct}-native-input`,
value: l,
type: "text",
pattern: "[0-9]*",
inputMode: n.inputMode,
onChange: (g) => {
c(g.target.value.slice(0, n.length));
},
"aria-hidden": !0
}))), n.keyboard && s.cloneElement(n.keyboard, {
visible: a,
onInput: (g) => {
l.length < r && c((l + g).slice(0, n.length));
},
onDelete: () => {
c(l.slice(0, -1));
},
onClose: () => {
var g;
(g = u.current) === null || g === void 0 || g.blur();
}
}));
}), ri = "adm-progress-bar", L8 = {
percent: 0,
rounded: !0,
text: !1
}, cE = (e) => {
const t = Y(L8, e), n = {
width: `${t.percent}%`
}, r = function() {
return t.text === !0 ? `${t.percent}%` : typeof t.text == "function" ? t.text(t.percent) : t.text;
}();
return U(t, s.createElement("div", {
className: Z(ri, t.rounded && `${ri}-rounded`)
}, s.createElement("div", {
className: `${ri}-trail`
}, s.createElement("div", {
className: `${ri}-fill`,
style: n
})), fn(r) && s.createElement("div", {
className: `${ri}-text`
}, r)));
}, hr = "adm-progress-circle", uE = (e) => {
const t = Y({
percent: 0
}, e), n = {
"--percent": t.percent.toString()
};
return U(t, s.createElement("div", {
className: `${hr}`,
style: n
}, s.createElement("div", {
className: `${hr}-content`
}, s.createElement("svg", {
className: `${hr}-svg`
}, s.createElement("circle", {
className: `${hr}-track`,
fill: "transparent"
}), s.createElement("circle", {
className: `${hr}-fill`,
fill: "transparent"
})), s.createElement("div", {
className: `${hr}-info`
}, t.children))));
}, D8 = (e) => new Promise((t) => setTimeout(t, e)), ga = "adm-pull-to-refresh", V8 = {
pullingText: "下拉刷新",
canReleaseText: "释放立即刷新",
refreshingText: "加载中...",
completeText: "刷新成功",
completeDelay: 500,
disabled: !1,
onRefresh: () => {
}
}, fE = (e) => {
var t, n;
const {
locale: r
} = fe(), i = Y(V8, {
refreshingText: `${r.common.loading}...`,
pullingText: r.PullToRefresh.pulling,
canReleaseText: r.PullToRefresh.canRelease,
completeText: r.PullToRefresh.complete
}, e), a = (t = i.headHeight) !== null && t !== void 0 ? t : Hn(40), o = (n = i.threshold) !== null && n !== void 0 ? n : Hn(60), [l, c] = Q("pulling"), [u, f] = Ve(() => ({
from: {
height: 0
},
config: {
tension: 300,
friction: 30,
round: !0,
clamp: !0
}
})), d = W(null), m = W(!1);
J(() => {
var g;
(g = d.current) === null || g === void 0 || g.addEventListener("touchmove", () => {
});
}, []);
const h = () => new Promise((g) => {
f.start({
to: {
height: 0
},
onResolve() {
c("pulling"), g();
}
});
});
function E() {
return Te(this, void 0, void 0, function* () {
f.start({
height: a
}), c("refreshing");
try {
yield i.onRefresh(), c("complete");
} catch (g) {
throw h(), g;
}
i.completeDelay > 0 && (yield D8(i.completeDelay)), h();
});
}
Bt((g) => {
if (l === "refreshing" || l === "complete")
return;
const {
event: v
} = g;
if (g.last) {
m.current = !1, l === "canRelease" ? E() : f.start({
height: 0
});
return;
}
const [, w] = g.movement, p = Math.ceil(w);
if (g.first && p > 0) {
let k = function(_) {
return "scrollTop" in _ ? _.scrollTop : _.scrollY;
};
const C = g.event.target;
if (!C || !(C instanceof Element))
return;
let x = Va(C);
for (; ; ) {
if (!x || k(x) > 0)
return;
if (x instanceof Window)
break;
x = Va(x.parentNode);
}
m.current = !0;
}
if (!m.current)
return;
v.cancelable && v.preventDefault(), v.stopPropagation();
const y = Math.max(Oi(p, 0, 0, a * 5, 0.5), 0);
f.start({
height: y
}), c(y > o ? "canRelease" : "pulling");
}, {
pointer: {
touch: !0
},
axis: "y",
target: d,
enabled: !i.disabled,
eventOptions: Un ? {
passive: !1
} : void 0
});
const b = () => {
var g;
if (i.renderText)
return (g = i.renderText) === null || g === void 0 ? void 0 : g.call(i, l);
if (l === "pulling")
return i.pullingText;
if (l === "canRelease")
return i.canReleaseText;
if (l === "refreshing")
return i.refreshingText;
if (l === "complete")
return i.completeText;
};
return s.createElement(xe.div, {
ref: d,
className: ga
}, s.createElement(xe.div, {
style: u,
className: `${ga}-head`
}, s.createElement("div", {
className: `${ga}-head-content`,
style: {
height: a
}
}, b())), s.createElement("div", {
className: `${ga}-content`
}, i.children));
}, om = dl(null), j8 = {
disabled: !1,
defaultValue: null
}, B8 = (e) => {
const t = Y(j8, e), [n, r] = ue({
value: t.value,
defaultValue: t.defaultValue,
onChange: (i) => {
var a;
i !== null && ((a = t.onChange) === null || a === void 0 || a.call(t, i));
}
});
return s.createElement(
om.Provider,
{
// TODO: 性能优化
value: {
value: n === null ? [] : [n],
check: (i) => {
r(i);
},
uncheck: () => {
},
disabled: t.disabled
}
},
t.children
);
}, Rn = "adm-radio", W8 = {
defaultChecked: !1
}, Z8 = (e) => {
const t = Y(W8, e), n = ot(om);
let [r, i] = ue({
value: t.checked,
defaultValue: t.defaultChecked,
onChange: t.onChange
}), a = t.disabled;
const {
value: o
} = t;
n && o !== void 0 && (r = n.value.includes(o), i = (c) => {
var u;
c ? n.check(o) : n.uncheck(o), (u = t.onChange) === null || u === void 0 || u.call(t, c);
}, a = a || n.disabled);
const l = () => t.icon ? s.createElement("div", {
className: `${Rn}-custom-icon`
}, t.icon(r)) : s.createElement("div", {
className: `${Rn}-icon`
}, r && s.createElement(J1, null));
return U(t, s.createElement("label", {
onClick: t.onClick,
className: Z(Rn, {
[`${Rn}-checked`]: r,
[`${Rn}-disabled`]: a,
[`${Rn}-block`]: t.block
})
}, s.createElement(e0, {
type: "radio",
checked: r,
onChange: i,
disabled: a,
id: t.id
}), l(), t.children && s.createElement("div", {
className: `${Rn}-content`
}, t.children)));
}, dE = ge(Z8, {
Group: B8
}), q8 = () => s.createElement("svg", {
viewBox: "0 0 42 40",
height: "1em",
xmlns: "http://www.w3.org/2000/svg",
style: {
verticalAlign: "-0.125em"
}
}, s.createElement("path", {
d: "m21 34-10.52 5.53a2 2 0 0 1-2.902-2.108l2.01-11.714-8.511-8.296a2 2 0 0 1 1.108-3.411l11.762-1.71 5.26-10.657a2 2 0 0 1 3.586 0l5.26 10.658L39.815 14a2 2 0 0 1 1.108 3.411l-8.51 8.296 2.009 11.714a2 2 0 0 1-2.902 2.109L21 34Z",
fill: "currentColor",
fillRule: "evenodd"
})), Nn = "adm-rate", H8 = {
count: 5,
allowHalf: !1,
character: s.createElement(q8, null),
defaultValue: 0,
readOnly: !1,
allowClear: !0
}, mE = (e) => {
const t = Y(H8, e), [n, r] = ue(t), i = W(null), a = Array(t.count).fill(null);
function o(c, u) {
return s.createElement("div", {
className: Z(`${Nn}-star`, {
[`${Nn}-star-active`]: n >= c,
[`${Nn}-star-half`]: u,
[`${Nn}-star-readonly`]: t.readOnly
}),
role: "radio",
"aria-checked": n >= c,
"aria-label": "" + c
}, t.character);
}
const l = Bt((c) => {
if (t.readOnly)
return;
const {
xy: [u],
tap: f
} = c, d = i.current;
if (!d)
return;
const m = d.getBoundingClientRect(), h = (u - m.left) / m.width * t.count, E = t.allowHalf ? Math.ceil(h * 2) / 2 : Math.ceil(h), b = Re(E, 0, t.count);
if (f && t.allowClear && b === n) {
r(0);
return;
}
r(b);
}, {
axis: "x",
pointer: {
touch: !0
},
filterTaps: !0
});
return U(t, s.createElement("div", Object.assign({
className: Z(Nn, {
[`${Nn}-half`]: t.allowHalf
}),
role: "radiogroup",
"aria-readonly": t.readOnly,
ref: i
}, l()), a.map((c, u) => s.createElement("div", {
key: u,
className: Z(`${Nn}-box`)
}, t.allowHalf && o(u + 0.5, !0), o(u + 1, !1)))));
}, sm = (e) => {
const {
result: t = {}
} = fe(), {
successIcon: n = s.createElement(yp, null),
errorIcon: r = s.createElement(Tl, null),
infoIcon: i = s.createElement(Cp, null),
waitingIcon: a = s.createElement(bp, null),
warningIcon: o = s.createElement(wp, null)
} = t || {};
switch (e) {
case "success":
return n;
case "error":
return r;
case "info":
return i;
case "waiting":
return a;
case "warning":
return o;
default:
return null;
}
}, ii = "adm-result", U8 = {
status: "info"
}, hE = (e) => {
const t = Y(U8, e), {
status: n,
title: r,
description: i,
icon: a
} = t, o = sm(n);
return n ? U(t, s.createElement("div", {
className: Z(ii, `${ii}-${n}`)
}, s.createElement("div", {
className: `${ii}-icon`
}, a || o), s.createElement("div", {
className: `${ii}-title`
}, r), !!i && s.createElement("div", {
className: `${ii}-description`
}, i))) : null;
}, Be = "adm-result-page", z8 = {
status: "info",
details: []
}, K8 = (e) => {
const t = Y(z8, e), {
status: n,
title: r,
description: i,
details: a,
icon: o,
primaryButtonText: l,
secondaryButtonText: c,
onPrimaryButtonClick: u,
onSecondaryButtonClick: f
} = t, d = sm(n), [m, h] = Q(!0), E = fn(c), b = fn(l);
return U(t, s.createElement("div", {
className: Be
}, s.createElement("div", {
className: `${Be}-header`
}, s.createElement("div", {
className: `${Be}-icon`
}, o || d), s.createElement("div", {
className: `${Be}-title`
}, r), fn(i) ? s.createElement("div", {
className: `${Be}-description`
}, i) : null, a != null && a.length ? s.createElement("div", {
className: `${Be}-details`
}, (m ? a.slice(0, 3) : a).map((g, v) => s.createElement("div", {
className: Z(`${Be}-detail`, g.bold && `${Be}-detail-bold`),
key: v
}, s.createElement("span", null, g.label), s.createElement("span", null, g.value))), a.length > 3 && s.createElement("div", {
onClick: () => h((g) => !g)
}, s.createElement("div", {
className: Z(`${Be}-collapse`, !m && `${Be}-collapse-active`)
}))) : null, s.createElement("div", {
className: `${Be}-bgWrapper`
}, s.createElement("div", {
className: `${Be}-bg`
}))), s.createElement("div", {
className: `${Be}-content`
}, t.children), (b || E) && s.createElement("div", {
className: `${Be}-footer`
}, E && s.createElement(Kt, {
block: !0,
color: "default",
fill: "solid",
size: "large",
onClick: f,
className: `${Be}-footer-btn`
}, c), b && E && s.createElement("div", {
className: `${Be}-footer-space`
}), b && s.createElement(Kt, {
block: !0,
color: "primary",
fill: "solid",
size: "large",
onClick: u,
className: `${Be}-footer-btn`
}, l))));
}, Y8 = "adm-result-page-card", G8 = (e) => U(e, s.createElement("div", {
className: Z(`${Y8}`)
}, e.children)), vE = ge(K8, {
Card: G8
}), on = "adm-search-bar", X8 = {
clearable: !0,
onlyShowClearWhenFocus: !1,
showCancelButton: !1,
defaultValue: "",
clearOnCancel: !0
}, pE = we((e, t) => {
const {
locale: n,
searchBar: r = {}
} = fe(), i = Y(X8, r, {
cancelText: n.common.cancel
}, e), a = wn(s.createElement(Sp, null), r.searchIcon, e.icon, e.searchIcon), [o, l] = ue(i), [c, u] = Q(!1), f = W(null);
$e(t, () => ({
clear: () => {
var m;
return (m = f.current) === null || m === void 0 ? void 0 : m.clear();
},
focus: () => {
var m;
return (m = f.current) === null || m === void 0 ? void 0 : m.focus();
},
blur: () => {
var m;
return (m = f.current) === null || m === void 0 ? void 0 : m.blur();
},
get nativeElement() {
var m, h;
return (h = (m = f.current) === null || m === void 0 ? void 0 : m.nativeElement) !== null && h !== void 0 ? h : null;
}
}));
const d = () => {
let m;
return typeof i.showCancelButton == "function" ? m = i.showCancelButton(c, o) : m = i.showCancelButton && c, m && s.createElement("div", {
className: `${on}-suffix`
}, s.createElement(Kt, {
fill: "none",
className: `${on}-cancel-button`,
onClick: () => {
var h, E, b;
i.clearOnCancel && ((h = f.current) === null || h === void 0 || h.clear()), (E = f.current) === null || E === void 0 || E.blur(), (b = i.onCancel) === null || b === void 0 || b.call(i);
},
onMouseDown: (h) => {
h.preventDefault();
}
}, i.cancelText));
};
return U(i, s.createElement("div", {
className: Z(on, {
[`${on}-active`]: c
})
}, s.createElement("div", {
className: `${on}-input-box`
}, a && s.createElement("div", {
className: `${on}-input-box-icon`
}, a), s.createElement(im, {
ref: f,
className: Z(`${on}-input`, {
[`${on}-input-without-icon`]: !a
}),
value: o,
onChange: l,
maxLength: i.maxLength,
autoFocus: i.autoFocus,
placeholder: i.placeholder,
clearable: i.clearable,
onlyShowClearWhenFocus: i.onlyShowClearWhenFocus,
onFocus: (m) => {
var h;
u(!0), (h = i.onFocus) === null || h === void 0 || h.call(i, m);
},
onBlur: (m) => {
var h;
u(!1), (h = i.onBlur) === null || h === void 0 || h.call(i, m);
},
onClear: i.onClear,
type: "search",
enterKeyHint: "search",
onEnterPress: (m) => {
var h, E;
m.nativeEvent.isComposing || ((h = f.current) === null || h === void 0 || h.blur(), (E = i.onSearch) === null || E === void 0 || E.call(i, o));
},
"aria-label": n.SearchBar.name,
onCompositionStart: (m) => {
var h;
(h = i.onCompositionStart) === null || h === void 0 || h.call(i, m);
},
onCompositionEnd: (m) => {
var h;
(h = i.onCompositionEnd) === null || h === void 0 || h.call(i, m);
}
})), d()));
});
function Q8(e, t) {
var n = Object.assign({}, e);
return Array.isArray(t) && t.forEach(function(r) {
delete n[r];
}), n;
}
function Rf(e) {
return e instanceof HTMLElement || e instanceof SVGElement;
}
function J8(e) {
return e && ke(e) === "object" && Rf(e.nativeElement) ? e.nativeElement : Rf(e) ? e : null;
}
function e9(e) {
var t = J8(e);
if (t)
return t;
if (e instanceof s.Component) {
var n;
return (n = Ta.findDOMNode) === null || n === void 0 ? void 0 : n.call(Ta, e);
}
return null;
}
var t9 = /* @__PURE__ */ D.createContext({}), n9 = /* @__PURE__ */ function(e) {
ac(n, e);
var t = oc(n);
function n() {
return er(this, n), t.apply(this, arguments);
}
return tr(n, [{
key: "render",
value: function() {
return this.props.children;
}
}]), n;
}(D.Component), In = "none", ya = "appear", ba = "enter", Ea = "leave", Nf = "none", kt = "prepare", yr = "start", br = "active", Oc = "end", lm = "prepared";
function Pf(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit".concat(e)] = "webkit".concat(t), n["Moz".concat(e)] = "moz".concat(t), n["ms".concat(e)] = "MS".concat(t), n["O".concat(e)] = "o".concat(t.toLowerCase()), n;
}
function r9(e, t) {
var n = {
animationend: Pf("Animation", "AnimationEnd"),
transitionend: Pf("Transition", "TransitionEnd")
};
return e && ("AnimationEvent" in t || delete n.animationend.animation, "TransitionEvent" in t || delete n.transitionend.transition), n;
}
var i9 = r9(ko(), typeof window < "u" ? window : {}), cm = {};
if (ko()) {
var a9 = document.createElement("div");
cm = a9.style;
}
var wa = {};
function um(e) {
if (wa[e])
return wa[e];
var t = i9[e];
if (t)
for (var n = Object.keys(t), r = n.length, i = 0; i < r; i += 1) {
var a = n[i];
if (Object.prototype.hasOwnProperty.call(t, a) && a in cm)
return wa[e] = t[a], wa[e];
}
return "";
}
var fm = um("animationend"), dm = um("transitionend"), mm = !!(fm && dm), Mf = fm || "animationend", Af = dm || "transitionend";
function Tf(e, t) {
if (!e)
return null;
if (ke(e) === "object") {
var n = t.replace(/-\w/g, function(r) {
return r[1].toUpperCase();
});
return e[n];
}
return "".concat(e, "-").concat(t);
}
const o9 = function(e) {
var t = W(), n = W(e);
n.current = e;
var r = D.useCallback(function(o) {
n.current(o);
}, []);
function i(o) {
o && (o.removeEventListener(Af, r), o.removeEventListener(Mf, r));
}
function a(o) {
t.current && t.current !== o && i(t.current), o && o !== t.current && (o.addEventListener(Af, r), o.addEventListener(Mf, r), t.current = o);
}
return D.useEffect(function() {
return function() {
i(t.current);
};
}, []), [a, i];
};
var hm = ko() ? io : J, vm = function(t) {
return +setTimeout(t, 16);
}, pm = function(t) {
return clearTimeout(t);
};
typeof window < "u" && "requestAnimationFrame" in window && (vm = function(t) {
return window.requestAnimationFrame(t);
}, pm = function(t) {
return window.cancelAnimationFrame(t);
});
var If = 0, Fc = /* @__PURE__ */ new Map();
function gm(e) {
Fc.delete(e);
}
var al = function(t) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
If += 1;
var r = If;
function i(a) {
if (a === 0)
gm(r), t();
else {
var o = vm(function() {
i(a - 1);
});
Fc.set(r, o);
}
}
return i(n), r;
};
al.cancel = function(e) {
var t = Fc.get(e);
return gm(e), pm(t);
};
const s9 = function() {
var e = D.useRef(null);
function t() {
al.cancel(e.current);
}
function n(r) {
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
t();
var a = al(function() {
i <= 1 ? r({
isCanceled: function() {
return a !== e.current;
}
}) : n(r, i - 1);
});
e.current = a;
}
return D.useEffect(function() {
return function() {
t();
};
}, []), [n, t];
};
var l9 = [kt, yr, br, Oc], c9 = [kt, lm], ym = !1, u9 = !0;
function bm(e) {
return e === br || e === Oc;
}
const f9 = function(e, t, n) {
var r = Cr(Nf), i = Fe(r, 2), a = i[0], o = i[1], l = s9(), c = Fe(l, 2), u = c[0], f = c[1];
function d() {
o(kt, !0);
}
var m = t ? c9 : l9;
return hm(function() {
if (a !== Nf && a !== Oc) {
var h = m.indexOf(a), E = m[h + 1], b = n(a);
b === ym ? o(E, !0) : E && u(function(g) {
function v() {
g.isCanceled() || o(E, !0);
}
b === !0 ? v() : Promise.resolve(b).then(v);
});
}
}, [e, a]), D.useEffect(function() {
return function() {
f();
};
}, []), [d, a];
};
function d9(e, t, n, r) {
var i = r.motionEnter, a = i === void 0 ? !0 : i, o = r.motionAppear, l = o === void 0 ? !0 : o, c = r.motionLeave, u = c === void 0 ? !0 : c, f = r.motionDeadline, d = r.motionLeaveImmediately, m = r.onAppearPrepare, h = r.onEnterPrepare, E = r.onLeavePrepare, b = r.onAppearStart, g = r.onEnterStart, v = r.onLeaveStart, w = r.onAppearActive, p = r.onEnterActive, y = r.onLeaveActive, C = r.onAppearEnd, x = r.onEnterEnd, k = r.onLeaveEnd, _ = r.onVisibleChanged, R = Cr(), O = Fe(R, 2), V = O[0], A = O[1], M = Cr(In), N = Fe(M, 2), T = N[0], P = N[1], S = Cr(null), I = Fe(S, 2), $ = I[0], F = I[1], L = W(!1), B = W(null);
function j() {
return n();
}
var q = W(!1);
function H() {
P(In, !0), F(null, !0);
}
function X(Pe) {
var Ze = j();
if (!(Pe && !Pe.deadline && Pe.target !== Ze)) {
var qe = q.current, Ft;
T === ya && qe ? Ft = C == null ? void 0 : C(Ze, Pe) : T === ba && qe ? Ft = x == null ? void 0 : x(Ze, Pe) : T === Ea && qe && (Ft = k == null ? void 0 : k(Ze, Pe)), T !== In && qe && Ft !== !1 && H();
}
}
var te = o9(X), ae = Fe(te, 1), re = ae[0], z = function(Ze) {
var qe, Ft, qr;
switch (Ze) {
case ya:
return qe = {}, he(qe, kt, m), he(qe, yr, b), he(qe, br, w), qe;
case ba:
return Ft = {}, he(Ft, kt, h), he(Ft, yr, g), he(Ft, br, p), Ft;
case Ea:
return qr = {}, he(qr, kt, E), he(qr, yr, v), he(qr, br, y), qr;
default:
return {};
}
}, ne = D.useMemo(function() {
return z(T);
}, [T]), G = f9(T, !e, function(Pe) {
if (Pe === kt) {
var Ze = ne[kt];
return Ze ? Ze(j()) : ym;
}
if (oe in ne) {
var qe;
F(((qe = ne[oe]) === null || qe === void 0 ? void 0 : qe.call(ne, j(), null)) || null);
}
return oe === br && (re(j()), f > 0 && (clearTimeout(B.current), B.current = setTimeout(function() {
X({
deadline: !0
});
}, f))), oe === lm && H(), u9;
}), pe = Fe(G, 2), le = pe[0], oe = pe[1], Ye = bm(oe);
q.current = Ye, hm(function() {
A(t);
var Pe = L.current;
L.current = !0;
var Ze;
!Pe && t && l && (Ze = ya), Pe && t && a && (Ze = ba), (Pe && !t && u || !Pe && d && !t && u) && (Ze = Ea);
var qe = z(Ze);
Ze && (e || qe[kt]) ? (P(Ze), le()) : P(In);
}, [t]), J(function() {
// Cancel appear
(T === ya && !l || // Cancel enter
T === ba && !a || // Cancel leave
T === Ea && !u) && P(In);
}, [l, a, u]), J(function() {
return function() {
L.current = !1, clearTimeout(B.current);
};
}, []);
var Ne = D.useRef(!1);
J(function() {
V && (Ne.current = !0), V !== void 0 && T === In && ((Ne.current || V) && (_ == null || _(V)), Ne.current = !0);
}, [V, T]);
var je = $;
return ne[kt] && oe === yr && (je = ee({
transition: "none"
}, je)), [T, oe, je, V ?? t];
}
function m9(e) {
var t = e;
ke(e) === "object" && (t = e.transitionSupport);
function n(i, a) {
return !!(i.motionName && t && a !== !1);
}
var r = /* @__PURE__ */ D.forwardRef(function(i, a) {
var o = i.visible, l = o === void 0 ? !0 : o, c = i.removeOnLeave, u = c === void 0 ? !0 : c, f = i.forceRender, d = i.children, m = i.motionName, h = i.leavedClassName, E = i.eventProps, b = D.useContext(t9), g = b.motion, v = n(i, g), w = W(), p = W();
function y() {
try {
return w.current instanceof HTMLElement ? w.current : e9(p.current);
} catch {
return null;
}
}
var C = d9(v, l, y, i), x = Fe(C, 4), k = x[0], _ = x[1], R = x[2], O = x[3], V = D.useRef(O);
O && (V.current = !0);
var A = D.useCallback(function(F) {
w.current = F, S1(a, F);
}, [a]), M, N = ee(ee({}, E), {}, {
visible: l
});
if (!d)
M = null;
else if (k === In)
O ? M = d(ee({}, N), A) : !u && V.current && h ? M = d(ee(ee({}, N), {}, {
className: h
}), A) : f || !u && !h ? M = d(ee(ee({}, N), {}, {
style: {
display: "none"
}
}), A) : M = null;
else {
var T, P;
_ === kt ? P = "prepare" : bm(_) ? P = "active" : _ === yr && (P = "start");
var S = Tf(m, "".concat(k, "-").concat(P));
M = d(ee(ee({}, N), {}, {
className: Z(Tf(m, k), (T = {}, he(T, S, S && P), he(T, m, typeof m == "string"), T)),
style: R
}), A);
}
if (/* @__PURE__ */ D.isValidElement(M) && Mg(M)) {
var I = M, $ = I.ref;
$ || (M = /* @__PURE__ */ D.cloneElement(M, {
ref: A
}));
}
return /* @__PURE__ */ D.createElement(n9, {
ref: p
}, M);
});
return r.displayName = "CSSMotion", r;
}
const Em = m9(mm);
var ol = "add", sl = "keep", ll = "remove", ls = "removed";
function h9(e) {
var t;
return e && ke(e) === "object" && "key" in e ? t = e : t = {
key: e
}, ee(ee({}, t), {}, {
key: String(t.key)
});
}
function cl() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
return e.map(h9);
}
function v9() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = [], r = 0, i = t.length, a = cl(e), o = cl(t);
a.forEach(function(u) {
for (var f = !1, d = r; d < i; d += 1) {
var m = o[d];
if (m.key === u.key) {
r < d && (n = n.concat(o.slice(r, d).map(function(h) {
return ee(ee({}, h), {}, {
status: ol
});
})), r = d), n.push(ee(ee({}, m), {}, {
status: sl
})), r += 1, f = !0;
break;
}
}
f || n.push(ee(ee({}, u), {}, {
status: ll
}));
}), r < i && (n = n.concat(o.slice(r).map(function(u) {
return ee(ee({}, u), {}, {
status: ol
});
})));
var l = {};
n.forEach(function(u) {
var f = u.key;
l[f] = (l[f] || 0) + 1;
});
var c = Object.keys(l).filter(function(u) {
return l[u] > 1;
});
return c.forEach(function(u) {
n = n.filter(function(f) {
var d = f.key, m = f.status;
return d !== u || m !== ll;
}), n.forEach(function(f) {
f.key === u && (f.status = sl);
});
}), n;
}
var p9 = ["component", "children", "onVisibleChanged", "onAllRemoved"], g9 = ["status"], y9 = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
function b9(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Em, n = /* @__PURE__ */ function(r) {
ac(a, r);
var i = oc(a);
function a() {
var o;
er(this, a);
for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
c[u] = arguments[u];
return o = i.call.apply(i, [this].concat(c)), he(Ga(o), "state", {
keyEntities: []
}), he(Ga(o), "removeKey", function(f) {
var d = o.state.keyEntities, m = d.map(function(h) {
return h.key !== f ? h : ee(ee({}, h), {}, {
status: ls
});
});
return o.setState({
keyEntities: m
}), m.filter(function(h) {
var E = h.status;
return E !== ls;
}).length;
}), o;
}
return tr(a, [{
key: "render",
value: function() {
var l = this, c = this.state.keyEntities, u = this.props, f = u.component, d = u.children, m = u.onVisibleChanged, h = u.onAllRemoved, E = Fr(u, p9), b = f || D.Fragment, g = {};
return y9.forEach(function(v) {
g[v] = E[v], delete E[v];
}), delete E.keys, /* @__PURE__ */ D.createElement(b, E, c.map(function(v, w) {
var p = v.status, y = Fr(v, g9), C = p === ol || p === sl;
return /* @__PURE__ */ D.createElement(t, Gn({}, g, {
key: y.key,
visible: C,
eventProps: y,
onVisibleChanged: function(k) {
if (m == null || m(k, {
key: y.key
}), !k) {
var _ = l.removeKey(y.key);
_ === 0 && h && h();
}
}
}), function(x, k) {
return d(ee(ee({}, x), {}, {
index: w
}), k);
});
}));
}
}], [{
key: "getDerivedStateFromProps",
value: function(l, c) {
var u = l.keys, f = c.keyEntities, d = cl(u), m = v9(f, d);
return {
keyEntities: m.filter(function(h) {
var E = f.find(function(b) {
var g = b.key;
return h.key === g;
});
return !(E && E.status === ls && h.status === ll);
})
};
}
}]), a;
}(D.Component);
return he(n, "defaultProps", {
component: "div"
}), n;
}
b9(mm);
var Lf = function(t) {
return t ? {
left: t.offsetLeft,
right: t.parentElement.clientWidth - t.clientWidth - t.offsetLeft,
width: t.clientWidth
} : null;
}, vr = function(t) {
return t !== void 0 ? "".concat(t, "px") : void 0;
};
function E9(e) {
var t = e.prefixCls, n = e.containerRef, r = e.value, i = e.getValueIndex, a = e.motionName, o = e.onMotionStart, l = e.onMotionEnd, c = e.direction, u = D.useRef(null), f = D.useState(r), d = Fe(f, 2), m = d[0], h = d[1], E = function(M) {
var N, T = i(M), P = (N = n.current) === null || N === void 0 ? void 0 : N.querySelectorAll(".".concat(t, "-item"))[T];
return (P == null ? void 0 : P.offsetParent) && P;
}, b = D.useState(null), g = Fe(b, 2), v = g[0], w = g[1], p = D.useState(null), y = Fe(p, 2), C = y[0], x = y[1];
C1(function() {
if (m !== r) {
var A = E(m), M = E(r), N = Lf(A), T = Lf(M);
h(r), w(N), x(T), A && M ? o() : l();
}
}, [r]);
var k = D.useMemo(function() {
return vr(c === "rtl" ? -(v == null ? void 0 : v.right) : v == null ? void 0 : v.left);
}, [c, v]), _ = D.useMemo(function() {
return vr(c === "rtl" ? -(C == null ? void 0 : C.right) : C == null ? void 0 : C.left);
}, [c, C]), R = function() {
return {
transform: "translateX(var(--thumb-start-left))",
width: "var(--thumb-start-width)"
};
}, O = function() {
return {
transform: "translateX(var(--thumb-active-left))",
width: "var(--thumb-active-width)"
};
}, V = function() {
w(null), x(null), l();
};
return !v || !C ? null : /* @__PURE__ */ D.createElement(Em, {
visible: !0,
motionName: a,
motionAppear: !0,
onAppearStart: R,
onAppearActive: O,
onVisibleChanged: V
}, function(A, M) {
var N = A.className, T = A.style, P = ee(ee({}, T), {}, {
"--thumb-start-left": k,
"--thumb-start-width": vr(v == null ? void 0 : v.width),
"--thumb-active-left": _,
"--thumb-active-width": vr(C == null ? void 0 : C.width)
}), S = {
ref: O1(u, M),
style: P,
className: Z("".concat(t, "-thumb"), N)
};
return /* @__PURE__ */ D.createElement("div", S);
});
}
var w9 = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
function C9(e) {
if (typeof e.title < "u")
return e.title;
if (ke(e.label) !== "object") {
var t;
return (t = e.label) === null || t === void 0 ? void 0 : t.toString();
}
}
function x9(e) {
return e.map(function(t) {
if (ke(t) === "object" && t !== null) {
var n = C9(t);
return ee(ee({}, t), {}, {
title: n
});
}
return {
label: t == null ? void 0 : t.toString(),
title: t == null ? void 0 : t.toString(),
value: t
};
});
}
var k9 = function(t) {
var n = t.prefixCls, r = t.className, i = t.disabled, a = t.checked, o = t.label, l = t.title, c = t.value, u = t.onChange, f = function(m) {
i || u(m, c);
};
return /* @__PURE__ */ D.createElement("label", {
className: Z(r, he({}, "".concat(n, "-item-disabled"), i))
}, /* @__PURE__ */ D.createElement("input", {
className: "".concat(n, "-item-input"),
type: "radio",
disabled: i,
checked: a,
onChange: f
}), /* @__PURE__ */ D.createElement("div", {
className: "".concat(n, "-item-label"),
title: l,
role: "option",
"aria-selected": a
}, o));
}, $9 = /* @__PURE__ */ D.forwardRef(function(e, t) {
var n, r, i = e.prefixCls, a = i === void 0 ? "rc-segmented" : i, o = e.direction, l = e.options, c = l === void 0 ? [] : l, u = e.disabled, f = e.defaultValue, d = e.value, m = e.onChange, h = e.className, E = h === void 0 ? "" : h, b = e.motionName, g = b === void 0 ? "thumb-motion" : b, v = Fr(e, w9), w = D.useRef(null), p = D.useMemo(function() {
return O1(w, t);
}, [w, t]), y = D.useMemo(function() {
return x9(c);
}, [c]), C = x1((n = y[0]) === null || n === void 0 ? void 0 : n.value, {
value: d,
defaultValue: f
}), x = Fe(C, 2), k = x[0], _ = x[1], R = D.useState(!1), O = Fe(R, 2), V = O[0], A = O[1], M = function(P, S) {
u || (_(S), m == null || m(S));
}, N = Q8(v, ["children"]);
return /* @__PURE__ */ D.createElement("div", Gn({
role: "listbox",
"aria-label": "segmented control"
}, N, {
className: Z(a, (r = {}, he(r, "".concat(a, "-rtl"), o === "rtl"), he(r, "".concat(a, "-disabled"), u), r), E),
ref: p
}), /* @__PURE__ */ D.createElement("div", {
className: "".concat(a, "-group")
}, /* @__PURE__ */ D.createElement(E9, {
prefixCls: a,
value: k,
containerRef: w,
motionName: "".concat(a, "-").concat(g),
direction: o,
getValueIndex: function(P) {
return y.findIndex(function(S) {
return S.value === P;
});
},
onMotionStart: function() {
A(!0);
},
onMotionEnd: function() {
A(!1);
}
}), y.map(function(T) {
return /* @__PURE__ */ D.createElement(k9, Gn({}, T, {
key: T.value,
prefixCls: a,
className: Z(T.className, "".concat(a, "-item"), he({}, "".concat(a, "-item-selected"), T.value === k && !V)),
checked: T.value === k,
onChange: M,
disabled: !!u || !!T.disabled
}));
})));
}), _9 = $9;
function S9(e) {
return typeof e == "object" && !!(e != null && e.icon);
}
const Ca = "adm-segmented", gE = D.forwardRef((e, t) => {
const {
prefixCls: n,
className: r,
block: i,
options: a = []
} = e, o = mn(
e,
["prefixCls", "className", "block", "options"]
), l = D.useMemo(() => a.map((c) => {
if (S9(c)) {
const {
icon: u,
label: f
} = c, d = mn(c, ["icon", "label"]);
return Object.assign(Object.assign({}, d), {
label: D.createElement(D.Fragment, null, D.createElement("span", {
className: `${Ca}-item-icon`
}, u), f && D.createElement("span", null, f))
});
}
return c;
}), [a, Ca]);
return U(e, D.createElement(_9, Object.assign({}, o, {
className: Z(r, {
[`${Ca}-block`]: i
}),
options: l,
ref: t,
prefixCls: Ca
})));
}), O9 = Ke(() => s.createElement("svg", {
width: "17px",
height: "13px",
viewBox: "0 0 17 13",
version: "1.1",
xmlns: "http://www.w3.org/2000/svg"
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd",
strokeLinecap: "round",
strokeLinejoin: "round"
}, s.createElement("g", {
transform: "translate(-2832.000000, -1103.000000)",
stroke: "#FFFFFF",
strokeWidth: "3"
}, s.createElement("g", {
transform: "translate(2610.000000, 955.000000)"
}, s.createElement("g", {
transform: "translate(24.000000, 91.000000)"
}, s.createElement("g", {
transform: "translate(179.177408, 36.687816)"
}, s.createElement("polyline", {
points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
})))))))), Pn = "adm-selector", F9 = {
multiple: !1,
defaultValue: [],
showCheckMark: !0
}, yE = (e) => {
const t = Y(F9, e), [n, r, , i] = Yi(t.fieldNames), [a, o] = ue({
value: t.value,
defaultValue: t.defaultValue,
onChange: (u) => {
var f;
const d = {
get items() {
return t.options.filter((m) => u.includes(m[r]));
}
};
(f = t.onChange) === null || f === void 0 || f.call(t, u, d);
}
}), {
locale: l
} = fe(), c = t.options.map((u) => {
const f = (a || []).includes(u[r]), d = u[i] || t.disabled, m = Z(`${Pn}-item`, {
[`${Pn}-item-active`]: f && !t.multiple,
[`${Pn}-item-multiple-active`]: f && t.multiple,
[`${Pn}-item-disabled`]: d
});
return s.createElement("div", {
key: u[r],
className: m,
onClick: () => {
if (!d)
if (t.multiple) {
const h = f ? a.filter((E) => E !== u[r]) : [...a, u[r]];
o(h);
} else {
const h = f ? [] : [u[r]];
o(h);
}
},
role: "option",
"aria-selected": f && !t.multiple || f && t.multiple
}, u[n], u.description && s.createElement("div", {
className: `${Pn}-item-description`
}, u.description), f && t.showCheckMark && s.createElement("div", {
className: `${Pn}-check-mark-wrapper`
}, s.createElement(O9, null)));
});
return U(t, s.createElement("div", {
className: Pn,
role: "listbox",
"aria-label": l.Selector.name
}, t.columns ? s.createElement(Y0, {
columns: t.columns
}, c) : s.createElement(_c, {
wrap: !0
}, c)));
}, cs = Ke((e) => U(e, s.createElement("svg", {
viewBox: "0 0 30 30"
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("path", {
d: "M30,0 C13.4314575,3.04359188e-15 -2.02906125e-15,13.4314575 0,30 L0,30 L0,0 Z",
fill: "var(--adm-color-background)",
transform: "translate(15.000000, 15.000000) scale(-1, -1) translate(-15.000000, -15.000000) "
}))))), He = "adm-side-bar", R9 = () => null, N9 = (e) => {
var t;
let n = null;
const r = [];
kn(e.children, (c, u) => {
if (!En(c))
return;
const f = c.key;
typeof f == "string" && (u === 0 && (n = f), r.push(c));
});
const [i, a] = ue({
value: e.activeKey,
defaultValue: (t = e.defaultActiveKey) !== null && t !== void 0 ? t : n,
onChange: (c) => {
var u;
c !== null && ((u = e.onChange) === null || u === void 0 || u.call(e, c));
}
}), o = r[r.length - 1], l = o && o.key === i;
return U(e, s.createElement("div", {
className: He
}, s.createElement("div", {
className: `${He}-items`
}, r.map((c, u) => {
const f = c.key === i, d = r[u - 1] && r[u - 1].key === i, m = r[u + 1] && r[u + 1].key === i;
return U(c.props, s.createElement("div", {
key: c.key,
onClick: () => {
const {
key: h
} = c;
h == null || c.props.disabled || a(h.toString());
},
className: Z(`${He}-item`, {
[`${He}-item-active`]: f,
[`${He}-item-disabled`]: c.props.disabled
})
}, s.createElement(s.Fragment, null, d && s.createElement(cs, {
className: `${He}-item-corner ${He}-item-corner-top`
}), m && s.createElement(cs, {
className: `${He}-item-corner ${He}-item-corner-bottom`
})), s.createElement(Ps, {
content: c.props.badge,
className: `${He}-badge`
}, s.createElement("div", {
className: `${He}-item-title`
}, f && s.createElement("div", {
className: `${He}-item-highlight`
}), c.props.title))));
})), s.createElement("div", {
className: Z(`${He}-extra-space`, l && `${He}-item-active-next-sibling`)
}, l && s.createElement(cs, {
className: `${He}-item-corner ${He}-item-corner-top`
}))));
}, bE = ge(N9, {
Item: R9
}), us = "adm-slider", P9 = ({
points: e,
max: t,
min: n,
upperBound: r,
lowerBound: i
}) => {
const a = t - n, o = e.map((l) => {
const c = `${Math.abs(l - n) / a * 100}%`, u = l <= r && l >= i, f = {
left: c
}, d = Z({
[`${us}-tick`]: !0,
[`${us}-tick-active`]: u
});
return s.createElement("span", {
className: d,
style: f,
key: l
});
});
return s.createElement("div", {
className: `${us}-ticks`
}, o);
}, M9 = P9, fs = "adm-slider-mark", A9 = ({
marks: e,
upperBound: t,
lowerBound: n,
max: r,
min: i
}) => {
const a = Object.keys(e), o = r - i, l = a.map(parseFloat).sort((c, u) => c - u).filter((c) => c >= i && c <= r).map((c) => {
const u = e[c];
if (!u && u !== 0)
return null;
const f = c <= t && c >= n, d = Z({
[`${fs}-text`]: !0,
[`${fs}-text-active`]: f
}), m = {
left: `${(c - i) / o * 100}%`
};
return s.createElement("span", {
className: d,
style: m,
key: c
}, u);
});
return s.createElement("div", {
className: fs
}, l);
}, T9 = A9;
function ul() {
return typeof BigInt == "function";
}
function wm(e) {
return !e && e !== 0 && !Number.isNaN(e) || !String(e).trim();
}
function yi(e) {
var t = e.trim(), n = t.startsWith("-");
n && (t = t.slice(1)), t = t.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), t.startsWith(".") && (t = "0".concat(t));
var r = t || "0", i = r.split("."), a = i[0] || "0", o = i[1] || "0";
a === "0" && o === "0" && (n = !1);
var l = n ? "-" : "";
return {
negative: n,
negativeStr: l,
trimStr: r,
integerStr: a,
decimalStr: o,
fullStr: "".concat(l).concat(r)
};
}
function Rc(e) {
var t = String(e);
return !Number.isNaN(Number(t)) && t.includes("e");
}
function ui(e) {
var t = String(e);
if (Rc(e)) {
var n = Number(t.slice(t.indexOf("e-") + 2)), r = t.match(/\.(\d+)/);
return r != null && r[1] && (n += r[1].length), n;
}
return t.includes(".") && xm(t) ? t.length - t.indexOf(".") - 1 : 0;
}
function Cm(e) {
var t = String(e);
if (Rc(e)) {
if (e > Number.MAX_SAFE_INTEGER)
return String(ul() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER);
if (e < Number.MIN_SAFE_INTEGER)
return String(ul() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER);
t = e.toFixed(ui(t));
}
return yi(t).fullStr;
}
function xm(e) {
return typeof e == "number" ? !Number.isNaN(e) : e ? (
// Normal type: 11.28
/^\s*-?\d+(\.\d+)?\s*$/.test(e) || // Pre-number: 1.
/^\s*-?\d+\.\s*$/.test(e) || // Post-number: .1
/^\s*-?\.\d+\s*$/.test(e)
) : !1;
}
var I9 = /* @__PURE__ */ function() {
function e(t) {
if (er(this, e), he(this, "origin", ""), he(this, "negative", void 0), he(this, "integer", void 0), he(this, "decimal", void 0), he(this, "decimalLen", void 0), he(this, "empty", void 0), he(this, "nan", void 0), wm(t)) {
this.empty = !0;
return;
}
if (this.origin = String(t), t === "-" || Number.isNaN(t)) {
this.nan = !0;
return;
}
var n = t;
if (Rc(n) && (n = Number(n)), n = typeof n == "string" ? n : Cm(n), xm(n)) {
var r = yi(n);
this.negative = r.negative;
var i = r.trimStr.split(".");
this.integer = BigInt(i[0]);
var a = i[1] || "0";
this.decimal = BigInt(a), this.decimalLen = a.length;
} else
this.nan = !0;
}
return tr(e, [{
key: "getMark",
value: function() {
return this.negative ? "-" : "";
}
}, {
key: "getIntegerStr",
value: function() {
return this.integer.toString();
}
/**
* @private get decimal string
*/
}, {
key: "getDecimalStr",
value: function() {
return this.decimal.toString().padStart(this.decimalLen, "0");
}
/**
* @private Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
* This is used for add function only.
*/
}, {
key: "alignDecimal",
value: function(n) {
var r = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n, "0"));
return BigInt(r);
}
}, {
key: "negate",
value: function() {
var n = new e(this.toString());
return n.negative = !n.negative, n;
}
}, {
key: "cal",
value: function(n, r, i) {
var a = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), o = this.alignDecimal(a), l = n.alignDecimal(a), c = r(o, l).toString(), u = i(a), f = yi(c), d = f.negativeStr, m = f.trimStr, h = "".concat(d).concat(m.padStart(u + 1, "0"));
return new e("".concat(h.slice(0, -u), ".").concat(h.slice(-u)));
}
}, {
key: "add",
value: function(n) {
if (this.isInvalidate())
return new e(n);
var r = new e(n);
return r.isInvalidate() ? this : this.cal(r, function(i, a) {
return i + a;
}, function(i) {
return i;
});
}
}, {
key: "multi",
value: function(n) {
var r = new e(n);
return this.isInvalidate() || r.isInvalidate() ? new e(NaN) : this.cal(r, function(i, a) {
return i * a;
}, function(i) {
return i * 2;
});
}
}, {
key: "isEmpty",
value: function() {
return this.empty;
}
}, {
key: "isNaN",
value: function() {
return this.nan;
}
}, {
key: "isInvalidate",
value: function() {
return this.isEmpty() || this.isNaN();
}
}, {
key: "equals",
value: function(n) {
return this.toString() === (n == null ? void 0 : n.toString());
}
}, {
key: "lessEquals",
value: function(n) {
return this.add(n.negate().toString()).toNumber() <= 0;
}
}, {
key: "toNumber",
value: function() {
return this.isNaN() ? NaN : Number(this.toString());
}
}, {
key: "toString",
value: function() {
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
return n ? this.isInvalidate() ? "" : yi("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr : this.origin;
}
}]), e;
}(), L9 = /* @__PURE__ */ function() {
function e(t) {
if (er(this, e), he(this, "origin", ""), he(this, "number", void 0), he(this, "empty", void 0), wm(t)) {
this.empty = !0;
return;
}
this.origin = String(t), this.number = Number(t);
}
return tr(e, [{
key: "negate",
value: function() {
return new e(-this.toNumber());
}
}, {
key: "add",
value: function(n) {
if (this.isInvalidate())
return new e(n);
var r = Number(n);
if (Number.isNaN(r))
return this;
var i = this.number + r;
if (i > Number.MAX_SAFE_INTEGER)
return new e(Number.MAX_SAFE_INTEGER);
if (i < Number.MIN_SAFE_INTEGER)
return new e(Number.MIN_SAFE_INTEGER);
var a = Math.max(ui(this.number), ui(r));
return new e(i.toFixed(a));
}
}, {
key: "multi",
value: function(n) {
var r = Number(n);
if (this.isInvalidate() || Number.isNaN(r))
return new e(NaN);
var i = this.number * r;
if (i > Number.MAX_SAFE_INTEGER)
return new e(Number.MAX_SAFE_INTEGER);
if (i < Number.MIN_SAFE_INTEGER)
return new e(Number.MIN_SAFE_INTEGER);
var a = Math.max(ui(this.number), ui(r));
return new e(i.toFixed(a));
}
}, {
key: "isEmpty",
value: function() {
return this.empty;
}
}, {
key: "isNaN",
value: function() {
return Number.isNaN(this.number);
}
}, {
key: "isInvalidate",
value: function() {
return this.isEmpty() || this.isNaN();
}
}, {
key: "equals",
value: function(n) {
return this.toNumber() === (n == null ? void 0 : n.toNumber());
}
}, {
key: "lessEquals",
value: function(n) {
return this.add(n.negate().toString()).toNumber() <= 0;
}
}, {
key: "toNumber",
value: function() {
return this.number;
}
}, {
key: "toString",
value: function() {
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
return n ? this.isInvalidate() ? "" : Cm(this.number) : this.origin;
}
}]), e;
}();
function Je(e) {
return ul() ? new I9(e) : new L9(e);
}
function Nc(e, t, n) {
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
if (e === "")
return "";
var i = yi(e), a = i.negativeStr, o = i.integerStr, l = i.decimalStr, c = "".concat(t).concat(l), u = "".concat(a).concat(o);
if (n >= 0) {
var f = Number(l[n]);
if (f >= 5 && !r) {
var d = Je(e).add("".concat(a, "0.").concat("0".repeat(n)).concat(10 - f));
return Nc(d.toString(), t, n, r);
}
return n === 0 ? u : "".concat(u).concat(t).concat(l.padEnd(n, "0").slice(0, n));
}
return c === ".0" ? u : "".concat(u).concat(c);
}
const D9 = (e) => U(e, s.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, s.createElement("g", {
fill: "currentColor",
fillRule: "evenodd"
}, s.createElement("rect", {
x: 10,
width: 4,
height: 24,
rx: 2
}), s.createElement("rect", {
y: 4,
width: 4,
height: 16,
rx: 2
}), s.createElement("rect", {
x: 20,
y: 4,
width: 4,
height: 16,
rx: 2
})))), ds = "adm-slider", V9 = (e) => {
const {
value: t,
min: n,
max: r,
disabled: i,
icon: a,
residentPopover: o,
onDrag: l
} = e, c = W(t), {
locale: u
} = fe(), f = () => ({
left: `${(t - n) / (r - n) * 100}%`,
right: "auto"
}), [d, m] = Q(!1), h = Bt((g) => {
var v;
if (i)
return;
g.first && (c.current = t);
const w = g.xy[0] - g.initial[0], p = (v = e.trackRef.current) === null || v === void 0 ? void 0 : v.offsetWidth;
if (!p)
return;
const y = w / Math.ceil(p) * (r - n);
l(c.current + y, g.first, g.last), m(!g.last);
}, {
axis: "x",
pointer: {
touch: !0
}
}), E = typeof e.popover == "function" ? e.popover : e.popover ? (g) => g.toString() : null, b = s.createElement("div", {
className: `${ds}-thumb`
}, a || s.createElement(D9, {
className: `${ds}-thumb-icon`
}));
return s.createElement("div", Object.assign({
className: `${ds}-thumb-container`,
style: f()
}, h(), {
role: "slider",
"aria-label": e["aria-label"] || u.Slider.name,
"aria-valuemax": r,
"aria-valuemin": n,
"aria-valuenow": t,
"aria-disabled": i
}), E ? s.createElement(U0, {
content: E(t),
placement: "top",
visible: o || d,
getContainer: null,
mode: "dark"
}, b) : b);
}, j9 = V9, ai = "adm-slider", B9 = {
min: 0,
max: 100,
step: 1,
ticks: !1,
range: !1,
disabled: !1,
popover: !1,
residentPopover: !1
}, EE = (e) => {
var t;
const n = Y(B9, e), {
min: r,
max: i,
disabled: a,
marks: o,
ticks: l,
step: c,
icon: u
} = n;
function f(N) {
return N.sort((T, P) => T - P);
}
function d(N) {
return n.range ? N : [n.min, N];
}
function m(N, T) {
const P = Je(N), S = Nc(P.toString(), ".", T);
return Je(S).toNumber();
}
function h(N) {
const T = Math.max(E(c), E(N[0]), E(N[1]));
return n.range ? N.map((P) => m(P, T)) : m(N[1], T);
}
function E(N) {
return (`${N}`.split(".")[1] || "").length;
}
function b(N) {
var T;
(T = n.onAfterChange) === null || T === void 0 || T.call(n, h(N));
}
let g = n.value;
n.range && typeof n.value == "number" && (g = [0, n.value]);
const [v, w] = ue({
value: g,
defaultValue: (t = n.defaultValue) !== null && t !== void 0 ? t : n.range ? [r, r] : r,
onChange: n.onChange
}), p = f(d(v));
function y(N) {
const T = f(N), P = p;
T[0] === P[0] && T[1] === P[1] || w(h(T));
}
const C = W(null), x = `${100 * (p[1] - p[0]) / (i - r)}%`, k = `${100 * (p[0] - r) / (i - r)}%`, _ = de(() => {
if (o)
return Object.keys(o).map(parseFloat).sort((N, T) => N - T);
if (l) {
const N = [];
for (let T = Je(r); T.lessEquals(Je(i)); T = T.add(c))
N.push(T.toNumber());
return N;
}
return [];
}, [o, l, c, r, i]);
function R(N) {
const T = N < r ? r : N > i ? i : N;
let P = r;
if (_.length)
P = ic(_, T);
else {
const S = Math.round((T - r) / c), I = Je(S).multi(c);
P = Je(r).add(I.toString()).toNumber();
}
return P;
}
const O = W(0), V = (N) => {
if (O.current > 0 || (N.stopPropagation(), a))
return;
const T = C.current;
if (!T)
return;
const P = T.getBoundingClientRect().left, S = (N.clientX - P) / Math.ceil(T.offsetWidth) * (i - r) + r, I = R(S);
let $;
n.range ? Math.abs(I - p[0]) > Math.abs(I - p[1]) ? $ = [p[0], I] : $ = [I, p[1]] : $ = [n.min, I], y($), b($);
}, A = W(), M = (N) => s.createElement(j9, {
key: N,
value: p[N],
min: r,
max: i,
disabled: a,
trackRef: C,
icon: u,
popover: n.popover,
residentPopover: n.residentPopover,
onDrag: (T, P, S) => {
P && (O.current += 1, A.current = p);
const I = R(T), $ = A.current;
if (!$)
return;
const F = [...$];
F[N] = I, y(F), S && (b(F), window.setTimeout(() => {
O.current -= 1;
}, 100));
},
"aria-label": n["aria-label"]
});
return U(n, s.createElement("div", {
className: Z(ai, {
[`${ai}-disabled`]: a
})
}, s.createElement("div", {
className: `${ai}-track-container`,
onClick: V
}, s.createElement("div", {
className: `${ai}-track`,
onClick: V,
ref: C
}, s.createElement("div", {
className: `${ai}-fill`,
style: {
width: x,
left: k
}
}), n.ticks && s.createElement(M9, {
points: _,
min: r,
max: i,
lowerBound: p[0],
upperBound: p[1]
}), n.range && M(0), M(1))), o && s.createElement(T9, {
min: r,
max: i,
marks: o,
lowerBound: p[0],
upperBound: p[1]
})));
}, pr = "adm-stepper", W9 = {
step: 1,
disabled: !1,
allowEmpty: !1
};
function Z9(e, t) {
const n = Y(W9, e), {
defaultValue: r = 0,
value: i,
onChange: a,
disabled: o,
step: l,
max: c,
min: u,
inputReadOnly: f,
digits: d,
stringMode: m,
formatter: h,
parser: E
} = n, {
locale: b
} = fe();
$e(t, () => ({
focus: () => {
var $;
($ = A.current) === null || $ === void 0 || $.focus();
},
blur: () => {
var $;
($ = A.current) === null || $ === void 0 || $.blur();
},
get nativeElement() {
var $, F;
return (F = ($ = A.current) === null || $ === void 0 ? void 0 : $.nativeElement) !== null && F !== void 0 ? F : null;
}
}));
const g = ($) => (d !== void 0 ? Nc($.toString(), ".", d) : $).toString(), v = ($) => m ? $.toString() : $.toNumber(), w = ($) => {
if ($ === "")
return null;
if (E)
return String(E($));
const F = Je($);
return F.isInvalidate() ? null : F.toString();
}, p = ($) => $ === null ? "" : h ? h($) : g($), [y, C] = x1(r, {
value: i,
onChange: ($) => {
a == null || a($);
}
}), [x, k] = Q(() => p(y));
function _($) {
if ($.isNaN())
return;
let F = $;
if (u !== void 0) {
const L = Je(u);
F.lessEquals(L) && (F = L);
}
if (c !== void 0) {
const L = Je(c);
L.lessEquals(F) && (F = L);
}
d !== void 0 && (F = Je(g(v(F)))), C(v(F));
}
const R = ($) => {
k($);
const F = w($);
F === null ? n.allowEmpty ? C(null) : C(r) : _(Je(F));
}, [O, V] = Q(!1), A = s.useRef(null);
function M($) {
V($), $ && k(y != null ? String(y) : "");
}
J(() => {
var $, F, L;
O && ((L = (F = ($ = A.current) === null || $ === void 0 ? void 0 : $.nativeElement) === null || F === void 0 ? void 0 : F.select) === null || L === void 0 || L.call(F));
}, [O]), J(() => {
O || k(p(y));
}, [O, y, d]);
const N = ($) => {
let F = Je(l);
$ || (F = F.negate()), _(Je(y ?? 0).add(F.toString()));
}, T = () => {
N(!1);
}, P = () => {
N(!0);
}, S = () => o ? !0 : y === null ? !1 : u !== void 0 ? y <= u : !1, I = () => o ? !0 : y === null ? !1 : c !== void 0 ? y >= c : !1;
return U(n, s.createElement("div", {
className: Z(pr, {
[`${pr}-active`]: O
})
}, s.createElement(Kt, {
className: `${pr}-minus`,
onClick: T,
disabled: S(),
fill: "none",
shape: "rectangular",
color: "primary",
"aria-label": b.Stepper.decrease
}, s.createElement(kp, null)), s.createElement("div", {
className: `${pr}-middle`
}, s.createElement(im, {
ref: A,
className: `${pr}-input`,
onFocus: ($) => {
var F;
M(!0), (F = n.onFocus) === null || F === void 0 || F.call(n, $);
},
value: x,
onChange: ($) => {
o || R($);
},
disabled: o,
onBlur: ($) => {
var F;
M(!1), (F = n.onBlur) === null || F === void 0 || F.call(n, $);
},
readOnly: f,
role: "spinbutton",
"aria-valuenow": Number(x),
"aria-valuemax": Number(c),
"aria-valuemin": Number(u),
inputMode: "decimal"
})), s.createElement(Kt, {
className: `${pr}-plus`,
onClick: P,
disabled: I(),
fill: "none",
shape: "rectangular",
color: "primary",
"aria-label": b.Stepper.increase
}, s.createElement(Ld, null))));
}
const wE = we(Z9), Mn = "adm-step", q9 = (e) => {
const {
title: t,
description: n,
icon: r,
status: i = "wait"
} = e;
return U(e, s.createElement("div", {
className: Z(`${Mn}`, `${Mn}-status-${i}`)
}, s.createElement("div", {
className: `${Mn}-indicator`
}, s.createElement("div", {
className: `${Mn}-icon-container`
}, r)), s.createElement("div", {
className: `${Mn}-content`
}, s.createElement("div", {
className: `${Mn}-title`
}, t), !!n && s.createElement("div", {
className: `${Mn}-description`
}, n))));
}, Df = "adm-steps", H9 = "adm-step", U9 = s.createElement("span", {
className: `${H9}-icon-dot`
}), z9 = {
current: 0,
direction: "horizontal"
}, K9 = (e) => {
const t = Y(z9, e), {
direction: n,
current: r
} = t, i = Z(Df, `${Df}-${n}`);
return U(t, s.createElement("div", {
className: i
}, s.Children.map(t.children, (a, o) => {
var l;
if (!s.isValidElement(a))
return a;
const c = a.props;
let u = c.status || "wait";
o < r ? u = c.status || "finish" : o === r && (u = c.status || "process");
const f = (l = c.icon) !== null && l !== void 0 ? l : U9;
return s.cloneElement(a, {
status: u,
icon: f
});
})));
}, CE = ge(K9, {
Step: q9
}), sn = "adm-swipe-action", Y9 = {
rightActions: [],
leftActions: [],
closeOnTouchOutside: !0,
closeOnAction: !0,
stopPropagation: []
}, xE = we((e, t) => {
const n = Y(Y9, e), r = W(null), i = W(null), a = W(null);
function o(w) {
const p = w.current;
return p ? p.offsetWidth : 0;
}
function l() {
return o(i);
}
function c() {
return o(a);
}
const [{
x: u
}, f] = Ve(() => ({
x: 0,
config: {
tension: 200,
friction: 30
}
}), []), d = W(!1), m = W(null);
function h() {
var w;
(w = m.current) === null || w === void 0 || w.call(m), d.current = !1;
}
function E(w) {
var p;
w === "right" ? f.start({
x: -c()
}) : f.start({
x: l()
}), (p = e.onActionsReveal) === null || p === void 0 || p.call(e, w);
}
const b = Bt((w) => {
var p;
if (m.current = w.cancel, !w.intentional || (w.down && (d.current = !0), !d.current))
return;
const [y] = w.offset;
if (w.last) {
const C = l(), x = c();
let k = y + w.velocity[0] * w.direction[0] * 50;
y > 0 ? k = Math.max(0, k) : y < 0 ? k = Math.min(0, k) : k = 0;
const _ = ic([-x, 0, C], k);
f.start({
x: _
}), _ !== 0 && ((p = e.onActionsReveal) === null || p === void 0 || p.call(e, _ > 0 ? "left" : "right")), window.setTimeout(() => {
d.current = !1;
});
} else
f.start({
x: y,
immediate: !0
});
}, {
from: () => [u.get(), 0],
bounds: () => {
const w = l();
return {
left: -c(),
right: w
};
},
axis: "x",
preventScroll: !0,
pointer: {
touch: !0
},
triggerAllEvents: !0
}), g = () => {
var w;
f.start({
x: 0
}), h(), (w = n.onClose) === null || w === void 0 || w.call(n);
};
$e(t, () => ({
show: (w = "right") => {
E(w);
},
close: g
})), J(() => {
if (!n.closeOnTouchOutside)
return;
const w = r.current;
if (!w)
return;
function p(C) {
u.goal !== 0 && (w != null && w.contains(C.target) || g());
}
function y(C) {
u.goal !== 0 && (w != null && w.contains(C.relatedTarget) || g());
}
return document.addEventListener("touchstart", p), w.addEventListener("focusout", y), () => {
document.removeEventListener("touchstart", p), w.removeEventListener("focusout", y);
};
}, [n.closeOnTouchOutside, n.onClose]);
function v(w) {
var p, y;
const C = (p = w.color) !== null && p !== void 0 ? p : "light";
return s.createElement(Kt, {
key: w.key,
className: `${sn}-action-button`,
style: {
"--background-color": (y = G9[C]) !== null && y !== void 0 ? y : C
},
onClick: (x) => {
var k, _;
n.closeOnAction && g(), (k = w.onClick) === null || k === void 0 || k.call(w, x), (_ = n.onAction) === null || _ === void 0 || _.call(n, w, x);
}
}, w.text);
}
return U(n, s.createElement("div", Object.assign({
className: sn
}, b(), {
ref: r,
onClickCapture: (w) => {
d.current && (w.stopPropagation(), w.preventDefault());
}
}), s.createElement(xe.div, {
className: `${sn}-track`,
style: {
x: u
}
}, vn(n.stopPropagation, s.createElement("div", {
className: `${sn}-actions ${sn}-actions-left`,
ref: i,
onFocus: () => {
u.goal !== l() && E("left");
}
}, n.leftActions.map(v))), s.createElement("div", {
className: `${sn}-content`,
onClickCapture: (w) => {
u.goal !== 0 && (w.preventDefault(), w.stopPropagation(), g());
}
}, s.createElement(xe.div, {
style: {
pointerEvents: u.to((w) => w !== 0 && u.goal !== 0 ? "none" : "auto")
}
}, n.children)), vn(n.stopPropagation, s.createElement("div", {
className: `${sn}-actions ${sn}-actions-right`,
ref: a,
onFocus: () => {
u.goal !== -c() && E("right");
}
}, n.rightActions.map(v))))));
}), G9 = {
light: "var(--adm-color-light)",
weak: "var(--adm-color-weak)",
primary: "var(--adm-color-primary)",
success: "var(--adm-color-success)",
warning: "var(--adm-color-warning)",
danger: "var(--adm-color-danger)"
};
var km = {}, $m = xn.default;
Object.defineProperty(km, "__esModule", {
value: !0
});
var X9 = km.default = fl, Q9 = $m(Bo), J9 = $m(s);
function fl(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [];
return J9.default.Children.forEach(e, function(r) {
r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(fl(r)) : (0, Q9.default)(r) && r.props ? n = n.concat(fl(r.props.children, t)) : n.push(r));
}), n;
}
function eb(e) {
const [t, n] = Q(e), r = W(t);
return J(() => {
r.current = t;
}, [t]), [t, n, r];
}
function tb(e, t) {
const n = Object.keys(e), r = Object.keys(t), i = /* @__PURE__ */ new Set([...n, ...r]), a = {};
return i.forEach((o) => {
const l = e[o], c = t[o];
typeof l == "function" && typeof c == "function" ? a[o] = function(...u) {
l(...u), c(...u);
} : a[o] = l || c;
}), a;
}
const _m = (e) => U(e, s.createElement("div", {
className: "adm-swiper-item",
onClick: e.onClick
}, e.children)), Mt = "adm-swiper", nb = {
mousedown: "onMouseDown",
mousemove: "onMouseMove",
mouseup: "onMouseUp"
}, rb = {
defaultIndex: 0,
allowTouchMove: !0,
autoplay: !1,
autoplayInterval: 3e3,
loop: !1,
direction: "horizontal",
slideSize: 100,
trackOffset: 0,
stuckAtBoundary: !0,
rubberband: !0,
stopPropagation: []
};
let xa;
const ib = we(Wl((e, t) => {
const n = Y(rb, e), {
direction: r,
total: i,
children: a,
indicator: o
} = n, [l] = Q({}), c = W(null), u = r === "vertical", f = Math.max(n.slideSize, 1) / 100, d = n.trackOffset / 100, {
validChildren: m,
count: h,
renderChildren: E
} = de(() => {
let g = 0, v, w;
return typeof a == "function" ? v = a : w = X9(a).filter((y) => s.isValidElement(y) ? y.type !== _m ? !1 : (g++, !0) : null), {
renderChildren: v,
validChildren: w,
count: g
};
}, [a]), b = i ?? h;
return b === 0 || !m && !E ? null : () => {
let g = n.loop;
f * (b - 1) < 1 && (g = !1);
const v = W(null);
function w() {
const z = v.current;
return z ? (u ? z.offsetHeight : z.offsetWidth) * n.slideSize / 100 : 0;
}
const [p, y, C] = av(n.defaultIndex), [x, k, _] = eb(!1);
function R(z) {
let ne = 0, G = b - 1;
return n.stuckAtBoundary && (ne += d / f, G -= (1 - f - d) / f), Re(z, ne, G);
}
const [{
position: O
}, V] = Ve(() => ({
position: R(p) * 100,
config: {
tension: 200,
friction: 30
},
onRest: () => {
if (_.current || !g)
return;
const z = O.get(), ne = 100 * b, G = Ma(z, ne);
G !== z && V.start({
position: G,
immediate: !0
});
}
}), [b]), A = W(null);
function M() {
var z;
(z = A.current) === null || z === void 0 || z.call(A), _.current = !1;
}
const N = Bt((z) => {
if (A.current = z.cancel, !z.intentional || (z.first && !xa && (xa = l), xa !== l))
return;
xa = z.last ? void 0 : l;
const ne = w();
if (!ne)
return;
const G = u ? 1 : 0, pe = z.offset[G], le = z.direction[G], oe = z.velocity[G];
if (k(!0), !z.last)
V.start({
position: pe * 100 / ne,
immediate: !0
});
else {
const Ye = Math.floor(pe / ne), Ne = Ye + 1, je = Math.round((pe + oe * 2e3 * le) / ne);
T(Re(je, Ye, Ne), "swipe", !1), window.setTimeout(() => {
k(!1);
});
}
}, {
transform: ([z, ne]) => [-z, -ne],
from: () => {
const z = w();
return [O.get() / 100 * z, O.get() / 100 * z];
},
triggerAllEvents: !0,
bounds: () => {
if (g)
return {};
const z = w(), ne = R(0) * z, G = R(b - 1) * z;
return u ? {
top: ne,
bottom: G
} : {
left: ne,
right: G
};
},
rubberband: n.rubberband,
axis: u ? "y" : "x",
preventScroll: !u,
pointer: {
touch: !0
}
});
function T(z, ne = "swipe", G = !1) {
var pe;
const le = Math.round(z), oe = g ? Ma(le, b) : Re(le, 0, b - 1);
oe !== C() && ((pe = n.onIndexChange) === null || pe === void 0 || pe.call(n, oe, {
source: ne
})), y(oe), g ? V.start({
position: ab(O.get(), le, b),
immediate: G
}) : V.start({
position: R(le) * 100,
immediate: G
});
}
function P(z = "swipe") {
T(Math.round(O.get() / 100) + 1, z, !1);
}
function S(z = "swipe") {
T(Math.round(O.get() / 100) - 1, z, !1);
}
$e(t, () => ({
swipeTo: (z) => T(z, "swipe", !1),
swipeNext: P,
swipePrev: S
})), De(() => {
const z = b - 1;
p > z && T(z, "resize", !0);
});
const {
autoplay: I,
autoplayInterval: $
} = n, F = () => {
c.current = window.setTimeout(() => {
I === "reverse" ? S("auto") : P("auto"), F();
}, $);
};
J(() => {
if (!(!I || x))
return F(), () => {
c.current && window.clearTimeout(c.current);
};
}, [I, $, x, b]);
function L(z, ne, G) {
let pe = {};
if (g) {
const le = b * 100, oe = Math.min(le / 2, (d / f + 1) * 100);
pe = {
[u ? "y" : "x"]: O.to((Ye) => {
let Ne = -Ye + z * 100;
return Ne = Ma(Ne + oe, le) - oe, `${Ne}%`;
}),
[u ? "top" : "left"]: `-${z * 100}%`
};
}
return s.createElement(xe.div, {
className: Z(`${Mt}-slide`, {
[`${Mt}-slide-active`]: p === z
}),
style: pe,
key: G ?? z
}, ne);
}
const B = () => {
if (E && i) {
const ne = Math.max(p - 2, 0), G = Math.min(p + 2, i - 1), pe = [];
for (let le = ne; le <= G; le += 1)
pe.push(L(le, E(le)));
return s.createElement(s.Fragment, null, s.createElement("div", {
className: `${Mt}-slide-placeholder`,
style: {
[u ? "height" : "width"]: `${ne * 100}%`
}
}), pe);
}
return m ? m.map((z, ne) => {
var G;
return L(ne, z, (G = z == null ? void 0 : z.key) !== null && G !== void 0 ? G : ne);
}) : null;
};
function j() {
return B();
}
function q() {
return g ? s.createElement("div", {
className: `${Mt}-track-inner`
}, j()) : s.createElement(xe.div, {
className: `${Mt}-track-inner`,
style: {
[u ? "y" : "x"]: O.to((z) => `${-z}%`)
}
}, j());
}
const H = {
"--slide-size": `${n.slideSize}%`,
"--track-offset": `${n.trackOffset}%`
}, X = Object.assign({}, n.allowTouchMove ? N() : {}), te = {};
for (const z of n.stopPropagation) {
const ne = nb[z];
te[ne] = function(G) {
G.stopPropagation();
};
}
const ae = tb(X, te);
let re = null;
return typeof o == "function" ? re = o(b, p) : o !== !1 && (re = s.createElement("div", {
className: `${Mt}-indicator`
}, s.createElement(I8, Object.assign({}, n.indicatorProps, {
total: b,
current: p,
direction: r
})))), U(n, s.createElement("div", {
className: Z(Mt, `${Mt}-${r}`),
style: H
}, s.createElement("div", Object.assign({
ref: v,
className: Z(`${Mt}-track`, {
[`${Mt}-track-allow-touch-move`]: n.allowTouchMove
}),
onClickCapture: (z) => {
_.current && z.stopPropagation(), M();
}
}, ae), q()), re));
};
}));
function Ma(e, t) {
const n = e % t;
return n < 0 ? n + t : n;
}
function ab(e, t, n) {
const r = 100 * n;
let i = Ma(t * 100 - e, r);
return i > r / 2 && (i -= r), e + i;
}
const kE = ge(ib, {
Item: _m
}), ob = Ke((e) => U(e, s.createElement("svg", {
width: "28px",
height: "28px",
viewBox: "0 0 28 28"
}, s.createElement("g", {
stroke: "none",
strokeWidth: "1",
fill: "none",
fillRule: "evenodd"
}, s.createElement("g", {
transform: "translate(-137.000000, -840.000000)",
fill: "#1576FE"
}, s.createElement("g", {
transform: "translate(80.000000, 823.000000)"
}, s.createElement("g", {
transform: "translate(53.000000, 13.000000)"
}, s.createElement("path", {
d: "M17.9996753,31.5 C10.5556724,31.5 4.5,25.4443275 4.5,18.0003247 C4.5,10.5563219 10.5556724,4.5 17.9996753,4.5 C18.5355492,4.5 18.9702974,4.93474816 18.9702974,5.47062208 C18.9702974,6.006496 18.5355492,6.44124416 17.9996753,6.44124416 C11.6261524,6.44124416 6.44124416,11.6267709 6.44124416,18.0002938 C6.44124416,24.3738167 11.6261524,29.5587249 17.9996753,29.5587249 C24.3731982,29.5587249 29.5587249,24.3738167 29.5587249,18.0002938 C29.5587249,14.7964616 28.2778291,11.8169616 25.9523687,9.61220279 C25.5637302,9.24317094 25.5473089,8.62893223 25.9157222,8.23967523 C26.2841356,7.84976878 26.8989928,7.83461537 27.2882498,8.20302872 C30.0042351,10.7787368 31.5,14.2580826 31.5,18.0002938 C31.5,25.4443275 25.4436781,31.5 17.9996753,31.5 Z"
})))))))), An = "adm-switch", sb = {
defaultChecked: !1
}, $E = (e) => {
const t = Y(sb, e), n = t.disabled || t.loading || !1, [r, i] = Q(!1), {
locale: a
} = fe(), [o, l] = ue({
value: t.checked,
defaultValue: t.defaultChecked,
onChange: t.onChange
});
function c() {
return Te(this, void 0, void 0, function* () {
if (n || t.loading || r)
return;
const u = !o;
if (t.beforeChange) {
i(!0);
try {
yield t.beforeChange(u), i(!1);
} catch (d) {
throw i(!1), d;
}
}
const f = l(u);
if (g1(f)) {
i(!0);
try {
yield f, i(!1);
} catch (d) {
throw i(!1), d;
}
}
});
}
return U(t, s.createElement("div", {
onClick: c,
className: Z(An, {
[`${An}-checked`]: o,
[`${An}-disabled`]: n || r
}),
role: "switch",
"aria-label": a.Switch.name,
"aria-checked": o,
"aria-disabled": n
}, s.createElement("div", {
className: `${An}-checkbox`
}, s.createElement("div", {
className: `${An}-handle`
}, (t.loading || r) && s.createElement(ob, {
className: `${An}-spin-icon`
})), s.createElement("div", {
className: `${An}-inner`
}, o ? t.checkedText : t.uncheckedText))));
}, lb = () => null, qt = "adm-tab-bar", cb = {
safeArea: !1
}, ub = (e) => {
var t;
const n = Y(cb, e);
let r = null;
const i = [];
kn(n.children, (l, c) => {
if (!En(l))
return;
const u = l.key;
typeof u == "string" && (c === 0 && (r = u), i.push(l));
});
const [a, o] = ue({
value: n.activeKey,
defaultValue: (t = n.defaultActiveKey) !== null && t !== void 0 ? t : r,
onChange: (l) => {
var c;
l !== null && ((c = n.onChange) === null || c === void 0 || c.call(n, l));
}
});
return U(n, s.createElement("div", {
className: qt
}, s.createElement("div", {
className: `${qt}-wrap`
}, i.map((l) => {
const c = l.key === a;
function u() {
const f = l.props.icon && s.createElement("div", {
className: `${qt}-item-icon`
}, typeof l.props.icon == "function" ? l.props.icon(c) : l.props.icon), d = l.props.title && s.createElement("div", {
className: Z(`${qt}-item-title`, !!f && `${qt}-item-title-with-icon`)
}, typeof l.props.title == "function" ? l.props.title(c) : l.props.title);
return f ? s.createElement(s.Fragment, null, s.createElement(Ps, {
content: l.props.badge,
className: `${qt}-icon-badge`
}, f), d) : d ? s.createElement(Ps, {
content: l.props.badge,
className: `${qt}-title-badge`
}, d) : null;
}
return U(l.props, s.createElement("div", {
key: l.key,
onClick: () => {
var f, d;
const {
key: m
} = l;
m != null && (o(m.toString()), (d = (f = l.props).onClick) === null || d === void 0 || d.call(f));
},
className: Z(`${qt}-item`, {
[`${qt}-item-active`]: c
})
}, u()));
})), n.safeArea && s.createElement(Wr, {
position: "bottom"
})));
}, _E = ge(ub, {
Item: lb
}), Vf = "adm-tag", fb = {
default: "var(--adm-color-text-secondary, #666666)",
primary: "var(--adm-color-primary, #1677ff)",
success: "var(--adm-color-success, #00b578)",
warning: "var(--adm-color-warning, #ff8f1f)",
danger: "var(--adm-color-danger, #ff3141)"
}, db = {
color: "default",
fill: "solid",
round: !1
}, SE = (e) => {
var t;
const n = Y(db, e), r = (t = fb[n.color]) !== null && t !== void 0 ? t : n.color, i = {
"--border-color": r,
"--text-color": n.fill === "outline" ? r : "#ffffff",
"--background-color": n.fill === "outline" ? "transparent" : r
};
return U(n, s.createElement("span", {
style: i,
onClick: n.onClick,
className: Z(Vf, {
[`${Vf}-round`]: n.round
})
}, n.children));
}, oi = "adm-text-area", Sm = {
rows: 2,
showCount: !1,
autoSize: !1,
defaultValue: ""
}, mb = we((e, t) => {
const n = Y(Sm, e), {
autoSize: r,
showCount: i,
maxLength: a
} = n, [o, l] = ue(Object.assign(Object.assign({}, n), {
value: n.value === null ? "" : n.value
}));
n.value;
const c = W(null), u = W("auto"), f = W(null), d = rm({
onEnterPress: n.onEnterPress,
onKeyDown: n.onKeyDown
});
$e(t, () => ({
clear: () => {
l("");
},
focus: () => {
var g;
(g = c.current) === null || g === void 0 || g.focus();
},
blur: () => {
var g;
(g = c.current) === null || g === void 0 || g.blur();
},
get nativeElement() {
return c.current;
}
})), De(() => {
if (!r)
return;
const g = c.current, v = f.current;
if (!g || (g.style.height = u.current, !v))
return;
let w = v.scrollHeight;
if (typeof r == "object") {
const p = window.getComputedStyle(g), y = parseFloat(p.lineHeight);
r.minRows && (w = Math.max(w, r.minRows * y)), r.maxRows && (w = Math.min(w, r.maxRows * y));
}
u.current = `${w}px`, g.style.height = `${w}px`;
}, [o, r]);
const m = W(!1);
let h;
const E = Ra(o).length;
typeof i == "function" ? h = i(E, a) : i && (h = s.createElement("div", {
className: `${oi}-count`
}, a === void 0 ? E : E + "/" + a));
let b = n.rows;
return typeof r == "object" && (r.maxRows && b > r.maxRows && (b = r.maxRows), r.minRows && b < r.minRows && (b = r.minRows)), U(n, s.createElement("div", {
className: oi
}, s.createElement("textarea", Object.assign({
ref: c,
className: `${oi}-element`,
rows: b,
value: o,
placeholder: n.placeholder,
onChange: (g) => {
let v = g.target.value;
a && !m.current && (v = Ra(v).slice(0, a).join("")), l(v);
},
id: n.id,
onCompositionStart: (g) => {
var v;
m.current = !0, (v = n.onCompositionStart) === null || v === void 0 || v.call(n, g);
},
onCompositionEnd: (g) => {
var v;
if (m.current = !1, a) {
const w = g.target.value;
l(Ra(w).slice(0, a).join(""));
}
(v = n.onCompositionEnd) === null || v === void 0 || v.call(n, g);
},
autoComplete: n.autoComplete,
autoFocus: n.autoFocus,
disabled: n.disabled,
readOnly: n.readOnly,
name: n.name,
onFocus: n.onFocus,
onBlur: n.onBlur,
onClick: n.onClick,
onKeyDown: d
}, {
enterKeyHint: n.enterKeyHint
})), h, r && s.createElement("textarea", {
ref: f,
className: `${oi}-element ${oi}-element-hidden`,
value: o,
rows: b,
"aria-hidden": !0,
readOnly: !0
})));
});
mb.defaultProps = Sm;
const Ht = "adm-toast", hb = {
maskClickable: !0,
stopPropagation: ["click"]
}, vb = (e) => {
const t = Y(hb, e), {
maskClickable: n,
content: r,
icon: i,
position: a
} = t, o = de(() => {
if (i == null)
return null;
switch (i) {
case "success":
return s.createElement(Dd, {
className: `${Ht}-icon-success`
});
case "fail":
return s.createElement(bo, {
className: `${Ht}-icon-fail`
});
case "loading":
return s.createElement(Yl, {
color: "white",
className: `${Ht}-loading`
});
default:
return i;
}
}, [i]), l = de(() => {
switch (a) {
case "top":
return "20%";
case "bottom":
return "80%";
default:
return "50%";
}
}, [a]);
return s.createElement(ji, {
visible: t.visible,
destroyOnClose: !0,
opacity: 0,
disableBodyScroll: !n,
getContainer: t.getContainer,
afterClose: t.afterClose,
style: Object.assign({
pointerEvents: n ? "none" : "auto"
}, t.maskStyle),
className: Z(`${Ht}-mask`, t.maskClassName),
stopPropagation: t.stopPropagation
}, s.createElement("div", {
className: Z(`${Ht}-wrap`)
}, s.createElement("div", {
style: {
top: l
},
className: Z(`${Ht}-main`, i ? `${Ht}-main-icon` : `${Ht}-main-text`)
}, o && s.createElement("div", {
className: `${Ht}-icon`
}, o), s.createElement(_i, null, r))));
};
let nt = null, ms = null;
const Aa = {
duration: 2e3,
position: "center",
maskClickable: !0
}, pb = (e) => s.createElement(vb, Object.assign({}, e));
function gb(e) {
var t;
const n = Y(Aa, typeof e == "string" ? {
content: e
} : e), r = s.createElement(pb, Object.assign({}, n, {
onClose: () => {
nt = null;
}
}));
return nt ? !((t = nt.isRendered) === null || t === void 0) && t.call(nt) ? nt.replace(r) : (nt.close(), nt = Yn(r)) : nt = Yn(r), ms && window.clearTimeout(ms), n.duration !== 0 && (ms = window.setTimeout(() => {
Om();
}, n.duration)), nt;
}
function Om() {
nt == null || nt.close(), nt = null;
}
function yb(e) {
e.duration !== void 0 && (Aa.duration = e.duration), e.position !== void 0 && (Aa.position = e.position), e.maskClickable !== void 0 && (Aa.maskClickable = e.maskClickable);
}
const bb = {
show: gb,
clear: Om,
config: yb
}, OE = bb;
function Fm(e, t = "children") {
const n = (r) => {
let i = 0;
return r.forEach((a) => {
a[t] ? i = Math.max(i, n(a[t]) + 1) : i = Math.max(i, 1);
}), i;
};
return n(e);
}
const ka = "adm-tree-select", Eb = {
options: [],
fieldNames: {},
defaultValue: []
}, wb = (e) => {
const t = Y(Eb, e), [n, r, i] = Yi(t.fieldNames), [a, o] = ue({
value: t.value,
defaultValue: t.defaultValue
}), [l, c, u] = de(() => {
const h = Fm(t.options, i), E = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
function g(v, w) {
w.forEach((p) => {
b.set(p[r], v), E.set(p[r], p), p[i] && g(p, p[i]);
});
}
return g(void 0, t.options), [h, E, b];
}, [t.options]), f = (h) => {
var E;
const b = [];
let g = h;
for (; g; )
b.push(g), g = u.get(g[r]);
const v = b.reverse().map((w) => w[r]);
o(v), (E = t.onChange) === null || E === void 0 || E.call(t, v, {
options: b
});
}, d = (h = [], E) => h.map((b) => {
const g = b[r] === a[E];
return s.createElement("div", {
key: b[r],
className: Z(`${ka}-item`, {
[`${ka}-item-active`]: g
}),
onClick: () => {
g || f(b);
}
}, b[n]);
}), m = () => {
var h;
const E = [];
for (let b = 0; b < l; b++) {
let g = `${100 / l}%`;
l === 2 && b === 0 && (g = "33.33%"), l === 2 && b === 1 && (g = "66.67%");
const v = s.createElement("div", {
key: b,
className: Z(`${ka}-column`),
style: {
width: g
}
}, d(b === 0 ? t.options : (h = c.get(a[b - 1])) === null || h === void 0 ? void 0 : h[i], b));
E.push(v);
}
return E;
};
return U(t, s.createElement("div", {
className: ka
}, m()));
}, ft = "adm-tree-select-multiple", Cb = (e) => {
const t = Y({
options: [],
fieldNames: {},
allSelectText: [],
defaultExpandKeys: [],
defaultValue: []
}, e);
J(() => {
}, []);
const [n, r, i] = Yi(t.fieldNames), [a, o] = ue({
value: t.expandKeys,
defaultValue: t.defaultExpandKeys
}), [l, c] = ue({
value: t.value,
defaultValue: t.defaultValue
}), u = (k) => {
const _ = [], R = (O) => {
var V;
O && (!((V = O[i]) === null || V === void 0) && V.length ? O[i].forEach((A) => R(A)) : _.push(O[r]));
};
return R(k), _;
}, [f, d, m] = de(() => {
const k = Fm(t.options, i), _ = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
function O(V, A) {
A.forEach((M) => {
R.set(M[r], V), _.set(M[r], M), M[i] && O(M, M[i]);
});
}
return O(void 0, t.options), [k, _, R];
}, [t.options]), h = de(() => {
let k = [];
return l.forEach((_) => {
const R = d.get(_);
k = k.concat(u(R));
}), k;
}, [l, d]), E = de(() => {
const k = /* @__PURE__ */ new Map(), _ = (R) => {
const O = m.get(R);
O && (k.set(O[r], !0), _(O[r]));
};
return h.forEach((R) => {
k.set(R, !0), _(R);
}), k;
}, [m, l]), b = (k) => {
var _;
let R = [...k], O = [];
const V = (M) => {
M.forEach((N) => {
var T;
if (O.includes(N))
return;
const P = m.get(N);
if (!P)
return;
const S = ((T = P[i]) === null || T === void 0 ? void 0 : T.map((I) => I[r])) || [];
S.every((I) => R.includes(I)) && (R.push(P[r]), O = O.concat(S));
});
};
for (let M = 0; M < f; M++)
V(R);
R = R.filter((M) => !O.includes(M));
const A = R.map((M) => d.get(M));
c(R), (_ = t.onChange) === null || _ === void 0 || _.call(t, R, A);
}, g = (k) => {
var _;
const R = [];
let O = k;
for (; O; )
R.unshift(O), O = m.get(O[r]);
const V = R.map((A) => A[r]);
o(V), (_ = t.onExpand) === null || _ === void 0 || _.call(t, V, R);
}, v = (k, _) => {
var R;
const O = (R = t.selectAllText) === null || R === void 0 ? void 0 : R[_];
if (!O)
return;
let V = [];
k.forEach((M) => {
V = V.concat(u(M));
});
const A = V.every((M) => h.includes(M));
return s.createElement("div", {
onClick: () => {
b(A ? h.filter((M) => !V.includes(M)) : h.concat(V));
},
className: `${ft}-item`
}, O);
}, w = (k, _) => {
var R;
const O = (R = t.selectAllText) === null || R === void 0 ? void 0 : R[_];
if (!O)
return;
const V = k.map((N) => N[r]), A = V.every((N) => h.includes(N)), M = A ? !1 : V.some((N) => h.includes(N));
return s.createElement("div", {
onClick: () => {
b(A ? h.filter((N) => !V.includes(N)) : h.concat(V));
},
className: Z(`${ft}-item`, `${ft}-item-leaf`)
}, s.createElement(Hu, {
className: `${ft}-item-checkbox`,
checked: A,
indeterminate: M
}), O);
}, p = (k) => {
const _ = a.includes(k[r]);
return s.createElement("div", {
key: k[r],
onClick: () => {
_ || g(k);
},
className: Z(`${ft}-item`, {
[`${ft}-item-expand`]: _
})
}, k[n], !!E.get(k[r]) && s.createElement("div", {
className: `${ft}-dot`
}));
}, y = (k) => {
const _ = h.includes(k[r]);
return s.createElement("div", {
key: k[r],
onClick: () => {
b(_ ? h.filter((R) => R !== k[r]) : [...h, k[r]]);
},
className: Z(`${ft}-item`, `${ft}-item-leaf`)
}, s.createElement(Hu, {
className: `${ft}-item-checkbox`,
checked: _
}), k[n]);
}, C = (k = [], _) => k.length === 0 ? void 0 : f === _ + 1 ? s.createElement(s.Fragment, null, w(k, _), k.map((O) => y(O))) : s.createElement(s.Fragment, null, v(k, _), k.map((O) => p(O))), x = () => {
var k;
const _ = [];
for (let R = 0; R < f; R++) {
let O = `${100 / f}%`;
f === 2 && R === 0 && (O = "33.33%"), f === 2 && R === 1 && (O = "66.67%");
const V = s.createElement("div", {
key: R,
className: Z(`${ft}-column`),
style: {
width: O
}
}, C(R === 0 ? t.options : (k = d.get(a[R - 1])) === null || k === void 0 ? void 0 : k[i], R));
_.push(V);
}
return _;
};
return U(t, s.createElement("div", {
className: ft
}, x()));
}, FE = ge(wb, {
Multiple: Cb
});
function xb(e, t, n = !1) {
const r = Si(e);
J(() => {
function i(a) {
!t.current || t.current.contains(a.target) || r(a);
}
return document.addEventListener("click", i, n), () => {
document.removeEventListener("click", i, n);
};
}, [t]);
}
const At = "adm-virtual-input", kb = {
defaultValue: "",
cursor: {
movable: !1
}
}, RE = we((e, t) => {
const {
locale: n,
input: r = {}
} = fe(), i = Y(kb, r, e), [a, o] = ue(i), l = W(null), c = W(null), [u, f] = Q(!1), [d, m] = Q(a.length), h = W({}), E = W(), b = W(null), g = W(0), v = W(null), [w, p] = Q(!1), y = W(), C = wn(s.createElement(Tl, null), r.clearIcon, e.clearIcon);
function x() {
const S = c.current;
S && (S.scrollLeft = S.clientWidth);
}
J(() => {
b.current && (g.current = b.current.getBoundingClientRect().width);
}, [a]), J(() => {
a === h.current.newValue ? h.current.mode === "input" ? m((S) => S + 1) : h.current.mode === "delete" && m((S) => S - 1) : m(a.length);
}, [a]), De(() => {
x();
}, [a]), J(() => {
u && x();
}, [u]), $e(t, () => ({
focus: () => {
var S;
(S = c.current) === null || S === void 0 || S.focus();
},
blur: () => {
var S;
(S = c.current) === null || S === void 0 || S.blur(), _();
}
}));
function k() {
var S;
u || (f(!0), (S = i.onFocus) === null || S === void 0 || S.call(i));
}
function _() {
var S;
u && (f(!1), (S = i.onBlur) === null || S === void 0 || S.call(i));
}
xb(() => {
_();
}, l, !!i.keyboard);
const R = i.keyboard, O = R && s.cloneElement(R, {
onInput: (S) => {
var I, $;
const F = a.substring(0, d) + S + a.substring(d);
h.current = {
newValue: F,
mode: "input"
}, o(F), ($ = (I = R.props).onInput) === null || $ === void 0 || $.call(I, S);
},
onDelete: () => {
var S, I;
if (d === 0)
return;
const $ = a.substring(0, d - 1) + a.substring(d);
h.current = {
newValue: $,
mode: "delete"
}, o($), (I = (S = R.props).onDelete) === null || I === void 0 || I.call(S);
},
visible: u,
onClose: () => {
var S, I, $;
document.activeElement === c.current && ((S = c.current) === null || S === void 0 || S.blur()), _(), ($ = (I = R.props).onClose) === null || $ === void 0 || $.call(I);
},
getContainer: null
}), V = (S) => {
var I, $, F;
i.disabled || (d !== a.length && (m(a.length), ($ = (I = i.cursor) === null || I === void 0 ? void 0 : I.onMove) === null || $ === void 0 || $.call(I, a.length)), (F = i.onClick) === null || F === void 0 || F.call(i, S), k());
}, A = (S) => (I) => {
var $, F, L;
if (i.disabled || !(!(($ = i.cursor) === null || $ === void 0) && $.movable))
return;
I.stopPropagation();
const B = I.target.getBoundingClientRect(), j = B.left + B.width / 2, X = I.clientX > j ? S + 1 : S;
m(X), (L = (F = i.cursor) === null || F === void 0 ? void 0 : F.onMove) === null || L === void 0 || L.call(F, X);
}, M = (S) => {
var I;
if (i.disabled || !(!((I = i.cursor) === null || I === void 0) && I.movable) || !v.current)
return;
const $ = S.touches[0], F = v.current.getBoundingClientRect();
Math.abs($.clientX - (F.left + F.width / 2)) < 20 ? E.current = {
startX: $.clientX,
startCaretPosition: d
} : E.current = null;
}, N = (S) => {
var I, $, F;
if (!E.current || !(!((I = i.cursor) === null || I === void 0) && I.movable))
return;
p(!0);
const B = S.touches[0].clientX - E.current.startX, j = g.current, q = Math.round(B / j);
let H = E.current.startCaretPosition + q;
H = Math.max(0, Math.min(H, a.length)), m(H), (F = ($ = i.cursor) === null || $ === void 0 ? void 0 : $.onMove) === null || F === void 0 || F.call($, H), y.current && clearTimeout(y.current), y.current = setTimeout(() => {
p(!1), y.current = null;
}, 500);
}, T = () => {
E.current = null, p(!1), y.current && (clearTimeout(y.current), y.current = null);
}, P = (a + "").split("");
return U(i, s.createElement("div", {
ref: l,
className: Z(At, {
[`${At}-disabled`]: i.disabled,
[`${At}-caret-dragging`]: w,
[`${At}-focused`]: u
})
}, s.createElement("div", {
className: `${At}-content`,
ref: c,
"aria-disabled": i.disabled,
"aria-label": a ? void 0 : i.placeholder,
role: "textbox",
tabIndex: i.disabled ? void 0 : 0,
// note: 这里增加 onFocus 有两个目的:
// 1. 在安卓 talkback 模式下,role=textbox 的元素双击后只会触发 focus 而非 click
// 2. 处理 content 框点击、单个字符点击时,不用再额外处理 focus 逻辑,因为 focus 事件会先触发
onFocus: k,
onClick: V,
onTouchStart: M,
onTouchMove: N,
onTouchEnd: T
}, s.createElement("span", {
className: `${At}-trap`
}), P.slice(0, d).map((S, I) => s.createElement("span", {
ref: I === 0 ? b : void 0,
key: I,
onClick: A(I)
}, S)), s.createElement("div", {
className: `${At}-caret-container`
}, u && s.createElement("div", {
ref: v,
className: `${At}-caret`
})), P.slice(d).map((S, I) => s.createElement("span", {
key: I,
onClick: A(I + d)
}, S))), i.clearable && !!a && u && s.createElement("div", {
className: `${At}-clear`,
onClick: (S) => {
var I;
S.stopPropagation(), o(""), (I = i.onClear) === null || I === void 0 || I.call(i);
},
role: "button",
"aria-label": n.Input.clear
}, C), [void 0, null, ""].includes(a) && s.createElement("div", {
className: `${At}-placeholder`
}, i.placeholder), O));
}), jf = "adm-water-mark", $b = {
fullPage: !0
}, NE = (e) => {
const t = Y($b, e), {
zIndex: n,
gapX: r = 24,
gapY: i = 48,
width: a = 120,
height: o = 64,
rotate: l = -22,
image: c,
imageWidth: u = 120,
imageHeight: f = 64,
content: d,
fontStyle: m = "normal",
fontWeight: h = "normal",
fontColor: E = "rgba(0,0,0,.15)",
fontSize: b = 14,
fontFamily: g = "sans-serif"
} = t, [v, w] = Q("");
return J(() => {
const p = document.createElement("canvas"), y = window.devicePixelRatio, C = p.getContext("2d"), x = `${(r + a) * y}px`, k = `${(i + o) * y}px`, _ = a * y, R = o * y;
if (p.setAttribute("width", x), p.setAttribute("height", k), C) {
if (c) {
C.translate(_ / 2, R / 2), C.rotate(Math.PI / 180 * Number(l));
const O = new Image();
O.crossOrigin = "anonymous", O.referrerPolicy = "no-referrer", O.onload = () => {
C.drawImage(O, -u * y / 2, -f * y / 2, u * y, f * y), C.restore(), w(p.toDataURL());
}, O.src = c;
} else if (d) {
C.textBaseline = "middle", C.textAlign = "center", C.translate(_ / 2, R / 2), C.rotate(Math.PI / 180 * Number(l));
const O = Number(b) * y;
C.font = `${m} normal ${h} ${O}px/${R}px ${g}`, C.fillStyle = E, Array.isArray(d) ? d.forEach((V, A) => C.fillText(V, 0, A * O)) : C.fillText(d, 0, 0), C.restore(), w(p.toDataURL());
}
} else
throw new Error("Canvas is not supported in the current environment");
}, [r, i, l, m, h, a, o, g, E, c, d, b]), U(t, s.createElement("div", {
className: Z(jf, {
[`${jf}-full-page`]: t.fullPage
}),
style: {
zIndex: n,
backgroundSize: `${r + a}px`,
// Not give `url` if its empty. Which will cause 404 error.
backgroundImage: v === "" ? void 0 : `url('${v}')`
}
}));
}, Tn = "adm-footer", _b = {
label: "",
links: [],
content: "",
chips: []
}, PE = (e) => {
const t = Y(_b, e), {
label: n,
links: r,
content: i,
chips: a,
onChipClick: o,
onLinkClick: l
} = t, c = (f, d) => {
a != null && a.length && f.type === "link" && (o == null || o(f, d));
}, u = (f, d, m) => {
l && (m.preventDefault(), l(f, d));
};
return U(t, s.createElement("div", {
className: Z(Tn)
}, n && s.createElement("div", {
className: `${Tn}-label`
}, s.createElement(Ts, null, n)), !!(r != null && r.length) && s.createElement("div", {
className: `${Tn}-links`
}, r.map((f, d) => s.createElement(s.Fragment, {
key: d
}, s.createElement("a", {
href: f.href,
rel: "noopener noreferrer",
onClick: (m) => u(f, d, m)
}, f.text), d !== r.length - 1 && s.createElement(Ts, {
direction: "vertical"
})))), i && s.createElement("div", {
className: `${Tn}-content`
}, i), a && a.length > 0 && s.createElement("div", {
className: `${Tn}-chips`
}, a.map((f, d) => s.createElement("div", {
key: d,
onClick: () => c(f, d),
className: Z(`${Tn}-chip`, {
[`${Tn}-chip-link`]: f.type === "link"
})
}, f.text)))));
};
export {
Pb as ActionSheet,
_i as AutoCenter,
Mb as Avatar,
Ps as Badge,
Kt as Button,
Ab as Calendar,
Tb as CalendarPicker,
Kg as CalendarPickerView,
Ib as CapsuleTabs,
Lb as Card,
jb as CascadePicker,
Bb as CascadePickerView,
Wb as Cascader,
j4 as CascaderView,
X1 as CenterPopup,
Wu as CheckList,
Hu as Checkbox,
Zb as Collapse,
Rb as ConfigProvider,
qb as DatePicker,
Hb as DatePickerView,
Ub as Dialog,
Ts as Divider,
p1 as DotLoading,
zb as Dropdown,
Kb as Ellipsis,
Yb as Empty,
Gb as ErrorBlock,
Xb as FloatingBubble,
Qb as FloatingPanel,
PE as Footer,
Jb as Form,
Y0 as Grid,
xo as Image,
eE as ImageUploader,
m8 as ImageViewer,
tE as IndexBar,
nE as InfiniteScroll,
im as Input,
rE as JumboTabs,
Lt as List,
p1 as Loading,
ji as Mask,
iE as Modal,
aE as NavBar,
oE as NoticeBar,
sE as NumberKeyboard,
I8 as PageIndicator,
lE as PasscodeInput,
H1 as Picker,
To as PickerView,
U0 as Popover,
Br as Popup,
cE as ProgressBar,
uE as ProgressCircle,
fE as PullToRefresh,
dE as Radio,
mE as Rate,
hE as Result,
vE as ResultPage,
Wr as SafeArea,
I1 as ScrollMask,
pE as SearchBar,
gE as Segmented,
yE as Selector,
bE as SideBar,
ca as Skeleton,
EE as Slider,
_c as Space,
Yl as SpinLoading,
wE as Stepper,
CE as Steps,
xE as SwipeAction,
kE as Swiper,
$E as Switch,
_E as TabBar,
Zu as Tabs,
SE as Tag,
mb as TextArea,
OE as Toast,
FE as TreeSelect,
RE as VirtualInput,
NE as WaterMark,
U5 as createErrorBlock,
Db as reduceMotion,
Vb as restoreMotion,
Fb as setDefaultConfig,
eg as unstableSetRender,
fe as useConfig
};