🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ioto/core

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ioto/core - npm Package Compare versions

Comparing version
0.1.16
to
0.1.17
+923
-1127
dist/index.mjs

@@ -1,8 +0,10 @@

var fe = Object.defineProperty;
var he = (t, e, r) => e in t ? fe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
var T = (t, e, r) => (he(t, typeof e != "symbol" ? e + "" : e, r), r);
function Bt(t, e) {
this.flags = t, this.cursor = e;
var ze = Object.defineProperty;
var Ke = (e, t, r) => t in e ? ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var y = (e, t, r) => (Ke(e, typeof t != "symbol" ? t + "" : t, r), r);
import $ from "dayjs";
import { default as $a } from "dayjs";
function be(e, t) {
this.flags = e, this.cursor = t;
}
Bt.prototype = {
be.prototype = {
skip: function() {

@@ -17,4 +19,4 @@ this.flags.skip = !0;

},
replace: function(e) {
this.flags.replace = e;
replace: function(t) {
this.flags.replace = t;
},

@@ -34,19 +36,19 @@ get parent() {

};
function mt(t, e) {
return new Bt(t, e);
function W(e, t) {
return new be(e, t);
}
function Rt(t) {
this.xs = [t], this.top = 0;
function De(e) {
this.xs = [e], this.top = 0;
}
Rt.prototype = {
push: function(e) {
this.top++, this.top < this.xs.length ? this.xs[this.top] = e : this.xs.push(e);
De.prototype = {
push: function(t) {
this.top++, this.top < this.xs.length ? this.xs[this.top] = t : this.xs.push(t);
},
pushArrayReverse: function(e) {
for (var r = e.length - 1; r >= 0; r--)
this.push(e[r]);
pushArrayReverse: function(t) {
for (var r = t.length - 1; r >= 0; r--)
this.push(t[r]);
},
pop: function() {
var e = this.peek();
return this.top--, e;
var t = this.peek();
return this.top--, t;
},

@@ -60,11 +62,11 @@ peek: function() {

};
function ot(t) {
return new Rt(t);
function j(e) {
return new De(e);
}
function Ut() {
this.depth = 0, this.stack = ot({ node: null, index: -1 });
function Me() {
this.depth = 0, this.stack = j({ node: null, index: -1 });
}
Ut.prototype = {
moveDown: function(e) {
this.depth++, this.stack.push({ node: e, index: 0 });
Me.prototype = {
moveDown: function(t) {
this.depth++, this.stack.push({ node: t, index: 0 });
},

@@ -84,9 +86,9 @@ moveUp: function() {

};
function qt() {
return new Ut();
function we() {
return new Me();
}
function zt() {
function Ce() {
this.break = !1, this.skip = !1, this.remove = !1, this.replace = null;
}
zt.prototype = {
Ce.prototype = {
reset: function() {

@@ -96,29 +98,29 @@ this.break = !1, this.skip = !1, this.remove = !1, this.replace = null;

};
function yt() {
return new zt();
function V() {
return new Ce();
}
function $t(t) {
return t && t.length !== 0;
function X(e) {
return e && e.length !== 0;
}
function le(t, e, r) {
for (var n = yt(), s = qt(), o = mt(n, s), u = ot(t), h = Object.assign({}, t); !u.isEmpty(); ) {
var f = u.pop();
if (f === h) {
function We(e, t, r) {
for (var n = V(), s = we(), i = W(n, s), a = j(e), u = Object.assign({}, e); !a.isEmpty(); ) {
var o = a.pop();
if (o === u) {
s.moveUp();
continue;
}
if (n.reset(), e(f, o), n.break)
if (n.reset(), t(o, i), n.break)
break;
if (!n.remove && (s.moveNext(), !n.skip)) {
n.replace && (f = n.replace);
var l = r(f);
$t(l) && (u.push(h), u.pushArrayReverse(l), s.moveDown(f));
n.replace && (o = n.replace);
var c = r(o);
X(c) && (a.push(u), a.pushArrayReverse(c), s.moveDown(o));
}
}
}
function de(t, e, r) {
for (var n = yt(), s = qt(), o = mt(n, s), u = ot(t), h = ot(null); !u.isEmpty(); ) {
var f = u.peek(), l = h.peek(), p = r(f);
if (n.reset(), f === l || !$t(p)) {
if (f === l && (h.pop(), s.moveUp()), u.pop(), e(f, o), n.break)
function Ve(e, t, r) {
for (var n = V(), s = we(), i = W(n, s), a = j(e), u = j(null); !a.isEmpty(); ) {
var o = a.peek(), c = u.peek(), l = r(o);
if (n.reset(), o === c || !X(l)) {
if (o === c && (u.pop(), s.moveUp()), a.pop(), t(o, i), n.break)
break;

@@ -129,20 +131,20 @@ if (n.remove)

} else
h.push(f), s.moveDown(f), u.pushArrayReverse(p);
u.push(o), s.moveDown(o), a.pushArrayReverse(l);
}
}
var pe = 32768;
function Wt(t) {
this.xs = [t], this.top = 0, this.maxLength = 0;
var Xe = 32768;
function Ie(e) {
this.xs = [e], this.top = 0, this.maxLength = 0;
}
Wt.prototype = {
enqueue: function(e) {
this.xs.push(e);
Ie.prototype = {
enqueue: function(t) {
this.xs.push(t);
},
enqueueMultiple: function(e) {
for (var r = 0, n = e.length; r < n; r++)
this.enqueue(e[r]);
enqueueMultiple: function(t) {
for (var r = 0, n = t.length; r < n; r++)
this.enqueue(t[r]);
},
dequeue: function() {
var e = this.peek();
return this.top++, this.top === pe && (this.xs = this.xs.slice(this.top), this.top = 0), e;
var t = this.peek();
return this.top++, this.top === Xe && (this.xs = this.xs.slice(this.top), this.top = 0), t;
},

@@ -156,11 +158,11 @@ peek: function() {

};
function Jt(t) {
return new Wt(t);
function Fe(e) {
return new Ie(e);
}
function Vt() {
this.depth = 0, this.index = -1, this.queue = Jt({ node: null, arity: 1 }), this.levelNodes = 1, this.nextLevelNodes = 0;
function xe() {
this.depth = 0, this.index = -1, this.queue = Fe({ node: null, arity: 1 }), this.levelNodes = 1, this.nextLevelNodes = 0;
}
Vt.prototype = {
store: function(e, r) {
this.queue.enqueue({ node: e, arity: r }), this.nextLevelNodes += r;
xe.prototype = {
store: function(t, r) {
this.queue.enqueue({ node: t, arity: r }), this.nextLevelNodes += r;
},

@@ -177,13 +179,13 @@ moveNext: function() {

};
function ge() {
return new Vt();
function Je() {
return new xe();
}
function ve(t, e, r) {
for (var n = yt(), s = ge(), o = mt(n, s), u = Jt(t); !u.isEmpty(); ) {
var h = u.dequeue();
if (n.reset(), e(h, o), n.break)
function Ze(e, t, r) {
for (var n = V(), s = Je(), i = W(n, s), a = Fe(e); !a.isEmpty(); ) {
var u = a.dequeue();
if (n.reset(), t(u, i), n.break)
break;
if (!n.remove && (s.moveNext(), n.replace && (h = n.replace), !n.skip)) {
var f = r(h);
$t(f) && (u.enqueueMultiple(f), s.store(h, f.length));
if (!n.remove && (s.moveNext(), n.replace && (u = n.replace), !n.skip)) {
var o = r(u);
X(o) && (a.enqueueMultiple(o), s.store(u, o.length));
}

@@ -193,82 +195,82 @@ s.moveForward();

}
var me = function(e) {
return e.children;
var Qe = function(t) {
return t.children;
};
function ye(t, e, r) {
if (t != null) {
function et(e, t, r) {
if (e != null) {
r = r || {};
var n = r.order || "pre", s = r.getChildren || me;
n === "pre" ? le(t, e, s) : n === "post" ? de(t, e, s) : n === "bfs" && ve(t, e, s);
var n = r.order || "pre", s = r.getChildren || Qe;
n === "pre" ? We(e, t, s) : n === "post" ? Ve(e, t, s) : n === "bfs" && Ze(e, t, s);
}
}
var G = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function $e(t) {
for (var e = -1, r = t == null ? 0 : t.length, n = 0, s = []; ++e < r; ) {
var o = t[e];
o && (s[n++] = o);
var E = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function tt(e) {
for (var t = -1, r = e == null ? 0 : e.length, n = 0, s = []; ++t < r; ) {
var i = e[t];
i && (s[n++] = i);
}
return s;
}
var _e = $e, Me = Array.isArray, _t = Me, De = typeof G == "object" && G && G.Object === Object && G, be = De, we = be, Se = typeof self == "object" && self && self.Object === Object && self, Ce = we || Se || Function("return this")(), Mt = Ce, Ie = Mt, xe = Ie.Symbol, Dt = xe, wt = Dt, Kt = Object.prototype, Fe = Kt.hasOwnProperty, Te = Kt.toString, et = wt ? wt.toStringTag : void 0;
function Ee(t) {
var e = Fe.call(t, et), r = t[et];
var rt = tt, nt = Array.isArray, J = nt, st = typeof E == "object" && E && E.Object === Object && E, it = st, at = it, ot = typeof self == "object" && self && self.Object === Object && self, ut = at || ot || Function("return this")(), Z = ut, ct = Z, ft = ct.Symbol, Q = ft, ne = Q, Se = Object.prototype, lt = Se.hasOwnProperty, ht = Se.toString, k = ne ? ne.toStringTag : void 0;
function pt(e) {
var t = lt.call(e, k), r = e[k];
try {
t[et] = void 0;
e[k] = void 0;
var n = !0;
} catch {
}
var s = Te.call(t);
return n && (e ? t[et] = r : delete t[et]), s;
var s = ht.call(e);
return n && (t ? e[k] = r : delete e[k]), s;
}
var Ye = Ee, Ae = Object.prototype, ke = Ae.toString;
function Ne(t) {
return ke.call(t);
var dt = pt, gt = Object.prototype, vt = gt.toString;
function mt(e) {
return vt.call(e);
}
var Oe = Ne, St = Dt, Le = Ye, He = Oe, Pe = "[object Null]", je = "[object Undefined]", Ct = St ? St.toStringTag : void 0;
function Ge(t) {
return t == null ? t === void 0 ? je : Pe : Ct && Ct in Object(t) ? Le(t) : He(t);
var yt = mt, se = Q, _t = dt, $t = yt, bt = "[object Null]", Dt = "[object Undefined]", ie = se ? se.toStringTag : void 0;
function Mt(e) {
return e == null ? e === void 0 ? Dt : bt : ie && ie in Object(e) ? _t(e) : $t(e);
}
var Zt = Ge;
function Be(t) {
return t != null && typeof t == "object";
var Ee = Mt;
function wt(e) {
return e != null && typeof e == "object";
}
var Re = Be, Ue = Zt, qe = Re, ze = "[object Symbol]";
function We(t) {
return typeof t == "symbol" || qe(t) && Ue(t) == ze;
var Ct = wt, It = Ee, Ft = Ct, xt = "[object Symbol]";
function St(e) {
return typeof e == "symbol" || Ft(e) && It(e) == xt;
}
var ct = We, Je = _t, Ve = ct, Ke = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ze = /^\w*$/;
function Xe(t, e) {
if (Je(t))
var H = St, Et = J, Tt = H, At = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Yt = /^\w*$/;
function kt(e, t) {
if (Et(e))
return !1;
var r = typeof t;
return r == "number" || r == "symbol" || r == "boolean" || t == null || Ve(t) ? !0 : Ze.test(t) || !Ke.test(t) || e != null && t in Object(e);
var r = typeof e;
return r == "number" || r == "symbol" || r == "boolean" || e == null || Tt(e) ? !0 : Yt.test(e) || !At.test(e) || t != null && e in Object(t);
}
var Qe = Xe;
function tr(t) {
var e = typeof t;
return t != null && (e == "object" || e == "function");
var Nt = kt;
function Ot(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var ft = tr, er = Zt, rr = ft, nr = "[object AsyncFunction]", sr = "[object Function]", ir = "[object GeneratorFunction]", ar = "[object Proxy]";
function or(t) {
if (!rr(t))
var R = Ot, Lt = Ee, Pt = R, Gt = "[object AsyncFunction]", jt = "[object Function]", Bt = "[object GeneratorFunction]", Ht = "[object Proxy]";
function Rt(e) {
if (!Pt(e))
return !1;
var e = er(t);
return e == sr || e == ir || e == nr || e == ar;
var t = Lt(e);
return t == jt || t == Bt || t == Gt || t == Ht;
}
var Xt = or, ur = Mt, cr = ur["__core-js_shared__"], fr = cr, vt = fr, It = function() {
var t = /[^.]+$/.exec(vt && vt.keys && vt.keys.IE_PROTO || "");
return t ? "Symbol(src)_1." + t : "";
var Te = Rt, qt = Z, Ut = qt["__core-js_shared__"], zt = Ut, K = zt, ae = function() {
var e = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}();
function hr(t) {
return !!It && It in t;
function Kt(e) {
return !!ae && ae in e;
}
var lr = hr, dr = Function.prototype, pr = dr.toString;
function gr(t) {
if (t != null) {
var Wt = Kt, Vt = Function.prototype, Xt = Vt.toString;
function Jt(e) {
if (e != null) {
try {
return pr.call(t);
return Xt.call(e);
} catch {
}
try {
return t + "";
return e + "";
} catch {

@@ -279,408 +281,409 @@ }

}
var vr = gr, mr = Xt, yr = lr, $r = ft, _r = vr, Mr = /[\\^$.*+?()[\]{}|]/g, Dr = /^\[object .+?Constructor\]$/, br = Function.prototype, wr = Object.prototype, Sr = br.toString, Cr = wr.hasOwnProperty, Ir = RegExp(
"^" + Sr.call(Cr).replace(Mr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
var Zt = Jt, Qt = Te, er = Wt, tr = R, rr = Zt, nr = /[\\^$.*+?()[\]{}|]/g, sr = /^\[object .+?Constructor\]$/, ir = Function.prototype, ar = Object.prototype, or = ir.toString, ur = ar.hasOwnProperty, cr = RegExp(
"^" + or.call(ur).replace(nr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function xr(t) {
if (!$r(t) || yr(t))
function fr(e) {
if (!tr(e) || er(e))
return !1;
var e = mr(t) ? Ir : Dr;
return e.test(_r(t));
var t = Qt(e) ? cr : sr;
return t.test(rr(e));
}
var Fr = xr;
function Tr(t, e) {
return t == null ? void 0 : t[e];
var lr = fr;
function hr(e, t) {
return e == null ? void 0 : e[t];
}
var Er = Tr, Yr = Fr, Ar = Er;
function kr(t, e) {
var r = Ar(t, e);
return Yr(r) ? r : void 0;
var pr = hr, dr = lr, gr = pr;
function vr(e, t) {
var r = gr(e, t);
return dr(r) ? r : void 0;
}
var Qt = kr, Nr = Qt, Or = Nr(Object, "create"), ht = Or, xt = ht;
function Lr() {
this.__data__ = xt ? xt(null) : {}, this.size = 0;
var Ae = vr, mr = Ae, yr = mr(Object, "create"), q = yr, oe = q;
function _r() {
this.__data__ = oe ? oe(null) : {}, this.size = 0;
}
var Hr = Lr;
function Pr(t) {
var e = this.has(t) && delete this.__data__[t];
return this.size -= e ? 1 : 0, e;
var $r = _r;
function br(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0, t;
}
var jr = Pr, Gr = ht, Br = "__lodash_hash_undefined__", Rr = Object.prototype, Ur = Rr.hasOwnProperty;
function qr(t) {
var e = this.__data__;
if (Gr) {
var r = e[t];
return r === Br ? void 0 : r;
var Dr = br, Mr = q, wr = "__lodash_hash_undefined__", Cr = Object.prototype, Ir = Cr.hasOwnProperty;
function Fr(e) {
var t = this.__data__;
if (Mr) {
var r = t[e];
return r === wr ? void 0 : r;
}
return Ur.call(e, t) ? e[t] : void 0;
return Ir.call(t, e) ? t[e] : void 0;
}
var zr = qr, Wr = ht, Jr = Object.prototype, Vr = Jr.hasOwnProperty;
function Kr(t) {
var e = this.__data__;
return Wr ? e[t] !== void 0 : Vr.call(e, t);
var xr = Fr, Sr = q, Er = Object.prototype, Tr = Er.hasOwnProperty;
function Ar(e) {
var t = this.__data__;
return Sr ? t[e] !== void 0 : Tr.call(t, e);
}
var Zr = Kr, Xr = ht, Qr = "__lodash_hash_undefined__";
function tn(t, e) {
var Yr = Ar, kr = q, Nr = "__lodash_hash_undefined__";
function Or(e, t) {
var r = this.__data__;
return this.size += this.has(t) ? 0 : 1, r[t] = Xr && e === void 0 ? Qr : e, this;
return this.size += this.has(e) ? 0 : 1, r[e] = kr && t === void 0 ? Nr : t, this;
}
var en = tn, rn = Hr, nn = jr, sn = zr, an = Zr, on = en;
function J(t) {
var e = -1, r = t == null ? 0 : t.length;
for (this.clear(); ++e < r; ) {
var n = t[e];
var Lr = Or, Pr = $r, Gr = Dr, jr = xr, Br = Yr, Hr = Lr;
function T(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
J.prototype.clear = rn;
J.prototype.delete = nn;
J.prototype.get = sn;
J.prototype.has = an;
J.prototype.set = on;
var un = J;
function cn() {
T.prototype.clear = Pr;
T.prototype.delete = Gr;
T.prototype.get = jr;
T.prototype.has = Br;
T.prototype.set = Hr;
var Rr = T;
function qr() {
this.__data__ = [], this.size = 0;
}
var fn = cn;
function hn(t, e) {
return t === e || t !== t && e !== e;
var Ur = qr;
function zr(e, t) {
return e === t || e !== e && t !== t;
}
var te = hn, ln = te;
function dn(t, e) {
for (var r = t.length; r--; )
if (ln(t[r][0], e))
var Ye = zr, Kr = Ye;
function Wr(e, t) {
for (var r = e.length; r--; )
if (Kr(e[r][0], t))
return r;
return -1;
}
var lt = dn, pn = lt, gn = Array.prototype, vn = gn.splice;
function mn(t) {
var e = this.__data__, r = pn(e, t);
var U = Wr, Vr = U, Xr = Array.prototype, Jr = Xr.splice;
function Zr(e) {
var t = this.__data__, r = Vr(t, e);
if (r < 0)
return !1;
var n = e.length - 1;
return r == n ? e.pop() : vn.call(e, r, 1), --this.size, !0;
var n = t.length - 1;
return r == n ? t.pop() : Jr.call(t, r, 1), --this.size, !0;
}
var yn = mn, $n = lt;
function _n(t) {
var e = this.__data__, r = $n(e, t);
return r < 0 ? void 0 : e[r][1];
var Qr = Zr, en = U;
function tn(e) {
var t = this.__data__, r = en(t, e);
return r < 0 ? void 0 : t[r][1];
}
var Mn = _n, Dn = lt;
function bn(t) {
return Dn(this.__data__, t) > -1;
var rn = tn, nn = U;
function sn(e) {
return nn(this.__data__, e) > -1;
}
var wn = bn, Sn = lt;
function Cn(t, e) {
var r = this.__data__, n = Sn(r, t);
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
var an = sn, on = U;
function un(e, t) {
var r = this.__data__, n = on(r, e);
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
}
var In = Cn, xn = fn, Fn = yn, Tn = Mn, En = wn, Yn = In;
function V(t) {
var e = -1, r = t == null ? 0 : t.length;
for (this.clear(); ++e < r; ) {
var n = t[e];
var cn = un, fn = Ur, ln = Qr, hn = rn, pn = an, dn = cn;
function A(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
V.prototype.clear = xn;
V.prototype.delete = Fn;
V.prototype.get = Tn;
V.prototype.has = En;
V.prototype.set = Yn;
var An = V, kn = Qt, Nn = Mt, On = kn(Nn, "Map"), Ln = On, Ft = un, Hn = An, Pn = Ln;
function jn() {
A.prototype.clear = fn;
A.prototype.delete = ln;
A.prototype.get = hn;
A.prototype.has = pn;
A.prototype.set = dn;
var gn = A, vn = Ae, mn = Z, yn = vn(mn, "Map"), _n = yn, ue = Rr, $n = gn, bn = _n;
function Dn() {
this.size = 0, this.__data__ = {
hash: new Ft(),
map: new (Pn || Hn)(),
string: new Ft()
hash: new ue(),
map: new (bn || $n)(),
string: new ue()
};
}
var Gn = jn;
function Bn(t) {
var e = typeof t;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
var Mn = Dn;
function wn(e) {
var t = typeof e;
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
var Rn = Bn, Un = Rn;
function qn(t, e) {
var r = t.__data__;
return Un(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
var Cn = wn, In = Cn;
function Fn(e, t) {
var r = e.__data__;
return In(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
}
var dt = qn, zn = dt;
function Wn(t) {
var e = zn(this, t).delete(t);
return this.size -= e ? 1 : 0, e;
var z = Fn, xn = z;
function Sn(e) {
var t = xn(this, e).delete(e);
return this.size -= t ? 1 : 0, t;
}
var Jn = Wn, Vn = dt;
function Kn(t) {
return Vn(this, t).get(t);
var En = Sn, Tn = z;
function An(e) {
return Tn(this, e).get(e);
}
var Zn = Kn, Xn = dt;
function Qn(t) {
return Xn(this, t).has(t);
var Yn = An, kn = z;
function Nn(e) {
return kn(this, e).has(e);
}
var ts = Qn, es = dt;
function rs(t, e) {
var r = es(this, t), n = r.size;
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
var On = Nn, Ln = z;
function Pn(e, t) {
var r = Ln(this, e), n = r.size;
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
}
var ns = rs, ss = Gn, is = Jn, as = Zn, os = ts, us = ns;
function K(t) {
var e = -1, r = t == null ? 0 : t.length;
for (this.clear(); ++e < r; ) {
var n = t[e];
var Gn = Pn, jn = Mn, Bn = En, Hn = Yn, Rn = On, qn = Gn;
function Y(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
K.prototype.clear = ss;
K.prototype.delete = is;
K.prototype.get = as;
K.prototype.has = os;
K.prototype.set = us;
var cs = K, ee = cs, fs = "Expected a function";
function bt(t, e) {
if (typeof t != "function" || e != null && typeof e != "function")
throw new TypeError(fs);
Y.prototype.clear = jn;
Y.prototype.delete = Bn;
Y.prototype.get = Hn;
Y.prototype.has = Rn;
Y.prototype.set = qn;
var Un = Y, ke = Un, zn = "Expected a function";
function ee(e, t) {
if (typeof e != "function" || t != null && typeof t != "function")
throw new TypeError(zn);
var r = function() {
var n = arguments, s = e ? e.apply(this, n) : n[0], o = r.cache;
if (o.has(s))
return o.get(s);
var u = t.apply(this, n);
return r.cache = o.set(s, u) || o, u;
var n = arguments, s = t ? t.apply(this, n) : n[0], i = r.cache;
if (i.has(s))
return i.get(s);
var a = e.apply(this, n);
return r.cache = i.set(s, a) || i, a;
};
return r.cache = new (bt.Cache || ee)(), r;
return r.cache = new (ee.Cache || ke)(), r;
}
bt.Cache = ee;
var hs = bt, ls = hs, ds = 500;
function ps(t) {
var e = ls(t, function(n) {
return r.size === ds && r.clear(), n;
}), r = e.cache;
return e;
ee.Cache = ke;
var Kn = ee, Wn = Kn, Vn = 500;
function Xn(e) {
var t = Wn(e, function(n) {
return r.size === Vn && r.clear(), n;
}), r = t.cache;
return t;
}
var gs = ps, vs = gs, ms = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ys = /\\(\\)?/g, $s = vs(function(t) {
var e = [];
return t.charCodeAt(0) === 46 && e.push(""), t.replace(ms, function(r, n, s, o) {
e.push(s ? o.replace(ys, "$1") : n || r);
}), e;
}), _s = $s;
function Ms(t, e) {
for (var r = -1, n = t == null ? 0 : t.length, s = Array(n); ++r < n; )
s[r] = e(t[r], r, t);
var Jn = Xn, Zn = Jn, Qn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, es = /\\(\\)?/g, ts = Zn(function(e) {
var t = [];
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Qn, function(r, n, s, i) {
t.push(s ? i.replace(es, "$1") : n || r);
}), t;
}), rs = ts;
function ns(e, t) {
for (var r = -1, n = e == null ? 0 : e.length, s = Array(n); ++r < n; )
s[r] = t(e[r], r, e);
return s;
}
var Ds = Ms, Tt = Dt, bs = Ds, ws = _t, Ss = ct, Cs = 1 / 0, Et = Tt ? Tt.prototype : void 0, Yt = Et ? Et.toString : void 0;
function re(t) {
if (typeof t == "string")
return t;
if (ws(t))
return bs(t, re) + "";
if (Ss(t))
return Yt ? Yt.call(t) : "";
var e = t + "";
return e == "0" && 1 / t == -Cs ? "-0" : e;
var ss = ns, ce = Q, is = ss, as = J, os = H, us = 1 / 0, fe = ce ? ce.prototype : void 0, le = fe ? fe.toString : void 0;
function Ne(e) {
if (typeof e == "string")
return e;
if (as(e))
return is(e, Ne) + "";
if (os(e))
return le ? le.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -us ? "-0" : t;
}
var Is = re, xs = Is;
function Fs(t) {
return t == null ? "" : xs(t);
var cs = Ne, fs = cs;
function ls(e) {
return e == null ? "" : fs(e);
}
var Ts = Fs, Es = _t, Ys = Qe, As = _s, ks = Ts;
function Ns(t, e) {
return Es(t) ? t : Ys(t, e) ? [t] : As(ks(t));
var hs = ls, ps = J, ds = Nt, gs = rs, vs = hs;
function ms(e, t) {
return ps(e) ? e : ds(e, t) ? [e] : gs(vs(e));
}
var Os = Ns, Ls = ct, Hs = 1 / 0;
function Ps(t) {
if (typeof t == "string" || Ls(t))
return t;
var e = t + "";
return e == "0" && 1 / t == -Hs ? "-0" : e;
var ys = ms, _s = H, $s = 1 / 0;
function bs(e) {
if (typeof e == "string" || _s(e))
return e;
var t = e + "";
return t == "0" && 1 / e == -$s ? "-0" : t;
}
var js = Ps, Gs = Os, Bs = js;
function Rs(t, e) {
e = Gs(e, t);
for (var r = 0, n = e.length; t != null && r < n; )
t = t[Bs(e[r++])];
return r && r == n ? t : void 0;
var Ds = bs, Ms = ys, ws = Ds;
function Cs(e, t) {
t = Ms(t, e);
for (var r = 0, n = t.length; e != null && r < n; )
e = e[ws(t[r++])];
return r && r == n ? e : void 0;
}
var Us = Rs, qs = Us;
function zs(t, e, r) {
var n = t == null ? void 0 : qs(t, e);
var Is = Cs, Fs = Is;
function xs(e, t, r) {
var n = e == null ? void 0 : Fs(e, t);
return n === void 0 ? r : n;
}
var Ws = zs;
function Js(t) {
return t == null;
var Ss = xs;
function Es(e) {
return e == null;
}
var Vs = Js;
const aa = function(t, e = {}) {
let r = {}, n = [], s = [], o = {};
const u = function() {
r = {}, n = [], s = [], o = {};
var Ts = Es;
const Wi = function(e, t = {}) {
let r = {}, n = [], s = [], i = {};
const a = function() {
r = {}, n = [], s = [], i = {};
};
u();
a();
let {
childrenKey: h = "children",
checkedKey: f = "checked",
idKey: l = "id"
} = e, p = 0, _ = 0;
const M = function(i = {}) {
h = i.childrenKey || h, f = i.checkedKey || f, l = i.idKey || l;
}, D = function(i, c) {
i.forEach(function(a) {
const g = a[l];
r[g] = a, a = { ...a }, s.push(a), a.parent = c, a.index = p++;
const v = c ? c.deepth + 1 : 0;
a.deepth = v, _ = Math.max(_, v), a.path = c ? c.path + "." + a[l] : "0", a.parentIdList = c ? [...c.parentIdList, c[l]] : [], o[g] = a, a[h] && a[h].length > 0 && D(a[h], a);
childrenKey: u = "children",
checkedKey: o = "checked",
idKey: c = "id"
} = t, l = 0, m = 0;
const d = function(f = {}) {
u = f.childrenKey || u, o = f.checkedKey || o, c = f.idKey || c;
}, g = function(f, h) {
f.forEach(function(p) {
const v = p[c];
r[v] = p, p = { ...p }, s.push(p), p.parent = h, p.index = l++;
const w = h ? h.deepth + 1 : 0;
p.deepth = w, m = Math.max(m, w), p.path = h ? h.path + "." + p[c] : "0", p.parentIdList = h ? [...h.parentIdList, h[c]] : [], i[v] = p, p[u] && p[u].length > 0 && g(p[u], p);
});
}, C = function(i) {
return i[h] && i[h].length > 0 ? !i[h].map((a) => x(a[l])).find((a) => !a[f]) : !1;
}, E = function(i) {
u(), Array.isArray(i) && D(i);
}, b = function(f) {
return f[u] && f[u].length > 0 ? !f[u].map((p) => _(p[c])).find((p) => !p[o]) : !1;
}, D = function(f) {
a(), Array.isArray(f) && g(f);
};
E(t);
const O = function(i) {
var c;
return (c = x(i)) == null ? void 0 : c.parentIdList.map((a) => x(a));
}, R = function(i) {
const c = x(i);
return s.filter(function(a) {
return a.parent === (c == null ? void 0 : c.parent);
D(e);
const F = function(f) {
var h;
return (h = _(f)) == null ? void 0 : h.parentIdList.map((p) => _(p));
}, O = function(f) {
const h = _(f);
return s.filter(function(p) {
return p.parent === (h == null ? void 0 : h.parent);
});
}, A = function(i) {
let c;
if (!i)
}, M = function(f) {
let h;
if (!f)
return console.warn("id\u4E0D\u80FD\u4E3A\u7A7A"), null;
if (i instanceof Object)
c = i[l];
else if (typeof i == "string" || typeof i == "number")
c = i;
if (f instanceof Object)
h = f[c];
else if (typeof f == "string" || typeof f == "number")
h = f;
else
return console.warn("id\u7C7B\u578B\u975E\u6CD5:", i), null;
return c;
}, x = function(i) {
const c = A(i);
return c ? o[c] : null;
}, nt = function(i) {
const c = A(i);
return c ? r[c] : null;
}, P = function(i) {
const c = x(i);
return c == null ? void 0 : c.deepth;
}, k = function(i, c) {
const a = x(i);
a && Object.assign(a, c);
}, Z = function(i, c, a = !1) {
const g = x(i);
g && (g[f] = c, a && (g.parentIdList.forEach((v) => {
const y = o[v];
y[f] = C(y);
}), b(g, function(v) {
v[f] = c;
return console.warn("id\u7C7B\u578B\u975E\u6CD5:", f), null;
return h;
}, _ = function(f) {
const h = M(f);
return h ? i[h] : null;
}, te = function(f) {
const h = M(f);
return h ? r[h] : null;
}, He = function(f) {
const h = _(f);
return h == null ? void 0 : h.deepth;
}, Re = function(f, h) {
const p = _(f);
p && Object.assign(p, h);
}, qe = function(f, h, p = !1) {
const v = _(f);
v && (v[o] = h, p && (v.parentIdList.forEach((w) => {
const re = i[w];
re[o] = b(re);
}), L(v, function(w) {
w[o] = h;
})));
}, U = function(i) {
const c = {};
i && i.forEach((a) => {
c[a] = !0;
}), s.forEach((a) => {
a[f] = c[a[l]] || !1;
}, Ue = function(f) {
const h = {};
f && f.forEach((p) => {
h[p] = !0;
}), s.forEach((p) => {
p[o] = h[p[c]] || !1;
});
}, b = function(i, c) {
const a = x(i);
if (a)
c(a), a[h] && a[h].length > 0 && a[h].forEach(function(g) {
b(g, c);
}, L = function(f, h, p = []) {
const v = _(f);
if (v)
h(v), p.push(v), v[u] && v[u].length > 0 && v[u].forEach(function(w) {
L(w, h, p);
});
else
throw new Error("\u8282\u70B9\u4E0D\u5B58\u5728:" + i);
throw new Error("\u8282\u70B9\u4E0D\u5B58\u5728:" + f);
return p;
};
return {
travelNode: b,
getNodeList: (i = !0) => i ? [...s] : [...n],
getNodeDescendantList: (i) => {
const c = [];
return b(i, function(a) {
c.push(a);
}), c;
travelNode: L,
getNodeList: (f = !0) => f ? [...s] : [...n],
getNodeDescendantList: (f) => {
const h = [];
return L(f, function(p) {
h.push(p);
}), h;
},
getNodeListByFilter: (i) => s.filter(i),
getNodeListByFilter: (f) => s.filter(f),
getMinDeepth: function() {
let i = _;
for (const c in s) {
const a = s[c];
if (a.checked && (i = Math.min(i, a.deepth)), i === 0)
let f = m;
for (const h in s) {
const p = s[h];
if (p.checked && (f = Math.min(f, p.deepth)), f === 0)
return 0;
}
return i;
return f;
},
getSublings: R,
getParents: O,
getDeepth: P,
getNode: x,
updateIndexes: E,
setChecked: Z,
setProps: k,
travelAllNode: function(i) {
for (const c in s) {
const a = s[c], g = nt(a[l]);
if (i(a, g) === !1)
getSublings: O,
getParents: F,
getDeepth: He,
getNode: _,
updateIndexes: D,
setChecked: qe,
setProps: Re,
travelAllNode: function(f) {
for (const h in s) {
const p = s[h], v = te(p[c]);
if (f(p, v) === !1)
break;
}
},
setOptions: M,
resetCheckStatus: U,
getOriginNode: nt
setOptions: d,
resetCheckStatus: Ue,
getOriginNode: te
};
}, At = function(t, e, r = "children", n = "id", s = [], o = { flag: !1 }) {
if (t instanceof Array)
return At({ [r]: t }, e, r, n, s);
const u = [], h = (t == null ? void 0 : t[r]) || [];
for (let f = 0; f < h.length; f++) {
const l = h[f];
if (e && e(l, s, r, n) === !1) {
o.flag = !0;
}, he = function(e, t, r = "children", n = "id", s = [], i = { flag: !1 }) {
if (e instanceof Array)
return he({ [r]: e }, t, r, n, s);
const a = [], u = (e == null ? void 0 : e[r]) || [];
for (let o = 0; o < u.length; o++) {
const c = u[o];
if (t && t(c, s, r, n) === !1) {
i.flag = !0;
break;
}
if (u.push(l), l[r] instanceof Array) {
const p = At(l[r], e, r, n, [l, ...s], o);
u.push(...p);
if (a.push(c), c[r] instanceof Array) {
const l = he(c[r], t, r, n, [c, ...s], i);
a.push(...l);
}
if (o.flag)
if (i.flag)
break;
}
return u;
}, at = function(t, e, r = null, n = !1) {
if (typeof e == "string" && (e = e.split(",")), !!Array.isArray(e)) {
for (let s = 0; s < e.length; s++) {
const o = e[s], u = Ws(t, o);
if (n ? Vs(u) : !!u)
return u;
return a;
}, G = function(e, t, r = null, n = !1) {
if (typeof t == "string" && (t = t.split(",")), !!Array.isArray(t)) {
for (let s = 0; s < t.length; s++) {
const i = t[s], a = Ss(e, i);
if (n ? Ts(a) : !!a)
return a;
}
return r;
}
}, ne = (t) => Object.prototype.toString.call(t) == "[object Object]", oa = (t, e = "children", r = !1) => {
const n = [], s = [...t];
}, Oe = (e) => Object.prototype.toString.call(e) == "[object Object]", Vi = (e, t = "children", r = !1) => {
const n = [], s = [...e];
for (; s.length; ) {
const o = s.shift();
n.push(o);
const u = o[e];
u != null && u.length && (r && n.pop(), s.unshift(...u));
const i = s.shift();
n.push(i);
const a = i[t];
a != null && a.length && (r && n.pop(), s.unshift(...a));
}
return n;
};
function Ks(t) {
return t === null;
function As(e) {
return e === null;
}
var kt = Ks;
const Zs = function(t, e, r, n = "_", s = 0) {
t[e] ? s < 5 && Zs(t, n + e, r, n, s + 1) : t[e] = r;
}, ua = function(t, e, r) {
var pe = As;
const Ys = function(e, t, r, n = "_", s = 0) {
e[t] ? s < 5 && Ys(e, n + t, r, n, s + 1) : e[t] = r;
}, Xi = function(e, t, r) {
let n = !1;
return Array.isArray(t) && (t = { [e]: t }, n = !0), ye(
t,
return Array.isArray(e) && (e = { [t]: e }, n = !0), et(
e,
r,
{
getChildren(s) {
return s[e];
return s[t];
}
}
), n ? t[e] : t;
}, ca = function(t, e) {
), n ? e[t] : e;
}, Ji = function(e, t) {
const r = {

@@ -694,53 +697,53 @@ valueGetField: "value",

defaultLs: ["0, \u8BF7\u63D0\u4F9Boptions"],
...e || {}
...t || {}
};
let n;
return typeof t == "function" && (n = t(r)), typeof t == "string" ? n = t.trim().split(r.spliterBetweenItem).map((o) => o.trim()) : Array.isArray(t) ? n = t : Array.isArray(r.defaultLs) ? n = r.defaultLs : typeof r.defaultLs == "function" ? n = r.defaultLs() : n = [{
return typeof e == "function" && (n = e(r)), typeof e == "string" ? n = e.trim().split(r.spliterBetweenItem).map((i) => i.trim()) : Array.isArray(e) ? n = e : Array.isArray(r.defaultLs) ? n = r.defaultLs : typeof r.defaultLs == "function" ? n = r.defaultLs() : n = [{
name: "\u8BF7\u901A\u8FC7optionLs\u4F20\u5165\u6570\u7EC4\u6216\u8005\u51FD\u6570",
value: -1
}], function(o) {
const u = r.elFormatter;
u && (o = o.map((f) => {
let [l, p] = u(f, r, at);
return { value: l, name: p };
}], function(i) {
const a = r.elFormatter;
a && (i = i.map((o) => {
let [c, l] = a(o, r, G);
return { value: c, name: l };
}));
let h = _e(o);
return h.length != o.length && console.warn("options\u4E2D\u5B58\u5728\u7A7A\u9009\u9879", o), o = h, o = o.map((f) => {
typeof f == "string" ? f = (f + "").split(r.spliterItemValue).map((_) => _.trim()) : typeof f == "number" && (f = [f, f]);
let l, p;
if (Array.isArray(f)) {
if ([l, p] = f, p === void 0 ? p = l : l === void 0 && (l = p), kt(l) || kt(p))
let u = rt(i);
return u.length != i.length && console.warn("options\u4E2D\u5B58\u5728\u7A7A\u9009\u9879", i), i = u, i = i.map((o) => {
typeof o == "string" ? o = (o + "").split(r.spliterItemValue).map((m) => m.trim()) : typeof o == "number" && (o = [o, o]);
let c, l;
if (Array.isArray(o)) {
if ([c, l] = o, l === void 0 ? l = c : c === void 0 && (c = l), pe(c) || pe(l))
throw "value\u548Cname\u4E0D\u80FD\u540C\u65F6\u4E3A\u7A7A";
} else
f ? (l = at(f, r.valueGetField), p = at(f, r.nameGetField)) : (p = "\u65E0\u6548options", l = "-");
o ? (c = G(o, r.valueGetField), l = G(o, r.nameGetField)) : (l = "\u65E0\u6548options", c = "-");
return {
[r.valueSetField]: l,
[r.nameSetField]: p
[r.valueSetField]: c,
[r.nameSetField]: l
};
}), o.forEach((f) => {
const l = f[r.valueSetField];
typeof l != "number" && typeof l != "string" && (console.warn("options\u4E2D\u5B58\u5728\u975E\u6CD5\u7684value,\u9700\u8981\u662Fnumber\u6216\u8005string", f), f[r.valueSetField] = f.value + "");
}), o;
}), i.forEach((o) => {
const c = o[r.valueSetField];
typeof c != "number" && typeof c != "string" && (console.warn("options\u4E2D\u5B58\u5728\u975E\u6CD5\u7684value,\u9700\u8981\u662Fnumber\u6216\u8005string", o), o[r.valueSetField] = o.value + "");
}), i;
}(n);
}, fa = function(t, e = null) {
if (ne(t) || Array.isArray(t))
return t;
if (typeof t != "string")
return console.warn("safeJsonParser error", t), e;
}, Zi = function(e, t = null) {
if (Oe(e) || Array.isArray(e))
return e;
if (typeof e != "string")
return console.warn("safeJsonParser error", e), t;
try {
return JSON.parse(t);
return JSON.parse(e);
} catch {
return console.log("json\u89E3\u6790\u5931\u8D25:", t), e;
return console.log("json\u89E3\u6790\u5931\u8D25:", e), t;
}
}, ha = function(t, e, r = 0, n = void 0) {
if (e.includes(t))
return t;
}, Qi = function(e, t, r = 0, n = void 0) {
if (t.includes(e))
return e;
{
let s = e[r];
let s = t[r];
return s === void 0 && (s = n), s;
}
};
function la(t) {
return new Promise(function(e, r) {
var n = typeof t == "string" ? t : URL.createObjectURL(t);
function ea(e) {
return new Promise(function(t, r) {
var n = typeof e == "string" ? e : URL.createObjectURL(e);
if (!n)

@@ -750,28 +753,28 @@ throw new Error("Must use a valid image");

s.onload = () => {
typeof t != "string" && URL.revokeObjectURL(n), e({ width: s.width, height: s.height });
}, s.onerror = (o) => {
typeof t != "string" && URL.revokeObjectURL(n), r(o);
typeof e != "string" && URL.revokeObjectURL(n), t({ width: s.width, height: s.height });
}, s.onerror = (i) => {
typeof e != "string" && URL.revokeObjectURL(n), r(i);
}, s.src = n;
});
}
function Xs() {
function ks() {
if (typeof window > "u")
return -1;
const t = window.navigator.userAgent, e = t.indexOf("MSIE ");
if (e > 0)
return parseInt(t.substring(e + 5, t.indexOf(".", e)), 10);
if (t.indexOf("Trident/") > 0) {
const s = t.indexOf("rv:");
return parseInt(t.substring(s + 3, t.indexOf(".", s)), 10);
const e = window.navigator.userAgent, t = e.indexOf("MSIE ");
if (t > 0)
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
if (e.indexOf("Trident/") > 0) {
const s = e.indexOf("rv:");
return parseInt(e.substring(s + 3, e.indexOf(".", s)), 10);
}
const n = t.indexOf("Edge/");
return n > 0 ? parseInt(t.substring(n + 5, t.indexOf(".", n)), 10) : -1;
const n = e.indexOf("Edge/");
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
}
const da = Xs() !== -1;
function Qs(...t) {
let e;
Array.isArray(arguments[0]) ? e = arguments[0] : e = Array.prototype.slice.call(arguments);
const ta = ks() !== -1;
function Ns(...e) {
let t;
Array.isArray(arguments[0]) ? t = arguments[0] : t = Array.prototype.slice.call(arguments);
let r = [];
return e.reduce(
function(n, s, o, u) {
return t.reduce(
function(n, s, i, a) {
return n.then(function() {

@@ -781,9 +784,9 @@ if (typeof s == "function")

s = s();
} catch (h) {
return u.splice(1), Promise.reject(h);
} catch (u) {
return a.splice(1), Promise.reject(u);
}
else
console.warn("map element:" + o + " not function");
return s.then((h) => {
r[o] = h;
console.warn("map element:" + i + " not function");
return s.then((u) => {
r[i] = u;
});

@@ -797,14 +800,14 @@ });

}
class pa extends Promise {
class ra extends Promise {
constructor(r = void 0) {
let n, s;
super((o, u) => {
n = o, s = u, r && r(o, u);
super((i, a) => {
n = i, s = a, r && r(i, a);
});
T(this, "__resolve");
T(this, "__reject");
y(this, "__resolve");
y(this, "__reject");
this.__resolve = n, this.__reject = s;
}
static map(r) {
return Qs(r);
return Ns(r);
}

@@ -827,9 +830,9 @@ static all(r) {

}
const ga = (t, e, r) => new Promise((n, s) => {
const o = t[Symbol.iterator](), u = (h) => {
const { value: f, done: l } = o.next();
l ? n(h) : e(h, f, t).then(u);
const na = (e, t, r) => new Promise((n, s) => {
const i = e[Symbol.iterator](), a = (u) => {
const { value: o, done: c } = i.next();
c ? n(u) : t(u, o, e).then(a);
};
u(r);
}), ut = class {
a(r);
}), B = class {
static get fastGbk() {

@@ -840,23 +843,23 @@ if (!this._fastGbk)

}
static setFaskGbk(e) {
this._fastGbk = e;
static setFaskGbk(t) {
this._fastGbk = t;
}
static encode(e) {
return ut.fastGbk.encode(e);
static encode(t) {
return B.fastGbk.encode(t);
}
static decode(e) {
if (!e || !e.length)
static decode(t) {
if (!t || !t.length)
return "";
typeof e == "string" && (/^\%/.test(e) ? e = e.split("%").splice(1) : e = e.split(","));
typeof t == "string" && (/^\%/.test(t) ? t = t.split("%").splice(1) : t = t.split(","));
let r = "";
if (Array.isArray(e))
if (typeof e[0] == "number")
r = this.fastGbk.decode(e);
if (Array.isArray(t))
if (typeof t[0] == "number")
r = this.fastGbk.decode(t);
else {
const n = e.map((s) => {
const n = t.map((s) => {
typeof s == "number" && (console.warn("decodeGBK\u4F20\u5165\u7684\u6570\u7EC4\u4E2D\u6709number\u7C7B\u578B\u7684\u6570\u636E\uFF0C\u8FD9\u662F\u4E0D\u5141\u8BB8\u7684\uFF0C\u4F1A\u5BFC\u81F4\u89E3\u7801\u9519\u8BEF"), s = s + "");
let o = parseInt(s, 16);
return isNaN(o) ? 0 : o;
let i = parseInt(s, 16);
return isNaN(i) ? 0 : i;
});
r = ut.decode(n);
r = B.decode(n);
}

@@ -866,66 +869,65 @@ return r;

};
let B = ut;
T(B, "_fastGbk");
const Nt = /* @__PURE__ */ new Map();
function va(t) {
if (t === 0)
let I = B;
y(I, "_fastGbk");
const de = /* @__PURE__ */ new Map();
function sa(e) {
if (e === 0)
return "0";
if (t === !1)
if (e === !1)
return "False";
if (!t)
if (!e)
return "";
if (typeof t != "string")
if (typeof e != "string")
throw new Error("\u65E0\u6548\u8F93\u5165");
let [e, ...r] = t;
return e.toUpperCase() + r.join("");
let [t, ...r] = e;
return t.toUpperCase() + r.join("");
}
function ma(t, e) {
if (!t || !e)
return "";
var r = 0, n = 0, s = "";
for (n = 0; n < t.length; n++) {
if (t.charCodeAt(n) > 255 ? r += 2 : r++, r > e)
return s;
s += t.charAt(n);
}
return t;
}
const ti = () => {
let t = Math.random().toString(32).substr(2);
return Nt.get(t) ? ti() : (Nt.set(t, !0), t);
const Os = () => {
let e = Math.random().toString(32).substr(2);
return de.get(e) ? Os() : (de.set(e, !0), e);
};
function ei(t) {
return B.decode(t);
function Ls(e) {
return I.decode(e);
}
function ya(t) {
return B.decode(t);
function ia(e) {
return I.decode(e);
}
function $a(t, e = "utf-8", r = 16) {
return e.toLowerCase() == "gbk" && r == 16 ? ei(t) : new TextDecoder(e).decode(
function aa(e, t = "utf-8", r = 16) {
return t.toLowerCase() == "gbk" && r == 16 ? Ls(e) : new TextDecoder(t).decode(
new Uint8Array(
t.map((n) => Number.isFinite(n) ? n : parseInt(n, r))
e.map((n) => Number.isFinite(n) ? n : parseInt(n, r))
)
);
}
function _a(t, e = "string") {
return e == "string" ? B.encode(t) : B.encode(t).split("%").splice(1);
function oa(e, t = "string") {
return t == "string" ? I.encode(e) : I.encode(e).split("%").splice(1);
}
function Ma(t) {
for (var e = 0, r = 0; r < t.length; r++) {
var n = t.charCodeAt(r);
n >= 1 && n <= 126 || 65376 <= n && n <= 65439 ? e++ : e += 2;
function ua(e) {
for (var t = 0, r = 0; r < e.length; r++) {
var n = e.charCodeAt(r);
n >= 1 && n <= 126 || 65376 <= n && n <= 65439 ? t++ : t += 2;
}
return e;
return t;
}
const Da = (t, e = "") => ne(t) || Array.isArray(t) ? JSON.stringify(t) : typeof t == "string" ? t : (console.warn("safeStringify error(\u6682\u4E0D\u652F\u6301\u7684\u6570\u636E\u7C7B\u578B)", t), e), ri = /\:\:([-\d\.]+)$/, j = class {
constructor(e, r, n = !1, s = null) {
T(this, "_name");
T(this, "_code");
T(this, "_silent");
const o = this;
o._name = e, o._code = r, o._silent = n;
const ca = (e, t = "") => Oe(e) || Array.isArray(e) ? JSON.stringify(e) : typeof e == "string" ? e : (console.warn("safeStringify error(\u6682\u4E0D\u652F\u6301\u7684\u6570\u636E\u7C7B\u578B)", e), t);
function fa(e, t, r = "...") {
for (var n = "", s = 0, i = 0; i < e.length; i++) {
var a = e[i];
if (/[\u4e00-\u9fa5]/.test(a) ? s += 2 : s += 1, s > t * 2)
break;
n += a;
}
static addNameFieldList(e) {
this.nameFieldList.push(e);
return e.length <= n.length ? e : n + r;
}
const Ps = /\:\:([-\d\.]+)$/, C = class {
constructor(t, r, n = !1, s = null) {
y(this, "_name");
y(this, "_code");
y(this, "_silent");
const i = this;
i._name = t, i._code = r, i._silent = n;
}
static addNameFieldList(t) {
this.nameFieldList.push(t);
}
get name() {

@@ -956,484 +958,278 @@ return this._name;

toString2() {
const e = this;
return `AError:${e.code}-${e.name}`;
const t = this;
return `AError:${t.code}-${t.name}`;
}
static fromErrorText(e, r = !1) {
const n = `${e}-${r ? "0" : "1"}`;
let s = Ot[n];
static fromErrorText(t, r = !1) {
const n = `${t}-${r ? "0" : "1"}`;
let s = ge[n];
if (!s) {
let o, u;
ri.test(e) ? (o = RegExp.$1, u = e.replace(`::${o}`, "")) : (o = 0, u = e), s = new j(u, o, r), Ot[n] = s;
let i, a;
Ps.test(t) ? (i = RegExp.$1, a = t.replace(`::${i}`, "")) : (i = 0, a = t), s = new C(a, i, r), ge[n] = s;
}
return s;
}
static create(e, r = !1) {
return this.fromObject(e, r);
static create(t, r = !1) {
return this.fromObject(t, r);
}
static getErrorCode(e) {
return e ? e.constructor == j ? e._code : this.fromObject(e)._code : 0;
static getErrorCode(t) {
return t ? t.constructor == C ? t._code : this.fromObject(t)._code : 0;
}
};
let it = j;
T(it, "nameFieldList", ["error", "message", "msg", "errMsg", "reason", "errorText"]), T(it, "fromObject", (e, r = !1) => {
const n = j;
if (!e)
return new j("\u672A\u77E5\u9519\u8BEF", -9999);
let P = C;
y(P, "nameFieldList", ["error", "message", "msg", "errMsg", "reason", "errorText"]), y(P, "fromObject", (t, r = !1) => {
const n = C;
if (!t)
return new C("\u672A\u77E5\u9519\u8BEF", -9999);
let s;
if (e instanceof Error)
return n.fromErrorText(e.message, r);
if (typeof e == "string")
if (/^(\[|\{)/.test(e))
if (t instanceof Error)
return n.fromErrorText(t.message, r);
if (typeof t == "string")
if (/^(\[|\{)/.test(t))
try {
e = JSON.parse(e);
t = JSON.parse(t);
} catch {
s = e;
s = t;
}
else
s = e;
s = t;
else
s = at(e, j.nameFieldList), r || (r = e.silence || e.silent);
return !s && e.data ? n.fromObject(e.data) : n.fromErrorText(s, r);
s = G(t, C.nameFieldList), r || (r = t.silence || t.silent);
return !s && t.data ? n.fromObject(t.data) : n.fromErrorText(s, r);
});
const Ot = {};
function ni(t, e, r) {
var n = -1, s = t.length;
e < 0 && (e = -e > s ? 0 : s + e), r = r > s ? s : r, r < 0 && (r += s), s = e > r ? 0 : r - e >>> 0, e >>>= 0;
for (var o = Array(s); ++n < s; )
o[n] = t[n + e];
return o;
const ge = {};
function Gs(e, t, r) {
var n = -1, s = e.length;
t < 0 && (t = -t > s ? 0 : s + t), r = r > s ? s : r, r < 0 && (r += s), s = t > r ? 0 : r - t >>> 0, t >>>= 0;
for (var i = Array(s); ++n < s; )
i[n] = e[n + t];
return i;
}
var si = ni, ii = 9007199254740991;
function ai(t) {
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= ii;
var js = Gs, Bs = 9007199254740991;
function Hs(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Bs;
}
var oi = ai, ui = Xt, ci = oi;
function fi(t) {
return t != null && ci(t.length) && !ui(t);
var Rs = Hs, qs = Te, Us = Rs;
function zs(e) {
return e != null && Us(e.length) && !qs(e);
}
var hi = fi, li = 9007199254740991, di = /^(?:0|[1-9]\d*)$/;
function pi(t, e) {
var r = typeof t;
return e = e == null ? li : e, !!e && (r == "number" || r != "symbol" && di.test(t)) && t > -1 && t % 1 == 0 && t < e;
var Ks = zs, Ws = 9007199254740991, Vs = /^(?:0|[1-9]\d*)$/;
function Xs(e, t) {
var r = typeof e;
return t = t == null ? Ws : t, !!t && (r == "number" || r != "symbol" && Vs.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var gi = pi, vi = te, mi = hi, yi = gi, $i = ft;
function _i(t, e, r) {
if (!$i(r))
var Js = Xs, Zs = Ye, Qs = Ks, ei = Js, ti = R;
function ri(e, t, r) {
if (!ti(r))
return !1;
var n = typeof e;
return (n == "number" ? mi(r) && yi(e, r.length) : n == "string" && e in r) ? vi(r[e], t) : !1;
var n = typeof t;
return (n == "number" ? Qs(r) && ei(t, r.length) : n == "string" && t in r) ? Zs(r[t], e) : !1;
}
var Mi = _i, Di = /\s/;
function bi(t) {
for (var e = t.length; e-- && Di.test(t.charAt(e)); )
var ni = ri, si = /\s/;
function ii(e) {
for (var t = e.length; t-- && si.test(e.charAt(t)); )
;
return e;
return t;
}
var wi = bi, Si = wi, Ci = /^\s+/;
function Ii(t) {
return t && t.slice(0, Si(t) + 1).replace(Ci, "");
var ai = ii, oi = ai, ui = /^\s+/;
function ci(e) {
return e && e.slice(0, oi(e) + 1).replace(ui, "");
}
var xi = Ii, Fi = xi, Lt = ft, Ti = ct, Ht = 0 / 0, Ei = /^[-+]0x[0-9a-f]+$/i, Yi = /^0b[01]+$/i, Ai = /^0o[0-7]+$/i, ki = parseInt;
function Ni(t) {
if (typeof t == "number")
return t;
if (Ti(t))
return Ht;
if (Lt(t)) {
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
t = Lt(e) ? e + "" : e;
var fi = ci, li = fi, ve = R, hi = H, me = 0 / 0, pi = /^[-+]0x[0-9a-f]+$/i, di = /^0b[01]+$/i, gi = /^0o[0-7]+$/i, vi = parseInt;
function mi(e) {
if (typeof e == "number")
return e;
if (hi(e))
return me;
if (ve(e)) {
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
e = ve(t) ? t + "" : t;
}
if (typeof t != "string")
return t === 0 ? t : +t;
t = Fi(t);
var r = Yi.test(t);
return r || Ai.test(t) ? ki(t.slice(2), r ? 2 : 8) : Ei.test(t) ? Ht : +t;
if (typeof e != "string")
return e === 0 ? e : +e;
e = li(e);
var r = di.test(e);
return r || gi.test(e) ? vi(e.slice(2), r ? 2 : 8) : pi.test(e) ? me : +e;
}
var Oi = Ni, Li = Oi, Pt = 1 / 0, Hi = 17976931348623157e292;
function Pi(t) {
if (!t)
return t === 0 ? t : 0;
if (t = Li(t), t === Pt || t === -Pt) {
var e = t < 0 ? -1 : 1;
return e * Hi;
var yi = mi, _i = yi, ye = 1 / 0, $i = 17976931348623157e292;
function bi(e) {
if (!e)
return e === 0 ? e : 0;
if (e = _i(e), e === ye || e === -ye) {
var t = e < 0 ? -1 : 1;
return t * $i;
}
return t === t ? t : 0;
return e === e ? e : 0;
}
var ji = Pi, Gi = ji;
function Bi(t) {
var e = Gi(t), r = e % 1;
return e === e ? r ? e - r : e : 0;
var Di = bi, Mi = Di;
function wi(e) {
var t = Mi(e), r = t % 1;
return t === t ? r ? t - r : t : 0;
}
var Ri = Bi, Ui = si, qi = Mi, zi = Ri, Wi = Math.ceil, Ji = Math.max;
function Vi(t, e, r) {
(r ? qi(t, e, r) : e === void 0) ? e = 1 : e = Ji(zi(e), 0);
var n = t == null ? 0 : t.length;
if (!n || e < 1)
var Ci = wi, Ii = js, Fi = ni, xi = Ci, Si = Math.ceil, Ei = Math.max;
function Ti(e, t, r) {
(r ? Fi(e, t, r) : t === void 0) ? t = 1 : t = Ei(xi(t), 0);
var n = e == null ? 0 : e.length;
if (!n || t < 1)
return [];
for (var s = 0, o = 0, u = Array(Wi(n / e)); s < n; )
u[o++] = Ui(t, s, s += e);
return u;
for (var s = 0, i = 0, a = Array(Si(n / t)); s < n; )
a[i++] = Ii(e, s, s += t);
return a;
}
var se = Vi;
class jt {
static strip(e, r = 12) {
return +parseFloat(e.toPrecision(r));
var Le = Ti;
class _e {
static strip(t, r = 12) {
return +parseFloat(t.toPrecision(r));
}
static hexString2DecLs(e) {
return se(e, 2).map((r) => parseInt(r.join(""), 16));
static hexString2DecLs(t) {
return Le(t, 2).map((r) => parseInt(r.join(""), 16));
}
static preppendZero(e, r = 2) {
return ie(r, e);
static preppendZero(t, r = 2) {
return Pe(r, t);
}
static getDec(e) {
return e - Math.trunc(e);
static getDec(t) {
return t - Math.trunc(t);
}
static toDEC(e, r = 16) {
return Array.isArray(e) ? e.map((n) => parseInt(n, r)) : parseInt(e, r);
static toDEC(t, r = 16) {
return Array.isArray(t) ? t.map((n) => parseInt(n, r)) : parseInt(t, r);
}
static toHEX(e, r = 2, n = 10) {
if (Array.isArray(e))
return e.map((s) => Array.isArray(s) ? s[0] : this.toHEX(s, length, n));
if (/[a-zA-Z]/.test(e + ""))
throw new Error("\u65E0\u6CD5\u8F6C\u6362\u4E3AHEX:" + e);
return e = parseInt(e + "", n), e >= Math.pow(2, 8) && (r = 4), Ki(e, r)[0];
static toHEX(t, r = 2, n = 10) {
if (Array.isArray(t))
return t.map((s) => Array.isArray(s) ? s[0] : this.toHEX(s, length, n));
if (/[a-zA-Z]/.test(t + ""))
throw new Error("\u65E0\u6CD5\u8F6C\u6362\u4E3AHEX:" + t);
return t = parseInt(t + "", n), t >= Math.pow(2, 8) && (r = 4), Ai(t, r)[0];
}
}
function Ki(t, e = 2) {
let r = parseInt(t + "").toString(16).toUpperCase(), n = se(r, e).map((o) => o.join(""));
const s = ie(e, n[0]);
function Ai(e, t = 2) {
let r = parseInt(e + "").toString(16).toUpperCase(), n = Le(r, t).map((i) => i.join(""));
const s = Pe(t, n[0]);
return n.splice(0, 1, s), n;
}
function ie(t, e) {
let r = t - (e + "").length;
return r <= 0 ? e + "" : Array(r).fill("0").join("") + (e + "");
function Pe(e, t) {
let r = e - (t + "").length;
return r <= 0 ? t + "" : Array(r).fill("0").join("") + (t + "");
}
function Zi(t, e = 12) {
return typeof t != "number" && (t = 0), +parseFloat(t.toPrecision(e));
function Yi(e, t = 12) {
return typeof e != "number" && (e = 0), +parseFloat(e.toPrecision(t));
}
function ba(t, e = 2) {
typeof t != "number" && (t = 0);
const r = Zi(t).toFixed(e);
function la(e, t = 2) {
typeof e != "number" && (e = 0);
const r = Yi(e).toFixed(t);
return parseFloat(r);
}
const wa = function(t, e = Number.MAX_SAFE_INTEGER, r = 0) {
const n = typeof t == "string";
let s = n ? jt.toDEC(t) : t;
return typeof r == "number" && (s = Math.max(r, s)), typeof e == "number" && (s = Math.min(e, s)), n ? jt.toHEX(s) : s;
}, Sa = (t, e = 0) => {
if (typeof t == "number")
return t;
const s = ((t + "").includes(".") ? parseFloat : parseInt)(t);
return isNaN(s) ? e : s;
const ha = function(e, t = Number.MAX_SAFE_INTEGER, r = 0) {
const n = typeof e == "string";
let s = n ? _e.toDEC(e) : e;
return typeof r == "number" && (s = Math.max(r, s)), typeof t == "number" && (s = Math.min(t, s)), n ? _e.toHEX(s) : s;
}, pa = (e, t = 0) => {
if (typeof e == "number")
return e;
const s = ((e + "").includes(".") ? parseFloat : parseInt)(e);
return isNaN(s) ? t : s;
};
function Ca(t, e, r) {
function n(u, h) {
return Math.floor(Math.random() * (h - u + 1)) + u;
function da(e, t, r) {
function n(a, u) {
return Math.floor(Math.random() * (u - a + 1)) + a;
}
function s() {
const u = [];
let h = t;
for (let f = 0; f < e - 1; f++) {
const l = n(r, h - r * (e - 1 - f));
u.push(l), h -= l;
const a = [];
let u = e;
for (let o = 0; o < t - 1; o++) {
const c = n(r, u - r * (t - 1 - o));
a.push(c), u -= c;
}
return u.push(h), u;
return a.push(u), a;
}
let o = 0;
for (; o < 5; ) {
const u = s();
if (u.every((h) => h >= r))
return u;
o++;
let i = 0;
for (; i < 5; ) {
const a = s();
if (a.every((u) => u >= r))
return a;
i++;
}
return [];
}
var ae = { exports: {} };
(function(t, e) {
var Ge = { exports: {} };
(function(e, t) {
(function(r, n) {
t.exports = n();
})(G, function() {
var r = 1e3, n = 6e4, s = 36e5, o = "millisecond", u = "second", h = "minute", f = "hour", l = "day", p = "week", _ = "month", M = "quarter", D = "year", C = "date", E = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|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, A = { 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("_") }, x = function(m, d, i) {
var c = String(m);
return !c || c.length >= d ? m : "" + Array(d + 1 - c.length).join(i) + m;
}, nt = { s: x, z: function(m) {
var d = -m.utcOffset(), i = Math.abs(d), c = Math.floor(i / 60), a = i % 60;
return (d <= 0 ? "+" : "-") + x(c, 2, "0") + ":" + x(a, 2, "0");
}, m: function m(d, i) {
if (d.date() < i.date())
return -m(i, d);
var c = 12 * (i.year() - d.year()) + (i.month() - d.month()), a = d.clone().add(c, _), g = i - a < 0, v = d.clone().add(c + (g ? -1 : 1), _);
return +(-(c + (i - a) / (g ? a - v : v - a)) || 0);
}, a: function(m) {
return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
}, p: function(m) {
return { M: _, y: D, w: p, d: l, D: C, h: f, m: h, s: u, ms: o, Q: M }[m] || String(m || "").toLowerCase().replace(/s$/, "");
}, u: function(m) {
return m === void 0;
} }, P = "en", k = {};
k[P] = A;
var Z = function(m) {
return m instanceof X;
}, U = function m(d, i, c) {
var a;
if (!d)
return P;
if (typeof d == "string") {
var g = d.toLowerCase();
k[g] && (a = g), i && (k[g] = i, a = g);
var v = d.split("-");
if (!a && v.length > 1)
return m(v[0]);
} else {
var y = d.name;
k[y] = d, a = y;
}
return !c && a && (P = a), a || !c && P;
}, b = function(m, d) {
if (Z(m))
return m.clone();
var i = typeof d == "object" ? d : {};
return i.date = m, i.args = arguments, new X(i);
}, $ = nt;
$.l = U, $.i = Z, $.w = function(m, d) {
return b(m, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
};
var X = function() {
function m(i) {
this.$L = U(i.locale, null, !0), this.parse(i);
}
var d = m.prototype;
return d.parse = function(i) {
this.$d = function(c) {
var a = c.date, g = c.utc;
if (a === null)
return new Date(NaN);
if ($.u(a))
return new Date();
if (a instanceof Date)
return new Date(a);
if (typeof a == "string" && !/Z$/i.test(a)) {
var v = a.match(O);
if (v) {
var y = v[2] - 1 || 0, S = (v[7] || "0").substring(0, 3);
return g ? new Date(Date.UTC(v[1], y, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, S)) : new Date(v[1], y, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, S);
}
}
return new Date(a);
}(i), this.$x = i.x || {}, this.init();
}, d.init = function() {
var i = this.$d;
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
}, d.$utils = function() {
return $;
}, d.isValid = function() {
return this.$d.toString() !== E;
}, d.isSame = function(i, c) {
var a = b(i);
return this.startOf(c) <= a && a <= this.endOf(c);
}, d.isAfter = function(i, c) {
return b(i) < this.startOf(c);
}, d.isBefore = function(i, c) {
return this.endOf(c) < b(i);
}, d.$g = function(i, c, a) {
return $.u(i) ? this[c] : this.set(a, i);
}, d.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, d.valueOf = function() {
return this.$d.getTime();
}, d.startOf = function(i, c) {
var a = this, g = !!$.u(c) || c, v = $.p(i), y = function(q, F) {
var H = $.w(a.$u ? Date.UTC(a.$y, F, q) : new Date(a.$y, F, q), a);
return g ? H : H.endOf(l);
}, S = function(q, F) {
return $.w(a.toDate()[q].apply(a.toDate("s"), (g ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), a);
}, w = this.$W, I = this.$M, L = this.$D, N = "set" + (this.$u ? "UTC" : "");
switch (v) {
case D:
return g ? y(1, 0) : y(31, 11);
case _:
return g ? y(1, I) : y(0, I + 1);
case p:
var Q = this.$locale().weekStart || 0, tt = (w < Q ? w + 7 : w) - Q;
return y(g ? L - tt : L + (6 - tt), I);
case l:
case C:
return S(N + "Hours", 0);
case f:
return S(N + "Minutes", 1);
case h:
return S(N + "Seconds", 2);
case u:
return S(N + "Milliseconds", 3);
default:
return this.clone();
}
}, d.endOf = function(i) {
return this.startOf(i, !1);
}, d.$set = function(i, c) {
var a, g = $.p(i), v = "set" + (this.$u ? "UTC" : ""), y = (a = {}, a[l] = v + "Date", a[C] = v + "Date", a[_] = v + "Month", a[D] = v + "FullYear", a[f] = v + "Hours", a[h] = v + "Minutes", a[u] = v + "Seconds", a[o] = v + "Milliseconds", a)[g], S = g === l ? this.$D + (c - this.$W) : c;
if (g === _ || g === D) {
var w = this.clone().set(C, 1);
w.$d[y](S), w.init(), this.$d = w.set(C, Math.min(this.$D, w.daysInMonth())).$d;
} else
y && this.$d[y](S);
return this.init(), this;
}, d.set = function(i, c) {
return this.clone().$set(i, c);
}, d.get = function(i) {
return this[$.p(i)]();
}, d.add = function(i, c) {
var a, g = this;
i = Number(i);
var v = $.p(c), y = function(I) {
var L = b(g);
return $.w(L.date(L.date() + Math.round(I * i)), g);
};
if (v === _)
return this.set(_, this.$M + i);
if (v === D)
return this.set(D, this.$y + i);
if (v === l)
return y(1);
if (v === p)
return y(7);
var S = (a = {}, a[h] = n, a[f] = s, a[u] = r, a)[v] || 1, w = this.$d.getTime() + i * S;
return $.w(w, this);
}, d.subtract = function(i, c) {
return this.add(-1 * i, c);
}, d.format = function(i) {
var c = this, a = this.$locale();
if (!this.isValid())
return a.invalidDate || E;
var g = i || "YYYY-MM-DDTHH:mm:ssZ", v = $.z(this), y = this.$H, S = this.$m, w = this.$M, I = a.weekdays, L = a.months, N = function(F, H, gt, st) {
return F && (F[H] || F(c, g)) || gt[H].slice(0, st);
}, Q = function(F) {
return $.s(y % 12 || 12, F, "0");
}, tt = a.meridiem || function(F, H, gt) {
var st = F < 12 ? "AM" : "PM";
return gt ? st.toLowerCase() : st;
}, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: w + 1, MM: $.s(w + 1, 2, "0"), MMM: N(a.monthsShort, w, L, 3), MMMM: N(L, w), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: N(a.weekdaysMin, this.$W, I, 2), ddd: N(a.weekdaysShort, this.$W, I, 3), dddd: I[this.$W], H: String(y), HH: $.s(y, 2, "0"), h: Q(1), hh: Q(2), a: tt(y, S, !0), A: tt(y, S, !1), m: String(S), mm: $.s(S, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: v };
return g.replace(R, function(F, H) {
return H || q[F] || v.replace(":", "");
});
}, d.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, d.diff = function(i, c, a) {
var g, v = $.p(c), y = b(i), S = (y.utcOffset() - this.utcOffset()) * n, w = this - y, I = $.m(this, y);
return I = (g = {}, g[D] = I / 12, g[_] = I, g[M] = I / 3, g[p] = (w - S) / 6048e5, g[l] = (w - S) / 864e5, g[f] = w / s, g[h] = w / n, g[u] = w / r, g)[v] || w, a ? I : $.a(I);
}, d.daysInMonth = function() {
return this.endOf(_).$D;
}, d.$locale = function() {
return k[this.$L];
}, d.locale = function(i, c) {
if (!i)
return this.$L;
var a = this.clone(), g = U(i, c, !0);
return g && (a.$L = g), a;
}, d.clone = function() {
return $.w(this.$d, this);
}, d.toDate = function() {
return new Date(this.valueOf());
}, d.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, d.toISOString = function() {
return this.$d.toISOString();
}, d.toString = function() {
return this.$d.toUTCString();
}, m;
}(), pt = X.prototype;
return b.prototype = pt, [["$ms", o], ["$s", u], ["$m", h], ["$H", f], ["$W", l], ["$M", _], ["$y", D], ["$D", C]].forEach(function(m) {
pt[m[1]] = function(d) {
return this.$g(d, m[0], m[1]);
};
}), b.extend = function(m, d) {
return m.$i || (m(d, X, b), m.$i = !0), b;
}, b.locale = U, b.isDayjs = Z, b.unix = function(m) {
return b(1e3 * m);
}, b.en = k[P], b.Ls = k, b.p = {}, b;
});
})(ae);
const Y = ae.exports;
var oe = { exports: {} };
(function(t, e) {
(function(r, n) {
t.exports = n();
})(G, function() {
e.exports = n();
})(E, function() {
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
return function(n, s, o) {
var u = s.prototype, h = u.format;
o.en.formats = r, u.format = function(f) {
f === void 0 && (f = "YYYY-MM-DDTHH:mm:ssZ");
var l = this.$locale().formats, p = function(_, M) {
return _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, C, E) {
var O = E && E.toUpperCase();
return C || M[E] || r[E] || M[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, A, x) {
return A || x.slice(1);
return function(n, s, i) {
var a = s.prototype, u = a.format;
i.en.formats = r, a.format = function(o) {
o === void 0 && (o = "YYYY-MM-DDTHH:mm:ssZ");
var c = this.$locale().formats, l = function(m, d) {
return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(g, b, D) {
var F = D && D.toUpperCase();
return b || d[D] || r[D] || d[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(O, M, _) {
return M || _.slice(1);
});
});
}(f, l === void 0 ? {} : l);
return h.call(this, p);
}(o, c === void 0 ? {} : c);
return u.call(this, l);
};
};
});
})(oe);
const Xi = oe.exports;
var ue = { exports: {} };
(function(t, e) {
})(Ge);
const ki = Ge.exports;
var je = { exports: {} };
(function(e, t) {
(function(r, n) {
t.exports = n();
})(G, function() {
e.exports = n();
})(E, function() {
var r = "week", n = "year";
return function(s, o, u) {
var h = o.prototype;
h.week = function(f) {
if (f === void 0 && (f = null), f !== null)
return this.add(7 * (f - this.week()), "day");
var l = this.$locale().yearStart || 1;
return function(s, i, a) {
var u = i.prototype;
u.week = function(o) {
if (o === void 0 && (o = null), o !== null)
return this.add(7 * (o - this.week()), "day");
var c = this.$locale().yearStart || 1;
if (this.month() === 11 && this.date() > 25) {
var p = u(this).startOf(n).add(1, n).date(l), _ = u(this).endOf(r);
if (p.isBefore(_))
var l = a(this).startOf(n).add(1, n).date(c), m = a(this).endOf(r);
if (l.isBefore(m))
return 1;
}
var M = u(this).startOf(n).date(l).startOf(r).subtract(1, "millisecond"), D = this.diff(M, r, !0);
return D < 0 ? u(this).startOf("week").week() : Math.ceil(D);
}, h.weeks = function(f) {
return f === void 0 && (f = null), this.week(f);
var d = a(this).startOf(n).date(c).startOf(r).subtract(1, "millisecond"), g = this.diff(d, r, !0);
return g < 0 ? a(this).startOf("week").week() : Math.ceil(g);
}, u.weeks = function(o) {
return o === void 0 && (o = null), this.week(o);
};
};
});
})(ue);
const Qi = ue.exports;
Y.extend(Xi);
Y.extend(Qi);
const rt = function(t) {
const e = new Date();
if (t) {
if (t instanceof Date)
return t;
if (typeof t == "number") {
const r = t + "", n = r.split(""), s = parseInt(n.splice(0, 4).join("")), o = parseInt(n.splice(0, 2).join("")) - 1, u = parseInt(n.splice(0, 2).join(""));
return r.length == 4 ? (e.setFullYear(s), e) : r.length == 6 ? (e.setFullYear(s), e.setMonth(o - 1), e) : r.length == 8 ? (e.setFullYear(s), e.setMonth(o), e.setDate(u), e) : new Date(t);
} else if (typeof t == "string") {
if (t = t.trim(), /^\d+$/.test(t))
return rt(parseInt(t));
})(je);
const Ni = je.exports;
$.extend(ki);
$.extend(Ni);
const N = function(e) {
const t = new Date();
if (e) {
if (e instanceof Date)
return e;
if (typeof e == "number") {
const r = e + "", n = r.split(""), s = parseInt(n.splice(0, 4).join("")), i = parseInt(n.splice(0, 2).join("")) - 1, a = parseInt(n.splice(0, 2).join(""));
return r.length == 4 ? (t.setFullYear(s), t) : r.length == 6 ? (t.setFullYear(s), t.setMonth(i - 1), t) : r.length == 8 ? (t.setFullYear(s), t.setMonth(i), t.setDate(a), t) : new Date(e);
} else if (typeof e == "string") {
if (e = e.trim(), /^\d+$/.test(e))
return N(parseInt(e));
{
const r = t.split(/[-:\sTZ\+年月日时分秒]/), [
n = e.getFullYear(),
const r = e.split(/[-:\sTZ\+年月日时分秒]/), [
n = t.getFullYear(),
s = 0 + 1,
o = 1,
i = 1,
a = 0,
u = 0,
h = 0,
f = 0
] = r, l = parseInt([
o = 0
] = r, c = parseInt([
n,
(s + "").padStart(2, "0"),
(o + "").padStart(2, "0")
(i + "").padStart(2, "0")
].join(""));
if (r.length <= 3)
return rt(l);
return N(c);
{
const p = rt(l);
if (!p)
const l = N(c);
if (!l)
throw new Error("\u65E0\u6CD5\u89E3\u6790\u7684\u65E5\u671F\u683C\u5F0F");
return p.setHours(u, h, f), p;
return l.setHours(a, u, o), l;
}

@@ -1444,48 +1240,48 @@ }

return new Date();
}, ce = rt;
function Ia(t) {
var e = "";
if (typeof t == "string") {
let r = t.split("-");
r.length == 1 ? t = parseInt(t) : r.length == 2 ? e = t + "-01" : e = t;
const n = ce(e);
return Gt(n);
} else if (typeof t == "number") {
}, Be = N;
function ga(e) {
var t = "";
if (typeof e == "string") {
let r = e.split("-");
r.length == 1 ? e = parseInt(e) : r.length == 2 ? t = e + "-01" : t = e;
const n = Be(t);
return $e(n);
} else if (typeof e == "number") {
const r = new Date();
return r.setMonth(t - 1), Gt(r);
return r.setMonth(e - 1), $e(r);
} else
throw new Error("\u8BF7\u4F20\u5165\u6709\u6548\u7C7B\u578B");
}
function Gt(t) {
return t = new Date(ce(t).getTime()), t.add(1, "month"), t.setDate(0), t.getDate();
function $e(e) {
return e = new Date(Be(e).getTime()), e.add(1, "month"), e.setDate(0), e.getDate();
}
const ta = (t, e = !0) => {
typeof t == "string" && (t = Y(t).toDate());
const r = t.getDay(), n = new Date(t);
n.setDate(t.getDate() - r), n.setHours(0, 0, 0, 0);
const Oi = (e, t = !0) => {
typeof e == "string" && (e = $(e).toDate());
const r = e.getDay(), n = new Date(e);
n.setDate(e.getDate() - r), n.setHours(0, 0, 0, 0);
const s = new Date(n);
s.setDate(n.getDate() + 6), s.setHours(23, 59, 59, 999);
const o = Y(t).week(), u = Y(n).format("YYYY-MM-DD");
return e && (n.setDate(n.getDate() + 1), s.setDate(s.getDate() + 1)), {
startYYYYMMDD: u,
const i = $(e).week(), a = $(n).format("YYYY-MM-DD");
return t && (n.setDate(n.getDate() + 1), s.setDate(s.getDate() + 1)), {
startYYYYMMDD: a,
start: n,
end: s,
thInYear: o
thInYear: i
};
}, ea = (t, e, r, n = !0) => {
const o = new Date(t, e - 1, 1).getDay(), u = 1 + (r - 1) * 7 - o, h = n ? u + 1 : u;
return new Date(t, e - 1, h);
}, ra = (t) => {
typeof t == "string" && (t = Y(t).toDate());
const e = t.getDate(), r = t.getDay();
return Math.ceil((e + 6 - r) / 7);
}, Li = (e, t, r, n = !0) => {
const i = new Date(e, t - 1, 1).getDay(), a = 1 + (r - 1) * 7 - i, u = n ? a + 1 : a;
return new Date(e, t - 1, u);
}, Pi = (e) => {
typeof e == "string" && (e = $(e).toDate());
const t = e.getDate(), r = e.getDay();
return Math.ceil((t + 6 - r) / 7);
};
class z {
constructor(e) {
T(this, "_start");
T(this, "_end");
T(this, "_thInYear");
T(this, "_thInMonth");
const { start: r, end: n, thInYear: s } = ta(e);
this._start = r, this._end = n, this._thInYear = s, this._thInMonth = ra(r);
class x {
constructor(t) {
y(this, "_start");
y(this, "_end");
y(this, "_thInYear");
y(this, "_thInMonth");
const { start: r, end: n, thInYear: s } = Oi(t);
this._start = r, this._end = n, this._thInYear = s, this._thInMonth = Pi(r);
}

@@ -1496,3 +1292,3 @@ get start() {

get startStr() {
return Y(this.start).format("YYYY-MM-DD");
return $(this.start).format("YYYY-MM-DD");
}

@@ -1503,3 +1299,3 @@ get end() {

get endStr() {
return Y(this.end).format("YYYY-MM-DD");
return $(this.end).format("YYYY-MM-DD");
}

@@ -1518,5 +1314,5 @@ get thInYear() {

}
static fromYYYYMMThStr(e) {
const [r, n, s] = e.split(/[^\d]+/).filter((u) => u), o = ea(parseInt(r), parseInt(n), parseInt(s));
return new z(o);
static fromYYYYMMThStr(t) {
const [r, n, s] = t.split(/[^\d]+/).filter((a) => a), i = Li(parseInt(r), parseInt(n), parseInt(s));
return new x(i);
}

@@ -1529,17 +1325,17 @@ get YYYYMM() {

}
contains(e) {
return e >= this.start && e <= this.end;
contains(t) {
return t >= this.start && t <= this.end;
}
nextDateWeek() {
const e = new Date(this.end.getFullYear(), this.end.getMonth(), this.end.getDate() + 1);
return new z(e);
const t = new Date(this.end.getFullYear(), this.end.getMonth(), this.end.getDate() + 1);
return new x(t);
}
prevDateWeek() {
const e = new Date(this.start.getFullYear(), this.start.getMonth(), this.start.getDate() - 1);
return new z(e);
const t = new Date(this.start.getFullYear(), this.start.getMonth(), this.start.getDate() - 1);
return new x(t);
}
static getListfromRange(e, r) {
typeof e == "string" && (e = Y(e).toDate()), typeof r == "string" && (r = Y(r).toDate()), e > r && ([e, r] = [r, e]);
static getListfromRange(t, r) {
typeof t == "string" && (t = $(t).toDate()), typeof r == "string" && (r = $(r).toDate()), t > r && ([t, r] = [r, t]);
const n = [];
let s = new z(e);
let s = new x(t);
for (; !s.contains(r); )

@@ -1549,5 +1345,5 @@ n.push(s), s = s.nextDateWeek();

}
static from_yyyy_th(e, r) {
const n = Y(`${e}-01-01`).week(parseInt(r + ""));
return new z(n.toDate());
static from_yyyy_th(t, r) {
const n = $(`${t}-01-01`).week(parseInt(r + ""));
return new x(n.toDate());
}

@@ -1559,17 +1355,17 @@ toString() {

}
const na = {};
class W extends Date {
const Gi = {};
class S extends Date {
constructor(...r) {
super(...r);
T(this, "__currentMonth", !1);
y(this, "__currentMonth", !1);
}
static fromYYYY_MM(r) {
var n = r.replace(/_/g, "-") + "-01";
return new W(n);
return new S(n);
}
static fromDate(r) {
return new W(r.getTime());
return new S(r.getTime());
}
static fromAny(r) {
return this.fromDate(rt(r));
return this.fromDate(N(r));
}

@@ -1621,3 +1417,3 @@ diff(r, n = "day") {

clone() {
return new W(this.getTime());
return new S(this.getTime());
}

@@ -1653,5 +1449,5 @@ setTimeByDate(r) {

let n;
typeof r == "number" ? n = new W(r) : n = W.prototype.clone.call(r);
let s = n.clone().setToDayStart(), o = this.clone().setToDayStart();
return s.getTime() == o.getTime();
typeof r == "number" ? n = new S(r) : n = S.prototype.clone.call(r);
let s = n.clone().setToDayStart(), i = this.clone().setToDayStart();
return s.getTime() == i.getTime();
}

@@ -1669,4 +1465,4 @@ clearTime() {

formatToDay(r = "-") {
const n = this.getFullYear(), s = this.getMonth() + 1, o = this.getDate();
return `${n}${r}${s}${r}${o}`;
const n = this.getFullYear(), s = this.getMonth() + 1, i = this.getDate();
return `${n}${r}${s}${r}${i}`;
}

@@ -1676,104 +1472,104 @@ getCalendarDateList(r = !1) {

typeof r > "u" && (r = !0);
var s = na, o = this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + (r ? "0" : "1");
if (s[o])
return s[o];
let u, h;
r ? (u = 0, h = 6) : (u = 1, h = 7);
let f = [], l = this.clone().setToMonthStart(), p = this.clone().setToMonthEnd();
var _ = l.getDay(), M = p.getDay();
let D = l.clone().add(u - _ - 1, "day"), C = p.clone().add(h - M + 0, "day"), E = C.diff(D, "day"), O = 0, R = n.getMonth();
for (; O++ < E; ) {
let A = D.clone().add(O, "day");
A.getMonth() == R && (A.__currentMonth = !0), f.push(A);
var s = Gi, i = this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + (r ? "0" : "1");
if (s[i])
return s[i];
let a, u;
r ? (a = 0, u = 6) : (a = 1, u = 7);
let o = [], c = this.clone().setToMonthStart(), l = this.clone().setToMonthEnd();
var m = c.getDay(), d = l.getDay();
let g = c.clone().add(a - m - 1, "day"), b = l.clone().add(u - d + 0, "day"), D = b.diff(g, "day"), F = 0, O = n.getMonth();
for (; F++ < D; ) {
let M = g.clone().add(F, "day");
M.getMonth() == O && (M.__currentMonth = !0), o.push(M);
}
return s[o] = {
list: f,
firstDateInMonth: l,
lastDateInMonth: p,
firstDateInView: D,
lastDateInView: C
return s[i] = {
list: o,
firstDateInMonth: c,
lastDateInMonth: l,
firstDateInView: g,
lastDateInView: b
};
}
}
const sa = (t) => t.replace(/[^\x00-\xff]/g, "**").length, xa = (t, e) => (r, n) => r.trim().split(`
`).map((o) => {
const u = o.trim();
return u.startsWith("//") ? "" : u;
}).filter((o) => !!o).map((o) => {
const [u, h, ...f] = o.split(/\s+/), p = {
minWidth: sa(h) * 7 + 45,
key: u,
title: h,
const ji = (e) => e.replace(/[^\x00-\xff]/g, "**").length, va = (e, t) => (r, n) => r.trim().split(`
`).map((i) => {
const a = i.trim();
return a.startsWith("//") ? "" : a;
}).filter((i) => !!i).map((i) => {
const [a, u, ...o] = i.split(/\s+/), l = {
minWidth: ji(u) * 7 + 45,
key: a,
title: u,
visible: !1,
sum: !1
};
f.forEach((M) => {
if (["center", "left"].includes(M))
p.align = M;
else if (/^(\+|\-)?(\d+)$/.test(M)) {
const D = RegExp.$1, C = parseInt(RegExp.$2);
D === "+" ? p.maxWidth = C : D === "-" ? p.minWidth = C : p.width = C;
} else if (["show", "hide"].includes(M))
p.visible = M == "show";
else if (M === "__sum__")
p.sum = !0;
else if (M.startsWith("#"))
M == "#" ? p.slot = p.key : p.slot = M.substring(1);
o.forEach((d) => {
if (["center", "left"].includes(d))
l.align = d;
else if (/^(\+|\-)?(\d+)$/.test(d)) {
const g = RegExp.$1, b = parseInt(RegExp.$2);
g === "+" ? l.maxWidth = b : g === "-" ? l.minWidth = b : l.width = b;
} else if (["show", "hide"].includes(d))
l.visible = d == "show";
else if (d === "__sum__")
l.sum = !0;
else if (d.startsWith("#"))
d == "#" ? l.slot = l.key : l.slot = d.substring(1);
else {
const D = e[M];
D ? p.render = D : console.warn("\u672A\u5B9A\u4E49\u7684render:", M);
const g = t[d];
g ? l.render = g : console.warn("\u672A\u5B9A\u4E49\u7684render:", d);
}
});
const _ = t[u];
return _ && Object.assign(p, _), p.getValue = function(M) {
return p.render ? p.render(null, { row: M, column: p }, !0) : M[p.key];
}, n ? n(p, o) : p;
const m = e[a];
return m && Object.assign(l, m), l.getValue = function(d) {
return l.render ? l.render(null, { row: d, column: l }, !0) : d[l.key];
}, n ? n(l, i) : l;
});
function Fa(t, e, r, n, s) {
var o = e.width, u = e.height;
t.save(), t.translate(r, n), t.rotate(s), t.drawImage(e, -o / 2, -u / 2, o, u), t.restore();
function ma(e, t, r, n, s) {
var i = t.width, a = t.height;
e.save(), e.translate(r, n), e.rotate(s), e.drawImage(t, -i / 2, -a / 2, i, a), e.restore();
}
export {
it as AError,
pa as BPromise,
W as Date2,
z as DateWeek,
jt as Math2,
rt as all2date,
ca as all2valueName,
ga as asyncReduce,
$a as byteArrayToString,
Y as dayjs2,
Fa as drawRotatedImage,
_a as encodeStringToGBK,
va as firstLetterUppercase,
ya as fromGBKArrayToString,
Ma as getByteLength,
Gt as getDayLengthInMonth,
Ia as getDayMountByMonth,
la as getImageSize,
ea as getWeekStartDateFromYYYYMMThInMonth,
ra as getWeekThInMonth,
da as isIE,
ne as isPlainObject,
aa as makeTreeDataHelper,
ce as parse2date,
ie as preppendZero,
Qs as promiseMap,
Ca as randomSegmentation,
ti as randomString,
Zs as safeBindToObject,
fa as safeJsonParser,
Sa as safeParseNumber,
Da as safeStringify,
ha as safeValueInList,
wa as safeValueInRange,
ba as stripAndFixNumber,
Zi as stripNumber,
ma as stripString,
At as travelTree,
ua as treeEach,
oa as treeListToFlatList,
at as tryGet,
xa as viewuiColumnFactory
P as AError,
ra as BPromise,
S as Date2,
x as DateWeek,
_e as Math2,
N as all2date,
Ji as all2valueName,
na as asyncReduce,
aa as byteArrayToString,
$a as dayjs2,
ma as drawRotatedImage,
oa as encodeStringToGBK,
sa as firstLetterUppercase,
ia as fromGBKArrayToString,
ua as getByteLength,
$e as getDayLengthInMonth,
ga as getDayMountByMonth,
ea as getImageSize,
Li as getWeekStartDateFromYYYYMMThInMonth,
Pi as getWeekThInMonth,
ta as isIE,
Oe as isPlainObject,
Wi as makeTreeDataHelper,
Be as parse2date,
Pe as preppendZero,
Ns as promiseMap,
da as randomSegmentation,
Os as randomString,
Ys as safeBindToObject,
Zi as safeJsonParser,
pa as safeParseNumber,
ca as safeStringify,
Qi as safeValueInList,
ha as safeValueInRange,
la as stripAndFixNumber,
Yi as stripNumber,
fa as stripString,
he as travelTree,
Xi as treeEach,
Vi as treeListToFlatList,
G as tryGet,
va as viewuiColumnFactory
};

@@ -1,3 +0,3 @@

(function(g,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(g=typeof globalThis<"u"?globalThis:g||self,E(g.index={}))})(this,function(g){"use strict";var Ta=Object.defineProperty;var Fa=(g,E,x)=>E in g?Ta(g,E,{enumerable:!0,configurable:!0,writable:!0,value:x}):g[E]=x;var A=(g,E,x)=>(Fa(g,typeof E!="symbol"?E+"":E,x),x);function E(t,e){this.flags=t,this.cursor=e}E.prototype={skip:function(){this.flags.skip=!0},break:function(){this.flags.break=!0},remove:function(){this.flags.remove=!0},replace:function(e){this.flags.replace=e},get parent(){return this.cursor.parent},get depth(){return this.cursor.depth},get level(){return this.cursor.depth+1},get index(){return this.cursor.index}};function x(t,e){return new E(t,e)}function At(t){this.xs=[t],this.top=0}At.prototype={push:function(e){this.top++,this.top<this.xs.length?this.xs[this.top]=e:this.xs.push(e)},pushArrayReverse:function(e){for(var r=e.length-1;r>=0;r--)this.push(e[r])},pop:function(){var e=this.peek();return this.top--,e},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===-1}};function ut(t){return new At(t)}function kt(){this.depth=0,this.stack=ut({node:null,index:-1})}kt.prototype={moveDown:function(e){this.depth++,this.stack.push({node:e,index:0})},moveUp:function(){this.depth--,this.stack.pop()},moveNext:function(){this.stack.peek().index++},get parent(){return this.stack.peek().node},get index(){return this.stack.peek().index}};function Ot(){return new kt}function Nt(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}Nt.prototype={reset:function(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}};function vt(){return new Nt}function yt(t){return t&&t.length!==0}function ve(t,e,r){for(var n=vt(),s=Ot(),o=x(n,s),u=ut(t),l=Object.assign({},t);!u.isEmpty();){var f=u.pop();if(f===l){s.moveUp();continue}if(n.reset(),e(f,o),n.break)break;if(!n.remove&&(s.moveNext(),!n.skip)){n.replace&&(f=n.replace);var h=r(f);yt(h)&&(u.push(l),u.pushArrayReverse(h),s.moveDown(f))}}}function ye(t,e,r){for(var n=vt(),s=Ot(),o=x(n,s),u=ut(t),l=ut(null);!u.isEmpty();){var f=u.peek(),h=l.peek(),p=r(f);if(n.reset(),f===h||!yt(p)){if(f===h&&(l.pop(),s.moveUp()),u.pop(),e(f,o),n.break)break;if(n.remove)continue;s.moveNext()}else l.push(f),s.moveDown(f),u.pushArrayReverse(p)}}var $e=32768;function xt(t){this.xs=[t],this.top=0,this.maxLength=0}xt.prototype={enqueue:function(e){this.xs.push(e)},enqueueMultiple:function(e){for(var r=0,n=e.length;r<n;r++)this.enqueue(e[r])},dequeue:function(){var e=this.peek();return this.top++,this.top===$e&&(this.xs=this.xs.slice(this.top),this.top=0),e},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===this.xs.length}};function Lt(t){return new xt(t)}function Pt(){this.depth=0,this.index=-1,this.queue=Lt({node:null,arity:1}),this.levelNodes=1,this.nextLevelNodes=0}Pt.prototype={store:function(e,r){this.queue.enqueue({node:e,arity:r}),this.nextLevelNodes+=r},moveNext:function(){this.index++},moveForward:function(){this.queue.peek().arity--,this.levelNodes--,this.queue.peek().arity===0&&(this.index=0,this.queue.dequeue()),this.levelNodes===0&&(this.depth++,this.levelNodes=this.nextLevelNodes,this.nextLevelNodes=0)},get parent(){return this.queue.peek().node}};function _e(){return new Pt}function Me(t,e,r){for(var n=vt(),s=_e(),o=x(n,s),u=Lt(t);!u.isEmpty();){var l=u.dequeue();if(n.reset(),e(l,o),n.break)break;if(!n.remove&&(s.moveNext(),n.replace&&(l=n.replace),!n.skip)){var f=r(l);yt(f)&&(u.enqueueMultiple(f),s.store(l,f.length))}s.moveForward()}}var De=function(e){return e.children};function be(t,e,r){if(t!=null){r=r||{};var n=r.order||"pre",s=r.getChildren||De;n==="pre"?ve(t,e,s):n==="post"?ye(t,e,s):n==="bfs"&&Me(t,e,s)}}var H=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function we(t){for(var e=-1,r=t==null?0:t.length,n=0,s=[];++e<r;){var o=t[e];o&&(s[n++]=o)}return s}var Se=we,Ie=Array.isArray,$t=Ie,Ce=typeof H=="object"&&H&&H.Object===Object&&H,Te=Ce,Fe=Te,Ee=typeof self=="object"&&self&&self.Object===Object&&self,Ye=Fe||Ee||Function("return this")(),_t=Ye,Ae=_t,ke=Ae.Symbol,Mt=ke,jt=Mt,Bt=Object.prototype,Oe=Bt.hasOwnProperty,Ne=Bt.toString,et=jt?jt.toStringTag:void 0;function xe(t){var e=Oe.call(t,et),r=t[et];try{t[et]=void 0;var n=!0}catch{}var s=Ne.call(t);return n&&(e?t[et]=r:delete t[et]),s}var Le=xe,Pe=Object.prototype,je=Pe.toString;function Be(t){return je.call(t)}var Ge=Be,Gt=Mt,He=Le,Re=Ge,Ue="[object Null]",qe="[object Undefined]",Ht=Gt?Gt.toStringTag:void 0;function We(t){return t==null?t===void 0?qe:Ue:Ht&&Ht in Object(t)?He(t):Re(t)}var Rt=We;function ze(t){return t!=null&&typeof t=="object"}var Ve=ze,Je=Rt,Ke=Ve,Ze="[object Symbol]";function Xe(t){return typeof t=="symbol"||Ke(t)&&Je(t)==Ze}var ct=Xe,Qe=$t,tr=ct,er=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rr=/^\w*$/;function nr(t,e){if(Qe(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||tr(t)?!0:rr.test(t)||!er.test(t)||e!=null&&t in Object(e)}var sr=nr;function ir(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ft=ir,ar=Rt,or=ft,ur="[object AsyncFunction]",cr="[object Function]",fr="[object GeneratorFunction]",lr="[object Proxy]";function hr(t){if(!or(t))return!1;var e=ar(t);return e==cr||e==fr||e==ur||e==lr}var Ut=hr,dr=_t,pr=dr["__core-js_shared__"],gr=pr,Dt=gr,qt=function(){var t=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function mr(t){return!!qt&&qt in t}var vr=mr,yr=Function.prototype,$r=yr.toString;function _r(t){if(t!=null){try{return $r.call(t)}catch{}try{return t+""}catch{}}return""}var Mr=_r,Dr=Ut,br=vr,wr=ft,Sr=Mr,Ir=/[\\^$.*+?()[\]{}|]/g,Cr=/^\[object .+?Constructor\]$/,Tr=Function.prototype,Fr=Object.prototype,Er=Tr.toString,Yr=Fr.hasOwnProperty,Ar=RegExp("^"+Er.call(Yr).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kr(t){if(!wr(t)||br(t))return!1;var e=Dr(t)?Ar:Cr;return e.test(Sr(t))}var Or=kr;function Nr(t,e){return t==null?void 0:t[e]}var xr=Nr,Lr=Or,Pr=xr;function jr(t,e){var r=Pr(t,e);return Lr(r)?r:void 0}var Wt=jr,Br=Wt,Gr=Br(Object,"create"),lt=Gr,zt=lt;function Hr(){this.__data__=zt?zt(null):{},this.size=0}var Rr=Hr;function Ur(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qr=Ur,Wr=lt,zr="__lodash_hash_undefined__",Vr=Object.prototype,Jr=Vr.hasOwnProperty;function Kr(t){var e=this.__data__;if(Wr){var r=e[t];return r===zr?void 0:r}return Jr.call(e,t)?e[t]:void 0}var Zr=Kr,Xr=lt,Qr=Object.prototype,tn=Qr.hasOwnProperty;function en(t){var e=this.__data__;return Xr?e[t]!==void 0:tn.call(e,t)}var rn=en,nn=lt,sn="__lodash_hash_undefined__";function an(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nn&&e===void 0?sn:e,this}var on=an,un=Rr,cn=qr,fn=Zr,ln=rn,hn=on;function V(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}V.prototype.clear=un,V.prototype.delete=cn,V.prototype.get=fn,V.prototype.has=ln,V.prototype.set=hn;var dn=V;function pn(){this.__data__=[],this.size=0}var gn=pn;function mn(t,e){return t===e||t!==t&&e!==e}var Vt=mn,vn=Vt;function yn(t,e){for(var r=t.length;r--;)if(vn(t[r][0],e))return r;return-1}var ht=yn,$n=ht,_n=Array.prototype,Mn=_n.splice;function Dn(t){var e=this.__data__,r=$n(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Mn.call(e,r,1),--this.size,!0}var bn=Dn,wn=ht;function Sn(t){var e=this.__data__,r=wn(e,t);return r<0?void 0:e[r][1]}var In=Sn,Cn=ht;function Tn(t){return Cn(this.__data__,t)>-1}var Fn=Tn,En=ht;function Yn(t,e){var r=this.__data__,n=En(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var An=Yn,kn=gn,On=bn,Nn=In,xn=Fn,Ln=An;function J(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}J.prototype.clear=kn,J.prototype.delete=On,J.prototype.get=Nn,J.prototype.has=xn,J.prototype.set=Ln;var Pn=J,jn=Wt,Bn=_t,Gn=jn(Bn,"Map"),Hn=Gn,Jt=dn,Rn=Pn,Un=Hn;function qn(){this.size=0,this.__data__={hash:new Jt,map:new(Un||Rn),string:new Jt}}var Wn=qn;function zn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Vn=zn,Jn=Vn;function Kn(t,e){var r=t.__data__;return Jn(e)?r[typeof e=="string"?"string":"hash"]:r.map}var dt=Kn,Zn=dt;function Xn(t){var e=Zn(this,t).delete(t);return this.size-=e?1:0,e}var Qn=Xn,ts=dt;function es(t){return ts(this,t).get(t)}var rs=es,ns=dt;function ss(t){return ns(this,t).has(t)}var is=ss,as=dt;function os(t,e){var r=as(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var us=os,cs=Wn,fs=Qn,ls=rs,hs=is,ds=us;function K(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}K.prototype.clear=cs,K.prototype.delete=fs,K.prototype.get=ls,K.prototype.has=hs,K.prototype.set=ds;var ps=K,Kt=ps,gs="Expected a function";function bt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gs);var r=function(){var n=arguments,s=e?e.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);var u=t.apply(this,n);return r.cache=o.set(s,u)||o,u};return r.cache=new(bt.Cache||Kt),r}bt.Cache=Kt;var ms=bt,vs=ms,ys=500;function $s(t){var e=vs(t,function(n){return r.size===ys&&r.clear(),n}),r=e.cache;return e}var _s=$s,Ms=_s,Ds=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bs=/\\(\\)?/g,ws=Ms(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Ds,function(r,n,s,o){e.push(s?o.replace(bs,"$1"):n||r)}),e}),Ss=ws;function Is(t,e){for(var r=-1,n=t==null?0:t.length,s=Array(n);++r<n;)s[r]=e(t[r],r,t);return s}var Cs=Is,Zt=Mt,Ts=Cs,Fs=$t,Es=ct,Ys=1/0,Xt=Zt?Zt.prototype:void 0,Qt=Xt?Xt.toString:void 0;function te(t){if(typeof t=="string")return t;if(Fs(t))return Ts(t,te)+"";if(Es(t))return Qt?Qt.call(t):"";var e=t+"";return e=="0"&&1/t==-Ys?"-0":e}var As=te,ks=As;function Os(t){return t==null?"":ks(t)}var Ns=Os,xs=$t,Ls=sr,Ps=Ss,js=Ns;function Bs(t,e){return xs(t)?t:Ls(t,e)?[t]:Ps(js(t))}var Gs=Bs,Hs=ct,Rs=1/0;function Us(t){if(typeof t=="string"||Hs(t))return t;var e=t+"";return e=="0"&&1/t==-Rs?"-0":e}var qs=Us,Ws=Gs,zs=qs;function Vs(t,e){e=Ws(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[zs(e[r++])];return r&&r==n?t:void 0}var Js=Vs,Ks=Js;function Zs(t,e,r){var n=t==null?void 0:Ks(t,e);return n===void 0?r:n}var Xs=Zs;function Qs(t){return t==null}var ti=Qs;const ei=function(t,e={}){let r={},n=[],s=[],o={};const u=function(){r={},n=[],s=[],o={}};u();let{childrenKey:l="children",checkedKey:f="checked",idKey:h="id"}=e,p=0,M=0;const D=function(i={}){l=i.childrenKey||l,f=i.checkedKey||f,h=i.idKey||h},b=function(i,c){i.forEach(function(a){const m=a[h];r[m]=a,a={...a},s.push(a),a.parent=c,a.index=p++;const v=c?c.deepth+1:0;a.deepth=v,M=Math.max(M,v),a.path=c?c.path+"."+a[h]:"0",a.parentIdList=c?[...c.parentIdList,c[h]]:[],o[m]=a,a[l]&&a[l].length>0&&b(a[l],a)})},C=function(i){return i[l]&&i[l].length>0?!i[l].map(a=>F(a[h])).find(a=>!a[f]):!1},O=function(i){u(),Array.isArray(i)&&b(i)};O(t);const j=function(i){var c;return(c=F(i))==null?void 0:c.parentIdList.map(a=>F(a))},X=function(i){const c=F(i);return s.filter(function(a){return a.parent===(c==null?void 0:c.parent)})},N=function(i){let c;if(!i)return console.warn("id\u4E0D\u80FD\u4E3A\u7A7A"),null;if(i instanceof Object)c=i[h];else if(typeof i=="string"||typeof i=="number")c=i;else return console.warn("id\u7C7B\u578B\u975E\u6CD5:",i),null;return c},F=function(i){const c=N(i);return c?o[c]:null},gt=function(i){const c=N(i);return c?r[c]:null},z=function(i){const c=F(i);return c==null?void 0:c.deepth},L=function(i,c){const a=F(i);a&&Object.assign(a,c)},st=function(i,c,a=!1){const m=F(i);m&&(m[f]=c,a&&(m.parentIdList.forEach(v=>{const $=o[v];$[f]=C($)}),w(m,function(v){v[f]=c})))},Q=function(i){const c={};i&&i.forEach(a=>{c[a]=!0}),s.forEach(a=>{a[f]=c[a[h]]||!1})},w=function(i,c){const a=F(i);if(a)c(a),a[l]&&a[l].length>0&&a[l].forEach(function(m){w(m,c)});else throw new Error("\u8282\u70B9\u4E0D\u5B58\u5728:"+i)};return{travelNode:w,getNodeList:(i=!0)=>i?[...s]:[...n],getNodeDescendantList:i=>{const c=[];return w(i,function(a){c.push(a)}),c},getNodeListByFilter:i=>s.filter(i),getMinDeepth:function(){let i=M;for(const c in s){const a=s[c];if(a.checked&&(i=Math.min(i,a.deepth)),i===0)return 0}return i},getSublings:X,getParents:j,getDeepth:z,getNode:F,updateIndexes:O,setChecked:st,setProps:L,travelAllNode:function(i){for(const c in s){const a=s[c],m=gt(a[h]);if(i(a,m)===!1)break}},setOptions:D,resetCheckStatus:Q,getOriginNode:gt}},wt=function(t,e,r="children",n="id",s=[],o={flag:!1}){if(t instanceof Array)return wt({[r]:t},e,r,n,s);const u=[],l=(t==null?void 0:t[r])||[];for(let f=0;f<l.length;f++){const h=l[f];if(e&&e(h,s,r,n)===!1){o.flag=!0;break}if(u.push(h),h[r]instanceof Array){const p=wt(h[r],e,r,n,[h,...s],o);u.push(...p)}if(o.flag)break}return u},rt=function(t,e,r=null,n=!1){if(typeof e=="string"&&(e=e.split(",")),!!Array.isArray(e)){for(let s=0;s<e.length;s++){const o=e[s],u=Xs(t,o);if(n?ti(u):!!u)return u}return r}},St=t=>Object.prototype.toString.call(t)=="[object Object]",ri=(t,e="children",r=!1)=>{const n=[],s=[...t];for(;s.length;){const o=s.shift();n.push(o);const u=o[e];u!=null&&u.length&&(r&&n.pop(),s.unshift(...u))}return n};function ni(t){return t===null}var ee=ni;const re=function(t,e,r,n="_",s=0){t[e]?s<5&&re(t,n+e,r,n,s+1):t[e]=r},si=function(t,e,r){let n=!1;return Array.isArray(t)&&(t={[e]:t},n=!0),be(t,r,{getChildren(s){return s[e]}}),n?t[e]:t},ii=function(t,e){const r={valueGetField:"value",nameGetField:"name",valueSetField:"value",nameSetField:"name",spliterItemValue:",",spliterBetweenItem:/\s+/,defaultLs:["0, \u8BF7\u63D0\u4F9Boptions"],...e||{}};let n;return typeof t=="function"&&(n=t(r)),typeof t=="string"?n=t.trim().split(r.spliterBetweenItem).map(o=>o.trim()):Array.isArray(t)?n=t:Array.isArray(r.defaultLs)?n=r.defaultLs:typeof r.defaultLs=="function"?n=r.defaultLs():n=[{name:"\u8BF7\u901A\u8FC7optionLs\u4F20\u5165\u6570\u7EC4\u6216\u8005\u51FD\u6570",value:-1}],function(o){const u=r.elFormatter;u&&(o=o.map(f=>{let[h,p]=u(f,r,rt);return{value:h,name:p}}));let l=Se(o);return l.length!=o.length&&console.warn("options\u4E2D\u5B58\u5728\u7A7A\u9009\u9879",o),o=l,o=o.map(f=>{typeof f=="string"?f=(f+"").split(r.spliterItemValue).map(M=>M.trim()):typeof f=="number"&&(f=[f,f]);let h,p;if(Array.isArray(f)){if([h,p]=f,p===void 0?p=h:h===void 0&&(h=p),ee(h)||ee(p))throw"value\u548Cname\u4E0D\u80FD\u540C\u65F6\u4E3A\u7A7A"}else f?(h=rt(f,r.valueGetField),p=rt(f,r.nameGetField)):(p="\u65E0\u6548options",h="-");return{[r.valueSetField]:h,[r.nameSetField]:p}}),o.forEach(f=>{const h=f[r.valueSetField];typeof h!="number"&&typeof h!="string"&&(console.warn("options\u4E2D\u5B58\u5728\u975E\u6CD5\u7684value,\u9700\u8981\u662Fnumber\u6216\u8005string",f),f[r.valueSetField]=f.value+"")}),o}(n)},ai=function(t,e=null){if(St(t)||Array.isArray(t))return t;if(typeof t!="string")return console.warn("safeJsonParser error",t),e;try{return JSON.parse(t)}catch{return console.log("json\u89E3\u6790\u5931\u8D25:",t),e}},oi=function(t,e,r=0,n=void 0){if(e.includes(t))return t;{let s=e[r];return s===void 0&&(s=n),s}};function ui(t){return new Promise(function(e,r){var n=typeof t=="string"?t:URL.createObjectURL(t);if(!n)throw new Error("Must use a valid image");var s=document.createElement("img");s.onload=()=>{typeof t!="string"&&URL.revokeObjectURL(n),e({width:s.width,height:s.height})},s.onerror=o=>{typeof t!="string"&&URL.revokeObjectURL(n),r(o)},s.src=n})}function ci(){if(typeof window>"u")return-1;const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const s=t.indexOf("rv:");return parseInt(t.substring(s+3,t.indexOf(".",s)),10)}const n=t.indexOf("Edge/");return n>0?parseInt(t.substring(n+5,t.indexOf(".",n)),10):-1}const fi=ci()!==-1;function ne(...t){let e;Array.isArray(arguments[0])?e=arguments[0]:e=Array.prototype.slice.call(arguments);let r=[];return e.reduce(function(n,s,o,u){return n.then(function(){if(typeof s=="function")try{s=s()}catch(l){return u.splice(1),Promise.reject(l)}else console.warn("map element:"+o+" not function");return s.then(l=>{r[o]=l})})},Promise.resolve(r)).then(function(){return r})}class li extends Promise{constructor(r=void 0){let n,s;super((o,u)=>{n=o,s=u,r&&r(o,u)});A(this,"__resolve");A(this,"__reject");this.__resolve=n,this.__reject=s}static map(r){return ne(r)}static all(r){return Promise.all(r)}resolve(r){this.__resolve(r)}_resolve(r){this.__resolve(r)}reject(r){this.__reject(r)}_reject(r){this.__reject(r)}}const hi=(t,e,r)=>new Promise((n,s)=>{const o=t[Symbol.iterator](),u=l=>{const{value:f,done:h}=o.next();h?n(l):e(l,f,t).then(u)};u(r)}),pt=class{static get fastGbk(){if(!this._fastGbk)throw new Error("\u8BF7\u5148\u8C03\u7528setFaskGbk\u65B9\u6CD5\u8BBE\u7F6EfastGbk::$GBK.setFaskGbk(require('fast-gbk'))");return this._fastGbk}static setFaskGbk(e){this._fastGbk=e}static encode(e){return pt.fastGbk.encode(e)}static decode(e){if(!e||!e.length)return"";typeof e=="string"&&(/^\%/.test(e)?e=e.split("%").splice(1):e=e.split(","));let r="";if(Array.isArray(e))if(typeof e[0]=="number")r=this.fastGbk.decode(e);else{const n=e.map(s=>{typeof s=="number"&&(console.warn("decodeGBK\u4F20\u5165\u7684\u6570\u7EC4\u4E2D\u6709number\u7C7B\u578B\u7684\u6570\u636E\uFF0C\u8FD9\u662F\u4E0D\u5141\u8BB8\u7684\uFF0C\u4F1A\u5BFC\u81F4\u89E3\u7801\u9519\u8BEF"),s=s+"");let o=parseInt(s,16);return isNaN(o)?0:o});r=pt.decode(n)}return r}};let R=pt;A(R,"_fastGbk");const se=new Map;function di(t){if(t===0)return"0";if(t===!1)return"False";if(!t)return"";if(typeof t!="string")throw new Error("\u65E0\u6548\u8F93\u5165");let[e,...r]=t;return e.toUpperCase()+r.join("")}function pi(t,e){if(!t||!e)return"";var r=0,n=0,s="";for(n=0;n<t.length;n++){if(t.charCodeAt(n)>255?r+=2:r++,r>e)return s;s+=t.charAt(n)}return t}const ie=()=>{let t=Math.random().toString(32).substr(2);return se.get(t)?ie():(se.set(t,!0),t)};function gi(t){return R.decode(t)}function mi(t){return R.decode(t)}function vi(t,e="utf-8",r=16){return e.toLowerCase()=="gbk"&&r==16?gi(t):new TextDecoder(e).decode(new Uint8Array(t.map(n=>Number.isFinite(n)?n:parseInt(n,r))))}function yi(t,e="string"){return e=="string"?R.encode(t):R.encode(t).split("%").splice(1)}function $i(t){for(var e=0,r=0;r<t.length;r++){var n=t.charCodeAt(r);n>=1&&n<=126||65376<=n&&n<=65439?e++:e+=2}return e}const _i=(t,e="")=>St(t)||Array.isArray(t)?JSON.stringify(t):typeof t=="string"?t:(console.warn("safeStringify error(\u6682\u4E0D\u652F\u6301\u7684\u6570\u636E\u7C7B\u578B)",t),e),Mi=/\:\:([-\d\.]+)$/,W=class{constructor(e,r,n=!1,s=null){A(this,"_name");A(this,"_code");A(this,"_silent");const o=this;o._name=e,o._code=r,o._silent=n}static addNameFieldList(e){this.nameFieldList.push(e)}get name(){return this._name}get message(){return this._name}get msg(){return this._name}get code(){return this._code}get cod(){return this._code}get errorCode(){return this._code}get silent(){return this._silent}get silence(){return this._silent}toString2(){const e=this;return`AError:${e.code}-${e.name}`}static fromErrorText(e,r=!1){const n=`${e}-${r?"0":"1"}`;let s=ae[n];if(!s){let o,u;Mi.test(e)?(o=RegExp.$1,u=e.replace(`::${o}`,"")):(o=0,u=e),s=new W(u,o,r),ae[n]=s}return s}static create(e,r=!1){return this.fromObject(e,r)}static getErrorCode(e){return e?e.constructor==W?e._code:this.fromObject(e)._code:0}};let nt=W;A(nt,"nameFieldList",["error","message","msg","errMsg","reason","errorText"]),A(nt,"fromObject",(e,r=!1)=>{const n=W;if(!e)return new W("\u672A\u77E5\u9519\u8BEF",-9999);let s;if(e instanceof Error)return n.fromErrorText(e.message,r);if(typeof e=="string")if(/^(\[|\{)/.test(e))try{e=JSON.parse(e)}catch{s=e}else s=e;else s=rt(e,W.nameFieldList),r||(r=e.silence||e.silent);return!s&&e.data?n.fromObject(e.data):n.fromErrorText(s,r)});const ae={};function Di(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(s);++n<s;)o[n]=t[n+e];return o}var bi=Di,wi=9007199254740991;function Si(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=wi}var Ii=Si,Ci=Ut,Ti=Ii;function Fi(t){return t!=null&&Ti(t.length)&&!Ci(t)}var Ei=Fi,Yi=9007199254740991,Ai=/^(?:0|[1-9]\d*)$/;function ki(t,e){var r=typeof t;return e=e==null?Yi:e,!!e&&(r=="number"||r!="symbol"&&Ai.test(t))&&t>-1&&t%1==0&&t<e}var Oi=ki,Ni=Vt,xi=Ei,Li=Oi,Pi=ft;function ji(t,e,r){if(!Pi(r))return!1;var n=typeof e;return(n=="number"?xi(r)&&Li(e,r.length):n=="string"&&e in r)?Ni(r[e],t):!1}var Bi=ji,Gi=/\s/;function Hi(t){for(var e=t.length;e--&&Gi.test(t.charAt(e)););return e}var Ri=Hi,Ui=Ri,qi=/^\s+/;function Wi(t){return t&&t.slice(0,Ui(t)+1).replace(qi,"")}var zi=Wi,Vi=zi,oe=ft,Ji=ct,ue=0/0,Ki=/^[-+]0x[0-9a-f]+$/i,Zi=/^0b[01]+$/i,Xi=/^0o[0-7]+$/i,Qi=parseInt;function ta(t){if(typeof t=="number")return t;if(Ji(t))return ue;if(oe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=oe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vi(t);var r=Zi.test(t);return r||Xi.test(t)?Qi(t.slice(2),r?2:8):Ki.test(t)?ue:+t}var ea=ta,ra=ea,ce=1/0,na=17976931348623157e292;function sa(t){if(!t)return t===0?t:0;if(t=ra(t),t===ce||t===-ce){var e=t<0?-1:1;return e*na}return t===t?t:0}var ia=sa,aa=ia;function oa(t){var e=aa(t),r=e%1;return e===e?r?e-r:e:0}var ua=oa,ca=bi,fa=Bi,la=ua,ha=Math.ceil,da=Math.max;function pa(t,e,r){(r?fa(t,e,r):e===void 0)?e=1:e=da(la(e),0);var n=t==null?0:t.length;if(!n||e<1)return[];for(var s=0,o=0,u=Array(ha(n/e));s<n;)u[o++]=ca(t,s,s+=e);return u}var fe=pa;class It{static strip(e,r=12){return+parseFloat(e.toPrecision(r))}static hexString2DecLs(e){return fe(e,2).map(r=>parseInt(r.join(""),16))}static preppendZero(e,r=2){return Ct(r,e)}static getDec(e){return e-Math.trunc(e)}static toDEC(e,r=16){return Array.isArray(e)?e.map(n=>parseInt(n,r)):parseInt(e,r)}static toHEX(e,r=2,n=10){if(Array.isArray(e))return e.map(s=>Array.isArray(s)?s[0]:this.toHEX(s,length,n));if(/[a-zA-Z]/.test(e+""))throw new Error("\u65E0\u6CD5\u8F6C\u6362\u4E3AHEX:"+e);return e=parseInt(e+"",n),e>=Math.pow(2,8)&&(r=4),ga(e,r)[0]}}function ga(t,e=2){let r=parseInt(t+"").toString(16).toUpperCase(),n=fe(r,e).map(o=>o.join(""));const s=Ct(e,n[0]);return n.splice(0,1,s),n}function Ct(t,e){let r=t-(e+"").length;return r<=0?e+"":Array(r).fill("0").join("")+(e+"")}function le(t,e=12){return typeof t!="number"&&(t=0),+parseFloat(t.toPrecision(e))}function ma(t,e=2){typeof t!="number"&&(t=0);const r=le(t).toFixed(e);return parseFloat(r)}const va=function(t,e=Number.MAX_SAFE_INTEGER,r=0){const n=typeof t=="string";let s=n?It.toDEC(t):t;return typeof r=="number"&&(s=Math.max(r,s)),typeof e=="number"&&(s=Math.min(e,s)),n?It.toHEX(s):s},ya=(t,e=0)=>{if(typeof t=="number")return t;const s=((t+"").includes(".")?parseFloat:parseInt)(t);return isNaN(s)?e:s};function $a(t,e,r){function n(u,l){return Math.floor(Math.random()*(l-u+1))+u}function s(){const u=[];let l=t;for(let f=0;f<e-1;f++){const h=n(r,l-r*(e-1-f));u.push(h),l-=h}return u.push(l),u}let o=0;for(;o<5;){const u=s();if(u.every(l=>l>=r))return u;o++}return[]}var he={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(H,function(){var r=1e3,n=6e4,s=36e5,o="millisecond",u="second",l="minute",f="hour",h="day",p="week",M="month",D="quarter",b="year",C="date",O="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|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,N={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("_")},F=function(y,d,i){var c=String(y);return!c||c.length>=d?y:""+Array(d+1-c.length).join(i)+y},gt={s:F,z:function(y){var d=-y.utcOffset(),i=Math.abs(d),c=Math.floor(i/60),a=i%60;return(d<=0?"+":"-")+F(c,2,"0")+":"+F(a,2,"0")},m:function y(d,i){if(d.date()<i.date())return-y(i,d);var c=12*(i.year()-d.year())+(i.month()-d.month()),a=d.clone().add(c,M),m=i-a<0,v=d.clone().add(c+(m?-1:1),M);return+(-(c+(i-a)/(m?a-v:v-a))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M,y:b,w:p,d:h,D:C,h:f,m:l,s:u,ms:o,Q:D}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},z="en",L={};L[z]=N;var st=function(y){return y instanceof it},Q=function y(d,i,c){var a;if(!d)return z;if(typeof d=="string"){var m=d.toLowerCase();L[m]&&(a=m),i&&(L[m]=i,a=m);var v=d.split("-");if(!a&&v.length>1)return y(v[0])}else{var $=d.name;L[$]=d,a=$}return!c&&a&&(z=a),a||!c&&z},w=function(y,d){if(st(y))return y.clone();var i=typeof d=="object"?d:{};return i.date=y,i.args=arguments,new it(i)},_=gt;_.l=Q,_.i=st,_.w=function(y,d){return w(y,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var it=function(){function y(i){this.$L=Q(i.locale,null,!0),this.parse(i)}var d=y.prototype;return d.parse=function(i){this.$d=function(c){var a=c.date,m=c.utc;if(a===null)return new Date(NaN);if(_.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var v=a.match(j);if(v){var $=v[2]-1||0,I=(v[7]||"0").substring(0,3);return m?new Date(Date.UTC(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,I)):new Date(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,I)}}return new Date(a)}(i),this.$x=i.x||{},this.init()},d.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},d.$utils=function(){return _},d.isValid=function(){return this.$d.toString()!==O},d.isSame=function(i,c){var a=w(i);return this.startOf(c)<=a&&a<=this.endOf(c)},d.isAfter=function(i,c){return w(i)<this.startOf(c)},d.isBefore=function(i,c){return this.endOf(c)<w(i)},d.$g=function(i,c,a){return _.u(i)?this[c]:this.set(a,i)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(i,c){var a=this,m=!!_.u(c)||c,v=_.p(i),$=function(tt,Y){var G=_.w(a.$u?Date.UTC(a.$y,Y,tt):new Date(a.$y,Y,tt),a);return m?G:G.endOf(h)},I=function(tt,Y){return _.w(a.toDate()[tt].apply(a.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(Y)),a)},S=this.$W,T=this.$M,B=this.$D,P="set"+(this.$u?"UTC":"");switch(v){case b:return m?$(1,0):$(31,11);case M:return m?$(1,T):$(0,T+1);case p:var at=this.$locale().weekStart||0,ot=(S<at?S+7:S)-at;return $(m?B-ot:B+(6-ot),T);case h:case C:return I(P+"Hours",0);case f:return I(P+"Minutes",1);case l:return I(P+"Seconds",2);case u:return I(P+"Milliseconds",3);default:return this.clone()}},d.endOf=function(i){return this.startOf(i,!1)},d.$set=function(i,c){var a,m=_.p(i),v="set"+(this.$u?"UTC":""),$=(a={},a[h]=v+"Date",a[C]=v+"Date",a[M]=v+"Month",a[b]=v+"FullYear",a[f]=v+"Hours",a[l]=v+"Minutes",a[u]=v+"Seconds",a[o]=v+"Milliseconds",a)[m],I=m===h?this.$D+(c-this.$W):c;if(m===M||m===b){var S=this.clone().set(C,1);S.$d[$](I),S.init(),this.$d=S.set(C,Math.min(this.$D,S.daysInMonth())).$d}else $&&this.$d[$](I);return this.init(),this},d.set=function(i,c){return this.clone().$set(i,c)},d.get=function(i){return this[_.p(i)]()},d.add=function(i,c){var a,m=this;i=Number(i);var v=_.p(c),$=function(T){var B=w(m);return _.w(B.date(B.date()+Math.round(T*i)),m)};if(v===M)return this.set(M,this.$M+i);if(v===b)return this.set(b,this.$y+i);if(v===h)return $(1);if(v===p)return $(7);var I=(a={},a[l]=n,a[f]=s,a[u]=r,a)[v]||1,S=this.$d.getTime()+i*I;return _.w(S,this)},d.subtract=function(i,c){return this.add(-1*i,c)},d.format=function(i){var c=this,a=this.$locale();if(!this.isValid())return a.invalidDate||O;var m=i||"YYYY-MM-DDTHH:mm:ssZ",v=_.z(this),$=this.$H,I=this.$m,S=this.$M,T=a.weekdays,B=a.months,P=function(Y,G,Yt,mt){return Y&&(Y[G]||Y(c,m))||Yt[G].slice(0,mt)},at=function(Y){return _.s($%12||12,Y,"0")},ot=a.meridiem||function(Y,G,Yt){var mt=Y<12?"AM":"PM";return Yt?mt.toLowerCase():mt},tt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:S+1,MM:_.s(S+1,2,"0"),MMM:P(a.monthsShort,S,B,3),MMMM:P(B,S),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:P(a.weekdaysMin,this.$W,T,2),ddd:P(a.weekdaysShort,this.$W,T,3),dddd:T[this.$W],H:String($),HH:_.s($,2,"0"),h:at(1),hh:at(2),a:ot($,I,!0),A:ot($,I,!1),m:String(I),mm:_.s(I,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:v};return m.replace(X,function(Y,G){return G||tt[Y]||v.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(i,c,a){var m,v=_.p(c),$=w(i),I=($.utcOffset()-this.utcOffset())*n,S=this-$,T=_.m(this,$);return T=(m={},m[b]=T/12,m[M]=T,m[D]=T/3,m[p]=(S-I)/6048e5,m[h]=(S-I)/864e5,m[f]=S/s,m[l]=S/n,m[u]=S/r,m)[v]||S,a?T:_.a(T)},d.daysInMonth=function(){return this.endOf(M).$D},d.$locale=function(){return L[this.$L]},d.locale=function(i,c){if(!i)return this.$L;var a=this.clone(),m=Q(i,c,!0);return m&&(a.$L=m),a},d.clone=function(){return _.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},y}(),Et=it.prototype;return w.prototype=Et,[["$ms",o],["$s",u],["$m",l],["$H",f],["$W",h],["$M",M],["$y",b],["$D",C]].forEach(function(y){Et[y[1]]=function(d){return this.$g(d,y[0],y[1])}}),w.extend=function(y,d){return y.$i||(y(d,it,w),y.$i=!0),w},w.locale=Q,w.isDayjs=st,w.unix=function(y){return w(1e3*y)},w.en=L[z],w.Ls=L,w.p={},w})})(he);const k=he.exports;var de={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(H,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,s,o){var u=s.prototype,l=u.format;o.en.formats=r,u.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,p=function(M,D){return M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,C,O){var j=O&&O.toUpperCase();return C||D[O]||r[O]||D[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,N,F){return N||F.slice(1)})})}(f,h===void 0?{}:h);return l.call(this,p)}}})})(de);const _a=de.exports;var pe={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(H,function(){var r="week",n="year";return function(s,o,u){var l=o.prototype;l.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=u(this).startOf(n).add(1,n).date(h),M=u(this).endOf(r);if(p.isBefore(M))return 1}var D=u(this).startOf(n).date(h).startOf(r).subtract(1,"millisecond"),b=this.diff(D,r,!0);return b<0?u(this).startOf("week").week():Math.ceil(b)},l.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}})})(pe);const Ma=pe.exports;k.extend(_a),k.extend(Ma);const Z=function(t){const e=new Date;if(t){if(t instanceof Date)return t;if(typeof t=="number"){const r=t+"",n=r.split(""),s=parseInt(n.splice(0,4).join("")),o=parseInt(n.splice(0,2).join(""))-1,u=parseInt(n.splice(0,2).join(""));return r.length==4?(e.setFullYear(s),e):r.length==6?(e.setFullYear(s),e.setMonth(o-1),e):r.length==8?(e.setFullYear(s),e.setMonth(o),e.setDate(u),e):new Date(t)}else if(typeof t=="string"){if(t=t.trim(),/^\d+$/.test(t))return Z(parseInt(t));{const r=t.split(/[-:\sTZ\+年月日时分秒]/),[n=e.getFullYear(),s=0+1,o=1,u=0,l=0,f=0]=r,h=parseInt([n,(s+"").padStart(2,"0"),(o+"").padStart(2,"0")].join(""));if(r.length<=3)return Z(h);{const p=Z(h);if(!p)throw new Error("\u65E0\u6CD5\u89E3\u6790\u7684\u65E5\u671F\u683C\u5F0F");return p.setHours(u,l,f),p}}}}else return new Date},Tt=Z;function Da(t){var e="";if(typeof t=="string"){let r=t.split("-");r.length==1?t=parseInt(t):r.length==2?e=t+"-01":e=t;const n=Tt(e);return Ft(n)}else if(typeof t=="number"){const r=new Date;return r.setMonth(t-1),Ft(r)}else throw new Error("\u8BF7\u4F20\u5165\u6709\u6548\u7C7B\u578B")}function Ft(t){return t=new Date(Tt(t).getTime()),t.add(1,"month"),t.setDate(0),t.getDate()}const ba=(t,e=!0)=>{typeof t=="string"&&(t=k(t).toDate());const r=t.getDay(),n=new Date(t);n.setDate(t.getDate()-r),n.setHours(0,0,0,0);const s=new Date(n);s.setDate(n.getDate()+6),s.setHours(23,59,59,999);const o=k(t).week(),u=k(n).format("YYYY-MM-DD");return e&&(n.setDate(n.getDate()+1),s.setDate(s.getDate()+1)),{startYYYYMMDD:u,start:n,end:s,thInYear:o}},ge=(t,e,r,n=!0)=>{const o=new Date(t,e-1,1).getDay(),u=1+(r-1)*7-o,l=n?u+1:u;return new Date(t,e-1,l)},me=t=>{typeof t=="string"&&(t=k(t).toDate());const e=t.getDate(),r=t.getDay();return Math.ceil((e+6-r)/7)};class U{constructor(e){A(this,"_start");A(this,"_end");A(this,"_thInYear");A(this,"_thInMonth");const{start:r,end:n,thInYear:s}=ba(e);this._start=r,this._end=n,this._thInYear=s,this._thInMonth=me(r)}get start(){return this._start}get startStr(){return k(this.start).format("YYYY-MM-DD")}get end(){return this._end}get endStr(){return k(this.end).format("YYYY-MM-DD")}get thInYear(){return this._thInYear}get thInMonth(){return this._thInMonth}get YYYYMMth(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}-[${this.thInMonth}]`}get YYYYMMthStr(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}/\u7B2C${this.thInMonth}\u5468`}static fromYYYYMMThStr(e){const[r,n,s]=e.split(/[^\d]+/).filter(u=>u),o=ge(parseInt(r),parseInt(n),parseInt(s));return new U(o)}get YYYYMM(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}`}get YYYY(){return this.start.getFullYear()}contains(e){return e>=this.start&&e<=this.end}nextDateWeek(){const e=new Date(this.end.getFullYear(),this.end.getMonth(),this.end.getDate()+1);return new U(e)}prevDateWeek(){const e=new Date(this.start.getFullYear(),this.start.getMonth(),this.start.getDate()-1);return new U(e)}static getListfromRange(e,r){typeof e=="string"&&(e=k(e).toDate()),typeof r=="string"&&(r=k(r).toDate()),e>r&&([e,r]=[r,e]);const n=[];let s=new U(e);for(;!s.contains(r);)n.push(s),s=s.nextDateWeek();return n.push(s),n}static from_yyyy_th(e,r){const n=k(`${e}-01-01`).week(parseInt(r+""));return new U(n.toDate())}toString(){return`
[${this.thInYear}] ${this.startStr} - ${this.endStr}`}}const wa={};class q extends Date{constructor(...r){super(...r);A(this,"__currentMonth",!1)}static fromYYYY_MM(r){var n=r.replace(/_/g,"-")+"-01";return new q(n)}static fromDate(r){return new q(r.getTime())}static fromAny(r){return this.fromDate(Z(r))}diff(r,n="day"){let s=this.getTime()-r.getTime();switch(n){case"year":return s/1e3/60/60/24/365;case"month":return s/1e3/60/60/24/30;case"day":return s/1e3/60/60/24;case"hour":return s/1e3/60/60;case"minute":return s/1e3/60;case"second":return s/1e3;case"millisecond":return s}}add(r,n="day"){const s=this.clone();switch(n){case"year":s.setFullYear(this.getFullYear()+r);break;case"month":this.setMonth(this.getMonth()+r);case"day":this.setDate(this.getDate()+r);case"hour":s.setHours(this.getHours()+r);break;case"minute":s.setMinutes(this.getMinutes()+r);break;case"second":s.setSeconds(this.getSeconds()+r);break;case"millisecond":s.setMilliseconds(this.getMilliseconds()+r);break}return s}clone(){return new q(this.getTime())}setTimeByDate(r){return this.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getSeconds()),this}getDayMountInMonth(){let r=this.clone();return r.setMonth(r.getMonth()+1),r.setDate(0),r.getDate()}setToDayStart(){return this.clearTime()}setToDayEnd(){return this.setHours(23,59,59,999),this}setToMonthStart(){return this.setDate(1),this.setToDayStart()}setToMonthEnd(){return this.setDate(this.getDayMountInMonth()),this.setToDayEnd()}setToYearStart(){const r=this;return r.setMonth(0,1),r.setToDayStart(),r}setToYearEnd(){const r=this;return r.setMonth(12,1),r.setToDayStart(),r.setTime(r.getTime()-1),r}isSameDay(r){let n;typeof r=="number"?n=new q(r):n=q.prototype.clone.call(r);let s=n.clone().setToDayStart(),o=this.clone().setToDayStart();return s.getTime()==o.getTime()}clearTime(){return this.setHours(0,0,0,0),this}clearDay(){return this.setDate(1),this}formatToMonth(r="-"){const n=this.getFullYear(),s=this.getMonth()+1;return`${n}${r}${s}`}formatToDay(r="-"){const n=this.getFullYear(),s=this.getMonth()+1,o=this.getDate();return`${n}${r}${s}${r}${o}`}getCalendarDateList(r=!1){var n=this;typeof r>"u"&&(r=!0);var s=wa,o=this.getFullYear()+"-"+(this.getMonth()+1)+"-"+(r?"0":"1");if(s[o])return s[o];let u,l;r?(u=0,l=6):(u=1,l=7);let f=[],h=this.clone().setToMonthStart(),p=this.clone().setToMonthEnd();var M=h.getDay(),D=p.getDay();let b=h.clone().add(u-M-1,"day"),C=p.clone().add(l-D+0,"day"),O=C.diff(b,"day"),j=0,X=n.getMonth();for(;j++<O;){let N=b.clone().add(j,"day");N.getMonth()==X&&(N.__currentMonth=!0),f.push(N)}return s[o]={list:f,firstDateInMonth:h,lastDateInMonth:p,firstDateInView:b,lastDateInView:C}}}const Sa=t=>t.replace(/[^\x00-\xff]/g,"**").length,Ia=(t,e)=>(r,n)=>r.trim().split(`
`).map(o=>{const u=o.trim();return u.startsWith("//")?"":u}).filter(o=>!!o).map(o=>{const[u,l,...f]=o.split(/\s+/),p={minWidth:Sa(l)*7+45,key:u,title:l,visible:!1,sum:!1};f.forEach(D=>{if(["center","left"].includes(D))p.align=D;else if(/^(\+|\-)?(\d+)$/.test(D)){const b=RegExp.$1,C=parseInt(RegExp.$2);b==="+"?p.maxWidth=C:b==="-"?p.minWidth=C:p.width=C}else if(["show","hide"].includes(D))p.visible=D=="show";else if(D==="__sum__")p.sum=!0;else if(D.startsWith("#"))D=="#"?p.slot=p.key:p.slot=D.substring(1);else{const b=e[D];b?p.render=b:console.warn("\u672A\u5B9A\u4E49\u7684render:",D)}});const M=t[u];return M&&Object.assign(p,M),p.getValue=function(D){return p.render?p.render(null,{row:D,column:p},!0):D[p.key]},n?n(p,o):p});function Ca(t,e,r,n,s){var o=e.width,u=e.height;t.save(),t.translate(r,n),t.rotate(s),t.drawImage(e,-o/2,-u/2,o,u),t.restore()}g.AError=nt,g.BPromise=li,g.Date2=q,g.DateWeek=U,g.Math2=It,g.all2date=Z,g.all2valueName=ii,g.asyncReduce=hi,g.byteArrayToString=vi,g.dayjs2=k,g.drawRotatedImage=Ca,g.encodeStringToGBK=yi,g.firstLetterUppercase=di,g.fromGBKArrayToString=mi,g.getByteLength=$i,g.getDayLengthInMonth=Ft,g.getDayMountByMonth=Da,g.getImageSize=ui,g.getWeekStartDateFromYYYYMMThInMonth=ge,g.getWeekThInMonth=me,g.isIE=fi,g.isPlainObject=St,g.makeTreeDataHelper=ei,g.parse2date=Tt,g.preppendZero=Ct,g.promiseMap=ne,g.randomSegmentation=$a,g.randomString=ie,g.safeBindToObject=re,g.safeJsonParser=ai,g.safeParseNumber=ya,g.safeStringify=_i,g.safeValueInList=oi,g.safeValueInRange=va,g.stripAndFixNumber=ma,g.stripNumber=le,g.stripString=pi,g.travelTree=wt,g.treeEach=si,g.treeListToFlatList=ri,g.tryGet=rt,g.viewuiColumnFactory=Ia,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(c,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("dayjs")):typeof define=="function"&&define.amd?define(["exports","dayjs"],b):(c=typeof globalThis<"u"?globalThis:c||self,b(c.index={},c.dayjs2))})(this,function(c,b){"use strict";var hi=Object.defineProperty;var di=(c,b,Y)=>b in c?hi(c,b,{enumerable:!0,configurable:!0,writable:!0,value:Y}):c[b]=Y;var _=(c,b,Y)=>(di(c,typeof b!="symbol"?b+"":b,Y),Y);const M=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(b);function fe(e,t){this.flags=e,this.cursor=t}fe.prototype={skip:function(){this.flags.skip=!0},break:function(){this.flags.break=!0},remove:function(){this.flags.remove=!0},replace:function(t){this.flags.replace=t},get parent(){return this.cursor.parent},get depth(){return this.cursor.depth},get level(){return this.cursor.depth+1},get index(){return this.cursor.index}};function J(e,t){return new fe(e,t)}function le(e){this.xs=[e],this.top=0}le.prototype={push:function(t){this.top++,this.top<this.xs.length?this.xs[this.top]=t:this.xs.push(t)},pushArrayReverse:function(t){for(var r=t.length-1;r>=0;r--)this.push(t[r])},pop:function(){var t=this.peek();return this.top--,t},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===-1}};function B(e){return new le(e)}function he(){this.depth=0,this.stack=B({node:null,index:-1})}he.prototype={moveDown:function(t){this.depth++,this.stack.push({node:t,index:0})},moveUp:function(){this.depth--,this.stack.pop()},moveNext:function(){this.stack.peek().index++},get parent(){return this.stack.peek().node},get index(){return this.stack.peek().index}};function de(){return new he}function pe(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}pe.prototype={reset:function(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}};function X(){return new pe}function Z(e){return e&&e.length!==0}function Xe(e,t,r){for(var n=X(),s=de(),a=J(n,s),i=B(e),u=Object.assign({},e);!i.isEmpty();){var o=i.pop();if(o===u){s.moveUp();continue}if(n.reset(),t(o,a),n.break)break;if(!n.remove&&(s.moveNext(),!n.skip)){n.replace&&(o=n.replace);var f=r(o);Z(f)&&(i.push(u),i.pushArrayReverse(f),s.moveDown(o))}}}function Ze(e,t,r){for(var n=X(),s=de(),a=J(n,s),i=B(e),u=B(null);!i.isEmpty();){var o=i.peek(),f=u.peek(),h=r(o);if(n.reset(),o===f||!Z(h)){if(o===f&&(u.pop(),s.moveUp()),i.pop(),t(o,a),n.break)break;if(n.remove)continue;s.moveNext()}else u.push(o),s.moveDown(o),i.pushArrayReverse(h)}}var Qe=32768;function ge(e){this.xs=[e],this.top=0,this.maxLength=0}ge.prototype={enqueue:function(t){this.xs.push(t)},enqueueMultiple:function(t){for(var r=0,n=t.length;r<n;r++)this.enqueue(t[r])},dequeue:function(){var t=this.peek();return this.top++,this.top===Qe&&(this.xs=this.xs.slice(this.top),this.top=0),t},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===this.xs.length}};function ve(e){return new ge(e)}function me(){this.depth=0,this.index=-1,this.queue=ve({node:null,arity:1}),this.levelNodes=1,this.nextLevelNodes=0}me.prototype={store:function(t,r){this.queue.enqueue({node:t,arity:r}),this.nextLevelNodes+=r},moveNext:function(){this.index++},moveForward:function(){this.queue.peek().arity--,this.levelNodes--,this.queue.peek().arity===0&&(this.index=0,this.queue.dequeue()),this.levelNodes===0&&(this.depth++,this.levelNodes=this.nextLevelNodes,this.nextLevelNodes=0)},get parent(){return this.queue.peek().node}};function et(){return new me}function tt(e,t,r){for(var n=X(),s=et(),a=J(n,s),i=ve(e);!i.isEmpty();){var u=i.dequeue();if(n.reset(),t(u,a),n.break)break;if(!n.remove&&(s.moveNext(),n.replace&&(u=n.replace),!n.skip)){var o=r(u);Z(o)&&(i.enqueueMultiple(o),s.store(u,o.length))}s.moveForward()}}var rt=function(t){return t.children};function nt(e,t,r){if(e!=null){r=r||{};var n=r.order||"pre",s=r.getChildren||rt;n==="pre"?Xe(e,t,s):n==="post"?Ze(e,t,s):n==="bfs"&&tt(e,t,s)}}var A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function st(e){for(var t=-1,r=e==null?0:e.length,n=0,s=[];++t<r;){var a=e[t];a&&(s[n++]=a)}return s}var at=st,it=Array.isArray,Q=it,ot=typeof A=="object"&&A&&A.Object===Object&&A,ut=ot,ct=ut,ft=typeof self=="object"&&self&&self.Object===Object&&self,lt=ct||ft||Function("return this")(),ee=lt,ht=ee,dt=ht.Symbol,te=dt,ye=te,_e=Object.prototype,pt=_e.hasOwnProperty,gt=_e.toString,P=ye?ye.toStringTag:void 0;function vt(e){var t=pt.call(e,P),r=e[P];try{e[P]=void 0;var n=!0}catch{}var s=gt.call(e);return n&&(t?e[P]=r:delete e[P]),s}var mt=vt,yt=Object.prototype,_t=yt.toString;function bt(e){return _t.call(e)}var Mt=bt,be=te,$t=mt,Dt=Mt,wt="[object Null]",It="[object Undefined]",Me=be?be.toStringTag:void 0;function St(e){return e==null?e===void 0?It:wt:Me&&Me in Object(e)?$t(e):Dt(e)}var $e=St;function Ct(e){return e!=null&&typeof e=="object"}var Ft=Ct,Et=$e,Tt=Ft,Yt="[object Symbol]";function At(e){return typeof e=="symbol"||Tt(e)&&Et(e)==Yt}var H=At,kt=Q,Nt=H,Lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ot=/^\w*$/;function xt(e,t){if(kt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Nt(e)?!0:Ot.test(e)||!Lt.test(e)||t!=null&&e in Object(t)}var Pt=xt;function jt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R=jt,Gt=$e,Bt=R,Ht="[object AsyncFunction]",Rt="[object Function]",qt="[object GeneratorFunction]",Ut="[object Proxy]";function zt(e){if(!Bt(e))return!1;var t=Gt(e);return t==Rt||t==qt||t==Ht||t==Ut}var De=zt,Wt=ee,Kt=Wt["__core-js_shared__"],Vt=Kt,re=Vt,we=function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jt(e){return!!we&&we in e}var Xt=Jt,Zt=Function.prototype,Qt=Zt.toString;function er(e){if(e!=null){try{return Qt.call(e)}catch{}try{return e+""}catch{}}return""}var tr=er,rr=De,nr=Xt,sr=R,ar=tr,ir=/[\\^$.*+?()[\]{}|]/g,or=/^\[object .+?Constructor\]$/,ur=Function.prototype,cr=Object.prototype,fr=ur.toString,lr=cr.hasOwnProperty,hr=RegExp("^"+fr.call(lr).replace(ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dr(e){if(!sr(e)||nr(e))return!1;var t=rr(e)?hr:or;return t.test(ar(e))}var pr=dr;function gr(e,t){return e==null?void 0:e[t]}var vr=gr,mr=pr,yr=vr;function _r(e,t){var r=yr(e,t);return mr(r)?r:void 0}var Ie=_r,br=Ie,Mr=br(Object,"create"),q=Mr,Se=q;function $r(){this.__data__=Se?Se(null):{},this.size=0}var Dr=$r;function wr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ir=wr,Sr=q,Cr="__lodash_hash_undefined__",Fr=Object.prototype,Er=Fr.hasOwnProperty;function Tr(e){var t=this.__data__;if(Sr){var r=t[e];return r===Cr?void 0:r}return Er.call(t,e)?t[e]:void 0}var Yr=Tr,Ar=q,kr=Object.prototype,Nr=kr.hasOwnProperty;function Lr(e){var t=this.__data__;return Ar?t[e]!==void 0:Nr.call(t,e)}var Or=Lr,xr=q,Pr="__lodash_hash_undefined__";function jr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===void 0?Pr:t,this}var Gr=jr,Br=Dr,Hr=Ir,Rr=Yr,qr=Or,Ur=Gr;function k(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=Br,k.prototype.delete=Hr,k.prototype.get=Rr,k.prototype.has=qr,k.prototype.set=Ur;var zr=k;function Wr(){this.__data__=[],this.size=0}var Kr=Wr;function Vr(e,t){return e===t||e!==e&&t!==t}var Ce=Vr,Jr=Ce;function Xr(e,t){for(var r=e.length;r--;)if(Jr(e[r][0],t))return r;return-1}var U=Xr,Zr=U,Qr=Array.prototype,en=Qr.splice;function tn(e){var t=this.__data__,r=Zr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():en.call(t,r,1),--this.size,!0}var rn=tn,nn=U;function sn(e){var t=this.__data__,r=nn(t,e);return r<0?void 0:t[r][1]}var an=sn,on=U;function un(e){return on(this.__data__,e)>-1}var cn=un,fn=U;function ln(e,t){var r=this.__data__,n=fn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hn=ln,dn=Kr,pn=rn,gn=an,vn=cn,mn=hn;function N(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}N.prototype.clear=dn,N.prototype.delete=pn,N.prototype.get=gn,N.prototype.has=vn,N.prototype.set=mn;var yn=N,_n=Ie,bn=ee,Mn=_n(bn,"Map"),$n=Mn,Fe=zr,Dn=yn,wn=$n;function In(){this.size=0,this.__data__={hash:new Fe,map:new(wn||Dn),string:new Fe}}var Sn=In;function Cn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Fn=Cn,En=Fn;function Tn(e,t){var r=e.__data__;return En(t)?r[typeof t=="string"?"string":"hash"]:r.map}var z=Tn,Yn=z;function An(e){var t=Yn(this,e).delete(e);return this.size-=t?1:0,t}var kn=An,Nn=z;function Ln(e){return Nn(this,e).get(e)}var On=Ln,xn=z;function Pn(e){return xn(this,e).has(e)}var jn=Pn,Gn=z;function Bn(e,t){var r=Gn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Hn=Bn,Rn=Sn,qn=kn,Un=On,zn=jn,Wn=Hn;function L(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}L.prototype.clear=Rn,L.prototype.delete=qn,L.prototype.get=Un,L.prototype.has=zn,L.prototype.set=Wn;var Kn=L,Ee=Kn,Vn="Expected a function";function ne(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vn);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],a=r.cache;if(a.has(s))return a.get(s);var i=e.apply(this,n);return r.cache=a.set(s,i)||a,i};return r.cache=new(ne.Cache||Ee),r}ne.Cache=Ee;var Jn=ne,Xn=Jn,Zn=500;function Qn(e){var t=Xn(e,function(n){return r.size===Zn&&r.clear(),n}),r=t.cache;return t}var es=Qn,ts=es,rs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ns=/\\(\\)?/g,ss=ts(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rs,function(r,n,s,a){t.push(s?a.replace(ns,"$1"):n||r)}),t}),as=ss;function is(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var os=is,Te=te,us=os,cs=Q,fs=H,ls=1/0,Ye=Te?Te.prototype:void 0,Ae=Ye?Ye.toString:void 0;function ke(e){if(typeof e=="string")return e;if(cs(e))return us(e,ke)+"";if(fs(e))return Ae?Ae.call(e):"";var t=e+"";return t=="0"&&1/e==-ls?"-0":t}var hs=ke,ds=hs;function ps(e){return e==null?"":ds(e)}var gs=ps,vs=Q,ms=Pt,ys=as,_s=gs;function bs(e,t){return vs(e)?e:ms(e,t)?[e]:ys(_s(e))}var Ms=bs,$s=H,Ds=1/0;function ws(e){if(typeof e=="string"||$s(e))return e;var t=e+"";return t=="0"&&1/e==-Ds?"-0":t}var Is=ws,Ss=Ms,Cs=Is;function Fs(e,t){t=Ss(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Cs(t[r++])];return r&&r==n?e:void 0}var Es=Fs,Ts=Es;function Ys(e,t,r){var n=e==null?void 0:Ts(e,t);return n===void 0?r:n}var As=Ys;function ks(e){return e==null}var Ns=ks;const Ls=function(e,t={}){let r={},n=[],s=[],a={};const i=function(){r={},n=[],s=[],a={}};i();let{childrenKey:u="children",checkedKey:o="checked",idKey:f="id"}=t,h=0,y=0;const g=function(l={}){u=l.childrenKey||u,o=l.checkedKey||o,f=l.idKey||f},v=function(l,d){l.forEach(function(p){const m=p[f];r[m]=p,p={...p},s.push(p),p.parent=d,p.index=h++;const S=d?d.deepth+1:0;p.deepth=S,y=Math.max(y,S),p.path=d?d.path+"."+p[f]:"0",p.parentIdList=d?[...d.parentIdList,d[f]]:[],a[m]=p,p[u]&&p[u].length>0&&v(p[u],p)})},D=function(l){return l[u]&&l[u].length>0?!l[u].map(p=>$(p[f])).find(p=>!p[o]):!1},w=function(l){i(),Array.isArray(l)&&v(l)};w(e);const x=function(l){var d;return(d=$(l))==null?void 0:d.parentIdList.map(p=>$(p))},K=function(l){const d=$(l);return s.filter(function(p){return p.parent===(d==null?void 0:d.parent)})},I=function(l){let d;if(!l)return console.warn("id\u4E0D\u80FD\u4E3A\u7A7A"),null;if(l instanceof Object)d=l[f];else if(typeof l=="string"||typeof l=="number")d=l;else return console.warn("id\u7C7B\u578B\u975E\u6CD5:",l),null;return d},$=function(l){const d=I(l);return d?a[d]:null},Ve=function(l){const d=I(l);return d?r[d]:null},ui=function(l){const d=$(l);return d==null?void 0:d.deepth},ci=function(l,d){const p=$(l);p&&Object.assign(p,d)},fi=function(l,d,p=!1){const m=$(l);m&&(m[o]=d,p&&(m.parentIdList.forEach(S=>{const Je=a[S];Je[o]=D(Je)}),V(m,function(S){S[o]=d})))},li=function(l){const d={};l&&l.forEach(p=>{d[p]=!0}),s.forEach(p=>{p[o]=d[p[f]]||!1})},V=function(l,d,p=[]){const m=$(l);if(m)d(m),p.push(m),m[u]&&m[u].length>0&&m[u].forEach(function(S){V(S,d,p)});else throw new Error("\u8282\u70B9\u4E0D\u5B58\u5728:"+l);return p};return{travelNode:V,getNodeList:(l=!0)=>l?[...s]:[...n],getNodeDescendantList:l=>{const d=[];return V(l,function(p){d.push(p)}),d},getNodeListByFilter:l=>s.filter(l),getMinDeepth:function(){let l=y;for(const d in s){const p=s[d];if(p.checked&&(l=Math.min(l,p.deepth)),l===0)return 0}return l},getSublings:K,getParents:x,getDeepth:ui,getNode:$,updateIndexes:w,setChecked:fi,setProps:ci,travelAllNode:function(l){for(const d in s){const p=s[d],m=Ve(p[f]);if(l(p,m)===!1)break}},setOptions:g,resetCheckStatus:li,getOriginNode:Ve}},se=function(e,t,r="children",n="id",s=[],a={flag:!1}){if(e instanceof Array)return se({[r]:e},t,r,n,s);const i=[],u=(e==null?void 0:e[r])||[];for(let o=0;o<u.length;o++){const f=u[o];if(t&&t(f,s,r,n)===!1){a.flag=!0;break}if(i.push(f),f[r]instanceof Array){const h=se(f[r],t,r,n,[f,...s],a);i.push(...h)}if(a.flag)break}return i},j=function(e,t,r=null,n=!1){if(typeof t=="string"&&(t=t.split(",")),!!Array.isArray(t)){for(let s=0;s<t.length;s++){const a=t[s],i=As(e,a);if(n?Ns(i):!!i)return i}return r}},ae=e=>Object.prototype.toString.call(e)=="[object Object]",Os=(e,t="children",r=!1)=>{const n=[],s=[...e];for(;s.length;){const a=s.shift();n.push(a);const i=a[t];i!=null&&i.length&&(r&&n.pop(),s.unshift(...i))}return n};function xs(e){return e===null}var Ne=xs;const Le=function(e,t,r,n="_",s=0){e[t]?s<5&&Le(e,n+t,r,n,s+1):e[t]=r},Ps=function(e,t,r){let n=!1;return Array.isArray(e)&&(e={[t]:e},n=!0),nt(e,r,{getChildren(s){return s[t]}}),n?e[t]:e},js=function(e,t){const r={valueGetField:"value",nameGetField:"name",valueSetField:"value",nameSetField:"name",spliterItemValue:",",spliterBetweenItem:/\s+/,defaultLs:["0, \u8BF7\u63D0\u4F9Boptions"],...t||{}};let n;return typeof e=="function"&&(n=e(r)),typeof e=="string"?n=e.trim().split(r.spliterBetweenItem).map(a=>a.trim()):Array.isArray(e)?n=e:Array.isArray(r.defaultLs)?n=r.defaultLs:typeof r.defaultLs=="function"?n=r.defaultLs():n=[{name:"\u8BF7\u901A\u8FC7optionLs\u4F20\u5165\u6570\u7EC4\u6216\u8005\u51FD\u6570",value:-1}],function(a){const i=r.elFormatter;i&&(a=a.map(o=>{let[f,h]=i(o,r,j);return{value:f,name:h}}));let u=at(a);return u.length!=a.length&&console.warn("options\u4E2D\u5B58\u5728\u7A7A\u9009\u9879",a),a=u,a=a.map(o=>{typeof o=="string"?o=(o+"").split(r.spliterItemValue).map(y=>y.trim()):typeof o=="number"&&(o=[o,o]);let f,h;if(Array.isArray(o)){if([f,h]=o,h===void 0?h=f:f===void 0&&(f=h),Ne(f)||Ne(h))throw"value\u548Cname\u4E0D\u80FD\u540C\u65F6\u4E3A\u7A7A"}else o?(f=j(o,r.valueGetField),h=j(o,r.nameGetField)):(h="\u65E0\u6548options",f="-");return{[r.valueSetField]:f,[r.nameSetField]:h}}),a.forEach(o=>{const f=o[r.valueSetField];typeof f!="number"&&typeof f!="string"&&(console.warn("options\u4E2D\u5B58\u5728\u975E\u6CD5\u7684value,\u9700\u8981\u662Fnumber\u6216\u8005string",o),o[r.valueSetField]=o.value+"")}),a}(n)},Gs=function(e,t=null){if(ae(e)||Array.isArray(e))return e;if(typeof e!="string")return console.warn("safeJsonParser error",e),t;try{return JSON.parse(e)}catch{return console.log("json\u89E3\u6790\u5931\u8D25:",e),t}},Bs=function(e,t,r=0,n=void 0){if(t.includes(e))return e;{let s=t[r];return s===void 0&&(s=n),s}};function Hs(e){return new Promise(function(t,r){var n=typeof e=="string"?e:URL.createObjectURL(e);if(!n)throw new Error("Must use a valid image");var s=document.createElement("img");s.onload=()=>{typeof e!="string"&&URL.revokeObjectURL(n),t({width:s.width,height:s.height})},s.onerror=a=>{typeof e!="string"&&URL.revokeObjectURL(n),r(a)},s.src=n})}function Rs(){if(typeof window>"u")return-1;const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}const n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}const qs=Rs()!==-1;function Oe(...e){let t;Array.isArray(arguments[0])?t=arguments[0]:t=Array.prototype.slice.call(arguments);let r=[];return t.reduce(function(n,s,a,i){return n.then(function(){if(typeof s=="function")try{s=s()}catch(u){return i.splice(1),Promise.reject(u)}else console.warn("map element:"+a+" not function");return s.then(u=>{r[a]=u})})},Promise.resolve(r)).then(function(){return r})}class Us extends Promise{constructor(r=void 0){let n,s;super((a,i)=>{n=a,s=i,r&&r(a,i)});_(this,"__resolve");_(this,"__reject");this.__resolve=n,this.__reject=s}static map(r){return Oe(r)}static all(r){return Promise.all(r)}resolve(r){this.__resolve(r)}_resolve(r){this.__resolve(r)}reject(r){this.__reject(r)}_reject(r){this.__reject(r)}}const zs=(e,t,r)=>new Promise((n,s)=>{const a=e[Symbol.iterator](),i=u=>{const{value:o,done:f}=a.next();f?n(u):t(u,o,e).then(i)};i(r)}),W=class{static get fastGbk(){if(!this._fastGbk)throw new Error("\u8BF7\u5148\u8C03\u7528setFaskGbk\u65B9\u6CD5\u8BBE\u7F6EfastGbk::$GBK.setFaskGbk(require('fast-gbk'))");return this._fastGbk}static setFaskGbk(t){this._fastGbk=t}static encode(t){return W.fastGbk.encode(t)}static decode(t){if(!t||!t.length)return"";typeof t=="string"&&(/^\%/.test(t)?t=t.split("%").splice(1):t=t.split(","));let r="";if(Array.isArray(t))if(typeof t[0]=="number")r=this.fastGbk.decode(t);else{const n=t.map(s=>{typeof s=="number"&&(console.warn("decodeGBK\u4F20\u5165\u7684\u6570\u7EC4\u4E2D\u6709number\u7C7B\u578B\u7684\u6570\u636E\uFF0C\u8FD9\u662F\u4E0D\u5141\u8BB8\u7684\uFF0C\u4F1A\u5BFC\u81F4\u89E3\u7801\u9519\u8BEF"),s=s+"");let a=parseInt(s,16);return isNaN(a)?0:a});r=W.decode(n)}return r}};let C=W;_(C,"_fastGbk");const xe=new Map;function Ws(e){if(e===0)return"0";if(e===!1)return"False";if(!e)return"";if(typeof e!="string")throw new Error("\u65E0\u6548\u8F93\u5165");let[t,...r]=e;return t.toUpperCase()+r.join("")}const Pe=()=>{let e=Math.random().toString(32).substr(2);return xe.get(e)?Pe():(xe.set(e,!0),e)};function Ks(e){return C.decode(e)}function Vs(e){return C.decode(e)}function Js(e,t="utf-8",r=16){return t.toLowerCase()=="gbk"&&r==16?Ks(e):new TextDecoder(t).decode(new Uint8Array(e.map(n=>Number.isFinite(n)?n:parseInt(n,r))))}function Xs(e,t="string"){return t=="string"?C.encode(e):C.encode(e).split("%").splice(1)}function Zs(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);n>=1&&n<=126||65376<=n&&n<=65439?t++:t+=2}return t}const Qs=(e,t="")=>ae(e)||Array.isArray(e)?JSON.stringify(e):typeof e=="string"?e:(console.warn("safeStringify error(\u6682\u4E0D\u652F\u6301\u7684\u6570\u636E\u7C7B\u578B)",e),t);function ea(e,t,r="..."){for(var n="",s=0,a=0;a<e.length;a++){var i=e[a];if(/[\u4e00-\u9fa5]/.test(i)?s+=2:s+=1,s>t*2)break;n+=i}return e.length<=n.length?e:n+r}const ta=/\:\:([-\d\.]+)$/,T=class{constructor(t,r,n=!1,s=null){_(this,"_name");_(this,"_code");_(this,"_silent");const a=this;a._name=t,a._code=r,a._silent=n}static addNameFieldList(t){this.nameFieldList.push(t)}get name(){return this._name}get message(){return this._name}get msg(){return this._name}get code(){return this._code}get cod(){return this._code}get errorCode(){return this._code}get silent(){return this._silent}get silence(){return this._silent}toString2(){const t=this;return`AError:${t.code}-${t.name}`}static fromErrorText(t,r=!1){const n=`${t}-${r?"0":"1"}`;let s=je[n];if(!s){let a,i;ta.test(t)?(a=RegExp.$1,i=t.replace(`::${a}`,"")):(a=0,i=t),s=new T(i,a,r),je[n]=s}return s}static create(t,r=!1){return this.fromObject(t,r)}static getErrorCode(t){return t?t.constructor==T?t._code:this.fromObject(t)._code:0}};let G=T;_(G,"nameFieldList",["error","message","msg","errMsg","reason","errorText"]),_(G,"fromObject",(t,r=!1)=>{const n=T;if(!t)return new T("\u672A\u77E5\u9519\u8BEF",-9999);let s;if(t instanceof Error)return n.fromErrorText(t.message,r);if(typeof t=="string")if(/^(\[|\{)/.test(t))try{t=JSON.parse(t)}catch{s=t}else s=t;else s=j(t,T.nameFieldList),r||(r=t.silence||t.silent);return!s&&t.data?n.fromObject(t.data):n.fromErrorText(s,r)});const je={};function ra(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(s);++n<s;)a[n]=e[n+t];return a}var na=ra,sa=9007199254740991;function aa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sa}var ia=aa,oa=De,ua=ia;function ca(e){return e!=null&&ua(e.length)&&!oa(e)}var fa=ca,la=9007199254740991,ha=/^(?:0|[1-9]\d*)$/;function da(e,t){var r=typeof e;return t=t==null?la:t,!!t&&(r=="number"||r!="symbol"&&ha.test(e))&&e>-1&&e%1==0&&e<t}var pa=da,ga=Ce,va=fa,ma=pa,ya=R;function _a(e,t,r){if(!ya(r))return!1;var n=typeof t;return(n=="number"?va(r)&&ma(t,r.length):n=="string"&&t in r)?ga(r[t],e):!1}var ba=_a,Ma=/\s/;function $a(e){for(var t=e.length;t--&&Ma.test(e.charAt(t)););return t}var Da=$a,wa=Da,Ia=/^\s+/;function Sa(e){return e&&e.slice(0,wa(e)+1).replace(Ia,"")}var Ca=Sa,Fa=Ca,Ge=R,Ea=H,Be=0/0,Ta=/^[-+]0x[0-9a-f]+$/i,Ya=/^0b[01]+$/i,Aa=/^0o[0-7]+$/i,ka=parseInt;function Na(e){if(typeof e=="number")return e;if(Ea(e))return Be;if(Ge(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ge(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Fa(e);var r=Ya.test(e);return r||Aa.test(e)?ka(e.slice(2),r?2:8):Ta.test(e)?Be:+e}var La=Na,Oa=La,He=1/0,xa=17976931348623157e292;function Pa(e){if(!e)return e===0?e:0;if(e=Oa(e),e===He||e===-He){var t=e<0?-1:1;return t*xa}return e===e?e:0}var ja=Pa,Ga=ja;function Ba(e){var t=Ga(e),r=t%1;return t===t?r?t-r:t:0}var Ha=Ba,Ra=na,qa=ba,Ua=Ha,za=Math.ceil,Wa=Math.max;function Ka(e,t,r){(r?qa(e,t,r):t===void 0)?t=1:t=Wa(Ua(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var s=0,a=0,i=Array(za(n/t));s<n;)i[a++]=Ra(e,s,s+=t);return i}var Re=Ka;class ie{static strip(t,r=12){return+parseFloat(t.toPrecision(r))}static hexString2DecLs(t){return Re(t,2).map(r=>parseInt(r.join(""),16))}static preppendZero(t,r=2){return oe(r,t)}static getDec(t){return t-Math.trunc(t)}static toDEC(t,r=16){return Array.isArray(t)?t.map(n=>parseInt(n,r)):parseInt(t,r)}static toHEX(t,r=2,n=10){if(Array.isArray(t))return t.map(s=>Array.isArray(s)?s[0]:this.toHEX(s,length,n));if(/[a-zA-Z]/.test(t+""))throw new Error("\u65E0\u6CD5\u8F6C\u6362\u4E3AHEX:"+t);return t=parseInt(t+"",n),t>=Math.pow(2,8)&&(r=4),Va(t,r)[0]}}function Va(e,t=2){let r=parseInt(e+"").toString(16).toUpperCase(),n=Re(r,t).map(a=>a.join(""));const s=oe(t,n[0]);return n.splice(0,1,s),n}function oe(e,t){let r=e-(t+"").length;return r<=0?t+"":Array(r).fill("0").join("")+(t+"")}function qe(e,t=12){return typeof e!="number"&&(e=0),+parseFloat(e.toPrecision(t))}function Ja(e,t=2){typeof e!="number"&&(e=0);const r=qe(e).toFixed(t);return parseFloat(r)}const Xa=function(e,t=Number.MAX_SAFE_INTEGER,r=0){const n=typeof e=="string";let s=n?ie.toDEC(e):e;return typeof r=="number"&&(s=Math.max(r,s)),typeof t=="number"&&(s=Math.min(t,s)),n?ie.toHEX(s):s},Za=(e,t=0)=>{if(typeof e=="number")return e;const s=((e+"").includes(".")?parseFloat:parseInt)(e);return isNaN(s)?t:s};function Qa(e,t,r){function n(i,u){return Math.floor(Math.random()*(u-i+1))+i}function s(){const i=[];let u=e;for(let o=0;o<t-1;o++){const f=n(r,u-r*(t-1-o));i.push(f),u-=f}return i.push(u),i}let a=0;for(;a<5;){const i=s();if(i.every(u=>u>=r))return i;a++}return[]}var Ue={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(A,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,s,a){var i=s.prototype,u=i.format;a.en.formats=r,i.format=function(o){o===void 0&&(o="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,h=function(y,g){return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,D,w){var x=w&&w.toUpperCase();return D||g[w]||r[w]||g[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,I,$){return I||$.slice(1)})})}(o,f===void 0?{}:f);return u.call(this,h)}}})})(Ue);const ei=Ue.exports;var ze={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(A,function(){var r="week",n="year";return function(s,a,i){var u=a.prototype;u.week=function(o){if(o===void 0&&(o=null),o!==null)return this.add(7*(o-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(n).add(1,n).date(f),y=i(this).endOf(r);if(h.isBefore(y))return 1}var g=i(this).startOf(n).date(f).startOf(r).subtract(1,"millisecond"),v=this.diff(g,r,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},u.weeks=function(o){return o===void 0&&(o=null),this.week(o)}}})})(ze);const ti=ze.exports;M.default.extend(ei),M.default.extend(ti);const O=function(e){const t=new Date;if(e){if(e instanceof Date)return e;if(typeof e=="number"){const r=e+"",n=r.split(""),s=parseInt(n.splice(0,4).join("")),a=parseInt(n.splice(0,2).join(""))-1,i=parseInt(n.splice(0,2).join(""));return r.length==4?(t.setFullYear(s),t):r.length==6?(t.setFullYear(s),t.setMonth(a-1),t):r.length==8?(t.setFullYear(s),t.setMonth(a),t.setDate(i),t):new Date(e)}else if(typeof e=="string"){if(e=e.trim(),/^\d+$/.test(e))return O(parseInt(e));{const r=e.split(/[-:\sTZ\+年月日时分秒]/),[n=t.getFullYear(),s=0+1,a=1,i=0,u=0,o=0]=r,f=parseInt([n,(s+"").padStart(2,"0"),(a+"").padStart(2,"0")].join(""));if(r.length<=3)return O(f);{const h=O(f);if(!h)throw new Error("\u65E0\u6CD5\u89E3\u6790\u7684\u65E5\u671F\u683C\u5F0F");return h.setHours(i,u,o),h}}}}else return new Date},ue=O;function ri(e){var t="";if(typeof e=="string"){let r=e.split("-");r.length==1?e=parseInt(e):r.length==2?t=e+"-01":t=e;const n=ue(t);return ce(n)}else if(typeof e=="number"){const r=new Date;return r.setMonth(e-1),ce(r)}else throw new Error("\u8BF7\u4F20\u5165\u6709\u6548\u7C7B\u578B")}function ce(e){return e=new Date(ue(e).getTime()),e.add(1,"month"),e.setDate(0),e.getDate()}const ni=(e,t=!0)=>{typeof e=="string"&&(e=M.default(e).toDate());const r=e.getDay(),n=new Date(e);n.setDate(e.getDate()-r),n.setHours(0,0,0,0);const s=new Date(n);s.setDate(n.getDate()+6),s.setHours(23,59,59,999);const a=M.default(e).week(),i=M.default(n).format("YYYY-MM-DD");return t&&(n.setDate(n.getDate()+1),s.setDate(s.getDate()+1)),{startYYYYMMDD:i,start:n,end:s,thInYear:a}},We=(e,t,r,n=!0)=>{const a=new Date(e,t-1,1).getDay(),i=1+(r-1)*7-a,u=n?i+1:i;return new Date(e,t-1,u)},Ke=e=>{typeof e=="string"&&(e=M.default(e).toDate());const t=e.getDate(),r=e.getDay();return Math.ceil((t+6-r)/7)};class F{constructor(t){_(this,"_start");_(this,"_end");_(this,"_thInYear");_(this,"_thInMonth");const{start:r,end:n,thInYear:s}=ni(t);this._start=r,this._end=n,this._thInYear=s,this._thInMonth=Ke(r)}get start(){return this._start}get startStr(){return M.default(this.start).format("YYYY-MM-DD")}get end(){return this._end}get endStr(){return M.default(this.end).format("YYYY-MM-DD")}get thInYear(){return this._thInYear}get thInMonth(){return this._thInMonth}get YYYYMMth(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}-[${this.thInMonth}]`}get YYYYMMthStr(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}/\u7B2C${this.thInMonth}\u5468`}static fromYYYYMMThStr(t){const[r,n,s]=t.split(/[^\d]+/).filter(i=>i),a=We(parseInt(r),parseInt(n),parseInt(s));return new F(a)}get YYYYMM(){return`${this.start.getFullYear()}-${this.start.getMonth()+1}`}get YYYY(){return this.start.getFullYear()}contains(t){return t>=this.start&&t<=this.end}nextDateWeek(){const t=new Date(this.end.getFullYear(),this.end.getMonth(),this.end.getDate()+1);return new F(t)}prevDateWeek(){const t=new Date(this.start.getFullYear(),this.start.getMonth(),this.start.getDate()-1);return new F(t)}static getListfromRange(t,r){typeof t=="string"&&(t=M.default(t).toDate()),typeof r=="string"&&(r=M.default(r).toDate()),t>r&&([t,r]=[r,t]);const n=[];let s=new F(t);for(;!s.contains(r);)n.push(s),s=s.nextDateWeek();return n.push(s),n}static from_yyyy_th(t,r){const n=M.default(`${t}-01-01`).week(parseInt(r+""));return new F(n.toDate())}toString(){return`
[${this.thInYear}] ${this.startStr} - ${this.endStr}`}}const si={};class E extends Date{constructor(...r){super(...r);_(this,"__currentMonth",!1)}static fromYYYY_MM(r){var n=r.replace(/_/g,"-")+"-01";return new E(n)}static fromDate(r){return new E(r.getTime())}static fromAny(r){return this.fromDate(O(r))}diff(r,n="day"){let s=this.getTime()-r.getTime();switch(n){case"year":return s/1e3/60/60/24/365;case"month":return s/1e3/60/60/24/30;case"day":return s/1e3/60/60/24;case"hour":return s/1e3/60/60;case"minute":return s/1e3/60;case"second":return s/1e3;case"millisecond":return s}}add(r,n="day"){const s=this.clone();switch(n){case"year":s.setFullYear(this.getFullYear()+r);break;case"month":this.setMonth(this.getMonth()+r);case"day":this.setDate(this.getDate()+r);case"hour":s.setHours(this.getHours()+r);break;case"minute":s.setMinutes(this.getMinutes()+r);break;case"second":s.setSeconds(this.getSeconds()+r);break;case"millisecond":s.setMilliseconds(this.getMilliseconds()+r);break}return s}clone(){return new E(this.getTime())}setTimeByDate(r){return this.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getSeconds()),this}getDayMountInMonth(){let r=this.clone();return r.setMonth(r.getMonth()+1),r.setDate(0),r.getDate()}setToDayStart(){return this.clearTime()}setToDayEnd(){return this.setHours(23,59,59,999),this}setToMonthStart(){return this.setDate(1),this.setToDayStart()}setToMonthEnd(){return this.setDate(this.getDayMountInMonth()),this.setToDayEnd()}setToYearStart(){const r=this;return r.setMonth(0,1),r.setToDayStart(),r}setToYearEnd(){const r=this;return r.setMonth(12,1),r.setToDayStart(),r.setTime(r.getTime()-1),r}isSameDay(r){let n;typeof r=="number"?n=new E(r):n=E.prototype.clone.call(r);let s=n.clone().setToDayStart(),a=this.clone().setToDayStart();return s.getTime()==a.getTime()}clearTime(){return this.setHours(0,0,0,0),this}clearDay(){return this.setDate(1),this}formatToMonth(r="-"){const n=this.getFullYear(),s=this.getMonth()+1;return`${n}${r}${s}`}formatToDay(r="-"){const n=this.getFullYear(),s=this.getMonth()+1,a=this.getDate();return`${n}${r}${s}${r}${a}`}getCalendarDateList(r=!1){var n=this;typeof r>"u"&&(r=!0);var s=si,a=this.getFullYear()+"-"+(this.getMonth()+1)+"-"+(r?"0":"1");if(s[a])return s[a];let i,u;r?(i=0,u=6):(i=1,u=7);let o=[],f=this.clone().setToMonthStart(),h=this.clone().setToMonthEnd();var y=f.getDay(),g=h.getDay();let v=f.clone().add(i-y-1,"day"),D=h.clone().add(u-g+0,"day"),w=D.diff(v,"day"),x=0,K=n.getMonth();for(;x++<w;){let I=v.clone().add(x,"day");I.getMonth()==K&&(I.__currentMonth=!0),o.push(I)}return s[a]={list:o,firstDateInMonth:f,lastDateInMonth:h,firstDateInView:v,lastDateInView:D}}}const ai=e=>e.replace(/[^\x00-\xff]/g,"**").length,ii=(e,t)=>(r,n)=>r.trim().split(`
`).map(a=>{const i=a.trim();return i.startsWith("//")?"":i}).filter(a=>!!a).map(a=>{const[i,u,...o]=a.split(/\s+/),h={minWidth:ai(u)*7+45,key:i,title:u,visible:!1,sum:!1};o.forEach(g=>{if(["center","left"].includes(g))h.align=g;else if(/^(\+|\-)?(\d+)$/.test(g)){const v=RegExp.$1,D=parseInt(RegExp.$2);v==="+"?h.maxWidth=D:v==="-"?h.minWidth=D:h.width=D}else if(["show","hide"].includes(g))h.visible=g=="show";else if(g==="__sum__")h.sum=!0;else if(g.startsWith("#"))g=="#"?h.slot=h.key:h.slot=g.substring(1);else{const v=t[g];v?h.render=v:console.warn("\u672A\u5B9A\u4E49\u7684render:",g)}});const y=e[i];return y&&Object.assign(h,y),h.getValue=function(g){return h.render?h.render(null,{row:g,column:h},!0):g[h.key]},n?n(h,a):h});function oi(e,t,r,n,s){var a=t.width,i=t.height;e.save(),e.translate(r,n),e.rotate(s),e.drawImage(t,-a/2,-i/2,a,i),e.restore()}Object.defineProperty(c,"dayjs2",{enumerable:!0,get:()=>M.default}),c.AError=G,c.BPromise=Us,c.Date2=E,c.DateWeek=F,c.Math2=ie,c.all2date=O,c.all2valueName=js,c.asyncReduce=zs,c.byteArrayToString=Js,c.drawRotatedImage=oi,c.encodeStringToGBK=Xs,c.firstLetterUppercase=Ws,c.fromGBKArrayToString=Vs,c.getByteLength=Zs,c.getDayLengthInMonth=ce,c.getDayMountByMonth=ri,c.getImageSize=Hs,c.getWeekStartDateFromYYYYMMThInMonth=We,c.getWeekThInMonth=Ke,c.isIE=qs,c.isPlainObject=ae,c.makeTreeDataHelper=Ls,c.parse2date=ue,c.preppendZero=oe,c.promiseMap=Oe,c.randomSegmentation=Qa,c.randomString=Pe,c.safeBindToObject=Le,c.safeJsonParser=Gs,c.safeParseNumber=Za,c.safeStringify=Qs,c.safeValueInList=Bs,c.safeValueInRange=Xa,c.stripAndFixNumber=Ja,c.stripNumber=qe,c.stripString=ea,c.travelTree=se,c.treeEach=Ps,c.treeListToFlatList=Os,c.tryGet=j,c.viewuiColumnFactory=ii,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "@ioto/core",
"version": "0.1.16",
"version": "0.1.17",
"description": "base javascript functions",

@@ -56,3 +56,3 @@ "author": "ccwq <scwqd@qq.com>",

},
"gitHead": "ce7373fd76e0a84b318d56da716e3aa9483c3683"
"gitHead": "3738a84b08e4c046bfd241ec3b15590761fbdeec"
}

@@ -34,3 +34,3 @@ declare type KeyID = string | number;

declare const makeTreeDataHelper: (treeData: IInputData, options?: Options) => {
travelNode: (id: KeyID | INode, callback: ITravelCallback) => void;
travelNode: (id: KeyID | INode, callback: ITravelCallback, collection?: never[]) => INode[];
getNodeList: (isMirror?: boolean) => INode[];

@@ -37,0 +37,0 @@ getNodeDescendantList: (id: KeyID | INode) => INode[];

@@ -8,9 +8,2 @@ /**

/**
* 字数限制
* @param string
* @param length
* @returns {string|*}
*/
export declare function stripString(string: string, length: number): string;
/**
* 产生一个不重复的字符串

@@ -71,2 +64,14 @@ * @returns {string}

/**
* 截取字符串并添加省略号。
*
* 此函数用于将给定的字符串截断到指定的长度,并在末尾添加省略号,以确保字符串的总长度不超过指定的长度。
* 特别地,该函数考虑了中文字符的长度,每个中文字符计为2个字符长度。
*
* @param text 要截断的原始字符串。
* @param length 指定的字符串长度限制。
* @param endfix 可选参数,指定要添加的省略号字符串,默认为"..."。
* @returns 返回截断后的字符串,如果原始字符串长度不超过指定长度,则返回原始字符串。
*/
export declare function stripString(text: string, lagnth: number, endfix?: string): string;
/**
* 获取 URL 的 dirname。

@@ -73,0 +78,0 @@ * @description 获取 URL 的 dirname