grid-layout-plus
Version:
<p align="center"> <a href="https://grid-layout-plus.netlify.app/" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/grid-layout-plus.svg" width="180" style="width: 120px;" /> </a> </p>
1 lines • 461 kB
Source Map (JSON)
{"version":3,"file":"grid-layout-plus.mjs","sources":["../node_modules/.pnpm/@vexip-ui+utils@2.16.1/node_modules/@vexip-ui/utils/dist/index.mjs","../src/helpers/common.ts","../src/helpers/draggable.ts","../src/helpers/responsive.ts","../src/helpers/dom.ts","../node_modules/.pnpm/interactjs@1.10.27/node_modules/interactjs/dist/interact.min.js","../src/components/grid-item.vue","../node_modules/.pnpm/@vexip-ui+hooks@2.6.0_vue@3.5.13_typescript@5.4.4_/node_modules/@vexip-ui/hooks/dist/index.mjs","../src/components/grid-layout.vue"],"sourcesContent":["const y = typeof window < \"u\";\nvar At;\nconst mn = y && ((At = window == null ? void 0 : window.navigator) == null ? void 0 : At.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent), ee = Object.prototype.toString, ne = Object.prototype.hasOwnProperty;\nfunction B(t, e) {\n return ee.call(t) === `[object ${e}]`;\n}\nfunction bn(t, e) {\n return ne.call(t, e);\n}\nfunction S(t) {\n return t != null;\n}\nfunction re(t) {\n return t == null;\n}\nfunction yn(t) {\n return typeof t == \"number\";\n}\nfunction oe(t) {\n return Number.isNaN(t);\n}\nfunction Mn(t) {\n return typeof t == \"string\";\n}\nfunction Sn(t) {\n return typeof t == \"boolean\";\n}\nfunction wn(t) {\n return t === !0;\n}\nfunction En(t) {\n return t === !1;\n}\nfunction Nn(t) {\n return typeof t == \"symbol\";\n}\nfunction An(t) {\n return typeof t == \"bigint\";\n}\nfunction Fn(t) {\n return Array.isArray(t);\n}\nfunction Y(t) {\n return B(t, \"Object\");\n}\nfunction $n(t) {\n return !!t && typeof t.then == \"function\" && typeof t.catch == \"function\";\n}\nfunction Ft(t) {\n return typeof t == \"function\";\n}\nfunction Tn(t) {\n return B(t, \"Set\");\n}\nfunction Cn(t) {\n return B(t, \"Map\");\n}\nfunction On(t) {\n return B(t, \"Date\");\n}\nfunction Rn(t) {\n return B(t, \"RegExp\");\n}\nfunction _n(t) {\n return Array.isArray(t) || typeof t == \"string\" ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : Y(t) ? Object.keys(t).length === 0 : typeof t == \"number\" ? oe(t) : re(t);\n}\nfunction kn(t, e = !1) {\n return !e && !y ? !1 : !!(t && \"nodeType\" in t);\n}\nfunction G(t) {\n return S(t) && typeof t[Symbol.iterator] == \"function\";\n}\nfunction ot() {\n}\nfunction ie() {\n return !0;\n}\nfunction xn() {\n return !1;\n}\nfunction Dn(t, e = 1, n = 1) {\n const r = [];\n for (let o = 0; o < t; ++o)\n r.push(e + o * n);\n return r;\n}\nfunction se(t) {\n return Object.prototype.toString.call(t).slice(8, -1);\n}\nfunction In(t = 16) {\n const e = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\", n = e.length;\n let r = \"\";\n for (; t--; )\n r += e.charAt(Math.floor(Math.random() * n));\n return r;\n}\nasync function Ln(t, e = {}) {\n if (t.length) {\n for (const [n, r] of t)\n if (typeof n == \"function\" ? n() : n)\n return typeof e.beforeMatchAny == \"function\" && await e.beforeMatchAny(), await r(), typeof e.afterMatchAny == \"function\" && await e.afterMatchAny(), !0;\n }\n return !1;\n}\nasync function Hn(t) {\n if (!y)\n return !1;\n try {\n return await navigator.clipboard.writeText(t), !0;\n } catch {\n let e = !1;\n const n = document.createElement(\"textarea\"), r = document.activeElement;\n n.value = t, n.setAttribute(\"readonly\", \"\"), n.style.contain = \"strict\", n.style.position = \"absolute\", n.style.height = \"0\", n.style.fontSize = \"12pt\";\n const o = document.getSelection(), i = o ? o.rangeCount > 0 && o.getRangeAt(0) : null;\n return document.body.appendChild(n), n.select(), n.selectionStart = 0, n.selectionEnd = t.length, e = document.execCommand(\"copy\"), document.body.removeChild(n), i && (o.removeAllRanges(), o.addRange(i)), r && r.focus(), e;\n }\n}\nconst ce = \"[-\\\\+]?\\\\d+%?\", ae = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\", F = `(?:${ae})|(?:${ce})`, fe = `[\\\\s|\\\\(]+(${F})[,|\\\\s]+(${F})[,|\\\\s]+(${F})\\\\s*\\\\)?`, U = `[\\\\s|\\\\(]+(${F})[,|\\\\s]+(${F})[,|\\\\s]+(${F})[,|\\\\s]+(${F})\\\\s*\\\\)?`, $t = new RegExp(`rgb${fe}`), Tt = new RegExp(`rgba${U}`), Ct = new RegExp(`hsl${U}`), Ot = new RegExp(`hsla${U}`), Rt = new RegExp(`hsv${U}`), _t = new RegExp(`hsva${U}`), kt = /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, xt = /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Dt = /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, It = /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, W = Object.freeze({\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"0ff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"00f\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n burntsienna: \"ea7e5d\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"0ff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"f0f\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"663399\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n}), ue = Object.freeze(new Set(Object.keys(W)));\nfunction Pn(t) {\n return t = String(t).trim().toLowerCase(), t ? t === \"transparent\" || W[t] ? !0 : t === \"transparent\" || ue.has(t) || $t.test(t) || Tt.test(t) || Ct.test(t) || Ot.test(t) || Rt.test(t) || _t.test(t) || kt.test(t) || xt.test(t) || Dt.test(t) || It.test(t) : !1;\n}\nfunction le(t) {\n if (t = t.toString().trim().toLowerCase(), t === \"transparent\")\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\", toString: M };\n let e = !1;\n W[t] && (t = W[t], e = !0);\n let n;\n if (n = $t.exec(t)) {\n const { r, g: o, b: i } = R(n[1], n[2], n[3]);\n return {\n r: r * 255,\n g: o * 255,\n b: i * 255,\n format: \"rgb\",\n toString: M\n };\n }\n if (n = Tt.exec(t)) {\n const { r, g: o, b: i } = R(n[1], n[2], n[3]);\n return {\n r: r * 255,\n g: o * 255,\n b: i * 255,\n a: O(n[4]),\n format: \"rgba\",\n toString: M\n };\n }\n if (n = Ct.exec(t)) {\n const { h: r, s: o, l: i } = z(n[0], n[1], n[3]);\n return { h: r * 360, s: o, l: i, format: \"hsl\", toString: H };\n }\n if (n = Ot.exec(t)) {\n const { h: r, s: o, l: i } = z(n[0], n[1], n[3]);\n return {\n h: r * 360,\n s: o,\n l: i,\n a: O(n[4]),\n format: \"hsla\",\n toString: H\n };\n }\n if (n = Rt.exec(t)) {\n const { h: r, s: o, v: i } = q(n[0], n[1], n[3]);\n return { h: r * 360, s: o, v: i, format: \"hsv\", toString: j };\n }\n if (n = _t.exec(t)) {\n const { h: r, s: o, v: i } = q(n[0], n[1], n[3]);\n return {\n h: r * 360,\n s: o,\n v: i,\n a: O(n[4]),\n format: \"hsva\",\n toString: j\n };\n }\n return (n = kt.exec(t)) ? {\n r: parseInt(`${n[1]}${n[1]}`, 16),\n g: parseInt(`${n[2]}${n[2]}`, 16),\n b: parseInt(`${n[3]}${n[3]}`, 16),\n format: e ? \"name\" : \"hex3\",\n toString: M\n } : (n = xt.exec(t)) ? {\n r: parseInt(`${n[1]}${n[1]}`, 16),\n g: parseInt(`${n[2]}${n[2]}`, 16),\n b: parseInt(`${n[3]}${n[3]}`, 16),\n a: pt(`${n[4]}${n[4]}`),\n format: e ? \"name\" : \"hex4\",\n toString: M\n } : (n = Dt.exec(t)) ? {\n r: parseInt(n[1], 16),\n g: parseInt(n[2], 16),\n b: parseInt(n[3], 16),\n format: e ? \"name\" : \"hex6\",\n toString: M\n } : (n = It.exec(t)) ? {\n r: parseInt(n[1], 16),\n g: parseInt(n[2], 16),\n b: parseInt(n[3], 16),\n a: pt(n[4]),\n format: e ? \"name\" : \"hex8\",\n toString: M\n } : null;\n}\nfunction Bn(t) {\n const { a: e, ...n } = $(t);\n delete n.format;\n const r = Ht(n.r, n.g, n.b), o = Pt(n.r, n.g, n.b), i = it(n.r, n.g, n.b), s = st(n.r, n.g, n.b, e);\n return {\n rgb: n,\n hsl: r,\n hsv: o,\n hex: i,\n alpha: e,\n rgba: { ...n, a: e, format: \"rgba\" },\n hsla: { ...r, a: e, format: \"hsla\" },\n hsva: { ...o, a: e, format: \"hsva\" },\n hex8: s,\n gray: Ut(n),\n origin: t\n };\n}\nfunction $(t) {\n let e = { r: 0, g: 0, b: 0 }, n = 1, r;\n return typeof t == \"string\" ? r = le(t) : r = t, r !== null && typeof r == \"object\" && (\"l\" in r ? e = Lt(r.h, r.s, r.l) : \"v\" in r && (e = he(r.h, r.s, r.v)), \"a\" in r && (n = O(r.a ?? 1), Number.isNaN(n) && (n = 1)), e = r), { ...e, a: n, format: \"rgba\", toString: M };\n}\nfunction z(t, e, n) {\n return {\n h: w(t, 0, 360) / 360,\n s: w(I(e) ? L(e) : e, 0, 1),\n l: w(I(n) ? L(n) : n, 0, 1)\n };\n}\nfunction R(t, e, n) {\n return {\n r: w(t, 0, 255) / 255,\n g: w(e, 0, 255) / 255,\n b: w(n, 0, 255) / 255\n };\n}\nfunction q(t, e, n) {\n return {\n h: w(t, 0, 360) / 360,\n s: w(I(e) ? L(e) : e, 0, 1),\n v: w(I(n) ? L(n) : n, 0, 1)\n };\n}\nfunction O(t) {\n return w(I(t) ? L(t) : t, 0, 1);\n}\nfunction Lt(t, e, n) {\n let r, o, i;\n if ({ h: t, s: e, l: n } = z(t, e, n), e === 0)\n r = o = i = n;\n else {\n const s = n < 0.5 ? 1 * (1 + e) : n + e - n * e, c = 2 * n - s;\n r = tt(c, s, t + 1 / 3), o = tt(c, s, t), i = tt(c, s, t - 1 / 3);\n }\n return r *= 255, o *= 255, i *= 255, { r, g: o, b: i, toString: M };\n}\nfunction Ht(t, e, n) {\n ({ r: t, g: e, b: n } = R(t, e, n));\n const r = Math.max(t, e, n), o = Math.min(t, e, n);\n let i, s;\n const c = (r + o) / 2;\n if (r === o)\n i = s = 0;\n else {\n const a = r - o;\n switch (s = c > 0.5 ? a / (2 - r - o) : a / (r + o), r) {\n case t: {\n i = (e - n) / a + (e < n ? 6 : 0);\n break;\n }\n case e: {\n i = (n - t) / a + 2;\n break;\n }\n case n: {\n i = (t - e) / a + 4;\n break;\n }\n default:\n i = 0;\n }\n i *= 60;\n }\n return { h: i, s, l: c, toString: H };\n}\nfunction de(t, e, n) {\n ({ h: t, s: e, l: n } = z(t, e, n));\n const r = 0.5 * (2 * n + e * (1 - Math.abs(2 * n - 1)));\n return e = 2 * (r - n) / r, { h: t * 360, s: e, v: r, toString: j };\n}\nfunction Un(t, e, n) {\n ({ h: t, s: e, v: n } = q(t, e, n));\n const r = 0.5 * n * (2 - e);\n return e = n * e / (1 - Math.abs(2 * r - 1)), { h: t * 360, s: e, l: r, toString: H };\n}\nfunction he(t, e, n) {\n ({ h: t, s: e, v: n } = q(t, e, n)), t *= 6;\n const r = Math.floor(t), o = t - r, i = n * (1 - e), s = n * (1 - o * e), c = n * (1 - (1 - o) * e), a = r % 6;\n let f = [n, s, i, i, c, n][a], u = [c, n, n, s, i, i][a], d = [i, i, c, n, n, s][a];\n return f *= 255, u *= 255, d *= 255, { r: f, g: u, b: d, toString: M };\n}\nfunction Pt(t, e, n) {\n ({ r: t, g: e, b: n } = R(t, e, n));\n const r = Math.max(t, e, n), o = Math.min(t, e, n);\n let i;\n const s = r, c = r - o, a = r === 0 ? 0 : c / r;\n if (r === o)\n i = 0;\n else {\n switch (r) {\n case t: {\n i = (e - n) / c + (e < n ? 6 : 0);\n break;\n }\n case e: {\n i = (n - t) / c + 2;\n break;\n }\n case n: {\n i = (t - e) / c + 4;\n break;\n }\n default:\n i = 0;\n }\n i *= 60;\n }\n return { h: i, s: a, v: s, toString: j };\n}\nfunction it(t, e, n, r = !1) {\n ({ r: t, g: e, b: n } = R(t, e, n));\n const o = [\n T(Math.round(t * 255).toString(16)),\n T(Math.round(e * 255).toString(16)),\n T(Math.round(n * 255).toString(16))\n ];\n return r && C(o[0]) && C(o[1]) && C(o[2]) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : \"#\" + o.join(\"\");\n}\nfunction st(t, e, n, r, o = !1) {\n ({ r: t, g: e, b: n } = R(t, e, n));\n const i = [\n T(Math.round(t * 255).toString(16)),\n T(Math.round(e * 255).toString(16)),\n T(Math.round(n * 255).toString(16)),\n T(ge(O(r)))\n ];\n return o && C(i[0]) && C(i[1]) && C(i[2]) && C(i[3]) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : \"#\" + i.join(\"\");\n}\nfunction Yn(t, e, n = 0.5) {\n if (!t && !e)\n return { r: 0, g: 0, b: 0, a: 1 };\n if (!t)\n return $(e);\n if (!e)\n return $(t);\n const r = $(t), o = $(e), i = w(n, 0, 1), s = i * 2 - 1, c = r.a - o.a, f = ((s * c === -1 ? s : (s + c) / (1 + s * c)) + 1) / 2, u = 1 - f;\n return {\n r: Math.round(r.r * f + o.r * u),\n g: Math.round(r.g * f + o.g * u),\n b: Math.round(r.b * f + o.b * u),\n a: Math.round(r.a * i + o.a * (1 - i)),\n format: \"rgba\",\n toString: M\n };\n}\nfunction Gn(t, e) {\n const n = $(t);\n return n.a = O(e), n;\n}\nfunction Wn(t = !1, e = \"hex\") {\n const n = Math.round(Math.random() * 255), r = Math.round(Math.random() * 255), o = Math.round(Math.random() * 255);\n if (e === \"hex\")\n return t ? st(n, r, o, Math.random()) : it(n, r, o);\n let i;\n return e === \"hsl\" ? i = Ht(n, r, o) : e === \"hsv\" ? i = Pt(n, r, o) : i = /* @__PURE__ */ Object.create({ r: n, g: r, b: o, toString: M }), t && (i.a = Math.random()), i.toString();\n}\nfunction Bt(t, e = !1, n = \"hex\") {\n const r = Math.round(Math.random() * 360), o = Math.round(t === \"hard\" ? 80 + Math.random() * 20 : 20 + Math.random() * 70) / 100, i = Math.round(t === \"hard\" ? 40 + Math.random() * 20 : 80 + Math.random() * 15) / 100;\n if (n === \"hsl\")\n return H.bind({ h: r, s: o, l: i })();\n let s;\n if (n === \"hex\" || n === \"rgb\") {\n if (s = Lt(r, o, i), n === \"hex\") {\n const { r: c, g: a, b: f } = s;\n return e ? st(c, a, f, Math.random()) : it(c, a, f);\n }\n } else\n n === \"hsv\" && (s = de(r, o, i));\n return e && (s.a = Math.random()), s.toString();\n}\nfunction zn(t = !1, e = \"hex\") {\n return Bt(\"hard\", t, e);\n}\nfunction qn(t = !1, e = \"hex\") {\n return Bt(\"soft\", t, e);\n}\nfunction jn(t) {\n return Ut($(t));\n}\nfunction T(t) {\n return t.length === 1 ? `0${t}` : t.toString();\n}\nfunction C(t) {\n return t.charAt(0) === t.charAt(1);\n}\nfunction ge(t) {\n return Math.round(parseFloat(t) * 255).toString(16);\n}\nfunction pt(t) {\n return parseInt(t, 16) / 255;\n}\nfunction w(t, e, n) {\n return Math.max(e, Math.min(n, parseFloat(t)));\n}\nfunction tt(t, e, n) {\n return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;\n}\nfunction I(t) {\n return String(t).trim().includes(\"%\");\n}\nfunction L(t) {\n const e = parseFloat(t) / 100;\n return Number.isNaN(e) ? 0 : e;\n}\nfunction M() {\n return S(this.a) && this.a >= 0 && this.a < 1 ? `rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})` : `rgb(${this.r}, ${this.g}, ${this.b})`;\n}\nfunction H() {\n const t = `${this.s * 100}%`, e = `${this.l * 100}%`;\n return S(this.a) && this.a >= 0 && this.a < 1 ? `hsla(${this.h}, ${t}, ${e}, ${this.a})` : `hsl(${this.h}, ${t}, ${e})`;\n}\nfunction j() {\n const t = `${this.s * 100}%`, e = `${this.v * 100}%`;\n return S(this.a) && this.a >= 0 && this.a < 1 ? `hsva(${this.h}, ${t}, ${e}, ${this.a})` : `hsv(${this.h}, ${t}, ${e})`;\n}\nfunction Ut(t) {\n return (t.r * 0.2126 + t.g * 0.7152 + t.b * 0.0722) / 255;\n}\nlet Yt = 0;\nfunction Kn() {\n return Yt++;\n}\nfunction Qn(t) {\n Yt = Math.round(t);\n}\nfunction Xn(t = 0) {\n return {\n getCount: () => t++,\n setCount: (e) => {\n t = e;\n }\n };\n}\nfunction mt(t) {\n return t & -t;\n}\nfunction Vn(t, e = 0) {\n const n = new Array(t + 1).fill(0);\n function r(c, a) {\n if (!(!a || c >= t))\n for (c += 1; c <= t; )\n n[c] += a, c += mt(c);\n }\n function o(c = t) {\n if (c <= 0)\n return 0;\n c > t && (c = t);\n let a = c * e;\n for (; c > 0; )\n a += n[c], c -= mt(c);\n return a;\n }\n function i(c) {\n return o(c + 1) - o(c);\n }\n function s(c) {\n let a = 0, f = t;\n for (; f > a; ) {\n const u = Math.floor((a + f) / 2), d = o(u);\n if (d > c) {\n f = u;\n continue;\n } else if (d < c) {\n if (a === u)\n return o(a + 1) <= c ? a + 1 : a;\n a = u;\n } else\n return u;\n }\n return a;\n }\n return { tree: n, add: r, sum: o, get: i, boundIndex: s };\n}\nconst pe = /^\\s*[+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?\\s*$/;\nfunction me(t, e = !1) {\n return typeof t == \"number\" ? !Number.isNaN(t) : e ? pe.test(String(t)) : !Number.isNaN(parseFloat(t)) || !Number.isNaN(Number(t));\n}\nfunction be(t) {\n let e = parseFloat(t);\n return Number.isNaN(e) && (e = Number(t)), Number.isNaN(e) ? 0 : e;\n}\nfunction ye(t, e) {\n return e <= 0 ? t.toString() : `${t < 0 ? \"-\" : \"\"}${String(Math.abs(Math.round(t))).padStart(e, \"0\")}`;\n}\nfunction N(t) {\n return ye(t, 2);\n}\nfunction E(t) {\n const e = t.toString().split(/[eE]/), n = (e[0].split(\".\")[1] || \"\").length - +(e[1] || 0);\n return n > 0 ? n : 0;\n}\nfunction Zn(t) {\n return E(t);\n}\nfunction vn(t, e = 3, n = \",\") {\n if (typeof t != \"number\" && (t = parseFloat(t)), Number.isNaN(t))\n return \"0\";\n let [r, o] = String(t).split(\".\");\n const i = new RegExp(`(\\\\d+)(\\\\d{${e}})`);\n for (; i.test(r); )\n r = r.replace(i, `$1${n}$2`);\n return o = o ? `.${o}` : \"\", `${r}${o}`;\n}\nfunction Gt(t, e) {\n if (e === 0)\n return Math.round(t);\n let n = t.toFixed(E(t));\n const r = n.indexOf(\".\");\n if (r === -1)\n return t;\n const o = n.replace(\".\", \"\").split(\"\"), i = r + e;\n return o[i] ? (n.charAt(i + 1) === \"5\" ? n = n.substring(0, i + 1) + \"6\" : n = n.substring(0, i + 2), parseFloat(Number(n).toFixed(e))) : t;\n}\nfunction Jn(t, e, n) {\n return Gt(t * e, n);\n}\nfunction tr(t, e) {\n if (e < 0 || e > 1)\n return Math.round(t);\n const n = Math.ceil(t);\n return t + 1 - e >= n ? n : Math.floor(t);\n}\nfunction er(t, e, n) {\n return Math.max(e, Math.min(n, parseFloat(t)));\n}\nfunction nr(t, e, n = 0) {\n if (t <= 0 || e <= 1)\n return [t];\n n < 1 && (n = 1 / 0);\n const r = [];\n let o = 0;\n for (; t >= e && o < n; )\n r.push(t % e), t = Math.floor(t / e), ++o;\n return r.push(t), r.reverse();\n}\nfunction rr(t) {\n if (t < 0)\n return `${t}th`;\n const e = [\"th\", \"st\", \"nd\", \"rd\"], n = t % 100;\n return `${t}${e[n] || e[t % 10] || e[0]}`;\n}\nconst bt = Object.freeze([\n \"B\",\n \"KB\",\n \"MB\",\n \"GB\",\n \"TB\",\n \"AUTO\"\n]);\nfunction or(t, e = \"AUTO\", n = !1, r) {\n typeof r > \"u\" && (typeof n == \"number\" ? (r = n, n = !1) : r = 2);\n let o = e.toUpperCase();\n o = bt.includes(o) ? o : \"AUTO\";\n let i;\n switch (o) {\n case \"AUTO\":\n i = 0;\n break;\n case \"KB\":\n i = 1;\n break;\n case \"MB\":\n i = 2;\n break;\n case \"GB\":\n i = 3;\n break;\n case \"TB\":\n i = 4;\n break;\n default:\n return t;\n }\n let s;\n if (i)\n s = t / 1024 ** i;\n else\n for (s = t; s > 1024 && !(i > 4); ++i)\n s = s / 1024;\n return s = Gt(s, r), n ? `${s}${o === \"AUTO\" ? bt[Math.min(i, 4)] : o}` : s;\n}\nfunction ir(t, e = 0) {\n return e === t ? e : (e > t && ([e, t] = [t, e]), Math.random() * (t - e) + e);\n}\nfunction Wt(t, e = 15) {\n return +parseFloat(Number(t).toPrecision(e));\n}\nfunction K(t) {\n const e = String(t);\n if (!e.includes(\"e\"))\n return Number(e.replace(\".\", \"\"));\n const n = E(t);\n return n > 0 ? Wt(Number(t) * 10 ** n) : Number(t);\n}\nfunction Q(t) {\n return (...e) => {\n let n = e[0];\n for (let r = 1, o = e.length; r < o; ++r)\n n = t(n, e[r]);\n return n;\n };\n}\nconst P = Q((t, e) => {\n const n = K(t), r = K(e), o = E(t) + E(e);\n return n * r / 10 ** o;\n}), sr = Q((t, e) => {\n const n = 10 ** Math.max(E(t), E(e));\n return (P(t, n) + P(e, n)) / n;\n}), cr = Q((t, e) => {\n const n = 10 ** Math.max(E(t), E(e));\n return (P(t, n) - P(e, n)) / n;\n}), ar = Q((t, e) => {\n const n = K(t), r = K(e);\n return P(n / r, Wt(10 ** (E(e) - E(t))));\n}), Me = 1e3, A = 1e3, k = 60, Se = k * A, fr = k * A, X = 60, zt = X * k, we = zt * A, ur = zt * A, qt = 24, Ee = qt * X, jt = Ee * k, Ne = jt * A, lr = jt * A, ct = 7, Ae = ct * qt, Fe = Ae * X, Kt = Fe * k, $e = Kt * A, dr = Kt * A, Qt = 3, Te = 4, Ce = Te * Qt, Oe = {\n y(t, e) {\n const n = t.getFullYear();\n return e.length === 4 ? n : n % 1e3 % 100;\n },\n M(t, e) {\n const n = t.getMonth() + 1;\n return e.length === 2 ? N(n) : n;\n },\n d(t, e) {\n const n = t.getDate();\n return e.length === 2 ? N(n) : n;\n },\n H(t, e) {\n const n = t.getHours();\n return e.length === 2 ? N(n) : n;\n },\n m(t, e) {\n const n = t.getMinutes();\n return e.length === 2 ? N(n) : n;\n },\n s(t, e) {\n const n = t.getSeconds();\n return e.length === 2 ? N(n) : n;\n },\n q(t, e) {\n const n = Math.ceil((t.getMonth() + 1) / 3);\n return e.length === 2 ? N(n) : n;\n }\n}, Re = /[yMdHmsq](\\w)*|./g, _e = /'(.+?)'/g;\nfunction h(t, e = !1) {\n const n = new Date(t);\n if (e && Number.isNaN(+n))\n throw new RangeError(\"Invalid date value\");\n return typeof t == \"string\" && !t.includes(\":\") && (n.setHours(0), n.setMinutes(0), n.setSeconds(0)), n;\n}\nfunction hr(t, e = \"yyyy-MM-dd HH:mm:ss\") {\n t = h(t);\n const n = e.match(Re), r = n == null ? void 0 : n.length;\n if (!r)\n return e;\n let o = 0, i = \"\";\n for (; o < r; ) {\n const s = n[o], c = s[0], a = Oe[c];\n a ? i += a(t, s) : i += s, ++o;\n }\n return i.replace(_e, \"$1\");\n}\nfunction gr(t) {\n return t = h(t), `${N(t.getHours())}:${N(t.getMinutes())}:${N(\n t.getSeconds()\n )}`;\n}\nfunction rt(t) {\n return t = h(t), Math.floor(t.getMonth() / 3) + 1;\n}\nconst ke = [\"日\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\"];\nfunction pr(t) {\n return ke[t.getDay()];\n}\nfunction xe(t, e) {\n return t = h(t), t.setTime(t.getTime() + e), t;\n}\nfunction De(t, e) {\n return e *= A, xe(t, e);\n}\nfunction Ie(t, e) {\n return e *= k, De(t, e);\n}\nfunction Le(t, e) {\n return e *= X, Ie(t, e);\n}\nfunction mr(t, e) {\n return e *= 12, Le(t, e);\n}\nfunction at(t, e) {\n return t = h(t), e = ~~e, t.setDate(t.getDate() + e), t;\n}\nfunction br(t, e) {\n return e *= ct, at(t, e);\n}\nfunction ft(t, e) {\n return t = h(t), e = ~~e, t.setMonth(t.getMonth() + e), t;\n}\nfunction yr(t, e) {\n return e *= Qt, ft(t, e);\n}\nfunction Mr(t, e) {\n return e *= Ce, ft(t, e);\n}\nfunction Sr(t, e = 42, n = 1) {\n t = h(t);\n const r = [];\n for (let o = 0; o < e; ++o)\n r.push(at(t, o * n));\n return r;\n}\nfunction wr(t, e = 12, n = 1) {\n t = h(t);\n const r = [];\n for (let o = 0; o < e; ++o)\n r.push(ft(t, o * n));\n return r;\n}\nfunction Er(t) {\n const e = t.getDay() ?? 7;\n return at(t, -e);\n}\nfunction yt(t) {\n return t = h(t), t.setMilliseconds(0), t;\n}\nfunction Mt(t) {\n return t = h(t), t.setSeconds(0, 0), t;\n}\nfunction St(t) {\n return t = h(t), t.setMinutes(0, 0, 0), t;\n}\nfunction wt(t) {\n return t = h(t), t.setHours(0, 0, 0, 0), t;\n}\nfunction Nr(t) {\n return t = h(t), t.setHours(23, 59, 59, 999), t;\n}\nfunction Et(t, e = 0) {\n e = e % 7, e < 0 && (e += 7), t = h(t);\n const n = t.getDay(), r = (n < e ? 7 : 0) + n - e;\n return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;\n}\nfunction He(t) {\n return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;\n}\nfunction Pe(t, e) {\n let n;\n return e < 7 ? e !== 2 ? n = 30 + e % 2 : He(t) ? n = 29 : n = 28 : n = 31 - e % 2, n;\n}\nfunction Ar(t, e = 1) {\n t = h(t);\n const n = t.getFullYear(), r = t.getMonth() + 1, o = t.getDate(), i = Pe(n, r);\n return e = e % i, e < 0 && (e += i), o < e && t.setMonth(r - 1), t.setDate(e), t.setHours(0, 0, 0, 0), t;\n}\nfunction Fr(t) {\n t = h(t);\n const e = rt(t);\n return t.setDate(1), t.setHours(0, 0, 0, 0), t.setMonth((e - 1) * 3), t;\n}\nfunction $r(t, e = 0) {\n e = e % 11, e < 0 && (e += 11), t = h(t);\n const n = t.getMonth(), r = (n < e ? 11 : 0) + n - e;\n return t.setMonth(t.getMonth() - r), t.setDate(1), t.setHours(0, 0, 0, 0), t;\n}\nfunction ut(t, e) {\n return t = h(t), e = h(e), e.getTime() - t.getTime();\n}\nfunction Be(t, e) {\n const n = ut(t, e) / Me;\n return n > 0 ? Math.floor(n) : Math.ceil(n);\n}\nfunction Ue(t, e) {\n const n = ut(t, e) / Se;\n return n > 0 ? Math.floor(n) : Math.ceil(n);\n}\nfunction Ye(t, e) {\n const n = ut(t, e) / we;\n return n > 0 ? Math.floor(n) : Math.ceil(n);\n}\nfunction Ge(t, e) {\n return t = wt(t), e = wt(e), (e.getTime() - t.getTime()) / Ne;\n}\nfunction Tr(t, e, n = 0) {\n return t = Et(t, n), e = Et(e, n), (e.getTime() - t.getTime()) / $e;\n}\nfunction We(t, e) {\n t = h(t), e = h(e);\n const n = e.getFullYear() - t.getFullYear(), r = e.getMonth() - t.getMonth();\n return n * 12 + r;\n}\nfunction Cr(t, e) {\n t = h(t), e = h(e);\n const n = e.getFullYear() - t.getFullYear(), r = rt(e) - rt(t);\n return n * 4 + r;\n}\nfunction ze(t, e) {\n return t = h(t), e = h(e), e.getFullYear() - t.getFullYear();\n}\nfunction qe(t, e) {\n t = h(t), e = h(e);\n const n = t.getTime() - e.getTime();\n return n < 0 ? -1 : n > 0 ? 1 : n;\n}\nfunction _(t, e) {\n return -qe(t, e);\n}\nfunction Or(t, e) {\n return t = yt(t), e = yt(e), Be(t, e);\n}\nfunction Rr(t, e) {\n return t = Mt(t), e = Mt(e), Ue(t, e);\n}\nfunction _r(t, e) {\n return t = St(t), e = St(e), Ye(t, e);\n}\nfunction je(t, e) {\n const n = _(t, e), r = Math.abs(Ge(t, e));\n t = h(t), t.setDate(t.getDate() + n * r);\n const o = _(t, e) === -n;\n return n * (r - (o ? 1 : 0));\n}\nfunction kr(t, e) {\n const n = je(t, e) / ct;\n return n > 0 ? Math.floor(n) : Math.ceil(n);\n}\nfunction Ke(t, e) {\n const n = _(t, e), r = Math.abs(We(t, e));\n t = h(t), t.setMonth(t.getMonth() + n * r);\n const o = _(t, e) === -n;\n return n * (r - (o ? 1 : 0));\n}\nfunction xr(t, e) {\n const n = Ke(t, e) / 3;\n return n > 0 ? Math.floor(n) : Math.ceil(n);\n}\nfunction Dr(t, e) {\n const n = _(t, e), r = Math.abs(ze(t, e));\n t = h(t), t.setFullYear(t.getFullYear() + n * r);\n const o = _(t, e) === -n;\n return n * (r - (o ? 1 : 0));\n}\nfunction Qe(t, e = {}) {\n if (t == null || typeof t != \"object\")\n return t;\n const { cloneObject: n = ot } = e, r = {}, o = [\n {\n parent: r,\n prop: \"root\",\n data: t\n }\n ], i = /* @__PURE__ */ new WeakMap(), s = [], c = [];\n for (; o.length; ) {\n const { parent: a, prop: f, data: u } = o.pop();\n if (!a)\n continue;\n const d = se(u);\n if (d === \"Date\") {\n a[f] = new Date(u);\n continue;\n }\n if (d !== \"Array\") {\n const l = n(d, u);\n if (l != null) {\n a[f] = l;\n continue;\n }\n }\n const g = a[f] = d === \"Array\" || d === \"Set\" || d === \"Map\" ? [] : {};\n if (d === \"Set\" || d === \"Map\") {\n let l = 0;\n if (d === \"Set\") {\n for (const p of u)\n i.has(p) ? g[l] = i.get(p) : p !== null && typeof p == \"object\" ? o.push({\n parent: g,\n prop: l,\n data: p\n }) : g[l] = p, ++l;\n s.push({ parent: a, prop: f });\n } else {\n for (const p of u) {\n const b = [];\n l = 0;\n for (const m of p)\n i.has(m) ? b[l] = i.get(m) : m !== null && typeof m == \"object\" ? o.push({\n parent: b,\n prop: l,\n data: m\n }) : b[l] = m, ++l;\n g.push(b);\n }\n c.push({ parent: a, prop: f });\n }\n } else\n for (const l of Object.keys(u)) {\n const p = u[l];\n i.has(p) ? g[l] = i.get(p) : p !== null && typeof p == \"object\" ? o.push({\n parent: g,\n prop: l,\n data: p\n }) : g[l] = p;\n }\n i.set(u, g);\n }\n for (const { parent: a, prop: f } of s)\n a[f] = new Set(a[f]);\n for (const { parent: a, prop: f } of c)\n a[f] = new Map(a[f]);\n return r.root;\n}\nconst Xe = \"This object was destroyed, do not use it anywhere\", Ve = () => !0;\nfunction Ir(t, e = Xe) {\n const n = () => {\n throw new Error(e);\n };\n Object.keys(t).forEach((r) => {\n typeof t[r] == \"function\" ? t[r] = n.bind(t) : t[r] = null;\n }), Object.getOwnPropertyNames(t.constructor.prototype).forEach((r) => {\n r !== \"constructor\" && typeof t[r] == \"function\" && (t[r] = n.bind(t));\n }), t.isDestroyed = Ve;\n}\nconst Ze = y && (\"ontouchstart\" in window || ve() > 0), Lr = Ze ? \"pointerdown\" : \"click\";\nfunction ve() {\n return typeof navigator < \"u\" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints) || 0;\n}\nfunction Hr(t, e, n = window.Event) {\n const { type: r, bubbles: o = !1, cancelable: i = !1, ...s } = e;\n if (!S(r) || r === \"\")\n return !1;\n let c;\n return S(n) ? c = new n(r, { bubbles: o, cancelable: i }) : (c = document.createEvent(\"HTMLEvents\"), c.initEvent(r, o, i)), Object.assign(c, s), t.dispatchEvent(c);\n}\nconst Je = [\n \"button\",\n \"[href]:not(.disabled)\",\n \"input\",\n \"select\",\n \"textarea\",\n \"[tabindex]\",\n \"[contenteditable]\"\n].map((t) => `${t}:not(:disabled):not([disabled])`).join(\", \");\nfunction V(t) {\n return !!t && t.nodeType === 1;\n}\nfunction tn(t) {\n return V(t) ? t : document.body;\n}\nfunction en(t, e) {\n return !y || !t ? [] : Array.from(tn(e).querySelectorAll(t));\n}\nfunction Pr(t) {\n if (!y)\n return !1;\n const e = document.activeElement;\n return !V(t) || !e ? !1 : t === e || Xt(e, t);\n}\nfunction Xt(t, e) {\n if (!t || !e)\n return !1;\n const n = e.__transferElement;\n return e.contains(t) || !!n && (n === t || n.contains(t));\n}\nfunction nn(t) {\n if (!y || !V(t) || !t.parentNode || !Xt(t, document.body) || t.style.display === \"none\")\n return !0;\n const e = t.getBoundingClientRect();\n return !(e && e.width > 0 && e.height > 0);\n}\nfunction rn(t) {\n return !nn(t);\n}\nfunction on(t) {\n return !V(t) || t.hasAttribute(\"disabled\") && t.getAttribute(\"disabled\") !== \"false\" || t.disabled;\n}\nfunction Br(t, e = !1) {\n const n = e ? () => !1 : on;\n return en(Je, t).filter(\n (r) => rn(r) && r.tabIndex > -1 && !n(r)\n );\n}\nfunction sn(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.paddingLeft) + parseFloat(e.paddingRight) || 0;\n}\nfunction Ur(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.paddingTop) + parseFloat(e.paddingBottom) || 0;\n}\nfunction Yr(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.marginLeft) + parseFloat(e.marginRight) || 0;\n}\nfunction Gr(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.marginTop) + parseFloat(e.marginBottom) || 0;\n}\nfunction Wr(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.borderLeftWidth) + parseFloat(e.borderRightWidth) || 0;\n}\nfunction zr(t) {\n if (!y || !t)\n return 0;\n const e = getComputedStyle(t);\n return parseFloat(e.borderTopWidth) + parseFloat(e.borderBottomWidth) || 0;\n}\nfunction qr(t) {\n if (!y || !t)\n return 0;\n const e = document.createRange();\n e.setStart(t, 0), e.setEnd(t, t.childNodes.length);\n const n = e.getBoundingClientRect().width, r = sn(t);\n return n + r;\n}\nfunction jr(t) {\n return me(t, !0) ? `${be(t)}px` : String(t).trim();\n}\nfunction Kr(t) {\n return S(t) && t !== !1 ? String(t) : void 0;\n}\nconst cn = /[\"'&<>]/;\nfunction Qr(t) {\n const e = \"\" + t, n = cn.exec(e);\n if (!n)\n return e;\n let r = \"\", o, i, s = 0;\n for (i = n.index; i < e.length; i++) {\n switch (e.charCodeAt(i)) {\n case 34:\n o = \""\";\n break;\n case 38:\n o = \"&\";\n break;\n case 39:\n o = \"'\";\n break;\n case 60:\n o = \"<\";\n break;\n case 62:\n o = \">\";\n break;\n default:\n continue;\n }\n s !== i && (r += e.substring(s, i)), s = i + 1, r += o;\n }\n return s !== i ? r + e.substring(s, i) : r;\n}\nfunction Xr() {\n const t = /* @__PURE__ */ new Map();\n return {\n on(e, n) {\n const r = t.get(e);\n (r == null ? void 0 : r.add(n)) || t.set(e, /* @__PURE__ */ new Set([n]));\n },\n off(e, n) {\n const r = t.get(e);\n r && r.delete(n);\n },\n clear(e) {\n const n = t.get(e);\n n && n.clear();\n },\n clearAll() {\n t.clear();\n },\n emit(e, ...n) {\n const r = t.get(e);\n r && r.forEach((o) => {\n o(...n);\n });\n }\n };\n}\nfunction lt(t, e, n) {\n t && !e.has(t) && (n(t), e.add(t));\n}\nconst an = /* @__PURE__ */ new Set();\nfunction Vr(t, e = console.info) {\n lt(t, an, e);\n}\nconst fn = /* @__PURE__ */ new Set();\nfunction Zr(t, e = console.warn) {\n lt(t, fn, e);\n}\nconst un = /* @__PURE__ */ new Set();\nfunction vr(t, e = console.warn) {\n lt(t, un, e);\n}\nconst dt = y ? requestAnimationFrame : (t) => {\n setTimeout(t, 16);\n};\nfunction Jr(t, e = 16) {\n if (typeof t != \"function\")\n return ot;\n const n = (...i) => {\n t(...i);\n };\n if (e <= 0)\n return Vt(n);\n let r = 0, o;\n return function(...i) {\n const s = Date.now(), c = s - r;\n clearTimeout(o), c >= e ? (r = s, n(...i)) : o = setTimeout(\n () => {\n r = Date.now(), n(...i);\n },\n Math.max(0, e - c)\n );\n };\n}\nfunction to(t, e = 100) {\n if (typeof t != \"function\")\n return ot;\n const n = (...o) => {\n t(...o);\n };\n if (e <= 0)\n return Vt(n);\n let r;\n return function(...o) {\n clearTimeout(r), r = setTimeout(() => {\n n(...o);\n }, e);\n };\n}\nfunction Vt(t) {\n if (typeof t != \"function\")\n return t;\n let e = !1, n, r;\n return function(...o) {\n return n = o, e || (e = !0, r = Promise.resolve().then(() => (e = !1, r = void 0, t(...n)))), r;\n };\n}\nfunction eo(t) {\n if (typeof t != \"function\")\n return t;\n let e = !1, n, r;\n return function(...o) {\n return n = o, e || (e = !0, r = new Promise(\n (i) => dt(() => {\n e = !1, r = void 0, i(t(...n));\n })\n )), r;\n };\n}\nconst x = /* @__PURE__ */ new Set(), Zt = /* @__PURE__ */ new WeakMap();\nfunction ln() {\n x.forEach((t) => {\n t(...Zt.get(t));\n }), x.clear();\n}\nfunction no(t, ...e) {\n if (typeof t != \"function\")\n return t;\n Zt.set(t, e), !x.has(t) && (x.add(t), x.size === 1 && Promise.resolve().then(ln));\n}\nconst D = /* @__PURE__ */ new Set(), vt = /* @__PURE__ */ new WeakMap();\nfunction dn() {\n D.forEach((t) => {\n t(...vt.get(t));\n }), D.clear();\n}\nfunction ro(t, ...e) {\n if (typeof t != \"function\")\n return t;\n vt.set(t, e), !D.has(t) && (D.add(t), D.size === 1 && dt(dn));\n}\nasync function oo(t, e, n) {\n const r = [], o = [];\n for (const i of e) {\n const s = Promise.resolve().then(() => n(i, e));\n if (r.push(s), t <= e.length) {\n const c = s.then(() => o.splice(o.indexOf(c), 1));\n o.push(c), o.length >= t && await Promise.race(o);\n }\n }\n return Promise.all(r);\n}\nlet et = null;\nfunction io() {\n if (!y)\n return !0;\n if (et === null) {\n const t = document.createElement(\"div\");\n t.style.display = \"flex\", t.style.flexDirection = \"column\", t.style.rowGap = \"1px\", t.appendChild(document.createElement(\"div\")), t.appendChild(document.createElement(\"div\")), document.body.appendChild(t), et = t.scrollHeight === 1, document.body.removeChild(t);\n }\n return et;\n}\nlet nt = null;\nfunction so() {\n return y ? (nt === null && (nt = \"loading\" in document.createElement(\"img\")), nt) : !1;\n}\nfunction co(t) {\n return Array.isArray(t) ? t : [t];\n}\nfunction ao(t, ...e) {\n return Ft(t) ? t(...e) : t;\n}\nfunction fo(t) {\n return t.replace(/[\\\\/]+/g, \"/\");\n}\nfunction uo(t) {\n return t[t.length - 1];\n}\nfunction lo(t, e, n = (o) => o, r = !1) {\n const o = r ? /* @__PURE__ */ new Map() : {};\n if (!S(e))\n return o;\n const i = r ? (c, a) => o.set(c, a) : (c, a) => o[c] = a, s = Ft(e) ? e : (c) => c[e];\n return t.forEach((c) => {\n const a = s(c);\n S(a) && i(a, n(c));\n }), o;\n}\nfunction ho(t, e, n = !1) {\n let r = -1;\n return n || typeof e != \"function\" ? r = t.findIndex((o) => o === e) : r = t.findIndex(e), ~r ? t.splice(r, 1)[0] : null;\n}\nfunction go(t, e = []) {\n (typeof e == \"string\" || typeof e == \"function\") && (e = [e]);\n const n = e.length, r = {};\n for (const o of t) {\n let i;\n for (let s = 0; s < n; ++s) {\n const c = s === n - 1, a = e[s], f = typeof a == \"function\" ? a(o) : o[a];\n i ? (i[f] || (i[f] = c ? [] : {}), i = i[f]) : (r[f] || (r[f] = c ? [] : {}), i = r[f]);\n }\n i.push(o);\n }\n return r;\n}\nfunction po(t, e = {}) {\n const {\n keyField: n = \"id\",\n childField: r = \"children\",\n parentField: o = \"parent\",\n rootId: i = null\n } = e, s = S(i) && i !== \"\", c = [], a = /* @__PURE__ */ new Map();\n for (let f = 0, u = t.length; f < u; ++f) {\n const d = t[f], g = d[n];\n if (!(s ? g === i : !S(g)))\n if (a.has(g) ? d[r] = a.get(g) : (d[r] = [], a.set(g, d[r])), d[o] && (!s || d[o] !== i)) {\n const l = d[o];\n a.has(l) || a.set(l, []), a.get(l).push(d);\n } else\n c.push(d);\n }\n return c;\n}\nfunction mo(t, e = {}) {\n const {\n keyField: n = \"id\",\n childField: r = \"children\",\n parentField: o = \"parent\",\n rootId: i = null,\n depthFirst: s = !1,\n injectId: c = !0,\n buildId: a = (m) => m,\n filter: f = ie,\n cascaded: u = !1,\n forceInject: d = !1\n } = e;\n let g = 1;\n const l = S(i) && i !== \"\", p = [], b = [...t];\n for (; b.length; ) {\n const m = b.shift(), Z = m[r], v = Array.isArray(Z) && Z.length ? Z : [];\n c && (d || !m[n]) && (m[n] = a(g++));\n const Jt = m[n];\n c && o && (l ? m[o] === i : !m[o]) && (m[o] = i);\n const ht = f(m);\n if (ht && p.push(m), ht || !u) {\n for (let J = 0, te = v.length; J < te; ++J) {\n const gt = v[J];\n c && o && (gt[o] = Jt), !s && b.push(gt);\n }\n s && b.unshift(...v);\n }\n }\n return p;\n}\nfunction bo(t, e, n = {}) {\n const { childField: r = \"children\", depthFirst: o = !1 } = n, i = [...t.map((s) => ({ item: s, depth: 0, parent: null }))];\n for (; i.length; ) {\n const { item: s, depth: c, parent: a } = i.shift(), f = s[r];\n e(s, c, a), G(f) && i[o ? \"unshift\" : \"push\"](\n ...Array.from(f).map((u) => ({ item: u, depth: c + 1, parent: s }))\n );\n }\n}\nfunction yo(t, e, n = {}) {\n const { childField: r = \"children\", depthFirst: o = !1, clearChildren: i = !0 } = n, s = [], c = [...t.map((a) => ({ item: a, depth: 0, parent: null, result: s }))];\n for (; c.length; ) {\n const { item: a, depth: f, parent: u, result: d } = c.shift(), g = a[r], l = e(a, f, u) ?? {};\n i && (l[r] = []), d.push(l), G(g) && Array.from(g).length && (l[r] = [], c[o ? \"unshift\" : \"push\"](\n ...Array.from(g).map((b) => ({\n item: b,\n depth: f + 1,\n parent: a,\n result: l[r]\n }))\n ));\n }\n return s;\n}\nfunction Mo(t, e, n = {}) {\n const {\n childField: r = \"children\",\n leafOnly: o = !1,\n isLeaf: i = (c) => !G(c[r])\n } = n, s = (c, a, f) => c.map((u) => ({ ...u })).filter((u) => {\n const d = u[r], g = i(u), l = G(d) && Array.from(d);\n if (o && !g) {\n if (l && l.length) {\n const b = s(l, a + 1, u);\n return u[r] = b, !!b.length;\n }\n return !1;\n }\n const p = e(u, a, f);\n if (g)\n return p;\n if (!o && p)\n return !0;\n if (l && l.length) {\n const b = s(l, a + 1, u);\n return u[r] = b, !!b.length;\n }\n return p;\n });\n return s(t, 0, null);\n}\nconst Nt = (t, e) => Number.isNaN(Number(t) - Number(e)) ? String(t).localeCompare(e) : t - e;\nfunction So(t, e) {\n if (!t.sort || Y(e) && !e.key || !e.length)\n return t;\n const n = Array.from(t);\n Array.isArray(e) || (e = [e]);\n const r = e.map(\n (o) => typeof o == \"string\" ? {\n key: o,\n method: Nt,\n type: \"asc\"\n } : o\n ).map((o) => (typeof o.accessor != \"function\" && (o.accessor = (i) => i[o.key]), typeof o.method != \"function\" && (o.method = Nt), o.params = Array.isArray(o.params) ? o.params : [], o));\n return n.sort((o, i) => {\n let s = 0;\n for (const c of r) {\n const { method: a, type: f, accessor: u, params: d } = c, g = f === \"desc\", l = a(u(o, ...d), u(i, ...d));\n if (s = g ? -l : l, s)\n break;\n }\n return s;\n }), n;\n}\nfunction wo(t, e, n = !0) {\n t = n ? Qe(t) : t;\n const r = [\n {\n source: t,\n target: e\n }\n ];\n for (; r.length; ) {\n const { source: o, target: i } = r.pop();\n Object.keys(i).forEach((s) => {\n Y(i[s]) ? (Y(o[s]) || (o[s] = {}), r.push({\n source: o[s],\n target: i[s]\n })) : Array.isArray(i[s]) ? (Array.isArray(o[s]) || (o[s] = []), r.push({\n source: o[s],\n target: i[s]\n })) : o[s] = i[s];\n });\n }\n return t;\n}\nfunction Eo(t) {\n t = Array.from(t);\n let e = !1;\n const n = () => {\n var r;\n e || ((r = t.shift()) == null || r(), t.length && dt(n));\n };\n return n(), () => e = !0;\n}\nfunction hn(t) {\n const e = t.match(/[A-Z]+/);\n return e && e[0] === t;\n}\nconst gn = /\\B([A-Z])(?=[^A-Z_-])/g;\nfunction No(t) {\n return t.replace(gn, \"-$1\").toLowerCase();\n}\nfunction pn(t) {\n return t = t.trim().replace(/\\s+/g, \"-\"), t = t.replace(/-+(\\w)/g, (e, n) => n ? n.toUpperCase() : \"\"), (t.charAt(0).toLocaleUpperCase() + t.slice(1)).replace(\n /[^\\w]/g,\n \"\"\n );\n}\nfunction Ao(t) {\n const e = pn(t);\n return hn(e) ? e.toLocaleLowerCase() : e.charAt(0).toLowerCase() + e.slice(1);\n}\nexport {\n Lr as CLICK_TYPE,\n ue as COLOR_NAMES,\n qt as DAY_ON_HOURS,\n lr as DAY_ON_MILLISECONDS,\n Ne as DAY_ON_MILLS,\n Ee as DAY_ON_MINUTES,\n jt as DAY_ON_SECONDS,\n kt as HEX_REG_3,\n xt as HEX_REG_4,\n Dt as HEX_REG_6,\n It as HEX_REG_8,\n ur as HOUR_ON_MILLISECONDS,\n we as HOUR_ON_MILLS,\n X as HOUR_ON_MINUTES,\n zt as HOUR_ON_SECONDS,\n Ot as HSLA_REG,\n Ct as HSL_REG,\n _t as HSVA_REG,\n Rt as HSV_REG,\n fr as MINUTE_ON_MILLISECONDS,\n Se as MINUTE_ON_MILLS,\n k as MINUTE_ON_SECONDS,\n W as NAMED_COLORS,\n Qt as QUARTER_ON_MONTHS,\n Tt as RGBA_REG,\n $t as RGB_REG,\n A as SECOND_ON_MILLISECONDS,\n Me as SECOND_ON_MILLS,\n Ze as USE_TOUCH,\n ct as WEEK_ON_DAYS,\n Ae as WEEK_ON_HOURS,\n dr as WEEK_ON_MILLISECONDS,\n $e as WEEK_ON_MILLS,\n Fe as WEEK_ON_MINUTES,\n Kt as WEEK_ON_SECONDS,\n Ce as YEAR_ON_MONTHS,\n Te as YEAR_ON_QUARTERS,\n at as addDays,\n mr as addHalfDays,\n Le as addHours,\n xe as addMilliseconds,\n Ie as addMinutes,\n ft as addMonths,\n yr as addQuarters,\n De as addSeconds,\n br as addWeeks,\n Mr as addYears,\n Gn as adjustAlpha,\n er as boundRange,\n po as buildTree,\n ao as callIfFunc,\n qe as compareAsc,\n _ as compareDesc,\n Xt as contains,\n Vn as createBITree,\n Xn as createCounter,\n Xr as createEventEmitter,\n to as debounce,\n eo as debounceFrame,\n Vt as debounceMinor,\n Ln as decide,\n E as decimalLength,\n Qe as deepClone,\n Ir as destroyObject,\n Ge as differenceDays,\n je as differenceFullDays,\n _r as differenceFullHours,\n Rr as differenceFullMinutes,\n Ke as differenceFullMonths,\n xr as differenceFullQuarters,\n Or as differenceFullSeconds,\n kr as differenceFullWeeks,\n Dr as differenceFullYears,\n Ye as differenceHours,\n ut as differenceMilliseconds,\n Ue as differenceMinutes,\n We as differenceMonths,\n Cr as differenceQuarters,\n Be as differenceSeconds,\n Tr as differenceWeeks,\n ze as differenceYears,\n Zn as digitLength,\n Hr as dispatchEvent,\n ar as divide,\n N as doubleDigits,\n Nr as endOfDay,\n co as ensureArray,\n vr as errorOnce,\n Qr as escapeHtml,\n Mo as filterTree,\n mo as flatTree,\n hr as format,\n or as formatByteSize,\n pr as getChineseWeek,\n Kn as getGlobalCount,\n uo as getLast,\n Pe as getLastDayOfMonth,\n Er as getLastSunday,\n rt as getQuarter,\n qr as getRangeWidth,\n gr as getTime,\n se as getType,\n Wr as getXBorder,\n Yr as getXMargin,\n sn as getXPadding,\n zr as getYBorder,\n Gr as getYMargin,\n Ur as getYPadding,\n go as groupByProps,\n bn as has,\n de as hslToHsv,\n Lt as hslToRgb,\n Un as hsvToHsl,\n he as hsvToRgb,\n Vr as infoOnce,\n B as is,\n Fn as isArray,\n An as isBigInt,\n Sn as isBoolean,\n y as isClient,\n Pn as isColor,\n On as isDate,\n S as isDefined,\n on as isDisabled,\n kn as isElement,\n _n as isEmpty,\n En as isFalse,\n Pr as isFocusIn,\n Ft as isFunction,\n nn as isHidden,\n mn as isIOS,\n G as isIterable,\n He as isLeapYear,\n Cn as isMap,\n oe as isNaN,\n re as isNull,\n yn as isNumber,\n Y as isObject,\n $n as isPromise,\n Rn as isRegExp,\n Tn as isSet,\n Mn as isString,\n Nn as isSymbol,\n wn as isTrue,\n me as isValidNumber,\n rn as isVisible,\n nr as leaveNumber,\n lo as listToMap,\n yo as mapTree,\n wo as mergeObjects,\n cr as minus,\n Yn as mixColor,\n Jn as multipleFixed,\n ro as nextFrameOnce,\n no as nextTickOnce,\n ot as noop,\n O as normalizeAlpha,\n z as normalizeHsl,\n q as normalizeHsv,\n fo as normalizePath,\n R as normalizeRgb,\n pe as numberRE,\n rr as ordinalNumber,\n ye as padStartZeros,\n Bn as parseColor,\n $ as parseColorToRgba,\n le as parseStringColor,\n sr as plus,\n en as queryAll,\n Br as queryTabables,\n dt as raf,\n ir as random,\n Wn as randomColor,\n zn as randomHardColor,\n Bt as randomPreferColor,\n qn as randomSoftColor,\n In as randomString,\n Dn as range,\n Sr as rangeDate,\n wr as rangeMonth,\n ho as removeArrayItem,\n it as rgbToHex,\n Ht as rgbToHsl,\n Pt as rgbToHsv,\n st as rgbaToHex,\n tr as round,\n oo as runParallel,\n Eo as runQueueFrame,\n vn as segmentNumber,\n Qn as setGlobalCount,\n So as sortByProps,\n wt as startOfDay,\n St as startOfHour,\n Mt as startOfMinute,\n Ar as startOfMonth,\n Fr as startOfQuarter,\n yt as startOfSecond,\n Et as startOfWeek,\n $r as startOfYear,\n io as supportFlexGap,\n so as supportImgLoading,\n Jr as throttle,\n P as times,\n Kr as toAttrValue,\n Ao as toCamelCase,\n pn as toCapitalCase,\n jr as toCssSize,\n h as toDate,\n xn as toFalse,\n Gt as toFixed,\n jn as toGrayScale,\n No as toKebabCase,\n be as toNumber,\n Wt as toPrecision,\n ie as toTrue,\n lo as transformListToMap,\n po as tra