@assistant-ui/react 0.8.16 → 0.8.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/index.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/benchmark.yGkUTKnC.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/index.SMVOaj7F.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/global.CkGT_TMy.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/run-once.Olz_Zkd8.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/vi.YFlodzP_.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/_commonjsHelpers.jjO7Zipk.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/tasks.IknbGB2n.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/base.5NT-gWu5.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/date.Ns1pGd_X.js","../../../../node_modules/.pnpm/vitest@1.6.1_@types+node@22.13.1_lightningcss@1.29.1_terser@5.38.1/node_modules/vitest/dist/vendor/index.dI9lHwVn.js","../../src/tests/setup.ts"],"sourcesContent":["export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';\nexport { b as bench } from './vendor/benchmark.yGkUTKnC.js';\nexport { i as isFirstRun, a as runOnce } from './vendor/run-once.Olz_Zkd8.js';\nexport { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.YFlodzP_.js';\nimport { d as dist } from './vendor/index.dI9lHwVn.js';\nexport { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.dI9lHwVn.js';\nimport * as chai from 'chai';\nexport { chai };\nexport { assert, should } from 'chai';\nimport '@vitest/runner/utils';\nimport '@vitest/utils';\nimport './vendor/index.SMVOaj7F.js';\nimport 'pathe';\nimport './vendor/global.CkGT_TMy.js';\nimport './vendor/env.AtSIuHFg.js';\nimport 'std-env';\nimport './vendor/_commonjsHelpers.jjO7Zipk.js';\nimport '@vitest/expect';\nimport '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport './vendor/tasks.IknbGB2n.js';\nimport '@vitest/utils/source-map';\nimport './vendor/base.5NT-gWu5.js';\nimport './vendor/date.Ns1pGd_X.js';\nimport '@vitest/spy';\n\n\n\nvar expectTypeOf = dist.expectTypeOf;\nexport { expectTypeOf };\n","import { getCurrentSuite } from '@vitest/runner';\nimport { createChainable } from '@vitest/runner/utils';\nimport { noop } from '@vitest/utils';\nimport { i as isRunningInBenchmark } from './index.SMVOaj7F.js';\n\nconst benchFns = /* @__PURE__ */ new WeakMap();\nconst benchOptsMap = /* @__PURE__ */ new WeakMap();\nfunction getBenchOptions(key) {\n return benchOptsMap.get(key);\n}\nfunction getBenchFn(key) {\n return benchFns.get(key);\n}\nconst bench = createBenchmark(\n function(name, fn = noop, options = {}) {\n if (!isRunningInBenchmark())\n throw new Error(\"`bench()` is only available in benchmark mode.\");\n const task = getCurrentSuite().task(formatName(name), {\n ...this,\n meta: {\n benchmark: true\n }\n });\n benchFns.set(task, fn);\n benchOptsMap.set(task, options);\n }\n);\nfunction createBenchmark(fn) {\n const benchmark = createChainable(\n [\"skip\", \"only\", \"todo\"],\n fn\n );\n benchmark.skipIf = (condition) => condition ? benchmark.skip : benchmark;\n benchmark.runIf = (condition) => condition ? benchmark : benchmark.skip;\n return benchmark;\n}\nfunction formatName(name) {\n return typeof name === \"string\" ? name : name instanceof Function ? name.name || \"<anonymous>\" : String(name);\n}\n\nexport { getBenchOptions as a, bench as b, getBenchFn as g };\n","import { relative } from 'pathe';\nimport '@vitest/runner/utils';\nimport '@vitest/utils';\nimport { g as getWorkerState } from './global.CkGT_TMy.js';\nimport './env.AtSIuHFg.js';\n\nfunction getRunMode() {\n return getWorkerState().config.mode;\n}\nfunction isRunningInBenchmark() {\n return getRunMode() === \"benchmark\";\n}\nconst relativePath = relative;\nfunction removeUndefinedValues(obj) {\n for (const key in Object.keys(obj)) {\n if (obj[key] === void 0)\n delete obj[key];\n }\n return obj;\n}\n\nexport { removeUndefinedValues as a, isRunningInBenchmark as i, relativePath as r };\n","function getWorkerState() {\n const workerState = globalThis.__vitest_worker__;\n if (!workerState) {\n const errorMsg = 'Vitest failed to access its internal state.\\n\\nOne of the following is possible:\\n- \"vitest\" is imported directly without running \"vitest\" command\\n- \"vitest\" is imported inside \"globalSetup\" (to fix this, use \"setupFiles\" instead, because \"globalSetup\" runs in a different context)\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n';\n throw new Error(errorMsg);\n }\n return workerState;\n}\nfunction provideWorkerState(context, state) {\n Object.defineProperty(context, \"__vitest_worker__\", {\n value: state,\n configurable: true,\n writable: true,\n enumerable: false\n });\n return state;\n}\nfunction getCurrentEnvironment() {\n const state = getWorkerState();\n return state == null ? void 0 : state.environment.name;\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g, provideWorkerState as p };\n","import { g as getWorkerState } from './global.CkGT_TMy.js';\n\nconst filesCount = /* @__PURE__ */ new Map();\nconst cache = /* @__PURE__ */ new Map();\nfunction runOnce(fn, key) {\n const filepath = getWorkerState().filepath || \"__unknown_files__\";\n if (!key) {\n filesCount.set(filepath, (filesCount.get(filepath) || 0) + 1);\n key = String(filesCount.get(filepath));\n }\n const id = `${filepath}:${key}`;\n if (!cache.has(id))\n cache.set(id, fn());\n return cache.get(id);\n}\nfunction isFirstRun() {\n let firstRun = false;\n runOnce(() => {\n firstRun = true;\n }, \"__vitest_first_run__\");\n return firstRun;\n}\nfunction resetRunOnceCounter() {\n filesCount.clear();\n}\n\nexport { runOnce as a, isFirstRun as i, resetRunOnceCounter as r };\n","import * as chai$1 from 'chai';\nimport { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers.jjO7Zipk.js';\nimport { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT as GLOBAL_EXPECT$1, ASYMMETRIC_MATCHERS_OBJECT as ASYMMETRIC_MATCHERS_OBJECT$1, getState, setState, addCustomEqualityTesters } from '@vitest/expect';\nimport { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';\nimport { getNames } from '@vitest/runner/utils';\nimport '@vitest/utils/error';\nimport { getCurrentTest } from '@vitest/runner';\nimport { g as getFullName } from './tasks.IknbGB2n.js';\nimport { g as getWorkerState, a as getCurrentEnvironment } from './global.CkGT_TMy.js';\nimport { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/utils';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { i as isChildProcess } from './base.5NT-gWu5.js';\nimport { R as RealDate, r as resetDate, m as mockDate } from './date.Ns1pGd_X.js';\nimport { spyOn, fn, isMockFunction, mocks } from '@vitest/spy';\n\nfunction resetModules(modules, resetMocks = false) {\n const skipPaths = [\n // Vitest\n /\\/vitest\\/dist\\//,\n /\\/vite-node\\/dist\\//,\n // yarn's .store folder\n /vitest-virtual-\\w+\\/dist/,\n // cnpm\n /@vitest\\/dist/,\n // don't clear mocks\n ...!resetMocks ? [/^mock:/] : []\n ];\n modules.forEach((mod, path) => {\n if (skipPaths.some((re) => re.test(path)))\n return;\n modules.invalidateModule(mod);\n });\n}\nfunction waitNextTick() {\n const { setTimeout } = getSafeTimers();\n return new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n await waitNextTick();\n const state = getWorkerState();\n const promises = [];\n let resolvingCount = 0;\n for (const mod of state.moduleCache.values()) {\n if (mod.promise && !mod.evaluated)\n promises.push(mod.promise);\n if (mod.resolving)\n resolvingCount++;\n }\n if (!promises.length && !resolvingCount)\n return;\n await Promise.allSettled(promises);\n await waitForImportsToResolve();\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset = {exports: {}};\n\n(function (module, exports) {\n\t(function() {\n\t\t(function(chaiSubset) {\n\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t} else {\n\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t}\n\t\t})(function(chai, utils) {\n\t\t\tvar Assertion = chai.Assertion;\n\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\texpected,\n\t\t\t\t\tactual,\n\t\t\t\t\tshowDiff\n\t\t\t\t);\n\t\t\t});\n\n\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t};\n\n\t\t\tfunction compare(expected, actual) {\n\t\t\t\tif (expected === actual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\treturn expected === actual;\n\t\t\t\t}\n\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t}\n\t\t\t\t\treturn ao === eo;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t}).call(commonjsGlobal); \n} (chaiSubset));\n\nvar chaiSubsetExports = chaiSubset.exports;\nvar Subset = /*@__PURE__*/getDefaultExportFromCjs(chaiSubsetExports);\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\nif (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {\n const globalState = /* @__PURE__ */ new WeakMap();\n const matchers = /* @__PURE__ */ Object.create(null);\n const customEqualityTesters = [];\n const assymetricMatchers = /* @__PURE__ */ Object.create(null);\n Object.defineProperty(globalThis, MATCHERS_OBJECT, {\n get: () => globalState\n });\n Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n configurable: true,\n get: () => ({\n state: globalState.get(globalThis[GLOBAL_EXPECT]),\n matchers,\n customEqualityTesters\n })\n });\n Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, {\n get: () => assymetricMatchers\n });\n}\n\nfunction recordAsyncExpect(test, promise) {\n if (test && promise instanceof Promise) {\n promise = promise.finally(() => {\n const index = test.promises.indexOf(promise);\n if (index !== -1)\n test.promises.splice(index, 1);\n });\n if (!test.promises)\n test.promises = [];\n test.promises.push(promise);\n }\n return promise;\n}\n\nlet _client;\nfunction getSnapshotClient() {\n if (!_client) {\n _client = new SnapshotClient({\n isEqual: (received, expected) => {\n return equals(received, expected, [iterableEquality, subsetEquality]);\n }\n });\n }\n return _client;\n}\nfunction getError(expected, promise) {\n if (typeof expected !== \"function\") {\n if (!promise)\n throw new Error(`expected must be a function, received ${typeof expected}`);\n return expected;\n }\n try {\n expected();\n } catch (e) {\n return e;\n }\n throw new Error(\"snapshot function didn't throw\");\n}\nconst SnapshotPlugin = (chai, utils) => {\n const getTestNames = (test) => {\n var _a;\n if (!test)\n return {};\n return {\n filepath: (_a = test.file) == null ? void 0 : _a.filepath,\n name: getNames(test).slice(1).join(\" > \")\n };\n };\n for (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) {\n utils.addMethod(\n chai.Assertion.prototype,\n key,\n function(properties, message) {\n const isNot = utils.flag(this, \"negate\");\n if (isNot)\n throw new Error(`${key} cannot be used with \"not\"`);\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\" && typeof message === \"undefined\") {\n message = properties;\n properties = void 0;\n }\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: false,\n properties,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n }\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchFileSnapshot\",\n function(file, message) {\n const isNot = utils.flag(this, \"negate\");\n if (isNot)\n throw new Error('toMatchFileSnapshot cannot be used with \"not\"');\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const errorMessage = utils.flag(this, \"message\");\n const promise = getSnapshotClient().assertRaw({\n received: expected,\n message,\n isInline: false,\n rawSnapshot: {\n file\n },\n errorMessage,\n ...getTestNames(test)\n });\n return recordAsyncExpect(test, promise);\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchInlineSnapshot\",\n function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n var _a;\n const isNot = utils.flag(this, \"negate\");\n if (isNot)\n throw new Error('toMatchInlineSnapshot cannot be used with \"not\"');\n const test = utils.flag(this, \"vitest-test\");\n const isInsideEach = test && (test.each || ((_a = test.suite) == null ? void 0 : _a.each));\n if (isInsideEach)\n throw new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n if (typeof properties === \"string\") {\n message = inlineSnapshot;\n inlineSnapshot = properties;\n properties = void 0;\n }\n if (inlineSnapshot)\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: true,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingSnapshot\",\n function(message) {\n const isNot = utils.flag(this, \"negate\");\n if (isNot)\n throw new Error('toThrowErrorMatchingSnapshot cannot be used with \"not\"');\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getError(expected, promise),\n message,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingInlineSnapshot\",\n function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n var _a;\n const isNot = utils.flag(this, \"negate\");\n if (isNot)\n throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with \"not\"');\n const test = utils.flag(this, \"vitest-test\");\n const isInsideEach = test && (test.each || ((_a = test.suite) == null ? void 0 : _a.each));\n if (isInsideEach)\n throw new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n if (inlineSnapshot)\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n getSnapshotClient().assert({\n received: getError(expected, promise),\n message,\n inlineSnapshot,\n isInline: true,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.expect,\n \"addSnapshotSerializer\",\n addSerializer\n );\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n var _a;\n const expect = (value, message) => {\n const { assertionCalls } = getState(expect);\n setState({ assertionCalls: assertionCalls + 1, soft: false }, expect);\n const assert2 = chai$1.expect(value, message);\n const _test = test || getCurrentTest();\n if (_test)\n return assert2.withTest(_test);\n else\n return assert2;\n };\n Object.assign(expect, chai$1.expect);\n Object.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT$1]);\n expect.getState = () => getState(expect);\n expect.setState = (state) => setState(state, expect);\n const globalState = getState(globalThis[GLOBAL_EXPECT$1]) || {};\n setState({\n // this should also add \"snapshotState\" that is added conditionally\n ...globalState,\n assertionCalls: 0,\n isExpectingAssertions: false,\n isExpectingAssertionsError: null,\n expectedAssertionsNumber: null,\n expectedAssertionsNumberErrorGen: null,\n environment: getCurrentEnvironment(),\n testPath: test ? (_a = test.suite.file) == null ? void 0 : _a.filepath : globalState.testPath,\n currentTestName: test ? getFullName(test) : globalState.currentTestName\n }, expect);\n expect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n expect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters);\n expect.soft = (...args) => {\n const assert2 = expect(...args);\n expect.setState({\n soft: true\n });\n return assert2;\n };\n expect.unreachable = (message) => {\n chai$1.assert.fail(`expected${message ? ` \"${message}\" ` : \" \"}not to be reached`);\n };\n function assertions(expected) {\n const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n if (Error.captureStackTrace)\n Error.captureStackTrace(errorGen(), assertions);\n expect.setState({\n expectedAssertionsNumber: expected,\n expectedAssertionsNumberErrorGen: errorGen\n });\n }\n function hasAssertions() {\n const error = new Error(\"expected any number of assertion, but got none\");\n if (Error.captureStackTrace)\n Error.captureStackTrace(error, hasAssertions);\n expect.setState({\n isExpectingAssertions: true,\n isExpectingAssertionsError: error\n });\n }\n chai$1.util.addMethod(expect, \"assertions\", assertions);\n chai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n return expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT$1, {\n value: globalExpect,\n writable: true,\n configurable: true\n});\n\n/**\n * A reference to the global object\n *\n * @type {object} globalObject\n */\nvar globalObject$1;\n\n/* istanbul ignore else */\nif (typeof commonjsGlobal !== \"undefined\") {\n // Node\n globalObject$1 = commonjsGlobal;\n} else if (typeof window !== \"undefined\") {\n // Browser\n globalObject$1 = window;\n} else {\n // WebWorker\n globalObject$1 = self;\n}\n\nvar global = globalObject$1;\n\n/**\n * Is true when the environment causes an error to be thrown for accessing the\n * __proto__ property.\n *\n * This is necessary in order to support `node --disable-proto=throw`.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n *\n * @type {boolean}\n */\nlet throwsOnProto$1;\ntry {\n const object = {};\n // eslint-disable-next-line no-proto, no-unused-expressions\n object.__proto__;\n throwsOnProto$1 = false;\n} catch (_) {\n // This branch is covered when tests are run with `--disable-proto=throw`,\n // however we can test both branches at the same time, so this is ignored\n /* istanbul ignore next */\n throwsOnProto$1 = true;\n}\n\nvar throwsOnProto_1 = throwsOnProto$1;\n\nvar call = Function.call;\nvar throwsOnProto = throwsOnProto_1;\n\nvar disallowedProperties = [\n // ignore size because it throws from Map\n \"size\",\n \"caller\",\n \"callee\",\n \"arguments\",\n];\n\n// This branch is covered when tests are run with `--disable-proto=throw`,\n// however we can test both branches at the same time, so this is ignored\n/* istanbul ignore next */\nif (throwsOnProto) {\n disallowedProperties.push(\"__proto__\");\n}\n\nvar copyPrototypeMethods = function copyPrototypeMethods(prototype) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return Object.getOwnPropertyNames(prototype).reduce(function (\n result,\n name\n ) {\n if (disallowedProperties.includes(name)) {\n return result;\n }\n\n if (typeof prototype[name] !== \"function\") {\n return result;\n }\n\n result[name] = call.bind(prototype[name]);\n\n return result;\n },\n Object.create(null));\n};\n\nvar copyPrototype$5 = copyPrototypeMethods;\n\nvar array = copyPrototype$5(Array.prototype);\n\nvar every$1 = array.every;\n\n/**\n * @private\n */\nfunction hasCallsLeft(callMap, spy) {\n if (callMap[spy.id] === undefined) {\n callMap[spy.id] = 0;\n }\n\n return callMap[spy.id] < spy.callCount;\n}\n\n/**\n * @private\n */\nfunction checkAdjacentCalls(callMap, spy, index, spies) {\n var calledBeforeNext = true;\n\n if (index !== spies.length - 1) {\n calledBeforeNext = spy.calledBefore(spies[index + 1]);\n }\n\n if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n callMap[spy.id] += 1;\n return true;\n }\n\n return false;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n * @property {string} id - Some id\n * @property {number} callCount - Number of times this proxy has been called\n */\n\n/**\n * Returns true when the spies have been called in the order they were supplied in\n *\n * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n * @returns {boolean} true when spies are called in order, false otherwise\n */\nfunction calledInOrder(spies) {\n var callMap = {};\n // eslint-disable-next-line no-underscore-dangle\n var _spies = arguments.length > 1 ? arguments : spies;\n\n return every$1(_spies, checkAdjacentCalls.bind(null, callMap));\n}\n\nvar calledInOrder_1 = calledInOrder;\n\n/**\n * Returns a display name for a function\n *\n * @param {Function} func\n * @returns {string}\n */\nvar functionName$1 = function functionName(func) {\n if (!func) {\n return \"\";\n }\n\n try {\n return (\n func.displayName ||\n func.name ||\n // Use function decomposition as a last resort to get function\n // name. Does not rely on function decomposition to work - if it\n // doesn't debugging will be slightly less informative\n // (i.e. toString will say 'spy' rather than 'myFunc').\n (String(func).match(/function ([^\\s(]+)/) || [])[1]\n );\n } catch (e) {\n // Stringify may fail and we might get an exception, as a last-last\n // resort fall back to empty string.\n return \"\";\n }\n};\n\nvar functionName = functionName$1;\n\n/**\n * Returns a display name for a value from a constructor\n *\n * @param {object} value A value to examine\n * @returns {(string|null)} A string or null\n */\nfunction className(value) {\n return (\n (value.constructor && value.constructor.name) ||\n // The next branch is for IE11 support only:\n // Because the name property is not set on the prototype\n // of the Function object, we finally try to grab the\n // name from its definition. This will never be reached\n // in node, so we are not able to test this properly.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name\n (typeof value.constructor === \"function\" &&\n /* istanbul ignore next */\n functionName(value.constructor)) ||\n null\n );\n}\n\nvar className_1 = className;\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\n(function (exports) {\n\n\t/**\n\t * Returns a function that will invoke the supplied function and print a\n\t * deprecation warning to the console each time it is called.\n\t *\n\t * @param {Function} func\n\t * @param {string} msg\n\t * @returns {Function}\n\t */\n\texports.wrap = function (func, msg) {\n\t var wrapped = function () {\n\t exports.printWarning(msg);\n\t return func.apply(this, arguments);\n\t };\n\t if (func.prototype) {\n\t wrapped.prototype = func.prototype;\n\t }\n\t return wrapped;\n\t};\n\n\t/**\n\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t * particular part of the sinon API has been deprecated.\n\t *\n\t * @param {string} packageName\n\t * @param {string} funcName\n\t * @returns {string}\n\t */\n\texports.defaultMsg = function (packageName, funcName) {\n\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t};\n\n\t/**\n\t * Prints a warning on the console, when it exists\n\t *\n\t * @param {string} msg\n\t * @returns {undefined}\n\t */\n\texports.printWarning = function (msg) {\n\t /* istanbul ignore next */\n\t if (typeof process === \"object\" && process.emitWarning) {\n\t // Emit Warnings in Node\n\t process.emitWarning(msg);\n\t } else if (console.info) {\n\t console.info(msg);\n\t } else {\n\t console.log(msg);\n\t }\n\t}; \n} (deprecated));\n\n/**\n * Returns true when fn returns true for all members of obj.\n * This is an every implementation that works for all iterables\n *\n * @param {object} obj\n * @param {Function} fn\n * @returns {boolean}\n */\nvar every = function every(obj, fn) {\n var pass = true;\n\n try {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n obj.forEach(function () {\n if (!fn.apply(this, arguments)) {\n // Throwing an error is the only way to break `forEach`\n throw new Error();\n }\n });\n } catch (e) {\n pass = false;\n }\n\n return pass;\n};\n\nvar sort = array.sort;\nvar slice = array.slice;\n\n/**\n * @private\n */\nfunction comparator(a, b) {\n // uuid, won't ever be equal\n var aCall = a.getCall(0);\n var bCall = b.getCall(0);\n var aId = (aCall && aCall.callId) || -1;\n var bId = (bCall && bCall.callId) || -1;\n\n return aId < bId ? -1 : 1;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} getCall - A method that can return the first call\n */\n\n/**\n * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n *\n * @param {SinonProxy[] | SinonProxy} spies\n * @returns {SinonProxy[]}\n */\nfunction orderByFirstCall(spies) {\n return sort(slice(spies), comparator);\n}\n\nvar orderByFirstCall_1 = orderByFirstCall;\n\nvar copyPrototype$4 = copyPrototypeMethods;\n\nvar _function = copyPrototype$4(Function.prototype);\n\nvar copyPrototype$3 = copyPrototypeMethods;\n\nvar map = copyPrototype$3(Map.prototype);\n\nvar copyPrototype$2 = copyPrototypeMethods;\n\nvar object = copyPrototype$2(Object.prototype);\n\nvar copyPrototype$1 = copyPrototypeMethods;\n\nvar set = copyPrototype$1(Set.prototype);\n\nvar copyPrototype = copyPrototypeMethods;\n\nvar string = copyPrototype(String.prototype);\n\nvar prototypes = {\n array: array,\n function: _function,\n map: map,\n object: object,\n set: set,\n string: string,\n};\n\nvar typeDetect = {exports: {}};\n\n(function (module, exports) {\n\t(function (global, factory) {\n\t\tmodule.exports = factory() ;\n\t}(commonjsGlobal, (function () {\n\t/* !\n\t * type-detect\n\t * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>\n\t * MIT Licensed\n\t */\n\tvar promiseExists = typeof Promise === 'function';\n\n\t/* eslint-disable no-undef */\n\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\tvar symbolExists = typeof Symbol !== 'undefined';\n\tvar mapExists = typeof Map !== 'undefined';\n\tvar setExists = typeof Set !== 'undefined';\n\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\tvar dataViewExists = typeof DataView !== 'undefined';\n\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\tvar toStringLeftSliceLength = 8;\n\tvar toStringRightSliceLength = -1;\n\t/**\n\t * ### typeOf (obj)\n\t *\n\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t * normalising behaviour across engine versions & well optimised.\n\t *\n\t * @param {Mixed} object\n\t * @return {String} object type\n\t * @api public\n\t */\n\tfunction typeDetect(obj) {\n\t /* ! Speed optimisation\n\t * Pre:\n\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t * Post:\n\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t */\n\t var typeofObj = typeof obj;\n\t if (typeofObj !== 'object') {\n\t return typeofObj;\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t * Post:\n\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t */\n\t if (obj === null) {\n\t return 'null';\n\t }\n\n\t /* ! Spec Conformance\n\t * Test: `Object.prototype.toString.call(window)``\n\t * - Node === \"[object global]\"\n\t * - Chrome === \"[object global]\"\n\t * - Firefox === \"[object Window]\"\n\t * - PhantomJS === \"[object Window]\"\n\t * - Safari === \"[object Window]\"\n\t * - IE 11 === \"[object Window]\"\n\t * - IE Edge === \"[object Window]\"\n\t * Test: `Object.prototype.toString.call(this)``\n\t * - Chrome Worker === \"[object global]\"\n\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t */\n\t if (obj === globalObject) {\n\t return 'global';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t * Post:\n\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t */\n\t if (\n\t Array.isArray(obj) &&\n\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t ) {\n\t return 'Array';\n\t }\n\n\t // Not caching existence of `window` and related properties due to potential\n\t // for `window` to be unset before tests in quasi-browser environments.\n\t if (typeof window === 'object' && window !== null) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t * Test: `Object.prototype.toString.call(window.location)``\n\t * - IE <=11 === \"[object Object]\"\n\t * - IE Edge <=13 === \"[object Object]\"\n\t */\n\t if (typeof window.location === 'object' && obj === window.location) {\n\t return 'Location';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#document)\n\t * WhatWG HTML$3.1.1 - The `Document` object\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * WhatWG HTML states:\n\t * > For historical reasons, Window objects must also have a\n\t * > writable, configurable, non-enumerable property named\n\t * > HTMLDocument whose value is the Document interface object.\n\t * Test: `Object.prototype.toString.call(document)``\n\t * - Chrome === \"[object HTMLDocument]\"\n\t * - Firefox === \"[object HTMLDocument]\"\n\t * - Safari === \"[object HTMLDocument]\"\n\t * - IE <=10 === \"[object Document]\"\n\t * - IE 11 === \"[object HTMLDocument]\"\n\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t */\n\t if (typeof window.document === 'object' && obj === window.document) {\n\t return 'Document';\n\t }\n\n\t if (typeof window.navigator === 'object') {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t */\n\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t obj === window.navigator.mimeTypes) {\n\t return 'MimeTypeArray';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t */\n\t if (typeof window.navigator.plugins === 'object' &&\n\t obj === window.navigator.plugins) {\n\t return 'PluginArray';\n\t }\n\t }\n\n\t if ((typeof window.HTMLElement === 'function' ||\n\t typeof window.HTMLElement === 'object') &&\n\t obj instanceof window.HTMLElement) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t */\n\t if (obj.tagName === 'BLOCKQUOTE') {\n\t return 'HTMLQuoteElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TD') {\n\t return 'HTMLTableDataCellElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TH') {\n\t return 'HTMLTableHeaderCellElement';\n\t }\n\t }\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t * Post:\n\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t */\n\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t if (typeof stringTag === 'string') {\n\t return stringTag;\n\t }\n\n\t var objPrototype = Object.getPrototypeOf(obj);\n\t /* ! Speed optimisation\n\t * Pre:\n\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t * Post:\n\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t */\n\t if (objPrototype === RegExp.prototype) {\n\t return 'RegExp';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t * Post:\n\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t */\n\t if (objPrototype === Date.prototype) {\n\t return 'Date';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t * - Chrome <=47 === \"[object Object]\"\n\t * - Edge <=20 === \"[object Object]\"\n\t * - Firefox 29-Latest === \"[object Promise]\"\n\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t */\n\t if (promiseExists && objPrototype === Promise.prototype) {\n\t return 'Promise';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t * Post:\n\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t */\n\t if (setExists && objPrototype === Set.prototype) {\n\t return 'Set';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t * Post:\n\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t */\n\t if (mapExists && objPrototype === Map.prototype) {\n\t return 'Map';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t * Post:\n\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t */\n\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t return 'WeakSet';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t * Post:\n\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t */\n\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t return 'WeakMap';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t return 'DataView';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t return 'Map Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (setExists && objPrototype === setIteratorPrototype) {\n\t return 'Set Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t return 'Array Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t return 'String Iterator';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t * Post:\n\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t */\n\t if (objPrototype === null) {\n\t return 'Object';\n\t }\n\n\t return Object\n\t .prototype\n\t .toString\n\t .call(obj)\n\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t}\n\n\treturn typeDetect;\n\n\t}))); \n} (typeDetect));\n\nvar typeDetectExports = typeDetect.exports;\n\nvar type = typeDetectExports;\n\n/**\n * Returns the lower-case result of running type from type-detect on the value\n *\n * @param {*} value\n * @returns {string}\n */\nvar typeOf = function typeOf(value) {\n return type(value).toLowerCase();\n};\n\n/**\n * Returns a string representation of the value\n *\n * @param {*} value\n * @returns {string}\n */\nfunction valueToString(value) {\n if (value && value.toString) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return value.toString();\n }\n return String(value);\n}\n\nvar valueToString_1 = valueToString;\n\nvar lib = {\n global: global,\n calledInOrder: calledInOrder_1,\n className: className_1,\n deprecated: deprecated,\n every: every,\n functionName: functionName$1,\n orderByFirstCall: orderByFirstCall_1,\n prototypes: prototypes,\n typeOf: typeOf,\n valueToString: valueToString_1,\n};\n\nconst globalObject = lib.global;\nlet timersModule;\nif (typeof __vitest_required__ !== 'undefined') {\n try {\n timersModule = __vitest_required__.timers;\n } catch (e) {\n // ignored\n }\n}\n\n/**\n * @typedef {object} IdleDeadline\n * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n */\n\n/**\n * Queues a function to be called during a browser's idle periods\n *\n * @callback RequestIdleCallback\n * @param {function(IdleDeadline)} callback\n * @param {{timeout: number}} options - an options object\n * @returns {number} the id\n */\n\n/**\n * @callback NextTick\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {void}\n */\n\n/**\n * @callback SetImmediate\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {NodeImmediate}\n */\n\n/**\n * @callback VoidVarArgsFunc\n * @param {...*} callback - the callback to run\n * @returns {void}\n */\n\n/**\n * @typedef RequestAnimationFrame\n * @property {function(number):void} requestAnimationFrame\n * @returns {number} - the id\n */\n\n/**\n * @typedef Performance\n * @property {function(): number} now\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * @typedef {object} Clock\n * @property {number} now - the current time\n * @property {Date} Date - the Date constructor\n * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n * @property {RequestIdleCallback} requestIdleCallback\n * @property {function(number):void} cancelIdleCallback\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {NextTick} nextTick\n * @property {queueMicrotask} queueMicrotask\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {SetImmediate} setImmediate\n * @property {function(NodeImmediate):void} clearImmediate\n * @property {function():number} countTimers\n * @property {RequestAnimationFrame} requestAnimationFrame\n * @property {function(number):void} cancelAnimationFrame\n * @property {function():void} runMicrotasks\n * @property {function(string | number): number} tick\n * @property {function(string | number): Promise<number>} tickAsync\n * @property {function(): number} next\n * @property {function(): Promise<number>} nextAsync\n * @property {function(): number} runAll\n * @property {function(): number} runToFrame\n * @property {function(): Promise<number>} runAllAsync\n * @property {function(): number} runToLast\n * @property {function(): Promise<number>} runToLastAsync\n * @property {function(): void} reset\n * @property {function(number | Date): void} setSystemTime\n * @property {function(number): void} jump\n * @property {Performance} performance\n * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n * @property {function(): void} uninstall Uninstall the clock.\n * @property {Function[]} methods - the methods that are faked\n * @property {boolean} [shouldClearNativeTimers] inherited from config\n * @property {{methodName:string, original:any}[] | undefined} timersModuleMethods\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/**\n * Configuration object for the `install` method.\n *\n * @typedef {object} Config\n * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n * @property {string[]} [toFake] names of the methods that should be faked.\n * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n * @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)\n * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * The internal structure to describe a scheduled fake timer\n *\n * @typedef {object} Timer\n * @property {Function} func\n * @property {*[]} args\n * @property {number} delay\n * @property {number} callAt\n * @property {number} createdAt\n * @property {boolean} immediate\n * @property {number} id\n * @property {Error} [error]\n */\n\n/**\n * A Node timer\n *\n * @typedef {object} NodeImmediate\n * @property {function(): boolean} hasRef\n * @property {function(): NodeImmediate} ref\n * @property {function(): NodeImmediate} unref\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/* eslint-disable complexity */\n\n/**\n * Mocks available features in the specified global namespace.\n *\n * @param {*} _global Namespace to mock (e.g. `window`)\n * @returns {FakeTimers}\n */\nfunction withGlobal(_global) {\n const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n const NOOP = function () {\n return undefined;\n };\n const NOOP_ARRAY = function () {\n return [];\n };\n const timeoutResult = _global.setTimeout(NOOP, 0);\n const addTimerReturnsObject = typeof timeoutResult === \"object\";\n const hrtimePresent =\n _global.process && typeof _global.process.hrtime === \"function\";\n const hrtimeBigintPresent =\n hrtimePresent && typeof _global.process.hrtime.bigint === \"function\";\n const nextTickPresent =\n _global.process && typeof _global.process.nextTick === \"function\";\n const utilPromisify = _global.process && _global.__vitest_required__ && _global.__vitest_required__.util.promisify;\n const performancePresent =\n _global.performance && typeof _global.performance.now === \"function\";\n const hasPerformancePrototype =\n _global.Performance &&\n (typeof _global.Performance).match(/^(function|object)$/);\n const hasPerformanceConstructorPrototype =\n _global.performance &&\n _global.performance.constructor &&\n _global.performance.constructor.prototype;\n const queueMicrotaskPresent = _global.hasOwnProperty(\"queueMicrotask\");\n const requestAnimationFramePresent =\n _global.requestAnimationFrame &&\n typeof _global.requestAnimationFrame === \"function\";\n const cancelAnimationFramePresent =\n _global.cancelAnimationFrame &&\n typeof _global.cancelAnimationFrame === \"function\";\n const requestIdleCallbackPresent =\n _global.requestIdleCallback &&\n typeof _global.requestIdleCallback === \"function\";\n const cancelIdleCallbackPresent =\n _global.cancelIdleCallback &&\n typeof _global.cancelIdleCallback === \"function\";\n const setImmediatePresent =\n _global.setImmediate && typeof _global.setImmediate === \"function\";\n const intlPresent = _global.Intl && typeof _global.Intl === \"object\";\n\n _global.clearTimeout(timeoutResult);\n\n const NativeDate = _global.Date;\n const NativeIntl = _global.Intl;\n let uniqueTimerId = idCounterStart;\n\n /**\n * @param {number} num\n * @returns {boolean}\n */\n function isNumberFinite(num) {\n if (Number.isFinite) {\n return Number.isFinite(num);\n }\n\n return isFinite(num);\n }\n\n let isNearInfiniteLimit = false;\n\n /**\n * @param {Clock} clock\n * @param {number} i\n */\n function checkIsNearInfiniteLimit(clock, i) {\n if (clock.loopLimit && i === clock.loopLimit - 1) {\n isNearInfiniteLimit = true;\n }\n }\n\n /**\n *\n */\n function resetIsNearInfiniteLimit() {\n isNearInfiniteLimit = false;\n }\n\n /**\n * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n * number of milliseconds. This is used to support human-readable strings passed\n * to clock.tick()\n *\n * @param {string} str\n * @returns {number}\n */\n function parseTime(str) {\n if (!str) {\n return 0;\n }\n\n const strings = str.split(\":\");\n const l = strings.length;\n let i = l;\n let ms = 0;\n let parsed;\n\n if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n throw new Error(\n \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\"\n );\n }\n\n while (i--) {\n parsed = parseInt(strings[i], 10);\n\n if (parsed >= 60) {\n throw new Error(`Invalid time ${str}`);\n }\n\n ms += parsed * Math.pow(60, l - i - 1);\n }\n\n return ms * 1000;\n }\n\n /**\n * Get the decimal part of the millisecond value as nanoseconds\n *\n * @param {number} msFloat the number of milliseconds\n * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n *\n * Example: nanoRemainer(123.456789) -> 456789\n */\n function nanoRemainder(msFloat) {\n const modulo = 1e6;\n const remainder = (msFloat * 1e6) % modulo;\n const positiveRemainder =\n remainder < 0 ? remainder + modulo : remainder;\n\n return Math.floor(positiveRemainder);\n }\n\n /**\n * Used to grok the `now` parameter to createClock.\n *\n * @param {Date|number} epoch the system time\n * @returns {number}\n */\n function getEpoch(epoch) {\n if (!epoch) {\n return 0;\n }\n if (typeof epoch.getTime === \"function\") {\n return epoch.getTime();\n }\n if (typeof epoch === \"number\") {\n return epoch;\n }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }\n\n /**\n * @param {number} from\n * @param {number} to\n * @param {Timer} timer\n * @returns {boolean}\n */\n function inRange(from, to, timer) {\n return timer && timer.callAt >= from && timer.callAt <= to;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} job\n */\n function getInfiniteLoopError(clock, job) {\n const infiniteLoopError = new Error(\n `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`\n );\n\n if (!job.error) {\n return infiniteLoopError;\n }\n\n // pattern never matched in Node\n const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n let clockMethodPattern = new RegExp(\n String(Object.keys(clock).join(\"|\"))\n );\n\n if (addTimerReturnsObject) {\n // node.js environment\n clockMethodPattern = new RegExp(\n `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`\n );\n }\n\n let matchedLineIndex = -1;\n job.error.stack.split(\"\\n\").some(function (line, i) {\n // If we've matched a computed target line (e.g. setTimeout) then we\n // don't need to look any further. Return true to stop iterating.\n const matchedComputedTarget = line.match(computedTargetPattern);\n /* istanbul ignore if */\n if (matchedComputedTarget) {\n matchedLineIndex = i;\n return true;\n }\n\n // If we've matched a clock method line, then there may still be\n // others further down the trace. Return false to keep iterating.\n const matchedClockMethod = line.match(clockMethodPattern);\n if (matchedClockMethod) {\n matchedLineIndex = i;\n return false;\n }\n\n // If we haven't matched anything on this line, but we matched\n // previously and set the matched line index, then we can stop.\n // If we haven't matched previously, then we should keep iterating.\n return matchedLineIndex >= 0;\n });\n\n const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n job.func.name || \"anonymous\"\n }\\n${job.error.stack\n .split(\"\\n\")\n .slice(matchedLineIndex + 1)\n .join(\"\\n\")}`;\n\n try {\n Object.defineProperty(infiniteLoopError, \"stack\", {\n value: stack,\n });\n } catch (e) {\n // noop\n }\n\n return infiniteLoopError;\n }\n\n /**\n * @param {Date} target\n * @param {Date} source\n * @returns {Date} the target after modifications\n */\n function mirrorDateProperties(target, source) {\n let prop;\n for (prop in source) {\n if (source.hasOwnProperty(prop)) {\n target[prop] = source[prop];\n }\n }\n\n // set special now implementation\n if (source.now) {\n target.now = function now() {\n return target.clock.now;\n };\n } else {\n delete target.now;\n }\n\n // set special toSource implementation\n if (source.toSource) {\n target.toSource = function toSource() {\n return source.toSource();\n };\n } else {\n delete target.toSource;\n }\n\n // set special toString implementation\n target.toString = function toString() {\n return source.toString();\n };\n\n target.prototype = source.prototype;\n target.parse = source.parse;\n target.UTC = source.UTC;\n target.prototype.toUTCString = source.prototype.toUTCString;\n target.isFake = true;\n\n return target;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function createDate() {\n /**\n * @param {number} year\n * @param {number} month\n * @param {number} date\n * @param {number} hour\n * @param {number} minute\n * @param {number} second\n * @param {number} ms\n * @returns {Date}\n */\n function ClockDate(year, month, date, hour, minute, second, ms) {\n // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n // This remains so in the 10th edition of 2019 as well.\n if (!(this instanceof ClockDate)) {\n return new NativeDate(ClockDate.clock.now).toString();\n }\n\n // if Date is called as a constructor with 'new' keyword\n // Defensive and verbose to avoid potential harm in passing\n // explicit undefined when user does not pass argument\n switch (arguments.length) {\n case 0:\n return new NativeDate(ClockDate.clock.now);\n case 1:\n return new NativeDate(year);\n case 2:\n return new NativeDate(year, month);\n case 3:\n return new NativeDate(year, month, date);\n case 4:\n return new NativeDate(year, month, date, hour);\n case 5:\n return new NativeDate(year, month, date, hour, minute);\n case 6:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second\n );\n default:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second,\n ms\n );\n }\n }\n\n return mirrorDateProperties(ClockDate, NativeDate);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function createIntl() {\n const ClockIntl = { ...NativeIntl };\n\n ClockIntl.DateTimeFormat = function (...args) {\n const realFormatter = new NativeIntl.DateTimeFormat(...args);\n const formatter = {};\n\n [\"formatRange\", \"formatRangeToParts\", \"resolvedOptions\"].forEach(\n (method) => {\n formatter[method] =\n realFormatter[method].bind(realFormatter);\n }\n );\n\n [\"format\", \"formatToParts\"].forEach((method) => {\n formatter[method] = function (date) {\n return realFormatter[method](date || ClockIntl.clock.now);\n };\n });\n\n return formatter;\n };\n\n ClockIntl.DateTimeFormat.prototype = Object.create(\n NativeIntl.DateTimeFormat.prototype\n );\n\n ClockIntl.DateTimeFormat.supportedLocalesOf =\n NativeIntl.DateTimeFormat.supportedLocalesOf;\n\n return ClockIntl;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function enqueueJob(clock, job) {\n // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n if (!clock.jobs) {\n clock.jobs = [];\n }\n clock.jobs.push(job);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function runJobs(clock) {\n // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n if (!clock.jobs) {\n return;\n }\n for (let i = 0; i < clock.jobs.length; i++) {\n const job = clock.jobs[i];\n job.func.apply(null, job.args);\n\n checkIsNearInfiniteLimit(clock, i);\n if (clock.loopLimit && i > clock.loopLimit) {\n throw getInfiniteLoopError(clock, job);\n }\n }\n resetIsNearInfiniteLimit();\n clock.jobs = [];\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n * @returns {number} id of the created timer\n */\n function addTimer(clock, timer) {\n if (timer.func === undefined) {\n throw new Error(\"Callback must be provided to timer calls\");\n }\n\n if (addTimerReturnsObject) {\n // Node.js environment\n if (typeof timer.func !== \"function\") {\n throw new TypeError(\n `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n timer.func\n } of type ${typeof timer.func}`\n );\n }\n }\n\n if (isNearInfiniteLimit) {\n timer.error = new Error();\n }\n\n timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n if (timer.hasOwnProperty(\"delay\")) {\n if (typeof timer.delay !== \"number\") {\n timer.delay = parseInt(timer.delay, 10);\n }\n\n if (!isNumberFinite(timer.delay)) {\n timer.delay = 0;\n }\n timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n timer.delay = Math.max(0, timer.delay);\n }\n\n if (timer.hasOwnProperty(\"interval\")) {\n timer.type = \"Interval\";\n timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n }\n\n if (timer.hasOwnProperty(\"animation\")) {\n timer.type = \"AnimationFrame\";\n timer.animation = true;\n }\n\n if (timer.hasOwnProperty(\"idleCallback\")) {\n timer.type = \"IdleCallback\";\n timer.idleCallback = true;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n timer.id = uniqueTimerId++;\n timer.createdAt = clock.now;\n timer.callAt =\n clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n clock.timers[timer.id] = timer;\n\n if (addTimerReturnsObject) {\n const res = {\n refed: true,\n ref: function () {\n this.refed = true;\n return res;\n },\n unref: function () {\n this.refed = false;\n return res;\n },\n hasRef: function () {\n return this.refed;\n },\n refresh: function () {\n timer.callAt =\n clock.now +\n (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n // it _might_ have been removed, but if not the assignment is perfectly fine\n clock.timers[timer.id] = timer;\n\n return res;\n },\n [Symbol.toPrimitive]: function () {\n return timer.id;\n },\n };\n return res;\n }\n\n return timer.id;\n }\n\n /* eslint consistent-return: \"off\" */\n /**\n * Timer comparitor\n *\n * @param {Timer} a\n * @param {Timer} b\n * @returns {number}\n */\n function compareTimers(a, b) {\n // Sort first by absolute timing\n if (a.callAt < b.callAt) {\n return -1;\n }\n if (a.callAt > b.callAt) {\n return 1;\n }\n\n // Sort next by immediate, immediate timers take precedence\n if (a.immediate && !b.immediate) {\n return -1;\n }\n if (!a.immediate && b.immediate) {\n return 1;\n }\n\n // Sort next by creation time, earlier-created timers take precedence\n if (a.createdAt < b.createdAt) {\n return -1;\n }\n if (a.createdAt > b.createdAt) {\n return 1;\n }\n\n // Sort next by id, lower-id timers take precedence\n if (a.id < b.id) {\n return -1;\n }\n if (a.id > b.id) {\n return 1;\n }\n\n // As timer ids are unique, no fallback `0` is necessary\n }\n\n /**\n * @param {Clock} clock\n * @param {number} from\n * @param {number} to\n * @returns {Timer}\n */\n function firstTimerInRange(clock, from, to) {\n const timers = clock.timers;\n let timer = null;\n let id, isInRange;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n isInRange = inRange(from, to, timers[id]);\n\n if (\n isInRange &&\n (!timer || compareTimers(timer, timers[id]) === 1)\n ) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function firstTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === 1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function lastTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === -1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n */\n function callTimer(clock, timer) {\n if (typeof timer.interval === \"number\") {\n clock.timers[timer.id].callAt += timer.interval;\n } else {\n delete clock.timers[timer.id];\n }\n\n if (typeof timer.func === \"function\") {\n timer.func.apply(null, timer.args);\n } else {\n /* eslint no-eval: \"off\" */\n const eval2 = eval;\n (function () {\n eval2(timer.func);\n })();\n }\n }\n\n /**\n * Gets clear handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getClearHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `cancel${ttype}`;\n }\n return `clear${ttype}`;\n }\n\n /**\n * Gets schedule handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getScheduleHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `request${ttype}`;\n }\n return `set${ttype}`;\n }\n\n /**\n * Creates an anonymous function to warn only once\n */\n function createWarnOnce() {\n let calls = 0;\n return function (msg) {\n // eslint-disable-next-line\n !calls++ && console.warn(msg);\n };\n }\n const warnOnce = createWarnOnce();\n\n /**\n * @param {Clock} clock\n * @param {number} timerId\n * @param {string} ttype\n */\n function clearTimer(clock, timerId, ttype) {\n if (!timerId) {\n // null appears to be allowed in most browsers, and appears to be\n // relied upon by some libraries, like Bootstrap carousel\n return;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n // in Node, the ID is stored as the primitive value for `Timeout` objects\n // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n const id = Number(timerId);\n\n if (Number.isNaN(id) || id < idCounterStart) {\n const handlerName = getClearHandler(ttype);\n\n if (clock.shouldClearNativeTimers === true) {\n const nativeHandler = clock[`_${handlerName}`];\n return typeof nativeHandler === \"function\"\n ? nativeHandler(timerId)\n : undefined;\n }\n warnOnce(\n `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\"\n );\n }\n\n if (clock.timers.hasOwnProperty(id)) {\n // check that the ID matches a timer of the correct type\n const timer = clock.timers[id];\n if (\n timer.type === ttype ||\n (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n (timer.type === \"Interval\" && ttype === \"Timeout\")\n ) {\n delete clock.timers[id];\n } else {\n const clear = getClearHandler(ttype);\n const schedule = getScheduleHandler(timer.type);\n throw new Error(\n `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`\n );\n }\n }\n }\n\n /**\n * @param {Clock} clock\n * @param {Config} config\n * @returns {Timer[]}\n */\n function uninstall(clock, config) {\n let method, i, l;\n const installedHrTime = \"_hrtime\";\n const installedNextTick = \"_nextTick\";\n\n for (i = 0, l = clock.methods.length; i < l; i++) {\n method = clock.methods[i];\n if (method === \"hrtime\" && _global.process) {\n _global.process.hrtime = clock[installedHrTime];\n } else if (method === \"nextTick\" && _global.process) {\n _global.process.nextTick = clock[installedNextTick];\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n `_${method}`\n );\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n _global,\n method,\n originalPerfDescriptor\n );\n } else if (originalPerfDescriptor.configurable) {\n _global[method] = clock[`_${method}`];\n }\n } else {\n if (_global[method] && _global[method].hadOwnProperty) {\n _global[method] = clock[`_${method}`];\n } else {\n try {\n delete _global[method];\n } catch (ignore) {\n /* eslint no-empty: \"off\" */\n }\n }\n }\n if (clock.timersModuleMethods !== undefined) {\n for (let j = 0; j < clock.timersModuleMethods.length; j++) {\n const entry = clock.timersModuleMethods[j];\n timersModule[entry.methodName] = entry.original;\n }\n }\n }\n\n if (config.shouldAdvanceTime === true) {\n _global.clearInterval(clock.attachedInterval);\n }\n\n // Prevent multiple executions which will completely remove these props\n clock.methods = [];\n\n // return pending timers, to enable checking what timers remained on uninstall\n if (!clock.timers) {\n return [];\n }\n return Object.keys(clock.timers).map(function mapper(key) {\n return clock.timers[key];\n });\n }\n\n /**\n * @param {object} target the target containing the method to replace\n * @param {string} method the keyname of the method on the target\n * @param {Clock} clock\n */\n function hijackMethod(target, method, clock) {\n clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n target,\n method\n );\n clock[`_${method}`] = target[method];\n\n if (method === \"Date\") {\n const date = mirrorDateProperties(clock[method], target[method]);\n target[method] = date;\n } else if (method === \"Intl\") {\n target[method] = clock[method];\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n target,\n method\n );\n // JSDOM has a read only performance field so we have to save/copy it differently\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n clock,\n `_${method}`,\n originalPerfDescriptor\n );\n\n const perfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n method\n );\n Object.defineProperty(target, method, perfDescriptor);\n } else {\n target[method] = clock[method];\n }\n } else {\n target[method] = function () {\n return clock[method].apply(clock, arguments);\n };\n\n Object.defineProperties(\n target[method],\n Object.getOwnPropertyDescriptors(clock[method])\n );\n }\n\n target[method].clock = clock;\n }\n\n /**\n * @param {Clock} clock\n * @param {number} advanceTimeDelta\n */\n function doIntervalTick(clock, advanceTimeDelta) {\n clock.tick(advanceTimeDelta);\n }\n\n /**\n * @typedef {object} Timers\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {Date} Date\n * @property {Intl} Intl\n * @property {SetImmediate=} setImmediate\n * @property {function(NodeImmediate): void=} clearImmediate\n * @property {function(number[]):number[]=} hrtime\n * @property {NextTick=} nextTick\n * @property {Performance=} performance\n * @property {RequestAnimationFrame=} requestAnimationFrame\n * @property {boolean=} queueMicrotask\n * @property {function(number): void=} cancelAnimationFrame\n * @property {RequestIdleCallback=} requestIdleCallback\n * @property {function(number): void=} cancelIdleCallback\n */\n\n /** @type {Timers} */\n const timers = {\n setTimeout: _global.setTimeout,\n clearTimeout: _global.clearTimeout,\n setInterval: _global.setInterval,\n clearInterval: _global.clearInterval,\n Date: _global.Date,\n };\n\n if (setImmediatePresent) {\n timers.setImmediate = _global.setImmediate;\n timers.clearImmediate = _global.clearImmediate;\n }\n\n if (hrtimePresent) {\n timers.hrtime = _global.process.hrtime;\n }\n\n if (nextTickPresent) {\n timers.nextTick = _global.process.nextTick;\n }\n\n if (performancePresent) {\n timers.performance = _global.performance;\n }\n\n if (requestAnimationFramePresent) {\n timers.requestAnimationFrame = _global.requestAnimationFrame;\n }\n\n if (queueMicrotaskPresent) {\n timers.queueMicrotask = true;\n }\n\n if (cancelAnimationFramePresent) {\n timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n }\n\n if (requestIdleCallbackPresent) {\n timers.requestIdleCallback = _global.requestIdleCallback;\n }\n\n if (cancelIdleCallbackPresent) {\n timers.cancelIdleCallback = _global.cancelIdleCallback;\n }\n\n if (intlPresent) {\n timers.Intl = _global.Intl;\n }\n\n const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n /**\n * @param {Date|number} [start] the system time - non-integer values are floored\n * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n * @returns {Clock}\n */\n function createClock(start, loopLimit) {\n // eslint-disable-next-line no-param-reassign\n start = Math.floor(getEpoch(start));\n // eslint-disable-next-line no-param-reassign\n loopLimit = loopLimit || 1000;\n let nanos = 0;\n const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n if (NativeDate === undefined) {\n throw new Error(\n \"The global scope doesn't have a `Date` object\" +\n \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\"\n );\n }\n\n const clock = {\n now: start,\n Date: createDate(),\n loopLimit: loopLimit,\n };\n\n clock.Date.clock = clock;\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function getTimeToNextFrame() {\n return 16 - ((clock.now - start) % 16);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function hrtime(prev) {\n const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n const secsSinceStart = Math.floor(millisSinceStart / 1000);\n const remainderInNanos =\n (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n nanos -\n adjustedSystemTime[1];\n\n if (Array.isArray(prev)) {\n if (prev[1] > 1e9) {\n throw new TypeError(\n \"Number of nanoseconds can't exceed a billion\"\n );\n }\n\n const oldSecs = prev[0];\n let nanoDiff = remainderInNanos - prev[1];\n let secDiff = secsSinceStart - oldSecs;\n\n if (nanoDiff < 0) {\n nanoDiff += 1e9;\n secDiff -= 1;\n }\n\n return [secDiff, nanoDiff];\n }\n return [secsSinceStart, remainderInNanos];\n }\n\n function fakePerformanceNow() {\n const hrt = hrtime();\n const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n return millis;\n }\n\n if (hrtimeBigintPresent) {\n hrtime.bigint = function () {\n const parts = hrtime();\n return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n };\n }\n\n if (intlPresent) {\n clock.Intl = createIntl();\n clock.Intl.clock = clock;\n }\n\n clock.requestIdleCallback = function requestIdleCallback(\n func,\n timeout\n ) {\n let timeToNextIdlePeriod = 0;\n\n if (clock.countTimers() > 0) {\n timeToNextIdlePeriod = 50; // const for now\n }\n\n const result = addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay:\n typeof timeout === \"undefined\"\n ? timeToNextIdlePeriod\n : Math.min(timeout, timeToNextIdlePeriod),\n idleCallback: true,\n });\n\n return Number(result);\n };\n\n clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n return clearTimer(clock, timerId, \"IdleCallback\");\n };\n\n clock.setTimeout = function setTimeout(func, timeout) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n });\n };\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setTimeout[utilPromisify.custom] =\n function promisifiedSetTimeout(timeout, arg) {\n return new _global.Promise(function setTimeoutExecutor(\n resolve\n ) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n delay: timeout,\n });\n });\n };\n }\n\n clock.clearTimeout = function clearTimeout(timerId) {\n return clearTimer(clock, timerId, \"Timeout\");\n };\n\n clock.nextTick = function nextTick(func) {\n return enqueueJob(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n error: isNearInfiniteLimit ? new Error() : null,\n });\n };\n\n clock.queueMicrotask = function queueMicrotask(func) {\n return clock.nextTick(func); // explicitly drop additional arguments\n };\n\n clock.setInterval = function setInterval(func, timeout) {\n // eslint-disable-next-line no-param-reassign\n timeout = parseInt(timeout, 10);\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n interval: timeout,\n });\n };\n\n clock.clearInterval = function clearInterval(timerId) {\n return clearTimer(clock, timerId, \"Interval\");\n };\n\n if (setImmediatePresent) {\n clock.setImmediate = function setImmediate(func) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n immediate: true,\n });\n };\n\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setImmediate[utilPromisify.custom] =\n function promisifiedSetImmediate(arg) {\n return new _global.Promise(\n function setImmediateExecutor(resolve) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n immediate: true,\n });\n }\n );\n };\n }\n\n clock.clearImmediate = function clearImmediate(timerId) {\n return clearTimer(clock, timerId, \"Immediate\");\n };\n }\n\n clock.countTimers = function countTimers() {\n return (\n Object.keys(clock.timers || {}).length +\n (clock.jobs || []).length\n );\n };\n\n clock.requestAnimationFrame = function requestAnimationFrame(func) {\n const result = addTimer(clock, {\n func: func,\n delay: getTimeToNextFrame(),\n get args() {\n return [fakePerformanceNow()];\n },\n animation: true,\n });\n\n return Number(result);\n };\n\n clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n return clearTimer(clock, timerId, \"AnimationFrame\");\n };\n\n clock.runMicrotasks = function runMicrotasks() {\n runJobs(clock);\n };\n\n /**\n * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n * @param {boolean} isAsync\n * @param {Function} resolve\n * @param {Function} reject\n * @returns {number|undefined} will return the new `now` value or nothing for async\n */\n function doTick(tickValue, isAsync, resolve, reject) {\n const msFloat =\n typeof tickValue === \"number\"\n ? tickValue\n : parseTime(tickValue);\n const ms = Math.floor(msFloat);\n const remainder = nanoRemainder(msFloat);\n let nanosTotal = nanos + remainder;\n let tickTo = clock.now + ms;\n\n if (msFloat < 0) {\n throw new TypeError(\"Negative ticks are not supported\");\n }\n\n // adjust for positive overflow\n if (nanosTotal >= 1e6) {\n tickTo += 1;\n nanosTotal -= 1e6;\n }\n\n nanos = nanosTotal;\n let tickFrom = clock.now;\n let previous = clock.now;\n // ESLint fails to detect this correctly\n /* eslint-disable prefer-const */\n let timer,\n firstException,\n oldNow,\n nextPromiseTick,\n compensationCheck,\n postTimerCall;\n /* eslint-enable prefer-const */\n\n clock.duringTick = true;\n\n // perform microtasks\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during microtask callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function doTickInner() {\n // perform each timer in the requested range\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n // eslint-disable-next-line no-unmodified-loop-condition\n while (timer && tickFrom <= tickTo) {\n if (clock.timers[timer.id]) {\n tickFrom = timer.callAt;\n clock.now = timer.callAt;\n oldNow = clock.now;\n try {\n runJobs(clock);\n callTimer(clock, timer);\n } catch (e) {\n firstException = firstException || e;\n }\n\n if (isAsync) {\n // finish up after native setImmediate callback to allow\n // all native es6 promises to process their callbacks after\n // each timer fires.\n originalSetTimeout(nextPromiseTick);\n return;\n }\n\n compensationCheck();\n }\n\n postTimerCall();\n }\n\n // perform process.nextTick()s again\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during process.nextTick() callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n clock.duringTick = false;\n\n // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n if (timer) {\n try {\n clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n } catch (e) {\n firstException = firstException || e;\n }\n } else {\n // no timers remaining in the requested range: move the clock all the way to the end\n clock.now = tickTo;\n\n // update nanos\n nanos = nanosTotal;\n }\n if (firstException) {\n throw firstException;\n }\n\n if (isAsync) {\n resolve(clock.now);\n } else {\n return clock.now;\n }\n }\n\n nextPromiseTick =\n isAsync &&\n function () {\n try {\n compensationCheck();\n postTimerCall();\n doTickInner();\n } catch (e) {\n reject(e);\n }\n };\n\n compensationCheck = function () {\n // compensate for any setSystemTime() call during timer callback\n if (oldNow !== clock.now) {\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n previous += clock.now - oldNow;\n }\n };\n\n postTimerCall = function () {\n timer = firstTimerInRange(clock, previous, tickTo);\n previous = tickFrom;\n };\n\n return doTickInner();\n }\n\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {number} will return the new `now` value\n */\n clock.tick = function tick(tickValue) {\n return doTick(tickValue, false);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {Promise}\n */\n clock.tickAsync = function tickAsync(tickValue) {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n doTick(tickValue, true, resolve, reject);\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.next = function next() {\n runJobs(clock);\n const timer = firstTimer(clock);\n if (!timer) {\n return clock.now;\n }\n\n clock.duringTick = true;\n try {\n clock.now = timer.callAt;\n callTimer(clock, timer);\n runJobs(clock);\n return clock.now;\n } finally {\n clock.duringTick = false;\n }\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.nextAsync = function nextAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = firstTimer(clock);\n if (!timer) {\n resolve(clock.now);\n return;\n }\n\n let err;\n clock.duringTick = true;\n clock.now = timer.callAt;\n try {\n callTimer(clock, timer);\n } catch (e) {\n err = e;\n }\n clock.duringTick = false;\n\n originalSetTimeout(function () {\n if (err) {\n reject(err);\n } else {\n resolve(clock.now);\n }\n });\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.runAll = function runAll() {\n let numTimers, i;\n runJobs(clock);\n for (i = 0; i < clock.loopLimit; i++) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n numTimers = Object.keys(clock.timers).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n clock.next();\n checkIsNearInfiniteLimit(clock, i);\n }\n\n const excessJob = firstTimer(clock);\n throw getInfiniteLoopError(clock, excessJob);\n };\n\n clock.runToFrame = function runToFrame() {\n return clock.tick(getTimeToNextFrame());\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runAllAsync = function runAllAsync() {\n return new _global.Promise(function (resolve, reject) {\n let i = 0;\n /**\n *\n */\n function doRun() {\n originalSetTimeout(function () {\n try {\n let numTimers;\n if (i < clock.loopLimit) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n numTimers = Object.keys(\n clock.timers\n ).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n clock.next();\n\n i++;\n\n doRun();\n checkIsNearInfiniteLimit(clock, i);\n return;\n }\n\n const excessJob = firstTimer(clock);\n reject(getInfiniteLoopError(clock, excessJob));\n } catch (e) {\n reject(e);\n }\n });\n }\n doRun();\n });\n };\n }\n\n clock.runToLast = function runToLast() {\n const timer = lastTimer(clock);\n if (!timer) {\n runJobs(clock);\n return clock.now;\n }\n\n return clock.tick(timer.callAt - clock.now);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runToLastAsync = function runToLastAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = lastTimer(clock);\n if (!timer) {\n resolve(clock.now);\n }\n\n resolve(clock.tickAsync(timer.callAt - clock.now));\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.reset = function reset() {\n nanos = 0;\n clock.timers = {};\n clock.jobs = [];\n clock.now = start;\n };\n\n clock.setSystemTime = function setSystemTime(systemTime) {\n // determine time difference\n const newNow = getEpoch(systemTime);\n const difference = newNow - clock.now;\n let id, timer;\n\n adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n // update 'system clock'\n clock.now = newNow;\n nanos = 0;\n\n // update timers and intervals to keep them stable\n for (id in clock.timers) {\n if (clock.timers.hasOwnProperty(id)) {\n timer = clock.timers[id];\n timer.createdAt += difference;\n timer.callAt += difference;\n }\n }\n };\n\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {number} will return the new `now` value\n */\n clock.jump = function jump(tickValue) {\n const msFloat =\n typeof tickValue === \"number\"\n ? tickValue\n : parseTime(tickValue);\n const ms = Math.floor(msFloat);\n\n for (const timer of Object.values(clock.timers)) {\n if (clock.now + ms > timer.callAt) {\n timer.callAt = clock.now + ms;\n }\n }\n clock.tick(ms);\n };\n\n if (performancePresent) {\n clock.performance = Object.create(null);\n clock.performance.now = fakePerformanceNow;\n }\n\n if (hrtimePresent) {\n clock.hrtime = hrtime;\n }\n\n return clock;\n }\n\n /* eslint-disable complexity */\n\n /**\n * @param {Config=} [config] Optional config\n * @returns {Clock}\n */\n function install(config) {\n if (\n arguments.length > 1 ||\n config instanceof Date ||\n Array.isArray(config) ||\n typeof config === \"number\"\n ) {\n throw new TypeError(\n `FakeTimers.install called with ${String(\n config\n )} install requires an object parameter`\n );\n }\n\n if (_global.Date.isFake === true) {\n // Timers are already faked; this is a problem.\n // Make the user reset timers before continuing.\n throw new TypeError(\n \"Can't install fake timers twice on the same global object.\"\n );\n }\n\n // eslint-disable-next-line no-param-reassign\n config = typeof config !== \"undefined\" ? config : {};\n config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n config.advanceTimeDelta = config.advanceTimeDelta || 20;\n config.shouldClearNativeTimers =\n config.shouldClearNativeTimers || false;\n\n if (config.target) {\n throw new TypeError(\n \"config.target is no longer supported. Use `withGlobal(target)` instead.\"\n );\n }\n\n let i, l;\n const clock = createClock(config.now, config.loopLimit);\n clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n clock.uninstall = function () {\n return uninstall(clock, config);\n };\n\n clock.methods = config.toFake || [];\n\n if (clock.methods.length === 0) {\n // do not fake nextTick by default - GitHub#126\n clock.methods = Object.keys(timers).filter(function (key) {\n return key !== \"nextTick\" && key !== \"queueMicrotask\";\n });\n }\n\n if (config.shouldAdvanceTime === true) {\n const intervalTick = doIntervalTick.bind(\n null,\n clock,\n config.advanceTimeDelta\n );\n const intervalId = _global.setInterval(\n intervalTick,\n config.advanceTimeDelta\n );\n clock.attachedInterval = intervalId;\n }\n\n if (clock.methods.includes(\"performance\")) {\n const proto = (() => {\n if (hasPerformanceConstructorPrototype) {\n return _global.performance.constructor.prototype;\n }\n if (hasPerformancePrototype) {\n return _global.Performance.prototype;\n }\n })();\n if (proto) {\n Object.getOwnPropertyNames(proto).forEach(function (name) {\n if (name !== \"now\") {\n clock.performance[name] =\n name.indexOf(\"getEntries\") === 0\n ? NOOP_ARRAY\n : NOOP;\n }\n });\n } else if ((config.toFake || []).includes(\"performance\")) {\n // user explicitly tried to fake performance when not present\n throw new ReferenceError(\n \"non-existent performance object cannot be faked\"\n );\n }\n }\n if (_global === globalObject && timersModule) {\n clock.timersModuleMethods = [];\n }\n for (i = 0, l = clock.methods.length; i < l; i++) {\n const nameOfMethodToReplace = clock.methods[i];\n if (nameOfMethodToReplace === \"hrtime\") {\n if (\n _global.process &&\n typeof _global.process.hrtime === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else if (nameOfMethodToReplace === \"nextTick\") {\n if (\n _global.process &&\n typeof _global.process.nextTick === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else {\n hijackMethod(_global, nameOfMethodToReplace, clock);\n }\n if (\n clock.timersModuleMethods !== undefined &&\n timersModule[nameOfMethodToReplace]\n ) {\n const original = timersModule[nameOfMethodToReplace];\n clock.timersModuleMethods.push({\n methodName: nameOfMethodToReplace,\n original: original,\n });\n timersModule[nameOfMethodToReplace] =\n _global[nameOfMethodToReplace];\n }\n }\n\n return clock;\n }\n\n /* eslint-enable complexity */\n\n return {\n timers: timers,\n createClock: createClock,\n install: install,\n withGlobal: withGlobal,\n };\n}\n\n/**\n * @typedef {object} FakeTimers\n * @property {Timers} timers\n * @property {createClock} createClock\n * @property {Function} install\n * @property {withGlobal} withGlobal\n */\n\n/* eslint-enable complexity */\n\n/** @type {FakeTimers} */\nconst defaultImplementation = withGlobal(globalObject);\n\ndefaultImplementation.timers;\ndefaultImplementation.createClock;\ndefaultImplementation.install;\nvar withGlobal_1 = withGlobal;\n\nclass FakeTimers {\n _global;\n _clock;\n _fakingTime;\n _fakingDate;\n _fakeTimers;\n _userConfig;\n _now = RealDate.now;\n constructor({\n global,\n config\n }) {\n this._userConfig = config;\n this._fakingDate = false;\n this._fakingTime = false;\n this._fakeTimers = withGlobal_1(global);\n this._global = global;\n }\n clearAllTimers() {\n if (this._fakingTime)\n this._clock.reset();\n }\n dispose() {\n this.useRealTimers();\n }\n runAllTimers() {\n if (this._checkFakeTimers())\n this._clock.runAll();\n }\n async runAllTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runAllAsync();\n }\n runOnlyPendingTimers() {\n if (this._checkFakeTimers())\n this._clock.runToLast();\n }\n async runOnlyPendingTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runToLastAsync();\n }\n advanceTimersToNextTimer(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n this._clock.next();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n async advanceTimersToNextTimerAsync(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n await this._clock.nextAsync();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n advanceTimersByTime(msToRun) {\n if (this._checkFakeTimers())\n this._clock.tick(msToRun);\n }\n async advanceTimersByTimeAsync(msToRun) {\n if (this._checkFakeTimers())\n await this._clock.tickAsync(msToRun);\n }\n runAllTicks() {\n if (this._checkFakeTimers()) {\n this._clock.runMicrotasks();\n }\n }\n useRealTimers() {\n if (this._fakingDate) {\n resetDate();\n this._fakingDate = false;\n }\n if (this._fakingTime) {\n this._clock.uninstall();\n this._fakingTime = false;\n }\n }\n useFakeTimers() {\n var _a, _b, _c;\n if (this._fakingDate) {\n throw new Error(\n '\"setSystemTime\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.'\n );\n }\n if (!this._fakingTime) {\n const toFake = Object.keys(this._fakeTimers.timers).filter((timer) => timer !== \"nextTick\");\n if (((_b = (_a = this._userConfig) == null ? void 0 : _a.toFake) == null ? void 0 : _b.includes(\"nextTick\")) && isChildProcess())\n throw new Error(\"process.nextTick cannot be mocked inside child_process\");\n const existingFakedMethods = (((_c = this._userConfig) == null ? void 0 : _c.toFake) || toFake).filter((method) => {\n switch (method) {\n case \"setImmediate\":\n case \"clearImmediate\":\n return method in this._global && this._global[method];\n default:\n return true;\n }\n });\n this._clock = this._fakeTimers.install({\n now: Date.now(),\n ...this._userConfig,\n toFake: existingFakedMethods\n });\n this._fakingTime = true;\n }\n }\n reset() {\n if (this._checkFakeTimers()) {\n const { now } = this._clock;\n this._clock.reset();\n this._clock.setSystemTime(now);\n }\n }\n setSystemTime(now) {\n if (this._fakingTime) {\n this._clock.setSystemTime(now);\n } else {\n mockDate(now ?? this.getRealSystemTime());\n this._fakingDate = true;\n }\n }\n getRealSystemTime() {\n return this._now();\n }\n getTimerCount() {\n if (this._checkFakeTimers())\n return this._clock.countTimers();\n return 0;\n }\n configure(config) {\n this._userConfig = config;\n }\n isFakeTimers() {\n return this._fakingTime;\n }\n _checkFakeTimers() {\n if (!this._fakingTime) {\n throw new Error(\n 'Timers are not mocked. Try calling \"vi.useFakeTimers()\" first.'\n );\n }\n return this._fakingTime;\n }\n}\n\nfunction copyStackTrace(target, source) {\n if (source.stack !== void 0)\n target.stack = source.stack.replace(source.message, target.message);\n return target;\n}\nfunction waitFor(callback, options = {}) {\n const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n const { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n const STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n return new Promise((resolve, reject) => {\n let lastError;\n let promiseStatus = \"idle\";\n let timeoutId;\n let intervalId;\n const onResolve = (result) => {\n if (timeoutId)\n clearTimeout(timeoutId);\n if (intervalId)\n clearInterval(intervalId);\n resolve(result);\n };\n const handleTimeout = () => {\n let error = lastError;\n if (!error)\n error = copyStackTrace(new Error(\"Timed out in waitFor!\"), STACK_TRACE_ERROR);\n reject(error);\n };\n const checkCallback = () => {\n if (vi.isFakeTimers())\n vi.advanceTimersByTime(interval);\n if (promiseStatus === \"pending\")\n return;\n try {\n const result = callback();\n if (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n const thenable = result;\n promiseStatus = \"pending\";\n thenable.then(\n (resolvedValue) => {\n promiseStatus = \"resolved\";\n onResolve(resolvedValue);\n },\n (rejectedValue) => {\n promiseStatus = \"rejected\";\n lastError = rejectedValue;\n }\n );\n } else {\n onResolve(result);\n return true;\n }\n } catch (error) {\n lastError = error;\n }\n };\n if (checkCallback() === true)\n return;\n timeoutId = setTimeout(handleTimeout, timeout);\n intervalId = setInterval(checkCallback, interval);\n });\n}\nfunction waitUntil(callback, options = {}) {\n const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n const { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n const STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n return new Promise((resolve, reject) => {\n let promiseStatus = \"idle\";\n let timeoutId;\n let intervalId;\n const onReject = (error) => {\n if (!error)\n error = copyStackTrace(new Error(\"Timed out in waitUntil!\"), STACK_TRACE_ERROR);\n reject(error);\n };\n const onResolve = (result) => {\n if (!result)\n return;\n if (timeoutId)\n clearTimeout(timeoutId);\n if (intervalId)\n clearInterval(intervalId);\n resolve(result);\n return true;\n };\n const checkCallback = () => {\n if (vi.isFakeTimers())\n vi.advanceTimersByTime(interval);\n if (promiseStatus === \"pending\")\n return;\n try {\n const result = callback();\n if (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n const thenable = result;\n promiseStatus = \"pending\";\n thenable.then(\n (resolvedValue) => {\n promiseStatus = \"resolved\";\n onResolve(resolvedValue);\n },\n (rejectedValue) => {\n promiseStatus = \"rejected\";\n onReject(rejectedValue);\n }\n );\n } else {\n return onResolve(result);\n }\n } catch (error) {\n onReject(error);\n }\n };\n if (checkCallback() === true)\n return;\n timeoutId = setTimeout(onReject, timeout);\n intervalId = setInterval(checkCallback, interval);\n });\n}\n\nfunction createVitest() {\n const _mocker = typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, {\n get(_, name) {\n throw new Error(\n `Vitest mocker was not initialized in this environment. vi.${String(name)}() is forbidden.`\n );\n }\n });\n let _mockedDate = null;\n let _config = null;\n const workerState = getWorkerState();\n let _timers;\n const timers = () => _timers || (_timers = new FakeTimers({\n global: globalThis,\n config: workerState.config.fakeTimers\n }));\n const _stubsGlobal = /* @__PURE__ */ new Map();\n const _stubsEnv = /* @__PURE__ */ new Map();\n const _envBooleans = [\"PROD\", \"DEV\", \"SSR\"];\n const getImporter = () => {\n const stackTrace = createSimpleStackTrace({ stackTraceLimit: 4 });\n const importerStack = stackTrace.split(\"\\n\")[4];\n const stack = parseSingleStack(importerStack);\n return (stack == null ? void 0 : stack.file) || \"\";\n };\n const utils = {\n useFakeTimers(config) {\n var _a, _b, _c, _d;\n if (isChildProcess()) {\n if (((_a = config == null ? void 0 : config.toFake) == null ? void 0 : _a.includes(\"nextTick\")) || ((_d = (_c = (_b = workerState.config) == null ? void 0 : _b.fakeTimers) == null ? void 0 : _c.toFake) == null ? void 0 : _d.includes(\"nextTick\"))) {\n throw new Error(\n 'vi.useFakeTimers({ toFake: [\"nextTick\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.'\n );\n }\n }\n if (config)\n timers().configure({ ...workerState.config.fakeTimers, ...config });\n else\n timers().configure(workerState.config.fakeTimers);\n timers().useFakeTimers();\n return utils;\n },\n isFakeTimers() {\n return timers().isFakeTimers();\n },\n useRealTimers() {\n timers().useRealTimers();\n _mockedDate = null;\n return utils;\n },\n runOnlyPendingTimers() {\n timers().runOnlyPendingTimers();\n return utils;\n },\n async runOnlyPendingTimersAsync() {\n await timers().runOnlyPendingTimersAsync();\n return utils;\n },\n runAllTimers() {\n timers().runAllTimers();\n return utils;\n },\n async runAllTimersAsync() {\n await timers().runAllTimersAsync();\n return utils;\n },\n runAllTicks() {\n timers().runAllTicks();\n return utils;\n },\n advanceTimersByTime(ms) {\n timers().advanceTimersByTime(ms);\n return utils;\n },\n async advanceTimersByTimeAsync(ms) {\n await timers().advanceTimersByTimeAsync(ms);\n return utils;\n },\n advanceTimersToNextTimer() {\n timers().advanceTimersToNextTimer();\n return utils;\n },\n async advanceTimersToNextTimerAsync() {\n await timers().advanceTimersToNextTimerAsync();\n return utils;\n },\n getTimerCount() {\n return timers().getTimerCount();\n },\n setSystemTime(time) {\n const date = time instanceof Date ? time : new Date(time);\n _mockedDate = date;\n timers().setSystemTime(date);\n return utils;\n },\n getMockedSystemTime() {\n return _mockedDate;\n },\n getRealSystemTime() {\n return timers().getRealSystemTime();\n },\n clearAllTimers() {\n timers().clearAllTimers();\n return utils;\n },\n // mocks\n spyOn,\n fn,\n waitFor,\n waitUntil,\n hoisted(factory) {\n assertTypes(factory, '\"vi.hoisted\" factory', [\"function\"]);\n return factory();\n },\n mock(path, factory) {\n const importer = getImporter();\n _mocker.queueMock(\n path,\n importer,\n factory ? () => factory(() => _mocker.importActual(path, importer, _mocker.getMockContext().callstack)) : void 0,\n true\n );\n },\n unmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n doMock(path, factory) {\n const importer = getImporter();\n _mocker.queueMock(\n path,\n importer,\n factory ? () => factory(() => _mocker.importActual(path, importer, _mocker.getMockContext().callstack)) : void 0,\n false\n );\n },\n doUnmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n async importActual(path) {\n return _mocker.importActual(\n path,\n getImporter(),\n _mocker.getMockContext().callstack\n );\n },\n async importMock(path) {\n return _mocker.importMock(path, getImporter());\n },\n // this is typed in the interface so it's not necessary to type it here\n mocked(item, _options = {}) {\n return item;\n },\n isMockFunction(fn2) {\n return isMockFunction(fn2);\n },\n clearAllMocks() {\n mocks.forEach((spy) => spy.mockClear());\n return utils;\n },\n resetAllMocks() {\n mocks.forEach((spy) => spy.mockReset());\n return utils;\n },\n restoreAllMocks() {\n mocks.forEach((spy) => spy.mockRestore());\n return utils;\n },\n stubGlobal(name, value) {\n if (!_stubsGlobal.has(name))\n _stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n Object.defineProperty(globalThis, name, {\n value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n return utils;\n },\n stubEnv(name, value) {\n if (!_stubsEnv.has(name))\n _stubsEnv.set(name, process.env[name]);\n if (_envBooleans.includes(name))\n process.env[name] = value ? \"1\" : \"\";\n else\n process.env[name] = String(value);\n return utils;\n },\n unstubAllGlobals() {\n _stubsGlobal.forEach((original, name) => {\n if (!original)\n Reflect.deleteProperty(globalThis, name);\n else\n Object.defineProperty(globalThis, name, original);\n });\n _stubsGlobal.clear();\n return utils;\n },\n unstubAllEnvs() {\n _stubsEnv.forEach((original, name) => {\n if (original === void 0)\n delete process.env[name];\n else\n process.env[name] = original;\n });\n _stubsEnv.clear();\n return utils;\n },\n resetModules() {\n resetModules(workerState.moduleCache);\n return utils;\n },\n async dynamicImportSettled() {\n return waitForImportsToResolve();\n },\n setConfig(config) {\n if (!_config)\n _config = { ...workerState.config };\n Object.assign(workerState.config, config);\n },\n resetConfig() {\n if (_config)\n Object.assign(workerState.config, _config);\n }\n };\n return utils;\n}\nconst vitest = createVitest();\nconst vi = vitest;\n\nexport { globalExpect as a, vitest as b, createExpect as c, getSnapshotClient as g, resetModules as r, vi as v };\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { commonjsGlobal as c, getDefaultExportFromCjs as g };\n","import { getNames, getTests } from '@vitest/runner/utils';\nimport '@vitest/utils';\n\nfunction hasFailedSnapshot(suite) {\n return getTests(suite).some((s) => {\n var _a, _b;\n return (_b = (_a = s.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.some((e) => typeof (e == null ? void 0 : e.message) === \"string\" && e.message.match(/Snapshot .* mismatched/));\n });\n}\nfunction getFullName(task, separator = \" > \") {\n return getNames(task).join(separator);\n}\n\nexport { getFullName as g, hasFailedSnapshot as h };\n","import '@vitest/utils';\n\nfunction collectOwnProperties(obj, collector) {\n const collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n Object.getOwnPropertyNames(obj).forEach(collect);\n Object.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction groupBy(collection, iteratee) {\n return collection.reduce((acc, item) => {\n const key = iteratee(item);\n acc[key] || (acc[key] = []);\n acc[key].push(item);\n return acc;\n }, {});\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction getAllMockableProperties(obj, isModule, constructors) {\n const {\n Map,\n Object: Object2,\n Function,\n RegExp: RegExp2,\n Array: Array2\n } = constructors;\n const allProps = new Map();\n let curr = obj;\n do {\n if (curr === Object2.prototype || curr === Function.prototype || curr === RegExp2.prototype)\n break;\n collectOwnProperties(curr, (key) => {\n const descriptor = Object2.getOwnPropertyDescriptor(curr, key);\n if (descriptor)\n allProps.set(key, { key, descriptor });\n });\n } while (curr = Object2.getPrototypeOf(curr));\n if (isModule && !allProps.has(\"default\") && \"default\" in obj) {\n const descriptor = Object2.getOwnPropertyDescriptor(obj, \"default\");\n if (descriptor)\n allProps.set(\"default\", { key: \"default\", descriptor });\n }\n return Array2.from(allProps.values());\n}\nfunction slash(str) {\n return str.replace(/\\\\/g, \"/\");\n}\nfunction noop() {\n}\nfunction toArray(array) {\n if (array === null || array === void 0)\n array = [];\n if (Array.isArray(array))\n return array;\n return [array];\n}\nfunction toString(v) {\n return Object.prototype.toString.call(v);\n}\nfunction isPlainObject(val) {\n return toString(val) === \"[object Object]\" && (!val.constructor || val.constructor.name === \"Object\");\n}\nfunction deepMerge(target, ...sources) {\n if (!sources.length)\n return target;\n const source = sources.shift();\n if (source === void 0)\n return target;\n if (isMergeableObject(target) && isMergeableObject(source)) {\n Object.keys(source).forEach((key) => {\n if (isMergeableObject(source[key])) {\n if (!target[key])\n target[key] = {};\n deepMerge(target[key], source[key]);\n } else {\n target[key] = source[key];\n }\n });\n }\n return deepMerge(target, ...sources);\n}\nfunction isMergeableObject(item) {\n return isPlainObject(item) && !Array.isArray(item);\n}\nfunction stdout() {\n return console._stdout || process.stdout;\n}\nclass AggregateErrorPonyfill extends Error {\n errors;\n constructor(errors, message = \"\") {\n super(message);\n this.errors = [...errors];\n }\n}\nfunction isChildProcess() {\n return typeof process !== \"undefined\" && !!process.send;\n}\nfunction setProcessTitle(title) {\n try {\n process.title = `node (${title})`;\n } catch {\n }\n}\nfunction escapeRegExp(s) {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\nfunction wildcardPatternToRegExp(pattern) {\n return new RegExp(`^${pattern.split(\"*\").map(escapeRegExp).join(\".*\")}$`, \"i\");\n}\nconst urlAlphabet = \"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\";\nfunction nanoid(size = 21) {\n let id = \"\";\n let i = size;\n while (i--)\n id += urlAlphabet[Math.random() * 64 | 0];\n return id;\n}\n\nexport { AggregateErrorPonyfill as A, slash as a, isPrimitive as b, groupBy as c, deepMerge as d, nanoid as e, stdout as f, getAllMockableProperties as g, isChildProcess as i, noop as n, setProcessTitle as s, toArray as t, wildcardPatternToRegExp as w };\n","const RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n constructor(y, m, d, h, M, s, ms) {\n super();\n let date;\n switch (arguments.length) {\n case 0:\n if (now !== null)\n date = new RealDate(now.valueOf());\n else\n date = new RealDate();\n break;\n case 1:\n date = new RealDate(y);\n break;\n default:\n d = typeof d === \"undefined\" ? 1 : d;\n h = h || 0;\n M = M || 0;\n s = s || 0;\n ms = ms || 0;\n date = new RealDate(y, m, d, h, M, s, ms);\n break;\n }\n Object.setPrototypeOf(date, MockDate.prototype);\n return date;\n }\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n return new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n return RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n return RealDate.toString();\n};\nfunction mockDate(date) {\n const dateObj = new RealDate(date.valueOf());\n if (Number.isNaN(dateObj.getTime()))\n throw new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n globalThis.Date = MockDate;\n now = dateObj.valueOf();\n}\nfunction resetDate() {\n globalThis.Date = RealDate;\n}\n\nexport { RealDate as R, mockDate as m, resetDate as r };\n","import { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';\nimport { b as bench } from './benchmark.yGkUTKnC.js';\nimport { i as isFirstRun, a as runOnce } from './run-once.Olz_Zkd8.js';\nimport { c as createExpect, a as globalExpect, v as vi, b as vitest } from './vi.YFlodzP_.js';\nimport { g as getWorkerState } from './global.CkGT_TMy.js';\nimport * as chai from 'chai';\nimport { assert, should } from 'chai';\n\nfunction getRunningMode() {\n return process.env.VITEST_MODE === \"WATCH\" ? \"watch\" : \"run\";\n}\nfunction isWatchMode() {\n return getRunningMode() === \"watch\";\n}\n\nfunction inject(key) {\n const workerState = getWorkerState();\n return workerState.providedContext[key];\n}\n\nvar dist = {};\n\n(function (exports) {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.expectTypeOf = void 0;\n\tconst fn = () => true;\n\t/**\n\t * Similar to Jest's `expect`, but with type-awareness.\n\t * Gives you access to a number of type-matchers that let you make assertions about the\n\t * form of a reference or generic type parameter.\n\t *\n\t * @example\n\t * import {foo, bar} from '../foo'\n\t * import {expectTypeOf} from 'expect-type'\n\t *\n\t * test('foo types', () => {\n\t * // make sure `foo` has type {a: number}\n\t * expectTypeOf(foo).toMatchTypeOf({a: 1})\n\t * expectTypeOf(foo).toHaveProperty('a').toBeNumber()\n\t *\n\t * // make sure `bar` is a function taking a string:\n\t * expectTypeOf(bar).parameter(0).toBeString()\n\t * expectTypeOf(bar).returns.not.toBeAny()\n\t * })\n\t *\n\t * @description\n\t * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.\n\t */\n\tconst expectTypeOf = (_actual) => {\n\t const nonFunctionProperties = [\n\t 'parameters',\n\t 'returns',\n\t 'resolves',\n\t 'not',\n\t 'items',\n\t 'constructorParameters',\n\t 'thisParameter',\n\t 'instance',\n\t 'guards',\n\t 'asserts',\n\t 'branded',\n\t ];\n\t const obj = {\n\t /* eslint-disable mmkal/@typescript-eslint/no-unsafe-assignment */\n\t toBeAny: fn,\n\t toBeUnknown: fn,\n\t toBeNever: fn,\n\t toBeFunction: fn,\n\t toBeObject: fn,\n\t toBeArray: fn,\n\t toBeString: fn,\n\t toBeNumber: fn,\n\t toBeBoolean: fn,\n\t toBeVoid: fn,\n\t toBeSymbol: fn,\n\t toBeNull: fn,\n\t toBeUndefined: fn,\n\t toBeNullable: fn,\n\t toMatchTypeOf: fn,\n\t toEqualTypeOf: fn,\n\t toBeCallableWith: fn,\n\t toBeConstructibleWith: fn,\n\t /* eslint-enable mmkal/@typescript-eslint/no-unsafe-assignment */\n\t extract: exports.expectTypeOf,\n\t exclude: exports.expectTypeOf,\n\t toHaveProperty: exports.expectTypeOf,\n\t parameter: exports.expectTypeOf,\n\t };\n\t const getterProperties = nonFunctionProperties;\n\t getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));\n\t return obj;\n\t};\n\texports.expectTypeOf = expectTypeOf; \n} (dist));\n\nfunction noop() {\n}\nconst assertType = noop;\n\nvar VitestIndex = /*#__PURE__*/Object.freeze({\n __proto__: null,\n afterAll: afterAll,\n afterEach: afterEach,\n assert: assert,\n assertType: assertType,\n beforeAll: beforeAll,\n beforeEach: beforeEach,\n bench: bench,\n chai: chai,\n createExpect: createExpect,\n describe: describe,\n expect: globalExpect,\n expectTypeOf: dist.expectTypeOf,\n getRunningMode: getRunningMode,\n inject: inject,\n isFirstRun: isFirstRun,\n isWatchMode: isWatchMode,\n it: it,\n onTestFailed: onTestFailed,\n onTestFinished: onTestFinished,\n runOnce: runOnce,\n should: should,\n suite: suite,\n test: test,\n vi: vi,\n vitest: vitest\n});\n\nexport { VitestIndex as V, isWatchMode as a, assertType as b, dist as d, getRunningMode as g, inject as i };\n","// This file contains setup code for tests\nimport { vi } from \"vitest\";\n\n// Set up global mocks if needed\n// Using a fixed date to avoid recursive calls\nconst OriginalDate = global.Date;\nconst fixedDate = new OriginalDate(\"2023-01-01\");\nglobal.Date = vi.fn(() => fixedDate) as any;\nglobal.Date.now = vi.fn(() => fixedDate.getTime());\n\n// Add any other global setup needed for tests\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAoH;;;ACApH,oBAAgC;AAChC,IAAAC,gBAAgC;AAChC,IAAAA,gBAAqB;;;ACFrB,mBAAyB;AACzB,mBAAO;AACP,IAAAC,gBAAO;;;ACFP,SAAS,iBAAiB;AACxB,QAAM,cAAc,WAAW;AAC/B,MAAI,CAAC,aAAa;AAChB,UAAM,WAAW;AACjB,UAAM,IAAI,MAAM,QAAQ;AAAA,EAC1B;AACA,SAAO;AACT;AAUA,SAAS,wBAAwB;AAC/B,QAAM,QAAQ,eAAe;AAC7B,SAAO,SAAS,OAAO,SAAS,MAAM,YAAY;AACpD;;;ADdA,SAAS,aAAa;AACpB,SAAO,eAAe,EAAE,OAAO;AACjC;AACA,SAAS,uBAAuB;AAC9B,SAAO,WAAW,MAAM;AAC1B;;;ADNA,IAAM,WAA2B,oBAAI,QAAQ;AAC7C,IAAM,eAA+B,oBAAI,QAAQ;AAOjD,IAAM,QAAQ;AAAA,EACZ,SAAS,MAAMC,MAAK,oBAAM,UAAU,CAAC,GAAG;AACtC,QAAI,CAAC,qBAAqB;AACxB,YAAM,IAAI,MAAM,gDAAgD;AAClE,UAAM,WAAO,+BAAgB,EAAE,KAAK,WAAW,IAAI,GAAG;AAAA,MACpD,GAAG;AAAA,MACH,MAAM;AAAA,QACJ,WAAW;AAAA,MACb;AAAA,IACF,CAAC;AACD,aAAS,IAAI,MAAMA,GAAE;AACrB,iBAAa,IAAI,MAAM,O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,mBAAO;AACP,IAAAC,gBAAO;AAEP,IAAAC,qBAAO;AAGP,IAAAC,cAAO;AAIP,IAAI,eAAe,KAAK;;;AWvBxB,IAAM,eAAe,OAAO;AAC5B,IAAM,YAAY,IAAI,aAAa,YAAY;AAC/C,OAAO,OAAO,GAAG,GAAG,MAAM,SAAS;AACnC,OAAO,KAAK,MAAM,GAAG,GAAG,MAAM,UAAU,QAAQ,CAAC;","names":["import_runner","import_utils","import_utils","fn","fn","import_utils","import_runner","import_utils","import_utils","import_utils","module","exports","chaiSubset","chai","test","expect","assert2","ASYMMETRIC_MATCHERS_OBJECT$1","GLOBAL_EXPECT$1","global","object","copyPrototypeMethods","functionName","every","fn","globalObject","typeDetect","typeOf","now","timers","import_runner","chai","exports","fn","expectTypeOf","noop","chai","import_chai","import_utils","import_pathe","import_expect","import_snapshot","import_error","import_source_map","import_spy"]}
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/vitest@3.1.1_@types+debug@4.1.12_@types+node@22.14.0_jiti@2.4.2_lightningcss@1.29.2_terser@5.39.0_tsx@4.19.3_yaml@2.7.1/node_modules/vitest/dist/chunks/vi.B-PuvDzu.js","../../../../node_modules/.pnpm/vitest@3.1.1_@types+debug@4.1.12_@types+node@22.14.0_jiti@2.4.2_lightningcss@1.29.2_terser@5.39.0_tsx@4.19.3_yaml@2.7.1/node_modules/vitest/dist/chunks/utils.CtocqOoE.js","../../../../node_modules/.pnpm/vitest@3.1.1_@types+debug@4.1.12_@types+node@22.14.0_jiti@2.4.2_lightningcss@1.29.2_terser@5.39.0_tsx@4.19.3_yaml@2.7.1/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js","../../../../node_modules/.pnpm/vitest@3.1.1_@types+debug@4.1.12_@types+node@22.14.0_jiti@2.4.2_lightningcss@1.29.2_terser@5.39.0_tsx@4.19.3_yaml@2.7.1/node_modules/vitest/dist/chunks/date.CDOsz-HY.js","../../../../node_modules/.pnpm/vitest@3.1.1_@types+debug@4.1.12_@types+node@22.14.0_jiti@2.4.2_lightningcss@1.29.2_terser@5.39.0_tsx@4.19.3_yaml@2.7.1/node_modules/vitest/dist/index.js","../../src/tests/setup.ts"],"sourcesContent":["import { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters, customMatchers } from '@vitest/expect';\nimport { getCurrentTest } from '@vitest/runner';\nimport { getNames, getTestName } from '@vitest/runner/utils';\nimport * as chai$1 from 'chai';\nimport { g as getWorkerState, a as getCurrentEnvironment, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.CtocqOoE.js';\nimport { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/utils';\nimport { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';\nimport { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport { fn, spyOn, mocks, isMockFunction } from '@vitest/spy';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { R as RealDate, r as resetDate, m as mockDate } from './date.CDOsz-HY.js';\n\nconst unsupported = [\n\t\"matchSnapshot\",\n\t\"toMatchSnapshot\",\n\t\"toMatchInlineSnapshot\",\n\t\"toThrowErrorMatchingSnapshot\",\n\t\"toThrowErrorMatchingInlineSnapshot\",\n\t\"throws\",\n\t\"Throw\",\n\t\"throw\",\n\t\"toThrow\",\n\t\"toThrowError\"\n];\nfunction createExpectPoll(expect) {\n\treturn function poll(fn, options = {}) {\n\t\tconst state = getWorkerState();\n\t\tconst defaults = state.config.expect?.poll ?? {};\n\t\tconst { interval = defaults.interval ?? 50, timeout = defaults.timeout ?? 1e3, message } = options;\n\t\tconst assertion = expect(null, message).withContext({ poll: true });\n\t\tfn = fn.bind(assertion);\n\t\tconst test = chai$1.util.flag(assertion, \"vitest-test\");\n\t\tif (!test) {\n\t\t\tthrow new Error(\"expect.poll() must be called inside a test\");\n\t\t}\n\t\tconst proxy = new Proxy(assertion, { get(target, key, receiver) {\n\t\t\tconst assertionFunction = Reflect.get(target, key, receiver);\n\t\t\tif (typeof assertionFunction !== \"function\") {\n\t\t\t\treturn assertionFunction instanceof chai$1.Assertion ? proxy : assertionFunction;\n\t\t\t}\n\t\t\tif (key === \"assert\") {\n\t\t\t\treturn assertionFunction;\n\t\t\t}\n\t\t\tif (typeof key === \"string\" && unsupported.includes(key)) {\n\t\t\t\tthrow new SyntaxError(`expect.poll() is not supported in combination with .${key}(). Use vi.waitFor() if your assertion condition is unstable.`);\n\t\t\t}\n\t\t\treturn function(...args) {\n\t\t\t\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\t\t\t\tconst promise = () => new Promise((resolve, reject) => {\n\t\t\t\t\tlet intervalId;\n\t\t\t\t\tlet timeoutId;\n\t\t\t\t\tlet lastError;\n\t\t\t\t\tconst { setTimeout, clearTimeout } = getSafeTimers();\n\t\t\t\t\tconst check = async () => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tchai$1.util.flag(assertion, \"_name\", key);\n\t\t\t\t\t\t\tconst obj = await fn();\n\t\t\t\t\t\t\tchai$1.util.flag(assertion, \"object\", obj);\n\t\t\t\t\t\t\tresolve(await assertionFunction.call(assertion, ...args));\n\t\t\t\t\t\t\tclearTimeout(intervalId);\n\t\t\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tlastError = err;\n\t\t\t\t\t\t\tif (!chai$1.util.flag(assertion, \"_isLastPollAttempt\")) {\n\t\t\t\t\t\t\t\tintervalId = setTimeout(check, interval);\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\ttimeoutId = setTimeout(() => {\n\t\t\t\t\t\tclearTimeout(intervalId);\n\t\t\t\t\t\tchai$1.util.flag(assertion, \"_isLastPollAttempt\", true);\n\t\t\t\t\t\tconst rejectWithCause = (cause) => {\n\t\t\t\t\t\t\treject(copyStackTrace$1(new Error(\"Matcher did not succeed in time.\", { cause }), STACK_TRACE_ERROR));\n\t\t\t\t\t\t};\n\t\t\t\t\t\tcheck().then(() => rejectWithCause(lastError)).catch((e) => rejectWithCause(e));\n\t\t\t\t\t}, timeout);\n\t\t\t\t\tcheck();\n\t\t\t\t});\n\t\t\t\tlet awaited = false;\n\t\t\t\ttest.onFinished ??= [];\n\t\t\t\ttest.onFinished.push(() => {\n\t\t\t\t\tif (!awaited) {\n\t\t\t\t\t\tconst negated = chai$1.util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\t\t\t\t\t\tconst name = chai$1.util.flag(assertion, \"_poll.element\") ? \"element(locator)\" : \"poll(assertion)\";\n\t\t\t\t\t\tconst assertionString = `expect.${name}.${negated}${String(key)}()`;\n\t\t\t\t\t\tconst error = new Error(`${assertionString} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\\n\\nawait ${assertionString}\\n`);\n\t\t\t\t\t\tthrow copyStackTrace$1(error, STACK_TRACE_ERROR);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlet resultPromise;\n\t\t\t\treturn {\n\t\t\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\t\t\tawaited = true;\n\t\t\t\t\t\treturn (resultPromise ||= promise()).then(onFulfilled, onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tcatch(onRejected) {\n\t\t\t\t\t\treturn (resultPromise ||= promise()).catch(onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tfinally(onFinally) {\n\t\t\t\t\t\treturn (resultPromise ||= promise()).finally(onFinally);\n\t\t\t\t\t},\n\t\t\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t\t\t};\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t};\n}\nfunction copyStackTrace$1(target, source) {\n\tif (source.stack !== undefined) {\n\t\ttarget.stack = source.stack.replace(source.message, target.message);\n\t}\n\treturn target;\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset$1 = {exports: {}};\n\nvar chaiSubset = chaiSubset$1.exports;\n\nvar hasRequiredChaiSubset;\n\nfunction requireChaiSubset () {\n\tif (hasRequiredChaiSubset) return chaiSubset$1.exports;\n\thasRequiredChaiSubset = 1;\n\t(function (module, exports) {\n\t\t(function() {\n\t\t\t(function(chaiSubset) {\n\t\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t\t} else {\n\t\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t\t}\n\t\t\t})(function(chai, utils) {\n\t\t\t\tvar Assertion = chai.Assertion;\n\t\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\t\texpected,\n\t\t\t\t\t\tactual,\n\t\t\t\t\t\tshowDiff\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t\t};\n\n\t\t\t\tfunction compare(expected, actual) {\n\t\t\t\t\tif (expected === actual) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\t\treturn expected === actual;\n\t\t\t\t\t}\n\t\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn ao === eo;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t}).call(chaiSubset); \n\t} (chaiSubset$1));\n\treturn chaiSubset$1.exports;\n}\n\nvar chaiSubsetExports = requireChaiSubset();\nvar Subset = /*@__PURE__*/getDefaultExportFromCjs(chaiSubsetExports);\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n\tconst not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\tconst name = `${util.flag(assertion, \"_name\")}(${\"expected\" })`;\n\tconst promiseName = util.flag(assertion, \"promise\");\n\tconst promise = promiseName ? `.${promiseName}` : \"\";\n\treturn `expect(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error) {\n\tconst test = _test;\n\tif (test && promise instanceof Promise) {\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\tif (!test.promises) {\n\t\t\ttest.promises = [];\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 Vitest 3. \",\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\treturn promise.catch(onRejected);\n\t\t\t},\n\t\t\tfinally(onFinally) {\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}\n\nlet _client;\nfunction getSnapshotClient() {\n\tif (!_client) {\n\t\t_client = new SnapshotClient({ isEqual: (received, expected) => {\n\t\t\treturn equals(received, expected, [iterableEquality, subsetEquality]);\n\t\t} });\n\t}\n\treturn _client;\n}\nfunction getError(expected, promise) {\n\tif (typeof expected !== \"function\") {\n\t\tif (!promise) {\n\t\t\tthrow new Error(`expected must be a function, received ${typeof expected}`);\n\t\t}\n\t\treturn expected;\n\t}\n\ttry {\n\t\texpected();\n\t} catch (e) {\n\t\treturn e;\n\t}\n\tthrow new Error(\"snapshot function didn't throw\");\n}\nfunction getTestNames(test) {\n\treturn {\n\t\tfilepath: test.file.filepath,\n\t\tname: getNames(test).slice(1).join(\" > \"),\n\t\ttestId: test.id\n\t};\n}\nconst SnapshotPlugin = (chai, utils) => {\n\tfunction getTest(assertionName, obj) {\n\t\tconst test = utils.flag(obj, \"vitest-test\");\n\t\tif (!test) {\n\t\t\tthrow new Error(`'${assertionName}' cannot be used without test context`);\n\t\t}\n\t\treturn test;\n\t}\n\tfor (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) {\n\t\tutils.addMethod(chai.Assertion.prototype, key, function(properties, message) {\n\t\t\tutils.flag(this, \"_name\", key);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tif (isNot) {\n\t\t\t\tthrow new Error(`${key} cannot be used with \"not\"`);\n\t\t\t}\n\t\t\tconst expected = utils.flag(this, \"object\");\n\t\t\tconst test = getTest(key, this);\n\t\t\tif (typeof properties === \"string\" && typeof message === \"undefined\") {\n\t\t\t\tmessage = properties;\n\t\t\t\tproperties = undefined;\n\t\t\t}\n\t\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\t\tgetSnapshotClient().assert({\n\t\t\t\treceived: expected,\n\t\t\t\tmessage,\n\t\t\t\tisInline: false,\n\t\t\t\tproperties,\n\t\t\t\terrorMessage,\n\t\t\t\t...getTestNames(test)\n\t\t\t});\n\t\t});\n\t}\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchFileSnapshot\", function(file, message) {\n\t\tutils.flag(this, \"_name\", \"toMatchFileSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) {\n\t\t\tthrow new Error(\"toMatchFileSnapshot cannot be used with \\\"not\\\"\");\n\t\t}\n\t\tconst error = new Error(\"resolves\");\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst test = getTest(\"toMatchFileSnapshot\", this);\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tconst promise = getSnapshotClient().assertRaw({\n\t\t\treceived: expected,\n\t\t\tmessage,\n\t\t\tisInline: false,\n\t\t\trawSnapshot: { file },\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this), error);\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchInlineSnapshot\", function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n\t\tutils.flag(this, \"_name\", \"toMatchInlineSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) {\n\t\t\tthrow new Error(\"toMatchInlineSnapshot cannot be used with \\\"not\\\"\");\n\t\t}\n\t\tconst test = getTest(\"toMatchInlineSnapshot\", this);\n\t\tconst isInsideEach = test.each || test.suite?.each;\n\t\tif (isInsideEach) {\n\t\t\tthrow new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n\t\t}\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst error = utils.flag(this, \"error\");\n\t\tif (typeof properties === \"string\") {\n\t\t\tmessage = inlineSnapshot;\n\t\t\tinlineSnapshot = properties;\n\t\t\tproperties = undefined;\n\t\t}\n\t\tif (inlineSnapshot) {\n\t\t\tinlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n\t\t}\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: expected,\n\t\t\tmessage,\n\t\t\tisInline: true,\n\t\t\tproperties,\n\t\t\tinlineSnapshot,\n\t\t\terror,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingSnapshot\", function(message) {\n\t\tutils.flag(this, \"_name\", \"toThrowErrorMatchingSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) {\n\t\t\tthrow new Error(\"toThrowErrorMatchingSnapshot cannot be used with \\\"not\\\"\");\n\t\t}\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst test = getTest(\"toThrowErrorMatchingSnapshot\", this);\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: getError(expected, promise),\n\t\t\tmessage,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingInlineSnapshot\", function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) {\n\t\t\tthrow new Error(\"toThrowErrorMatchingInlineSnapshot cannot be used with \\\"not\\\"\");\n\t\t}\n\t\tconst test = getTest(\"toThrowErrorMatchingInlineSnapshot\", this);\n\t\tconst isInsideEach = test.each || test.suite?.each;\n\t\tif (isInsideEach) {\n\t\t\tthrow new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n\t\t}\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst error = utils.flag(this, \"error\");\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tif (inlineSnapshot) {\n\t\t\tinlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n\t\t}\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: getError(expected, promise),\n\t\t\tmessage,\n\t\t\tinlineSnapshot,\n\t\t\tisInline: true,\n\t\t\terror,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.expect, \"addSnapshotSerializer\", addSerializer);\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n\tconst expect = (value, message) => {\n\t\tconst { assertionCalls } = getState(expect);\n\t\tsetState({ assertionCalls: assertionCalls + 1 }, expect);\n\t\tconst assert = chai$1.expect(value, message);\n\t\tconst _test = test || getCurrentTest();\n\t\tif (_test) {\n\t\t\treturn assert.withTest(_test);\n\t\t} else {\n\t\t\treturn assert;\n\t\t}\n\t};\n\tObject.assign(expect, chai$1.expect);\n\tObject.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);\n\texpect.getState = () => getState(expect);\n\texpect.setState = (state) => setState(state, expect);\n\tconst globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n\tsetState({\n\t\t...globalState,\n\t\tassertionCalls: 0,\n\t\tisExpectingAssertions: false,\n\t\tisExpectingAssertionsError: null,\n\t\texpectedAssertionsNumber: null,\n\t\texpectedAssertionsNumberErrorGen: null,\n\t\tenvironment: getCurrentEnvironment(),\n\t\tget testPath() {\n\t\t\treturn getWorkerState().filepath;\n\t\t},\n\t\tcurrentTestName: test ? getTestName(test) : globalState.currentTestName\n\t}, expect);\n\texpect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n\texpect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters);\n\texpect.soft = (...args) => {\n\t\treturn expect(...args).withContext({ soft: true });\n\t};\n\texpect.poll = createExpectPoll(expect);\n\texpect.unreachable = (message) => {\n\t\tchai$1.assert.fail(`expected${message ? ` \"${message}\" ` : \" \"}not to be reached`);\n\t};\n\tfunction assertions(expected) {\n\t\tconst errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n\t\tif (Error.captureStackTrace) {\n\t\t\tError.captureStackTrace(errorGen(), assertions);\n\t\t}\n\t\texpect.setState({\n\t\t\texpectedAssertionsNumber: expected,\n\t\t\texpectedAssertionsNumberErrorGen: errorGen\n\t\t});\n\t}\n\tfunction hasAssertions() {\n\t\tconst error = new Error(\"expected any number of assertion, but got none\");\n\t\tif (Error.captureStackTrace) {\n\t\t\tError.captureStackTrace(error, hasAssertions);\n\t\t}\n\t\texpect.setState({\n\t\t\tisExpectingAssertions: true,\n\t\t\tisExpectingAssertionsError: error\n\t\t});\n\t}\n\tchai$1.util.addMethod(expect, \"assertions\", assertions);\n\tchai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n\texpect.extend(customMatchers);\n\treturn expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n\tvalue: globalExpect,\n\twritable: true,\n\tconfigurable: true\n});\n\n/**\n* Gives access to injected context provided from the main thread.\n* This usually returns a value provided by `globalSetup` or an external library.\n*/\nfunction inject(key) {\n\tconst workerState = getWorkerState();\n\treturn workerState.providedContext[key];\n}\n\nvar fakeTimersSrc = {};\n\nvar global;\nvar hasRequiredGlobal;\n\nfunction requireGlobal () {\n\tif (hasRequiredGlobal) return global;\n\thasRequiredGlobal = 1;\n\n\t/**\n\t * A reference to the global object\n\t * @type {object} globalObject\n\t */\n\tvar globalObject;\n\n\t/* istanbul ignore else */\n\tif (typeof commonjsGlobal !== \"undefined\") {\n\t // Node\n\t globalObject = commonjsGlobal;\n\t} else if (typeof window !== \"undefined\") {\n\t // Browser\n\t globalObject = window;\n\t} else {\n\t // WebWorker\n\t globalObject = self;\n\t}\n\n\tglobal = globalObject;\n\treturn global;\n}\n\nvar throwsOnProto_1;\nvar hasRequiredThrowsOnProto;\n\nfunction requireThrowsOnProto () {\n\tif (hasRequiredThrowsOnProto) return throwsOnProto_1;\n\thasRequiredThrowsOnProto = 1;\n\n\t/**\n\t * Is true when the environment causes an error to be thrown for accessing the\n\t * __proto__ property.\n\t * This is necessary in order to support `node --disable-proto=throw`.\n\t *\n\t * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n\t * @type {boolean}\n\t */\n\tlet throwsOnProto;\n\ttry {\n\t const object = {};\n\t // eslint-disable-next-line no-proto, no-unused-expressions\n\t object.__proto__;\n\t throwsOnProto = false;\n\t} catch (_) {\n\t // This branch is covered when tests are run with `--disable-proto=throw`,\n\t // however we can test both branches at the same time, so this is ignored\n\t /* istanbul ignore next */\n\t throwsOnProto = true;\n\t}\n\n\tthrowsOnProto_1 = throwsOnProto;\n\treturn throwsOnProto_1;\n}\n\nvar copyPrototypeMethods;\nvar hasRequiredCopyPrototypeMethods;\n\nfunction requireCopyPrototypeMethods () {\n\tif (hasRequiredCopyPrototypeMethods) return copyPrototypeMethods;\n\thasRequiredCopyPrototypeMethods = 1;\n\n\tvar call = Function.call;\n\tvar throwsOnProto = requireThrowsOnProto();\n\n\tvar disallowedProperties = [\n\t // ignore size because it throws from Map\n\t \"size\",\n\t \"caller\",\n\t \"callee\",\n\t \"arguments\",\n\t];\n\n\t// This branch is covered when tests are run with `--disable-proto=throw`,\n\t// however we can test both branches at the same time, so this is ignored\n\t/* istanbul ignore next */\n\tif (throwsOnProto) {\n\t disallowedProperties.push(\"__proto__\");\n\t}\n\n\tcopyPrototypeMethods = function copyPrototypeMethods(prototype) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return Object.getOwnPropertyNames(prototype).reduce(function (\n\t result,\n\t name\n\t ) {\n\t if (disallowedProperties.includes(name)) {\n\t return result;\n\t }\n\n\t if (typeof prototype[name] !== \"function\") {\n\t return result;\n\t }\n\n\t result[name] = call.bind(prototype[name]);\n\n\t return result;\n\t },\n\t Object.create(null));\n\t};\n\treturn copyPrototypeMethods;\n}\n\nvar array;\nvar hasRequiredArray;\n\nfunction requireArray () {\n\tif (hasRequiredArray) return array;\n\thasRequiredArray = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tarray = copyPrototype(Array.prototype);\n\treturn array;\n}\n\nvar calledInOrder_1;\nvar hasRequiredCalledInOrder;\n\nfunction requireCalledInOrder () {\n\tif (hasRequiredCalledInOrder) return calledInOrder_1;\n\thasRequiredCalledInOrder = 1;\n\n\tvar every = requireArray().every;\n\n\t/**\n\t * @private\n\t */\n\tfunction hasCallsLeft(callMap, spy) {\n\t if (callMap[spy.id] === undefined) {\n\t callMap[spy.id] = 0;\n\t }\n\n\t return callMap[spy.id] < spy.callCount;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tfunction checkAdjacentCalls(callMap, spy, index, spies) {\n\t var calledBeforeNext = true;\n\n\t if (index !== spies.length - 1) {\n\t calledBeforeNext = spy.calledBefore(spies[index + 1]);\n\t }\n\n\t if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n\t callMap[spy.id] += 1;\n\t return true;\n\t }\n\n\t return false;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t * @typedef {object} SinonProxy\n\t * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n\t * @property {string} id - Some id\n\t * @property {number} callCount - Number of times this proxy has been called\n\t */\n\n\t/**\n\t * Returns true when the spies have been called in the order they were supplied in\n\t * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n\t * @returns {boolean} true when spies are called in order, false otherwise\n\t */\n\tfunction calledInOrder(spies) {\n\t var callMap = {};\n\t // eslint-disable-next-line no-underscore-dangle\n\t var _spies = arguments.length > 1 ? arguments : spies;\n\n\t return every(_spies, checkAdjacentCalls.bind(null, callMap));\n\t}\n\n\tcalledInOrder_1 = calledInOrder;\n\treturn calledInOrder_1;\n}\n\nvar className_1;\nvar hasRequiredClassName;\n\nfunction requireClassName () {\n\tif (hasRequiredClassName) return className_1;\n\thasRequiredClassName = 1;\n\n\t/**\n\t * Returns a display name for a value from a constructor\n\t * @param {object} value A value to examine\n\t * @returns {(string|null)} A string or null\n\t */\n\tfunction className(value) {\n\t const name = value.constructor && value.constructor.name;\n\t return name || null;\n\t}\n\n\tclassName_1 = className;\n\treturn className_1;\n}\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\nvar hasRequiredDeprecated;\n\nfunction requireDeprecated () {\n\tif (hasRequiredDeprecated) return deprecated;\n\thasRequiredDeprecated = 1;\n\t(function (exports) {\n\n\t\t/**\n\t\t * Returns a function that will invoke the supplied function and print a\n\t\t * deprecation warning to the console each time it is called.\n\t\t * @param {Function} func\n\t\t * @param {string} msg\n\t\t * @returns {Function}\n\t\t */\n\t\texports.wrap = function (func, msg) {\n\t\t var wrapped = function () {\n\t\t exports.printWarning(msg);\n\t\t return func.apply(this, arguments);\n\t\t };\n\t\t if (func.prototype) {\n\t\t wrapped.prototype = func.prototype;\n\t\t }\n\t\t return wrapped;\n\t\t};\n\n\t\t/**\n\t\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t\t * particular part of the sinon API has been deprecated.\n\t\t * @param {string} packageName\n\t\t * @param {string} funcName\n\t\t * @returns {string}\n\t\t */\n\t\texports.defaultMsg = function (packageName, funcName) {\n\t\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t\t};\n\n\t\t/**\n\t\t * Prints a warning on the console, when it exists\n\t\t * @param {string} msg\n\t\t * @returns {undefined}\n\t\t */\n\t\texports.printWarning = function (msg) {\n\t\t /* istanbul ignore next */\n\t\t if (typeof process === \"object\" && process.emitWarning) {\n\t\t // Emit Warnings in Node\n\t\t process.emitWarning(msg);\n\t\t } else if (console.info) {\n\t\t console.info(msg);\n\t\t } else {\n\t\t console.log(msg);\n\t\t }\n\t\t}; \n\t} (deprecated));\n\treturn deprecated;\n}\n\nvar every;\nvar hasRequiredEvery;\n\nfunction requireEvery () {\n\tif (hasRequiredEvery) return every;\n\thasRequiredEvery = 1;\n\n\t/**\n\t * Returns true when fn returns true for all members of obj.\n\t * This is an every implementation that works for all iterables\n\t * @param {object} obj\n\t * @param {Function} fn\n\t * @returns {boolean}\n\t */\n\tevery = function every(obj, fn) {\n\t var pass = true;\n\n\t try {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t obj.forEach(function () {\n\t if (!fn.apply(this, arguments)) {\n\t // Throwing an error is the only way to break `forEach`\n\t throw new Error();\n\t }\n\t });\n\t } catch (e) {\n\t pass = false;\n\t }\n\n\t return pass;\n\t};\n\treturn every;\n}\n\nvar functionName;\nvar hasRequiredFunctionName;\n\nfunction requireFunctionName () {\n\tif (hasRequiredFunctionName) return functionName;\n\thasRequiredFunctionName = 1;\n\n\t/**\n\t * Returns a display name for a function\n\t * @param {Function} func\n\t * @returns {string}\n\t */\n\tfunctionName = function functionName(func) {\n\t if (!func) {\n\t return \"\";\n\t }\n\n\t try {\n\t return (\n\t func.displayName ||\n\t func.name ||\n\t // Use function decomposition as a last resort to get function\n\t // name. Does not rely on function decomposition to work - if it\n\t // doesn't debugging will be slightly less informative\n\t // (i.e. toString will say 'spy' rather than 'myFunc').\n\t (String(func).match(/function ([^\\s(]+)/) || [])[1]\n\t );\n\t } catch (e) {\n\t // Stringify may fail and we might get an exception, as a last-last\n\t // resort fall back to empty string.\n\t return \"\";\n\t }\n\t};\n\treturn functionName;\n}\n\nvar orderByFirstCall_1;\nvar hasRequiredOrderByFirstCall;\n\nfunction requireOrderByFirstCall () {\n\tif (hasRequiredOrderByFirstCall) return orderByFirstCall_1;\n\thasRequiredOrderByFirstCall = 1;\n\n\tvar sort = requireArray().sort;\n\tvar slice = requireArray().slice;\n\n\t/**\n\t * @private\n\t */\n\tfunction comparator(a, b) {\n\t // uuid, won't ever be equal\n\t var aCall = a.getCall(0);\n\t var bCall = b.getCall(0);\n\t var aId = (aCall && aCall.callId) || -1;\n\t var bId = (bCall && bCall.callId) || -1;\n\n\t return aId < bId ? -1 : 1;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t * @typedef {object} SinonProxy\n\t * @property {Function} getCall - A method that can return the first call\n\t */\n\n\t/**\n\t * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n\t * @param {SinonProxy[] | SinonProxy} spies\n\t * @returns {SinonProxy[]}\n\t */\n\tfunction orderByFirstCall(spies) {\n\t return sort(slice(spies), comparator);\n\t}\n\n\torderByFirstCall_1 = orderByFirstCall;\n\treturn orderByFirstCall_1;\n}\n\nvar _function;\nvar hasRequired_function;\n\nfunction require_function () {\n\tif (hasRequired_function) return _function;\n\thasRequired_function = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\t_function = copyPrototype(Function.prototype);\n\treturn _function;\n}\n\nvar map;\nvar hasRequiredMap;\n\nfunction requireMap () {\n\tif (hasRequiredMap) return map;\n\thasRequiredMap = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tmap = copyPrototype(Map.prototype);\n\treturn map;\n}\n\nvar object;\nvar hasRequiredObject;\n\nfunction requireObject () {\n\tif (hasRequiredObject) return object;\n\thasRequiredObject = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tobject = copyPrototype(Object.prototype);\n\treturn object;\n}\n\nvar set;\nvar hasRequiredSet;\n\nfunction requireSet () {\n\tif (hasRequiredSet) return set;\n\thasRequiredSet = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tset = copyPrototype(Set.prototype);\n\treturn set;\n}\n\nvar string;\nvar hasRequiredString;\n\nfunction requireString () {\n\tif (hasRequiredString) return string;\n\thasRequiredString = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tstring = copyPrototype(String.prototype);\n\treturn string;\n}\n\nvar prototypes;\nvar hasRequiredPrototypes;\n\nfunction requirePrototypes () {\n\tif (hasRequiredPrototypes) return prototypes;\n\thasRequiredPrototypes = 1;\n\n\tprototypes = {\n\t array: requireArray(),\n\t function: require_function(),\n\t map: requireMap(),\n\t object: requireObject(),\n\t set: requireSet(),\n\t string: requireString(),\n\t};\n\treturn prototypes;\n}\n\nvar typeDetect$1 = {exports: {}};\n\nvar typeDetect = typeDetect$1.exports;\n\nvar hasRequiredTypeDetect;\n\nfunction requireTypeDetect () {\n\tif (hasRequiredTypeDetect) return typeDetect$1.exports;\n\thasRequiredTypeDetect = 1;\n\t(function (module, exports) {\n\t\t(function (global, factory) {\n\t\t\tmodule.exports = factory() ;\n\t\t}(typeDetect, (function () {\n\t\t/* !\n\t\t * type-detect\n\t\t * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>\n\t\t * MIT Licensed\n\t\t */\n\t\tvar promiseExists = typeof Promise === 'function';\n\n\t\t/* eslint-disable no-undef */\n\t\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\t\tvar symbolExists = typeof Symbol !== 'undefined';\n\t\tvar mapExists = typeof Map !== 'undefined';\n\t\tvar setExists = typeof Set !== 'undefined';\n\t\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\t\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\t\tvar dataViewExists = typeof DataView !== 'undefined';\n\t\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\t\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\t\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\t\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\t\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\t\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\t\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\t\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\t\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\t\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\t\tvar toStringLeftSliceLength = 8;\n\t\tvar toStringRightSliceLength = -1;\n\t\t/**\n\t\t * ### typeOf (obj)\n\t\t *\n\t\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t\t * normalising behaviour across engine versions & well optimised.\n\t\t *\n\t\t * @param {Mixed} object\n\t\t * @return {String} object type\n\t\t * @api public\n\t\t */\n\t\tfunction typeDetect(obj) {\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t\t * Post:\n\t\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t\t */\n\t\t var typeofObj = typeof obj;\n\t\t if (typeofObj !== 'object') {\n\t\t return typeofObj;\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t\t * Post:\n\t\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t\t */\n\t\t if (obj === null) {\n\t\t return 'null';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * Test: `Object.prototype.toString.call(window)``\n\t\t * - Node === \"[object global]\"\n\t\t * - Chrome === \"[object global]\"\n\t\t * - Firefox === \"[object Window]\"\n\t\t * - PhantomJS === \"[object Window]\"\n\t\t * - Safari === \"[object Window]\"\n\t\t * - IE 11 === \"[object Window]\"\n\t\t * - IE Edge === \"[object Window]\"\n\t\t * Test: `Object.prototype.toString.call(this)``\n\t\t * - Chrome Worker === \"[object global]\"\n\t\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t\t */\n\t\t if (obj === globalObject) {\n\t\t return 'global';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t\t * Post:\n\t\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t\t */\n\t\t if (\n\t\t Array.isArray(obj) &&\n\t\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t\t ) {\n\t\t return 'Array';\n\t\t }\n\n\t\t // Not caching existence of `window` and related properties due to potential\n\t\t // for `window` to be unset before tests in quasi-browser environments.\n\t\t if (typeof window === 'object' && window !== null) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t\t * Test: `Object.prototype.toString.call(window.location)``\n\t\t * - IE <=11 === \"[object Object]\"\n\t\t * - IE Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (typeof window.location === 'object' && obj === window.location) {\n\t\t return 'Location';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#document)\n\t\t * WhatWG HTML$3.1.1 - The `Document` object\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * WhatWG HTML states:\n\t\t * > For historical reasons, Window objects must also have a\n\t\t * > writable, configurable, non-enumerable property named\n\t\t * > HTMLDocument whose value is the Document interface object.\n\t\t * Test: `Object.prototype.toString.call(document)``\n\t\t * - Chrome === \"[object HTMLDocument]\"\n\t\t * - Firefox === \"[object HTMLDocument]\"\n\t\t * - Safari === \"[object HTMLDocument]\"\n\t\t * - IE <=10 === \"[object Document]\"\n\t\t * - IE 11 === \"[object HTMLDocument]\"\n\t\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t\t */\n\t\t if (typeof window.document === 'object' && obj === window.document) {\n\t\t return 'Document';\n\t\t }\n\n\t\t if (typeof window.navigator === 'object') {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t\t obj === window.navigator.mimeTypes) {\n\t\t return 'MimeTypeArray';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.plugins === 'object' &&\n\t\t obj === window.navigator.plugins) {\n\t\t return 'PluginArray';\n\t\t }\n\t\t }\n\n\t\t if ((typeof window.HTMLElement === 'function' ||\n\t\t typeof window.HTMLElement === 'object') &&\n\t\t obj instanceof window.HTMLElement) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t\t */\n\t\t if (obj.tagName === 'BLOCKQUOTE') {\n\t\t return 'HTMLQuoteElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TD') {\n\t\t return 'HTMLTableDataCellElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TH') {\n\t\t return 'HTMLTableHeaderCellElement';\n\t\t }\n\t\t }\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t\t * Post:\n\t\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t\t */\n\t\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t\t if (typeof stringTag === 'string') {\n\t\t return stringTag;\n\t\t }\n\n\t\t var objPrototype = Object.getPrototypeOf(obj);\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t\t * Post:\n\t\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === RegExp.prototype) {\n\t\t return 'RegExp';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t\t * Post:\n\t\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t\t */\n\t\t if (objPrototype === Date.prototype) {\n\t\t return 'Date';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t\t * - Chrome <=47 === \"[object Object]\"\n\t\t * - Edge <=20 === \"[object Object]\"\n\t\t * - Firefox 29-Latest === \"[object Promise]\"\n\t\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t\t */\n\t\t if (promiseExists && objPrototype === Promise.prototype) {\n\t\t return 'Promise';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t\t * Post:\n\t\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t\t */\n\t\t if (setExists && objPrototype === Set.prototype) {\n\t\t return 'Set';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t\t * Post:\n\t\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t\t */\n\t\t if (mapExists && objPrototype === Map.prototype) {\n\t\t return 'Map';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t\t * Post:\n\t\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t\t */\n\t\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t\t return 'WeakSet';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t\t * Post:\n\t\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t\t */\n\t\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t\t return 'WeakMap';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t\t return 'DataView';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t\t return 'Map Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (setExists && objPrototype === setIteratorPrototype) {\n\t\t return 'Set Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t\t return 'Array Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t\t return 'String Iterator';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t\t * Post:\n\t\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === null) {\n\t\t return 'Object';\n\t\t }\n\n\t\t return Object\n\t\t .prototype\n\t\t .toString\n\t\t .call(obj)\n\t\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t\t}\n\n\t\treturn typeDetect;\n\n\t\t}))); \n\t} (typeDetect$1));\n\treturn typeDetect$1.exports;\n}\n\nvar typeOf;\nvar hasRequiredTypeOf;\n\nfunction requireTypeOf () {\n\tif (hasRequiredTypeOf) return typeOf;\n\thasRequiredTypeOf = 1;\n\n\tvar type = requireTypeDetect();\n\n\t/**\n\t * Returns the lower-case result of running type from type-detect on the value\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\ttypeOf = function typeOf(value) {\n\t return type(value).toLowerCase();\n\t};\n\treturn typeOf;\n}\n\nvar valueToString_1;\nvar hasRequiredValueToString;\n\nfunction requireValueToString () {\n\tif (hasRequiredValueToString) return valueToString_1;\n\thasRequiredValueToString = 1;\n\n\t/**\n\t * Returns a string representation of the value\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\tfunction valueToString(value) {\n\t if (value && value.toString) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return value.toString();\n\t }\n\t return String(value);\n\t}\n\n\tvalueToString_1 = valueToString;\n\treturn valueToString_1;\n}\n\nvar lib;\nvar hasRequiredLib;\n\nfunction requireLib () {\n\tif (hasRequiredLib) return lib;\n\thasRequiredLib = 1;\n\n\tlib = {\n\t global: requireGlobal(),\n\t calledInOrder: requireCalledInOrder(),\n\t className: requireClassName(),\n\t deprecated: requireDeprecated(),\n\t every: requireEvery(),\n\t functionName: requireFunctionName(),\n\t orderByFirstCall: requireOrderByFirstCall(),\n\t prototypes: requirePrototypes(),\n\t typeOf: requireTypeOf(),\n\t valueToString: requireValueToString(),\n\t};\n\treturn lib;\n}\n\nvar hasRequiredFakeTimersSrc;\n\nfunction requireFakeTimersSrc () {\n\tif (hasRequiredFakeTimersSrc) return fakeTimersSrc;\n\thasRequiredFakeTimersSrc = 1;\n\n\tconst globalObject = requireLib().global;\n\tlet timersModule, timersPromisesModule;\n\tif (typeof __vitest_required__ !== 'undefined') {\n\t try {\n\t timersModule = __vitest_required__.timers;\n\t } catch (e) {\n\t // ignored\n\t }\n\t try {\n\t timersPromisesModule = __vitest_required__.timersPromises;\n\t } catch (e) {\n\t // ignored\n\t }\n\t}\n\n\t/**\n\t * @typedef {object} IdleDeadline\n\t * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n\t * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n\t */\n\n\t/**\n\t * Queues a function to be called during a browser's idle periods\n\t * @callback RequestIdleCallback\n\t * @param {function(IdleDeadline)} callback\n\t * @param {{timeout: number}} options - an options object\n\t * @returns {number} the id\n\t */\n\n\t/**\n\t * @callback NextTick\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} args - optional arguments to call the callback with\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetImmediate\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} args - optional arguments to call the callback with\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * @callback VoidVarArgsFunc\n\t * @param {...*} callback - the callback to run\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @typedef RequestAnimationFrame\n\t * @property {function(number):void} requestAnimationFrame\n\t * @returns {number} - the id\n\t */\n\n\t/**\n\t * @typedef Performance\n\t * @property {function(): number} now\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * @typedef {object} Clock\n\t * @property {number} now - the current time\n\t * @property {Date} Date - the Date constructor\n\t * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n\t * @property {RequestIdleCallback} requestIdleCallback\n\t * @property {function(number):void} cancelIdleCallback\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {NextTick} nextTick\n\t * @property {queueMicrotask} queueMicrotask\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {SetImmediate} setImmediate\n\t * @property {function(NodeImmediate):void} clearImmediate\n\t * @property {function():number} countTimers\n\t * @property {RequestAnimationFrame} requestAnimationFrame\n\t * @property {function(number):void} cancelAnimationFrame\n\t * @property {function():void} runMicrotasks\n\t * @property {function(string | number): number} tick\n\t * @property {function(string | number): Promise<number>} tickAsync\n\t * @property {function(): number} next\n\t * @property {function(): Promise<number>} nextAsync\n\t * @property {function(): number} runAll\n\t * @property {function(): number} runToFrame\n\t * @property {function(): Promise<number>} runAllAsync\n\t * @property {function(): number} runToLast\n\t * @property {function(): Promise<number>} runToLastAsync\n\t * @property {function(): void} reset\n\t * @property {function(number | Date): void} setSystemTime\n\t * @property {function(number): void} jump\n\t * @property {Performance} performance\n\t * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n\t * @property {function(): void} uninstall Uninstall the clock.\n\t * @property {Function[]} methods - the methods that are faked\n\t * @property {boolean} [shouldClearNativeTimers] inherited from config\n\t * @property {{methodName:string, original:any}[] | undefined} timersModuleMethods\n\t * @property {{methodName:string, original:any}[] | undefined} timersPromisesModuleMethods\n\t * @property {Map<function(): void, AbortSignal>} abortListenerMap\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/**\n\t * Configuration object for the `install` method.\n\t * @typedef {object} Config\n\t * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n\t * @property {string[]} [toFake] names of the methods that should be faked.\n\t * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n\t * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n\t * @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)\n\t * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n\t * @property {boolean} [ignoreMissingTimers] default is false, meaning asking to fake timers that are not present will throw an error\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * The internal structure to describe a scheduled fake timer\n\t * @typedef {object} Timer\n\t * @property {Function} func\n\t * @property {*[]} args\n\t * @property {number} delay\n\t * @property {number} callAt\n\t * @property {number} createdAt\n\t * @property {boolean} immediate\n\t * @property {number} id\n\t * @property {Error} [error]\n\t */\n\n\t/**\n\t * A Node timer\n\t * @typedef {object} NodeImmediate\n\t * @property {function(): boolean} hasRef\n\t * @property {function(): NodeImmediate} ref\n\t * @property {function(): NodeImmediate} unref\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/* eslint-disable complexity */\n\n\t/**\n\t * Mocks available features in the specified global namespace.\n\t * @param {*} _global Namespace to mock (e.g. `window`)\n\t * @returns {FakeTimers}\n\t */\n\tfunction withGlobal(_global) {\n\t const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n\t const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n\t const NOOP = function () {\n\t return undefined;\n\t };\n\t const NOOP_ARRAY = function () {\n\t return [];\n\t };\n\t const isPresent = {};\n\t let timeoutResult,\n\t addTimerReturnsObject = false;\n\n\t if (_global.setTimeout) {\n\t isPresent.setTimeout = true;\n\t timeoutResult = _global.setTimeout(NOOP, 0);\n\t addTimerReturnsObject = typeof timeoutResult === \"object\";\n\t }\n\t isPresent.clearTimeout = Boolean(_global.clearTimeout);\n\t isPresent.setInterval = Boolean(_global.setInterval);\n\t isPresent.clearInterval = Boolean(_global.clearInterval);\n\t isPresent.hrtime =\n\t _global.process && typeof _global.process.hrtime === \"function\";\n\t isPresent.hrtimeBigint =\n\t isPresent.hrtime && typeof _global.process.hrtime.bigint === \"function\";\n\t isPresent.nextTick =\n\t _global.process && typeof _global.process.nextTick === \"function\";\n\t const utilPromisify = _global.process && _global.__vitest_required__ && _global.__vitest_required__.util.promisify;\n\t isPresent.performance =\n\t _global.performance && typeof _global.performance.now === \"function\";\n\t const hasPerformancePrototype =\n\t _global.Performance &&\n\t (typeof _global.Performance).match(/^(function|object)$/);\n\t const hasPerformanceConstructorPrototype =\n\t _global.performance &&\n\t _global.performance.constructor &&\n\t _global.performance.constructor.prototype;\n\t isPresent.queueMicrotask = _global.hasOwnProperty(\"queueMicrotask\");\n\t isPresent.requestAnimationFrame =\n\t _global.requestAnimationFrame &&\n\t typeof _global.requestAnimationFrame === \"function\";\n\t isPresent.cancelAnimationFrame =\n\t _global.cancelAnimationFrame &&\n\t typeof _global.cancelAnimationFrame === \"function\";\n\t isPresent.requestIdleCallback =\n\t _global.requestIdleCallback &&\n\t typeof _global.requestIdleCallback === \"function\";\n\t isPresent.cancelIdleCallbackPresent =\n\t _global.cancelIdleCallback &&\n\t typeof _global.cancelIdleCallback === \"function\";\n\t isPresent.setImmediate =\n\t _global.setImmediate && typeof _global.setImmediate === \"function\";\n\t isPresent.clearImmediate =\n\t _global.clearImmediate && typeof _global.clearImmediate === \"function\";\n\t isPresent.Intl = _global.Intl && typeof _global.Intl === \"object\";\n\n\t if (_global.clearTimeout) {\n\t _global.clearTimeout(timeoutResult);\n\t }\n\n\t const NativeDate = _global.Date;\n\t const NativeIntl = isPresent.Intl\n\t ? Object.defineProperties(\n\t Object.create(null),\n\t Object.getOwnPropertyDescriptors(_global.Intl),\n\t )\n\t : undefined;\n\t let uniqueTimerId = idCounterStart;\n\n\t if (NativeDate === undefined) {\n\t throw new Error(\n\t \"The global scope doesn't have a `Date` object\" +\n\t \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\",\n\t );\n\t }\n\t isPresent.Date = true;\n\n\t /**\n\t * The PerformanceEntry object encapsulates a single performance metric\n\t * that is part of the browser's performance timeline.\n\t *\n\t * This is an object returned by the `mark` and `measure` methods on the Performance prototype\n\t */\n\t class FakePerformanceEntry {\n\t constructor(name, entryType, startTime, duration) {\n\t this.name = name;\n\t this.entryType = entryType;\n\t this.startTime = startTime;\n\t this.duration = duration;\n\t }\n\n\t toJSON() {\n\t return JSON.stringify({ ...this });\n\t }\n\t }\n\n\t /**\n\t * @param {number} num\n\t * @returns {boolean}\n\t */\n\t function isNumberFinite(num) {\n\t if (Number.isFinite) {\n\t return Number.isFinite(num);\n\t }\n\n\t return isFinite(num);\n\t }\n\n\t let isNearInfiniteLimit = false;\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} i\n\t */\n\t function checkIsNearInfiniteLimit(clock, i) {\n\t if (clock.loopLimit && i === clock.loopLimit - 1) {\n\t isNearInfiniteLimit = true;\n\t }\n\t }\n\n\t /**\n\t *\n\t */\n\t function resetIsNearInfiniteLimit() {\n\t isNearInfiniteLimit = false;\n\t }\n\n\t /**\n\t * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n\t * number of milliseconds. This is used to support human-readable strings passed\n\t * to clock.tick()\n\t * @param {string} str\n\t * @returns {number}\n\t */\n\t function parseTime(str) {\n\t if (!str) {\n\t return 0;\n\t }\n\n\t const strings = str.split(\":\");\n\t const l = strings.length;\n\t let i = l;\n\t let ms = 0;\n\t let parsed;\n\n\t if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n\t throw new Error(\n\t \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\",\n\t );\n\t }\n\n\t while (i--) {\n\t parsed = parseInt(strings[i], 10);\n\n\t if (parsed >= 60) {\n\t throw new Error(`Invalid time ${str}`);\n\t }\n\n\t ms += parsed * Math.pow(60, l - i - 1);\n\t }\n\n\t return ms * 1000;\n\t }\n\n\t /**\n\t * Get the decimal part of the millisecond value as nanoseconds\n\t * @param {number} msFloat the number of milliseconds\n\t * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n\t *\n\t * Example: nanoRemainer(123.456789) -> 456789\n\t */\n\t function nanoRemainder(msFloat) {\n\t const modulo = 1e6;\n\t const remainder = (msFloat * 1e6) % modulo;\n\t const positiveRemainder =\n\t remainder < 0 ? remainder + modulo : remainder;\n\n\t return Math.floor(positiveRemainder);\n\t }\n\n\t /**\n\t * Used to grok the `now` parameter to createClock.\n\t * @param {Date|number} epoch the system time\n\t * @returns {number}\n\t */\n\t function getEpoch(epoch) {\n\t if (!epoch) {\n\t return 0;\n\t }\n\t if (typeof epoch.getTime === \"function\") {\n\t return epoch.getTime();\n\t }\n\t if (typeof epoch === \"number\") {\n\t return epoch;\n\t }\n\t throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n\t }\n\n\t /**\n\t * @param {number} from\n\t * @param {number} to\n\t * @param {Timer} timer\n\t * @returns {boolean}\n\t */\n\t function inRange(from, to, timer) {\n\t return timer && timer.callAt >= from && timer.callAt <= to;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} job\n\t */\n\t function getInfiniteLoopError(clock, job) {\n\t const infiniteLoopError = new Error(\n\t `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`,\n\t );\n\n\t if (!job.error) {\n\t return infiniteLoopError;\n\t }\n\n\t // pattern never matched in Node\n\t const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n\t let clockMethodPattern = new RegExp(\n\t String(Object.keys(clock).join(\"|\")),\n\t );\n\n\t if (addTimerReturnsObject) {\n\t // node.js environment\n\t clockMethodPattern = new RegExp(\n\t `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`,\n\t );\n\t }\n\n\t let matchedLineIndex = -1;\n\t job.error.stack.split(\"\\n\").some(function (line, i) {\n\t // If we've matched a computed target line (e.g. setTimeout) then we\n\t // don't need to look any further. Return true to stop iterating.\n\t const matchedComputedTarget = line.match(computedTargetPattern);\n\t /* istanbul ignore if */\n\t if (matchedComputedTarget) {\n\t matchedLineIndex = i;\n\t return true;\n\t }\n\n\t // If we've matched a clock method line, then there may still be\n\t // others further down the trace. Return false to keep iterating.\n\t const matchedClockMethod = line.match(clockMethodPattern);\n\t if (matchedClockMethod) {\n\t matchedLineIndex = i;\n\t return false;\n\t }\n\n\t // If we haven't matched anything on this line, but we matched\n\t // previously and set the matched line index, then we can stop.\n\t // If we haven't matched previously, then we should keep iterating.\n\t return matchedLineIndex >= 0;\n\t });\n\n\t const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n\t job.func.name || \"anonymous\"\n\t }\\n${job.error.stack\n\t .split(\"\\n\")\n\t .slice(matchedLineIndex + 1)\n\t .join(\"\\n\")}`;\n\n\t try {\n\t Object.defineProperty(infiniteLoopError, \"stack\", {\n\t value: stack,\n\t });\n\t } catch (e) {\n\t // noop\n\t }\n\n\t return infiniteLoopError;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function createDate() {\n\t class ClockDate extends NativeDate {\n\t /**\n\t * @param {number} year\n\t * @param {number} month\n\t * @param {number} date\n\t * @param {number} hour\n\t * @param {number} minute\n\t * @param {number} second\n\t * @param {number} ms\n\t * @returns void\n\t */\n\t // eslint-disable-next-line no-unused-vars\n\t constructor(year, month, date, hour, minute, second, ms) {\n\t // Defensive and verbose to avoid potential harm in passing\n\t // explicit undefined when user does not pass argument\n\t if (arguments.length === 0) {\n\t super(ClockDate.clock.now);\n\t } else {\n\t super(...arguments);\n\t }\n\n\t // ensures identity checks using the constructor prop still works\n\t // this should have no other functional effect\n\t Object.defineProperty(this, \"constructor\", {\n\t value: NativeDate,\n\t enumerable: false,\n\t });\n\t }\n\n\t static [Symbol.hasInstance](instance) {\n\t return instance instanceof NativeDate;\n\t }\n\t }\n\n\t ClockDate.isFake = true;\n\n\t if (NativeDate.now) {\n\t ClockDate.now = function now() {\n\t return ClockDate.clock.now;\n\t };\n\t }\n\n\t if (NativeDate.toSource) {\n\t ClockDate.toSource = function toSource() {\n\t return NativeDate.toSource();\n\t };\n\t }\n\n\t ClockDate.toString = function toString() {\n\t return NativeDate.toString();\n\t };\n\n\t // noinspection UnnecessaryLocalVariableJS\n\t /**\n\t * A normal Class constructor cannot be called without `new`, but Date can, so we need\n\t * to wrap it in a Proxy in order to ensure this functionality of Date is kept intact\n\t * @type {ClockDate}\n\t */\n\t const ClockDateProxy = new Proxy(ClockDate, {\n\t // handler for [[Call]] invocations (i.e. not using `new`)\n\t apply() {\n\t // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n\t // This remains so in the 10th edition of 2019 as well.\n\t if (this instanceof ClockDate) {\n\t throw new TypeError(\n\t \"A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.\",\n\t );\n\t }\n\n\t return new NativeDate(ClockDate.clock.now).toString();\n\t },\n\t });\n\n\t return ClockDateProxy;\n\t }\n\n\t /**\n\t * Mirror Intl by default on our fake implementation\n\t *\n\t * Most of the properties are the original native ones,\n\t * but we need to take control of those that have a\n\t * dependency on the current clock.\n\t * @returns {object} the partly fake Intl implementation\n\t */\n\t function createIntl() {\n\t const ClockIntl = {};\n\t /*\n\t * All properties of Intl are non-enumerable, so we need\n\t * to do a bit of work to get them out.\n\t */\n\t Object.getOwnPropertyNames(NativeIntl).forEach(\n\t (property) => (ClockIntl[property] = NativeIntl[property]),\n\t );\n\n\t ClockIntl.DateTimeFormat = function (...args) {\n\t const realFormatter = new NativeIntl.DateTimeFormat(...args);\n\t const formatter = {};\n\n\t [\"formatRange\", \"formatRangeToParts\", \"resolvedOptions\"].forEach(\n\t (method) => {\n\t formatter[method] =\n\t realFormatter[method].bind(realFormatter);\n\t },\n\t );\n\n\t [\"format\", \"formatToParts\"].forEach((method) => {\n\t formatter[method] = function (date) {\n\t return realFormatter[method](date || ClockIntl.clock.now);\n\t };\n\t });\n\n\t return formatter;\n\t };\n\n\t ClockIntl.DateTimeFormat.prototype = Object.create(\n\t NativeIntl.DateTimeFormat.prototype,\n\t );\n\n\t ClockIntl.DateTimeFormat.supportedLocalesOf =\n\t NativeIntl.DateTimeFormat.supportedLocalesOf;\n\n\t return ClockIntl;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function enqueueJob(clock, job) {\n\t // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n\t if (!clock.jobs) {\n\t clock.jobs = [];\n\t }\n\t clock.jobs.push(job);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function runJobs(clock) {\n\t // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n\t if (!clock.jobs) {\n\t return;\n\t }\n\t for (let i = 0; i < clock.jobs.length; i++) {\n\t const job = clock.jobs[i];\n\t job.func.apply(null, job.args);\n\n\t checkIsNearInfiniteLimit(clock, i);\n\t if (clock.loopLimit && i > clock.loopLimit) {\n\t throw getInfiniteLoopError(clock, job);\n\t }\n\t }\n\t resetIsNearInfiniteLimit();\n\t clock.jobs = [];\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t * @returns {number} id of the created timer\n\t */\n\t function addTimer(clock, timer) {\n\t if (timer.func === undefined) {\n\t throw new Error(\"Callback must be provided to timer calls\");\n\t }\n\n\t if (addTimerReturnsObject) {\n\t // Node.js environment\n\t if (typeof timer.func !== \"function\") {\n\t throw new TypeError(\n\t `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n\t timer.func\n\t } of type ${typeof timer.func}`,\n\t );\n\t }\n\t }\n\n\t if (isNearInfiniteLimit) {\n\t timer.error = new Error();\n\t }\n\n\t timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n\t if (timer.hasOwnProperty(\"delay\")) {\n\t if (typeof timer.delay !== \"number\") {\n\t timer.delay = parseInt(timer.delay, 10);\n\t }\n\n\t if (!isNumberFinite(timer.delay)) {\n\t timer.delay = 0;\n\t }\n\t timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n\t timer.delay = Math.max(0, timer.delay);\n\t }\n\n\t if (timer.hasOwnProperty(\"interval\")) {\n\t timer.type = \"Interval\";\n\t timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n\t }\n\n\t if (timer.hasOwnProperty(\"animation\")) {\n\t timer.type = \"AnimationFrame\";\n\t timer.animation = true;\n\t }\n\n\t if (timer.hasOwnProperty(\"idleCallback\")) {\n\t timer.type = \"IdleCallback\";\n\t timer.idleCallback = true;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t timer.id = uniqueTimerId++;\n\t timer.createdAt = clock.now;\n\t timer.callAt =\n\t clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t clock.timers[timer.id] = timer;\n\n\t if (addTimerReturnsObject) {\n\t const res = {\n\t refed: true,\n\t ref: function () {\n\t this.refed = true;\n\t return res;\n\t },\n\t unref: function () {\n\t this.refed = false;\n\t return res;\n\t },\n\t hasRef: function () {\n\t return this.refed;\n\t },\n\t refresh: function () {\n\t timer.callAt =\n\t clock.now +\n\t (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t // it _might_ have been removed, but if not the assignment is perfectly fine\n\t clock.timers[timer.id] = timer;\n\n\t return res;\n\t },\n\t [Symbol.toPrimitive]: function () {\n\t return timer.id;\n\t },\n\t };\n\t return res;\n\t }\n\n\t return timer.id;\n\t }\n\n\t /* eslint consistent-return: \"off\" */\n\t /**\n\t * Timer comparitor\n\t * @param {Timer} a\n\t * @param {Timer} b\n\t * @returns {number}\n\t */\n\t function compareTimers(a, b) {\n\t // Sort first by absolute timing\n\t if (a.callAt < b.callAt) {\n\t return -1;\n\t }\n\t if (a.callAt > b.callAt) {\n\t return 1;\n\t }\n\n\t // Sort next by immediate, immediate timers take precedence\n\t if (a.immediate && !b.immediate) {\n\t return -1;\n\t }\n\t if (!a.immediate && b.immediate) {\n\t return 1;\n\t }\n\n\t // Sort next by creation time, earlier-created timers take precedence\n\t if (a.createdAt < b.createdAt) {\n\t return -1;\n\t }\n\t if (a.createdAt > b.createdAt) {\n\t return 1;\n\t }\n\n\t // Sort next by id, lower-id timers take precedence\n\t if (a.id < b.id) {\n\t return -1;\n\t }\n\t if (a.id > b.id) {\n\t return 1;\n\t }\n\n\t // As timer ids are unique, no fallback `0` is necessary\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} from\n\t * @param {number} to\n\t * @returns {Timer}\n\t */\n\t function firstTimerInRange(clock, from, to) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id, isInRange;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t isInRange = inRange(from, to, timers[id]);\n\n\t if (\n\t isInRange &&\n\t (!timer || compareTimers(timer, timers[id]) === 1)\n\t ) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function firstTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === 1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function lastTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === -1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t */\n\t function callTimer(clock, timer) {\n\t if (typeof timer.interval === \"number\") {\n\t clock.timers[timer.id].callAt += timer.interval;\n\t } else {\n\t delete clock.timers[timer.id];\n\t }\n\n\t if (typeof timer.func === \"function\") {\n\t timer.func.apply(null, timer.args);\n\t } else {\n\t /* eslint no-eval: \"off\" */\n\t const eval2 = eval;\n\t (function () {\n\t eval2(timer.func);\n\t })();\n\t }\n\t }\n\n\t /**\n\t * Gets clear handler name for a given timer type\n\t * @param {string} ttype\n\t */\n\t function getClearHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `cancel${ttype}`;\n\t }\n\t return `clear${ttype}`;\n\t }\n\n\t /**\n\t * Gets schedule handler name for a given timer type\n\t * @param {string} ttype\n\t */\n\t function getScheduleHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `request${ttype}`;\n\t }\n\t return `set${ttype}`;\n\t }\n\n\t /**\n\t * Creates an anonymous function to warn only once\n\t */\n\t function createWarnOnce() {\n\t let calls = 0;\n\t return function (msg) {\n\t // eslint-disable-next-line\n\t !calls++ && console.warn(msg);\n\t };\n\t }\n\t const warnOnce = createWarnOnce();\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} timerId\n\t * @param {string} ttype\n\t */\n\t function clearTimer(clock, timerId, ttype) {\n\t if (!timerId) {\n\t // null appears to be allowed in most browsers, and appears to be\n\t // relied upon by some libraries, like Bootstrap carousel\n\t return;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t // in Node, the ID is stored as the primitive value for `Timeout` objects\n\t // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n\t const id = Number(timerId);\n\n\t if (Number.isNaN(id) || id < idCounterStart) {\n\t const handlerName = getClearHandler(ttype);\n\n\t if (clock.shouldClearNativeTimers === true) {\n\t const nativeHandler = clock[`_${handlerName}`];\n\t return typeof nativeHandler === \"function\"\n\t ? nativeHandler(timerId)\n\t : undefined;\n\t }\n\t warnOnce(\n\t `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n\t \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\",\n\t );\n\t }\n\n\t if (clock.timers.hasOwnProperty(id)) {\n\t // check that the ID matches a timer of the correct type\n\t const timer = clock.timers[id];\n\t if (\n\t timer.type === ttype ||\n\t (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n\t (timer.type === \"Interval\" && ttype === \"Timeout\")\n\t ) {\n\t delete clock.timers[id];\n\t } else {\n\t const clear = getClearHandler(ttype);\n\t const schedule = getScheduleHandler(timer.type);\n\t throw new Error(\n\t `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`,\n\t );\n\t }\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Config} config\n\t * @returns {Timer[]}\n\t */\n\t function uninstall(clock, config) {\n\t let method, i, l;\n\t const installedHrTime = \"_hrtime\";\n\t const installedNextTick = \"_nextTick\";\n\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t method = clock.methods[i];\n\t if (method === \"hrtime\" && _global.process) {\n\t _global.process.hrtime = clock[installedHrTime];\n\t } else if (method === \"nextTick\" && _global.process) {\n\t _global.process.nextTick = clock[installedNextTick];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t `_${method}`,\n\t );\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t _global,\n\t method,\n\t originalPerfDescriptor,\n\t );\n\t } else if (originalPerfDescriptor.configurable) {\n\t _global[method] = clock[`_${method}`];\n\t }\n\t } else {\n\t if (_global[method] && _global[method].hadOwnProperty) {\n\t _global[method] = clock[`_${method}`];\n\t } else {\n\t try {\n\t delete _global[method];\n\t } catch (ignore) {\n\t /* eslint no-empty: \"off\" */\n\t }\n\t }\n\t }\n\t if (clock.timersModuleMethods !== undefined) {\n\t for (let j = 0; j < clock.timersModuleMethods.length; j++) {\n\t const entry = clock.timersModuleMethods[j];\n\t timersModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t if (clock.timersPromisesModuleMethods !== undefined) {\n\t for (\n\t let j = 0;\n\t j < clock.timersPromisesModuleMethods.length;\n\t j++\n\t ) {\n\t const entry = clock.timersPromisesModuleMethods[j];\n\t timersPromisesModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t _global.clearInterval(clock.attachedInterval);\n\t }\n\n\t // Prevent multiple executions which will completely remove these props\n\t clock.methods = [];\n\n\t for (const [listener, signal] of clock.abortListenerMap.entries()) {\n\t signal.removeEventListener(\"abort\", listener);\n\t clock.abortListenerMap.delete(listener);\n\t }\n\n\t // return pending timers, to enable checking what timers remained on uninstall\n\t if (!clock.timers) {\n\t return [];\n\t }\n\t return Object.keys(clock.timers).map(function mapper(key) {\n\t return clock.timers[key];\n\t });\n\t }\n\n\t /**\n\t * @param {object} target the target containing the method to replace\n\t * @param {string} method the keyname of the method on the target\n\t * @param {Clock} clock\n\t */\n\t function hijackMethod(target, method, clock) {\n\t clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n\t target,\n\t method,\n\t );\n\t clock[`_${method}`] = target[method];\n\n\t if (method === \"Date\") {\n\t target[method] = clock[method];\n\t } else if (method === \"Intl\") {\n\t target[method] = clock[method];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t target,\n\t method,\n\t );\n\t // JSDOM has a read only performance field so we have to save/copy it differently\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t clock,\n\t `_${method}`,\n\t originalPerfDescriptor,\n\t );\n\n\t const perfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t method,\n\t );\n\t Object.defineProperty(target, method, perfDescriptor);\n\t } else {\n\t target[method] = clock[method];\n\t }\n\t } else {\n\t target[method] = function () {\n\t return clock[method].apply(clock, arguments);\n\t };\n\n\t Object.defineProperties(\n\t target[method],\n\t Object.getOwnPropertyDescriptors(clock[method]),\n\t );\n\t }\n\n\t target[method].clock = clock;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} advanceTimeDelta\n\t */\n\t function doIntervalTick(clock, advanceTimeDelta) {\n\t clock.tick(advanceTimeDelta);\n\t }\n\n\t /**\n\t * @typedef {object} Timers\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {Date} Date\n\t * @property {Intl} Intl\n\t * @property {SetImmediate=} setImmediate\n\t * @property {function(NodeImmediate): void=} clearImmediate\n\t * @property {function(number[]):number[]=} hrtime\n\t * @property {NextTick=} nextTick\n\t * @property {Performance=} performance\n\t * @property {RequestAnimationFrame=} requestAnimationFrame\n\t * @property {boolean=} queueMicrotask\n\t * @property {function(number): void=} cancelAnimationFrame\n\t * @property {RequestIdleCallback=} requestIdleCallback\n\t * @property {function(number): void=} cancelIdleCallback\n\t */\n\n\t /** @type {Timers} */\n\t const timers = {\n\t setTimeout: _global.setTimeout,\n\t clearTimeout: _global.clearTimeout,\n\t setInterval: _global.setInterval,\n\t clearInterval: _global.clearInterval,\n\t Date: _global.Date,\n\t };\n\n\t if (isPresent.setImmediate) {\n\t timers.setImmediate = _global.setImmediate;\n\t }\n\n\t if (isPresent.clearImmediate) {\n\t timers.clearImmediate = _global.clearImmediate;\n\t }\n\n\t if (isPresent.hrtime) {\n\t timers.hrtime = _global.process.hrtime;\n\t }\n\n\t if (isPresent.nextTick) {\n\t timers.nextTick = _global.process.nextTick;\n\t }\n\n\t if (isPresent.performance) {\n\t timers.performance = _global.performance;\n\t }\n\n\t if (isPresent.requestAnimationFrame) {\n\t timers.requestAnimationFrame = _global.requestAnimationFrame;\n\t }\n\n\t if (isPresent.queueMicrotask) {\n\t timers.queueMicrotask = _global.queueMicrotask;\n\t }\n\n\t if (isPresent.cancelAnimationFrame) {\n\t timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n\t }\n\n\t if (isPresent.requestIdleCallback) {\n\t timers.requestIdleCallback = _global.requestIdleCallback;\n\t }\n\n\t if (isPresent.cancelIdleCallback) {\n\t timers.cancelIdleCallback = _global.cancelIdleCallback;\n\t }\n\n\t if (isPresent.Intl) {\n\t timers.Intl = NativeIntl;\n\t }\n\n\t const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n\t /**\n\t * @param {Date|number} [start] the system time - non-integer values are floored\n\t * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n\t * @returns {Clock}\n\t */\n\t function createClock(start, loopLimit) {\n\t // eslint-disable-next-line no-param-reassign\n\t start = Math.floor(getEpoch(start));\n\t // eslint-disable-next-line no-param-reassign\n\t loopLimit = loopLimit || 1000;\n\t let nanos = 0;\n\t const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n\t const clock = {\n\t now: start,\n\t Date: createDate(),\n\t loopLimit: loopLimit,\n\t };\n\n\t clock.Date.clock = clock;\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function getTimeToNextFrame() {\n\t return 16 - ((clock.now - start) % 16);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function hrtime(prev) {\n\t const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n\t const secsSinceStart = Math.floor(millisSinceStart / 1000);\n\t const remainderInNanos =\n\t (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n\t nanos -\n\t adjustedSystemTime[1];\n\n\t if (Array.isArray(prev)) {\n\t if (prev[1] > 1e9) {\n\t throw new TypeError(\n\t \"Number of nanoseconds can't exceed a billion\",\n\t );\n\t }\n\n\t const oldSecs = prev[0];\n\t let nanoDiff = remainderInNanos - prev[1];\n\t let secDiff = secsSinceStart - oldSecs;\n\n\t if (nanoDiff < 0) {\n\t nanoDiff += 1e9;\n\t secDiff -= 1;\n\t }\n\n\t return [secDiff, nanoDiff];\n\t }\n\t return [secsSinceStart, remainderInNanos];\n\t }\n\n\t /**\n\t * A high resolution timestamp in milliseconds.\n\t * @typedef {number} DOMHighResTimeStamp\n\t */\n\n\t /**\n\t * performance.now()\n\t * @returns {DOMHighResTimeStamp}\n\t */\n\t function fakePerformanceNow() {\n\t const hrt = hrtime();\n\t const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n\t return millis;\n\t }\n\n\t if (isPresent.hrtimeBigint) {\n\t hrtime.bigint = function () {\n\t const parts = hrtime();\n\t return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n\t };\n\t }\n\n\t if (isPresent.Intl) {\n\t clock.Intl = createIntl();\n\t clock.Intl.clock = clock;\n\t }\n\n\t clock.requestIdleCallback = function requestIdleCallback(\n\t func,\n\t timeout,\n\t ) {\n\t let timeToNextIdlePeriod = 0;\n\n\t if (clock.countTimers() > 0) {\n\t timeToNextIdlePeriod = 50; // const for now\n\t }\n\n\t const result = addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay:\n\t typeof timeout === \"undefined\"\n\t ? timeToNextIdlePeriod\n\t : Math.min(timeout, timeToNextIdlePeriod),\n\t idleCallback: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n\t return clearTimer(clock, timerId, \"IdleCallback\");\n\t };\n\n\t clock.setTimeout = function setTimeout(func, timeout) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t });\n\t };\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setTimeout[utilPromisify.custom] =\n\t function promisifiedSetTimeout(timeout, arg) {\n\t return new _global.Promise(function setTimeoutExecutor(\n\t resolve,\n\t ) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t delay: timeout,\n\t });\n\t });\n\t };\n\t }\n\n\t clock.clearTimeout = function clearTimeout(timerId) {\n\t return clearTimer(clock, timerId, \"Timeout\");\n\t };\n\n\t clock.nextTick = function nextTick(func) {\n\t return enqueueJob(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t error: isNearInfiniteLimit ? new Error() : null,\n\t });\n\t };\n\n\t clock.queueMicrotask = function queueMicrotask(func) {\n\t return clock.nextTick(func); // explicitly drop additional arguments\n\t };\n\n\t clock.setInterval = function setInterval(func, timeout) {\n\t // eslint-disable-next-line no-param-reassign\n\t timeout = parseInt(timeout, 10);\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t interval: timeout,\n\t });\n\t };\n\n\t clock.clearInterval = function clearInterval(timerId) {\n\t return clearTimer(clock, timerId, \"Interval\");\n\t };\n\n\t if (isPresent.setImmediate) {\n\t clock.setImmediate = function setImmediate(func) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t immediate: true,\n\t });\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setImmediate[utilPromisify.custom] =\n\t function promisifiedSetImmediate(arg) {\n\t return new _global.Promise(\n\t function setImmediateExecutor(resolve) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t immediate: true,\n\t });\n\t },\n\t );\n\t };\n\t }\n\n\t clock.clearImmediate = function clearImmediate(timerId) {\n\t return clearTimer(clock, timerId, \"Immediate\");\n\t };\n\t }\n\n\t clock.countTimers = function countTimers() {\n\t return (\n\t Object.keys(clock.timers || {}).length +\n\t (clock.jobs || []).length\n\t );\n\t };\n\n\t clock.requestAnimationFrame = function requestAnimationFrame(func) {\n\t const result = addTimer(clock, {\n\t func: func,\n\t delay: getTimeToNextFrame(),\n\t get args() {\n\t return [fakePerformanceNow()];\n\t },\n\t animation: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n\t return clearTimer(clock, timerId, \"AnimationFrame\");\n\t };\n\n\t clock.runMicrotasks = function runMicrotasks() {\n\t runJobs(clock);\n\t };\n\n\t /**\n\t * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n\t * @param {boolean} isAsync\n\t * @param {Function} resolve\n\t * @param {Function} reject\n\t * @returns {number|undefined} will return the new `now` value or nothing for async\n\t */\n\t function doTick(tickValue, isAsync, resolve, reject) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\t const remainder = nanoRemainder(msFloat);\n\t let nanosTotal = nanos + remainder;\n\t let tickTo = clock.now + ms;\n\n\t if (msFloat < 0) {\n\t throw new TypeError(\"Negative ticks are not supported\");\n\t }\n\n\t // adjust for positive overflow\n\t if (nanosTotal >= 1e6) {\n\t tickTo += 1;\n\t nanosTotal -= 1e6;\n\t }\n\n\t nanos = nanosTotal;\n\t let tickFrom = clock.now;\n\t let previous = clock.now;\n\t // ESLint fails to detect this correctly\n\t /* eslint-disable prefer-const */\n\t let timer,\n\t firstException,\n\t oldNow,\n\t nextPromiseTick,\n\t compensationCheck,\n\t postTimerCall;\n\t /* eslint-enable prefer-const */\n\n\t clock.duringTick = true;\n\n\t // perform microtasks\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during microtask callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function doTickInner() {\n\t // perform each timer in the requested range\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t // eslint-disable-next-line no-unmodified-loop-condition\n\t while (timer && tickFrom <= tickTo) {\n\t if (clock.timers[timer.id]) {\n\t tickFrom = timer.callAt;\n\t clock.now = timer.callAt;\n\t oldNow = clock.now;\n\t try {\n\t runJobs(clock);\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\n\t if (isAsync) {\n\t // finish up after native setImmediate callback to allow\n\t // all native es6 promises to process their callbacks after\n\t // each timer fires.\n\t originalSetTimeout(nextPromiseTick);\n\t return;\n\t }\n\n\t compensationCheck();\n\t }\n\n\t postTimerCall();\n\t }\n\n\t // perform process.nextTick()s again\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during process.nextTick() callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\t clock.duringTick = false;\n\n\t // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t if (timer) {\n\t try {\n\t clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\t } else {\n\t // no timers remaining in the requested range: move the clock all the way to the end\n\t clock.now = tickTo;\n\n\t // update nanos\n\t nanos = nanosTotal;\n\t }\n\t if (firstException) {\n\t throw firstException;\n\t }\n\n\t if (isAsync) {\n\t resolve(clock.now);\n\t } else {\n\t return clock.now;\n\t }\n\t }\n\n\t nextPromiseTick =\n\t isAsync &&\n\t function () {\n\t try {\n\t compensationCheck();\n\t postTimerCall();\n\t doTickInner();\n\t } catch (e) {\n\t reject(e);\n\t }\n\t };\n\n\t compensationCheck = function () {\n\t // compensate for any setSystemTime() call during timer callback\n\t if (oldNow !== clock.now) {\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t previous += clock.now - oldNow;\n\t }\n\t };\n\n\t postTimerCall = function () {\n\t timer = firstTimerInRange(clock, previous, tickTo);\n\t previous = tickFrom;\n\t };\n\n\t return doTickInner();\n\t }\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.tick = function tick(tickValue) {\n\t return doTick(tickValue, false);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {Promise}\n\t */\n\t clock.tickAsync = function tickAsync(tickValue) {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t doTick(tickValue, true, resolve, reject);\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.next = function next() {\n\t runJobs(clock);\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t return clock.now;\n\t }\n\n\t clock.duringTick = true;\n\t try {\n\t clock.now = timer.callAt;\n\t callTimer(clock, timer);\n\t runJobs(clock);\n\t return clock.now;\n\t } finally {\n\t clock.duringTick = false;\n\t }\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.nextAsync = function nextAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t let err;\n\t clock.duringTick = true;\n\t clock.now = timer.callAt;\n\t try {\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t err = e;\n\t }\n\t clock.duringTick = false;\n\n\t originalSetTimeout(function () {\n\t if (err) {\n\t reject(err);\n\t } else {\n\t resolve(clock.now);\n\t }\n\t });\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.runAll = function runAll() {\n\t let numTimers, i;\n\t runJobs(clock);\n\t for (i = 0; i < clock.loopLimit; i++) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t numTimers = Object.keys(clock.timers).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t clock.next();\n\t checkIsNearInfiniteLimit(clock, i);\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t throw getInfiniteLoopError(clock, excessJob);\n\t };\n\n\t clock.runToFrame = function runToFrame() {\n\t return clock.tick(getTimeToNextFrame());\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runAllAsync = function runAllAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t let i = 0;\n\t /**\n\t *\n\t */\n\t function doRun() {\n\t originalSetTimeout(function () {\n\t try {\n\t runJobs(clock);\n\n\t let numTimers;\n\t if (i < clock.loopLimit) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t numTimers = Object.keys(\n\t clock.timers,\n\t ).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t clock.next();\n\n\t i++;\n\n\t doRun();\n\t checkIsNearInfiniteLimit(clock, i);\n\t return;\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t reject(getInfiniteLoopError(clock, excessJob));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t }\n\t doRun();\n\t });\n\t };\n\t }\n\n\t clock.runToLast = function runToLast() {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t return clock.now;\n\t }\n\n\t return clock.tick(timer.callAt - clock.now);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runToLastAsync = function runToLastAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t resolve(clock.now);\n\t }\n\n\t resolve(clock.tickAsync(timer.callAt - clock.now));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.reset = function reset() {\n\t nanos = 0;\n\t clock.timers = {};\n\t clock.jobs = [];\n\t clock.now = start;\n\t };\n\n\t clock.setSystemTime = function setSystemTime(systemTime) {\n\t // determine time difference\n\t const newNow = getEpoch(systemTime);\n\t const difference = newNow - clock.now;\n\t let id, timer;\n\n\t adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n\t adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n\t // update 'system clock'\n\t clock.now = newNow;\n\t nanos = 0;\n\n\t // update timers and intervals to keep them stable\n\t for (id in clock.timers) {\n\t if (clock.timers.hasOwnProperty(id)) {\n\t timer = clock.timers[id];\n\t timer.createdAt += difference;\n\t timer.callAt += difference;\n\t }\n\t }\n\t };\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.jump = function jump(tickValue) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\n\t for (const timer of Object.values(clock.timers)) {\n\t if (clock.now + ms > timer.callAt) {\n\t timer.callAt = clock.now + ms;\n\t }\n\t }\n\t clock.tick(ms);\n\t };\n\n\t if (isPresent.performance) {\n\t clock.performance = Object.create(null);\n\t clock.performance.now = fakePerformanceNow;\n\t }\n\n\t if (isPresent.hrtime) {\n\t clock.hrtime = hrtime;\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-disable complexity */\n\n\t /**\n\t * @param {Config=} [config] Optional config\n\t * @returns {Clock}\n\t */\n\t function install(config) {\n\t if (\n\t arguments.length > 1 ||\n\t config instanceof Date ||\n\t Array.isArray(config) ||\n\t typeof config === \"number\"\n\t ) {\n\t throw new TypeError(\n\t `FakeTimers.install called with ${String(\n\t config,\n\t )} install requires an object parameter`,\n\t );\n\t }\n\n\t if (_global.Date.isFake === true) {\n\t // Timers are already faked; this is a problem.\n\t // Make the user reset timers before continuing.\n\t throw new TypeError(\n\t \"Can't install fake timers twice on the same global object.\",\n\t );\n\t }\n\n\t // eslint-disable-next-line no-param-reassign\n\t config = typeof config !== \"undefined\" ? config : {};\n\t config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n\t config.advanceTimeDelta = config.advanceTimeDelta || 20;\n\t config.shouldClearNativeTimers =\n\t config.shouldClearNativeTimers || false;\n\n\t if (config.target) {\n\t throw new TypeError(\n\t \"config.target is no longer supported. Use `withGlobal(target)` instead.\",\n\t );\n\t }\n\n\t /**\n\t * @param {string} timer/object the name of the thing that is not present\n\t * @param timer\n\t */\n\t function handleMissingTimer(timer) {\n\t if (config.ignoreMissingTimers) {\n\t return;\n\t }\n\n\t throw new ReferenceError(\n\t `non-existent timers and/or objects cannot be faked: '${timer}'`,\n\t );\n\t }\n\n\t let i, l;\n\t const clock = createClock(config.now, config.loopLimit);\n\t clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n\t clock.uninstall = function () {\n\t return uninstall(clock, config);\n\t };\n\n\t clock.abortListenerMap = new Map();\n\n\t clock.methods = config.toFake || [];\n\n\t if (clock.methods.length === 0) {\n\t clock.methods = Object.keys(timers);\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t const intervalTick = doIntervalTick.bind(\n\t null,\n\t clock,\n\t config.advanceTimeDelta,\n\t );\n\t const intervalId = _global.setInterval(\n\t intervalTick,\n\t config.advanceTimeDelta,\n\t );\n\t clock.attachedInterval = intervalId;\n\t }\n\n\t if (clock.methods.includes(\"performance\")) {\n\t const proto = (() => {\n\t if (hasPerformanceConstructorPrototype) {\n\t return _global.performance.constructor.prototype;\n\t }\n\t if (hasPerformancePrototype) {\n\t return _global.Performance.prototype;\n\t }\n\t })();\n\t if (proto) {\n\t Object.getOwnPropertyNames(proto).forEach(function (name) {\n\t if (name !== \"now\") {\n\t clock.performance[name] =\n\t name.indexOf(\"getEntries\") === 0\n\t ? NOOP_ARRAY\n\t : NOOP;\n\t }\n\t });\n\t // ensure `mark` returns a value that is valid\n\t clock.performance.mark = (name) =>\n\t new FakePerformanceEntry(name, \"mark\", 0, 0);\n\t clock.performance.measure = (name) =>\n\t new FakePerformanceEntry(name, \"measure\", 0, 100);\n\t // `timeOrigin` should return the time of when the Window session started\n\t // (or the Worker was installed)\n\t clock.performance.timeOrigin = getEpoch(config.now);\n\t } else if ((config.toFake || []).includes(\"performance\")) {\n\t return handleMissingTimer(\"performance\");\n\t }\n\t }\n\t if (_global === globalObject && timersModule) {\n\t clock.timersModuleMethods = [];\n\t }\n\t if (_global === globalObject && timersPromisesModule) {\n\t clock.timersPromisesModuleMethods = [];\n\t }\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t const nameOfMethodToReplace = clock.methods[i];\n\n\t if (!isPresent[nameOfMethodToReplace]) {\n\t handleMissingTimer(nameOfMethodToReplace);\n\t // eslint-disable-next-line\n\t continue;\n\t }\n\n\t if (nameOfMethodToReplace === \"hrtime\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.hrtime === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else if (nameOfMethodToReplace === \"nextTick\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.nextTick === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else {\n\t hijackMethod(_global, nameOfMethodToReplace, clock);\n\t }\n\t if (\n\t clock.timersModuleMethods !== undefined &&\n\t timersModule[nameOfMethodToReplace]\n\t ) {\n\t const original = timersModule[nameOfMethodToReplace];\n\t clock.timersModuleMethods.push({\n\t methodName: nameOfMethodToReplace,\n\t original: original,\n\t });\n\t timersModule[nameOfMethodToReplace] =\n\t _global[nameOfMethodToReplace];\n\t }\n\t if (clock.timersPromisesModuleMethods !== undefined) {\n\t if (nameOfMethodToReplace === \"setTimeout\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setTimeout\",\n\t original: timersPromisesModule.setTimeout,\n\t });\n\n\t timersPromisesModule.setTimeout = (\n\t delay,\n\t value,\n\t options = {},\n\t ) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearTimeout(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setTimeout(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t }, delay);\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setImmediate\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setImmediate\",\n\t original: timersPromisesModule.setImmediate,\n\t });\n\n\t timersPromisesModule.setImmediate = (value, options = {}) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearImmediate(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setImmediate(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t });\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setInterval\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setInterval\",\n\t original: timersPromisesModule.setInterval,\n\t });\n\n\t timersPromisesModule.setInterval = (\n\t delay,\n\t value,\n\t options = {},\n\t ) => ({\n\t [Symbol.asyncIterator]: () => {\n\t const createResolvable = () => {\n\t let resolve, reject;\n\t const promise = new Promise((res, rej) => {\n\t resolve = res;\n\t reject = rej;\n\t });\n\t promise.resolve = resolve;\n\t promise.reject = reject;\n\t return promise;\n\t };\n\n\t let done = false;\n\t let hasThrown = false;\n\t let returnCall;\n\t let nextAvailable = 0;\n\t const nextQueue = [];\n\n\t const handle = clock.setInterval(() => {\n\t if (nextQueue.length > 0) {\n\t nextQueue.shift().resolve();\n\t } else {\n\t nextAvailable++;\n\t }\n\t }, delay);\n\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t clock.clearInterval(handle);\n\t done = true;\n\t for (const resolvable of nextQueue) {\n\t resolvable.resolve();\n\t }\n\t };\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t done = true;\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\n\t return {\n\t next: async () => {\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextAvailable > 0) {\n\t nextAvailable--;\n\t return { done: false, value: value };\n\t }\n\n\t const resolvable = createResolvable();\n\t nextQueue.push(resolvable);\n\n\t await resolvable;\n\n\t if (returnCall && nextQueue.length === 0) {\n\t returnCall.resolve();\n\t }\n\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t return { done: false, value: value };\n\t },\n\t return: async () => {\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextQueue.length > 0) {\n\t returnCall = createResolvable();\n\t await returnCall;\n\t }\n\n\t clock.clearInterval(handle);\n\t done = true;\n\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t return { done: true, value: undefined };\n\t },\n\t };\n\t },\n\t });\n\t }\n\t }\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-enable complexity */\n\n\t return {\n\t timers: timers,\n\t createClock: createClock,\n\t install: install,\n\t withGlobal: withGlobal,\n\t };\n\t}\n\n\t/**\n\t * @typedef {object} FakeTimers\n\t * @property {Timers} timers\n\t * @property {createClock} createClock\n\t * @property {Function} install\n\t * @property {withGlobal} withGlobal\n\t */\n\n\t/* eslint-enable complexity */\n\n\t/** @type {FakeTimers} */\n\tconst defaultImplementation = withGlobal(globalObject);\n\n\tfakeTimersSrc.timers = defaultImplementation.timers;\n\tfakeTimersSrc.createClock = defaultImplementation.createClock;\n\tfakeTimersSrc.install = defaultImplementation.install;\n\tfakeTimersSrc.withGlobal = withGlobal;\n\treturn fakeTimersSrc;\n}\n\nvar fakeTimersSrcExports = requireFakeTimersSrc();\n\nclass FakeTimers {\n\t_global;\n\t_clock;\n\t_fakingTime;\n\t_fakingDate;\n\t_fakeTimers;\n\t_userConfig;\n\t_now = RealDate.now;\n\tconstructor({ global, config }) {\n\t\tthis._userConfig = config;\n\t\tthis._fakingDate = null;\n\t\tthis._fakingTime = false;\n\t\tthis._fakeTimers = fakeTimersSrcExports.withGlobal(global);\n\t\tthis._global = global;\n\t}\n\tclearAllTimers() {\n\t\tif (this._fakingTime) {\n\t\t\tthis._clock.reset();\n\t\t}\n\t}\n\tdispose() {\n\t\tthis.useRealTimers();\n\t}\n\trunAllTimers() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tthis._clock.runAll();\n\t\t}\n\t}\n\tasync runAllTimersAsync() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tawait this._clock.runAllAsync();\n\t\t}\n\t}\n\trunOnlyPendingTimers() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tthis._clock.runToLast();\n\t\t}\n\t}\n\tasync runOnlyPendingTimersAsync() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tawait this._clock.runToLastAsync();\n\t\t}\n\t}\n\tadvanceTimersToNextTimer(steps = 1) {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tfor (let i = steps; i > 0; i--) {\n\t\t\t\tthis._clock.next();\n\t\t\t\tthis._clock.tick(0);\n\t\t\t\tif (this._clock.countTimers() === 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tasync advanceTimersToNextTimerAsync(steps = 1) {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tfor (let i = steps; i > 0; i--) {\n\t\t\t\tawait this._clock.nextAsync();\n\t\t\t\tthis._clock.tick(0);\n\t\t\t\tif (this._clock.countTimers() === 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tadvanceTimersByTime(msToRun) {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tthis._clock.tick(msToRun);\n\t\t}\n\t}\n\tasync advanceTimersByTimeAsync(msToRun) {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tawait this._clock.tickAsync(msToRun);\n\t\t}\n\t}\n\tadvanceTimersToNextFrame() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tthis._clock.runToFrame();\n\t\t}\n\t}\n\trunAllTicks() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tthis._clock.runMicrotasks();\n\t\t}\n\t}\n\tuseRealTimers() {\n\t\tif (this._fakingDate) {\n\t\t\tresetDate();\n\t\t\tthis._fakingDate = null;\n\t\t}\n\t\tif (this._fakingTime) {\n\t\t\tthis._clock.uninstall();\n\t\t\tthis._fakingTime = false;\n\t\t}\n\t}\n\tuseFakeTimers() {\n\t\tif (this._fakingDate) {\n\t\t\tthrow new Error(\"\\\"setSystemTime\\\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.\");\n\t\t}\n\t\tif (!this._fakingTime) {\n\t\t\tconst toFake = Object.keys(this._fakeTimers.timers).filter((timer) => timer !== \"nextTick\" && timer !== \"queueMicrotask\");\n\t\t\tif (this._userConfig?.toFake?.includes(\"nextTick\") && isChildProcess()) {\n\t\t\t\tthrow new Error(\"process.nextTick cannot be mocked inside child_process\");\n\t\t\t}\n\t\t\tthis._clock = this._fakeTimers.install({\n\t\t\t\tnow: Date.now(),\n\t\t\t\t...this._userConfig,\n\t\t\t\ttoFake: this._userConfig?.toFake || toFake,\n\t\t\t\tignoreMissingTimers: true\n\t\t\t});\n\t\t\tthis._fakingTime = true;\n\t\t}\n\t}\n\treset() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tconst { now } = this._clock;\n\t\t\tthis._clock.reset();\n\t\t\tthis._clock.setSystemTime(now);\n\t\t}\n\t}\n\tsetSystemTime(now) {\n\t\tconst date = typeof now === \"undefined\" || now instanceof Date ? now : new Date(now);\n\t\tif (this._fakingTime) {\n\t\t\tthis._clock.setSystemTime(date);\n\t\t} else {\n\t\t\tthis._fakingDate = date ?? new Date(this.getRealSystemTime());\n\t\t\tmockDate(this._fakingDate);\n\t\t}\n\t}\n\tgetMockedSystemTime() {\n\t\treturn this._fakingTime ? new Date(this._clock.now) : this._fakingDate;\n\t}\n\tgetRealSystemTime() {\n\t\treturn this._now();\n\t}\n\tgetTimerCount() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\treturn this._clock.countTimers();\n\t\t}\n\t\treturn 0;\n\t}\n\tconfigure(config) {\n\t\tthis._userConfig = config;\n\t}\n\tisFakeTimers() {\n\t\treturn this._fakingTime;\n\t}\n\t_checkFakeTimers() {\n\t\tif (!this._fakingTime) {\n\t\t\tthrow new Error(\"Timers are not mocked. Try calling \\\"vi.useFakeTimers()\\\" first.\");\n\t\t}\n\t\treturn this._fakingTime;\n\t}\n}\n\nfunction copyStackTrace(target, source) {\n\tif (source.stack !== undefined) {\n\t\ttarget.stack = source.stack.replace(source.message, target.message);\n\t}\n\treturn target;\n}\nfunction waitFor(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet lastError;\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onResolve = (result) => {\n\t\t\tif (timeoutId) {\n\t\t\t\tclearTimeout(timeoutId);\n\t\t\t}\n\t\t\tif (intervalId) {\n\t\t\t\tclearInterval(intervalId);\n\t\t\t}\n\t\t\tresolve(result);\n\t\t};\n\t\tconst handleTimeout = () => {\n\t\t\tif (intervalId) {\n\t\t\t\tclearInterval(intervalId);\n\t\t\t}\n\t\t\tlet error = lastError;\n\t\t\tif (!error) {\n\t\t\t\terror = copyStackTrace(new Error(\"Timed out in waitFor!\"), STACK_TRACE_ERROR);\n\t\t\t}\n\t\t\treject(error);\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) {\n\t\t\t\tvi.advanceTimersByTime(interval);\n\t\t\t}\n\t\t\tif (promiseStatus === \"pending\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tlastError = rejectedValue;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tonResolve(result);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tlastError = error;\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) {\n\t\t\treturn;\n\t\t}\n\t\ttimeoutId = setTimeout(handleTimeout, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\nfunction waitUntil(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onReject = (error) => {\n\t\t\tif (intervalId) {\n\t\t\t\tclearInterval(intervalId);\n\t\t\t}\n\t\t\tif (!error) {\n\t\t\t\terror = copyStackTrace(new Error(\"Timed out in waitUntil!\"), STACK_TRACE_ERROR);\n\t\t\t}\n\t\t\treject(error);\n\t\t};\n\t\tconst onResolve = (result) => {\n\t\t\tif (!result) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (timeoutId) {\n\t\t\t\tclearTimeout(timeoutId);\n\t\t\t}\n\t\t\tif (intervalId) {\n\t\t\t\tclearInterval(intervalId);\n\t\t\t}\n\t\t\tresolve(result);\n\t\t\treturn true;\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) {\n\t\t\t\tvi.advanceTimersByTime(interval);\n\t\t\t}\n\t\t\tif (promiseStatus === \"pending\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tonReject(rejectedValue);\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturn onResolve(result);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tonReject(error);\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) {\n\t\t\treturn;\n\t\t}\n\t\ttimeoutId = setTimeout(onReject, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\n\nfunction createVitest() {\n\tlet _config = null;\n\tconst workerState = getWorkerState();\n\tlet _timers;\n\tconst timers = () => _timers ||= new FakeTimers({\n\t\tglobal: globalThis,\n\t\tconfig: workerState.config.fakeTimers\n\t});\n\tconst _stubsGlobal = new Map();\n\tconst _stubsEnv = new Map();\n\tconst _envBooleans = [\n\t\t\"PROD\",\n\t\t\"DEV\",\n\t\t\"SSR\"\n\t];\n\tconst utils = {\n\t\tuseFakeTimers(config) {\n\t\t\tif (isChildProcess()) {\n\t\t\t\tif (config?.toFake?.includes(\"nextTick\") || workerState.config?.fakeTimers?.toFake?.includes(\"nextTick\")) {\n\t\t\t\t\tthrow new Error(\"vi.useFakeTimers({ toFake: [\\\"nextTick\\\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (config) {\n\t\t\t\ttimers().configure({\n\t\t\t\t\t...workerState.config.fakeTimers,\n\t\t\t\t\t...config\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\ttimers().configure(workerState.config.fakeTimers);\n\t\t\t}\n\t\t\ttimers().useFakeTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tisFakeTimers() {\n\t\t\treturn timers().isFakeTimers();\n\t\t},\n\t\tuseRealTimers() {\n\t\t\ttimers().useRealTimers();\n\t\t\treturn utils;\n\t\t},\n\t\trunOnlyPendingTimers() {\n\t\t\ttimers().runOnlyPendingTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runOnlyPendingTimersAsync() {\n\t\t\tawait timers().runOnlyPendingTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTimers() {\n\t\t\ttimers().runAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runAllTimersAsync() {\n\t\t\tawait timers().runAllTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTicks() {\n\t\t\ttimers().runAllTicks();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersByTime(ms) {\n\t\t\ttimers().advanceTimersByTime(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersByTimeAsync(ms) {\n\t\t\tawait timers().advanceTimersByTimeAsync(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextTimer() {\n\t\t\ttimers().advanceTimersToNextTimer();\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersToNextTimerAsync() {\n\t\t\tawait timers().advanceTimersToNextTimerAsync();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextFrame() {\n\t\t\ttimers().advanceTimersToNextFrame();\n\t\t\treturn utils;\n\t\t},\n\t\tgetTimerCount() {\n\t\t\treturn timers().getTimerCount();\n\t\t},\n\t\tsetSystemTime(time) {\n\t\t\ttimers().setSystemTime(time);\n\t\t\treturn utils;\n\t\t},\n\t\tgetMockedSystemTime() {\n\t\t\treturn timers().getMockedSystemTime();\n\t\t},\n\t\tgetRealSystemTime() {\n\t\t\treturn timers().getRealSystemTime();\n\t\t},\n\t\tclearAllTimers() {\n\t\t\ttimers().clearAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tspyOn,\n\t\tfn,\n\t\twaitFor,\n\t\twaitUntil,\n\t\thoisted(factory) {\n\t\t\tassertTypes(factory, \"\\\"vi.hoisted\\\" factory\", [\"function\"]);\n\t\t\treturn factory();\n\t\t},\n\t\tmock(path, factory) {\n\t\t\tif (typeof path !== \"string\") {\n\t\t\t\tthrow new TypeError(`vi.mock() expects a string path, but received a ${typeof path}`);\n\t\t\t}\n\t\t\tconst importer = getImporter(\"mock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t},\n\t\tunmock(path) {\n\t\t\tif (typeof path !== \"string\") {\n\t\t\t\tthrow new TypeError(`vi.unmock() expects a string path, but received a ${typeof path}`);\n\t\t\t}\n\t\t\t_mocker().queueUnmock(path, getImporter(\"unmock\"));\n\t\t},\n\t\tdoMock(path, factory) {\n\t\t\tif (typeof path !== \"string\") {\n\t\t\t\tthrow new TypeError(`vi.doMock() expects a string path, but received a ${typeof path}`);\n\t\t\t}\n\t\t\tconst importer = getImporter(\"doMock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t},\n\t\tdoUnmock(path) {\n\t\t\tif (typeof path !== \"string\") {\n\t\t\t\tthrow new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof path}`);\n\t\t\t}\n\t\t\t_mocker().queueUnmock(path, getImporter(\"doUnmock\"));\n\t\t},\n\t\tasync importActual(path) {\n\t\t\treturn _mocker().importActual(path, getImporter(\"importActual\"), _mocker().getMockContext().callstack);\n\t\t},\n\t\tasync importMock(path) {\n\t\t\treturn _mocker().importMock(path, getImporter(\"importMock\"));\n\t\t},\n\t\tmocked(item, _options = {}) {\n\t\t\treturn item;\n\t\t},\n\t\tisMockFunction(fn) {\n\t\t\treturn isMockFunction(fn);\n\t\t},\n\t\tclearAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockClear());\n\t\t\treturn utils;\n\t\t},\n\t\tresetAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockReset());\n\t\t\treturn utils;\n\t\t},\n\t\trestoreAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockRestore());\n\t\t\treturn utils;\n\t\t},\n\t\tstubGlobal(name, value) {\n\t\t\tif (!_stubsGlobal.has(name)) {\n\t\t\t\t_stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n\t\t\t}\n\t\t\tObject.defineProperty(globalThis, name, {\n\t\t\t\tvalue,\n\t\t\t\twritable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true\n\t\t\t});\n\t\t\treturn utils;\n\t\t},\n\t\tstubEnv(name, value) {\n\t\t\tif (!_stubsEnv.has(name)) {\n\t\t\t\t_stubsEnv.set(name, process.env[name]);\n\t\t\t}\n\t\t\tif (_envBooleans.includes(name)) {\n\t\t\t\tprocess.env[name] = value ? \"1\" : \"\";\n\t\t\t} else if (value === undefined) {\n\t\t\t\tdelete process.env[name];\n\t\t\t} else {\n\t\t\t\tprocess.env[name] = String(value);\n\t\t\t}\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllGlobals() {\n\t\t\t_stubsGlobal.forEach((original, name) => {\n\t\t\t\tif (!original) {\n\t\t\t\t\tReflect.deleteProperty(globalThis, name);\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty(globalThis, name, original);\n\t\t\t\t}\n\t\t\t});\n\t\t\t_stubsGlobal.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllEnvs() {\n\t\t\t_stubsEnv.forEach((original, name) => {\n\t\t\t\tif (original === undefined) {\n\t\t\t\t\tdelete process.env[name];\n\t\t\t\t} else {\n\t\t\t\t\tprocess.env[name] = original;\n\t\t\t\t}\n\t\t\t});\n\t\t\t_stubsEnv.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tresetModules() {\n\t\t\tresetModules(workerState.moduleCache);\n\t\t\treturn utils;\n\t\t},\n\t\tasync dynamicImportSettled() {\n\t\t\treturn waitForImportsToResolve();\n\t\t},\n\t\tsetConfig(config) {\n\t\t\tif (!_config) {\n\t\t\t\t_config = { ...workerState.config };\n\t\t\t}\n\t\t\tObject.assign(workerState.config, config);\n\t\t},\n\t\tresetConfig() {\n\t\t\tif (_config) {\n\t\t\t\tObject.assign(workerState.config, _config);\n\t\t\t}\n\t\t}\n\t};\n\treturn utils;\n}\nconst vitest = createVitest();\nconst vi = vitest;\nfunction _mocker() {\n\treturn typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, { get(_, name) {\n\t\tthrow new Error(\"Vitest mocker was not initialized in this environment. \" + `vi.${String(name)}() is forbidden.`);\n\t} });\n}\nfunction getImporter(name) {\n\tconst stackTrace = createSimpleStackTrace({ stackTraceLimit: 5 });\n\tconst stackArray = stackTrace.split(\"\\n\");\n\tconst importerStackIndex = stackArray.findIndex((stack) => {\n\t\treturn stack.includes(` at Object.${name}`) || stack.includes(`${name}@`);\n\t});\n\tconst stack = parseSingleStack(stackArray[importerStackIndex + 1]);\n\treturn stack?.file || \"\";\n}\n\nexport { globalExpect as a, vitest as b, createExpect as c, getSnapshotClient as g, inject as i, vi as v };\n","import { getSafeTimers } from '@vitest/utils';\n\nconst NAME_WORKER_STATE = \"__vitest_worker__\";\nfunction getWorkerState() {\n\tconst workerState = globalThis[NAME_WORKER_STATE];\n\tif (!workerState) {\n\t\tconst errorMsg = \"Vitest failed to access its internal state.\" + \"\\n\\nOne of the following is possible:\" + \"\\n- \\\"vitest\\\" is imported directly without running \\\"vitest\\\" command\" + \"\\n- \\\"vitest\\\" is imported inside \\\"globalSetup\\\" (to fix this, use \\\"setupFiles\\\" instead, because \\\"globalSetup\\\" runs in a different context)\" + \"\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n\";\n\t\tthrow new Error(errorMsg);\n\t}\n\treturn workerState;\n}\nfunction provideWorkerState(context, state) {\n\tObject.defineProperty(context, NAME_WORKER_STATE, {\n\t\tvalue: state,\n\t\tconfigurable: true,\n\t\twritable: true,\n\t\tenumerable: false\n\t});\n\treturn state;\n}\nfunction getCurrentEnvironment() {\n\tconst state = getWorkerState();\n\treturn state?.environment.name;\n}\nfunction isChildProcess() {\n\treturn typeof process !== \"undefined\" && !!process.send;\n}\nfunction setProcessTitle(title) {\n\ttry {\n\t\tprocess.title = `node (${title})`;\n\t} catch {}\n}\nfunction resetModules(modules, resetMocks = false) {\n\tconst skipPaths = [\n\t\t/\\/vitest\\/dist\\//,\n\t\t/\\/vite-node\\/dist\\//,\n\t\t/vitest-virtual-\\w+\\/dist/,\n\t\t/@vitest\\/dist/,\n\t\t...!resetMocks ? [/^mock:/] : []\n\t];\n\tmodules.forEach((mod, path) => {\n\t\tif (skipPaths.some((re) => re.test(path))) {\n\t\t\treturn;\n\t\t}\n\t\tmodules.invalidateModule(mod);\n\t});\n}\nfunction waitNextTick() {\n\tconst { setTimeout } = getSafeTimers();\n\treturn new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n\tawait waitNextTick();\n\tconst state = getWorkerState();\n\tconst promises = [];\n\tlet resolvingCount = 0;\n\tfor (const mod of state.moduleCache.values()) {\n\t\tif (mod.promise && !mod.evaluated) {\n\t\t\tpromises.push(mod.promise);\n\t\t}\n\t\tif (mod.resolving) {\n\t\t\tresolvingCount++;\n\t\t}\n\t}\n\tif (!promises.length && !resolvingCount) {\n\t\treturn;\n\t}\n\tawait Promise.allSettled(promises);\n\tawait waitForImportsToResolve();\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r, setProcessTitle as s, waitForImportsToResolve as w };\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { commonjsGlobal as c, getDefaultExportFromCjs as g };\n","const RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n\tconstructor(y, m, d, h, M, s, ms) {\n\t\tsuper();\n\t\tlet date;\n\t\tswitch (arguments.length) {\n\t\t\tcase 0:\n\t\t\t\tif (now !== null) {\n\t\t\t\t\tdate = new RealDate(now.valueOf());\n\t\t\t\t} else {\n\t\t\t\t\tdate = new RealDate();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tdate = new RealDate(y);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\td = typeof d === \"undefined\" ? 1 : d;\n\t\t\t\th = h || 0;\n\t\t\t\tM = M || 0;\n\t\t\t\ts = s || 0;\n\t\t\t\tms = ms || 0;\n\t\t\t\tdate = new RealDate(y, m, d, h, M, s, ms);\n\t\t\t\tbreak;\n\t\t}\n\t\tObject.setPrototypeOf(date, MockDate.prototype);\n\t\treturn date;\n\t}\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n\treturn new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n\treturn RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n\treturn RealDate.toString();\n};\nfunction mockDate(date) {\n\tconst dateObj = new RealDate(date.valueOf());\n\tif (Number.isNaN(dateObj.getTime())) {\n\t\tthrow new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n\t}\n\tglobalThis.Date = MockDate;\n\tnow = dateObj.valueOf();\n}\nfunction resetDate() {\n\tglobalThis.Date = RealDate;\n}\n\nexport { RealDate as R, mockDate as m, resetDate as r };\n","export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.B-PuvDzu.js';\nexport { i as isFirstRun, a as runOnce } from './chunks/run-once.I7PpBOk1.js';\nexport { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.BDobFbcz.js';\nexport { b as bench } from './chunks/benchmark.BKUatJGy.js';\nexport { expectTypeOf } from 'expect-type';\nexport { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';\nimport * as chai from 'chai';\nexport { chai };\nexport { assert, should } from 'chai';\nimport '@vitest/expect';\nimport '@vitest/runner/utils';\nimport './chunks/utils.CtocqOoE.js';\nimport '@vitest/utils';\nimport './chunks/_commonjsHelpers.BFTU3MAI.js';\nimport '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport '@vitest/spy';\nimport '@vitest/utils/source-map';\nimport './chunks/date.CDOsz-HY.js';\n","// This file contains setup code for tests\nimport { vi } from \"vitest\";\n\n// Set up global mocks if needed\n// Using a fixed date to avoid recursive calls\nconst OriginalDate = global.Date;\nconst fixedDate = new OriginalDate(\"2023-01-01\");\nglobal.Date = vi.fn(() => fixedDate) as any;\nglobal.Date.now = vi.fn(() => fixedDate.getTime());\n\n// Add any other global setup needed for tests\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAsN;AACtN,oBAA+B;AAC/B,IAAAA,gBAAsC;AACtC,aAAwB;;;ACHxB,mBAA8B;AAE9B,IAAM,oBAAoB;AAC1B,SAAS,iBAAiB;AACzB,QAAM,cAAc,WAAW,iBAAiB;AAChD,MAAI,CAAC,aAAa;AACjB,UAAM,WAAW;AACjB,UAAM,IAAI,MAAM,QAAQ;AAAA,EACzB;AACA,SAAO;AACR;AAUA,SAAS,wBAAwB;AAChC,QAAM,QAAQ,eAAe;AAC7B,SAAO,OAAO,YAAY;AAC3B;AACA,SAAS,iBAAiB;AACzB,SAAO,OAAO,YAAY,eAAe,CAAC,CAAC,QAAQ;AACpD;AAMA,SAAS,aAAa,SAAS,aAAa,OAAO;AAClD,QAAM,YAAY;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG,CAAC,aAAa,CAAC,QAAQ,IAAI,CAAC;AAAA,EAChC;AACA,UAAQ,QAAQ,CAAC,KAAK,SAAS;AAC9B,QAAI,UAAU,KAAK,CAAC,OAAO,GAAG,KAAK,IAAI,CAAC,GAAG;AAC1C;AAAA,IACD;AACA,YAAQ,iBAAiB,GAAG;AAAA,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AAG,MAAM,UAAU,QAAQ,CAAC;","names":["import_utils","import_utils","expect","fn","test","module","exports","chaiSubset","chai","Assertion","util","assert","global","object","copyPrototypeMethods","every","exports","fn","functionName","module","typeDetect","typeOf","now","timers","stack","import_runner","chai","import_expect","import_utils","import_utils","import_snapshot","import_error","import_spy","import_source_map"]}