@glance-networks/agent-plugin
Version:
Glance Networks Agent Plugin
2,302 lines • 498 kB
JavaScript
var h0 = Object.defineProperty;
var M0 = (e, t, o) => t in e ? h0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
var w1 = (e, t, o) => M0(e, typeof t != "symbol" ? t + "" : t, o);
var k2 = (e) => {
throw TypeError(e);
}, b2 = (e, t, o) => t.has(e) || k2("Cannot " + o), k0 = (e, t, o) => (b2(e, t, "read from private field"), o ? o.call(e) : t.get(e)), b0 = (e, t, o) => t.has(e) ? k2("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), m0 = (e, t, o, r) => (b2(e, t, "write to private field"), t.set(e, o), o);
const y0 = /* @__PURE__ */ new Set(["string", "number", "boolean"]), L0 = (e) => {
let t;
return {
// Create
c() {
t = document.createElement("slot"), e && t.setAttribute("name", e);
},
// Mount
m(o, r) {
o.insertBefore(t, r || null);
},
// Props changed
p() {
},
// Detach
d(o) {
o && t.parentNode && t.parentNode.removeChild(t);
}
};
};
function w0(e, { name: t, mode: o, styles: r }) {
var n;
if (!globalThis.customElements) {
console.log(
`Component ${t} not registered as there is no customElements in this environment. Perhaps this is an SSR compile, which is not supported for Leo components yet.`
);
return;
}
if (customElements.get(t)) {
console.log(`Attempted to register ${t} component multiple times.`);
return;
}
const i = new e({ target: document.createElement("div") }), l = Object.keys(i.$$.props), d = l.reduce((C, f) => (C.set(f.toLowerCase(), f), C), /* @__PURE__ */ new Map()), a = Array.from(d.keys()), s = new Set(
l.filter((C) => typeof i.$$.ctx[i.$$.props[C]] == "boolean")
);
class c extends HTMLElement {
constructor() {
super(), b0(this, n), this.listenerRemovers = /* @__PURE__ */ new Map();
const f = this.shadowRoot ?? this.attachShadow({ mode: o });
if (r) {
const h = new CSSStyleSheet();
h.replaceSync((r == null ? void 0 : r.default) || r), f.adoptedStyleSheets && (f.adoptedStyleSheets = [h]);
}
f.replaceChildren();
let p = /* @__PURE__ */ new Set();
const g = () => {
var h;
const m = Array.from(this.children).map(
(y) => y.getAttribute("slot")
);
if (this.childNodes.length && m.push(void 0), this.component && // If the size is the same, and every one of our last slots
// is present, then nothing has changed, and we don't need
// to do anything here.
p.size === m.length && m.every((y) => p.has(y)))
return;
p = new Set(m);
const x = m.reduce(
(y, j) => ({
...y,
// @ts-ignore
[j ?? "default"]: [() => L0(j)]
}),
{}
), H = Object.keys(((h = this.component) == null ? void 0 : h.$$.props) ?? {}).map((y) => [y, this[y]]).reduce((y, [j, I]) => ({ ...y, [j]: I }), {});
this.component && this.component.$destroy(), this.component = new e({
// Target this shadowDOM, so we get nicely encapsulated
// styles
target: f,
props: {
// Copy over existing props (there might be none, if
// this is our first render).
...H,
// Create WebComponent slots for each Svelte slot we
// have content for. This has to be done at render or
// Svelte won't support fallback content.
$$slots: x,
// Not sure what this is needed for but Svelte crashes
// without it. I think this might be related to slot
// props:
// https://svelte.dev/tutorial/slot-props
$$scope: { ctx: [] }
}
});
};
new MutationObserver(g).observe(this, {
childList: !0,
attributes: !1,
attributeOldValue: !1,
subtree: !1,
characterData: !1,
characterDataOldValue: !1
}), g();
for (const h of l)
Object.defineProperty(this, h, {
enumerable: !0,
get() {
const m = this.component.$$.props[h];
return this.component.$$.ctx[m];
},
set(m) {
y0.has(typeof m) && (s.has(h) ? m ? this.setAttribute(h, "") : this.removeAttribute(h) : this.setAttribute(h, m)), this.component.$set({ [h]: m });
}
});
}
get component() {
return k0(this, n);
}
set component(f) {
m0(this, n, f);
for (const [p, g] of this.listenerRemovers.entries())
for (const [h, m] of g.entries())
m(), this.addEventListener(p, h);
}
static get observedAttributes() {
return a;
}
attributeChangedCallback(f, p, g) {
const h = d.get(f);
h && p !== g && (this[h] = s.has(h) ? g !== null : g);
}
addEventListener(f, p) {
this.listenerRemovers.has(f) || this.listenerRemovers.set(f, /* @__PURE__ */ new Map());
const g = this.component.$on(f, p);
this.listenerRemovers.get(f).set(p, g);
}
removeEventListener(f, p) {
var g, h, m;
(h = (g = this.listenerRemovers.get(f)) == null ? void 0 : g.get(p)) == null || h(), (m = this.listenerRemovers.get(f)) == null || m.delete(p);
}
}
n = /* @__PURE__ */ new WeakMap(), customElements.define(t, c);
}
function J() {
}
function T(e, t) {
for (const o in t) e[o] = t[o];
return (
/** @type {T & S} */
e
);
}
function m2(e) {
return e();
}
function Y1() {
return /* @__PURE__ */ Object.create(null);
}
function r1(e) {
e.forEach(m2);
}
function y2(e) {
return typeof e == "function";
}
function L2(e, t) {
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
}
function H0(e) {
return Object.keys(e).length === 0;
}
function V0(e, t, o, r) {
if (e) {
const n = w2(e, t, o, r);
return e[0](n);
}
}
function w2(e, t, o, r) {
return e[1] && r ? T(o.ctx.slice(), e[1](r(t))) : o.ctx;
}
function Z0(e, t, o, r) {
if (e[2] && r) {
const n = e[2](r(o));
if (t.dirty === void 0)
return n;
if (typeof n == "object") {
const i = [], l = Math.max(t.dirty.length, n.length);
for (let d = 0; d < l; d += 1)
i[d] = t.dirty[d] | n[d];
return i;
}
return t.dirty | n;
}
return t.dirty;
}
function _0(e, t, o, r, n, i) {
if (n) {
const l = w2(t, o, r, i);
e.p(l, n);
}
}
function v0(e) {
if (e.ctx.length > 32) {
const t = [], o = e.ctx.length / 32;
for (let r = 0; r < o; r++)
t[r] = -1;
return t;
}
return -1;
}
function F1(e) {
const t = {};
for (const o in e) o[0] !== "$" && (t[o] = e[o]);
return t;
}
function J1(e, t) {
const o = {};
t = new Set(t);
for (const r in e) !t.has(r) && r[0] !== "$" && (o[r] = e[r]);
return o;
}
function x0(e) {
const t = {};
for (const o in e)
t[o] = !0;
return t;
}
function j0(e, t) {
e.appendChild(t);
}
function S0(e, t, o) {
const r = F0(e);
if (!r.getElementById(t)) {
const n = W1("style");
n.id = t, n.textContent = o, U0(r, n);
}
}
function F0(e) {
if (!e) return document;
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
return t && /** @type {ShadowRoot} */
t.host ? (
/** @type {ShadowRoot} */
t
) : e.ownerDocument;
}
function U0(e, t) {
return j0(
/** @type {Document} */
e.head || e,
t
), t.sheet;
}
function n1(e, t, o) {
e.insertBefore(t, o || null);
}
function Q(e) {
e.parentNode && e.parentNode.removeChild(e);
}
function W1(e) {
return document.createElement(e);
}
function I0(e) {
return document.createElementNS("http://www.w3.org/2000/svg", e);
}
function A0(e) {
return document.createTextNode(e);
}
function H2() {
return A0("");
}
function V2(e, t, o) {
o == null ? e.removeAttribute(t) : e.getAttribute(t) !== o && e.setAttribute(t, o);
}
const z0 = ["width", "height"];
function d1(e, t) {
const o = Object.getOwnPropertyDescriptors(e.__proto__);
for (const r in t)
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : o[r] && o[r].set && z0.indexOf(r) === -1 ? e[r] = t[r] : V2(e, r, t[r]);
}
function e2(e, t) {
for (const o in t)
V2(e, o, t[o]);
}
function E0(e) {
return Array.from(e.childNodes);
}
function O0(e, t, { bubbles: o = !1, cancelable: r = !1 } = {}) {
return new CustomEvent(e, { detail: t, bubbles: o, cancelable: r });
}
let e1;
function Y(e) {
e1 = e;
}
function C1() {
if (!e1) throw new Error("Function called outside component initialization");
return e1;
}
function P0(e) {
C1().$$.on_mount.push(e);
}
function T0(e) {
C1().$$.after_update.push(e);
}
function W0(e) {
C1().$$.on_destroy.push(e);
}
function D0() {
const e = C1();
return (t, o, { cancelable: r = !1 } = {}) => {
const n = e.$$.callbacks[t];
if (n) {
const i = O0(
/** @type {string} */
t,
o,
{ cancelable: r }
);
return n.slice().forEach((l) => {
l.call(e, i);
}), !i.defaultPrevented;
}
return !0;
};
}
const R = [], U1 = [];
let $ = [];
const t2 = [], B0 = /* @__PURE__ */ Promise.resolve();
let I1 = !1;
function R0() {
I1 || (I1 = !0, B0.then(Z2));
}
function A1(e) {
$.push(e);
}
const H1 = /* @__PURE__ */ new Set();
let B = 0;
function Z2() {
if (B !== 0)
return;
const e = e1;
do {
try {
for (; B < R.length; ) {
const t = R[B];
B++, Y(t), $0(t.$$);
}
} catch (t) {
throw R.length = 0, B = 0, t;
}
for (Y(null), R.length = 0, B = 0; U1.length; ) U1.pop()();
for (let t = 0; t < $.length; t += 1) {
const o = $[t];
H1.has(o) || (H1.add(o), o());
}
$.length = 0;
} while (R.length);
for (; t2.length; )
t2.pop()();
I1 = !1, H1.clear(), Y(e);
}
function $0(e) {
if (e.fragment !== null) {
e.update(), r1(e.before_update);
const t = e.dirty;
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(A1);
}
}
function N0(e) {
const t = [], o = [];
$.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : o.push(r)), o.forEach((r) => r()), $ = t;
}
const l1 = /* @__PURE__ */ new Set();
let D;
function q0() {
D = {
r: 0,
c: [],
p: D
// parent group
};
}
function Q0() {
D.r || r1(D.c), D = D.p;
}
function t1(e, t) {
e && e.i && (l1.delete(e), e.i(t));
}
function f1(e, t, o, r) {
if (e && e.o) {
if (l1.has(e)) return;
l1.add(e), D.c.push(() => {
l1.delete(e), r && (o && e.d(1), r());
}), e.o(t);
} else r && r();
}
function D1(e, t) {
const o = {}, r = {}, n = { $$scope: 1 };
let i = e.length;
for (; i--; ) {
const l = e[i], d = t[i];
if (d) {
for (const a in l)
a in d || (r[a] = 1);
for (const a in d)
n[a] || (o[a] = d[a], n[a] = 1);
e[i] = d;
} else
for (const a in l)
n[a] = 1;
}
for (const l in r)
l in o || (o[l] = void 0);
return o;
}
function G0(e) {
e && e.c();
}
function _2(e, t, o) {
const { fragment: r, after_update: n } = e.$$;
r && r.m(t, o), A1(() => {
const i = e.$$.on_mount.map(m2).filter(y2);
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : r1(i), e.$$.on_mount = [];
}), n.forEach(A1);
}
function v2(e, t) {
const o = e.$$;
o.fragment !== null && (N0(o.after_update), r1(o.on_destroy), o.fragment && o.fragment.d(t), o.on_destroy = o.fragment = null, o.ctx = []);
}
function K0(e, t) {
e.$$.dirty[0] === -1 && (R.push(e), R0(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
}
function x2(e, t, o, r, n, i, l = null, d = [-1]) {
const a = e1;
Y(e);
const s = e.$$ = {
fragment: null,
ctx: [],
// state
props: i,
update: J,
not_equal: n,
bound: Y1(),
// lifecycle
on_mount: [],
on_destroy: [],
on_disconnect: [],
before_update: [],
after_update: [],
context: new Map(t.context || (a ? a.$$.context : [])),
// everything else
callbacks: Y1(),
dirty: d,
skip_bound: !1,
root: t.target || a.$$.root
};
l && l(s.root);
let c = !1;
if (s.ctx = o ? o(e, t.props || {}, (C, f, ...p) => {
const g = p.length ? p[0] : f;
return s.ctx && n(s.ctx[C], s.ctx[C] = g) && (!s.skip_bound && s.bound[C] && s.bound[C](g), c && K0(e, C)), f;
}) : [], s.update(), c = !0, r1(s.before_update), s.fragment = r ? r(s.ctx) : !1, t.target) {
if (t.hydrate) {
const C = E0(t.target);
s.fragment && s.fragment.l(C), C.forEach(Q);
} else
s.fragment && s.fragment.c();
t.intro && t1(e.$$.fragment), _2(e, t.target, t.anchor), Z2();
}
Y(a);
}
class j2 {
constructor() {
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
w1(this, "$$");
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
w1(this, "$$set");
}
/** @returns {void} */
$destroy() {
v2(this, 1), this.$destroy = J;
}
/**
* @template {Extract<keyof Events, string>} K
* @param {K} type
* @param {((e: Events[K]) => void) | null | undefined} callback
* @returns {() => void}
*/
$on(t, o) {
if (!y2(o))
return J;
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
return r.push(o), () => {
const n = r.indexOf(o);
n !== -1 && r.splice(n, 1);
};
}
/**
* @param {Partial<Props>} props
* @returns {void}
*/
$set(t) {
this.$$set && !H0(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
}
}
const X0 = "4";
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(X0);
function u1(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var S2 = {}, F2 = {}, B1 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o) {
if (o = `${o}`, o === "0")
return "0";
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(o))
return o.replace(/^[+-]?/, (n) => n === "-" ? "" : "-");
let r = [
"var",
"calc",
"min",
"max",
"clamp"
];
for (const n of r)
if (o.includes(`${n}(`))
return `calc(${o} * -1)`;
}
})(B1);
var U2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
const t = [
"preflight",
"container",
"accessibility",
"pointerEvents",
"visibility",
"position",
"inset",
"isolation",
"zIndex",
"order",
"gridColumn",
"gridColumnStart",
"gridColumnEnd",
"gridRow",
"gridRowStart",
"gridRowEnd",
"float",
"clear",
"margin",
"boxSizing",
"lineClamp",
"display",
"aspectRatio",
"size",
"height",
"maxHeight",
"minHeight",
"width",
"minWidth",
"maxWidth",
"flex",
"flexShrink",
"flexGrow",
"flexBasis",
"tableLayout",
"captionSide",
"borderCollapse",
"borderSpacing",
"transformOrigin",
"translate",
"rotate",
"skew",
"scale",
"transform",
"animation",
"cursor",
"touchAction",
"userSelect",
"resize",
"scrollSnapType",
"scrollSnapAlign",
"scrollSnapStop",
"scrollMargin",
"scrollPadding",
"listStylePosition",
"listStyleType",
"listStyleImage",
"appearance",
"columns",
"breakBefore",
"breakInside",
"breakAfter",
"gridAutoColumns",
"gridAutoFlow",
"gridAutoRows",
"gridTemplateColumns",
"gridTemplateRows",
"flexDirection",
"flexWrap",
"placeContent",
"placeItems",
"alignContent",
"alignItems",
"justifyContent",
"justifyItems",
"gap",
"space",
"divideWidth",
"divideStyle",
"divideColor",
"divideOpacity",
"placeSelf",
"alignSelf",
"justifySelf",
"overflow",
"overscrollBehavior",
"scrollBehavior",
"textOverflow",
"hyphens",
"whitespace",
"textWrap",
"wordBreak",
"borderRadius",
"borderWidth",
"borderStyle",
"borderColor",
"borderOpacity",
"backgroundColor",
"backgroundOpacity",
"backgroundImage",
"gradientColorStops",
"boxDecorationBreak",
"backgroundSize",
"backgroundAttachment",
"backgroundClip",
"backgroundPosition",
"backgroundRepeat",
"backgroundOrigin",
"fill",
"stroke",
"strokeWidth",
"objectFit",
"objectPosition",
"padding",
"textAlign",
"textIndent",
"verticalAlign",
"fontFamily",
"fontSize",
"fontWeight",
"textTransform",
"fontStyle",
"fontVariantNumeric",
"lineHeight",
"letterSpacing",
"textColor",
"textOpacity",
"textDecoration",
"textDecorationColor",
"textDecorationStyle",
"textDecorationThickness",
"textUnderlineOffset",
"fontSmoothing",
"placeholderColor",
"placeholderOpacity",
"caretColor",
"accentColor",
"opacity",
"backgroundBlendMode",
"mixBlendMode",
"boxShadow",
"boxShadowColor",
"outlineStyle",
"outlineWidth",
"outlineOffset",
"outlineColor",
"ringWidth",
"ringColor",
"ringOpacity",
"ringOffsetWidth",
"ringOffsetColor",
"blur",
"brightness",
"contrast",
"dropShadow",
"grayscale",
"hueRotate",
"invert",
"saturate",
"sepia",
"filter",
"backdropBlur",
"backdropBrightness",
"backdropContrast",
"backdropGrayscale",
"backdropHueRotate",
"backdropInvert",
"backdropOpacity",
"backdropSaturate",
"backdropSepia",
"backdropFilter",
"transitionProperty",
"transitionDelay",
"transitionDuration",
"transitionTimingFunction",
"willChange",
"contain",
"content",
"forcedColorAdjust"
];
})(U2);
var I2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o, r) {
return o === void 0 ? r : Array.isArray(o) ? o : [
...new Set(r.filter((i) => o !== !1 && o[i] !== !1).concat(Object.keys(o).filter((i) => o[i] !== !1)))
];
}
})(I2);
var A2 = {}, g1 = {}, R1 = { exports: {} }, U = String, z2 = function() {
return { isColorSupported: !1, reset: U, bold: U, dim: U, italic: U, underline: U, inverse: U, hidden: U, strikethrough: U, black: U, red: U, green: U, yellow: U, blue: U, magenta: U, cyan: U, white: U, gray: U, bgBlack: U, bgRed: U, bgGreen: U, bgYellow: U, bgBlue: U, bgMagenta: U, bgCyan: U, bgWhite: U, blackBright: U, redBright: U, greenBright: U, yellowBright: U, blueBright: U, magentaBright: U, cyanBright: U, whiteBright: U, bgBlackBright: U, bgRedBright: U, bgGreenBright: U, bgYellowBright: U, bgBlueBright: U, bgMagentaBright: U, bgCyanBright: U, bgWhiteBright: U };
};
R1.exports = z2();
R1.exports.createColors = z2;
var E2 = R1.exports;
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
});
function t(a, s) {
for (var c in s) Object.defineProperty(a, c, {
enumerable: !0,
get: s[c]
});
}
t(e, {
dim: function() {
return l;
},
default: function() {
return d;
}
});
const o = /* @__PURE__ */ r(E2);
function r(a) {
return a && a.__esModule ? a : {
default: a
};
}
let n = /* @__PURE__ */ new Set();
function i(a, s, c) {
typeof process < "u" && process.env.JEST_WORKER_ID || c && n.has(c) || (c && n.add(c), console.warn(""), s.forEach((C) => console.warn(a, "-", C)));
}
function l(a) {
return o.default.dim(a);
}
const d = {
info(a, s) {
i(o.default.bold(o.default.cyan("info")), ...Array.isArray(a) ? [
a
] : [
s,
a
]);
},
warn(a, s) {
i(o.default.bold(o.default.yellow("warn")), ...Array.isArray(a) ? [
a
] : [
s,
a
]);
},
risk(a, s) {
i(o.default.bold(o.default.magenta("risk")), ...Array.isArray(a) ? [
a
] : [
s,
a
]);
}
};
})(g1);
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return n;
}
});
const t = /* @__PURE__ */ o(g1);
function o(i) {
return i && i.__esModule ? i : {
default: i
};
}
function r({ version: i, from: l, to: d }) {
t.default.warn(`${l}-color-renamed`, [
`As of Tailwind CSS ${i}, \`${l}\` has been renamed to \`${d}\`.`,
"Update your configuration file to silence this warning."
]);
}
const n = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
black: "#000",
white: "#fff",
slate: {
50: "#f8fafc",
100: "#f1f5f9",
200: "#e2e8f0",
300: "#cbd5e1",
400: "#94a3b8",
500: "#64748b",
600: "#475569",
700: "#334155",
800: "#1e293b",
900: "#0f172a",
950: "#020617"
},
gray: {
50: "#f9fafb",
100: "#f3f4f6",
200: "#e5e7eb",
300: "#d1d5db",
400: "#9ca3af",
500: "#6b7280",
600: "#4b5563",
700: "#374151",
800: "#1f2937",
900: "#111827",
950: "#030712"
},
zinc: {
50: "#fafafa",
100: "#f4f4f5",
200: "#e4e4e7",
300: "#d4d4d8",
400: "#a1a1aa",
500: "#71717a",
600: "#52525b",
700: "#3f3f46",
800: "#27272a",
900: "#18181b",
950: "#09090b"
},
neutral: {
50: "#fafafa",
100: "#f5f5f5",
200: "#e5e5e5",
300: "#d4d4d4",
400: "#a3a3a3",
500: "#737373",
600: "#525252",
700: "#404040",
800: "#262626",
900: "#171717",
950: "#0a0a0a"
},
stone: {
50: "#fafaf9",
100: "#f5f5f4",
200: "#e7e5e4",
300: "#d6d3d1",
400: "#a8a29e",
500: "#78716c",
600: "#57534e",
700: "#44403c",
800: "#292524",
900: "#1c1917",
950: "#0c0a09"
},
red: {
50: "#fef2f2",
100: "#fee2e2",
200: "#fecaca",
300: "#fca5a5",
400: "#f87171",
500: "#ef4444",
600: "#dc2626",
700: "#b91c1c",
800: "#991b1b",
900: "#7f1d1d",
950: "#450a0a"
},
orange: {
50: "#fff7ed",
100: "#ffedd5",
200: "#fed7aa",
300: "#fdba74",
400: "#fb923c",
500: "#f97316",
600: "#ea580c",
700: "#c2410c",
800: "#9a3412",
900: "#7c2d12",
950: "#431407"
},
amber: {
50: "#fffbeb",
100: "#fef3c7",
200: "#fde68a",
300: "#fcd34d",
400: "#fbbf24",
500: "#f59e0b",
600: "#d97706",
700: "#b45309",
800: "#92400e",
900: "#78350f",
950: "#451a03"
},
yellow: {
50: "#fefce8",
100: "#fef9c3",
200: "#fef08a",
300: "#fde047",
400: "#facc15",
500: "#eab308",
600: "#ca8a04",
700: "#a16207",
800: "#854d0e",
900: "#713f12",
950: "#422006"
},
lime: {
50: "#f7fee7",
100: "#ecfccb",
200: "#d9f99d",
300: "#bef264",
400: "#a3e635",
500: "#84cc16",
600: "#65a30d",
700: "#4d7c0f",
800: "#3f6212",
900: "#365314",
950: "#1a2e05"
},
green: {
50: "#f0fdf4",
100: "#dcfce7",
200: "#bbf7d0",
300: "#86efac",
400: "#4ade80",
500: "#22c55e",
600: "#16a34a",
700: "#15803d",
800: "#166534",
900: "#14532d",
950: "#052e16"
},
emerald: {
50: "#ecfdf5",
100: "#d1fae5",
200: "#a7f3d0",
300: "#6ee7b7",
400: "#34d399",
500: "#10b981",
600: "#059669",
700: "#047857",
800: "#065f46",
900: "#064e3b",
950: "#022c22"
},
teal: {
50: "#f0fdfa",
100: "#ccfbf1",
200: "#99f6e4",
300: "#5eead4",
400: "#2dd4bf",
500: "#14b8a6",
600: "#0d9488",
700: "#0f766e",
800: "#115e59",
900: "#134e4a",
950: "#042f2e"
},
cyan: {
50: "#ecfeff",
100: "#cffafe",
200: "#a5f3fc",
300: "#67e8f9",
400: "#22d3ee",
500: "#06b6d4",
600: "#0891b2",
700: "#0e7490",
800: "#155e75",
900: "#164e63",
950: "#083344"
},
sky: {
50: "#f0f9ff",
100: "#e0f2fe",
200: "#bae6fd",
300: "#7dd3fc",
400: "#38bdf8",
500: "#0ea5e9",
600: "#0284c7",
700: "#0369a1",
800: "#075985",
900: "#0c4a6e",
950: "#082f49"
},
blue: {
50: "#eff6ff",
100: "#dbeafe",
200: "#bfdbfe",
300: "#93c5fd",
400: "#60a5fa",
500: "#3b82f6",
600: "#2563eb",
700: "#1d4ed8",
800: "#1e40af",
900: "#1e3a8a",
950: "#172554"
},
indigo: {
50: "#eef2ff",
100: "#e0e7ff",
200: "#c7d2fe",
300: "#a5b4fc",
400: "#818cf8",
500: "#6366f1",
600: "#4f46e5",
700: "#4338ca",
800: "#3730a3",
900: "#312e81",
950: "#1e1b4b"
},
violet: {
50: "#f5f3ff",
100: "#ede9fe",
200: "#ddd6fe",
300: "#c4b5fd",
400: "#a78bfa",
500: "#8b5cf6",
600: "#7c3aed",
700: "#6d28d9",
800: "#5b21b6",
900: "#4c1d95",
950: "#2e1065"
},
purple: {
50: "#faf5ff",
100: "#f3e8ff",
200: "#e9d5ff",
300: "#d8b4fe",
400: "#c084fc",
500: "#a855f7",
600: "#9333ea",
700: "#7e22ce",
800: "#6b21a8",
900: "#581c87",
950: "#3b0764"
},
fuchsia: {
50: "#fdf4ff",
100: "#fae8ff",
200: "#f5d0fe",
300: "#f0abfc",
400: "#e879f9",
500: "#d946ef",
600: "#c026d3",
700: "#a21caf",
800: "#86198f",
900: "#701a75",
950: "#4a044e"
},
pink: {
50: "#fdf2f8",
100: "#fce7f3",
200: "#fbcfe8",
300: "#f9a8d4",
400: "#f472b6",
500: "#ec4899",
600: "#db2777",
700: "#be185d",
800: "#9d174d",
900: "#831843",
950: "#500724"
},
rose: {
50: "#fff1f2",
100: "#ffe4e6",
200: "#fecdd3",
300: "#fda4af",
400: "#fb7185",
500: "#f43f5e",
600: "#e11d48",
700: "#be123c",
800: "#9f1239",
900: "#881337",
950: "#4c0519"
},
get lightBlue() {
return r({
version: "v2.2",
from: "lightBlue",
to: "sky"
}), this.sky;
},
get warmGray() {
return r({
version: "v3.0",
from: "warmGray",
to: "stone"
}), this.stone;
},
get trueGray() {
return r({
version: "v3.0",
from: "trueGray",
to: "neutral"
}), this.neutral;
},
get coolGray() {
return r({
version: "v3.0",
from: "coolGray",
to: "gray"
}), this.gray;
},
get blueGray() {
return r({
version: "v3.0",
from: "blueGray",
to: "slate"
}), this.slate;
}
};
})(A2);
var O2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "defaults", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o, ...r) {
for (let l of r) {
for (let d in l) {
var n;
!(o == null || (n = o.hasOwnProperty) === null || n === void 0) && n.call(o, d) || (o[d] = l[d]);
}
for (let d of Object.getOwnPropertySymbols(l)) {
var i;
!(o == null || (i = o.hasOwnProperty) === null || i === void 0) && i.call(o, d) || (o[d] = l[d]);
}
}
return o;
}
})(O2);
var P2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "toPath", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o) {
if (Array.isArray(o)) return o;
let r = o.split("[").length - 1, n = o.split("]").length - 1;
if (r !== n)
throw new Error(`Path is invalid. Has unbalanced brackets: ${o}`);
return o.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
}
})(P2);
var T2 = {}, p1 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
});
function t(C, f) {
for (var p in f) Object.defineProperty(C, p, {
enumerable: !0,
get: f[p]
});
}
t(e, {
flagEnabled: function() {
return d;
},
issueFlagNotices: function() {
return s;
},
default: function() {
return c;
}
});
const o = /* @__PURE__ */ n(E2), r = /* @__PURE__ */ n(g1);
function n(C) {
return C && C.__esModule ? C : {
default: C
};
}
let i = {
optimizeUniversalDefaults: !1,
generalizedModifiers: !0,
disableColorOpacityUtilitiesByDefault: !1,
relativeContentPathsByDefault: !1
}, l = {
future: [
"hoverOnlyWhenSupported",
"respectDefaultRingColorOpacity",
"disableColorOpacityUtilitiesByDefault",
"relativeContentPathsByDefault"
],
experimental: [
"optimizeUniversalDefaults",
"generalizedModifiers"
]
};
function d(C, f) {
if (l.future.includes(f)) {
var p, g, h;
return C.future === "all" || ((h = (g = C == null || (p = C.future) === null || p === void 0 ? void 0 : p[f]) !== null && g !== void 0 ? g : i[f]) !== null && h !== void 0 ? h : !1);
}
if (l.experimental.includes(f)) {
var m, x, H;
return C.experimental === "all" || ((H = (x = C == null || (m = C.experimental) === null || m === void 0 ? void 0 : m[f]) !== null && x !== void 0 ? x : i[f]) !== null && H !== void 0 ? H : !1);
}
return !1;
}
function a(C) {
if (C.experimental === "all")
return l.experimental;
var f;
return Object.keys((f = C == null ? void 0 : C.experimental) !== null && f !== void 0 ? f : {}).filter((p) => l.experimental.includes(p) && C.experimental[p]);
}
function s(C) {
if (process.env.JEST_WORKER_ID === void 0 && a(C).length > 0) {
let f = a(C).map((p) => o.default.yellow(p)).join(", ");
r.default.warn("experimental-flags-enabled", [
`You have enabled experimental features: ${f}`,
"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
]);
}
}
const c = l;
})(p1);
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "normalizeConfig", {
enumerable: !0,
get: function() {
return i;
}
});
const t = p1, o = /* @__PURE__ */ n(g1);
function r(l) {
if (typeof WeakMap != "function") return null;
var d = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
return (r = function(s) {
return s ? a : d;
})(l);
}
function n(l, d) {
if (l && l.__esModule)
return l;
if (l === null || typeof l != "object" && typeof l != "function")
return {
default: l
};
var a = r(d);
if (a && a.has(l))
return a.get(l);
var s = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var C in l)
if (C !== "default" && Object.prototype.hasOwnProperty.call(l, C)) {
var f = c ? Object.getOwnPropertyDescriptor(l, C) : null;
f && (f.get || f.set) ? Object.defineProperty(s, C, f) : s[C] = l[C];
}
return s.default = l, a && a.set(l, s), s;
}
function i(l) {
if ((() => {
if (l.purge || !l.content || !Array.isArray(l.content) && !(typeof l.content == "object" && l.content !== null))
return !1;
if (Array.isArray(l.content))
return l.content.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string"));
if (typeof l.content == "object" && l.content !== null) {
if (Object.keys(l.content).some((s) => ![
"files",
"relative",
"extract",
"transform"
].includes(s)))
return !1;
if (Array.isArray(l.content.files)) {
if (!l.content.files.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string")))
return !1;
if (typeof l.content.extract == "object") {
for (let s of Object.values(l.content.extract))
if (typeof s != "function")
return !1;
} else if (!(l.content.extract === void 0 || typeof l.content.extract == "function"))
return !1;
if (typeof l.content.transform == "object") {
for (let s of Object.values(l.content.transform))
if (typeof s != "function")
return !1;
} else if (!(l.content.transform === void 0 || typeof l.content.transform == "function"))
return !1;
if (typeof l.content.relative != "boolean" && typeof l.content.relative < "u")
return !1;
}
return !0;
}
return !1;
})() || o.default.warn("purge-deprecation", [
"The `purge`/`content` options have changed in Tailwind CSS v3.0.",
"Update your configuration file to eliminate this warning.",
"https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
]), l.safelist = (() => {
var s;
let { content: c, purge: C, safelist: f } = l;
return Array.isArray(f) ? f : Array.isArray(c == null ? void 0 : c.safelist) ? c.safelist : Array.isArray(C == null ? void 0 : C.safelist) ? C.safelist : Array.isArray(C == null || (s = C.options) === null || s === void 0 ? void 0 : s.safelist) ? C.options.safelist : [];
})(), l.blocklist = (() => {
let { blocklist: s } = l;
if (Array.isArray(s)) {
if (s.every((c) => typeof c == "string"))
return s;
o.default.warn("blocklist-invalid", [
"The `blocklist` option must be an array of strings.",
"https://tailwindcss.com/docs/content-configuration#discarding-classes"
]);
}
return [];
})(), typeof l.prefix == "function")
o.default.warn("prefix-function", [
"As of Tailwind CSS v3.0, `prefix` cannot be a function.",
"Update `prefix` in your configuration to be a string to eliminate this warning.",
"https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
]), l.prefix = "";
else {
var a;
l.prefix = (a = l.prefix) !== null && a !== void 0 ? a : "";
}
l.content = {
relative: (() => {
let { content: s } = l;
return s != null && s.relative ? s.relative : (0, t.flagEnabled)(l, "relativeContentPathsByDefault");
})(),
files: (() => {
let { content: s, purge: c } = l;
return Array.isArray(c) ? c : Array.isArray(c == null ? void 0 : c.content) ? c.content : Array.isArray(s) ? s : Array.isArray(s == null ? void 0 : s.content) ? s.content : Array.isArray(s == null ? void 0 : s.files) ? s.files : [];
})(),
extract: (() => {
let s = (() => {
var f, p, g, h, m, x, H, y, j, I;
return !((f = l.purge) === null || f === void 0) && f.extract ? l.purge.extract : !((p = l.content) === null || p === void 0) && p.extract ? l.content.extract : !((g = l.purge) === null || g === void 0 || (h = g.extract) === null || h === void 0) && h.DEFAULT ? l.purge.extract.DEFAULT : !((m = l.content) === null || m === void 0 || (x = m.extract) === null || x === void 0) && x.DEFAULT ? l.content.extract.DEFAULT : !((H = l.purge) === null || H === void 0 || (y = H.options) === null || y === void 0) && y.extractors ? l.purge.options.extractors : !((j = l.content) === null || j === void 0 || (I = j.options) === null || I === void 0) && I.extractors ? l.content.options.extractors : {};
})(), c = {}, C = (() => {
var f, p, g, h;
if (!((f = l.purge) === null || f === void 0 || (p = f.options) === null || p === void 0) && p.defaultExtractor)
return l.purge.options.defaultExtractor;
if (!((g = l.content) === null || g === void 0 || (h = g.options) === null || h === void 0) && h.defaultExtractor)
return l.content.options.defaultExtractor;
})();
if (C !== void 0 && (c.DEFAULT = C), typeof s == "function")
c.DEFAULT = s;
else if (Array.isArray(s))
for (let { extensions: f, extractor: p } of s ?? [])
for (let g of f)
c[g] = p;
else typeof s == "object" && s !== null && Object.assign(c, s);
return c;
})(),
transform: (() => {
let s = (() => {
var C, f, p, g, h, m;
return !((C = l.purge) === null || C === void 0) && C.transform ? l.purge.transform : !((f = l.content) === null || f === void 0) && f.transform ? l.content.transform : !((p = l.purge) === null || p === void 0 || (g = p.transform) === null || g === void 0) && g.DEFAULT ? l.purge.transform.DEFAULT : !((h = l.content) === null || h === void 0 || (m = h.transform) === null || m === void 0) && m.DEFAULT ? l.content.transform.DEFAULT : {};
})(), c = {};
return typeof s == "function" && (c.DEFAULT = s), typeof s == "object" && s !== null && Object.assign(c, s), c;
})()
};
for (let s of l.content.files)
if (typeof s == "string" && /{([^,]*?)}/g.test(s)) {
o.default.warn("invalid-glob-braces", [
`The glob pattern ${(0, o.dim)(s)} in your Tailwind CSS configuration is invalid.`,
`Update it to ${(0, o.dim)(s.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
]);
break;
}
return l;
}
})(T2);
var W2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o) {
if (Object.prototype.toString.call(o) !== "[object Object]")
return !1;
const r = Object.getPrototypeOf(o);
return r === null || Object.getPrototypeOf(r) === null;
}
})(W2);
var $1 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "cloneDeep", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o) {
return Array.isArray(o) ? o.map((r) => t(r)) : typeof o == "object" && o !== null ? Object.fromEntries(Object.entries(o).map(([r, n]) => [
r,
t(n)
])) : o;
}
})($1);
var D2 = {}, B2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
function t(o) {
return o.replace(/\\,/g, "\\2c ");
}
})(B2);
var N1 = {}, q1 = {}, R2 = {};
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
}), Object.defineProperty(e, "default", {
enumerable: !0,
get: function() {
return t;
}
});
const t = {
aliceblue: [
240,
248,
255
],
antiquewhite: [
250,
235,
215
],
aqua: [
0,
255,
255
],
aquamarine: [
127,
255,
212
],
azure: [
240,
255,
255
],
beige: [
245,
245,
220
],
bisque: [
255,
228,
196
],
black: [
0,
0,
0
],
blanchedalmond: [
255,
235,
205
],
blue: [
0,
0,
255
],
blueviolet: [
138,
43,
226
],
brown: [
165,
42,
42
],
burlywood: [
222,
184,
135
],
cadetblue: [
95,
158,
160
],
chartreuse: [
127,
255,
0
],
chocolate: [
210,
105,
30
],
coral: [
255,
127,
80
],
cornflowerblue: [
100,
149,
237
],
cornsilk: [
255,
248,
220
],
crimson: [
220,
20,
60
],
cyan: [
0,
255,
255
],
darkblue: [
0,
0,
139
],
darkcyan: [
0,
139,
139
],
darkgoldenrod: [
184,
134,
11
],
darkgray: [
169,
169,
169
],
darkgreen: [
0,
100,
0
],
darkgrey: [
169,
169,
169
],
darkkhaki: [
189,
183,
107
],
darkmagenta: [
139,
0,
139
],
darkolivegreen: [
85,
107,
47
],
darkorange: [
255,
140,
0
],
darkorchid: [
153,
50,
204
],
darkred: [
139,
0,
0
],
darksalmon: [
233,
150,
122
],
darkseagreen: [
143,
188,
143
],
darkslateblue: [
72,
61,
139
],
darkslategray: [
47,
79,
79
],
darkslategrey: [
47,
79,
79
],
darkturquoise: [
0,
206,
209
],
darkviolet: [
148,
0,
211
],
deeppink: [
255,
20,
147
],
deepskyblue: [
0,
191,
255
],
dimgray: [
105,
105,
105
],
dimgrey: [
105,
105,
105
],
dodgerblue: [
30,
144,
255
],
firebrick: [
178,
34,
34
],
floralwhite: [
255,
250,
240
],
forestgreen: [
34,
139,
34
],
fuchsia: [
255,
0,
255
],
gainsboro: [
220,
220,
220
],
ghostwhite: [
248,
248,
255
],
gold: [
255,
215,
0
],
goldenrod: [
218,
165,
32
],
gray: [
128,
128,
128
],
green: [
0,
128,
0
],
greenyellow: [
173,
255,
47
],
grey: [
128,
128,
128
],
honeydew: [
240,
255,
240
],
hotpink: [
255,
105,
180
],
indianred: [
205,
92,
92
],
indigo: [
75,
0,
130
],
ivory: [
255,
255,
240
],
khaki: [
240,
230,
140
],
lavender: [
230,
230,
250
],
lavenderblush: [
255,
240,
245
],
lawngreen: [
124,
252,
0
],
lemonchiffon: [
255,
250,
205
],
lightblue: [
173,
216,
230
],
lightcoral: [
240,
128,
128
],
lightcyan: [
224,
255,
255
],
lightgoldenrodyellow: [
250,
250,
210
],
lightgray: [
211,
211,
211
],
lightgreen: [
144,
238,
144
],
lightgrey: [
211,
211,
211
],
lightpink: [
255,
182,
193
],
lightsalmon: [
255,
160,
122
],
lightseagreen: [
32,
178,
170
],
lightskyblue: [
135,
206,
250
],
lightslategray: [
119,
136,
153
],
lightslategrey: [
119,
136,
153
],
lightsteelblue: [
176,
196,
222
],
lightyellow: [
255,
255,
224
],
lime: [
0,
255,
0
],
limegreen: [
50,
205,
50
],
linen: [
250,
240,
230
],
magenta: [
255,
0,
255
],
maroon: [
128,
0,
0
],
mediumaquamarine: [
102,
205,
170
],
mediumblue: [
0,
0,
205
],
mediumorchid: [
186,
85,
211
],
mediumpurple: [
147,
112,
219
],
mediumseagreen: [
60,
179,
113
],
mediumslateblue: [
123,
104,
238
],
mediumspringgreen: [
0,
250,
154
],
mediumturquoise: [
72,
209,
204
],
mediumvioletred: [
199,
21,
133
],
midnightblue: [
25,
25,
112
],
mintcream: [
245,
255,
250
],
mistyrose: [
255,
228,
225
],
moccasin: [
255,
228,
181
],
navajowhite: [
255,
222,
173
],
navy: [
0,
0,
128
],
oldlace: [
253,
245,
230
],
olive: [
128,
128,
0
],
olivedrab: [
107,
142,
35
],
orange: [
255,
165,
0
],
orangered: [
255,
69,
0
],
orchid: [
218,
112,
214
],
palegoldenrod: [
238,
232,
170
],
palegreen: [
152,
251,
152
],
paleturquoise: [
175,
238,
238
],
palevioletred: [
219,
112,
147
],
papayawhip: [
255,
239,
213
],
peachpuff: [
255,
218,
185
],
peru: [
205,
133,
63
],
pink: [
255,
192,
203
],
plum: [
221,
160,
221
],
powderblue: [
176,
224,
230
],
purple: [
128,
0,
128
],
rebeccapurple: [
102,
51,
153
],
red: [
255,
0,
0
],
rosybrown: [
188,
143,
143
],
royalblue: [
65,
105,
225
],
saddlebrown: [
139,
69,
19
],
salmon: [
250,
128,
114
],
sandybrown: [
244,
164,
96
],
seagreen: [
46,
139,
87
],
seashell: [
255,
245,
238
],
sienna: [
160,
82,
45
],
silver: [
192,
192,
192
],
skyblue: [
135,
206,
235
],
slateblue: [
106,
90,
205
],
slategray: [
112,
128,
144
],
slategrey: [
112,
128,
144
],
snow: [
255,
250,
250
],
springgreen: [
0,
255,
127
],
steelblue: [
70,
130,
180
],
tan: [
210,
180,
140
],
teal: [
0,
128,
128
],
thistle: [
216,
191,
216
],
tomato: [
255,
99,
71
],
turquoise: [
64,
224,
208
],
violet: [
238,
130,
238
],
wheat: [
245,
222,
179
],
white: [
255,
255,
255
],
whitesmoke: [
245,
245,
245
],
yellow: [
255,
255,
0
],
yellowgreen: [
154,
205,
50
]
};
})(R2);
(function(e) {
Object.defineProperty(e, "__esModule", {
value: !0
});
function t(g, h) {
for (var m in h) Object.defineProperty(g, m, {
enumerable: !0,
get: h[m]
});
}
t(e, {
parseColor: function() {
return f;
},
formatColor: function() {
return p;
}
});
const o = /* @__PURE__ */ r(R2);
function r(g) {
return g && g.__esModule ? g : {
default: g
};
}
let n = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, i = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, l = /(?:\d+|\d*\.\d+)%?/, d = /(?:\s*,\s*|\s+)/, a = /\s*[,/]\s*/, s = /var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/, c = new RegExp(`^(rgba?)\\(\\s*(${l.source}|${s.source})(?:${d.source}(${l.source}|${s.source}))?(?:${d.source}(${l.source}|${s.source}))?(?:${a.source}(${l.source}|${s.source}))?\\s*\\)$`), C = new RegExp(`^(hsla?)\\(\\s*((?:${l.source})(?:deg|rad|grad|turn)?|${s.source})(?:${d.source}(${l.source}|${s.source}))?(?:${d.source}(${l.source}|${s.source}))?(?:${a.source}(${l.source}|${s.source}))?\\s*\\)$`);
function f(g, { loose: h = !1 } = {}) {
var m, x;
if (typeof g != "string")
return null;
if (g = g.trim(), g === "transparent")
return {
mode: "rgb",
color: [
"0",
"0",
"0"
],
alpha: "0"
};
if (g in o.default)
return {
mode: "rgb",
color: o.default[g].map((F) => F.toString())
};
let H = g.replace(i, (F, z, E, k, w) => [
"#",
z,
z,
E,
E,
k,
k,
w ? w + w : ""
].join("")).match(n);
if (H !== null)
return {
mode: "rgb",
color: [
parseInt(H[1], 16),
parseInt(H[2], 16),
parseInt(H[3], 16)
].map((F) => F.toString()),
alpha: H[4] ? (parseInt(H[4], 16) / 255).toString() : void 0
};
var y;
let j = (y = g.match(c)) !== null && y !== void 0 ? y : g.match(C);
if (j === null)
return null;
let I = [
j[2],
j[3],
j[4]
].filter(Boolean).map((F) => F.toString());
return I.lengt