UNPKG

ccremote

Version:

Claude Code Remote: approve prompts from Discord, auto-continue sessions after quota resets, and schedule quota windows around your workday.

1,129 lines (1,126 loc) 578 kB
import { n as __toESM, t as __commonJS } from "./chunk-CVmoYqME.js"; import { isatty } from "tty"; //#region node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js var h$1 = Object.entries({ reset: [0, 0], bold: [ 1, 22, "\x1B[22m\x1B[1m" ], dim: [ 2, 22, "\x1B[22m\x1B[2m" ], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] }); function a$1(n) { return String(n); } a$1.open = ""; a$1.close = ""; function C$1(n = !1) { let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || []; return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome; } function p$1(n = !1) { let e = C$1(n), i = (r$1, t, c, o) => { let l = "", s = 0; do l += r$1.substring(s, o) + c, s = o + t.length, o = r$1.indexOf(t, s); while (~o); return l + r$1.substring(s); }, g = (r$1, t, c = r$1) => { let o = (l) => { let s = String(l), b = s.indexOf(t, r$1.length); return ~b ? r$1 + i(s, t, c, b) + t : r$1 + s + t; }; return o.open = r$1, o.close = t, o; }, u$1 = { isColorSupported: e }, d = (r$1) => `\x1B[${r$1}m`; for (let [r$1, t] of h$1) u$1[r$1] = e ? g(d(t[0]), d(t[1]), t[2]) : a$1; return u$1; } //#endregion //#region node_modules/tinyrainbow/dist/node.js var r = process.env.FORCE_TTY !== void 0 || isatty(1); var u = p$1(r); //#endregion //#region node_modules/@vitest/pretty-format/dist/index.js function _mergeNamespaces(n, m$1) { m$1.forEach(function(e) { e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) { if (k !== "default" && !(k in n)) { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function() { return e[k]; } }); } }); }); return Object.freeze(n); } function getKeysOfEnumerableProperties(object$1, compareKeys) { const rawKeys = Object.keys(object$1); const keys$1 = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys); if (Object.getOwnPropertySymbols) { for (const symbol of Object.getOwnPropertySymbols(object$1)) if (Object.getOwnPropertyDescriptor(object$1, symbol).enumerable) keys$1.push(symbol); } return keys$1; } /** * Return entries (for example, of a map) * with spacing, indentation, and comma * without surrounding punctuation (for example, braces) */ function printIteratorEntries(iterator, config$1, indentation, depth, refs, printer$1, separator = ": ") { let result = ""; let width = 0; let current = iterator.next(); if (!current.done) { result += config$1.spacingOuter; const indentationNext = indentation + config$1.indent; while (!current.done) { result += indentationNext; if (width++ === config$1.maxWidth) { result += "…"; break; } const name = printer$1(current.value[0], config$1, indentationNext, depth, refs); const value = printer$1(current.value[1], config$1, indentationNext, depth, refs); result += name + separator + value; current = iterator.next(); if (!current.done) result += `,${config$1.spacingInner}`; else if (!config$1.min) result += ","; } result += config$1.spacingOuter + indentation; } return result; } /** * Return values (for example, of a set) * with spacing, indentation, and comma * without surrounding punctuation (braces or brackets) */ function printIteratorValues(iterator, config$1, indentation, depth, refs, printer$1) { let result = ""; let width = 0; let current = iterator.next(); if (!current.done) { result += config$1.spacingOuter; const indentationNext = indentation + config$1.indent; while (!current.done) { result += indentationNext; if (width++ === config$1.maxWidth) { result += "…"; break; } result += printer$1(current.value, config$1, indentationNext, depth, refs); current = iterator.next(); if (!current.done) result += `,${config$1.spacingInner}`; else if (!config$1.min) result += ","; } result += config$1.spacingOuter + indentation; } return result; } /** * Return items (for example, of an array) * with spacing, indentation, and comma * without surrounding punctuation (for example, brackets) */ function printListItems(list, config$1, indentation, depth, refs, printer$1) { let result = ""; list = list instanceof ArrayBuffer ? new DataView(list) : list; const isDataView = (l) => l instanceof DataView; const length = isDataView(list) ? list.byteLength : list.length; if (length > 0) { result += config$1.spacingOuter; const indentationNext = indentation + config$1.indent; for (let i = 0; i < length; i++) { result += indentationNext; if (i === config$1.maxWidth) { result += "…"; break; } if (isDataView(list) || i in list) result += printer$1(isDataView(list) ? list.getInt8(i) : list[i], config$1, indentationNext, depth, refs); if (i < length - 1) result += `,${config$1.spacingInner}`; else if (!config$1.min) result += ","; } result += config$1.spacingOuter + indentation; } return result; } /** * Return properties of an object * with spacing, indentation, and comma * without surrounding punctuation (for example, braces) */ function printObjectProperties(val, config$1, indentation, depth, refs, printer$1) { let result = ""; const keys$1 = getKeysOfEnumerableProperties(val, config$1.compareKeys); if (keys$1.length > 0) { result += config$1.spacingOuter; const indentationNext = indentation + config$1.indent; for (let i = 0; i < keys$1.length; i++) { const key = keys$1[i]; const name = printer$1(key, config$1, indentationNext, depth, refs); const value = printer$1(val[key], config$1, indentationNext, depth, refs); result += `${indentationNext + name}: ${value}`; if (i < keys$1.length - 1) result += `,${config$1.spacingInner}`; else if (!config$1.min) result += ","; } result += config$1.spacingOuter + indentation; } return result; } const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621; const SPACE$2 = " "; const serialize$5 = (val, config$1, indentation, depth, refs, printer$1) => { const stringedValue = val.toString(); if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") { if (++depth > config$1.maxDepth) return `[${stringedValue}]`; return `${stringedValue + SPACE$2}[${printListItems(val.sample, config$1, indentation, depth, refs, printer$1)}]`; } if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") { if (++depth > config$1.maxDepth) return `[${stringedValue}]`; return `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config$1, indentation, depth, refs, printer$1)}}`; } if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") return stringedValue + SPACE$2 + printer$1(val.sample, config$1, indentation, depth, refs); if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") return stringedValue + SPACE$2 + printer$1(val.sample, config$1, indentation, depth, refs); if (typeof val.toAsymmetricMatcher !== "function") throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`); return val.toAsymmetricMatcher(); }; const test$5 = (val) => val && val.$$typeof === asymmetricMatcher; const plugin$5 = { serialize: serialize$5, test: test$5 }; const SPACE$1 = " "; const OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]); const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/; function testName(name) { return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name); } const test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name); function isNamedNodeMap(collection) { return collection.constructor.name === "NamedNodeMap"; } const serialize$4 = (collection, config$1, indentation, depth, refs, printer$1) => { const name = collection.constructor.name; if (++depth > config$1.maxDepth) return `[${name}]`; return (config$1.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => { props[attribute.name] = attribute.value; return props; }, {}) : { ...collection }, config$1, indentation, depth, refs, printer$1)}}` : `[${printListItems([...collection], config$1, indentation, depth, refs, printer$1)}]`); }; const plugin$4 = { serialize: serialize$4, test: test$4 }; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function escapeHTML(str) { return str.replaceAll("<", "&lt;").replaceAll(">", "&gt;"); } function printProps(keys$1, props, config$1, indentation, depth, refs, printer$1) { const indentationNext = indentation + config$1.indent; const colors = config$1.colors; return keys$1.map((key) => { const value = props[key]; let printed = printer$1(value, config$1, indentationNext, depth, refs); if (typeof value !== "string") { if (printed.includes("\n")) printed = config$1.spacingOuter + indentationNext + printed + config$1.spacingOuter + indentation; printed = `{${printed}}`; } return `${config$1.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`; }).join(""); } function printChildren(children, config$1, indentation, depth, refs, printer$1) { return children.map((child) => config$1.spacingOuter + indentation + (typeof child === "string" ? printText(child, config$1) : printer$1(child, config$1, indentation, depth, refs))).join(""); } function printText(text, config$1) { const contentColor = config$1.colors.content; return contentColor.open + escapeHTML(text) + contentColor.close; } function printComment(comment, config$1) { const commentColor = config$1.colors.comment; return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`; } function printElement(type$1, printedProps, printedChildren, config$1, indentation) { const tagColor = config$1.colors.tag; return `${tagColor.open}<${type$1}${printedProps && tagColor.close + printedProps + config$1.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config$1.spacingOuter}${indentation}${tagColor.open}</${type$1}` : `${printedProps && !config$1.min ? "" : " "}/`}>${tagColor.close}`; } function printElementAsLeaf(type$1, config$1) { const tagColor = config$1.colors.tag; return `${tagColor.open}<${type$1}${tagColor.close} …${tagColor.open} />${tagColor.close}`; } const ELEMENT_NODE = 1; const TEXT_NODE = 3; const COMMENT_NODE = 8; const FRAGMENT_NODE = 11; const ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/; function testHasAttribute(val) { try { return typeof val.hasAttribute === "function" && val.hasAttribute("is"); } catch { return false; } } function testNode(val) { const constructorName = val.constructor.name; const { nodeType, tagName } = val; const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val); return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment"; } const test$3 = (val) => { var _val$constructor; return (val === null || val === void 0 || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val); }; function nodeIsText(node) { return node.nodeType === TEXT_NODE; } function nodeIsComment(node) { return node.nodeType === COMMENT_NODE; } function nodeIsFragment(node) { return node.nodeType === FRAGMENT_NODE; } const serialize$3 = (node, config$1, indentation, depth, refs, printer$1) => { if (nodeIsText(node)) return printText(node.data, config$1); if (nodeIsComment(node)) return printComment(node.data, config$1); const type$1 = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase(); if (++depth > config$1.maxDepth) return printElementAsLeaf(type$1, config$1); return printElement(type$1, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : [...node.attributes].reduce((props, attribute) => { props[attribute.name] = attribute.value; return props; }, {}), config$1, indentation + config$1.indent, depth, refs, printer$1), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config$1, indentation + config$1.indent, depth, refs, printer$1), config$1, indentation); }; const plugin$3 = { serialize: serialize$3, test: test$3 }; const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@"; const IS_LIST_SENTINEL$1 = "@@__IMMUTABLE_LIST__@@"; const IS_KEYED_SENTINEL$1 = "@@__IMMUTABLE_KEYED__@@"; const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@"; const IS_ORDERED_SENTINEL$1 = "@@__IMMUTABLE_ORDERED__@@"; const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@"; const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@"; const IS_SET_SENTINEL$1 = "@@__IMMUTABLE_SET__@@"; const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@"; const getImmutableName = (name) => `Immutable.${name}`; const printAsLeaf = (name) => `[${name}]`; const SPACE = " "; const LAZY = "…"; function printImmutableEntries(val, config$1, indentation, depth, refs, printer$1, type$1) { return ++depth > config$1.maxDepth ? printAsLeaf(getImmutableName(type$1)) : `${getImmutableName(type$1) + SPACE}{${printIteratorEntries(val.entries(), config$1, indentation, depth, refs, printer$1)}}`; } function getRecordEntries(val) { let i = 0; return { next() { if (i < val._keys.length) { const key = val._keys[i++]; return { done: false, value: [key, val.get(key)] }; } return { done: true, value: void 0 }; } }; } function printImmutableRecord(val, config$1, indentation, depth, refs, printer$1) { const name = getImmutableName(val._name || "Record"); return ++depth > config$1.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config$1, indentation, depth, refs, printer$1)}}`; } function printImmutableSeq(val, config$1, indentation, depth, refs, printer$1) { const name = getImmutableName("Seq"); if (++depth > config$1.maxDepth) return printAsLeaf(name); if (val[IS_KEYED_SENTINEL$1]) return `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config$1, indentation, depth, refs, printer$1) : LAZY}}`; return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config$1, indentation, depth, refs, printer$1) : LAZY}]`; } function printImmutableValues(val, config$1, indentation, depth, refs, printer$1, type$1) { return ++depth > config$1.maxDepth ? printAsLeaf(getImmutableName(type$1)) : `${getImmutableName(type$1) + SPACE}[${printIteratorValues(val.values(), config$1, indentation, depth, refs, printer$1)}]`; } const serialize$2 = (val, config$1, indentation, depth, refs, printer$1) => { if (val[IS_MAP_SENTINEL]) return printImmutableEntries(val, config$1, indentation, depth, refs, printer$1, val[IS_ORDERED_SENTINEL$1] ? "OrderedMap" : "Map"); if (val[IS_LIST_SENTINEL$1]) return printImmutableValues(val, config$1, indentation, depth, refs, printer$1, "List"); if (val[IS_SET_SENTINEL$1]) return printImmutableValues(val, config$1, indentation, depth, refs, printer$1, val[IS_ORDERED_SENTINEL$1] ? "OrderedSet" : "Set"); if (val[IS_STACK_SENTINEL]) return printImmutableValues(val, config$1, indentation, depth, refs, printer$1, "Stack"); if (val[IS_SEQ_SENTINEL]) return printImmutableSeq(val, config$1, indentation, depth, refs, printer$1); return printImmutableRecord(val, config$1, indentation, depth, refs, printer$1); }; const test$2$1 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true); const plugin$2 = { serialize: serialize$2, test: test$2$1 }; function getDefaultExportFromCjs$3(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } var reactIs$1 = { exports: {} }; var reactIs_production = {}; /** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_production; function requireReactIs_production() { if (hasRequiredReactIs_production) return reactIs_production; hasRequiredReactIs_production = 1; var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf$1(object$1) { if ("object" === typeof object$1 && null !== object$1) { var $$typeof = object$1.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: switch (object$1 = object$1.type, object$1) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: case REACT_VIEW_TRANSITION_TYPE: return object$1; default: switch (object$1 = object$1 && object$1.$$typeof, object$1) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: return object$1; case REACT_CONSUMER_TYPE: return object$1; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE; reactIs_production.ContextProvider = REACT_CONTEXT_TYPE; reactIs_production.Element = REACT_ELEMENT_TYPE; reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE; reactIs_production.Fragment = REACT_FRAGMENT_TYPE; reactIs_production.Lazy = REACT_LAZY_TYPE; reactIs_production.Memo = REACT_MEMO_TYPE; reactIs_production.Portal = REACT_PORTAL_TYPE; reactIs_production.Profiler = REACT_PROFILER_TYPE; reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE; reactIs_production.Suspense = REACT_SUSPENSE_TYPE; reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE; reactIs_production.isContextConsumer = function(object$1) { return typeOf$1(object$1) === REACT_CONSUMER_TYPE; }; reactIs_production.isContextProvider = function(object$1) { return typeOf$1(object$1) === REACT_CONTEXT_TYPE; }; reactIs_production.isElement = function(object$1) { return "object" === typeof object$1 && null !== object$1 && object$1.$$typeof === REACT_ELEMENT_TYPE; }; reactIs_production.isForwardRef = function(object$1) { return typeOf$1(object$1) === REACT_FORWARD_REF_TYPE; }; reactIs_production.isFragment = function(object$1) { return typeOf$1(object$1) === REACT_FRAGMENT_TYPE; }; reactIs_production.isLazy = function(object$1) { return typeOf$1(object$1) === REACT_LAZY_TYPE; }; reactIs_production.isMemo = function(object$1) { return typeOf$1(object$1) === REACT_MEMO_TYPE; }; reactIs_production.isPortal = function(object$1) { return typeOf$1(object$1) === REACT_PORTAL_TYPE; }; reactIs_production.isProfiler = function(object$1) { return typeOf$1(object$1) === REACT_PROFILER_TYPE; }; reactIs_production.isStrictMode = function(object$1) { return typeOf$1(object$1) === REACT_STRICT_MODE_TYPE; }; reactIs_production.isSuspense = function(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_TYPE; }; reactIs_production.isSuspenseList = function(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_LIST_TYPE; }; reactIs_production.isValidElementType = function(type$1) { return "string" === typeof type$1 || "function" === typeof type$1 || type$1 === REACT_FRAGMENT_TYPE || type$1 === REACT_PROFILER_TYPE || type$1 === REACT_STRICT_MODE_TYPE || type$1 === REACT_SUSPENSE_TYPE || type$1 === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type$1 && null !== type$1 && (type$1.$$typeof === REACT_LAZY_TYPE || type$1.$$typeof === REACT_MEMO_TYPE || type$1.$$typeof === REACT_CONTEXT_TYPE || type$1.$$typeof === REACT_CONSUMER_TYPE || type$1.$$typeof === REACT_FORWARD_REF_TYPE || type$1.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type$1.getModuleId) ? true : false; }; reactIs_production.typeOf = typeOf$1; return reactIs_production; } var reactIs_development$1 = {}; /** * @license React * react-is.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_development$1; function requireReactIs_development$1() { if (hasRequiredReactIs_development$1) return reactIs_development$1; hasRequiredReactIs_development$1 = 1; "production" !== process.env.NODE_ENV && (function() { function typeOf$1(object$1) { if ("object" === typeof object$1 && null !== object$1) { var $$typeof = object$1.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: switch (object$1 = object$1.type, object$1) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: case REACT_VIEW_TRANSITION_TYPE: return object$1; default: switch (object$1 = object$1 && object$1.$$typeof, object$1) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: return object$1; case REACT_CONSUMER_TYPE: return object$1; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE; reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE; reactIs_development$1.Element = REACT_ELEMENT_TYPE; reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE; reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE; reactIs_development$1.Lazy = REACT_LAZY_TYPE; reactIs_development$1.Memo = REACT_MEMO_TYPE; reactIs_development$1.Portal = REACT_PORTAL_TYPE; reactIs_development$1.Profiler = REACT_PROFILER_TYPE; reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE; reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE; reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE; reactIs_development$1.isContextConsumer = function(object$1) { return typeOf$1(object$1) === REACT_CONSUMER_TYPE; }; reactIs_development$1.isContextProvider = function(object$1) { return typeOf$1(object$1) === REACT_CONTEXT_TYPE; }; reactIs_development$1.isElement = function(object$1) { return "object" === typeof object$1 && null !== object$1 && object$1.$$typeof === REACT_ELEMENT_TYPE; }; reactIs_development$1.isForwardRef = function(object$1) { return typeOf$1(object$1) === REACT_FORWARD_REF_TYPE; }; reactIs_development$1.isFragment = function(object$1) { return typeOf$1(object$1) === REACT_FRAGMENT_TYPE; }; reactIs_development$1.isLazy = function(object$1) { return typeOf$1(object$1) === REACT_LAZY_TYPE; }; reactIs_development$1.isMemo = function(object$1) { return typeOf$1(object$1) === REACT_MEMO_TYPE; }; reactIs_development$1.isPortal = function(object$1) { return typeOf$1(object$1) === REACT_PORTAL_TYPE; }; reactIs_development$1.isProfiler = function(object$1) { return typeOf$1(object$1) === REACT_PROFILER_TYPE; }; reactIs_development$1.isStrictMode = function(object$1) { return typeOf$1(object$1) === REACT_STRICT_MODE_TYPE; }; reactIs_development$1.isSuspense = function(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_TYPE; }; reactIs_development$1.isSuspenseList = function(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_LIST_TYPE; }; reactIs_development$1.isValidElementType = function(type$1) { return "string" === typeof type$1 || "function" === typeof type$1 || type$1 === REACT_FRAGMENT_TYPE || type$1 === REACT_PROFILER_TYPE || type$1 === REACT_STRICT_MODE_TYPE || type$1 === REACT_SUSPENSE_TYPE || type$1 === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type$1 && null !== type$1 && (type$1.$$typeof === REACT_LAZY_TYPE || type$1.$$typeof === REACT_MEMO_TYPE || type$1.$$typeof === REACT_CONTEXT_TYPE || type$1.$$typeof === REACT_CONSUMER_TYPE || type$1.$$typeof === REACT_FORWARD_REF_TYPE || type$1.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type$1.getModuleId) ? true : false; }; reactIs_development$1.typeOf = typeOf$1; })(); return reactIs_development$1; } var hasRequiredReactIs$1; function requireReactIs$1() { if (hasRequiredReactIs$1) return reactIs$1.exports; hasRequiredReactIs$1 = 1; if (process.env.NODE_ENV === "production") reactIs$1.exports = requireReactIs_production(); else reactIs$1.exports = requireReactIs_development$1(); return reactIs$1.exports; } var reactIsExports$1 = requireReactIs$1(); var ReactIs19 = /* @__PURE__ */ _mergeNamespaces({ __proto__: null, default: /* @__PURE__ */ getDefaultExportFromCjs$3(reactIsExports$1) }, [reactIsExports$1]); var reactIs = { exports: {} }; var reactIs_production_min = {}; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_production_min; function requireReactIs_production_min() { if (hasRequiredReactIs_production_min) return reactIs_production_min; hasRequiredReactIs_production_min = 1; var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h$2 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m$1 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p$2 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u$1 = Symbol.for("react.module.reference"); function v(a$2) { if ("object" === typeof a$2 && null !== a$2) { var r$1 = a$2.$$typeof; switch (r$1) { case b: switch (a$2 = a$2.type, a$2) { case d: case f: case e: case m$1: case n: return a$2; default: switch (a$2 = a$2 && a$2.$$typeof, a$2) { case k: case h$2: case l: case q: case p$2: case g: return a$2; default: return r$1; } } case c: return r$1; } } } reactIs_production_min.ContextConsumer = h$2; reactIs_production_min.ContextProvider = g; reactIs_production_min.Element = b; reactIs_production_min.ForwardRef = l; reactIs_production_min.Fragment = d; reactIs_production_min.Lazy = q; reactIs_production_min.Memo = p$2; reactIs_production_min.Portal = c; reactIs_production_min.Profiler = f; reactIs_production_min.StrictMode = e; reactIs_production_min.Suspense = m$1; reactIs_production_min.SuspenseList = n; reactIs_production_min.isAsyncMode = function() { return false; }; reactIs_production_min.isConcurrentMode = function() { return false; }; reactIs_production_min.isContextConsumer = function(a$2) { return v(a$2) === h$2; }; reactIs_production_min.isContextProvider = function(a$2) { return v(a$2) === g; }; reactIs_production_min.isElement = function(a$2) { return "object" === typeof a$2 && null !== a$2 && a$2.$$typeof === b; }; reactIs_production_min.isForwardRef = function(a$2) { return v(a$2) === l; }; reactIs_production_min.isFragment = function(a$2) { return v(a$2) === d; }; reactIs_production_min.isLazy = function(a$2) { return v(a$2) === q; }; reactIs_production_min.isMemo = function(a$2) { return v(a$2) === p$2; }; reactIs_production_min.isPortal = function(a$2) { return v(a$2) === c; }; reactIs_production_min.isProfiler = function(a$2) { return v(a$2) === f; }; reactIs_production_min.isStrictMode = function(a$2) { return v(a$2) === e; }; reactIs_production_min.isSuspense = function(a$2) { return v(a$2) === m$1; }; reactIs_production_min.isSuspenseList = function(a$2) { return v(a$2) === n; }; reactIs_production_min.isValidElementType = function(a$2) { return "string" === typeof a$2 || "function" === typeof a$2 || a$2 === d || a$2 === f || a$2 === e || a$2 === m$1 || a$2 === n || a$2 === t || "object" === typeof a$2 && null !== a$2 && (a$2.$$typeof === q || a$2.$$typeof === p$2 || a$2.$$typeof === g || a$2.$$typeof === h$2 || a$2.$$typeof === l || a$2.$$typeof === u$1 || void 0 !== a$2.getModuleId) ? true : false; }; reactIs_production_min.typeOf = v; return reactIs_production_min; } var reactIs_development = {}; /** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_development; function requireReactIs_development() { if (hasRequiredReactIs_development) return reactIs_development; hasRequiredReactIs_development = 1; if (process.env.NODE_ENV !== "production") (function() { var REACT_ELEMENT_TYPE = Symbol.for("react.element"); var REACT_PORTAL_TYPE = Symbol.for("react.portal"); var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); var REACT_CONTEXT_TYPE = Symbol.for("react.context"); var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"); var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); var REACT_MEMO_TYPE = Symbol.for("react.memo"); var REACT_LAZY_TYPE = Symbol.for("react.lazy"); var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); var enableScopeAPI = false; var enableCacheElement = false; var enableTransitionTracing = false; var enableLegacyHidden = false; var enableDebugTracing = false; var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); function isValidElementType(type$1) { if (typeof type$1 === "string" || typeof type$1 === "function") return true; if (type$1 === REACT_FRAGMENT_TYPE || type$1 === REACT_PROFILER_TYPE || enableDebugTracing || type$1 === REACT_STRICT_MODE_TYPE || type$1 === REACT_SUSPENSE_TYPE || type$1 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type$1 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true; if (typeof type$1 === "object" && type$1 !== null) { if (type$1.$$typeof === REACT_LAZY_TYPE || type$1.$$typeof === REACT_MEMO_TYPE || type$1.$$typeof === REACT_PROVIDER_TYPE || type$1.$$typeof === REACT_CONTEXT_TYPE || type$1.$$typeof === REACT_FORWARD_REF_TYPE || type$1.$$typeof === REACT_MODULE_REFERENCE || type$1.getModuleId !== void 0) return true; } return false; } function typeOf$1(object$1) { if (typeof object$1 === "object" && object$1 !== null) { var $$typeof = object$1.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: var type$1 = object$1.type; switch (type$1) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: return type$1; default: var $$typeofType = type$1 && type$1.$$typeof; switch ($$typeofType) { case REACT_SERVER_CONTEXT_TYPE: case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: case REACT_PROVIDER_TYPE: return $$typeofType; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } var ContextConsumer = REACT_CONTEXT_TYPE; var ContextProvider = REACT_PROVIDER_TYPE; var Element$1 = REACT_ELEMENT_TYPE; var ForwardRef = REACT_FORWARD_REF_TYPE; var Fragment = REACT_FRAGMENT_TYPE; var Lazy = REACT_LAZY_TYPE; var Memo = REACT_MEMO_TYPE; var Portal = REACT_PORTAL_TYPE; var Profiler = REACT_PROFILER_TYPE; var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var SuspenseList = REACT_SUSPENSE_LIST_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; var hasWarnedAboutDeprecatedIsConcurrentMode = false; function isAsyncMode(object$1) { if (!hasWarnedAboutDeprecatedIsAsyncMode) { hasWarnedAboutDeprecatedIsAsyncMode = true; console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+."); } return false; } function isConcurrentMode(object$1) { if (!hasWarnedAboutDeprecatedIsConcurrentMode) { hasWarnedAboutDeprecatedIsConcurrentMode = true; console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+."); } return false; } function isContextConsumer(object$1) { return typeOf$1(object$1) === REACT_CONTEXT_TYPE; } function isContextProvider(object$1) { return typeOf$1(object$1) === REACT_PROVIDER_TYPE; } function isElement(object$1) { return typeof object$1 === "object" && object$1 !== null && object$1.$$typeof === REACT_ELEMENT_TYPE; } function isForwardRef(object$1) { return typeOf$1(object$1) === REACT_FORWARD_REF_TYPE; } function isFragment(object$1) { return typeOf$1(object$1) === REACT_FRAGMENT_TYPE; } function isLazy(object$1) { return typeOf$1(object$1) === REACT_LAZY_TYPE; } function isMemo(object$1) { return typeOf$1(object$1) === REACT_MEMO_TYPE; } function isPortal(object$1) { return typeOf$1(object$1) === REACT_PORTAL_TYPE; } function isProfiler(object$1) { return typeOf$1(object$1) === REACT_PROFILER_TYPE; } function isStrictMode(object$1) { return typeOf$1(object$1) === REACT_STRICT_MODE_TYPE; } function isSuspense(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_TYPE; } function isSuspenseList(object$1) { return typeOf$1(object$1) === REACT_SUSPENSE_LIST_TYPE; } reactIs_development.ContextConsumer = ContextConsumer; reactIs_development.ContextProvider = ContextProvider; reactIs_development.Element = Element$1; reactIs_development.ForwardRef = ForwardRef; reactIs_development.Fragment = Fragment; reactIs_development.Lazy = Lazy; reactIs_development.Memo = Memo; reactIs_development.Portal = Portal; reactIs_development.Profiler = Profiler; reactIs_development.StrictMode = StrictMode; reactIs_development.Suspense = Suspense; reactIs_development.SuspenseList = SuspenseList; reactIs_development.isAsyncMode = isAsyncMode; reactIs_development.isConcurrentMode = isConcurrentMode; reactIs_development.isContextConsumer = isContextConsumer; reactIs_development.isContextProvider = isContextProvider; reactIs_development.isElement = isElement; reactIs_development.isForwardRef = isForwardRef; reactIs_development.isFragment = isFragment; reactIs_development.isLazy = isLazy; reactIs_development.isMemo = isMemo; reactIs_development.isPortal = isPortal; reactIs_development.isProfiler = isProfiler; reactIs_development.isStrictMode = isStrictMode; reactIs_development.isSuspense = isSuspense; reactIs_development.isSuspenseList = isSuspenseList; reactIs_development.isValidElementType = isValidElementType; reactIs_development.typeOf = typeOf$1; })(); return reactIs_development; } var hasRequiredReactIs; function requireReactIs() { if (hasRequiredReactIs) return reactIs.exports; hasRequiredReactIs = 1; if (process.env.NODE_ENV === "production") reactIs.exports = requireReactIs_production_min(); else reactIs.exports = requireReactIs_development(); return reactIs.exports; } var reactIsExports = requireReactIs(); var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({ __proto__: null, default: /* @__PURE__ */ getDefaultExportFromCjs$3(reactIsExports) }, [reactIsExports]); const ReactIs = Object.fromEntries([ "isAsyncMode", "isConcurrentMode", "isContextConsumer", "isContextProvider", "isElement", "isForwardRef", "isFragment", "isLazy", "isMemo", "isPortal", "isProfiler", "isStrictMode", "isSuspense", "isSuspenseList", "isValidElementType" ].map((m$1) => [m$1, (v) => ReactIs18[m$1](v) || ReactIs19[m$1](v)])); function getChildren(arg, children = []) { if (Array.isArray(arg)) for (const item of arg) getChildren(item, children); else if (arg != null && arg !== false && arg !== "") children.push(arg); return children; } function getType$2(element) { const type$1 = element.type; if (typeof type$1 === "string") return type$1; if (typeof type$1 === "function") return type$1.displayName || type$1.name || "Unknown"; if (ReactIs.isFragment(element)) return "React.Fragment"; if (ReactIs.isSuspense(element)) return "React.Suspense"; if (typeof type$1 === "object" && type$1 !== null) { if (ReactIs.isContextProvider(element)) return "Context.Provider"; if (ReactIs.isContextConsumer(element)) return "Context.Consumer"; if (ReactIs.isForwardRef(element)) { if (type$1.displayName) return type$1.displayName; const functionName$1 = type$1.render.displayName || type$1.render.name || ""; return functionName$1 === "" ? "ForwardRef" : `ForwardRef(${functionName$1})`; } if (ReactIs.isMemo(element)) { const functionName$1 = type$1.displayName || type$1.type.displayName || type$1.type.name || ""; return functionName$1 === "" ? "Memo" : `Memo(${functionName$1})`; } } return "UNDEFINED"; } function getPropKeys$1(element) { const { props } = element; return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort(); } const serialize$1$1 = (element, config$1, indentation, depth, refs, printer$1) => ++depth > config$1.maxDepth ? printElementAsLeaf(getType$2(element), config$1) : printElement(getType$2(element), printProps(getPropKeys$1(element), element.props, config$1, indentation + config$1.indent, depth, refs, printer$1), printChildren(getChildren(element.props.children), config$1, indentation + config$1.indent, depth, refs, printer$1), config$1, indentation); const test$1$1 = (val) => val != null && ReactIs.isElement(val); const plugin$1 = { serialize: serialize$1$1, test: test$1$1 }; const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487; function getPropKeys(object$1) { const { props } = object$1; return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : []; } const serialize$6 = (object$1, config$1, indentation, depth, refs, printer$1) => ++depth > config$1.maxDepth ? printElementAsLeaf(object$1.type, config$1) : printElement(object$1.type, object$1.props ? printProps(getPropKeys(object$1), object$1.props, config$1, indentation + config$1.indent, depth, refs, printer$1) : "", object$1.children ? printChildren(object$1.children, config$1, indentation + config$1.indent, depth, refs, printer$1) : "", config$1, indentation); const test$6 = (val) => val && val.$$typeof === testSymbol; const plugin$6 = { serialize: serialize$6, test: test$6 }; const toString$2 = Object.prototype.toString; const toISOString = Date.prototype.toISOString; const errorToString = Error.prototype.toString; const regExpToString = RegExp.prototype.toString; /** * Explicitly comparing typeof constructor to function avoids undefined as name * when mock identity-obj-proxy returns the key as the value for any key. */ function getConstructorName$1(val) { return typeof val.constructor === "function" && val.constructor.name || "Object"; } /** Is val is equal to global window object? Works even if it does not exist :) */ function isWindow(val) { return typeof window !== "undefined" && val === window; } const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; const NEWLINE_REGEXP = /\n/g; var PrettyFormatPluginError = class extends Error { constructor(message, stack) { super(message); this.stack = stack; this.name = this.constructor.name; } }; function isToStringedArrayType(toStringed) { return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]"; } function printNumber(val) { return Object.is(val, -0) ? "-0" : String(val); } function printBigInt(val) { return String(`${val}n`); } function printFunction(val, printFunctionName$1) { if (!printFunctionName$1) return "[Function]"; return `[Function ${val.name || "anonymous"}]`; } function printSymbol(val) { return String(val).replace(SYMBOL_REGEXP, "Symbol($1)"); } function printError(val) { return `[${errorToString.call(val)}]`; } /** * The first port of call for printing an object, handles most of the * data-types in JS. */ function printBasicValue(val, printFunctionName$1, escapeRegex$1, escapeString) { if (val === true || val === false) return `${val}`; if (val === void 0) return "undefined"; if (val === null) return "null"; const typeOf$1 = typeof val; if (typeOf$1 === "number") return printNumber(val); if (typeOf$1 === "bigint") return printBigInt(val); if (typeOf$1 === "string") { if (escapeString) return `"${val.replaceAll(/"|\\/g, "\\$&")}"`; return `"${val}"`; } if (typeOf$1 === "function") return printFunction(val, printFunctionName$1); if (typeOf$1 === "symbol") return printSymbol(val); const toStringed = toString$2.call(val); if (toStringed === "[object WeakMap]") return "WeakMap {}"; if (toStringed === "[object WeakSet]") return "WeakSet {}"; if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") return printFunction(val, printFunctionName$1); if (toStringed === "[object Symbol]") return printSymbol(val); if (toStringed === "[object Date]") return Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val); if (toStringed === "[object Error]") return printError(val); if (toStringed === "[object RegExp]") { if (escapeRegex$1) return regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&"); return regExpToString.call(val); } if (val instanceof Error) return printError(val); return null; } /** * Handles more complex objects ( such as objects with circular references. * maps and sets etc ) */ function printComplexValue(val, config$1, indentation, depth, refs, hasCalledToJSON) { if (refs.includes(val)) return "[Circular]"; refs = [...refs]; refs.push(val); const hitMaxDepth = ++depth > config$1.maxDepth; const min = config$1.min; if (config$1.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) return printer(val.toJSON(), config$1, indentation, depth, refs, true); const toStringed = toString$2.call(val); if (toStringed === "[object Arguments]") return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${printListItems(val, config$1, indentation, depth, refs, printer)}]`; if (isToStringedArrayType(toStringed)) return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config$1.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config$1, indentation, depth, refs, printer)}]`; if (toStringed === "[object Map]") return hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config$1, indentation, depth, refs, printer, " => ")}}`; if (toStringed === "[object Set]") return hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config$1, indentation, depth, refs, printer)}}`; return hitMaxDepth || isWindow(val) ? `[${getConstructorName$1(val)}]` : `${min ? "" : !config$1.printBasicPrototype && getConstructorName$1(val) === "Object" ? "" : `${getConstructorName$1(val)} `}{${printObjectProperties(val, config$1, indentation, depth, refs, printer)}}`; } const ErrorPlugin = { test: (val) => val && val instanceof Error, serialize(val, config$1, indentation, depth, refs, printer$1) { if (refs.includes(val)) return "[Circular]"; refs = [...refs, val]; const hitMaxDepth = ++depth > config$1.maxDepth; const { message, cause,...rest } = val; const entries = { message, ...typeof cause !== "undefined" ? { cause } : {}, ...val instanceof AggregateError ? { errors: val.errors } : {}, ...rest }; const name = val.name !== "Error" ? val.name : getConstructorName$1(val); return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config$1, indentation, depth, refs, printer$1)}}`; } }; function isNewPlugin(plugin$7) { return plugin$7.serialize != null; } function printPlugin(plugin$7, val, config$1, indentation, depth, refs) { let printed; try { printed = isNewPlugin(plugin$7) ? plugin$7.serialize(val, config$1, indentation, depth, refs, printer) : plugin$7.print(val, (valChild) => printer(valChild, config$1, indentation, depth, refs), (str) => { const indentationNext = indentation + config$1.indent; return indentationNext + str.replaceAll(NEWLINE_REGEXP, `\n${indentationNext}`); }, { edgeSpacing: config$1.spacingOuter, min: config$1.min, spacing: config$1.spacingInner }, config$1.colors); } catch (error) { throw new PrettyFormatPluginError(error.message, error.stack); } if (typeof printed !== "string") throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`); return printed; } function findPlugin(plugins$1, val) { for (const plugin$7 of plugins$1) try { if (plugin$7.test(val)) return plugin$7; } catch (error) { throw new PrettyFormatPluginError(error.message, error.stack); } return null; } function printer(val, config$1, indentation, depth, refs, hasCalledToJSON) { const plugin$7 = findPlugin(config$1.plugins, val); if (plugin$7 !== null) return printPlugin(plugin$7, val, config$1, indentation, depth, refs); const basicResult = printBasicValue(val, config$1.printFunctionName, config$1.escapeRegex, config$1.escapeString); if (basicResult !== null) return basicResult; return printComplexValue(val, config$1, indentation, depth, refs, hasCalledToJSON); } const DEFAULT_THEME = { comment: "gray", content: "reset", prop: "yellow", tag: "cyan", value: "green" }; const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME); const DEFAULT_OPTIONS = { callToJSON: true, compareKeys: void 0, escapeRegex: false, escapeString: true, highlight: false, indent: 2, maxDepth: Number.POSITIVE_INFINITY, maxWidth: Number.POSITIVE_INFINITY, min: false, plugins: [], printBasicPrototype: true, printFunctionName: true, theme: DEFAULT_THEME }; function validateOptions(options) { for (const key of Object.keys(options)) if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) throw new Error(`pretty-format: Unknown option "${key}".`); if (options.min && options.indent !== void 0 && options.indent !== 0) throw new Error("pretty-format: Options \"min\" and \"indent\" cannot be used together."); } function getColorsHig