import { y as e } from "../../../tinyrainbow/dist/index.js";
//#region ../../node_modules/@vitest/pretty-format/dist/index.js
function t(e, t) {
	return t.forEach(function(t) {
		t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(n) {
			if (n !== "default" && !(n in e)) {
				var r = Object.getOwnPropertyDescriptor(t, n);
				Object.defineProperty(e, n, r.get ? r : {
					enumerable: !0,
					get: function() {
						return t[n];
					}
				});
			}
		});
	}), Object.freeze(e);
}
function n(e, t) {
	let n = Object.keys(e), r = t === null ? n : n.sort(t);
	if (Object.getOwnPropertySymbols) for (let t of Object.getOwnPropertySymbols(e)) Object.getOwnPropertyDescriptor(e, t).enumerable && r.push(t);
	return r;
}
function r(e, t, n, r, i, a, o = ": ") {
	let s = "", c = 0, l = e.next();
	if (!l.done) {
		s += t.spacingOuter;
		let u = n + t.indent;
		for (; !l.done;) {
			if (s += u, c++ === t.maxWidth) {
				s += "…";
				break;
			}
			let n = a(l.value[0], t, u, r, i), d = a(l.value[1], t, u, r, i);
			s += n + o + d, l = e.next(), l.done ? t.min || (s += ",") : s += `,${t.spacingInner}`;
		}
		s += t.spacingOuter + n;
	}
	return s;
}
function i(e, t, n, r, i, a) {
	let o = "", s = 0, c = e.next();
	if (!c.done) {
		o += t.spacingOuter;
		let l = n + t.indent;
		for (; !c.done;) {
			if (o += l, s++ === t.maxWidth) {
				o += "…";
				break;
			}
			o += a(c.value, t, l, r, i), c = e.next(), c.done ? t.min || (o += ",") : o += `,${t.spacingInner}`;
		}
		o += t.spacingOuter + n;
	}
	return o;
}
function a(e, t, n, r, i, a) {
	let o = "";
	e = e instanceof ArrayBuffer ? new DataView(e) : e;
	let s = (e) => e instanceof DataView, c = s(e) ? e.byteLength : e.length;
	if (c > 0) {
		o += t.spacingOuter;
		let l = n + t.indent;
		for (let n = 0; n < c; n++) {
			if (o += l, n === t.maxWidth) {
				o += "…";
				break;
			}
			(s(e) || n in e) && (o += a(s(e) ? e.getInt8(n) : e[n], t, l, r, i)), n < c - 1 ? o += `,${t.spacingInner}` : t.min || (o += ",");
		}
		o += t.spacingOuter + n;
	}
	return o;
}
function o(e, t, r, i, a, o) {
	let s = "", c = n(e, t.compareKeys);
	if (c.length > 0) {
		s += t.spacingOuter;
		let n = r + t.indent;
		for (let r = 0; r < c.length; r++) {
			let l = c[r], u = o(l, t, n, i, a), d = o(e[l], t, n, i, a);
			s += `${n + u}: ${d}`, r < c.length - 1 ? s += `,${t.spacingInner}` : t.min || (s += ",");
		}
		s += t.spacingOuter + r;
	}
	return s;
}
var s = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, c = " ", l = {
	serialize: (e, t, n, r, i, s) => {
		let l = e.toString();
		if (l === "ArrayContaining" || l === "ArrayNotContaining") return ++r > t.maxDepth ? `[${l}]` : `${l + c}[${a(e.sample, t, n, r, i, s)}]`;
		if (l === "ObjectContaining" || l === "ObjectNotContaining") return ++r > t.maxDepth ? `[${l}]` : `${l + c}{${o(e.sample, t, n, r, i, s)}}`;
		if (l === "StringMatching" || l === "StringNotMatching" || l === "StringContaining" || l === "StringNotContaining") return l + c + s(e.sample, t, n, r, i);
		if (typeof e.toAsymmetricMatcher != "function") throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);
		return e.toAsymmetricMatcher();
	},
	test: (e) => e && e.$$typeof === s
}, u = " ", d = new Set(["DOMStringMap", "NamedNodeMap"]), f = /^(?:HTML\w*Collection|NodeList)$/;
function p(e) {
	return d.has(e) || f.test(e);
}
var m = (e) => e && e.constructor && !!e.constructor.name && p(e.constructor.name);
function h(e) {
	return e.constructor.name === "NamedNodeMap";
}
var ee = {
	serialize: (e, t, n, r, i, s) => {
		let c = e.constructor.name;
		return ++r > t.maxDepth ? `[${c}]` : (t.min ? "" : c + u) + (d.has(c) ? `{${o(h(e) ? [...e].reduce((e, t) => (e[t.name] = t.value, e), {}) : { ...e }, t, n, r, i, s)}}` : `[${a([...e], t, n, r, i, s)}]`);
	},
	test: m
};
function g(e) {
	return e.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
}
function _(e, t, n, r, i, a, o) {
	let s = r + n.indent, c = n.colors;
	return e.map((e) => {
		let l = t[e];
		if (typeof l == "string" && l[0] === "_" && l.startsWith("__vitest_") && l.match(/__vitest_\d+__/)) return "";
		let u = o(l, n, s, i, a);
		return typeof l != "string" && (u.includes("\n") && (u = n.spacingOuter + s + u + n.spacingOuter + r), u = `{${u}}`), `${n.spacingInner + r + c.prop.open + e + c.prop.close}=${c.value.open}${u}${c.value.close}`;
	}).join("");
}
function v(e, t, n, r, i, a) {
	return e.map((e) => t.spacingOuter + n + (typeof e == "string" ? ne(e, t) : a(e, t, n, r, i))).join("");
}
function te(e, t, n, r, i, a) {
	return t.printShadowRoot === !1 ? "" : [`${t.spacingOuter + n}#shadow-root`, v(e, t, n + t.indent, r, i, a)].join("");
}
function ne(e, t) {
	let n = t.colors.content;
	return n.open + g(e) + n.close;
}
function re(e, t) {
	let n = t.colors.comment;
	return `${n.open}<!--${g(e)}-->${n.close}`;
}
function y(e, t, n, r, i) {
	let a = r.colors.tag;
	return `${a.open}<${e}${t && a.close + t + r.spacingOuter + i + a.open}${n ? `>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}` : `${t && !r.min ? "" : " "}/`}>${a.close}`;
}
function b(e, t) {
	let n = t.colors.tag;
	return `${n.open}<${e}${n.close} …${n.open} />${n.close}`;
}
var ie = 1, x = 3, S = 8, C = 11, ae = /^(?:(?:HTML|SVG)\w*)?Element$/;
function oe(e) {
	try {
		return typeof e.hasAttribute == "function" && e.hasAttribute("is");
	} catch {
		return !1;
	}
}
function se(e) {
	let t = e.constructor.name, { nodeType: n, tagName: r } = e, i = typeof r == "string" && r.includes("-") || oe(e);
	return n === ie && (ae.test(t) || i) || n === x && t === "Text" || n === S && t === "Comment" || n === C && t === "DocumentFragment";
}
var ce = (e) => e?.constructor?.name && se(e);
function le(e) {
	return e.nodeType === x;
}
function ue(e) {
	return e.nodeType === S;
}
function w(e) {
	return e.nodeType === C;
}
function T(e, t) {
	let n = e.filter((e) => e.nodeType === x ? (e.data || "").trim().length > 0 : !0);
	return t && (n = n.filter(t)), n;
}
function E(e, t, n, r, i, a, o) {
	if (le(e)) return ne(e.data, t);
	if (ue(e)) return re(e.data, t);
	let s = w(e) ? "DocumentFragment" : e.tagName.toLowerCase();
	if (++r > t.maxDepth) return b(s, t);
	let c = Array.prototype.slice.call(e.childNodes || e.children), l = w(e) || !e.shadowRoot ? [] : Array.prototype.slice.call(e.shadowRoot.children), u = o ? T(c, o) : c, d = o ? T(l, o) : l;
	return y(s, _(w(e) ? [] : Array.from(e.attributes, (e) => e.name).sort(), w(e) ? {} : [...e.attributes].reduce((e, t) => (e[t.name] = t.value, e), {}), t, n + t.indent, r, i, a), (d.length > 0 ? te(d, t, n + t.indent, r, i, a) : "") + v(u, t, n + t.indent, r, i, a), t, n);
}
var de = (e, t, n, r, i, a) => E(e, t, n, r, i, a);
function fe(e) {
	return {
		test: ce,
		serialize: (t, n, r, i, a, o) => E(t, n, r, i, a, o, e)
	};
}
var pe = {
	serialize: de,
	test: ce
}, me = "@@__IMMUTABLE_ITERABLE__@@", he = "@@__IMMUTABLE_LIST__@@", ge = "@@__IMMUTABLE_KEYED__@@", _e = "@@__IMMUTABLE_MAP__@@", D = "@@__IMMUTABLE_ORDERED__@@", ve = "@@__IMMUTABLE_RECORD__@@", ye = "@@__IMMUTABLE_SEQ__@@", be = "@@__IMMUTABLE_SET__@@", xe = "@@__IMMUTABLE_STACK__@@", O = (e) => `Immutable.${e}`, k = (e) => `[${e}]`, A = " ", j = "…";
function Se(e, t, n, i, a, o, s) {
	return ++i > t.maxDepth ? k(O(s)) : `${O(s) + A}{${r(e.entries(), t, n, i, a, o)}}`;
}
function Ce(e) {
	let t = 0;
	return { next() {
		if (t < e._keys.length) {
			let n = e._keys[t++];
			return {
				done: !1,
				value: [n, e.get(n)]
			};
		}
		return {
			done: !0,
			value: void 0
		};
	} };
}
function we(e, t, n, i, a, o) {
	let s = O(e._name || "Record");
	return ++i > t.maxDepth ? k(s) : `${s + A}{${r(Ce(e), t, n, i, a, o)}}`;
}
function Te(e, t, n, a, o, s) {
	let c = O("Seq");
	return ++a > t.maxDepth ? k(c) : e[ge] ? `${c + A}{${e._iter || e._object ? r(e.entries(), t, n, a, o, s) : j}}` : `${c + A}[${e._iter || e._array || e._collection || e._iterable ? i(e.values(), t, n, a, o, s) : j}]`;
}
function M(e, t, n, r, a, o, s) {
	return ++r > t.maxDepth ? k(O(s)) : `${O(s) + A}[${i(e.values(), t, n, r, a, o)}]`;
}
var Ee = {
	serialize: (e, t, n, r, i, a) => e[_e] ? Se(e, t, n, r, i, a, e[D] ? "OrderedMap" : "Map") : e[he] ? M(e, t, n, r, i, a, "List") : e[be] ? M(e, t, n, r, i, a, e[D] ? "OrderedSet" : "Set") : e[xe] ? M(e, t, n, r, i, a, "Stack") : e[ye] ? Te(e, t, n, r, i, a) : we(e, t, n, r, i, a),
	test: (e) => e && (e[me] === !0 || e[ve] === !0)
};
function N(e) {
	return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var P = { exports: {} }, F = {}, I;
function De() {
	if (I) return F;
	I = 1;
	var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), o = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
	function m(p) {
		if (typeof p == "object" && p) {
			var m = p.$$typeof;
			switch (m) {
				case e: switch (p = p.type, p) {
					case n:
					case i:
					case r:
					case c:
					case l:
					case f: return p;
					default: switch (p &&= p.$$typeof, p) {
						case o:
						case s:
						case d:
						case u: return p;
						case a: return p;
						default: return m;
					}
				}
				case t: return m;
			}
		}
	}
	return F.ContextConsumer = a, F.ContextProvider = o, F.Element = e, F.ForwardRef = s, F.Fragment = n, F.Lazy = d, F.Memo = u, F.Portal = t, F.Profiler = i, F.StrictMode = r, F.Suspense = c, F.SuspenseList = l, F.isContextConsumer = function(e) {
		return m(e) === a;
	}, F.isContextProvider = function(e) {
		return m(e) === o;
	}, F.isElement = function(t) {
		return typeof t == "object" && !!t && t.$$typeof === e;
	}, F.isForwardRef = function(e) {
		return m(e) === s;
	}, F.isFragment = function(e) {
		return m(e) === n;
	}, F.isLazy = function(e) {
		return m(e) === d;
	}, F.isMemo = function(e) {
		return m(e) === u;
	}, F.isPortal = function(e) {
		return m(e) === t;
	}, F.isProfiler = function(e) {
		return m(e) === i;
	}, F.isStrictMode = function(e) {
		return m(e) === r;
	}, F.isSuspense = function(e) {
		return m(e) === c;
	}, F.isSuspenseList = function(e) {
		return m(e) === l;
	}, F.isValidElementType = function(e) {
		return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || e === r || e === c || e === l || typeof e == "object" && e && (e.$$typeof === d || e.$$typeof === u || e.$$typeof === o || e.$$typeof === a || e.$$typeof === s || e.$$typeof === p || e.getModuleId !== void 0));
	}, F.typeOf = m, F;
}
var L;
function Oe() {
	return L ? P.exports : (L = 1, P.exports = De(), P.exports);
}
var R = Oe(), ke = /* @__PURE__ */ t({
	__proto__: null,
	default: /* @__PURE__ */ N(R)
}, [R]), z = { exports: {} }, B = {}, V;
function Ae() {
	if (V) return B;
	V = 1;
	var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.for("react.module.reference");
	function h(p) {
		if (typeof p == "object" && p) {
			var m = p.$$typeof;
			switch (m) {
				case e: switch (p = p.type, p) {
					case n:
					case i:
					case r:
					case l:
					case u: return p;
					default: switch (p &&= p.$$typeof, p) {
						case s:
						case o:
						case c:
						case f:
						case d:
						case a: return p;
						default: return m;
					}
				}
				case t: return m;
			}
		}
	}
	return B.ContextConsumer = o, B.ContextProvider = a, B.Element = e, B.ForwardRef = c, B.Fragment = n, B.Lazy = f, B.Memo = d, B.Portal = t, B.Profiler = i, B.StrictMode = r, B.Suspense = l, B.SuspenseList = u, B.isAsyncMode = function() {
		return !1;
	}, B.isConcurrentMode = function() {
		return !1;
	}, B.isContextConsumer = function(e) {
		return h(e) === o;
	}, B.isContextProvider = function(e) {
		return h(e) === a;
	}, B.isElement = function(t) {
		return typeof t == "object" && !!t && t.$$typeof === e;
	}, B.isForwardRef = function(e) {
		return h(e) === c;
	}, B.isFragment = function(e) {
		return h(e) === n;
	}, B.isLazy = function(e) {
		return h(e) === f;
	}, B.isMemo = function(e) {
		return h(e) === d;
	}, B.isPortal = function(e) {
		return h(e) === t;
	}, B.isProfiler = function(e) {
		return h(e) === i;
	}, B.isStrictMode = function(e) {
		return h(e) === r;
	}, B.isSuspense = function(e) {
		return h(e) === l;
	}, B.isSuspenseList = function(e) {
		return h(e) === u;
	}, B.isValidElementType = function(e) {
		return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || e === r || e === l || e === u || e === p || typeof e == "object" && e && (e.$$typeof === f || e.$$typeof === d || e.$$typeof === a || e.$$typeof === o || e.$$typeof === c || e.$$typeof === m || e.getModuleId !== void 0));
	}, B.typeOf = h, B;
}
var H;
function je() {
	return H ? z.exports : (H = 1, z.exports = Ae(), z.exports);
}
var U = je(), Me = /* @__PURE__ */ t({
	__proto__: null,
	default: /* @__PURE__ */ N(U)
}, [U]), W = Object.fromEntries([
	"isAsyncMode",
	"isConcurrentMode",
	"isContextConsumer",
	"isContextProvider",
	"isElement",
	"isForwardRef",
	"isFragment",
	"isLazy",
	"isMemo",
	"isPortal",
	"isProfiler",
	"isStrictMode",
	"isSuspense",
	"isSuspenseList",
	"isValidElementType"
].map((e) => [e, (t) => Me[e](t) || ke[e](t)]));
function G(e, t = []) {
	if (Array.isArray(e)) for (let n of e) G(n, t);
	else e != null && e !== !1 && e !== "" && t.push(e);
	return t;
}
function K(e) {
	let t = e.type;
	if (typeof t == "string") return t;
	if (typeof t == "function") return t.displayName || t.name || "Unknown";
	if (W.isFragment(e)) return "React.Fragment";
	if (W.isSuspense(e)) return "React.Suspense";
	if (typeof t == "object" && t) {
		if (W.isContextProvider(e)) return "Context.Provider";
		if (W.isContextConsumer(e)) return "Context.Consumer";
		if (W.isForwardRef(e)) {
			if (t.displayName) return t.displayName;
			let e = t.render.displayName || t.render.name || "";
			return e === "" ? "ForwardRef" : `ForwardRef(${e})`;
		}
		if (W.isMemo(e)) {
			let e = t.displayName || t.type.displayName || t.type.name || "";
			return e === "" ? "Memo" : `Memo(${e})`;
		}
	}
	return "UNDEFINED";
}
function Ne(e) {
	let { props: t } = e;
	return Object.keys(t).filter((e) => e !== "children" && t[e] !== void 0).sort();
}
var Pe = {
	serialize: (e, t, n, r, i, a) => ++r > t.maxDepth ? b(K(e), t) : y(K(e), _(Ne(e), e.props, t, n + t.indent, r, i, a), v(G(e.props.children), t, n + t.indent, r, i, a), t, n),
	test: (e) => e != null && W.isElement(e)
}, Fe = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
function Ie(e) {
	let { props: t } = e;
	return t ? Object.keys(t).filter((e) => t[e] !== void 0).sort() : [];
}
var Le = {
	serialize: (e, t, n, r, i, a) => ++r > t.maxDepth ? b(e.type, t) : y(e.type, e.props ? _(Ie(e), e.props, t, n + t.indent, r, i, a) : "", e.children ? v(e.children, t, n + t.indent, r, i, a) : "", t, n),
	test: (e) => e && e.$$typeof === Fe
}, q = Object.prototype.toString, Re = Date.prototype.toISOString, ze = Error.prototype.toString, J = RegExp.prototype.toString;
function Y(e) {
	return typeof e.constructor == "function" && e.constructor.name || "Object";
}
function Be(e) {
	return typeof window < "u" && e === window;
}
var Ve = /^Symbol\((.*)\)(.*)$/, He = /\n/g, Ue = class extends Error {
	constructor(e, t) {
		super(e), this.stack = t, this.name = this.constructor.name;
	}
};
function We(e) {
	return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
}
function Ge(e) {
	return Object.is(e, -0) ? "-0" : String(e);
}
function Ke(e) {
	return String(`${e}n`);
}
function qe(e, t) {
	return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
}
function Je(e) {
	return String(e).replace(Ve, "Symbol($1)");
}
function Ye(e) {
	return `[${ze.call(e)}]`;
}
function Xe(e, t, n, r) {
	if (e === !0 || e === !1) return `${e}`;
	if (e === void 0) return "undefined";
	if (e === null) return "null";
	let i = typeof e;
	if (i === "number") return Ge(e);
	if (i === "bigint") return Ke(e);
	if (i === "string") return r ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
	if (i === "function") return qe(e, t);
	if (i === "symbol") return Je(e);
	let a = q.call(e);
	return a === "[object WeakMap]" ? "WeakMap {}" : a === "[object WeakSet]" ? "WeakSet {}" : a === "[object Function]" || a === "[object GeneratorFunction]" ? qe(e, t) : a === "[object Symbol]" ? Je(e) : a === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : Re.call(e) : a === "[object Error]" ? Ye(e) : a === "[object RegExp]" ? n ? J.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : J.call(e) : e instanceof Error ? Ye(e) : null;
}
function Ze(e, t, n, s, c, l) {
	if (c.includes(e)) return "[Circular]";
	c = [...c], c.push(e);
	let u = ++s > t.maxDepth, d = t.min;
	if (t.callToJSON && !u && e.toJSON && typeof e.toJSON == "function" && !l) return Z(e.toJSON(), t, n, s, c, !0);
	let f = q.call(e);
	return f === "[object Arguments]" ? u ? "[Arguments]" : `${d ? "" : "Arguments "}[${a(e, t, n, s, c, Z)}]` : We(f) ? u ? `[${e.constructor.name}]` : `${d || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${a(e, t, n, s, c, Z)}]` : f === "[object Map]" ? u ? "[Map]" : `Map {${r(e.entries(), t, n, s, c, Z, " => ")}}` : f === "[object Set]" ? u ? "[Set]" : `Set {${i(e.values(), t, n, s, c, Z)}}` : u || Be(e) ? `[${Y(e)}]` : `${d || !t.printBasicPrototype && Y(e) === "Object" ? "" : `${Y(e)} `}{${o(e, t, n, s, c, Z)}}`;
}
var Qe = {
	test: (e) => e && e instanceof Error,
	serialize(e, t, n, i, a, o) {
		if (a.includes(e)) return "[Circular]";
		a = [...a, e];
		let s = ++i > t.maxDepth, { message: c, cause: l, ...u } = e, d = {
			message: c,
			...l === void 0 ? {} : { cause: l },
			...e instanceof AggregateError ? { errors: e.errors } : {},
			...u
		}, f = e.name === "Error" ? Y(e) : e.name;
		return s ? `[${f}]` : `${f} {${r(Object.entries(d).values(), t, n, i, a, o)}}`;
	}
};
function $e(e) {
	return e.serialize != null;
}
function et(e, t, n, r, i, a) {
	let o;
	try {
		o = $e(e) ? e.serialize(t, n, r, i, a, Z) : e.print(t, (e) => Z(e, n, r, i, a), (e) => {
			let t = r + n.indent;
			return t + e.replaceAll(He, `\n${t}`);
		}, {
			edgeSpacing: n.spacingOuter,
			min: n.min,
			spacing: n.spacingInner
		}, n.colors);
	} catch (e) {
		throw new Ue(e.message, e.stack);
	}
	if (typeof o != "string") throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);
	return o;
}
function X(e, t) {
	for (let n of e) try {
		if (n.test(t)) return n;
	} catch (e) {
		throw new Ue(e.message, e.stack);
	}
	return null;
}
function Z(e, t, n, r, i, a) {
	let o, s = X(t.plugins, e);
	if (s !== null) o = et(s, e, t, n, r, i);
	else {
		let s = Xe(e, t.printFunctionName, t.escapeRegex, t.escapeString);
		o = s === null ? Ze(e, t, n, r, i, a) : s;
	}
	return t._outputLengthPerDepth[r] ??= 0, t._outputLengthPerDepth[r] += o.length, t._outputLengthPerDepth[r] > t.maxOutputLength && (t.maxDepth = 0), o;
}
var Q = {
	comment: "gray",
	content: "reset",
	prop: "yellow",
	tag: "cyan",
	value: "green"
}, tt = Object.keys(Q), $ = {
	callToJSON: !0,
	compareKeys: void 0,
	escapeRegex: !1,
	escapeString: !0,
	highlight: !1,
	indent: 2,
	maxDepth: Infinity,
	maxOutputLength: 1e6,
	maxWidth: Infinity,
	min: !1,
	plugins: [],
	printBasicPrototype: !0,
	printFunctionName: !0,
	printShadowRoot: !0,
	theme: Q
};
function nt(e) {
	for (let t of Object.keys(e)) if (!Object.hasOwn($, t)) throw Error(`pretty-format: Unknown option "${t}".`);
	if (e.min && e.indent !== void 0 && e.indent !== 0) throw Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
}
function rt() {
	return tt.reduce((t, n) => {
		let r = Q[n], i = r && e[r];
		if (i && typeof i.close == "string" && typeof i.open == "string") t[n] = i;
		else throw Error(`pretty-format: Option "theme" has a key "${n}" whose value "${r}" is undefined in ansi-styles.`);
		return t;
	}, Object.create(null));
}
function it() {
	return tt.reduce((e, t) => (e[t] = {
		close: "",
		open: ""
	}, e), Object.create(null));
}
function at(e) {
	return e?.printFunctionName ?? $.printFunctionName;
}
function ot(e) {
	return e?.escapeRegex ?? $.escapeRegex;
}
function st(e) {
	return e?.escapeString ?? $.escapeString;
}
function ct(e) {
	return {
		callToJSON: e?.callToJSON ?? $.callToJSON,
		colors: e?.highlight ? rt() : it(),
		compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : $.compareKeys,
		escapeRegex: ot(e),
		escapeString: st(e),
		indent: e?.min ? "" : lt(e?.indent ?? $.indent),
		maxDepth: e?.maxDepth ?? $.maxDepth,
		maxWidth: e?.maxWidth ?? $.maxWidth,
		min: e?.min ?? $.min,
		plugins: e?.plugins ?? $.plugins,
		printBasicPrototype: e?.printBasicPrototype ?? !0,
		printFunctionName: at(e),
		printShadowRoot: e?.printShadowRoot ?? !0,
		spacingInner: e?.min ? " " : "\n",
		spacingOuter: e?.min ? "" : "\n",
		maxOutputLength: e?.maxOutputLength ?? $.maxOutputLength,
		_outputLengthPerDepth: []
	};
}
function lt(e) {
	return Array.from({ length: e + 1 }).join(" ");
}
function ut(e, t) {
	if (t && (nt(t), t.plugins)) {
		let n = X(t.plugins, e);
		if (n !== null) return et(n, e, ct(t), "", 0, []);
	}
	let n = Xe(e, at(t), ot(t), st(t));
	return n === null ? Ze(e, ct(t), "", 0, []) : n;
}
var dt = {
	AsymmetricMatcher: l,
	DOMCollection: ee,
	DOMElement: pe,
	Immutable: Ee,
	ReactElement: Pe,
	ReactTestComponent: Le,
	Error: Qe
};
//#endregion
export { fe as createDOMElementFilter, ut as format, dt as plugins };

//# sourceMappingURL=index.js.map