{"version":3,"file":"index.mjs","names":["c","util","thenable"],"sources":["../../../../../../../../../../node_modules/@vitest/expect/dist/index.js"],"sourcesContent":["import { printDiffOrStringify, diff } from '@vitest/utils/diff';\nimport { stringify } from '@vitest/utils/display';\nimport { getType, isObject, noop, assertTypes, ordinal } from '@vitest/utils/helpers';\nimport c from 'tinyrainbow';\nimport { isMockFunction } from '@vitest/spy';\nimport { processError } from '@vitest/utils/error';\nimport { use, util } from 'chai';\nimport * as chai from 'chai';\nexport { chai };\n\nconst ChaiStyleAssertions = (chai, utils) => {\n\tfunction defProperty(name, delegateTo) {\n\t\tutils.addProperty(chai.Assertion.prototype, name, function() {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) {\n\t\t\t\tthrow new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\t}\n\t\t\treturn jestMethod.call(this);\n\t\t});\n\t}\n\tfunction defPropertyWithArgs(name, delegateTo, ...args) {\n\t\tutils.addProperty(chai.Assertion.prototype, name, function() {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) {\n\t\t\t\tthrow new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\t}\n\t\t\treturn jestMethod.call(this, ...args);\n\t\t});\n\t}\n\tfunction defMethod(name, delegateTo) {\n\t\tutils.addMethod(chai.Assertion.prototype, name, function(...args) {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) {\n\t\t\t\tthrow new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\t}\n\t\t\treturn jestMethod.call(this, ...args);\n\t\t});\n\t}\n\t// API to (somewhat) mirror sinon-chai\n\t// https://github.com/chaijs/sinon-chai\n\tdefProperty(\"called\", \"toHaveBeenCalled\");\n\tdefProperty(\"calledOnce\", \"toHaveBeenCalledOnce\");\n\tdefPropertyWithArgs(\"calledTwice\", \"toHaveBeenCalledTimes\", 2);\n\tdefPropertyWithArgs(\"calledThrice\", \"toHaveBeenCalledTimes\", 3);\n\tdefMethod(\"callCount\", \"toHaveBeenCalledTimes\");\n\tdefMethod(\"calledWith\", \"toHaveBeenCalledWith\");\n\tdefMethod(\"calledOnceWith\", \"toHaveBeenCalledExactlyOnceWith\");\n\tdefMethod(\"lastCalledWith\", \"toHaveBeenLastCalledWith\");\n\tdefMethod(\"nthCalledWith\", \"toHaveBeenNthCalledWith\");\n\tdefMethod(\"returned\", \"toHaveReturned\");\n\tdefMethod(\"returnedWith\", \"toHaveReturnedWith\");\n\tdefMethod(\"returnedTimes\", \"toHaveReturnedTimes\");\n\tdefMethod(\"lastReturnedWith\", \"toHaveLastReturnedWith\");\n\tdefMethod(\"nthReturnedWith\", \"toHaveNthReturnedWith\");\n\tdefMethod(\"calledBefore\", \"toHaveBeenCalledBefore\");\n\tdefMethod(\"calledAfter\", \"toHaveBeenCalledAfter\");\n\t// TODO: implement\n\t// defMethod('thrown', 'toHaveThrown')\n};\n\nconst MATCHERS_OBJECT = Symbol.for(\"matchers-object\");\nconst JEST_MATCHERS_OBJECT = Symbol.for(\"$$jest-matchers-object\");\nconst GLOBAL_EXPECT = Symbol.for(\"expect-global\");\nconst ASYMMETRIC_MATCHERS_OBJECT = Symbol.for(\"asymmetric-matchers-object\");\n\n// selectively ported from https://github.com/jest-community/jest-extended\nconst customMatchers = {\n\ttoSatisfy(actual, expected, message) {\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tconst pass = expected(actual);\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toSatisfy\", \"received\", \"\")}\n\nExpected value to not satisfy:\n${message || printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toSatisfy\", \"received\", \"\")}\n\nExpected value to satisfy:\n${message || printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t},\n\ttoBeOneOf(actual, expected) {\n\t\tconst { equals, customTesters } = this;\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tlet pass;\n\t\tif (Array.isArray(expected)) {\n\t\t\tpass = expected.length === 0 || expected.some((item) => equals(item, actual, customTesters));\n\t\t} else if (expected instanceof Set) {\n\t\t\tpass = expected.size === 0 || expected.has(actual) || [...expected].some((item) => equals(item, actual, customTesters));\n\t\t} else {\n\t\t\tthrow new TypeError(`You must provide an array or set to ${matcherHint(\".toBeOneOf\")}, not '${typeof expected}'.`);\n\t\t}\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toBeOneOf\", \"received\", \"\")}\n\nExpected value to not be one of:\n${printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toBeOneOf\", \"received\", \"\")}\n\nExpected value to be one of:\n${printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t}\n};\n\nconst EXPECTED_COLOR = c.green;\nconst RECEIVED_COLOR = c.red;\nconst INVERTED_COLOR = c.inverse;\nconst BOLD_WEIGHT = c.bold;\nconst DIM_COLOR = c.dim;\nfunction matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n\tconst { comment = \"\", isDirectExpectCall = false, isNot = false, promise = \"\", secondArgument = \"\", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options;\n\tlet hint = \"\";\n\tlet dimString = \"expect\";\n\tif (!isDirectExpectCall && received !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n\t\tdimString = \")\";\n\t}\n\tif (promise !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}.`) + promise;\n\t\tdimString = \"\";\n\t}\n\tif (isNot) {\n\t\thint += `${DIM_COLOR(`${dimString}.`)}not`;\n\t\tdimString = \"\";\n\t}\n\tif (matcherName.includes(\".\")) {\n\t\t// Old format: for backward compatibility,\n\t\t// especially without promise or isNot options\n\t\tdimString += matcherName;\n\t} else {\n\t\t// New format: omit period from matcherName arg\n\t\thint += DIM_COLOR(`${dimString}.`) + matcherName;\n\t\tdimString = \"\";\n\t}\n\tif (expected === \"\") {\n\t\tdimString += \"()\";\n\t} else {\n\t\thint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n\t\tif (secondArgument) {\n\t\t\thint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n\t\t}\n\t\tdimString = \")\";\n\t}\n\tif (comment !== \"\") {\n\t\tdimString += ` // ${comment}`;\n\t}\n\tif (dimString !== \"\") {\n\t\thint += DIM_COLOR(dimString);\n\t}\n\treturn hint;\n}\nconst SPACE_SYMBOL = \"·\";\n// Instead of inverse highlight which now implies a change,\n// replace common spaces with middle dot at the end of any line.\nfunction replaceTrailingSpaces(text) {\n\treturn text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n\treturn RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n\treturn EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n}\nfunction getMatcherUtils() {\n\treturn {\n\t\tEXPECTED_COLOR,\n\t\tRECEIVED_COLOR,\n\t\tINVERTED_COLOR,\n\t\tBOLD_WEIGHT,\n\t\tDIM_COLOR,\n\t\tdiff,\n\t\tmatcherHint,\n\t\tprintReceived,\n\t\tprintExpected,\n\t\tprintDiffOrStringify,\n\t\tprintWithType\n\t};\n}\nfunction printWithType(name, value, print) {\n\tconst type = getType(value);\n\tconst hasType = type !== \"null\" && type !== \"undefined\" ? `${name} has type:  ${type}\\n` : \"\";\n\tconst hasValue = `${name} has value: ${print(value)}`;\n\treturn hasType + hasValue;\n}\nfunction addCustomEqualityTesters(newTesters) {\n\tif (!Array.isArray(newTesters)) {\n\t\tthrow new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given \"${getType(newTesters)}\"`);\n\t}\n\tglobalThis[JEST_MATCHERS_OBJECT].customEqualityTesters.push(...newTesters);\n}\nfunction getCustomEqualityTesters() {\n\treturn globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;\n}\n\n// Extracted out of jasmine 2.5.2\nfunction equals(a, b, customTesters, strictCheck) {\n\tcustomTesters = customTesters || [];\n\treturn eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nconst functionToString = Function.prototype.toString;\nfunction isAsymmetric(obj) {\n\treturn !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction hasAsymmetric(obj, seen = new Set()) {\n\tif (seen.has(obj)) {\n\t\treturn false;\n\t}\n\tseen.add(obj);\n\tif (isAsymmetric(obj)) {\n\t\treturn true;\n\t}\n\tif (Array.isArray(obj)) {\n\t\treturn obj.some((i) => hasAsymmetric(i, seen));\n\t}\n\tif (obj instanceof Set) {\n\t\treturn Array.from(obj).some((i) => hasAsymmetric(i, seen));\n\t}\n\tif (isObject(obj)) {\n\t\treturn Object.values(obj).some((v) => hasAsymmetric(v, seen));\n\t}\n\treturn false;\n}\nfunction asymmetricMatch(a, b, customTesters) {\n\tconst asymmetricA = isAsymmetric(a);\n\tconst asymmetricB = isAsymmetric(b);\n\tif (asymmetricA && asymmetricB) {\n\t\treturn undefined;\n\t}\n\tif (asymmetricA) {\n\t\treturn a.asymmetricMatch(b, customTesters);\n\t}\n\tif (asymmetricB) {\n\t\treturn b.asymmetricMatch(a, customTesters);\n\t}\n}\n// https://github.com/jestjs/jest/blob/905bcbced3d40cdf7aadc4cdf6fb731c4bb3dbe3/packages/expect-utils/src/utils.ts#L509\nfunction isError(value) {\n\tif (typeof Error.isError === \"function\") {\n\t\treturn Error.isError(value);\n\t}\n\tswitch (Object.prototype.toString.call(value)) {\n\t\tcase \"[object Error]\":\n\t\tcase \"[object Exception]\":\n\t\tcase \"[object DOMException]\": return true;\n\t\tdefault: return value instanceof Error;\n\t}\n}\n// Equality function lovingly adapted from isEqual in\n//   [Underscore](http://underscorejs.org)\nfunction eq(a, b, aStack, bStack, customTesters, hasKey) {\n\tlet result = true;\n\tconst asymmetricResult = asymmetricMatch(a, b, customTesters);\n\tif (asymmetricResult !== undefined) {\n\t\treturn asymmetricResult;\n\t}\n\tconst testerContext = { equals };\n\tfor (let i = 0; i < customTesters.length; i++) {\n\t\tconst customTesterResult = customTesters[i].call(testerContext, a, b, customTesters);\n\t\tif (customTesterResult !== undefined) {\n\t\t\treturn customTesterResult;\n\t\t}\n\t}\n\tif (typeof URL === \"function\" && a instanceof URL && b instanceof URL) {\n\t\treturn a.href === b.href;\n\t}\n\tif (Object.is(a, b)) {\n\t\treturn true;\n\t}\n\t// A strict comparison is necessary because `null == undefined`.\n\tif (a === null || b === null) {\n\t\treturn a === b;\n\t}\n\tconst className = Object.prototype.toString.call(a);\n\tif (className !== Object.prototype.toString.call(b)) {\n\t\treturn false;\n\t}\n\tswitch (className) {\n\t\tcase \"[object Boolean]\":\n\t\tcase \"[object String]\":\n\t\tcase \"[object Number]\": if (typeof a !== typeof b) {\n\t\t\t// One is a primitive, one a `new Primitive()`\n\t\t\treturn false;\n\t\t} else if (typeof a !== \"object\" && typeof b !== \"object\") {\n\t\t\t// both are proper primitives\n\t\t\treturn Object.is(a, b);\n\t\t} else {\n\t\t\t// both are `new Primitive()`s\n\t\t\treturn Object.is(a.valueOf(), b.valueOf());\n\t\t}\n\t\tcase \"[object Date]\": {\n\t\t\tconst numA = +a;\n\t\t\tconst numB = +b;\n\t\t\t// Coerce dates to numeric primitive values. Dates are compared by their\n\t\t\t// millisecond representations. Note that invalid dates with millisecond representations\n\t\t\t// of `NaN` are equivalent.\n\t\t\treturn numA === numB || Number.isNaN(numA) && Number.isNaN(numB);\n\t\t}\n\t\tcase \"[object RegExp]\": return a.source === b.source && a.flags === b.flags;\n\t\tcase \"[object Temporal.Instant]\":\n\t\tcase \"[object Temporal.ZonedDateTime]\":\n\t\tcase \"[object Temporal.PlainDateTime]\":\n\t\tcase \"[object Temporal.PlainDate]\":\n\t\tcase \"[object Temporal.PlainTime]\":\n\t\tcase \"[object Temporal.PlainYearMonth]\":\n\t\tcase \"[object Temporal.PlainMonthDay]\": return a.equals(b);\n\t\tcase \"[object Temporal.Duration]\": return a.toString() === b.toString();\n\t}\n\tif (typeof a !== \"object\" || typeof b !== \"object\") {\n\t\treturn false;\n\t}\n\t// Use DOM3 method isEqualNode (IE>=9)\n\tif (isDomNode(a) && isDomNode(b)) {\n\t\treturn a.isEqualNode(b);\n\t}\n\t// Used to detect circular references.\n\tlet length = aStack.length;\n\twhile (length--) {\n\t\t// Linear search. Performance is inversely proportional to the number of\n\t\t// unique nested structures.\n\t\t// circular references at same depth are equal\n\t\t// circular reference is not equal to non-circular one\n\t\tif (aStack[length] === a) {\n\t\t\treturn bStack[length] === b;\n\t\t} else if (bStack[length] === b) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Add the first object to the stack of traversed objects.\n\taStack.push(a);\n\tbStack.push(b);\n\t// Recursively compare objects and arrays.\n\t// Compare array lengths to determine if a deep comparison is necessary.\n\tif (className === \"[object Array]\" && a.length !== b.length) {\n\t\treturn false;\n\t}\n\tif (isError(a) && isError(b)) {\n\t\ttry {\n\t\t\treturn isErrorEqual(a, b, aStack, bStack, customTesters, hasKey);\n\t\t} finally {\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t}\n\t}\n\t// Deep compare objects.\n\tconst aKeys = keys(a, hasKey);\n\tlet key;\n\tlet size = aKeys.length;\n\t// Ensure that both objects contain the same number of properties before comparing deep equality.\n\tif (keys(b, hasKey).length !== size) {\n\t\treturn false;\n\t}\n\twhile (size--) {\n\t\tkey = aKeys[size];\n\t\t// Deep compare each member\n\t\tresult = hasKey(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey);\n\t\tif (!result) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Remove the first object from the stack of traversed objects.\n\taStack.pop();\n\tbStack.pop();\n\treturn result;\n}\nfunction isErrorEqual(a, b, aStack, bStack, customTesters, hasKey) {\n\t// https://nodejs.org/docs/latest-v22.x/api/assert.html#comparison-details\n\t// - [[Prototype]] of objects are compared using the === operator.\n\t// - Only enumerable \"own\" properties are considered.\n\t// - Error names, messages, causes, and errors are always compared, even if these are not enumerable properties. errors is also compared.\n\tlet result = Object.prototype.toString.call(a) === Object.prototype.toString.call(b) && a.name === b.name && a.message === b.message;\n\t// check Error.cause asymmetrically\n\tif (typeof b.cause !== \"undefined\") {\n\t\tresult &&= eq(a.cause, b.cause, aStack, bStack, customTesters, hasKey);\n\t}\n\t// AggregateError.errors\n\tif (a instanceof AggregateError && b instanceof AggregateError) {\n\t\tresult &&= eq(a.errors, b.errors, aStack, bStack, customTesters, hasKey);\n\t}\n\t// spread to compare enumerable properties\n\tresult &&= eq({ ...a }, { ...b }, aStack, bStack, customTesters, hasKey);\n\treturn result;\n}\nfunction keys(obj, hasKey) {\n\tconst keys = [];\n\tfor (const key in obj) {\n\t\tif (hasKey(obj, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\treturn keys.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable));\n}\nfunction hasDefinedKey(obj, key) {\n\treturn hasKey(obj, key) && obj[key] !== undefined;\n}\nfunction hasKey(obj, key) {\n\treturn Object.hasOwn(obj, key);\n}\nfunction isA(typeName, value) {\n\treturn Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n\treturn obj !== null && typeof obj === \"object\" && \"nodeType\" in obj && typeof obj.nodeType === \"number\" && \"nodeName\" in obj && typeof obj.nodeName === \"string\" && \"isEqualNode\" in obj && typeof obj.isEqualNode === \"function\";\n}\nfunction fnNameFor(func) {\n\tif (func.name) {\n\t\treturn func.name;\n\t}\n\tconst matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n\treturn matches ? matches[1] : \"<anonymous>\";\n}\nfunction getPrototype(obj) {\n\tif (Object.getPrototypeOf) {\n\t\treturn Object.getPrototypeOf(obj);\n\t}\n\tif (obj.constructor.prototype === obj) {\n\t\treturn null;\n\t}\n\treturn obj.constructor.prototype;\n}\nfunction hasProperty(obj, property) {\n\tif (!obj) {\n\t\treturn false;\n\t}\n\tif (Object.hasOwn(obj, property)) {\n\t\treturn true;\n\t}\n\treturn hasProperty(getPrototype(obj), property);\n}\n// SENTINEL constants are from https://github.com/facebook/immutable-js\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_LIST_SENTINEL = \"@@__IMMUTABLE_LIST__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nfunction isImmutableUnorderedKeyed(maybeKeyed) {\n\treturn !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n\treturn !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nfunction isObjectLiteral(source) {\n\treturn source != null && typeof source === \"object\" && !Array.isArray(source);\n}\nfunction isImmutableList(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL]);\n}\nfunction isImmutableOrderedKeyed(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableOrderedSet(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_SET_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableRecord(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL]);\n}\n/**\n* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source tree.\n*\n*/\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n\treturn !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, customTesters = [], aStack = [], bStack = []) {\n\tif (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b)) {\n\t\treturn undefined;\n\t}\n\tif (a.constructor !== b.constructor) {\n\t\treturn false;\n\t}\n\tlet length = aStack.length;\n\twhile (length--) {\n\t\t// Linear search. Performance is inversely proportional to the number of\n\t\t// unique nested structures.\n\t\t// circular references at same depth are equal\n\t\t// circular reference is not equal to non-circular one\n\t\tif (aStack[length] === a) {\n\t\t\treturn bStack[length] === b;\n\t\t}\n\t}\n\taStack.push(a);\n\tbStack.push(b);\n\tconst filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];\n\tfunction iterableEqualityWithStack(a, b) {\n\t\treturn iterableEquality(a, b, [...customTesters], [...aStack], [...bStack]);\n\t}\n\tif (a.size !== undefined) {\n\t\tif (a.size !== b.size) {\n\t\t\treturn false;\n\t\t} else if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aValue of a) {\n\t\t\t\tif (!b.has(aValue)) {\n\t\t\t\t\tlet has = false;\n\t\t\t\t\tfor (const bValue of b) {\n\t\t\t\t\t\tconst isEqual = equals(aValue, bValue, filteredCustomTesters);\n\t\t\t\t\t\tif (isEqual === true) {\n\t\t\t\t\t\t\thas = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (has === false) {\n\t\t\t\t\t\tallFound = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t} else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aEntry of a) {\n\t\t\t\tif (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {\n\t\t\t\t\tlet has = false;\n\t\t\t\t\tfor (const bEntry of b) {\n\t\t\t\t\t\tconst matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);\n\t\t\t\t\t\tlet matchedValue = false;\n\t\t\t\t\t\tif (matchedKey === true) {\n\t\t\t\t\t\t\tmatchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (matchedValue === true) {\n\t\t\t\t\t\t\thas = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (has === false) {\n\t\t\t\t\t\tallFound = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t}\n\t}\n\tconst bIterator = b[IteratorSymbol]();\n\tfor (const aValue of a) {\n\t\tconst nextB = bIterator.next();\n\t\tif (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\tif (!bIterator.next().done) {\n\t\treturn false;\n\t}\n\tif (!isImmutableList(a) && !isImmutableOrderedKeyed(a) && !isImmutableOrderedSet(a) && !isImmutableRecord(a)) {\n\t\tconst aEntries = Object.entries(a);\n\t\tconst bEntries = Object.entries(b);\n\t\tif (!equals(aEntries, bEntries, filteredCustomTesters)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Remove the first value from the stack of traversed values.\n\taStack.pop();\n\tbStack.pop();\n\treturn true;\n}\n/**\n* Checks if `hasOwnProperty(object, key)` up the prototype chain, stopping at `Object.prototype`.\n*/\nfunction hasPropertyInObject(object, key) {\n\tconst shouldTerminate = !object || typeof object !== \"object\" || object === Object.prototype;\n\tif (shouldTerminate) {\n\t\treturn false;\n\t}\n\treturn Object.hasOwn(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n\treturn isObject(a) && !isError(a) && !Array.isArray(a) && !(a instanceof Date) && !(a instanceof Set) && !(a instanceof Map);\n}\nfunction subsetEquality(object, subset, customTesters = []) {\n\tconst filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);\n\t// subsetEquality needs to keep track of the references\n\t// it has already visited to avoid infinite loops in case\n\t// there are circular references in the subset passed to it.\n\tconst subsetEqualityWithContext = (seenReferences = new WeakMap()) => (object, subset) => {\n\t\tif (!isObjectWithKeys(subset)) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn Object.keys(subset).every((key) => {\n\t\t\tif (subset[key] != null && typeof subset[key] === \"object\") {\n\t\t\t\tif (seenReferences.has(subset[key])) {\n\t\t\t\t\treturn equals(object[key], subset[key], filteredCustomTesters);\n\t\t\t\t}\n\t\t\t\tseenReferences.set(subset[key], true);\n\t\t\t}\n\t\t\tconst result = object != null && hasPropertyInObject(object, key) && equals(object[key], subset[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]);\n\t\t\t// The main goal of using seenReference is to avoid circular node on tree.\n\t\t\t// It will only happen within a parent and its child, not a node and nodes next to it (same level)\n\t\t\t// We should keep the reference for a parent and its child only\n\t\t\t// Thus we should delete the reference immediately so that it doesn't interfere\n\t\t\t// other nodes within the same level on tree.\n\t\t\tseenReferences.delete(subset[key]);\n\t\t\treturn result;\n\t\t});\n\t};\n\treturn subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n\tif (a == null || b == null || a.constructor === b.constructor) {\n\t\treturn undefined;\n\t}\n\treturn false;\n}\nfunction arrayBufferEquality(a, b) {\n\tlet dataViewA = a;\n\tlet dataViewB = b;\n\tif (!(a instanceof DataView && b instanceof DataView)) {\n\t\tif (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) {\n\t\t\treturn undefined;\n\t\t}\n\t\ttry {\n\t\t\tdataViewA = new DataView(a);\n\t\t\tdataViewB = new DataView(b);\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t}\n\t// Buffers are not equal when they do not have the same byte length\n\tif (dataViewA.byteLength !== dataViewB.byteLength) {\n\t\treturn false;\n\t}\n\t// Check if every byte value is equal to each other\n\tfor (let i = 0; i < dataViewA.byteLength; i++) {\n\t\tif (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}\nfunction sparseArrayEquality(a, b, customTesters = []) {\n\tif (!Array.isArray(a) || !Array.isArray(b)) {\n\t\treturn undefined;\n\t}\n\t// A sparse array [, , 1] will have keys [\"2\"] whereas [undefined, undefined, 1] will have keys [\"0\", \"1\", \"2\"]\n\tconst aKeys = Object.keys(a);\n\tconst bKeys = Object.keys(b);\n\tconst filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);\n\treturn equals(a, b, filteredCustomTesters, true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n\tconst toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n\tif ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName)) {\n\t\treturn `${toBeMessage}\\n\\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\\n\\nExpected: ${expected}\\nReceived: serializes to the same string\\n`;\n\t}\n\treturn toBeMessage;\n}\nfunction pluralize(word, count) {\n\treturn `${count} ${word}${count === 1 ? \"\" : \"s\"}`;\n}\nfunction getObjectKeys(object) {\n\treturn [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s) => Object.getOwnPropertyDescriptor(object, s)?.enumerable)];\n}\nfunction getObjectSubset(object, subset, customTesters) {\n\tlet stripped = 0;\n\tconst getObjectSubsetWithContext = (seenReferences = new WeakMap()) => (object, subset) => {\n\t\tif (Array.isArray(object)) {\n\t\t\tif (Array.isArray(subset) && subset.length === object.length) {\n\t\t\t\t// The map method returns correct subclass of subset.\n\t\t\t\treturn subset.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object[i], sub));\n\t\t\t}\n\t\t} else if (object instanceof Date) {\n\t\t\treturn object;\n\t\t} else if (isObject(object) && isObject(subset)) {\n\t\t\tif (equals(object, subset, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t])) {\n\t\t\t\t// return \"expected\" subset to avoid showing irrelevant toMatchObject diff\n\t\t\t\treturn subset;\n\t\t\t}\n\t\t\tconst trimmed = {};\n\t\t\tseenReferences.set(object, trimmed);\n\t\t\t// preserve constructor for toMatchObject diff\n\t\t\tif (typeof object.constructor === \"function\" && typeof object.constructor.name === \"string\") {\n\t\t\t\tObject.defineProperty(trimmed, \"constructor\", {\n\t\t\t\t\tenumerable: false,\n\t\t\t\t\tvalue: object.constructor\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const key of getObjectKeys(object)) {\n\t\t\t\tif (hasPropertyInObject(subset, key)) {\n\t\t\t\t\ttrimmed[key] = seenReferences.has(object[key]) ? seenReferences.get(object[key]) : getObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\t\t} else {\n\t\t\t\t\tif (!seenReferences.has(object[key])) {\n\t\t\t\t\t\tstripped += 1;\n\t\t\t\t\t\tif (isObject(object[key])) {\n\t\t\t\t\t\t\tstripped += getObjectKeys(object[key]).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (getObjectKeys(trimmed).length > 0) {\n\t\t\t\treturn trimmed;\n\t\t\t}\n\t\t}\n\t\treturn object;\n\t};\n\treturn {\n\t\tsubset: getObjectSubsetWithContext()(object, subset),\n\t\tstripped\n\t};\n}\n/**\n* Detects if an object is a Standard Schema V1 compatible schema\n*/\nfunction isStandardSchema(obj) {\n\treturn !!obj && (typeof obj === \"object\" || typeof obj === \"function\") && obj[\"~standard\"] && typeof obj[\"~standard\"].validate === \"function\";\n}\n\nif (!Object.hasOwn(globalThis, MATCHERS_OBJECT)) {\n\tconst globalState = new WeakMap();\n\tconst matchers = Object.create(null);\n\tconst customEqualityTesters = [];\n\tconst asymmetricMatchers = Object.create(null);\n\tObject.defineProperty(globalThis, MATCHERS_OBJECT, { get: () => globalState });\n\tObject.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n\t\tconfigurable: true,\n\t\tget: () => ({\n\t\t\tstate: globalState.get(globalThis[GLOBAL_EXPECT]),\n\t\t\tmatchers,\n\t\t\tcustomEqualityTesters\n\t\t})\n\t});\n\tObject.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { get: () => asymmetricMatchers });\n}\nfunction getState(expect) {\n\treturn globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n\tconst map = globalThis[MATCHERS_OBJECT];\n\tconst current = map.get(expect) || {};\n\t// so it keeps getters from `testPath`\n\tconst results = Object.defineProperties(current, {\n\t\t...Object.getOwnPropertyDescriptors(current),\n\t\t...Object.getOwnPropertyDescriptors(state)\n\t});\n\tmap.set(expect, results);\n}\n\nclass AsymmetricMatcher {\n\t// should have \"jest\" to be compatible with its ecosystem\n\t$$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n\tconstructor(sample, inverse = false) {\n\t\tthis.sample = sample;\n\t\tthis.inverse = inverse;\n\t}\n\tgetMatcherContext(expect) {\n\t\treturn {\n\t\t\t...getState(expect || globalThis[GLOBAL_EXPECT]),\n\t\t\tequals,\n\t\t\tisNot: this.inverse,\n\t\t\tcustomTesters: getCustomEqualityTesters(),\n\t\t\tutils: {\n\t\t\t\t...getMatcherUtils(),\n\t\t\t\tdiff,\n\t\t\t\tstringify,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t}\n\t\t};\n\t}\n}\n// implement custom chai/loupe inspect for better AssertionError.message formatting\n// https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29\n// @ts-expect-error computed properties is not supported when isolatedDeclarations is enabled\n// FIXME: https://github.com/microsoft/TypeScript/issues/61068\nAsymmetricMatcher.prototype[Symbol.for(\"chai/inspect\")] = function(options) {\n\t// minimal pretty-format with simple manual truncation\n\tconst result = stringify(this, options.depth, { min: true });\n\tif (result.length <= options.truncate) {\n\t\treturn result;\n\t}\n\treturn `${this.toString()}{…}`;\n};\nclass StringContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a string\");\n\t\t}\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && other.includes(this.sample);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass Anything extends AsymmetricMatcher {\n\tasymmetricMatch(other) {\n\t\treturn other != null;\n\t}\n\ttoString() {\n\t\treturn \"Anything\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn \"Anything\";\n\t}\n}\nclass ObjectContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tgetPrototype(obj) {\n\t\tif (Object.getPrototypeOf) {\n\t\t\treturn Object.getPrototypeOf(obj);\n\t\t}\n\t\tif (obj.constructor.prototype === obj) {\n\t\t\treturn null;\n\t\t}\n\t\treturn obj.constructor.prototype;\n\t}\n\thasProperty(obj, property) {\n\t\tif (!obj) {\n\t\t\treturn false;\n\t\t}\n\t\tif (Object.hasOwn(obj, property)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn this.hasProperty(this.getPrototype(obj), property);\n\t}\n\tgetProperties(obj) {\n\t\treturn [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj).filter((s) => Object.getOwnPropertyDescriptor(obj, s)?.enumerable)];\n\t}\n\tasymmetricMatch(other, customTesters) {\n\t\tif (typeof this.sample !== \"object\") {\n\t\t\tthrow new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\t}\n\t\tlet result = true;\n\t\tconst properties = this.getProperties(this.sample);\n\t\tfor (const property of properties) {\n\t\t\tif (!this.hasProperty(other, property)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst value = this.sample[property];\n\t\t\tconst otherValue = other[property];\n\t\t\tif (!equals(value, otherValue, customTesters)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"object\";\n\t}\n}\nclass ArrayContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other, customTesters) {\n\t\tif (!Array.isArray(this.sample)) {\n\t\t\tthrow new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\t}\n\t\tconst result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, customTesters)));\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"array\";\n\t}\n}\nclass Any extends AsymmetricMatcher {\n\tconstructor(sample) {\n\t\tif (typeof sample === \"undefined\") {\n\t\t\tthrow new TypeError(\"any() expects to be passed a constructor function. \" + \"Please pass one or use anything() to match any object.\");\n\t\t}\n\t\tsuper(sample);\n\t}\n\tfnNameFor(func) {\n\t\tif (func.name) {\n\t\t\treturn func.name;\n\t\t}\n\t\tconst functionToString = Function.prototype.toString;\n\t\tconst matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n\t\treturn matches ? matches[1] : \"<anonymous>\";\n\t}\n\tasymmetricMatch(other) {\n\t\tif (this.sample === String) {\n\t\t\treturn typeof other == \"string\" || other instanceof String;\n\t\t}\n\t\tif (this.sample === Number) {\n\t\t\treturn typeof other == \"number\" || other instanceof Number;\n\t\t}\n\t\tif (this.sample === Function) {\n\t\t\treturn typeof other == \"function\" || typeof other === \"function\";\n\t\t}\n\t\tif (this.sample === Boolean) {\n\t\t\treturn typeof other == \"boolean\" || other instanceof Boolean;\n\t\t}\n\t\tif (this.sample === BigInt) {\n\t\t\treturn typeof other == \"bigint\" || other instanceof BigInt;\n\t\t}\n\t\tif (this.sample === Symbol) {\n\t\t\treturn typeof other == \"symbol\" || other instanceof Symbol;\n\t\t}\n\t\tif (this.sample === Object) {\n\t\t\treturn typeof other == \"object\";\n\t\t}\n\t\treturn other instanceof this.sample;\n\t}\n\ttoString() {\n\t\treturn \"Any\";\n\t}\n\tgetExpectedType() {\n\t\tif (this.sample === String) {\n\t\t\treturn \"string\";\n\t\t}\n\t\tif (this.sample === Number) {\n\t\t\treturn \"number\";\n\t\t}\n\t\tif (this.sample === Function) {\n\t\t\treturn \"function\";\n\t\t}\n\t\tif (this.sample === Object) {\n\t\t\treturn \"object\";\n\t\t}\n\t\tif (this.sample === Boolean) {\n\t\t\treturn \"boolean\";\n\t\t}\n\t\treturn this.fnNameFor(this.sample);\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn `Any<${this.fnNameFor(this.sample)}>`;\n\t}\n}\nclass StringMatching extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample) && !isA(\"RegExp\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a String or a RegExp\");\n\t\t}\n\t\tsuper(new RegExp(sample), inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && this.sample.test(other);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Matching`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass CloseTo extends AsymmetricMatcher {\n\tprecision;\n\tconstructor(sample, precision = 2, inverse = false) {\n\t\tif (!isA(\"Number\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a Number\");\n\t\t}\n\t\tif (!isA(\"Number\", precision)) {\n\t\t\tthrow new Error(\"Precision is not a Number\");\n\t\t}\n\t\tsuper(sample);\n\t\tthis.inverse = inverse;\n\t\tthis.precision = precision;\n\t}\n\tasymmetricMatch(other) {\n\t\tif (!isA(\"Number\", other)) {\n\t\t\treturn false;\n\t\t}\n\t\tlet result = false;\n\t\tif (other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) {\n\t\t\tresult = true;\n\t\t} else if (other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) {\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tresult = Math.abs(this.sample - other) < 10 ** -this.precision / 2;\n\t\t}\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Number${this.inverse ? \"Not\" : \"\"}CloseTo`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"number\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn [\n\t\t\tthis.toString(),\n\t\t\tthis.sample,\n\t\t\t`(${pluralize(\"digit\", this.precision)})`\n\t\t].join(\" \");\n\t}\n}\nclass SchemaMatching extends AsymmetricMatcher {\n\tresult;\n\tconstructor(sample, inverse = false) {\n\t\tif (!isStandardSchema(sample)) {\n\t\t\tthrow new TypeError(\"SchemaMatching expected to receive a Standard Schema.\");\n\t\t}\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = this.sample[\"~standard\"].validate(other);\n\t\t// Check if the result is a Promise (async validation)\n\t\tif (result instanceof Promise) {\n\t\t\tthrow new TypeError(\"Async schema validation is not supported in asymmetric matchers.\");\n\t\t}\n\t\tthis.result = result;\n\t\tconst pass = !this.result.issues || this.result.issues.length === 0;\n\t\treturn this.inverse ? !pass : pass;\n\t}\n\ttoString() {\n\t\treturn `Schema${this.inverse ? \"Not\" : \"\"}Matching`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"object\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\tconst { utils } = this.getMatcherContext();\n\t\tconst issues = this.result?.issues || [];\n\t\tif (issues.length > 0) {\n\t\t\treturn `${this.toString()} ${utils.stringify(this.result, undefined, { printBasicPrototype: false })}`;\n\t\t}\n\t\treturn this.toString();\n\t}\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"anything\", () => new Anything());\n\tutils.addMethod(chai.expect, \"any\", (expected) => new Any(expected));\n\tutils.addMethod(chai.expect, \"stringContaining\", (expected) => new StringContaining(expected));\n\tutils.addMethod(chai.expect, \"objectContaining\", (expected) => new ObjectContaining(expected));\n\tutils.addMethod(chai.expect, \"arrayContaining\", (expected) => new ArrayContaining(expected));\n\tutils.addMethod(chai.expect, \"stringMatching\", (expected) => new StringMatching(expected));\n\tutils.addMethod(chai.expect, \"closeTo\", (expected, precision) => new CloseTo(expected, precision));\n\tutils.addMethod(chai.expect, \"schemaMatching\", (expected) => new SchemaMatching(expected));\n\t// defineProperty does not work\n\tchai.expect.not = {\n\t\tstringContaining: (expected) => new StringContaining(expected, true),\n\t\tobjectContaining: (expected) => new ObjectContaining(expected, true),\n\t\tarrayContaining: (expected) => new ArrayContaining(expected, true),\n\t\tstringMatching: (expected) => new StringMatching(expected, true),\n\t\tcloseTo: (expected, precision) => new CloseTo(expected, precision, true),\n\t\tschemaMatching: (expected) => new SchemaMatching(expected, true)\n\t};\n};\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n\tconst soft = util.flag(assertion, \"soft\") ? \".soft\" : \"\";\n\tconst not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\tconst name = `${util.flag(assertion, \"_name\")}(${hasArgs ? \"expected\" : \"\"})`;\n\tconst promiseName = util.flag(assertion, \"promise\");\n\tconst promise = promiseName ? `.${promiseName}` : \"\";\n\treturn `expect${soft}(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error, isSoft) {\n\tconst test = _test;\n\t// record promise for test, that resolves before test ends\n\tif (test && promise instanceof Promise) {\n\t\t// if promise is explicitly awaited, remove it from the list\n\t\tpromise = promise.finally(() => {\n\t\t\tif (!test.promises) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst index = test.promises.indexOf(promise);\n\t\t\tif (index !== -1) {\n\t\t\t\ttest.promises.splice(index, 1);\n\t\t\t}\n\t\t});\n\t\t// record promise\n\t\tif (!test.promises) {\n\t\t\ttest.promises = [];\n\t\t}\n\t\t// setup `expect.soft` handler here instead of `wrapAssertion`\n\t\t// to avoid double error tracking while keeping non-await promise detection.\n\t\tif (isSoft) {\n\t\t\tpromise = promise.then(noop, (err) => {\n\t\t\t\thandleTestError(test, err);\n\t\t\t});\n\t\t}\n\t\ttest.promises.push(promise);\n\t\tlet resolved = false;\n\t\ttest.onFinished ??= [];\n\t\ttest.onFinished.push(() => {\n\t\t\tif (!resolved) {\n\t\t\t\tconst processor = globalThis.__vitest_worker__?.onFilterStackTrace || ((s) => s || \"\");\n\t\t\t\tconst stack = processor(error.stack);\n\t\t\t\tconsole.warn([\n\t\t\t\t\t`Promise returned by \\`${assertion}\\` was not awaited. `,\n\t\t\t\t\t\"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in the next Vitest major. \",\n\t\t\t\t\t\"Please remember to await the assertion.\\n\",\n\t\t\t\t\tstack\n\t\t\t\t].join(\"\"));\n\t\t\t}\n\t\t});\n\t\treturn {\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.then(onFulfilled, onRejected);\n\t\t\t},\n\t\t\tcatch(onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.catch(onRejected);\n\t\t\t},\n\t\t\tfinally(onFinally) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.finally(onFinally);\n\t\t\t},\n\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t};\n\t}\n\treturn promise;\n}\nfunction handleTestError(test, err) {\n\ttest.result ||= { state: \"fail\" };\n\ttest.result.state = \"fail\";\n\ttest.result.errors ||= [];\n\ttest.result.errors.push(processError(err));\n}\n/** wrap assertion function to support `expect.soft` and provide assertion name as `_name` */\nfunction wrapAssertion(utils, name, fn) {\n\treturn function(...args) {\n\t\t// private\n\t\tif (name !== \"withTest\") {\n\t\t\tutils.flag(this, \"_name\", name);\n\t\t}\n\t\tif (!utils.flag(this, \"soft\")) {\n\t\t\t// avoid WebKit's proper tail call to preserve stacktrace offset for inline snapshot\n\t\t\t// https://webkit.org/blog/6240/ecmascript-6-proper-tail-calls-in-webkit\n\t\t\ttry {\n\t\t\t\treturn fn.apply(this, args);\n\t\t\t} finally {}\n\t\t}\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tif (!test) {\n\t\t\tthrow new Error(\"expect.soft() can only be used inside a test\");\n\t\t}\n\t\ttry {\n\t\t\tconst result = fn.apply(this, args);\n\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\treturn result.then(noop, (err) => {\n\t\t\t\t\thandleTestError(test, err);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\thandleTestError(test, err);\n\t\t}\n\t};\n}\n\n// Jest Expect Compact\nconst JestChaiExpect = (chai, utils) => {\n\tconst { AssertionError } = chai;\n\tconst customTesters = getCustomEqualityTesters();\n\tfunction def(name, fn) {\n\t\tconst addMethod = (n) => {\n\t\t\tconst softWrapper = wrapAssertion(utils, n, fn);\n\t\t\tutils.addMethod(chai.Assertion.prototype, n, softWrapper);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper);\n\t\t};\n\t\tif (Array.isArray(name)) {\n\t\t\tname.forEach((n) => addMethod(n));\n\t\t} else {\n\t\t\taddMethod(name);\n\t\t}\n\t}\n\t[\n\t\t\"throw\",\n\t\t\"throws\",\n\t\t\"Throw\"\n\t].forEach((m) => {\n\t\tutils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n\t\t\treturn function(...args) {\n\t\t\t\tconst promise = utils.flag(this, \"promise\");\n\t\t\t\tconst object = utils.flag(this, \"object\");\n\t\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\t\tif (promise === \"rejects\") {\n\t\t\t\t\tutils.flag(this, \"object\", () => {\n\t\t\t\t\t\tthrow object;\n\t\t\t\t\t});\n\t\t\t\t} else if (promise === \"resolves\" && typeof object !== \"function\") {\n\t\t\t\t\tif (!isNot) {\n\t\t\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\t\t\t\tconst error = { showDiff: false };\n\t\t\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_super.apply(this, args);\n\t\t\t};\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withTest\", function(test) {\n\t\tutils.flag(this, \"vitest-test\", test);\n\t\treturn this;\n\t});\n\tdef(\"toEqual\", function(expected) {\n\t\tconst actual = utils.flag(this, \"object\");\n\t\tconst equal = equals(actual, expected, [...customTesters, iterableEquality]);\n\t\treturn this.assert(equal, \"expected #{this} to deeply equal #{exp}\", \"expected #{this} to not deeply equal #{exp}\", expected, actual);\n\t});\n\tdef(\"toStrictEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst equal = equals(obj, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\ttypeEquality,\n\t\t\tsparseArrayEquality,\n\t\t\tarrayBufferEquality\n\t\t], true);\n\t\treturn this.assert(equal, \"expected #{this} to strictly equal #{exp}\", \"expected #{this} to not strictly equal #{exp}\", expected, obj);\n\t});\n\tdef(\"toBe\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = Object.is(actual, expected);\n\t\tlet deepEqualityName = \"\";\n\t\tif (!pass) {\n\t\t\tconst toStrictEqualPass = equals(actual, expected, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\ttypeEquality,\n\t\t\t\tsparseArrayEquality,\n\t\t\t\tarrayBufferEquality\n\t\t\t], true);\n\t\t\tif (toStrictEqualPass) {\n\t\t\t\tdeepEqualityName = \"toStrictEqual\";\n\t\t\t} else {\n\t\t\t\tconst toEqualPass = equals(actual, expected, [...customTesters, iterableEquality]);\n\t\t\t\tif (toEqualPass) {\n\t\t\t\t\tdeepEqualityName = \"toEqual\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.assert(pass, generateToBeMessage(deepEqualityName), \"expected #{this} not to be #{exp} // Object.is equality\", expected, actual);\n\t});\n\tdef(\"toMatchObject\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = equals(actual, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\tsubsetEquality\n\t\t]);\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\tpass,\n\t\t\t\t\"expected #{this} to match object #{exp}\",\n\t\t\t\t\"expected #{this} to not match object #{exp}\",\n\t\t\t\texpected,\n\t\t\t\tactualSubset,\n\t\t\t\tfalse\n\t\t\t]);\n\t\t\tconst message = stripped === 0 ? msg : `${msg}\\n(${stripped} matching ${stripped === 1 ? \"property\" : \"properties\"} omitted from actual)`;\n\t\t\tthrow new AssertionError(message, {\n\t\t\t\tshowDiff: true,\n\t\t\t\texpected,\n\t\t\t\tactual: actualSubset\n\t\t\t});\n\t\t}\n\t});\n\tdef(\"toMatch\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tif (typeof actual !== \"string\") {\n\t\t\tthrow new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);\n\t\t}\n\t\treturn this.assert(typeof expected === \"string\" ? actual.includes(expected) : actual.match(expected), `expected #{this} to match #{exp}`, `expected #{this} not to match #{exp}`, expected, actual);\n\t});\n\tdef(\"toContain\", function(item) {\n\t\tconst actual = this._obj;\n\t\tif (typeof Node !== \"undefined\" && actual instanceof Node) {\n\t\t\tif (!(item instanceof Node)) {\n\t\t\t\tthrow new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);\n\t\t\t}\n\t\t\treturn this.assert(actual.contains(item), \"expected #{this} to contain element #{exp}\", \"expected #{this} not to contain element #{exp}\", item, actual);\n\t\t}\n\t\tif (typeof DOMTokenList !== \"undefined\" && actual instanceof DOMTokenList) {\n\t\t\tassertTypes(item, \"class name\", [\"string\"]);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tconst expectedClassList = isNot ? actual.value.replace(item, \"\").trim() : `${actual.value} ${item}`;\n\t\t\treturn this.assert(actual.contains(item), `expected \"${actual.value}\" to contain \"${item}\"`, `expected \"${actual.value}\" not to contain \"${item}\"`, expectedClassList, actual.value);\n\t\t}\n\t\t// handle simple case on our own using `this.assert` to include diff in error message\n\t\tif (typeof actual === \"string\" && typeof item === \"string\") {\n\t\t\treturn this.assert(actual.includes(item), `expected #{this} to contain #{exp}`, `expected #{this} not to contain #{exp}`, item, actual);\n\t\t}\n\t\t// make \"actual\" indexable to have compatibility with jest\n\t\tif (actual != null && typeof actual !== \"string\") {\n\t\t\tutils.flag(this, \"object\", Array.from(actual));\n\t\t}\n\t\treturn this.contain(item);\n\t});\n\tdef(\"toContainEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst index = Array.from(obj).findIndex((item) => {\n\t\t\treturn equals(item, expected, customTesters);\n\t\t});\n\t\tthis.assert(index !== -1, \"expected #{this} to deep equally contain #{exp}\", \"expected #{this} to not deep equally contain #{exp}\", expected);\n\t});\n\tdef(\"toBeTruthy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Boolean(obj), \"expected #{this} to be truthy\", \"expected #{this} to not be truthy\", true, obj);\n\t});\n\tdef(\"toBeFalsy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(!obj, \"expected #{this} to be falsy\", \"expected #{this} to not be falsy\", false, obj);\n\t});\n\tdef(\"toBeGreaterThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual > expected, `expected ${actual} to be greater than ${expected}`, `expected ${actual} to be not greater than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeGreaterThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual >= expected, `expected ${actual} to be greater than or equal to ${expected}`, `expected ${actual} to be not greater than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual < expected, `expected ${actual} to be less than ${expected}`, `expected ${actual} to be not less than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual <= expected, `expected ${actual} to be less than or equal to ${expected}`, `expected ${actual} to be not less than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeNaN\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Number.isNaN(obj), \"expected #{this} to be NaN\", \"expected #{this} not to be NaN\", Number.NaN, obj);\n\t});\n\tdef(\"toBeUndefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(undefined === obj, \"expected #{this} to be undefined\", \"expected #{this} not to be undefined\", undefined, obj);\n\t});\n\tdef(\"toBeNull\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(obj === null, \"expected #{this} to be null\", \"expected #{this} not to be null\", null, obj);\n\t});\n\tdef(\"toBeNullable\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(obj == null, \"expected #{this} to be nullish\", \"expected #{this} not to be nullish\", null, obj);\n\t});\n\tdef(\"toBeDefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(typeof obj !== \"undefined\", \"expected #{this} to be defined\", \"expected #{this} to be undefined\", obj);\n\t});\n\tdef(\"toBeTypeOf\", function(expected) {\n\t\tconst actual = typeof this._obj;\n\t\tconst equal = expected === actual;\n\t\treturn this.assert(equal, \"expected #{this} to be type of #{exp}\", \"expected #{this} not to be type of #{exp}\", expected, actual);\n\t});\n\tdef(\"toBeInstanceOf\", function(obj) {\n\t\treturn this.instanceOf(obj);\n\t});\n\tdef(\"toHaveLength\", function(length) {\n\t\treturn this.have.length(length);\n\t});\n\t// destructuring, because it checks `arguments` inside, and value is passing as `undefined`\n\tdef(\"toHaveProperty\", function(...args) {\n\t\tif (Array.isArray(args[0])) {\n\t\t\targs[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n\t\t}\n\t\tconst actual = this._obj;\n\t\tconst [propertyName, expected] = args;\n\t\tconst getValue = () => {\n\t\t\tconst hasOwn = Object.hasOwn(actual, propertyName);\n\t\t\tif (hasOwn) {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: actual[propertyName],\n\t\t\t\t\texists: true\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn utils.getPathInfo(actual, propertyName);\n\t\t};\n\t\tconst { value, exists } = getValue();\n\t\tconst pass = exists && (args.length === 1 || equals(expected, value, customTesters));\n\t\tconst valueString = args.length === 1 ? \"\" : ` with value ${utils.objDisplay(expected)}`;\n\t\treturn this.assert(pass, `expected #{this} to have property \"${propertyName}\"${valueString}`, `expected #{this} to not have property \"${propertyName}\"${valueString}`, expected, exists ? value : undefined);\n\t});\n\tdef(\"toBeCloseTo\", function(received, precision = 2) {\n\t\tconst expected = this._obj;\n\t\tlet pass = false;\n\t\tlet expectedDiff = 0;\n\t\tlet receivedDiff = 0;\n\t\tif (received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY) {\n\t\t\tpass = true;\n\t\t} else if (received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY) {\n\t\t\tpass = true;\n\t\t} else {\n\t\t\texpectedDiff = 10 ** -precision / 2;\n\t\t\treceivedDiff = Math.abs(expected - received);\n\t\t\tpass = receivedDiff < expectedDiff;\n\t\t}\n\t\treturn this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, received, expected, false);\n\t});\n\tfunction assertIsMock(assertion) {\n\t\tif (!isMockFunction(assertion._obj)) {\n\t\t\tthrow new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);\n\t\t}\n\t}\n\tfunction getSpy(assertion) {\n\t\tassertIsMock(assertion);\n\t\treturn assertion._obj;\n\t}\n\tdef([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === number, `expected \"${spyName}\" to be called #{exp} times, but got ${callCount} times`, `expected \"${spyName}\" to not be called #{exp} times`, number, callCount, false);\n\t});\n\tdef(\"toHaveBeenCalledOnce\", function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === 1, `expected \"${spyName}\" to be called once, but got ${callCount} times`, `expected \"${spyName}\" to not be called once`, 1, callCount, false);\n\t});\n\tdef([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst called = callCount > 0;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet msg = utils.getMessage(this, [\n\t\t\tcalled,\n\t\t\t`expected \"${spyName}\" to be called at least once`,\n\t\t\t`expected \"${spyName}\" to not be called at all, but actually been called ${callCount} times`,\n\t\t\ttrue,\n\t\t\tcalled\n\t\t]);\n\t\tif (called && isNot) {\n\t\t\tmsg = formatCalls(spy, msg);\n\t\t}\n\t\tif (called && isNot || !called && !isNot) {\n\t\t\tthrow new AssertionError(msg);\n\t\t}\n\t});\n\t// manually compare array elements since `jestEquals` cannot\n\t// apply asymmetric matcher to `undefined` array element.\n\tfunction equalsArgumentArray(a, b) {\n\t\treturn a.length === b.length && a.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));\n\t}\n\tdef([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args));\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst msg = utils.getMessage(this, [\n\t\t\tpass,\n\t\t\t`expected \"${spyName}\" to be called with arguments: #{exp}`,\n\t\t\t`expected \"${spyName}\" to not be called with arguments: #{exp}`,\n\t\t\targs\n\t\t]);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef(\"toHaveBeenCalledExactlyOnceWith\", function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst hasCallWithArgs = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args));\n\t\tconst pass = hasCallWithArgs && callCount === 1;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst msg = utils.getMessage(this, [\n\t\t\tpass,\n\t\t\t`expected \"${spyName}\" to be called once with arguments: #{exp}`,\n\t\t\t`expected \"${spyName}\" to not be called once with arguments: #{exp}`,\n\t\t\targs\n\t\t]);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef(\"toHaveBeenNthCalledWith\", function(times, ...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst nthCall = spy.mock.calls[times - 1];\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst isCalled = times <= callCount;\n\t\tthis.assert(nthCall && equalsArgumentArray(nthCall, args), `expected ${ordinal(times)} \"${spyName}\" call to have been called with #{exp}${isCalled ? `` : `, but called only ${callCount} times`}`, `expected ${ordinal(times)} \"${spyName}\" call to not have been called with #{exp}`, args, nthCall, isCalled);\n\t});\n\tdef(\"toHaveBeenLastCalledWith\", function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst lastCall = spy.mock.calls.at(-1);\n\t\tthis.assert(lastCall && equalsArgumentArray(lastCall, args), `expected last \"${spyName}\" call to have been called with #{exp}`, `expected last \"${spyName}\" call to not have been called with #{exp}`, args, lastCall);\n\t});\n\t/**\n\t* Used for `toHaveBeenCalledBefore` and `toHaveBeenCalledAfter` to determine if the expected spy was called before the result spy.\n\t*/\n\tfunction isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) {\n\t\tconst beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder;\n\t\tconst afterInvocationCallOrder = afterSpy.mock.invocationCallOrder;\n\t\tif (beforeInvocationCallOrder.length === 0) {\n\t\t\treturn !failIfNoFirstInvocation;\n\t\t}\n\t\tif (afterInvocationCallOrder.length === 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn beforeInvocationCallOrder[0] < afterInvocationCallOrder[0];\n\t}\n\tdef([\"toHaveBeenCalledBefore\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) {\n\t\t\tthrow new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\t}\n\t\tthis.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected \"${expectSpy.getMockName()}\" to have been called before \"${resultSpy.getMockName()}\"`, `expected \"${expectSpy.getMockName()}\" to not have been called before \"${resultSpy.getMockName()}\"`, resultSpy, expectSpy);\n\t});\n\tdef([\"toHaveBeenCalledAfter\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) {\n\t\t\tthrow new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\t}\n\t\tthis.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected \"${expectSpy.getMockName()}\" to have been called after \"${resultSpy.getMockName()}\"`, `expected \"${expectSpy.getMockName()}\" to not have been called after \"${resultSpy.getMockName()}\"`, resultSpy, expectSpy);\n\t});\n\tdef([\"toThrow\", \"toThrowError\"], function(expected) {\n\t\tif (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp) {\n\t\t\t// Fixes the issue related to `chai` <https://github.com/vitest-dev/vitest/issues/6618>\n\t\t\treturn this.throws(expected === \"\" ? /^$/ : expected);\n\t\t}\n\t\tconst obj = this._obj;\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet thrown = null;\n\t\tif (promise === \"rejects\") {\n\t\t\tthrown = obj;\n\t\t} else if (promise === \"resolves\" && typeof obj !== \"function\") {\n\t\t\tif (!isNot) {\n\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\t\tconst error = { showDiff: false };\n\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tlet isThrow = false;\n\t\t\ttry {\n\t\t\t\tobj();\n\t\t\t} catch (err) {\n\t\t\t\tisThrow = true;\n\t\t\t\tthrown = err;\n\t\t\t}\n\t\t\tif (!isThrow && !isNot) {\n\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected function to throw an error, but it didn't\";\n\t\t\t\tconst error = { showDiff: false };\n\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t}\n\t\t}\n\t\tif (typeof expected === \"function\") {\n\t\t\tconst name = expected.name || expected.prototype.constructor.name;\n\t\t\treturn this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown);\n\t\t}\n\t\tif (isError(expected)) {\n\t\t\tconst equal = equals(thrown, expected, [...customTesters, iterableEquality]);\n\t\t\treturn this.assert(equal, \"expected a thrown error to be #{exp}\", \"expected a thrown error not to be #{exp}\", expected, thrown);\n\t\t}\n\t\tif (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n\t\t\tconst matcher = expected;\n\t\t\treturn this.assert(thrown && matcher.asymmetricMatch(thrown), \"expected error to match asymmetric matcher\", \"expected error not to match asymmetric matcher\", matcher, thrown);\n\t\t}\n\t\tconst equal = equals(thrown, expected, [...customTesters, iterableEquality]);\n\t\treturn this.assert(equal, \"expected a thrown value to equal #{exp}\", \"expected a thrown value not to equal #{exp}\", expected, thrown);\n\t});\n\t[{\n\t\tname: \"toHaveResolved\",\n\t\tcondition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type }) => type === \"fulfilled\"),\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturned\", \"toReturn\"],\n\t\tcondition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\"),\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function() {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} at least once`, `expected \"${spyName}\" to not be successfully ${action}`, pass, !pass, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedTimes\",\n\t\tcondition: (spy, times) => spy.mock.settledResults.reduce((s, { type }) => type === \"fulfilled\" ? ++s : s, 0) === times,\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturnedTimes\", \"toReturnTimes\"],\n\t\tcondition: (spy, times) => spy.mock.results.reduce((s, { type }) => type === \"throw\" ? s : ++s, 0) === times,\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(times) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy, times);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} ${times} times`, `expected \"${spyName}\" to not be successfully ${action} ${times} times`, `expected resolved times: ${times}`, `received resolved times: ${pass}`, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedWith\",\n\t\tcondition: (spy, value) => spy.mock.settledResults.some(({ type, value: result }) => type === \"fulfilled\" && equals(value, result)),\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: [\"toHaveReturnedWith\", \"toReturnWith\"],\n\t\tcondition: (spy, value) => spy.mock.results.some(({ type, value: result }) => type === \"return\" && equals(value, result)),\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst pass = condition(spy, value);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\tconst spyName = spy.getMockName();\n\t\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\t\tpass,\n\t\t\t\t\t`expected \"${spyName}\" to ${action} with: #{exp} at least once`,\n\t\t\t\t\t`expected \"${spyName}\" to not ${action} with: #{exp}`,\n\t\t\t\t\tvalue\n\t\t\t\t]);\n\t\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\t\tthrow new AssertionError(formatReturns(spy, results, msg, value));\n\t\t\t}\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveLastResolvedWith\",\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.settledResults.at(-1);\n\t\t\treturn Boolean(result && result.type === \"fulfilled\" && equals(result.value, value));\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: \"toHaveLastReturnedWith\",\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.results.at(-1);\n\t\t\treturn Boolean(result && result.type === \"return\" && equals(result.value, value));\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\tconst result = results.at(-1);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tthis.assert(condition(spy, value), `expected last \"${spyName}\" call to ${action} #{exp}`, `expected last \"${spyName}\" call to not ${action} #{exp}`, value, result?.value);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveNthResolvedWith\",\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.settledResults[index - 1];\n\t\t\treturn result && result.type === \"fulfilled\" && equals(result.value, value);\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: \"toHaveNthReturnedWith\",\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.results[index - 1];\n\t\t\treturn result && result.type === \"return\" && equals(result.value, value);\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(nthCall, value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\tconst result = results[nthCall - 1];\n\t\t\tconst ordinalCall = `${ordinal(nthCall)} call`;\n\t\t\tthis.assert(condition(spy, nthCall, value), `expected ${ordinalCall} \"${spyName}\" call to ${action} #{exp}`, `expected ${ordinalCall} \"${spyName}\" call to not ${action} #{exp}`, value, result?.value);\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withContext\", function(context) {\n\t\tfor (const key in context) {\n\t\t\tutils.flag(this, key, context[key]);\n\t\t}\n\t\treturn this;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"resolves\", function __VITEST_RESOLVES__() {\n\t\tconst error = new Error(\"resolves\");\n\t\tutils.flag(this, \"promise\", \"resolves\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tif (utils.flag(this, \"poll\")) {\n\t\t\tthrow new SyntaxError(`expect.poll() is not supported in combination with .resolves`);\n\t\t}\n\t\tif (typeof obj?.then !== \"function\") {\n\t\t\tthrow new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);\n\t\t}\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") {\n\t\t\t\treturn result instanceof chai.Assertion ? proxy : result;\n\t\t\t}\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = Promise.resolve(obj).then((value) => {\n\t\t\t\t\tutils.flag(this, \"object\", value);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t}, (err) => {\n\t\t\t\t\tconst _error = new AssertionError(`promise rejected \"${utils.inspect(err)}\" instead of resolving`, { showDiff: false });\n\t\t\t\t\t_error.cause = err;\n\t\t\t\t\tthrow _error;\n\t\t\t\t}).catch((err) => {\n\t\t\t\t\tif (isError(err) && error.stack) {\n\t\t\t\t\t\terr.stack = error.stack.replace(error.message, err.message);\n\t\t\t\t\t}\n\t\t\t\t\tthrow err;\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, \"soft\"));\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"rejects\", function __VITEST_REJECTS__() {\n\t\tconst error = new Error(\"rejects\");\n\t\tutils.flag(this, \"promise\", \"rejects\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst wrapper = typeof obj === \"function\" ? obj() : obj;\n\t\tif (utils.flag(this, \"poll\")) {\n\t\t\tthrow new SyntaxError(`expect.poll() is not supported in combination with .rejects`);\n\t\t}\n\t\tif (typeof wrapper?.then !== \"function\") {\n\t\t\tthrow new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);\n\t\t}\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") {\n\t\t\t\treturn result instanceof chai.Assertion ? proxy : result;\n\t\t\t}\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = Promise.resolve(wrapper).then((value) => {\n\t\t\t\t\tconst _error = new AssertionError(`promise resolved \"${utils.inspect(value)}\" instead of rejecting`, {\n\t\t\t\t\t\tshowDiff: true,\n\t\t\t\t\t\texpected: new Error(\"rejected promise\"),\n\t\t\t\t\t\tactual: value\n\t\t\t\t\t});\n\t\t\t\t\tthrow _error;\n\t\t\t\t}, (err) => {\n\t\t\t\t\tutils.flag(this, \"object\", err);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t}).catch((err) => {\n\t\t\t\t\tif (isError(err) && error.stack) {\n\t\t\t\t\t\terr.stack = error.stack.replace(error.message, err.message);\n\t\t\t\t\t}\n\t\t\t\t\tthrow err;\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, \"soft\"));\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n};\nfunction formatCalls(spy, msg, showActualCall) {\n\tif (spy.mock.calls.length) {\n\t\tmsg += c.gray(`\\n\\nReceived:\\n\\n${spy.mock.calls.map((callArg, i) => {\n\t\t\tlet methodCall = c.bold(`  ${ordinal(i + 1)} ${spy.getMockName()} call:\\n\\n`);\n\t\t\tif (showActualCall) {\n\t\t\t\tmethodCall += diff(showActualCall, callArg, { omitAnnotationLines: true });\n\t\t\t} else {\n\t\t\t\tmethodCall += stringify(callArg).split(\"\\n\").map((line) => `    ${line}`).join(\"\\n\");\n\t\t\t}\n\t\t\tmethodCall += \"\\n\";\n\t\t\treturn methodCall;\n\t\t}).join(\"\\n\")}`);\n\t}\n\tmsg += c.gray(`\\n\\nNumber of calls: ${c.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\nfunction formatReturns(spy, results, msg, showActualReturn) {\n\tif (results.length) {\n\t\tmsg += c.gray(`\\n\\nReceived:\\n\\n${results.map((callReturn, i) => {\n\t\t\tlet methodCall = c.bold(`  ${ordinal(i + 1)} ${spy.getMockName()} call return:\\n\\n`);\n\t\t\tif (showActualReturn) {\n\t\t\t\tmethodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: true });\n\t\t\t} else {\n\t\t\t\tmethodCall += stringify(callReturn).split(\"\\n\").map((line) => `    ${line}`).join(\"\\n\");\n\t\t\t}\n\t\t\tmethodCall += \"\\n\";\n\t\t\treturn methodCall;\n\t\t}).join(\"\\n\")}`);\n\t}\n\tmsg += c.gray(`\\n\\nNumber of calls: ${c.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\n\nfunction getMatcherState(assertion, expect) {\n\tconst obj = assertion._obj;\n\tconst isNot = util.flag(assertion, \"negate\");\n\tconst promise = util.flag(assertion, \"promise\") || \"\";\n\tconst customMessage = util.flag(assertion, \"message\");\n\tconst jestUtils = {\n\t\t...getMatcherUtils(),\n\t\tdiff,\n\t\tstringify,\n\t\titerableEquality,\n\t\tsubsetEquality\n\t};\n\tlet task = util.flag(assertion, \"vitest-test\");\n\tconst currentTestName = task?.fullTestName ?? \"\";\n\tif (task?.type !== \"test\") {\n\t\ttask = undefined;\n\t}\n\tconst matcherState = {\n\t\t...getState(expect),\n\t\tcurrentTestName,\n\t\tcustomTesters: getCustomEqualityTesters(),\n\t\tisNot,\n\t\tutils: jestUtils,\n\t\tpromise,\n\t\tequals,\n\t\tsuppressedErrors: [],\n\t\tsoft: util.flag(assertion, \"soft\"),\n\t\tpoll: util.flag(assertion, \"poll\"),\n\t\tassertion\n\t};\n\tObject.assign(matcherState, { task });\n\treturn {\n\t\tstate: matcherState,\n\t\tisNot,\n\t\tobj,\n\t\tcustomMessage\n\t};\n}\nclass JestExtendError extends Error {\n\tconstructor(message, actual, expected, __vitest_error_context__) {\n\t\tsuper(message);\n\t\tthis.actual = actual;\n\t\tthis.expected = expected;\n\t\tthis.__vitest_error_context__ = __vitest_error_context__;\n\t}\n}\nfunction JestExtendPlugin(c, expect, matchers) {\n\treturn (_, utils) => {\n\t\tObject.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {\n\t\t\tfunction __VITEST_EXTEND_ASSERTION__(...args) {\n\t\t\t\tconst { state, isNot, obj, customMessage } = getMatcherState(this, expect);\n\t\t\t\tconst result = expectAssertion.call(state, obj, ...args);\n\t\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\treturn thenable.then(({ pass, message, actual, expected, meta }) => {\n\t\t\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\t\t\tconst errorMessage = (customMessage ? `${customMessage}: ` : \"\") + message();\n\t\t\t\t\t\t\tthrow new JestExtendError(errorMessage, actual, expected, {\n\t\t\t\t\t\t\t\tassertionName: expectAssertionName,\n\t\t\t\t\t\t\t\tmeta\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst { pass, message, actual, expected, meta } = result;\n\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\tconst errorMessage = (customMessage ? `${customMessage}: ` : \"\") + message();\n\t\t\t\t\tthrow new JestExtendError(errorMessage, actual, expected, {\n\t\t\t\t\t\tassertionName: expectAssertionName,\n\t\t\t\t\t\tmeta\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst softWrapper = wrapAssertion(utils, expectAssertionName, __VITEST_EXTEND_ASSERTION__);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper);\n\t\t\tutils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);\n\t\t\t// `expect.poll()` inspects the installed Chai assertion method,\n\t\t\t// so copy the internal marker from the original matcher function.\n\t\t\t// this is only for domain snapshot matchers for now.\n\t\t\tif (expectAssertion.__vitest_poll_takeover__) {\n\t\t\t\tconst addedMethod = c.Assertion.prototype[expectAssertionName];\n\t\t\t\tObject.defineProperty(addedMethod, \"__vitest_poll_takeover__\", { value: true });\n\t\t\t}\n\t\t\tclass CustomMatcher extends AsymmetricMatcher {\n\t\t\t\tconstructor(inverse = false, ...sample) {\n\t\t\t\t\tsuper(sample, inverse);\n\t\t\t\t}\n\t\t\t\tasymmetricMatch(other) {\n\t\t\t\t\tconst { pass } = expectAssertion.call(this.getMatcherContext(expect), other, ...this.sample);\n\t\t\t\t\treturn this.inverse ? !pass : pass;\n\t\t\t\t}\n\t\t\t\ttoString() {\n\t\t\t\t\treturn `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n\t\t\t\t}\n\t\t\t\tgetExpectedType() {\n\t\t\t\t\treturn \"any\";\n\t\t\t\t}\n\t\t\t\ttoAsymmetricMatcher() {\n\t\t\t\t\treturn `${this.toString()}<${this.sample.map((item) => stringify(item)).join(\", \")}>`;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst customMatcher = (...sample) => new CustomMatcher(false, ...sample);\n\t\t\tObject.defineProperty(expect, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\tObject.defineProperty(expect.not, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: (...sample) => new CustomMatcher(true, ...sample),\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\t// keep track of asymmetric matchers on global so that it can be copied over to local context's `expect`.\n\t\t\t// note that the negated variant is automatically shared since it's assigned on the single `expect.not` object.\n\t\t\tObject.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t});\n\t};\n}\nconst JestExtend = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"extend\", (expect, expects) => {\n\t\tuse(JestExtendPlugin(chai, expect, expects));\n\t});\n};\n\nexport { ASYMMETRIC_MATCHERS_OBJECT, Any, Anything, ArrayContaining, AsymmetricMatcher, ChaiStyleAssertions, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, SchemaMatching, StringContaining, StringMatching, addCustomEqualityTesters, arrayBufferEquality, createAssertionMessage, customMatchers, equals, fnNameFor, generateToBeMessage, getObjectKeys, getObjectSubset, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isError, isImmutableUnorderedKeyed, isImmutableUnorderedSet, isStandardSchema, iterableEquality, pluralize, recordAsyncExpect, setState, sparseArrayEquality, subsetEquality, typeEquality, wrapAssertion };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAUA,MAAM,uBAAuB,MAAM,UAAU;CAC5C,SAAS,YAAY,MAAM,YAAY;EACtC,MAAM,YAAY,KAAK,UAAU,WAAW,MAAM,WAAW;GAC5D,MAAM,aAAa,KAAK,UAAU,UAAU;GAC5C,IAAI,CAAC,YACJ,MAAM,IAAI,MAAM,sBAAsB,OAAO,UAAU,EAAE,kEAAkE;GAE5H,OAAO,WAAW,KAAK,IAAI;EAC5B,CAAC;CACF;CACA,SAAS,oBAAoB,MAAM,YAAY,GAAG,MAAM;EACvD,MAAM,YAAY,KAAK,UAAU,WAAW,MAAM,WAAW;GAC5D,MAAM,aAAa,KAAK,UAAU,UAAU;GAC5C,IAAI,CAAC,YACJ,MAAM,IAAI,MAAM,sBAAsB,OAAO,UAAU,EAAE,kEAAkE;GAE5H,OAAO,WAAW,KAAK,MAAM,GAAG,IAAI;EACrC,CAAC;CACF;CACA,SAAS,UAAU,MAAM,YAAY;EACpC,MAAM,UAAU,KAAK,UAAU,WAAW,MAAM,SAAS,GAAG,MAAM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