@stackoverfloweth/vue-compositions
Version:
A collection of reusable vue compositions.
1,690 lines • 174 kB
JavaScript
var Sv = Object.defineProperty;
var Av = (a, f, i) => f in a ? Sv(a, f, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[f] = i;
var j = (a, f, i) => Av(a, typeof f != "symbol" ? f + "" : f, i);
import { ref as D, onMounted as ar, onUnmounted as Ct, watch as ve, computed as Qn, getCurrentScope as Tv, onScopeDispose as ho, toValue as ot, watchEffect as go, isReadonly as Ev, unref as ue, reactive as Ye, isRef as Fr, getCurrentInstance as po, toRef as Ca, isReactive as to, nextTick as Iv, effectScope as wa, toRaw as Ov, inject as La, provide as Rv } from "vue";
function n0(a) {
const f = D(a ?? !1);
return { value: f, toggle: () => {
f.value = !f.value;
}, setTrue: () => {
f.value = !0;
}, setFalse: () => {
f.value = !1;
} };
}
function Cv(a) {
let f = null;
const i = (E, I) => {
const L = D(E), M = x();
L.value && M.observe(L.value, I);
}, v = () => {
x().disconnect();
}, w = (E, I) => {
const L = D(E);
if (!L.value)
return;
const M = new MutationObserver(a);
M.observe(L.value, I), setTimeout(() => M.disconnect(), 100);
};
function x() {
return f || A(), f;
}
function A() {
f = new MutationObserver(a);
}
return ar(() => {
A();
}), Ct(() => {
v();
}), {
observe: i,
disconnect: v,
check: w
};
}
function vo(a) {
let f = null;
const i = (I) => {
const L = D(I), M = A();
L.value && M.observe(L.value);
}, v = (I) => {
const L = D(I), M = A();
L.value && M.unobserve(L.value);
}, w = () => {
A().disconnect();
}, x = (I) => {
const L = D(I);
if (!L.value)
return;
const M = new ResizeObserver(a);
M.observe(L.value), setTimeout(() => M.disconnect(), 100);
};
function A() {
return f || E(), f;
}
function E() {
f = new ResizeObserver(a);
}
return ar(() => {
E();
}), Ct(() => {
w();
}), {
observe: i,
disconnect: w,
unobserve: v,
check: x
};
}
function ro(a) {
const f = eval;
try {
return f(a), !0;
} catch {
return !1;
}
}
function io(a) {
if (!(!ro("window") || !a))
return window.getComputedStyle(a);
}
function Lv(a) {
const f = D(a), i = io(f.value), v = D(i);
function w([I]) {
Pv(I.target) && x(I.target);
}
function x(I) {
const L = io(I);
L && (v.value = L);
}
const A = Cv(w), E = vo(w);
return ve(f, (I) => {
I && (x(I), A.disconnect(), A.observe(f, { attributes: !0, childList: !0 }), E.disconnect(), E.observe(f));
}, { immediate: !0 }), v;
}
function Pv(a) {
return !!a.attributes;
}
function Mv(a) {
const f = D(a), i = {
height: D(0),
width: D(0),
x: D(0),
y: D(0),
left: D(0),
top: D(0),
right: D(0),
bottom: D(0)
};
function v(x) {
const A = x.getBoundingClientRect();
i.height.value = A.height, i.width.value = A.width, i.x.value = A.x, i.y.value = A.y, i.left.value = A.left, i.top.value = A.top, i.right.value = A.right, i.bottom.value = A.bottom;
}
const w = vo(([x]) => v(x.target));
return ve(f, (x) => {
x && (v(x), w.disconnect(), w.observe(f));
}, { immediate: !0 }), i;
}
function e0(a, f) {
const i = D(a), v = D(f), { width: w } = Mv(v), x = Lv(v);
return Qn(() => {
var H, nn, B;
const A = js((H = x.value) == null ? void 0 : H.paddingLeft), E = js((nn = x.value) == null ? void 0 : nn.paddingRight), I = js((B = x.value) == null ? void 0 : B.columnGap), L = w.value - A - E;
return Nv(i.value, I) > L;
});
}
function js(a) {
return a ? parseInt(a) : 0;
}
function Nv(a, f) {
return a.map(io).reduce((i, v) => (v && (i += parseInt(v.width), i += parseInt(v.marginLeft) + parseInt(v.marginRight), v.boxSizing === "border-box" && (i += parseInt(v.borderLeftWidth) + parseInt(v.borderRightWidth))), i + f), 0);
}
function au(a) {
return Tv() ? (ho(a), !0) : !1;
}
const Dv = {
immediate: !0
};
function Wv(a, f, i, v = {}) {
const { immediate: w, ...x } = { ...Dv, ...v }, A = D(!w);
function E() {
var L;
(L = ot(a)) == null || L.addEventListener(f, i, x);
}
function I() {
var L;
(L = ot(a)) == null || L.removeEventListener(f, i, x);
}
return au(I), ve(() => ot(a), () => {
A.value || (I(), E());
}, { immediate: !0 }), {
add: () => {
E();
},
remove: () => {
A.value = !0, I();
}
};
}
function cu(a, f, i) {
return Wv(document, a, f, i);
}
const fr = /* @__PURE__ */ new Map();
function Uv(a) {
for (const { element: f, callback: i } of fr.values())
ot(f).contains(a.target) || i();
}
const { add: Bv, remove: Fv } = cu("click", Uv, { capture: !0 });
function ba() {
fr.size > 0 || Fv();
}
function ma() {
fr.size > 0 || Bv();
}
function t0(a, f) {
const i = Symbol("useClickOutside");
fr.set(i, { element: a, callback: f }), ma();
function v() {
fr.delete(i), ba();
}
function w() {
fr.set(i, { element: a, callback: f }), ma();
}
return ho(() => {
v(), ba();
}), {
off: v,
on: w
};
}
var ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Pa(a) {
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
}
var Gv = "Expected a function", ya = NaN, $v = "[object Symbol]", Hv = /^\s+|\s+$/g, Kv = /^[-+]0x[0-9a-f]+$/i, zv = /^0b[01]+$/i, qv = /^0o[0-7]+$/i, Yv = parseInt, Zv = typeof ie == "object" && ie && ie.Object === Object && ie, Jv = typeof self == "object" && self && self.Object === Object && self, Xv = Zv || Jv || Function("return this")(), Qv = Object.prototype, Vv = Qv.toString, kv = Math.max, jv = Math.min, no = function() {
return Xv.Date.now();
};
function n_(a, f, i) {
var v, w, x, A, E, I, L = 0, M = !1, H = !1, nn = !0;
if (typeof a != "function")
throw new TypeError(Gv);
f = xa(f) || 0, uo(i) && (M = !!i.leading, H = "maxWait" in i, x = H ? kv(xa(i.maxWait) || 0, f) : x, nn = "trailing" in i ? !!i.trailing : nn);
function B(X) {
var cn = v, Sn = w;
return v = w = void 0, L = X, A = a.apply(Sn, cn), A;
}
function z(X) {
return L = X, E = setTimeout(Pn, f), M ? B(X) : A;
}
function ln(X) {
var cn = X - I, Sn = X - L, Wn = f - cn;
return H ? jv(Wn, x - Sn) : Wn;
}
function pn(X) {
var cn = X - I, Sn = X - L;
return I === void 0 || cn >= f || cn < 0 || H && Sn >= x;
}
function Pn() {
var X = no();
if (pn(X))
return Dn(X);
E = setTimeout(Pn, ln(X));
}
function Dn(X) {
return E = void 0, nn && v ? B(X) : (v = w = void 0, A);
}
function On() {
E !== void 0 && clearTimeout(E), L = 0, v = I = w = E = void 0;
}
function yn() {
return E === void 0 ? A : Dn(no());
}
function xn() {
var X = no(), cn = pn(X);
if (v = arguments, w = this, I = X, cn) {
if (E === void 0)
return z(I);
if (H)
return E = setTimeout(Pn, f), B(I);
}
return E === void 0 && (E = setTimeout(Pn, f)), A;
}
return xn.cancel = On, xn.flush = yn, xn;
}
function uo(a) {
var f = typeof a;
return !!a && (f == "object" || f == "function");
}
function e_(a) {
return !!a && typeof a == "object";
}
function t_(a) {
return typeof a == "symbol" || e_(a) && Vv.call(a) == $v;
}
function xa(a) {
if (typeof a == "number")
return a;
if (t_(a))
return ya;
if (uo(a)) {
var f = typeof a.valueOf == "function" ? a.valueOf() : a;
a = uo(f) ? f + "" : f;
}
if (typeof a != "string")
return a === 0 ? a : +a;
a = a.replace(Hv, "");
var i = zv.test(a);
return i || qv.test(a) ? Yv(a.slice(2), i ? 2 : 8) : Kv.test(a) ? ya : +a;
}
var r_ = n_;
const i_ = /* @__PURE__ */ Pa(r_);
function r0(a, f) {
const i = D(f), v = D(a.value), w = i_((x) => {
x !== v.value && (v.value = x);
}, i.value);
return go(() => w(a.value)), Ev(a) || ve(v, (x) => {
x !== a.value && (a.value = x);
}, { flush: "sync" }), v;
}
function i0(a) {
const f = D(a), i = D(0), w = vo(function([x]) {
const { width: A } = x.target.getBoundingClientRect();
i.value = A;
});
return go(() => {
if (f.value) {
const { width: x } = f.value.getBoundingClientRect();
i.value = x, w.disconnect(), w.observe(f);
}
}), i;
}
function Ma(a, f = {}) {
const i = D(f), v = /* @__PURE__ */ new Set();
let w = null;
function x(nn) {
const B = ot(nn), z = M();
B && (z.observe(B), v.add(B));
}
function A(nn) {
const B = ot(nn), z = M();
B && (z.unobserve(B), v.delete(B));
}
function E() {
M().disconnect(), v.clear();
}
function I({ root: nn, rootMargin: B, threshold: z }) {
return {
root: ue(nn),
rootMargin: B,
threshold: z
};
}
function L(nn) {
const B = ot(nn);
if (!B)
return;
const z = new IntersectionObserver(a, I(i.value));
z.observe(B), setTimeout(() => z.disconnect(), 100);
}
function M() {
return w || H(), w;
}
function H() {
w && w.disconnect(), w = new IntersectionObserver(a, I(i.value)), v.forEach((nn) => w.observe(nn));
}
return ar(() => {
H();
}), Ct(() => {
E();
}), ve(i, () => {
H();
}), {
observe: x,
disconnect: E,
unobserve: A,
check: L
};
}
function Na(a, f) {
return Sa(a) && Sa(f) ? a === f : JSON.stringify(a) === JSON.stringify(f);
}
function Sa(a) {
return JSON.stringify(a) === "null";
}
function u0(a, f) {
const i = D(a), v = D(f);
return Qn(() => Na(i.value, v.value));
}
function Da(a) {
return Array.isArray(a) ? a : [a];
}
function Wa(a) {
return Array.isArray(a);
}
function u_() {
const a = Ye(/* @__PURE__ */ new Set()), f = /* @__PURE__ */ new Set();
function i(w) {
a.add(w.key), f.forEach((x) => x(w));
}
function v(w) {
a.delete(w.key);
}
return document.addEventListener("keydown", i), document.addEventListener("keyup", v), (...[w, x]) => {
const A = Qn(() => Da(ue(w))), E = Qn(() => A.value.some((H) => a.has(H))), I = (H) => {
A.value.includes(H.key) && (x == null || x(H));
}, L = () => {
f.add(I);
}, M = () => {
f.delete(I);
};
return L(), au(M), {
down: E,
connect: L,
disconnect: M
};
};
}
const s0 = u_(), o0 = s_;
function s_(a) {
let f = window.matchMedia(ue(a));
const i = D(f.matches);
let v;
function w(x) {
i.value = x.matches;
}
return f.addEventListener("change", w), Fr(a) && (v = ve(a, () => {
f.removeEventListener("change", w), f = window.matchMedia(ue(a)), f.addEventListener("change", w);
})), po() && Ct(() => {
f.removeEventListener("change", w), v && v();
}), i;
}
const tu = Ye({ x: 0, y: 0 }), ru = Ye({ x: 0, y: 0 }), _o = () => {
Object.assign(ru, tu);
}, o_ = (a) => {
tu.x = a.clientX, tu.y = a.clientY, ru.x === 0 && ru.y === 0 && _o();
}, so = D(0), { add: f_, remove: a_ } = cu("mousemove", o_, { passive: !0 }), { add: c_, remove: l_ } = cu("click", _o, { capture: !0 }), { add: h_, remove: g_ } = cu("contextmenu", _o, { capture: !0 });
function d_() {
so.value > 0 || (a_(), l_(), g_());
}
function p_() {
f_(), c_(), h_();
}
function f0() {
return so.value += 1, p_(), ho(() => {
so.value -= 1, d_();
}), {
position: tu,
positionAtLastClick: ru
};
}
function a0({
immediate: a = !0,
interval: f = 0
} = {}) {
const i = D(f), v = D(x());
let w = null;
function x() {
if (i.value === 0)
return /* @__PURE__ */ new Date();
const L = (/* @__PURE__ */ new Date()).getTime(), M = Math.round(L / i.value) * i.value;
return new Date(M);
}
function A() {
const L = x();
v.value.getTime() !== L.getTime() && (v.value = L), w = window.requestAnimationFrame(A);
}
function E() {
w && window.cancelAnimationFrame(w), w = null;
}
function I() {
w = window.requestAnimationFrame(A);
}
return a && I(), au(E), {
now: v,
resume: I,
pause: E
};
}
function c0(a, f) {
return Qn({
get() {
return a.value[f];
},
set(i) {
a.value = {
...a.value,
[f]: i
};
}
});
}
const Aa = {
rootMargin: "-1px 0px 0px 0px",
boundingElement: document.body
};
function l0(a, f) {
const i = Ca(a), v = D(!1), w = Qn(() => {
const { rootMargin: I, boundingElement: L } = ot(f ?? {}), M = I ?? Aa.rootMargin, H = L ?? Aa.boundingElement;
return {
threshold: [1],
rootMargin: M,
root: H
};
});
function x(I) {
I.forEach((L) => {
v.value = L.intersectionRatio < 1;
});
}
const { observe: A, unobserve: E } = Ma(x, w);
return ve(i, (I, L) => {
E(L), A(I);
}, { immediate: !0 }), {
stuck: v
};
}
function h0(a, f) {
const i = D(a), v = D(f), w = () => {
!i.value || !v.value || (v.value.scrollTop = i.value.scrollTop, v.value.scrollLeft = i.value.scrollLeft);
}, x = () => {
i.value && i.value.addEventListener("scroll", w);
}, A = () => {
i.value && i.value.removeEventListener("scroll", w);
};
return ar(x), Ct(A), {
disconnect: A,
source: i,
target: v
};
}
class v_ {
constructor(f) {
j(this, "type");
this.type = f;
}
get length() {
const f = this.storage();
return f ? f.length : 0;
}
get(f, i = null) {
const v = this.storage();
if (!v)
return null;
const w = v.getItem(f);
if (w === null)
return i;
try {
return JSON.parse(w);
} catch {
return console.error(`Unable to parse current value for key ${f}, returning default instead`), i;
}
}
set(f, i) {
const v = JSON.stringify(i), w = this.storage();
if (w)
return w.setItem(f, v);
}
remove(f) {
const i = this.storage();
if (i)
return i.removeItem(f);
}
clear() {
const f = this.storage();
if (f)
return f.clear();
}
key(f) {
const i = this.storage();
return i ? i.key(f) : null;
}
storage() {
return this.type === "local" && ro("localStorage") ? localStorage : this.type === "session" && ro("sessionStorage") ? sessionStorage : null;
}
}
function Ua(a, f, i = null) {
const v = new v_(a), w = v.get(f, i), x = D(w);
let A = !1;
const E = () => {
A = !0, v.remove(f), x.value = null;
}, I = (L) => {
x.value = L;
};
return go(() => {
if (A) {
console.warn(`Storage for key ${f} as been removed and cannot be updated`);
return;
}
v.set(f, x.value);
}), {
value: x,
initialValue: w,
remove: E,
set: I
};
}
function g0(a, f = null) {
return Ua("session", a, f);
}
function d0(a, f = null) {
return Ua("local", a, f);
}
function p0(a) {
const f = Reflect.ownKeys(Object.prototype), i = {};
let v = Reflect.getPrototypeOf(a);
for (Reflect.ownKeys(a).forEach((w) => {
typeof w == "string" && typeof a[w] == "function" && (i[w] = a[w].bind(a));
}); v && v !== Object.prototype; )
Reflect.ownKeys(v).forEach((w) => {
typeof w == "string" && typeof i[w] > "u" && typeof a[w] == "function" && !f.includes(w) && (i[w] = v[w].bind(a));
}), v = Reflect.getPrototypeOf(v);
return i;
}
function Ba(a) {
return ue(a).map(ue);
}
function v0(a) {
return Fr(a) || to(a) ? a : Array.isArray(a) ? a.filter((f) => Fr(f) || to(f)) : null;
}
function eo(a) {
const { loading: f, error: i, errored: v, response: w, executed: x, paused: A, late: E } = a;
return {
loading: f,
error: i,
errored: v,
response: w,
executed: x,
paused: A,
late: E,
refresh: () => a.refresh(),
unsubscribe: () => a.unsubscribe(),
isSubscribed: () => a.isSubscribed(),
promise: () => a.promise().then((I) => __(I))
};
}
function __(a) {
const { loading: f, error: i, errored: v, response: w, executed: x, paused: A, late: E } = a;
return Ye({
loading: f,
error: i,
errored: v,
response: w,
executed: x,
paused: A,
late: E,
refresh: () => a.refresh(),
unsubscribe: () => a.unsubscribe(),
isSubscribed: () => a.isSubscribed()
});
}
var iu = { exports: {} };
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
iu.exports;
(function(a, f) {
(function() {
var i, v = "4.17.21", w = 200, x = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", A = "Expected a function", E = "Invalid `variable` option passed into `_.template`", I = "__lodash_hash_undefined__", L = 500, M = "__lodash_placeholder__", H = 1, nn = 2, B = 4, z = 1, ln = 2, pn = 1, Pn = 2, Dn = 4, On = 8, yn = 16, xn = 32, X = 64, cn = 128, Sn = 256, Wn = 512, cr = 30, zr = "...", Lt = 800, lu = 16, qr = 1, hu = 2, gu = 3, Pe = 1 / 0, Ae = 9007199254740991, du = 17976931348623157e292, Pt = NaN, se = 4294967295, pu = se - 1, vu = se >>> 1, _u = [
["ary", cn],
["bind", pn],
["bindKey", Pn],
["curry", On],
["curryRight", yn],
["flip", Wn],
["partial", xn],
["partialRight", X],
["rearg", Sn]
], k = "[object Arguments]", ft = "[object Array]", wu = "[object AsyncFunction]", Un = "[object Boolean]", Ze = "[object Date]", Yr = "[object DOMException]", at = "[object Error]", Je = "[object Function]", lr = "[object GeneratorFunction]", Kn = "[object Map]", ct = "[object Number]", bu = "[object Null]", _e = "[object Object]", Zr = "[object Promise]", mu = "[object Proxy]", lt = "[object RegExp]", Vn = "[object Set]", ht = "[object String]", Mt = "[object Symbol]", yu = "[object Undefined]", gt = "[object WeakMap]", xu = "[object WeakSet]", Te = "[object ArrayBuffer]", Ee = "[object DataView]", Nt = "[object Float32Array]", zn = "[object Float64Array]", Dt = "[object Int8Array]", Wt = "[object Int16Array]", hr = "[object Int32Array]", Ut = "[object Uint8Array]", Xe = "[object Uint8ClampedArray]", Bt = "[object Uint16Array]", Ft = "[object Uint32Array]", Su = /\b__p \+= '';/g, Me = /\b(__p \+=) '' \+/g, Jr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Xr = /&(?:amp|lt|gt|quot|#39);/g, Qr = /[&<>"']/g, gr = RegExp(Xr.source), dt = RegExp(Qr.source), dr = /<%-([\s\S]+?)%>/g, pr = /<%([\s\S]+?)%>/g, Gt = /<%=([\s\S]+?)%>/g, pt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Au = /^\w*$/, Tu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, vr = /[\\^$.*+?()[\]{}|]/g, Eu = RegExp(vr.source), _r = /^\s+/, Vr = /\s/, wr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ne = /\{\n\/\* \[wrapped with (.+)\] \*/, Iu = /,? & /, Ou = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ru = /[()=,{}\[\]\/\s]/, Cu = /\\(\\)?/g, Lu = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, oe = /\w*$/, Pu = /^[-+]0x[0-9a-f]+$/i, Mu = /^0b[01]+$/i, Nu = /^\[object .+?Constructor\]$/, Du = /^0o[0-7]+$/i, Wu = /^(?:0|[1-9]\d*)$/, De = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $t = /($^)/, Uu = /['\n\r\u2028\u2029\\]/g, Ht = "\\ud800-\\udfff", Bu = "\\u0300-\\u036f", Fu = "\\ufe20-\\ufe2f", Kt = "\\u20d0-\\u20ff", kr = Bu + Fu + Kt, jr = "\\u2700-\\u27bf", we = "a-z\\xdf-\\xf6\\xf8-\\xff", Gu = "\\xac\\xb1\\xd7\\xf7", $u = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Hu = "\\u2000-\\u206f", Ku = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ni = "A-Z\\xc0-\\xd6\\xd8-\\xde", ei = "\\ufe0e\\ufe0f", vt = Gu + $u + Hu + Ku, br = "['’]", _t = "[" + Ht + "]", mr = "[" + vt + "]", wt = "[" + kr + "]", ti = "\\d+", zu = "[" + jr + "]", ri = "[" + we + "]", ii = "[^" + Ht + vt + ti + jr + we + ni + "]", zt = "\\ud83c[\\udffb-\\udfff]", qu = "(?:" + wt + "|" + zt + ")", ui = "[^" + Ht + "]", qt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Qe = "[\\ud800-\\udbff][\\udc00-\\udfff]", kn = "[" + ni + "]", si = "\\u200d", oi = "(?:" + ri + "|" + ii + ")", Ie = "(?:" + kn + "|" + ii + ")", fi = "(?:" + br + "(?:d|ll|m|re|s|t|ve))?", ai = "(?:" + br + "(?:D|LL|M|RE|S|T|VE))?", ci = qu + "?", li = "[" + ei + "]?", Yu = "(?:" + si + "(?:" + [ui, qt, Qe].join("|") + ")" + li + ci + ")*", We = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", hi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gi = li + ci + Yu, Yt = "(?:" + [zu, qt, Qe].join("|") + ")" + gi, Zu = "(?:" + [ui + wt + "?", wt, qt, Qe, _t].join("|") + ")", yr = RegExp(br, "g"), Ju = RegExp(wt, "g"), Zt = RegExp(zt + "(?=" + zt + ")|" + Zu + gi, "g"), di = RegExp([
kn + "?" + ri + "+" + fi + "(?=" + [mr, kn, "$"].join("|") + ")",
Ie + "+" + ai + "(?=" + [mr, kn + oi, "$"].join("|") + ")",
kn + "?" + oi + "+" + fi,
kn + "+" + ai,
hi,
We,
ti,
Yt
].join("|"), "g"), pi = RegExp("[" + si + Ht + kr + ei + "]"), bt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, vi = [
"Array",
"Buffer",
"DataView",
"Date",
"Error",
"Float32Array",
"Float64Array",
"Function",
"Int8Array",
"Int16Array",
"Int32Array",
"Map",
"Math",
"Object",
"Promise",
"RegExp",
"Set",
"String",
"Symbol",
"TypeError",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"Uint32Array",
"WeakMap",
"_",
"clearTimeout",
"isFinite",
"parseInt",
"setTimeout"
], Xu = -1, sn = {};
sn[Nt] = sn[zn] = sn[Dt] = sn[Wt] = sn[hr] = sn[Ut] = sn[Xe] = sn[Bt] = sn[Ft] = !0, sn[k] = sn[ft] = sn[Te] = sn[Un] = sn[Ee] = sn[Ze] = sn[at] = sn[Je] = sn[Kn] = sn[ct] = sn[_e] = sn[lt] = sn[Vn] = sn[ht] = sn[gt] = !1;
var un = {};
un[k] = un[ft] = un[Te] = un[Ee] = un[Un] = un[Ze] = un[Nt] = un[zn] = un[Dt] = un[Wt] = un[hr] = un[Kn] = un[ct] = un[_e] = un[lt] = un[Vn] = un[ht] = un[Mt] = un[Ut] = un[Xe] = un[Bt] = un[Ft] = !0, un[at] = un[Je] = un[gt] = !1;
var c = {
// Latin-1 Supplement block.
À: "A",
Á: "A",
Â: "A",
Ã: "A",
Ä: "A",
Å: "A",
à: "a",
á: "a",
â: "a",
ã: "a",
ä: "a",
å: "a",
Ç: "C",
ç: "c",
Ð: "D",
ð: "d",
È: "E",
É: "E",
Ê: "E",
Ë: "E",
è: "e",
é: "e",
ê: "e",
ë: "e",
Ì: "I",
Í: "I",
Î: "I",
Ï: "I",
ì: "i",
í: "i",
î: "i",
ï: "i",
Ñ: "N",
ñ: "n",
Ò: "O",
Ó: "O",
Ô: "O",
Õ: "O",
Ö: "O",
Ø: "O",
ò: "o",
ó: "o",
ô: "o",
õ: "o",
ö: "o",
ø: "o",
Ù: "U",
Ú: "U",
Û: "U",
Ü: "U",
ù: "u",
ú: "u",
û: "u",
ü: "u",
Ý: "Y",
ý: "y",
ÿ: "y",
Æ: "Ae",
æ: "ae",
Þ: "Th",
þ: "th",
ß: "ss",
// Latin Extended-A block.
Ā: "A",
Ă: "A",
Ą: "A",
ā: "a",
ă: "a",
ą: "a",
Ć: "C",
Ĉ: "C",
Ċ: "C",
Č: "C",
ć: "c",
ĉ: "c",
ċ: "c",
č: "c",
Ď: "D",
Đ: "D",
ď: "d",
đ: "d",
Ē: "E",
Ĕ: "E",
Ė: "E",
Ę: "E",
Ě: "E",
ē: "e",
ĕ: "e",
ė: "e",
ę: "e",
ě: "e",
Ĝ: "G",
Ğ: "G",
Ġ: "G",
Ģ: "G",
ĝ: "g",
ğ: "g",
ġ: "g",
ģ: "g",
Ĥ: "H",
Ħ: "H",
ĥ: "h",
ħ: "h",
Ĩ: "I",
Ī: "I",
Ĭ: "I",
Į: "I",
İ: "I",
ĩ: "i",
ī: "i",
ĭ: "i",
į: "i",
ı: "i",
Ĵ: "J",
ĵ: "j",
Ķ: "K",
ķ: "k",
ĸ: "k",
Ĺ: "L",
Ļ: "L",
Ľ: "L",
Ŀ: "L",
Ł: "L",
ĺ: "l",
ļ: "l",
ľ: "l",
ŀ: "l",
ł: "l",
Ń: "N",
Ņ: "N",
Ň: "N",
Ŋ: "N",
ń: "n",
ņ: "n",
ň: "n",
ŋ: "n",
Ō: "O",
Ŏ: "O",
Ő: "O",
ō: "o",
ŏ: "o",
ő: "o",
Ŕ: "R",
Ŗ: "R",
Ř: "R",
ŕ: "r",
ŗ: "r",
ř: "r",
Ś: "S",
Ŝ: "S",
Ş: "S",
Š: "S",
ś: "s",
ŝ: "s",
ş: "s",
š: "s",
Ţ: "T",
Ť: "T",
Ŧ: "T",
ţ: "t",
ť: "t",
ŧ: "t",
Ũ: "U",
Ū: "U",
Ŭ: "U",
Ů: "U",
Ű: "U",
Ų: "U",
ũ: "u",
ū: "u",
ŭ: "u",
ů: "u",
ű: "u",
ų: "u",
Ŵ: "W",
ŵ: "w",
Ŷ: "Y",
ŷ: "y",
Ÿ: "Y",
Ź: "Z",
Ż: "Z",
Ž: "Z",
ź: "z",
ż: "z",
ž: "z",
IJ: "IJ",
ij: "ij",
Œ: "Oe",
œ: "oe",
ʼn: "'n",
ſ: "s"
}, d = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}, S = {
"&": "&",
"<": "<",
">": ">",
""": '"',
"'": "'"
}, R = {
"\\": "\\",
"'": "'",
"\n": "n",
"\r": "r",
"\u2028": "u2028",
"\u2029": "u2029"
}, on = parseFloat, G = parseInt, hn = typeof ie == "object" && ie && ie.Object === Object && ie, An = typeof self == "object" && self && self.Object === Object && self, Q = hn || An || Function("return this")(), fn = f && !f.nodeType && f, wn = fn && !0 && a && !a.nodeType && a, qn = wn && wn.exports === fn, Tn = qn && hn.process, gn = function() {
try {
var g = wn && wn.require && wn.require("util").types;
return g || Tn && Tn.binding && Tn.binding("util");
} catch {
}
}(), Bn = gn && gn.isArrayBuffer, be = gn && gn.isDate, fe = gn && gn.isMap, Oe = gn && gn.isRegExp, xr = gn && gn.isSet, mt = gn && gn.isTypedArray;
function Rn(g, b, _) {
switch (_.length) {
case 0:
return g.call(b);
case 1:
return g.call(b, _[0]);
case 2:
return g.call(b, _[0], _[1]);
case 3:
return g.call(b, _[0], _[1], _[2]);
}
return g.apply(b, _);
}
function Ya(g, b, _, C) {
for (var F = -1, en = g == null ? 0 : g.length; ++F < en; ) {
var En = g[F];
b(C, En, _(En), g);
}
return C;
}
function ae(g, b) {
for (var _ = -1, C = g == null ? 0 : g.length; ++_ < C && b(g[_], _, g) !== !1; )
;
return g;
}
function Za(g, b) {
for (var _ = g == null ? 0 : g.length; _-- && b(g[_], _, g) !== !1; )
;
return g;
}
function wo(g, b) {
for (var _ = -1, C = g == null ? 0 : g.length; ++_ < C; )
if (!b(g[_], _, g))
return !1;
return !0;
}
function Ve(g, b) {
for (var _ = -1, C = g == null ? 0 : g.length, F = 0, en = []; ++_ < C; ) {
var En = g[_];
b(En, _, g) && (en[F++] = En);
}
return en;
}
function _i(g, b) {
var _ = g == null ? 0 : g.length;
return !!_ && Jt(g, b, 0) > -1;
}
function Qu(g, b, _) {
for (var C = -1, F = g == null ? 0 : g.length; ++C < F; )
if (_(b, g[C]))
return !0;
return !1;
}
function dn(g, b) {
for (var _ = -1, C = g == null ? 0 : g.length, F = Array(C); ++_ < C; )
F[_] = b(g[_], _, g);
return F;
}
function ke(g, b) {
for (var _ = -1, C = b.length, F = g.length; ++_ < C; )
g[F + _] = b[_];
return g;
}
function Vu(g, b, _, C) {
var F = -1, en = g == null ? 0 : g.length;
for (C && en && (_ = g[++F]); ++F < en; )
_ = b(_, g[F], F, g);
return _;
}
function Ja(g, b, _, C) {
var F = g == null ? 0 : g.length;
for (C && F && (_ = g[--F]); F--; )
_ = b(_, g[F], F, g);
return _;
}
function ku(g, b) {
for (var _ = -1, C = g == null ? 0 : g.length; ++_ < C; )
if (b(g[_], _, g))
return !0;
return !1;
}
var Xa = ju("length");
function Qa(g) {
return g.split("");
}
function Va(g) {
return g.match(Ou) || [];
}
function bo(g, b, _) {
var C;
return _(g, function(F, en, En) {
if (b(F, en, En))
return C = en, !1;
}), C;
}
function wi(g, b, _, C) {
for (var F = g.length, en = _ + (C ? 1 : -1); C ? en-- : ++en < F; )
if (b(g[en], en, g))
return en;
return -1;
}
function Jt(g, b, _) {
return b === b ? ac(g, b, _) : wi(g, mo, _);
}
function ka(g, b, _, C) {
for (var F = _ - 1, en = g.length; ++F < en; )
if (C(g[F], b))
return F;
return -1;
}
function mo(g) {
return g !== g;
}
function yo(g, b) {
var _ = g == null ? 0 : g.length;
return _ ? es(g, b) / _ : Pt;
}
function ju(g) {
return function(b) {
return b == null ? i : b[g];
};
}
function ns(g) {
return function(b) {
return g == null ? i : g[b];
};
}
function xo(g, b, _, C, F) {
return F(g, function(en, En, an) {
_ = C ? (C = !1, en) : b(_, en, En, an);
}), _;
}
function ja(g, b) {
var _ = g.length;
for (g.sort(b); _--; )
g[_] = g[_].value;
return g;
}
function es(g, b) {
for (var _, C = -1, F = g.length; ++C < F; ) {
var en = b(g[C]);
en !== i && (_ = _ === i ? en : _ + en);
}
return _;
}
function ts(g, b) {
for (var _ = -1, C = Array(g); ++_ < g; )
C[_] = b(_);
return C;
}
function nc(g, b) {
return dn(b, function(_) {
return [_, g[_]];
});
}
function So(g) {
return g && g.slice(0, Io(g) + 1).replace(_r, "");
}
function jn(g) {
return function(b) {
return g(b);
};
}
function rs(g, b) {
return dn(b, function(_) {
return g[_];
});
}
function Sr(g, b) {
return g.has(b);
}
function Ao(g, b) {
for (var _ = -1, C = g.length; ++_ < C && Jt(b, g[_], 0) > -1; )
;
return _;
}
function To(g, b) {
for (var _ = g.length; _-- && Jt(b, g[_], 0) > -1; )
;
return _;
}
function ec(g, b) {
for (var _ = g.length, C = 0; _--; )
g[_] === b && ++C;
return C;
}
var tc = ns(c), rc = ns(d);
function ic(g) {
return "\\" + R[g];
}
function uc(g, b) {
return g == null ? i : g[b];
}
function Xt(g) {
return pi.test(g);
}
function sc(g) {
return bt.test(g);
}
function oc(g) {
for (var b, _ = []; !(b = g.next()).done; )
_.push(b.value);
return _;
}
function is(g) {
var b = -1, _ = Array(g.size);
return g.forEach(function(C, F) {
_[++b] = [F, C];
}), _;
}
function Eo(g, b) {
return function(_) {
return g(b(_));
};
}
function je(g, b) {
for (var _ = -1, C = g.length, F = 0, en = []; ++_ < C; ) {
var En = g[_];
(En === b || En === M) && (g[_] = M, en[F++] = _);
}
return en;
}
function bi(g) {
var b = -1, _ = Array(g.size);
return g.forEach(function(C) {
_[++b] = C;
}), _;
}
function fc(g) {
var b = -1, _ = Array(g.size);
return g.forEach(function(C) {
_[++b] = [C, C];
}), _;
}
function ac(g, b, _) {
for (var C = _ - 1, F = g.length; ++C < F; )
if (g[C] === b)
return C;
return -1;
}
function cc(g, b, _) {
for (var C = _ + 1; C--; )
if (g[C] === b)
return C;
return C;
}
function Qt(g) {
return Xt(g) ? hc(g) : Xa(g);
}
function me(g) {
return Xt(g) ? gc(g) : Qa(g);
}
function Io(g) {
for (var b = g.length; b-- && Vr.test(g.charAt(b)); )
;
return b;
}
var lc = ns(S);
function hc(g) {
for (var b = Zt.lastIndex = 0; Zt.test(g); )
++b;
return b;
}
function gc(g) {
return g.match(Zt) || [];
}
function dc(g) {
return g.match(di) || [];
}
var pc = function g(b) {
b = b == null ? Q : Vt.defaults(Q.Object(), b, Vt.pick(Q, vi));
var _ = b.Array, C = b.Date, F = b.Error, en = b.Function, En = b.Math, an = b.Object, us = b.RegExp, vc = b.String, ce = b.TypeError, mi = _.prototype, _c = en.prototype, kt = an.prototype, yi = b["__core-js_shared__"], xi = _c.toString, rn = kt.hasOwnProperty, wc = 0, Oo = function() {
var n = /[^.]+$/.exec(yi && yi.keys && yi.keys.IE_PROTO || "");
return n ? "Symbol(src)_1." + n : "";
}(), Si = kt.toString, bc = xi.call(an), mc = Q._, yc = us(
"^" + xi.call(rn).replace(vr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), Ai = qn ? b.Buffer : i, nt = b.Symbol, Ti = b.Uint8Array, Ro = Ai ? Ai.allocUnsafe : i, Ei = Eo(an.getPrototypeOf, an), Co = an.create, Lo = kt.propertyIsEnumerable, Ii = mi.splice, Po = nt ? nt.isConcatSpreadable : i, Ar = nt ? nt.iterator : i, yt = nt ? nt.toStringTag : i, Oi = function() {
try {
var n = Et(an, "defineProperty");
return n({}, "", {}), n;
} catch {
}
}(), xc = b.clearTimeout !== Q.clearTimeout && b.clearTimeout, Sc = C && C.now !== Q.Date.now && C.now, Ac = b.setTimeout !== Q.setTimeout && b.setTimeout, Ri = En.ceil, Ci = En.floor, ss = an.getOwnPropertySymbols, Tc = Ai ? Ai.isBuffer : i, Mo = b.isFinite, Ec = mi.join, Ic = Eo(an.keys, an), In = En.max, Mn = En.min, Oc = C.now, Rc = b.parseInt, No = En.random, Cc = mi.reverse, os = Et(b, "DataView"), Tr = Et(b, "Map"), fs = Et(b, "Promise"), jt = Et(b, "Set"), Er = Et(b, "WeakMap"), Ir = Et(an, "create"), Li = Er && new Er(), nr = {}, Lc = It(os), Pc = It(Tr), Mc = It(fs), Nc = It(jt), Dc = It(Er), Pi = nt ? nt.prototype : i, Or = Pi ? Pi.valueOf : i, Do = Pi ? Pi.toString : i;
function s(n) {
if (_n(n) && !$(n) && !(n instanceof J)) {
if (n instanceof le)
return n;
if (rn.call(n, "__wrapped__"))
return Uf(n);
}
return new le(n);
}
var er = /* @__PURE__ */ function() {
function n() {
}
return function(e) {
if (!vn(e))
return {};
if (Co)
return Co(e);
n.prototype = e;
var t = new n();
return n.prototype = i, t;
};
}();
function Mi() {
}
function le(n, e) {
this.__wrapped__ = n, this.__actions__ = [], this.__chain__ = !!e, this.__index__ = 0, this.__values__ = i;
}
s.templateSettings = {
/**
* Used to detect `data` property values to be HTML-escaped.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
escape: dr,
/**
* Used to detect code to be evaluated.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
evaluate: pr,
/**
* Used to detect `data` property values to inject.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
interpolate: Gt,
/**
* Used to reference the data object in the template text.
*
* @memberOf _.templateSettings
* @type {string}
*/
variable: "",
/**
* Used to import variables into the compiled template.
*
* @memberOf _.templateSettings
* @type {Object}
*/
imports: {
/**
* A reference to the `lodash` function.
*
* @memberOf _.templateSettings.imports
* @type {Function}
*/
_: s
}
}, s.prototype = Mi.prototype, s.prototype.constructor = s, le.prototype = er(Mi.prototype), le.prototype.constructor = le;
function J(n) {
this.__wrapped__ = n, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = se, this.__views__ = [];
}
function Wc() {
var n = new J(this.__wrapped__);
return n.__actions__ = Yn(this.__actions__), n.__dir__ = this.__dir__, n.__filtered__ = this.__filtered__, n.__iteratees__ = Yn(this.__iteratees__), n.__takeCount__ = this.__takeCount__, n.__views__ = Yn(this.__views__), n;
}
function Uc() {
if (this.__filtered__) {
var n = new J(this);
n.__dir__ = -1, n.__filtered__ = !0;
} else
n = this.clone(), n.__dir__ *= -1;
return n;
}
function Bc() {
var n = this.__wrapped__.value(), e = this.__dir__, t = $(n), r = e < 0, u = t ? n.length : 0, o = Ql(0, u, this.__views__), l = o.start, h = o.end, p = h - l, m = r ? h : l - 1, y = this.__iteratees__, T = y.length, O = 0, P = Mn(p, this.__takeCount__);
if (!t || !r && u == p && P == p)
return sf(n, this.__actions__);
var W = [];
n:
for (; p-- && O < P; ) {
m += e;
for (var q = -1, U = n[m]; ++q < T; ) {
var Z = y[q], V = Z.iteratee, te = Z.type, $n = V(U);
if (te == hu)
U = $n;
else if (!$n) {
if (te == qr)
continue n;
break n;
}
}
W[O++] = U;
}
return W;
}
J.prototype = er(Mi.prototype), J.prototype.constructor = J;
function xt(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function Fc() {
this.__data__ = Ir ? Ir(null) : {}, this.size = 0;
}
function Gc(n) {
var e = this.has(n) && delete this.__data__[n];
return this.size -= e ? 1 : 0, e;
}
function $c(n) {
var e = this.__data__;
if (Ir) {
var t = e[n];
return t === I ? i : t;
}
return rn.call(e, n) ? e[n] : i;
}
function Hc(n) {
var e = this.__data__;
return Ir ? e[n] !== i : rn.call(e, n);
}
function Kc(n, e) {
var t = this.__data__;
return this.size += this.has(n) ? 0 : 1, t[n] = Ir && e === i ? I : e, this;
}
xt.prototype.clear = Fc, xt.prototype.delete = Gc, xt.prototype.get = $c, xt.prototype.has = Hc, xt.prototype.set = Kc;
function Ue(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function zc() {
this.__data__ = [], this.size = 0;
}
function qc(n) {
var e = this.__data__, t = Ni(e, n);
if (t < 0)
return !1;
var r = e.length - 1;
return t == r ? e.pop() : Ii.call(e, t, 1), --this.size, !0;
}
function Yc(n) {
var e = this.__data__, t = Ni(e, n);
return t < 0 ? i : e[t][1];
}
function Zc(n) {
return Ni(this.__data__, n) > -1;
}
function Jc(n, e) {
var t = this.__data__, r = Ni(t, n);
return r < 0 ? (++this.size, t.push([n, e])) : t[r][1] = e, this;
}
Ue.prototype.clear = zc, Ue.prototype.delete = qc, Ue.prototype.get = Yc, Ue.prototype.has = Zc, Ue.prototype.set = Jc;
function Be(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function Xc() {
this.size = 0, this.__data__ = {
hash: new xt(),
map: new (Tr || Ue)(),
string: new xt()
};
}
function Qc(n) {
var e = Yi(this, n).delete(n);
return this.size -= e ? 1 : 0, e;
}
function Vc(n) {
return Yi(this, n).get(n);
}
function kc(n) {
return Yi(this, n).has(n);
}
function jc(n, e) {
var t = Yi(this, n), r = t.size;
return t.set(n, e), this.size += t.size == r ? 0 : 1, this;
}
Be.prototype.clear = Xc, Be.prototype.delete = Qc, Be.prototype.get = Vc, Be.prototype.has = kc, Be.prototype.set = jc;
function St(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.__data__ = new Be(); ++e < t; )
this.add(n[e]);
}
function nl(n) {
return this.__data__.set(n, I), this;
}
function el(n) {
return this.__data__.has(n);
}
St.prototype.add = St.prototype.push = nl, St.prototype.has = el;
function ye(n) {
var e = this.__data__ = new Ue(n);
this.size = e.size;
}
function tl() {
this.__data__ = new Ue(), this.size = 0;
}
function rl(n) {
var e = this.__data__, t = e.delete(n);
return this.size = e.size, t;
}
function il(n) {
return this.__data__.get(n);
}
function ul(n) {
return this.__data__.has(n);
}
function sl(n, e) {
var t = this.__data__;
if (t instanceof Ue) {
var r = t.__data__;
if (!Tr || r.length < w - 1)
return r.push([n, e]), this.size = ++t.size, this;
t = this.__data__ = new Be(r);
}
return t.set(n, e), this.size = t.size, this;
}
ye.prototype.clear = tl, ye.prototype.delete = rl, ye.prototype.get = il, ye.prototype.has = ul, ye.prototype.set = sl;
function Wo(n, e) {
var t = $(n), r = !t && Ot(n), u = !t && !r && ut(n), o = !t && !r && !u && ur(n), l = t || r || u || o, h = l ? ts(n.length, vc) : [], p = h.length;
for (var m in n)
(e || rn.call(n, m)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
(m == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
u && (m == "offset" || m == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
o && (m == "buffer" || m == "byteLength" || m == "byteOffset") || // Skip index properties.
He(m, p))) && h.push(m);
return h;
}
function Uo(n) {
var e = n.length;
return e ? n[bs(0, e - 1)] : i;
}
function ol(n, e) {
return Zi(Yn(n), At(e, 0, n.length));
}
function fl(n) {
return Zi(Yn(n));
}
function as(n, e, t) {
(t !== i && !xe(n[e], t) || t === i && !(e in n)) && Fe(n, e, t);
}
function Rr(n, e, t) {
var r = n[e];
(!(rn.call(n, e) && xe(r, t)) || t === i && !(e in n)) && Fe(n, e, t);
}
function Ni(n, e) {
for (var t = n.length; t--; )
if (xe(n[t][0], e))
return t;
return -1;
}
function al(n, e, t, r) {
return et(n, function(u, o, l) {
e(r, u, t(u), l);
}), r;
}
function Bo(n, e) {
return n && Ce(e, Cn(e), n);
}
function cl(n, e) {
return n && Ce(e, Jn(e), n);
}
function Fe(n, e, t) {
e == "__proto__" && Oi ? Oi(n, e, {
configurable: !0,
enumerable: !0,
value: t,
writable: !0
}) : n[e] = t;
}
function cs(n, e) {
for (var t = -1, r = e.length, u = _(r), o = n == null; ++t < r; )
u[t] = o ? i : zs(n, e[t]);
return u;
}
function At(n, e, t) {
return n === n && (t !== i && (n = n <= t ? n : t), e !== i && (n = n >= e ? n : e)), n;
}
function he(n, e, t, r, u, o) {
var l, h = e & H, p = e & nn, m = e & B;
if (t && (l = u ? t(n, r, u, o) : t(n)), l !== i)
return l;
if (!vn(n))
return n;
var y = $(n);
if (y) {
if (l = kl(n), !h)
return Yn(n, l);
} else {
var T = Nn(n), O = T == Je || T == lr;
if (ut(n))
return af(n, h);
if (T == _e || T == k || O && !u) {
if (l = p || O ? {} : Of(n), !h)
return p ? $l(n, cl(l, n)) : Gl(n, Bo(l, n));
} else {
if (!un[T])
return u ? n : {};
l = jl(n, T, h);
}
}
o || (o = new ye());
var P = o.get(n);
if (P)
return P;
o.set(n, l), ra(n) ? n.forEach(function(U) {
l.add(he(U, e, t, U, n, o));
}) : ea(n) && n.forEach(function(U, Z) {
l.set(Z, he(U, e, t, Z, n, o));
});
var W = m ? p ? Cs : Rs : p ? Jn : Cn, q = y ? i : W(n);
return ae(q || n, function(U, Z) {
q && (Z = U, U = n[Z]), Rr(l, Z, he(U, e, t, Z, n, o));
}), l;
}
function ll(n) {
var e = Cn(n);
return function(t) {
return Fo(t, n, e);
};
}
function Fo(n, e, t) {
var r = t.length;
if (n == null)
return !r;
for (n = an(n); r--; ) {
var u = t[r], o = e[u], l = n[u];
if (l === i && !(u in n) || !o(l))
return !1;
}
return !0;
}
function Go(n, e, t) {
if (typeof n != "function")
throw new ce(A);
return Wr(function() {
n.apply(i, t);
}, e);
}
function Cr(n, e, t, r) {
var u = -1, o = _i, l = !0, h = n.length, p = [], m = e.length;
if (!h)
return p;
t && (e = dn(e, jn(t))), r ? (o = Qu, l = !1) : e.length >= w && (o = Sr, l = !1, e = new St(e));
n:
for (; ++u < h; ) {
var y = n[u], T = t == null ? y : t(y);
if (y = r || y !== 0 ? y : 0, l && T === T) {
for (var O = m; O--; )
if (e[O] === T)
continue n;
p.push(y);
} else o(e, T, r) || p.push(y);
}
return p;
}
var et = df(Re), $o = df(hs, !0);
function hl(n, e) {
var t = !0;
return et(n, function(r, u, o) {
return t = !!e(r, u, o), t;
}), t;
}
function Di(n, e, t) {
for (var r = -1, u = n.length; ++r < u; ) {
var o = n[r], l = e(o);
if (l != null && (h === i ? l === l && !ee(l) : t(l, h)))
var h = l, p = o;
}
return p;
}
function gl(n, e, t, r) {
var u = n.length;
for (t = K(t), t < 0 && (t = -t > u ? 0 : u + t), r = r === i || r > u ? u : K(r), r < 0 && (r += u), r = t > r ? 0 : ua(r); t < r; )
n[t++] = e;
return n;
}
function Ho(n, e) {
var t = [];
return et(n, function(r, u, o) {
e(r, u, o) && t.push(r);
}), t;
}
function Ln(n, e, t, r, u) {
var o = -1, l = n.length;
for (t || (t = eh), u || (u = []); ++o < l; ) {
var h = n[o];
e > 0 && t(h) ? e > 1 ? Ln(h, e - 1, t, r, u) : ke(u, h) : r || (u[u.length] = h);
}
return u;
}
var ls = pf(), Ko = pf(!0);
function Re(n, e) {
return n && ls(n, e, Cn);
}
function hs(n, e) {
return n && Ko(n, e, Cn);
}
function Wi(n, e) {
return Ve(e, function(t) {
return Ke(n[t]);
});
}
function Tt(n, e) {
e = rt(e, n);
for (var t = 0, r = e.length; n != null && t < r; )
n = n[Le(e[t++])];
return t && t == r ? n : i;
}
function zo(n, e, t) {
var r = e(n);
return $(n) ? r : ke(r, t(n));
}
function Fn(n) {
return n == null ? n === i ? yu : bu : yt && yt in an(n) ? Xl(n) : fh(n);
}
function gs(n, e) {
return n > e;
}
function dl(n, e) {
return n != null && rn.call(n, e);
}
function pl(n, e) {
return n != null && e in an(n);
}
function vl(n, e, t) {
return n >= Mn(e, t) && n < In(e, t);
}
function ds(n, e, t) {
for (var r = t ? Qu : _i, u = n[0].length, o = n.length, l = o, h = _(o), p = 1 / 0, m = []; l--; ) {
var y = n[l];
l && e && (y = dn(y, jn(e))), p = Mn(y.length, p), h[l] = !t && (e || u >= 120 && y.length >= 120) ? new St(l && y) : i;
}
y = n[0];
var T = -1, O = h[0];
n:
for (; ++T < u && m.length < p; ) {
var P = y[T], W = e ? e(P) : P;
if (P = t || P !== 0 ? P : 0, !(O ? Sr(O, W) : r(m, W, t))) {
for (l = o; --l; ) {
var q = h[l];
if (!(q ? Sr(q, W) : r(n[l], W, t)))
continue n;
}
O && O.push(W), m.push(P);
}
}
return m;
}
function _l(n, e, t, r) {
return Re(n, function(u, o, l) {
e(r, t(u), o, l);
}), r;
}
function Lr(n, e, t) {
e = rt(e, n), n = Pf(n, e);
var r = n == null ? n : n[Le(de(e))];
return r == null ? i : Rn(r, n, t);
}
function qo(n) {
return _n(n) && Fn(n) == k;
}
function wl(n) {
return _n(n) && Fn(n) == Te;
}
function bl(n) {
return _n(n) && Fn(n) == Ze;
}
function Pr(n, e, t, r, u) {
return n === e ? !0 : n == null || e == null || !_n(n) && !_n(e) ? n !== n && e !== e : ml(n, e, t, r, Pr, u);
}
function ml(n, e, t, r, u, o) {
var l = $(n), h = $(e), p = l ? ft : Nn(n), m = h ? ft : Nn(e);
p = p == k ? _e : p, m = m == k ? _e : m;
var y = p == _e, T = m == _e, O = p == m;
if (O && ut(n)) {
if (!ut(e))
return !1;
l = !0, y = !1;
}
if (O && !y)
return o || (o = new ye(